Fix formatting.
[gcc.git] / gcc / ChangeLog
1 2016-12-19 Will Schmidt <will_schmidt@vnet.ibm.com>
2
3 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
4 early expansion of vector multiply and subtract builtins.
5
6 2016-12-19 David Malcolm <dmalcolm@redhat.com>
7
8 * print-rtl.c (rtx_writer::print_rtx_operand_code_r): For
9 non-virtual pseudos in compact mode, wrap the regno in '<' and '>'
10 rather than using a '%' prefix.
11 * rtl-tests.c (selftest::test_dumping_regs): Update for above change.
12
13 2016-12-19 Dominik Vogt <vogt@linux.vnet.ibm.com>
14
15 PR target/78748
16 * config/s390/s390.md ("*andc_split_<mode>"): Allow memory destination
17 only if it coincides with operand 2.
18
19 2016-12-19 Dominik Vogt <vogt@linux.vnet.ibm.com>
20
21 * combine.c (change_zero_ext): Skip generation of redundant AND.
22
23 2016-12-19 Krister Walfridsson <krister.walfridsson@gmail.com>
24
25 * config/netbsd.h (LINK_EH_SPEC): Define.
26
27 2016-12-18 Eric Botcazou <ebotcazou@adacore.com>
28
29 * lra-constraints.c (process_address): Add forward declaration.
30 (simplify_operand_subreg): In the MEM case, if the adjusted memory
31 reference is not sufficient aligned and the address was invalid,
32 reload the address before reloading the original memory reference.
33 Fix long lines and add a final return for the sake of clarity.
34
35 2016-12-17 Jakub Jelinek <jakub@redhat.com>
36
37 PR sanitizer/78832
38 * sanopt.c (sanitize_asan_mark_unpoison): Remove next variable, use
39 continue if gsi_next should be skipped.
40 (sanitize_asan_mark_poison): Remove prev variable, use continue if
41 gsi_prev should be skipped. When removing ASAN_MARK, do gsi_prev
42 first and gsi_remove on a previously made copy of the iterator.
43
44 2016-12-17 Andrew Senkevich <andrew.senkevich@intel.com>
45
46 * config/i386/avx512bwintrin.h: Add new k-mask intrinsics.
47 * config/i386/avx512dqintrin.h: Ditto.
48 * config/i386/avx512fintrin.h: Ditto.
49 * config/i386/i386-builtin.def (__builtin_ia32_kaddqi,
50 __builtin_ia32_kaddhi, __builtin_ia32_kaddsi,
51 __builtin_ia32_kadddi): New.
52 * config/i386/sse.md (kadd<mode>): New.
53
54 2016-12-17 Uros Bizjak <ubizjak@gmail.com>
55
56 * config/i386/i386.md (*tzcnt<mode>_1): Merge *tzcnt<mode>_1_falsedep_1
57 and *tzcnt<mode>_1 to define_insn_and_split pattern. Adjust split
58 condition to split after epilogue_completed.
59 (ctz<mode>2): Remove expander.
60 (ctz<mode>2): Merge *ctz<mode>2_falsedep_1 and *ctz<mode>2 to
61 define_insn_and_split pattern. Adjust split condition to split
62 after epilogue_completed.
63 (clz<mode>2_lznct): Remove expander.
64 (clz<mode>2_lzcnt): Merge *clz<mode>2_lzcnt_falsedep_1 and
65 *clz<mode>2 to define_insn_and_split pattern. Adjust split
66 condition to split after epilogue_completed.
67 (<lt_zcnt>_<mode>): Remove expander.
68 (<lt_zcnt>_<mode>): Merge *<lt_zcnt>_<mode>_falsedep_1 and
69 *<lt_zcnt>_<mode> to define_insn_and_split pattern. Adjust split
70 condition to split after epilogue_completed.
71 (<lt_zcnt>_hi): New insn pattern.
72 (popcount<mode>2): Remove expander.
73 (popcount<mode>2): Merge *popcount<mode>2_falsedep_1 and
74 *popcount<mode>2 to define_insn_and_split pattern. Adjust split
75 condition to split after epilogue_completed.
76 (popcounthi2): New insn pattern.
77
78 2016-12-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
79
80 * config/rs6000/altivec.md (UNSPEC_CMPRB): New unspec value.
81 (UNSPEC_CMPRB2): New unspec value.
82 (UNSPEC_CMPEQB): New unspec value.
83 (cmprb): New expansion.
84 (*cmprb_internal): New insn.
85 (*setb_internal): New insn.
86 (cmprb2): New expansion.
87 (*cmprb2_internal): New insn.
88 (cmpeqb): New expansion.
89 (*cmpeqb_internal): New insn.
90 * config/rs6000/rs6000-builtin.def (BU_P9_2): New macro.
91 (BU_P9_64BIT_2): Likewise.
92 (BU_P9_OVERLOAD_2): Likewise.
93 (CMPRB): Add byte-in-range built-in function.
94 (CMBRB2): Add byte-in-either-range built-in function.
95 (CMPEQB): Add byte-in-set built-in function.
96 (CMPRB): Add overload support for byte-in-range function.
97 (CMPRB2): Add overload support for byte-in-either-range function.
98 (CMPEQB): Add overload support for byte-in-set built-in function.
99 * config/rs6000/rs6000-c.c (P9_BUILTIN_CMPRB): Macro expansion to
100 define argument types for new builtin.
101 (P9_BUILTIN_CMPRB2): Likewise.
102 (P9_BUILTIN_CMPEQB): Likewise.
103 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Rearrange
104 the order of presentation for certain built-in functions
105 (scalar_extract_exp, scalar_extract_sig, scalar_insert_exp)
106 (scalar_cmp_exp_gt, scalar_cmp_exp_lt, scalar_cmp_exp_eq)
107 (scalar_cmp_exp_unordered, scalar_test_data_class)
108 (scalar_test_neg) to improve locality and flow. Document
109 the new __builtin_scalar_byte_in_set,
110 __builtin_scalar_byte_in_range, and
111 __builtin_scalar_byte_in_either_range functions.
112
113 2016-12-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
114
115 * config/aarch64/aarch64.md: New define_split above bswap<mode>2.
116
117 2016-12-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
118
119 * config/aarch64/aarch64.md: New define_split above insv<mode>.
120
121 2016-12-16 Jakub Jelinek <jakub@redhat.com>
122
123 PR c/78408
124 * tree-ssa-ccp.c: Include tree-dfa.h.
125 (optimize_memcpy): New function.
126 (pass_fold_builtins::execute): Use it. Remove useless conditional
127 break after BUILT_IN_VA_*.
128
129 2016-12-16 Marek Polacek <polacek@redhat.com>
130
131 PR tree-optimization/78819
132 * tree-vrp.c (find_switch_asserts): Return if the insertion limit is 0.
133 Don't register an assertion if the default case shares a label with
134 another case.
135
136 2016-12-16 Wilco Dijkstra <wdijkstr@arm.com>
137
138 * config/arm/arm.md (subsi3_carryin): Add Thumb-2 RSC #0.
139 (arm_negdi2) Rename to negdi2_insn, allow on Thumb-2.
140 * config/arm/thumb2.md (thumb2_negdi2): Remove pattern.
141
142 2016-12-16 Wilco Dijkstra <wdijkstr@arm.com>
143
144 * config/arm/arm.c (thumb_core_reg_alloc_order): Swap R12 and R14.
145
146 2016-12-16 Claudiu Zissulescu <claziss@synopsys.com>
147
148 * config/arc/arc.md (call_prof): Remove.
149 (call_value_prof): Likewise.
150 (sibcall_prof): Likewise.
151 (sibcall_value_prof): Likewise.
152
153 2016-12-16 Claudiu Zissulescu <claziss@synopsys.com>
154
155 * config/arc/arc.h (LINK_SPEC): Tidy up.
156 (ENDFILE_SPEC): Likewise.
157 (LIB_SPEC): Likewise.
158 (STARTFILE_SPEC): Include gcrt0 when profiling.
159 (FUNCTION_PROFILER): Use __mcount.
160 * config/arc/arc.opt (mucb-mcount): Remove.
161 * doc/invoke.texi (ARC): Remove mucb-mcount doc.
162 * arc/arc-protos.h (arc_profile_call): Remove.
163 * config/arc/arc.c (write_profile_sections): Likewise.
164 (arc_profile_call): Likewise.
165 (unspec_prof_hash): Likewise.
166 (unspec_prof_htab_eq): Likewise.
167 (arc_legitimate_constant_p): Remove UNSPEC_PROF.
168 (arc_reorg): Remove call to write_profile_sections.
169 * config/arc/arc.md (call): Remove call to arc_profile_call.
170 (call_value): Likewise.
171 (sibcall): Likewise.
172 (sibcall_value): Likewise.
173 (define_constants): Remove UNSPEC_PROF.
174
175 2016-12-16 Claudiu Zissulescu <claziss@synopsys.com>
176
177 * config/arc/arc.md (mulsidi_600): Change to insn_and_split,
178 generate new mul64 insn for core multiplication work.
179 (umulsidi_600): Likewise, but use mulu64 insn.
180 (mul64): New pattern, content taken from old mulsidi_600 insn
181 pattern.
182 (mulu64): Likewise, but using umulsidi_600.
183 (mulsidi3): Remove move to destination, this is now handled by
184 mulsidi_600 insn_and_split.
185 (umulsidi3): Likewise, but using umulsidi_600.
186
187 2016-12-16 Richard Biener <rguenther@suse.de>
188
189 PR c++/71694
190 * langhooks-def.h (lhd_unit_size_without_reusable_padding): Declare.
191 (LANG_HOOKS_UNIT_SIZE_WITHOUT_REUSABLE_PADDING): Define.
192 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Adjust.
193 * langhooks.h (struct lang_hooks_for_types): Add
194 unit_size_without_reusable_padding.
195 * langhooks.c (lhd_unit_size_without_reusable_padding): New.
196 * stor-layout.c (finish_bitfield_representative): Use
197 unit_size_without_reusable_padding langhook to decide on the
198 last representatives size.
199
200 2016-12-16 Richard Biener <rguenther@suse.de>
201
202 PR middle-end/71632
203 * expr.c (expand_cond_expr_using_cmove): Bail out early if
204 we end up recursing via TER.
205
206 2016-12-15 Martin Sebor <msebor@redhat.com>
207
208 PR bootstrap/78817
209 * vec.h (vec<T, va_heap, vl_ptr>::safe_grow_cleared): Assert
210 a pointer is non-null.
211
212 2016-12-15 Andrew Senkevich <andrew.senkevich@intel.com>
213
214 * config/i386/avx512bwintrin.h: Add new k-mask intrinsics.
215 * config/i386/avx512dqintrin.h: Ditto.
216 * config/i386/avx512fintrin.h: Ditto.
217 * config/i386/i386-builtin.def (__builtin_ia32_kmovb,
218 __builtin_ia32_kmovd, __builtin_ia32_kmovq): New.
219 (__builtin_ia32_kmov16): Rename to __builtin_ia32_kmovw.
220 * config/i386/sse.md (kmov<mskmodesuffix>): New.
221
222 2016-12-15 Uros Bizjak <ubizjak@gmail.com>
223
224 * config/i386/i386.md (ffs<mode>2): Generate CCCmode flags register
225 for TARGET_BMI.
226 (ffssi2_no_cmove): Ditto.
227 (*tzcnt<mode>_1_falsedep_1): New insn_and_split pattern.
228 (*tzcnt<mode>_1_falsedep): New insn pattern.
229
230 (LT_ZCNT): New mode iterator.
231 (lt_zcnt): New mode attribute.
232 (lt_zcnt_type): New mode attribute.
233 (<lt_zcnt>_<mode>): Macroize expander from bmi_tzcnt_<mode> and
234 lzcnt_<mode> using LT_ZCNT mode iterator.
235 (*<lt_zcnt>_<mode>_falsedep_1): Macroize insn from
236 *bmi_tzcnt_<mode>_falsedep_1 and *lzcnt_<mode>_falsedep_1
237 using LT_ZCNT mode iterator.
238 (*<lt_zcnt>_<mode>_falsedep): Macroize insn from
239 *bmi_tzcnt_<mode>_falsedep and *lzcnt_<mode>_falsedep
240 using LT_ZCNT mode iterator.
241 (*<lt_zcnt>_<mode>): Macroize insn from *bmi_tzcnt_<mode>
242 and *lzcnt_<mode> using LT_ZCNT mode iterator.
243 * config/i386/i386-builtin.def (__builtin_ia32_tzcnt_u16)
244 (__builtin_ia32_tzcnt_u32, __builtin_ia32_tzcnt_u64, __builtin_ctzs):
245 Update for rename.
246
247 2016-12-15 Jakub Jelinek <jakub@redhat.com>
248
249 * ipa-cp.c (class ipcp_bits_lattice): Formatting fixes.
250 (print_ipcp_constant_value): Likewise.
251 (ipcp_cloning_candidate_p): Likewise.
252 (ipcp_bits_lattice::get_value_and_mask): Likewise.
253 (ipcp_bits_lattice::meet_with_1): Likewise.
254 (ipcp_bits_lattice::meet_with): Likewise.
255 (initialize_node_lattices): Likewise.
256 (ipcp_lattice::add_value): Likewise.
257 (propagate_vals_accross_pass_through): Renamed to ...
258 (propagate_vals_across_pass_through): ... this function.
259 (propagate_vals_accross_ancestor): Renamed to ...
260 (propagate_vals_across_ancestor): ... this.
261 (propagate_scalar_accross_jump_function): Renamed to ...
262 (propagate_scalar_across_jump_function): ... this.
263 Adjust calls to above functions.
264 (propagate_context_accross_jump_function): Renamed to ...
265 (propagate_context_across_jump_function): ... this.
266 (propagate_bits_accross_jump_function): Renamed to ...
267 (propagate_bits_accross_jump_function): ... this. Formatting fixes.
268 (propagate_vr_accross_jump_function): Renamed to ...
269 (propagate_vr_across_jump_function): ... this.
270 (merge_agg_lats_step): Formatting fixes.
271 (propagate_constants_accross_call): Renamed to ...
272 (propagate_constants_across_call): ... this. Adjust calls to above
273 functions.
274 (ipa_get_indirect_edge_target_1): Formatting fixes.
275 (gather_context_independent_values): Likewise.
276 (estimate_local_effects): Likewise.
277 (add_all_node_vals_to_toposort): Likewise.
278 (propagate_constants_topo): Adjust calls to above functions.
279 (get_replacement_map): Formatting fixes.
280 (dump_profile_updates): Likewise.
281 (update_profiling_info): Likewise.
282 (update_specialized_profile): Likewise.
283 (create_specialized_node): Likewise.
284 (find_more_contexts_for_caller_subset): Likewise.
285 (decide_whether_version_node): Likewise.
286 (identify_dead_nodes): Likewise.
287 (ipcp_decision_stage): Likewise.
288 (ipcp_store_bits_results): Likewise.
289 (ipcp_store_vr_results): Likewise.
290 (ipcp_driver): Likewise.
291
292 2016-12-15 David Malcolm <dmalcolm@redhat.com>
293
294 PR preprocessor/78680
295 PR preprocessor/78811
296 * input.c (struct selftest::lexer_test): Add field
297 m_implicitly_expect_EOF.
298 (selftest::lexer_error_sink): New class.
299 (selftest::lexer_error_sink::s_singleton): New global.
300 (selftest::lexer_test::lexer_test): Initialize new field
301 "m_implicitly_expect_EOF".
302 (selftest::lexer_test::~lexer_test): Conditionalize the
303 check for the EOF token on the new field.
304 (selftest::test_lexer_string_locations_raw_string_unterminated):
305 New function.
306 (selftest::input_c_tests): Call the new test.
307
308 2016-12-15 Wilco Dijkstra <wdijkstr@arm.com>
309
310 * config/arm/arm.h (TARGET_BACKTRACE): Use crtl->is_leaf.
311 * config/arm/arm.c (arm_option_check_internal): Improve comment.
312 (thumb_force_lr_save): Use crtl->is_leaf.
313 (arm_get_frame_offsets): Remove comment. Use crtl->is_leaf.
314 (thumb_far_jump_used_p): Remove comment.
315 (arm_frame_pointer_required): Use crtl->is_leaf.
316
317 2016-12-15 Jakub Jelinek <jakub@redhat.com>
318
319 * doc/extend.texi: Clean up @xref{...} uses.
320 * doc/invoke.texi: Likewise.
321
322 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
323
324 * arm-fpus.def: Add CNAME field to all FPU definitions.
325 * genopt.sh: Use explicit enumeration tags for FPU entries.
326 * arm-tables.opt: Regenerated.
327 * arm.opt (mfpu): Provide initial value.
328 * arm-opts.h (enum fpu_type): Build the enumeration from the list of
329 available FPUs. Add 'auto' entry on the end.
330 * arm.c (arm_configure_build_target): Only do explicit configuration
331 of the FPU features if the selected FPU is not 'auto'.
332 (arm_option_override): Adjust initialization of arm_fpu_index.
333 Emit an error if we have a hard float ABI request, but the processor
334 does not support floating-point.
335 (arm_option_print): Handle -mfpu=auto.
336 (arm_valid_target_attribute_rec): Don't permit fpu=auto in pragmas
337 or function attributes.
338 (arm_identify_fpu_from_isa): Handle effective soft-float when
339 the FPU is automatically detected.
340 * arm-cores.def (arm1136jf-s): Add feature ISA_FP_DBL.
341 (arm1176jzf-s): Likewise.
342 (mpcore): Likewise.
343 (arm1156t2f-s): Likewise.
344
345 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
346
347 * arm-fpus.def (ARM_FPU): Remove features field from all definitions.
348 * arm.h (arm_fpu_feature_set): Delete typedef.
349 (FPU_FL_NONE): Delete.
350 (FPU_FL_NEON): Delete.
351 (FPU_FL_FP16): Delete.
352 (FPU_FL_CRYPTO): Delete.
353 (FPU_FL_DBL): Delete.
354 (FPU_FL_D32): Delete.
355 (FPU_FL_VFPv2): Delete.
356 (FPU_FL_VFPv3): Delete.
357 (FPU_FL_VFPv4): Delete.
358 (FPU_FL_VFPv5): Delete.
359 (FPU_FL_AMRv8): Delete.
360 (FPU_VFPv2): Delete.
361 (FPU_VFPv3): Delete.
362 (FPU_VFPv4): Delete.
363 (FPU_VFPv5): Delete.
364 (FPU_ARMv8): Delete.
365 (FPU_DBL): Delete.
366 (FPU_D32): Delete.
367 (FPU_NEON): Delete.
368 (FPU_CRYPTO): Delete.
369 (FPU_FP16): Delete.
370 (arm_fpu_desc): Delete features field.
371 * arm.c (all_fpus): Don't initialize feature field.
372
373 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
374
375 * arm.c (arm_can_inline_p): Use ISA features for determining
376 inlinability.
377
378 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
379
380 * arm-protos.h (arm_configure_build_target): Change second argument
381 to cl_target_options.
382 * arm.c (arm_configure_build_target): Likewise.
383 (arm_option_restore): Update accordingly.
384 (arm_option_override): Create the target_option_default_node before
385 calling arm_configure_build_target. Use it in call of latter.
386 Resynchronize after all other overrides have been calculated.
387 (arm_valid_target_attribute_tree): Use the target options for
388 reconfiguration. Resynchronize after performing override checks.
389 * arm-c.c (arm_pragma_target_parse): Use target optiosn from cur_tree
390 to reconfigure the build target.
391
392 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
393
394 * arm.h (TARGET_VFPD32): Use arm_active_target.
395 (TARGET_VFP3): Likewise.
396 (TARGET_VFP5): Likewise.
397 (TARGET_VFP_SINGLE): Likewise.
398 (TARGET_VFP_DOUBLE): Likewise.
399 (TARGET_NEON_FP16): Likewise.
400 (TARGET_FP16): Likewise.
401 (TARGET_FMA): Likewise.
402 (TARGET_FPU_ARMV8): Likewise.
403 (TARGET_CRYPTO): Likewise.
404 (TARGET_NEON): Likewise.
405 (TARGET_FPU_FEATURES): Delete.
406 * arm.c (arm_option_check_internal): Check for iwmmxt conflict with
407 Neon using arm_active_target.
408
409 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
410
411 * arm.h (TARGET_FPU_NAME): Delete.
412 * arm.c (arm_identify_fpu_from_isa): New function.
413 (arm_declare_function_name): Use it to get the name for the FPU.
414
415 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
416
417 * arm-protos.h: Include sbitmap.h
418 (arm_configure_build_target): Make public.
419 * arm.c (arm_configure_build_target): Now not static.
420 (arm_valid_target_attribute_rec): Move internal option check to...
421 (arm_valid_target_attribute_tree0: ... here. Also reconfingure the
422 active target.
423 (arm_override_options_after_change): Call arm_configure_build_target.
424 (isa_all_fpubits): Renamed from isa_fpubits.
425 (arm_option_restore): New function.
426 (TARGET_OPTION_RESTORE): Register it.
427 (arm_configure_build_target): Initialize the FPU capability bits in
428 the isa.
429 (arm_option_override): Move the code that forces the setting of the
430 FPU option before the call to arm_configure_build_target.
431 * arm.opt (march): Mark as Save.
432 (mcpu, mtune): Likewise.
433 * arm-c.c (arm_pragma_target_parse): Reconfigure the build target
434 after pragmas change the target options.
435
436 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
437
438 * arm-isa.h (isa_feature): Add bits for VFPv4, FPv5, fp16conv,
439 fP_dbl, fp_d32 and fp_crypto.
440 (ISA_ALL_FPU): Add all the new bits.
441 (ISA_VFPv2, ISA_VFPv3, ISA_VFPv4, ISA_FPv5): New macros.
442 (ISA_FP_ARMv8, ISA_FP_DBL, ISA_FP_D32, ISA_NEON, ISA_CRYPTO): Likewise.
443 * arm-fpus.def: Add ISA features to all FPUs.
444 * arm.h: (arm_fpu_desc): Add new field for ISA bits.
445 * arm.c (all_fpus): Initialize it.
446 * arm-tables.opt: Regenerated.
447
448 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
449
450 * arm.h (FPU_FL_VFPv2) New feature bit.
451 (FPU_FL_VFPv3, FPU_FL_VFPv4, FPU_FL_VFPv5, FPU_FL_ARMv8): Likewise.
452 (FPU_VFPv2, FPU_VFPv3, FPU_VFPv4, FPU_VFPv5, FPU_ARMv8): New helper
453 macros.
454 (FPU_DBL, FPU_D32, FPU_NEON, FPU_CRYPTO, FPU_FP16): Likewise.
455 (TARGET_FPU_REV): Delete.
456 (TARGET_VFP3): Use feature bits.
457 (TARGET_VFP5): Likewise.
458 (TARGET_FMA): Likewise.
459 (TARGET_FPU_ARMV8): Likewise.
460 (struct arm_fpu_desc): Delete rev field.
461 * arm-fpus.def: Delete REV entry, use new feature bits and macros.
462 * arm.c (all_fpus): Delete rev field.
463
464 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
465
466 * arm.h (vfp_reg_type): Delete.
467 (TARGET_FPU_REGS): Delete.
468 (arm_fpu_desc): Delete regs field.
469 (FPU_FL_NONE, FPU_FL_NEON, FPU_FL_FP16, FPU_FL_CRYPTO): Use unsigned
470 values.
471 (FPU_FL_DBL, FPU_FL_D32): Define.
472 (TARGET_VFPD32): Use feature test.
473 (TARGET_VFP_SINGLE): Likewise.
474 (TARGET_VFP_DOUBLE): Likewise.
475 * arm-fpus.def: Update all entries for new feature bits.
476 * arm.c (all_fpus): Update initializer macro.
477 (arm_can_inline_p): Remove test on fpu regs.
478
479 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
480
481 * arm.h (arm_fp_model): Delete.
482
483 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
484
485 * arm-cores.def: Remove FLAGS field from all core definitions.
486 * arm-arches.def: Likewise.
487 * arm-opts.h (enum processor_type): Remove FLAGS parameter from
488 ARM_CORES macro.
489 (arm_arch_core_flags): Likewise, plus ARM_ARCH macro.
490 * arm-protos.h (FL_*): Delete.
491 (arm_feature_set): Delete.
492 (ARM_FSET_*): Delete.
493 * arm.c (struct processors): Delete flags field.
494 (all_cores): Delete FLAGS parameter from macro, don't initialize flags.
495 (all architectures): Likewise.
496
497 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
498
499 * arm-opts.h (struct arm_arch_core_flag): Add new field ISA.
500 Initialize it.
501 (arm_arch_core_flag): Delete flags field.
502 (arm_arch_core_flags): Don't initialize flags field.
503 * common/config/arm/arm-common.c (check_isa_bits_for): New function.
504 (arm_target_thumb_only): Use new isa bits arrays.
505
506 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
507
508 * arm-protos.h (insn_flags): Delete declaration.
509 (arm_arch7ve): Declare.
510 * arm.c (insn_flags): Delete.
511 (arm_arch7ve): New variable.
512 (arm_selected_cpu): Delete.
513 (arm_option_check_internal): Use new ISA bitmap.
514 (arm_option_override_internal): Likewise.
515 (arm_configure_build_target): Declare arm_selected_cpu locally.
516 (arm_option_override): Use new ISA bitmap. Initialize arm_arch7ve.
517 Rearrange variable intialization by general function.
518 * arm.h (TARGET_HAVE_LPAE): Use arm_arch7ve.
519
520 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
521
522 * arm-builtins.c: Include sbitmap.h.
523 (def_mbuiltin): Change first parameter to a flag bit. Use it to test
524 available features in the current target.
525 (struct builtin_description): Change type of feature field.
526 (IWMMXT_BUILTIN): Use the isa_features types.
527 (IWMMXT2_BUILTIN): Likewise.
528 (IWMMXT_BUILTIN2): Likewise.
529 (IWMMXT2_BUILTIN2): Likewise.
530 (CRC32_BUILTIN): Likewise.
531 (CRYPTO_BUILTIN): Likewise.
532 (iwmmx_builtin): Likewise.
533 (iwmmx2_builtin): Likewise.
534 (arm_iwmmxt_builtin): Check for specific feature bits.
535
536 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
537
538 * arm-isa.h (enum isa_feature): Add isa_quirk_cm3_ldrd.
539 (ISA_ALL_QUIRKS): New macro.
540 * arm-cores.def (cortex-m3): Add isa_quirk_cm3_ldrd to isa feature list.
541 * arm.c (isa_quirkbits): New feature-list bitmap.
542 (arm_configure_build_target): Ignore quirk bits when comparing an
543 architecture feature list with a CPU feature list.
544 (arm_option_override): Initialize_isa_quirkbits. If the user has
545 not specified -m[no-]fix-cortex-m3-ldrd, automatically enable the
546 feature if isa_quirk_cm3_ldrd appears in the isa feature list.
547
548 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
549
550 * arm.c (arm_option_override): Use arm_active_target as source of
551 information for arm_base_arch and arm_arch_name.
552 * (arm_file_start): Use arm_active_target for core name.
553
554 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
555
556 * arm.c (arm_selected_tune): Delete static variable.
557 (arm_selected_arch): Likewise.
558 (arm_configure_build_target): Declare local versions of arm_selected
559 target and arm_selected_arch. Initialize more fields in target
560 data structure.
561 (arm_option_override): Use arm_active_target instead of
562 arm_selected_tune and arm_selected_arch.
563 (asm_file_start): Use arm_active_target.
564
565 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
566
567 * arm-protos.h (arm_build_target): New structure.
568 (arm_active_target): Declare it.
569 * arm.c (arm_active_target): New variable.
570 (bitmap_popcount): New function.
571 (feature_count): Delete.
572 (arm_initialize_isa): New function.
573 isa_fpubits): New variable.
574 (arm_configure_build_target): New function.
575 (arm_option_override): Initialize isa_fpubits and arm_active_target.isa.
576 Use arm_configure_build_target.
577
578 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
579
580 * arm-isa.h: New file.
581 * arm-protos.h: Include it.
582 * arm-arches.def: Add new ISA field to all entries. Drop bogus
583 armv8.1-a+crc architecture.
584 * arm-cores.def: Similarly. Group ARMv8 cores by profile.
585 * arm-opts.h (enum processor_type): Adjust for new field.
586 * arm.c (struct processors): New field 'isa_bits'.
587 (all_cores, all_architectures): Initialize new field.
588 * arm-tables.opt: Regenerated.
589 * arm-tune.md: Regenerated.
590
591 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
592
593 * arm-arches.def (ARM_ARCH): Add extra field TUNE_FLAGS, move
594 tuning properties from architectural FLAGS field.
595 * arm-cores.def (ARM_CORE): Likewise.
596 * arm-protos.h (TF_LDSCHED, TF_WBUF, TF_CO_PROC): New macros.
597 (TF_SMALLMUL, TF_STRONG, TF_SCALE, TF_NOMODE32): New macros.
598 (FL_LDSCHED, FL_STRONG, FL_WBUF, FL_SMALLMUL): Delete.
599 (FL_TUNE): Remove deleted elements.
600 (tune_flags): Convert type to unsigned int.
601 * arm.c (struct processors): Add new field tune_flags.
602 (all_cores, all_arches): Initialize it.
603 (arm_option_override): Adapt uses of tune_flags. Use tune_flags
604 for deciding when we should have slow multiply operations.
605
606 2016-12-14 Martin Sebor <msebor@redhat.com>
607
608 PR middle-end/78519
609 * gimple-ssa-sprintf.c (format_string): Handle null pointers.
610 (format_directive): Diagnose null pointer arguments.
611 (pass_sprintf_length::handle_gimple_call): Diagnose null destination
612 pointers. Correct location of null format string in diagnostics.
613
614 2016-12-14 David Malcolm <dmalcolm@redhat.com>
615
616 * Makefile.in (SELFTEST_FLAGS): Add path argument to -fself-test.
617 (s-selftest): Add dependency on the selftests data directory.
618 * common.opt (fself-test): Rename to...
619 (fself-test=): ...this, documenting the meaning of the argument.
620 * selftest-run-tests.c (along): Likewise.
621 * selftest-run-tests.c: Include "options.h".
622 (selftest::run_tests): Initialize selftest::path_to_selftest_files
623 from flag_self_test.
624 * selftest.c (selftest::path_to_selftest_files): New global.
625 (selftest::locate_file): New function.
626 (selftest::test_locate_file): New function.
627 (selftest_c_tests): Likewise.
628 (selftest::selftest_c_tests): Call test_locate_file.
629 * selftest.h (selftest::locate_file): New decl.
630 (selftest::path_to_selftest_files): New decl.
631
632 2016-12-14 Andrew Pinski <apinski@cavium.com>
633
634 * config/aarch64/aarch64-cores.def: Add -1 as the variant to all
635 of the cores.
636 (thunderx): Update to include LSE by default.
637 (thunderxt88p1): New core.
638 (thunderxt88): New core.
639 (thunderxt81): New core.
640 (thunderxt83): New core.
641 * config/aarch64/driver-aarch64.c (struct aarch64_core_data):
642 Add variant field.
643 (ALL_VARIANTS): New define.
644 (AARCH64_CORE): Support VARIANT operand.
645 (cpu_data): Likewise.
646 (host_detect_local_cpu): Parse variant field of /proc/cpuinfo.
647 Combine the arch and single core case and support variant searching.
648 * common/config/aarch64/aarch64-common.c (AARCH64_CORE):
649 Add VARIANT operand.
650 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Likewise.
651 * config/aarch64/aarch64.c (AARCH64_CORE): Likewise.
652 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
653 * config/aarch64/aarch64-tune.md: Regenerate.
654 * doc/invoke.texi (AARCH64/mtune): Document thunderxt88,
655 thunderxt88p1, thunderxt81, thunderxt83 as available options.
656
657 2016-12-14 Martin Jambor <mjambor@suse.cz>
658
659 * omp-offload.c: Fix coding style.
660 * omp-expand.c: Likewise.
661 * omp-general.c: Likewise.
662 * omp-grid.c: Likewise.
663 * omp-low.c: Fix coding style of parts touched by the
664 previous splitting patch.
665
666 2016-12-14 Martin Jambor <mjambor@suse.cz>
667
668 * omp-general.h: New file.
669 * omp-general.c: New file.
670 * omp-expand.h: Likewise.
671 * omp-expand.c: Likewise.
672 * omp-offload.h: Likewise.
673 * omp-offload.c: Likewise.
674 * omp-grid.c: Likewise.
675 * omp-grid.c: Likewise.
676 * omp-low.h: Include omp-general.h and omp-grid.h. Removed includes
677 of params.h, symbol-summary.h, lto-section-names.h, cilk.h, tree-eh.h,
678 ipa-prop.h, tree-cfgcleanup.h, cfgloop.h, except.h, expr.h, stmt.h,
679 varasm.h, calls.h, explow.h, dojump.h, flags.h, tree-into-ssa.h,
680 tree-cfg.h, cfganal.h, alias.h, emit-rtl.h, optabs.h, expmed.h,
681 alloc-pool.h, cfghooks.h, rtl.h and memmodel.h.
682 (omp_find_combined_for): Declare.
683 (find_omp_clause): Renamed to omp_find_clause and moved to
684 omp-general.h.
685 (free_omp_regions): Renamed to omp_free_regions and moved to
686 omp-expand.h.
687 (replace_oacc_fn_attrib): Renamed to oacc_replace_fn_attrib and moved
688 to omp-general.h.
689 (set_oacc_fn_attrib): Renamed to oacc_set_fn_attrib and moved to
690 omp-general.h.
691 (build_oacc_routine_dims): Renamed to oacc_build_routine_dims and
692 moved to omp-general.h.
693 (get_oacc_fn_attrib): Renamed to oacc_get_fn_attrib and moved to
694 omp-general.h.
695 (oacc_fn_attrib_kernels_p): Moved to omp-general.h.
696 (get_oacc_fn_dim_size): Renamed to oacc_get_fn_dim_size and moved to
697 omp-general.c.
698 (omp_expand_local): Moved to omp-expand.h.
699 (make_gimple_omp_edges): Renamed to omp_make_gimple_edges and moved to
700 omp-expand.h.
701 (omp_finish_file): Moved to omp-offload.h.
702 (default_goacc_validate_dims): Renamed to
703 oacc_default_goacc_validate_dims and moved to omp-offload.h.
704 (offload_funcs, offload_vars): Moved to omp-offload.h.
705 * omp-low.c: Include omp-general.h, omp-offload.h and omp-grid.h.
706 (omp_region): Moved to omp-expand.c.
707 (omp_for_data_loop): Moved to omp-general.h.
708 (omp_for_data): Likewise.
709 (oacc_loop): Moved to omp-offload.c.
710 (oacc_loop_flags): Moved to omp-general.h.
711 (offload_funcs, offload_vars): Moved to omp-offload.c.
712 (root_omp_region): Moved to omp-expand.c.
713 (omp_any_child_fn_dumped): Likewise.
714 (find_omp_clause): Renamed to omp_find_clause and moved to
715 omp-general.c.
716 (is_combined_parallel): Moved to omp-expand.c.
717 (is_reference): Renamed to omp_is_reference and and moved to
718 omp-general.c.
719 (adjust_for_condition): Renamed to omp_adjust_for_condition and moved
720 to omp-general.c.
721 (get_omp_for_step_from_incr): Renamed to omp_get_for_step_from_incr
722 and moved to omp-general.c.
723 (extract_omp_for_data): Renamed to omp_extract_for_data and moved to
724 omp-general.c.
725 (workshare_safe_to_combine_p): Moved to omp-expand.c.
726 (omp_adjust_chunk_size): Likewise.
727 (get_ws_args_for): Likewise.
728 (get_base_type): Removed.
729 (dump_omp_region): Moved to omp-expand.c.
730 (debug_omp_region): Likewise.
731 (debug_all_omp_regions): Likewise.
732 (new_omp_region): Likewise.
733 (free_omp_region_1): Likewise.
734 (free_omp_regions): Renamed to omp_free_regions and moved to
735 omp-expand.c.
736 (find_combined_for): Renamed to omp_find_combined_for, made global.
737 (build_omp_barrier): Renamed to omp_build_barrier and moved to
738 omp-general.c.
739 (omp_max_vf): Moved to omp-general.c.
740 (omp_max_simt_vf): Likewise.
741 (gimple_build_cond_empty): Moved to omp-expand.c.
742 (parallel_needs_hsa_kernel_p): Likewise.
743 (expand_omp_build_assign): Moved declaration to omp-expand.c.
744 (expand_parallel_call): Moved to omp-expand.c.
745 (expand_cilk_for_call): Likewise.
746 (expand_task_call): Likewise.
747 (vec2chain): Likewise.
748 (remove_exit_barrier): Likewise.
749 (remove_exit_barriers): Likewise.
750 (optimize_omp_library_calls): Likewise.
751 (expand_omp_regimplify_p): Likewise.
752 (expand_omp_build_assign): Likewise.
753 (expand_omp_taskreg): Likewise.
754 (oacc_collapse): Likewise.
755 (expand_oacc_collapse_init): Likewise.
756 (expand_oacc_collapse_vars): Likewise.
757 (expand_omp_for_init_counts): Likewise.
758 (expand_omp_for_init_vars): Likewise.
759 (extract_omp_for_update_vars): Likewise.
760 (expand_omp_ordered_source): Likewise.
761 (expand_omp_ordered_sink): Likewise.
762 (expand_omp_ordered_source_sink): Likewise.
763 (expand_omp_for_ordered_loops): Likewise.
764 (expand_omp_for_generic): Likewise.
765 (expand_omp_for_static_nochunk): Likewise.
766 (find_phi_with_arg_on_edge): Likewise.
767 (expand_omp_for_static_chunk): Likewise.
768 (expand_cilk_for): Likewise.
769 (expand_omp_simd): Likewise.
770 (expand_omp_taskloop_for_outer): Likewise.
771 (expand_omp_taskloop_for_inner): Likewise.
772 (expand_oacc_for): Likewise.
773 (expand_omp_for): Likewise.
774 (expand_omp_sections): Likewise.
775 (expand_omp_single): Likewise.
776 (expand_omp_synch): Likewise.
777 (expand_omp_atomic_load): Likewise.
778 (expand_omp_atomic_store): Likewise.
779 (expand_omp_atomic_fetch_op): Likewise.
780 (expand_omp_atomic_pipeline): Likewise.
781 (expand_omp_atomic_mutex): Likewise.
782 (expand_omp_atomic): Likewise.
783 (oacc_launch_pack): and moved to omp-general.c, made public.
784 (OACC_FN_ATTRIB): Likewise.
785 (replace_oacc_fn_attrib): Renamed to oacc_replace_fn_attrib and moved
786 to omp-general.c.
787 (set_oacc_fn_attrib): Renamed to oacc_set_fn_attrib and moved to
788 omp-general.c.
789 (build_oacc_routine_dims): Renamed to oacc_build_routine_dims and
790 moved to omp-general.c.
791 (get_oacc_fn_attrib): Renamed to oacc_get_fn_attrib and moved to
792 omp-general.c.
793 (oacc_fn_attrib_kernels_p): Moved to omp-general.c.
794 (oacc_fn_attrib_level): Moved to omp-offload.c.
795 (get_oacc_fn_dim_size): Renamed to oacc_get_fn_dim_size and moved to
796 omp-general.c.
797 (get_oacc_ifn_dim_arg): Renamed to oacc_get_ifn_dim_arg and moved to
798 omp-general.c.
799 (mark_loops_in_oacc_kernels_region): Moved to omp-expand.c.
800 (grid_launch_attributes_trees): Likewise.
801 (grid_attr_trees): Likewise.
802 (grid_create_kernel_launch_attr_types): Likewise.
803 (grid_insert_store_range_dim): Likewise.
804 (grid_get_kernel_launch_attributes): Likewise.
805 (get_target_argument_identifier_1): Likewise.
806 (get_target_argument_identifier): Likewise.
807 (get_target_argument_value): Likewise.
808 (push_target_argument_according_to_value): Likewise.
809 (get_target_arguments): Likewise.
810 (expand_omp_target): Likewise.
811 (grid_expand_omp_for_loop): Moved to omp-grid.c.
812 (grid_arg_decl_map): Likewise.
813 (grid_remap_kernel_arg_accesses): Likewise.
814 (grid_expand_target_grid_body): Likewise.
815 (expand_omp): Renamed to omp_expand and moved to omp-expand.c.
816 (build_omp_regions_1): Moved to omp-expand.c.
817 (build_omp_regions_root): Likewise.
818 (omp_expand_local): Likewise.
819 (build_omp_regions): Likewise.
820 (execute_expand_omp): Likewise.
821 (pass_data_expand_omp): Likewise.
822 (pass_expand_omp): Likewise.
823 (make_pass_expand_omp): Likewise.
824 (pass_data_expand_omp_ssa): Likewise.
825 (pass_expand_omp_ssa): Likewise.
826 (make_pass_expand_omp_ssa): Likewise.
827 (grid_lastprivate_predicate): Renamed to
828 omp_grid_lastprivate_predicate and moved to omp-grid.c, made public.
829 (grid_prop): Moved to omp-grid.c.
830 (GRID_MISSED_MSG_PREFIX): Likewise.
831 (grid_safe_assignment_p): Likewise.
832 (grid_seq_only_contains_local_assignments): Likewise.
833 (grid_find_single_omp_among_assignments_1): Likewise.
834 (grid_find_single_omp_among_assignments): Likewise.
835 (grid_find_ungridifiable_statement): Likewise.
836 (grid_parallel_clauses_gridifiable): Likewise.
837 (grid_inner_loop_gridifiable_p): Likewise.
838 (grid_dist_follows_simple_pattern): Likewise.
839 (grid_gfor_follows_tiling_pattern): Likewise.
840 (grid_call_permissible_in_distribute_p): Likewise.
841 (grid_handle_call_in_distribute): Likewise.
842 (grid_dist_follows_tiling_pattern): Likewise.
843 (grid_target_follows_gridifiable_pattern): Likewise.
844 (grid_remap_prebody_decls): Likewise.
845 (grid_var_segment): Likewise.
846 (grid_mark_variable_segment): Likewise.
847 (grid_copy_leading_local_assignments): Likewise.
848 (grid_process_grid_body): Likewise.
849 (grid_eliminate_combined_simd_part): Likewise.
850 (grid_mark_tiling_loops): Likewise.
851 (grid_mark_tiling_parallels_and_loops): Likewise.
852 (grid_process_kernel_body_copy): Likewise.
853 (grid_attempt_target_gridification): Likewise.
854 (grid_gridify_all_targets_stmt): Likewise.
855 (grid_gridify_all_targets): Renamed to omp_grid_gridify_all_targets
856 and moved to omp-grid.c, made public.
857 (make_gimple_omp_edges): Renamed to omp_make_gimple_edges and moved to
858 omp-expand.c.
859 (add_decls_addresses_to_decl_constructor): Moved to omp-offload.c.
860 (omp_finish_file): Likewise.
861 (oacc_thread_numbers): Likewise.
862 (oacc_xform_loop): Likewise.
863 (oacc_default_dims, oacc_min_dims): Likewise.
864 (oacc_parse_default_dims): Likewise.
865 (oacc_validate_dims): Likewise.
866 (new_oacc_loop_raw): Likewise.
867 (new_oacc_loop_outer): Likewise.
868 (new_oacc_loop): Likewise.
869 (new_oacc_loop_routine): Likewise.
870 (finish_oacc_loop): Likewise.
871 (free_oacc_loop): Likewise.
872 (dump_oacc_loop_part): Likewise.
873 (dump_oacc_loop): Likewise.
874 (debug_oacc_loop): Likewise.
875 (oacc_loop_discover_walk): Likewise.
876 (oacc_loop_sibling_nreverse): Likewise.
877 (oacc_loop_discovery): Likewise.
878 (oacc_loop_xform_head_tail): Likewise.
879 (oacc_loop_xform_loop): Likewise.
880 (oacc_loop_process): Likewise.
881 (oacc_loop_fixed_partitions): Likewise.
882 (oacc_loop_auto_partitions): Likewise.
883 (oacc_loop_partition): Likewise.
884 (default_goacc_fork_join): Likewise.
885 (default_goacc_reduction): Likewise.
886 (execute_oacc_device_lower): Likewise.
887 (default_goacc_validate_dims): Likewise.
888 (default_goacc_dim_limit): Likewise.
889 (pass_data_oacc_device_lower): Likewise.
890 (pass_oacc_device_lower): Likewise.
891 (make_pass_oacc_device_lower): Likewise.
892 (execute_omp_device_lower): Likewise.
893 (pass_data_omp_device_lower): Likewise.
894 (pass_omp_device_lower): Likewise.
895 (make_pass_omp_device_lower): Likewise.
896 (pass_data_omp_target_link): Likewise.
897 (pass_omp_target_link): Likewise.
898 (find_link_var_op): Likewise.
899 (pass_omp_target_link::execute): Likewise.
900 (make_pass_omp_target_link): Likewise.
901 * Makefile.in (OBJS): Added omp-offload.o, omp-expand.o, omp-general.o
902 and omp-grid.o.
903 (GTFILES): Added omp-offload.h, omp-offload.c and omp-expand.c, removed
904 omp-low.h.
905 * gimple-fold.c: Include omp-general.h instead of omp-low.h.
906 (fold_internal_goacc_dim): Adjusted calls to
907 get_oacc_ifn_dim_arg and get_oacc_fn_dim_size to use their new names.
908 * gimplify.c: Include omp-low.h.
909 (omp_notice_variable): Adjust the call to get_oacc_fn_attrib to use
910 its new name.
911 (gimplify_omp_task): Adjusted calls to find_omp_clause to use its new
912 name.
913 (gimplify_omp_for): Likewise.
914 * lto-cgraph.c: Include omp-offload.h instead of omp-low.h.
915 * toplev.c: Include omp-offload.h instead of omp-low.h.
916 * tree-cfg.c: Include omp-general.h instead of omp-low.h. Also
917 include omp-expand.h.
918 (make_edges_bb): Adjusted the call to make_gimple_omp_edges to use its
919 new name.
920 (make_edges): Adjust the call to free_omp_regions to use its new name.
921 * tree-parloops.c: Include omp-general.h.
922 (create_parallel_loop): Adjusted the call to set_oacc_fn_attrib to use
923 its new name.
924 (parallelize_loops): Adjusted the call to get_oacc_fn_attrib to use
925 its new name.
926 * tree-ssa-loop.c: Include omp-general.h instead of omp-low.h.
927 (gate_oacc_kernels): Adjusted the call to get_oacc_fn_attrib to use
928 its new name.
929 * tree-vrp.c: Include omp-general.h instead of omp-low.h.
930 (extract_range_basic): Adjusted calls to get_oacc_ifn_dim_arg and
931 get_oacc_fn_dim_size to use their new names.
932 * varpool.c: Include omp-offload.h instead of omp-low.h.
933 * gengtype.c (open_base_files): Replace omp-low.h with omp-offload.h in
934 ifiles.
935 * config/nvptx/nvptx.c: Include omp-general.c.
936 (nvptx_expand_call): Adjusted the call to get_oacc_fn_attrib to use
937 its new name.
938 (nvptx_reorg): Likewise.
939 (nvptx_record_offload_symbol): Likewise.
940
941 2016-12-14 Martin Sebor <msebor@redhat.com>
942
943 PR middle-end/78786
944 * gimple-ssa-sprintf.c (target_dir_max): New macro.
945 (get_mpfr_format_length): New function.
946 (format_integer): Use HOST_WIDE_INT instead of int.
947 (format_floating_max): Same.
948 (format_floating): Call get_mpfr_format_length.
949 (format_directive): Use target_dir_max.
950
951 2016-12-14 Jakub Jelinek <jakub@redhat.com>
952
953 PR target/78791
954 * config/i386/i386.h (enum ix86_stack_slot): Add SLOT_STV_TEMP.
955 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies,
956 dimode_scalar_chain::convert_reg): Use SLOT_STV_TEMP instead of
957 SLOT_TEMP.
958
959 2016-12-14 Uros Bizjak <ubizjak@gmail.com>
960
961 PR target/59874
962 * config/i386/i386-builtin.def: Add __builtin_clzs and __builtin_ctzs.
963 (ix86_fold_builtin): Handle IX86_BUILTIN_CTZS and IX86_BUILTIN_CLZS.
964 * config/i386/i386.md (*ctzhi2): New insn_and_split pattern.
965 (*clzhi2): Ditto.
966
967 2016-12-14 Jakub Jelinek <jakub@redhat.com>
968
969 PR debug/77844
970 * valtrack.c: Include rtl-iter.h.
971 (struct rtx_subst_pair): Add insn field.
972 (propagate_for_debug_subst): If pair->to contains at least 2
973 regs, create a DEBUG_INSN with a debug temp before pair->insn
974 and replace from with the debug temp instead of pair->to.
975 (propagate_for_debug): Initialize p.insn.
976 * combine.c (insn_uid_check): New inline function.
977 (INSN_COST, LOG_LINKS): Use it instead of INSN_UID.
978 (find_single_use, combine_instructions,
979 cant_combine_insn_p, try_combine): Use NONDEBUG_INSN_P instead of
980 INSN_P.
981
982 2016-12-14 Martin Sebor <msebor@redhat.com>
983
984 PR c/17308
985 * builtin-attrs.def (ATTR_NONNULL_1_1, ATTR_NONNULL_1_2): Defined.
986 (ATTR_NONNULL_1_3, ATTR_NONNULL_1_4, ATTR_NONNULL_1_5): Same.
987 (ATTR_NOTHROW_NONNULL_1_1, ATTR_NOTHROW_NONNULL_1_2): Same.
988 (ATTR_NOTHROW_NONNULL_1_3, ATTR_NOTHROW_NONNULL_1_4): Same.
989 (ATTR_NOTHROW_NONNULL_1_5): Same.
990 (ATTR_NONNULL_1_FORMAT_PRINTF_1_2): Same.
991 (ATTR_NONNULL_1_FORMAT_PRINTF_2_0): Same.
992 (ATTR_NONNULL_1_FORMAT_PRINTF_2_3): Same.
993 (ATTR_NONNULL_1_FORMAT_PRINTF_3_0): Same.
994 (ATTR_NONNULL_1_FORMAT_PRINTF_3_4): Same.
995 (ATTR_NONNULL_1_FORMAT_PRINTF_4_0): Same.
996 (ATTR_NONNULL_1_FORMAT_PRINTF_4_5): Same.
997 * builtins.c (validate_arg): Add argument. Treat null pointers
998 passed to nonnull arguments as invalid.
999 (validate_arglist): Same.
1000 * builtins.def (fprintf, fprintf_unlocked): Add nonnull attribute.
1001 (printf, printf_unlocked, sprintf. vfprintf, vsprintf): Same.
1002 (__sprintf_chk, __vsprintf_chk, __fprintf_chk, __vfprintf_chk): Same.
1003 * calls.c (get_nonnull_ags, maybe_warn_null_arg): New functions.
1004 (initialize_argument_information): Diagnose null pointers passed to
1005 arguments declared nonnull.
1006 * calls.h (get_nonnull_args): Declared.
1007
1008 2016-12-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1009
1010 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): On ISA
1011 3.0/power9, add support to use the VEXTU{B,H,W}{L,R}X extract
1012 instructions.
1013 * config/rs6000/vsx.md (VSr2): Add IEEE 128-bit floating point
1014 type constraint registers.
1015 (VSr3): Likewise.
1016 (FL_CONV): New mode iterator for binary floating types that have a
1017 direct conversion from 64-bit integer to floating point.
1018 (vsx_extract_<mode>_p9): Add support for the ISA 3.0/power9
1019 VEXTU{B,H,W}{L,R}X extract instructions.
1020 (vsx_extract_<mode>_p9 splitter): Add splitter to load up the
1021 extract byte position into the GPR if we are using the
1022 VEXTU{B,H,W}{L,R}X extract instructions.
1023 (vsx_extract_<mode>_di_p9): Support extracts to GPRs.
1024 (vsx_extract_<mode>_store_p9): Support extracting to GPRs so that
1025 we can use reg+offset address instructions.
1026 (vsx_extract_<mode>_var): Support extracts to GPRs.
1027 (vsx_extract_<VSX_EXTRACT_I:mode>_<SDI:mode>_var): New combiner
1028 insn to combine vector extracts with zero_extend.
1029 (vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>): Optimize
1030 extracting a small integer vector element and converting it to a
1031 floating point type.
1032 (vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Likewise.
1033 (UNSPEC_XXEXTRACTUW): New unspec.
1034 (UNSPEC_XXINSERTW): Likewise.
1035 (vextract4b): Add support for the vec_vextract4b built-in
1036 function.
1037 (vextract4b_internal): Likewise.
1038 (vinsert4b): Add support for the vec_insert4b built-in function.
1039 Include both a version that inserts element 1 from a V4SI object
1040 and one that inserts a DI object.
1041 (vinsert4b_internal): Likewise.
1042 (vinsert4b_di): Likewise.
1043 (vinsert4b_di_internal): Likewise.
1044 * config/rs6000/predicates.md (const_0_to_11_operand): New
1045 predicate, match 0..11.
1046 * config/rs6000/rs6000-builtin.def (BU_P9V_VSX_3): Set built-in
1047 type to ternary, not binary.
1048 (BU_P9V_64BIT_VSX_3): Likewise.
1049 (P9V_BUILTIN_VEXTRACT4B): Add support for vec_vinsert4b and
1050 vec_extract4b non-overloaded built-in functions.
1051 (P9V_BUILTIN_VINSERT4B): Likewise.
1052 (P9V_BUILTIN_VINSERT4B_DI): Likewise.
1053 (P9V_BUILTIN_VEC_VEXTULX): Move to section that adds 2 operand ISA
1054 3.0 built-in functions.
1055 (P9V_BUILTIN_VEC_VEXTURX): Likewise.
1056 (P9V_BUILTIN_VEC_VEXTRACT4B): Add support for overloaded
1057 vec_insert4b and vec_extract4 built-in functions.
1058 (P9V_BUILTIN_VEC_VINSERT4B): Likewise.
1059 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1060 overloaded support for vec_vinsert4b and vec_extract4b.
1061 * config/rs6000/rs6000.c (altivec_expand_builtin): Add checks for
1062 the vec_insert4b and vec_extract4b byte number being a constant in
1063 the range 0..11.
1064 * config/rs6000/altivec.h (vec_vinsert4b): Support vec_vinsert4b
1065 and vec_extract4b built-in functions.
1066 * doc/extend.doc (PowerPC VSX built-in functions): Document
1067 vec_insert4b and vec_extract4b.
1068
1069 2016-12-14 Martin Liska <mliska@suse.cz>
1070
1071 * gimple-pretty-print.c (dump_probability): New function.
1072 (dump_edge_probability): Use the function.
1073 (dump_gimple_label): Likewise.
1074 (dump_gimple_bb_header): Likewise.
1075
1076 2016-12-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1077 Jakub Jelinek <jakub@redhat.com>
1078
1079 * tree-ssa-strlen.c (fold_strstr_to_memcmp): New function.
1080 (strlen_optimize_stmt): Call fold_strstr_to_memcmp.
1081
1082 2016-12-14 Eric Botcazou <ebotcazou@adacore.com>
1083
1084 * lra-constraints.c (process_address_1): Do not attempt to decompose
1085 addresses for MEMs that satisfy fixed-form constraints.
1086
1087 2016-12-14 Richard Biener <rguenther@suse.de>
1088
1089 PR tree-optimization/78788
1090 * tree-vrp.c (set_value_range): Allow [-INF(OVF), +INF(OVF)].
1091 (set_and_canonicalize_value_range): Do not drop the above to
1092 VARYING.
1093
1094 2016-12-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1095
1096 * config/rs6000/rs600.c (rs6000_builtin_vectorization_cost):
1097 Adjust unaligned load cost.
1098
1099 2016-12-13 Uros Bizjak <ubizjak@gmail.com>
1100
1101 PR target/78794
1102 * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain):
1103 Calculate additional gain for andnot for targets without BMI.
1104
1105 2016-12-13 Carl Love <cel@us.ibm.com>
1106
1107 * config/rs6000/rs6000-c.c: Add built-in support for
1108 vector float vec_pack (vector double, vector double)
1109 vector double vec_sld (vector double, vector double)
1110 * config/rs6000/rs6000.c: Add icode check for vsldoi_v2df to allow
1111 4-bit unsigned literal.
1112 * config/rs6000/rs6000-builtin.def: Add definition for VSLDOI_2DF
1113 * doc/extend.texi: Update the built-in documentation file for the
1114 new powerpc vec_pack and vec_sld built-ins.
1115
1116 2016-12-13 Martin Liska <mliska@suse.cz>
1117
1118 * sanopt.c (sanopt_optimize_walker): Set contains_asan_mark.
1119 (sanopt_optimize): Add new argument.
1120 (sanitize_asan_mark_unpoison): New function.
1121 (maybe_contains_asan_check): Likewise.
1122 (sanitize_asan_mark_poison): Likewise.
1123 (pass_sanopt::execute): Call the new functions.
1124
1125 2016-12-13 Martin Liska <mliska@suse.cz>
1126
1127 PR tree-optimization/78428
1128 * expr.c (store_constructor_field): Add new arguments to the function.
1129 (store_constructor): Set up bitregion_end and add gcc_unreachable to
1130 fields that have either non-constant size or (and) offset.
1131
1132 2016-12-13 Marek Polacek <polacek@redhat.com>
1133
1134 * tree-data-ref.c (compute_overlap_steps_for_affine_univar): Change
1135 parameters' type from int to HOST_WIDE_INT.
1136 (compute_overlap_steps_for_affine_1_2): Change parameters' type from
1137 int to HOST_WIDE_INT.
1138 (build_classic_dist_vector_1): Likewise.
1139 (add_multivariate_self_dist): Likewise.
1140
1141 2016-12-13 Michael Matz <matz@suse.de>
1142
1143 PR tree-optimization/78725
1144 * tree-ssa-loop-split.c (split_at_bb_p): Check for overflow and
1145 at correct use point.
1146
1147 2016-12-13 Martin Liska <mliska@suse.cz>
1148
1149 * asan.c (asan_expand_mark_ifn): Use renamed
1150 BUILT_IN_ASAN_{UN}CLOBBER_N to BUILT_IN_ASAN_{UN}POISON_STACK_MEMORY.
1151 * sanitizer.def: Likewise.
1152
1153 2016-12-13 James Greenhalgh <james.greenhalgh@arm.com>
1154
1155 * doc/extend.texi (Half-Precision): Update to document current
1156 compiler behaviour.
1157
1158 2016-12-13 James Greenhalgh <james.greenhalgh@arm.com>
1159
1160 * doc/extend.texi (Floating Types): Document availability of
1161 _Float16 on ARM/AArch64.
1162
1163 2016-12-13 Richard Biener <rguenther@suse.de>
1164
1165 PR tree-optimization/78699
1166 * tree-vect-data-refs.c (vect_analyze_group_access_1): Limit
1167 group size.
1168
1169 2016-12-13 Richard Biener <rguenther@suse.de>
1170
1171 PR middle-end/78742
1172 * tree.c (cst_and_fits_in_hwi): Look if the actual value fits.
1173 * tree-object-size.c (compute_builtin_object_size): Use
1174 tree_fits_shwi_p.
1175 * tree-data-ref.c (initialize_matrix_A): Remove excess assert.
1176
1177 2016-12-13 Martin Liska <mliska@suse.cz>
1178
1179 * asan.c (asan_mark_poison_p): Remove.
1180 (asan_mark_p): New function.
1181 (transform_statements): Use the function.
1182 (asan_expand_mark_ifn): Do not use masked enum.
1183 * asan.h (enum asan_mark_flags): Declare it via a macro.
1184 * gimple-pretty-print.c (dump_gimple_call_args): Dump first
1185 argument of ASAN_MARK.
1186 * gimplify.c (build_asan_poison_call_expr): Use new enum values.
1187 (asan_poison_variable): Likewise.
1188
1189 2016-12-13 Jakub Jelinek <jakub@redhat.com>
1190
1191 PR ipa/77905
1192 * ipa-pure-const.c (cdtor_p): Return true for
1193 DECL_STATIC_{CON,DE}STRUCTOR even when it is
1194 DECL_LOOPING_CONST_OR_PURE_P.
1195
1196 2016-12-12 Jakub Jelinek <jakub@redhat.com>
1197
1198 PR tree-optimization/78777
1199 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge,
1200 insert_initializers): Use stmt_ends_bb_p instead of is_ctrl_stmt.
1201
1202 PR other/78766
1203 * opt-functions.awk (opt_args): Use [{] instead of { in regexps.
1204 Formatting fix.
1205
1206 2016-12-12 Martin Sebor <msebor@redhat.com>
1207
1208 PR middle-end/78622
1209 PR middle-end78606
1210 * gimple-ssa-sprintf.c (min_bytes_remaining): Use res.knownrange
1211 rather than res.bounded.
1212 (get_width_and_precision): Set precision to -1 when negative.
1213 (adjust_range_for_overflow): New function.
1214 (format_integer): Correct the handling of the space, plus, and pound
1215 flags, and the special case of zero precision.
1216 Always set res.bounded to true unless either precision or width
1217 is specified and unknown.
1218 Call adjust_range_for_overflow.
1219 Avoid use zero as the shortest value when precision is specified
1220 but unknown.
1221 (format_directive): Remove vestigial quoting. Always inform of
1222 argument value or range when it's available.
1223 (add_bytes): Correct the computation of boundrange used to
1224 decide whether a warning is of a "maybe" or "defnitely" kind.
1225
1226 2016-12-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
1227
1228 * combine.c (change_zero_ext): Handle mode expanding zero_extracts.
1229
1230 2016-12-12 Uros Bizjak <ubizjak@gmail.com>
1231
1232 PR target/78738
1233 * config/i386/i386.h (X87_ENABLE_ARITH): Also enable for
1234 flag_unsafe_math_optimizations.
1235 (X87_ENABLE_FLOAT): Ditto.
1236
1237 2016-12-12 Marek Polacek <polacek@redhat.com>
1238
1239 PR middle-end/78716
1240 * gimplify.c (gimplify_va_arg_expr): Don't require ADDR_EXPR for
1241 Case 1; check POINTER_TYPE_P instead.
1242
1243 2016-12-12 Bernd Schmidt <bschmidt@redhat.com>
1244
1245 PR rtl-optimization/78669
1246 * ira.c (combine_and_move_insns): When deleting an insn, clear the
1247 replace flag for all used regs in that insn.
1248
1249 2016-12-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
1250
1251 * config/arm/arm-opts.h: Move struct arm_arch_core_flag and
1252 arm_arch_core_flags to ...
1253 * common/config/arm/arm-common.c: There.
1254
1255 2016-12-12 Eric Botcazou <ebotcazou@adacore.com>
1256
1257 * config/sparc/constraints.md (T): Use special memory constraint.
1258 (U): Minor tweak.
1259 (W): Add TARGET_ARCH64 test.
1260 * config/sparc/sparc.md (*movdi_insn_sp32): Replace 'W' with 'T'.
1261 (*movdf_insn_sp32): Likewise.
1262 (*mov<VM64:mode>_insn_sp32): Likewise. Replace 'e' with 'f' in
1263 conjunction with offsettable memory references.
1264
1265 2016-12-11 Sandra Loosemore <sandra@codesourcery.com>
1266
1267 * config/nios2/nios2.c (nios2_emit_move_sequence): Call copy_rtx
1268 to avoid shared structure error.
1269
1270 2016-12-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1271
1272 PR target/78695
1273 * config/rs6000/rs6000.c (find_alignment_op): Discard from
1274 consideration any artificial definition.
1275
1276 2016-12-11 Iain Sandoe <iain@codesourcery.com>
1277
1278 * configure.ac (CROSS directory tests): Remove the assumption that
1279 Darwin hosts contain suitable target sysroots in "/".
1280 * configure: Regenerate.
1281
1282 2016-12-11 Iain Sandoe <iain@codesourcery.com>
1283
1284 PR rtl-optimization/71496
1285 * config/rs6000/darwin.md (load_macho_picbase_si): Mark as non-
1286 copyable. (load_macho_picbase_di, reload_macho_picbase_si,
1287 reload_macho_picbase_di): Likewise.
1288
1289 2012-12-11 John David Anglin <danglin@gcc.gnu.org>
1290
1291 * config/pa/pa.c (pa_callee_copies): New function.
1292 * config/pa/pa.opt (mcaller-copies): New option.
1293 * doc/invoke.texi (mcaller-copies): Document option.
1294
1295 2016-12-11 Uros Bizjak <ubizjak@gmail.com>
1296
1297 PR target/70799
1298 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p)
1299 <case ASHIFT, case LSHIFTRT>: Consider all constant shifts.
1300 Add FIXME comment.
1301 (dimode_scalar_chain::compute_convert_gain): Reduce gain for
1302 constant shifts larger or equal than 32.
1303
1304 2016-12-11 Roger Pau Monné <roger.pau@citrix.com>
1305
1306 * config/i386/x86-64.h: Append --32 to the assembler options when
1307 -m16 is used on non-glibc systems as well.
1308
1309 2016-12-10 Allan Sandfeld Jensen <allan.jensen@qt.io>
1310
1311 PR target/70118
1312 * config/i386/mmintrin.h (__m64_u): New type
1313 * config/i386/emmintrin.h (_mm_loadl_epi64, _mm_storel_epi64):
1314 Make the allowed unaligned memory access explicit.
1315
1316 2016-12-10 Krister Walfridsson <krister.walfridsson@gmail.com>
1317
1318 * config.gcc (i386-*-netbsd*): Make i486 the default arch on NetBSD.
1319 Generally use cpu generic.
1320
1321 2016-12-10 Jakub Jelinek <jakub@redhat.com>
1322 Marc Glisse <marc.glisse@inria.fr>
1323
1324 PR tree-optimization/78720
1325 * match.pd (A < 0 ? C : 0): Only optimize for signed A. If shift
1326 is negative, sign extend to @1's type and than AND with C.
1327
1328 2016-12-10 Jakub Jelinek <jakub@redhat.com>
1329
1330 PR fortran/78758
1331 * tree-object-size.c (compute_object_offset) <case ARRAY_REF>: Handle
1332 non-zero low bound or non-standard element sizes.
1333
1334 PR sanitizer/78708
1335 * lto-streamer-in.c (input_function): In addition to debug stmts
1336 without -g, remove IFN_*SAN_* calls if corresponding flag_sanitize
1337 bit is not enabled.
1338
1339 2016-12-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1340
1341 * config/rs6000/rs6000-passes.def: New file.
1342 * config/rs6000/rs6000-protos.h: Declare make_pass_analyze_swaps.
1343 * config/rs6000/rs6000.c (rs6000_option_override): Remove
1344 registration of machine-specific passes.
1345 (pass_analyze_swaps::clone): New function.
1346 * config/rs6000/t-rs6000: Define PASSES_EXTRA.
1347
1348 2016-12-09 Kugan Vivekanandarajah <kuganv@linaro.org>
1349
1350 PR ipa/78721
1351 * ipa-cp.c (propagate_vr_accross_jump_function): Call
1352 drop_tree_overflow after fold_convert.
1353
1354 2016-12-09 Jakub Jelinek <jakub@redhat.com>
1355
1356 PR target/72742
1357 * config/rs6000/rs6000.md (*and<mode>3_imm_mask_dot,
1358 *and<mode>3_imm_mask_dot2): Add rs6000_is_valid_and_mask to insn
1359 condition.
1360
1361 2016-12-09 Segher Boessenkool <segher@kernel.crashing.org>
1362
1363 PR target/78683
1364 * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Use
1365 GET_MODE_BITSIZE. Return 2.
1366 (CTZ_DEFINED_VALUE_AT_ZERO): Use GET_MODE_BITSIZE. Return 2. Handle
1367 TARGET_POPCNTD the same as TARGET_CTZ.
1368 * config/rs6000/rs6000.md (ctz<mode>2): Reimplement.
1369 (ffs<mode>2): Reimplement.
1370
1371 2016-12-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
1372
1373 PR rtl-optimization/78255
1374 * gcc/postreload.c (reload_cse_simplify): Do not CSE a function if
1375 NO_FUNCTION_CSE is true.
1376
1377 2016-12-09 Cesar Philippidis <cesar@codesourcery.com>
1378
1379 PR ipa/78027
1380 * ipa-icf.c (sem_function::parse): Don't process functions with
1381 oacc decl attributes, as they may be OpenACC routines.
1382
1383 2016-12-09 David Malcolm <dmalcolm@redhat.com>
1384
1385 * rtl.h (get_mem_attrs): Add "const" qualifier to returned
1386 pointer.
1387
1388 2016-12-09 Nathan Sidwell <nathan@acm.org>
1389
1390 PR C++/78550
1391 * convert.c (convert_to_integer_1): Maybe fold conversions to
1392 integral types with fewer bits than its mode.
1393
1394 2016-12-09 Martin Liska <mliska@suse.cz>
1395
1396 * tree-pretty-print.c (pretty_print_string): Escape non-printable
1397 chars in strings.
1398
1399 2016-12-09 Jakub Jelinek <jakub@redhat.com>
1400
1401 PR tree-optimization/78726
1402 * tree-ssa-reassoc.c (make_new_ssa_for_def): Add OPCODE and OP
1403 argument. For lhs uses in debug stmts, don't replace lhs with
1404 new_lhs, but with a debug temp set to new_lhs opcode op.
1405 (make_new_ssa_for_all_defs): Add OPCODE argument, pass OPCODE and
1406 OP down to make_new_ssa_for_def.
1407 (zero_one_operation): Call make_new_ssa_for_all_defs even when
1408 stmts_to_fix is empty, if *def has not changed yet. Pass
1409 OPCODE to make_new_ssa_for_all_defs.
1410
1411 2016-12-08 Martin Sebor <msebor@redhat.com>
1412
1413 PR c/78284
1414 * builtin-attrs.def (ATTR_ALLOC_SIZE, ATTR_RETURNS_NONNULL): New
1415 identifier tree nodes.
1416 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): New attribute list.
1417 (ATTR_MALLOC_SIZE_1_NOTHROW_LIST): Same.
1418 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Same.
1419 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Same.
1420 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Same.
1421 * builtins.c (expand_builtin_alloca): Call
1422 maybe_warn_alloc_args_overflow.
1423 * builtins.def (aligned_alloc, calloc, malloc, realloc):
1424 Add attribute alloc_size.
1425 (alloca): Add attribute alloc_size and returns_nonnull.
1426 * calls.h (maybe_warn_alloc_args_overflow): Declare.
1427 * calls.c (alloc_max_size, operand_signed_p): New functions.
1428 (maybe_warn_alloc_args_overflow): Define.
1429 (initialize_argument_information): Diagnose overflow in functions
1430 declared with attaribute alloc_size.
1431 * doc/invoke.texi (Warning Options): Document -Walloc-zero and
1432 -Walloc-size-larger-than.
1433
1434 2016-12-08 Vladimir Makarov <vmakarov@redhat.com>
1435
1436 PR rtl-optimization/78671
1437 * lra-assign.c (find_hard_regno_for_1): Check prohibited regs for an
1438 allocno class.
1439
1440 2016-12-08 Uros Bizjak <ubizjak@gmail.com>
1441
1442 * config/i386/i386.h (HARD_REGNO_NREGS): Use GENERAL_REGNO_P.
1443 (HARD_REGNO_NREGS_HAS_PADDING): Ditto. Simplify macro.
1444
1445 2015-12-08 Wilco Dijkstra <wdijkstr@arm.com>
1446
1447 PR target/78733
1448 * config/aarch64/aarch64.c (aarch64_classify_address):
1449 Set load_store_pair_p for TImode and TFmode.
1450
1451 2016-12-08 David Malcolm <dmalcolm@redhat.com>
1452
1453 * emit-rtl.c (gen_reg_rtx): Move regno_pointer_align and
1454 regno_reg_rtx resizing logic to...
1455 (emit_status::ensure_regno_capacity): ...this new method,
1456 and ensure that the buffers are large enough.
1457 (init_emit): Allocate regno_reg_rtx using ggc_cleared_vec_alloc
1458 rather than ggc_vec_alloc.
1459 * function.h (emit_status::ensure_regno_capacity): New method.
1460
1461 2016-12-08 Dmitry Vyukov <dvyukov@google.com>
1462
1463 * opts.c (finish_options): Enable -fsanitize-address-use-after-scope
1464 only if -fsanitize=address is enabled (not -fsanitize=kernel-address).
1465 * doc/invoke.texi (-fsanitize=kernel-address):
1466 Don't say that it enables -fsanitize-address-use-after-scope.
1467
1468 2016-12-08 Bin Cheng <bin.cheng@arm.com>
1469
1470 PR middle-end/78684
1471 * tree-vect-loop-manip.c (create_intersect_range_checks_index): Check
1472 sign bit for index step of data reference.
1473
1474 2016-12-08 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
1475
1476 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1477 Handle SYMBOL_SMALL_TLSGD for ILP32.
1478 * config/aarch64/aarch64.md : tlsgd_small modified into
1479 tlsgd_small_<mode> to support SImode and DImode.
1480 *tlsgd_small modified into *tlsgd_small_<mode> to support SImode and
1481 DImode.
1482
1483 2016-12-08 Andrew Pinski <apinski@cavium.com>
1484
1485 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1486 Access the lower part of RTX appropriately.
1487
1488 2016-12-07 David Malcolm <dmalcolm@redhat.com>
1489
1490 * genpreds.c (write_tm_constrs_h): Update for renaming of
1491 rtx_reader_ptr to md_reader_ptr.
1492 (write_tm_preds_h): Likewise.
1493 (write_insn_preds_c): Likewise.
1494 * read-md.c (rtx_reader_ptr): Rename to...
1495 (md_reader_ptr): ...this, and convert from an
1496 rtx_reader * to a md_reader *.
1497 (rtx_reader::set_md_ptr_loc): Rename to...
1498 (md_reader::set_md_ptr_loc): ...this.
1499 (rtx_reader::get_md_ptr_loc): Rename to...
1500 (md_reader::get_md_ptr_loc): ...this.
1501 (rtx_reader::copy_md_ptr_loc): Rename to...
1502 (md_reader::copy_md_ptr_loc): ...this.
1503 (rtx_reader::fprint_md_ptr_loc): Rename to...
1504 (md_reader::fprint_md_ptr_loc): ...this.
1505 (rtx_reader::print_md_ptr_loc): Rename to...
1506 (md_reader::print_md_ptr_loc): ...this.
1507 (rtx_reader::join_c_conditions): Rename to...
1508 (md_reader::join_c_conditions): ...this.
1509 (rtx_reader::fprint_c_condition): ...this.
1510 (rtx_reader::print_c_condition): Rename to...
1511 (md_reader::print_c_condition): ...this.
1512 (fatal_with_file_and_line): Update for renaming of
1513 rtx_reader_ptr to md_reader_ptr.
1514 (rtx_reader::require_char): Rename to...
1515 (md_reader::require_char): ...this.
1516 (rtx_reader::require_char_ws): Rename to...
1517 (md_reader::require_char_ws): ...this.
1518 (rtx_reader::require_word_ws): Rename to...
1519 (md_reader::require_word_ws): ...this.
1520 (rtx_reader::read_char): Rename to...
1521 (md_reader::read_char): ...this.
1522 (rtx_reader::unread_char): Rename to...
1523 (md_reader::unread_char): ...this.
1524 (rtx_reader::peek_char): Rename to...
1525 (md_reader::peek_char): ...this.
1526 (rtx_reader::read_name): Rename to...
1527 (md_reader::read_name): ...this.
1528 (rtx_reader::read_escape): Rename to...
1529 (md_reader::read_escape): ...this.
1530 (rtx_reader::read_quoted_string): Rename to...
1531 (md_reader::read_quoted_string): ...this.
1532 (rtx_reader::read_braced_string): Rename to...
1533 (md_reader::read_braced_string): ...this.
1534 (rtx_reader::read_string): Rename to...
1535 (md_reader::read_string): ...this.
1536 (rtx_reader::read_skip_construct): Rename to...
1537 (md_reader::read_skip_construct): ...this.
1538 (rtx_reader::handle_constants): Rename to...
1539 (md_reader::handle_constants): ...this.
1540 (rtx_reader::traverse_md_constants): Rename to...
1541 (md_reader::traverse_md_constants): ...this.
1542 (rtx_reader::handle_enum): Rename to...
1543 (md_reader::handle_enum): ...this.
1544 (rtx_reader::lookup_enum_type): Rename to...
1545 (md_reader::lookup_enum_type): ...this.
1546 (rtx_reader::traverse_enum_types): Rename to...
1547 (md_reader::traverse_enum_types): ...this.
1548 (rtx_reader::rtx_reader): Rename to...
1549 (md_reader::md_reader): ...this, and update for renaming of
1550 rtx_reader_ptr to md_reader_ptr.
1551 (rtx_reader::~rtx_reader): Rename to...
1552 (md_reader::~md_reader): ...this, and update for renaming of
1553 rtx_reader_ptr to md_reader_ptr.
1554 (rtx_reader::handle_include): Rename to...
1555 (md_reader::handle_include): ...this.
1556 (rtx_reader::handle_file): Rename to...
1557 (md_reader::handle_file): ...this.
1558 (rtx_reader::handle_toplevel_file): Rename to...
1559 (md_reader::handle_toplevel_file): ...this.
1560 (rtx_reader::get_current_location): Rename to...
1561 (md_reader::get_current_location): ...this.
1562 (rtx_reader::add_include_path): Rename to...
1563 (md_reader::add_include_path): ...this.
1564 (rtx_reader::read_md_files): Rename to...
1565 (md_reader::read_md_files): ...this.
1566 * read-md.h (class rtx_reader): Split into...
1567 (class md_reader): ...new class.
1568 (rtx_reader_ptr): Rename to...
1569 (md_reader_ptr): ...this, and convert to a md_reader *.
1570 (class noop_reader): Update base class to be md_reader.
1571 (class rtx_reader): Reintroduce as a subclass of md_reader.
1572 (rtx_reader_ptr): Reintroduce as a rtx_reader *.
1573 (read_char): Update for renaming of rtx_reader_ptr to
1574 md_reader_ptr.
1575 (unread_char): Likewise.
1576 * read-rtl.c (rtx_reader_ptr): New global.
1577 (rtx_reader::apply_iterator_to_string): Rename to...
1578 (md_reader::apply_iterator_to_string): ...this.
1579 (rtx_reader::copy_rtx_for_iterators): Rename to...
1580 (md_reader::copy_rtx_for_iterators): ...this.
1581 (rtx_reader::read_conditions): Rename to...
1582 (md_reader::read_conditions): ...this.
1583 (rtx_reader::record_potential_iterator_use): Rename to...
1584 (md_reader::record_potential_iterator_use): ...this.
1585 (rtx_reader::read_mapping): Rename to...
1586 (md_reader::read_mapping): ...this.
1587 (rtx_reader::read_rtx): Use rtx_reader_ptr when calling
1588 read_rtx_code.
1589 (rtx_reader::read_rtx_operand): Use get_string_obstack rather
1590 than directly accessing m_string_obstack.
1591 (rtx_reader::rtx_reader): New ctor.
1592 (rtx_reader::~rtx_reader): New dtor.
1593
1594 2016-12-07 Martin Sebor <msebor@redhat.com>
1595
1596 PR middle-end/77784
1597 PR middle-end/78149
1598 PR middle-end/78138
1599
1600 * builtins.c (expand_builtin_strcat, expand_builtin_strncat): New
1601 functions.
1602 (compute_dest_size, get_size_range, check_sizes, check_strncat_sizes)
1603 (check_memop_sizes): Same.
1604 (expand_builtin_memcpy): Call check memop_sizes.
1605 (expand_builtin_mempcpy): Same.
1606 (expand_builtin_memset): Same,
1607 (expand_builtin_bzero): Same.
1608 (expand_builtin_memory_chk): Call check_sizes.
1609 (expand_builtin_strcpy): Same.
1610 (expand_builtin_strncpy): Same.
1611 (maybe_emit_sprintf_chk_warning): Same.
1612 (expand_builtin): Handle strcat and strncat.
1613 (fini_object_sizes): Reset pointers.
1614 (compute_object_size): New function.
1615 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
1616 Avoid issuing warnings also issued during built-in expansion.
1617 * doc/invoke.texi (Warning Options): Document -Wstringop-overflow.
1618
1619 2016-12-07 Michael Meissner <meissner@linux.vnet.ibm.com>
1620
1621 PR target/72717
1622 * config/rs6000/rs6000.c (rs6000_expand_vector_init): If the
1623 V2DImode elements are SUBREG's convert the result into DImode
1624 rather than failing in emit_move_insn.
1625
1626 2016-12-07 Jakub Jelinek <jakub@redhat.com>
1627
1628 * builtins.c (fold_builtin_strstr): Removed.
1629 (fold_builtin_2): Don't call fold_builtin_strstr.
1630 * gimple-fold.c (gimple_fold_builtin_strchr): Check is_strrchr
1631 earlier in the strrchr (x, 0) -> strchr (x, 0) optimization.
1632 (gimple_fold_builtin_strstr): New function.
1633 (gimple_fold_builtin): Call it.
1634 * fold-const-call.c (fold_const_call): Handle CFN_BUILT_IN_STRSTR.
1635
1636 PR c++/78692
1637 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Set lhs
1638 var to lhs of new_stmt right before noreturn handling rather than to
1639 lhs of e->call_stmt early.
1640
1641 2016-12-07 David Malcolm <dmalcolm@redhat.com>
1642
1643 * read-md.c (rtx_reader::require_char): New method.
1644 (require_char_ws): Convert from function to...
1645 (rtx_reader::require_char_ws): ...method.
1646 (rtx_reader::require_word_ws): New method.
1647 * read-md.h (rtx_reader::require_char): New method decl.
1648 (require_char_ws): Remove global decl in favor of...
1649 (rtx_reader::require_char_ws): ...new method decl.
1650 (rtx_reader::require_word_ws): New method decl.
1651 (rtx_reader::peek_char): New method decl.
1652
1653 2016-12-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
1654
1655 PR rtl-optimization/78617
1656 * lra-remat.c (do_remat): Initialize live_hard_regs from live in
1657 registers, also setting hard registers mapped to pseudo registers.
1658
1659 2016-12-07 David Malcolm <dmalcolm@redhat.com>
1660
1661 * cfgexpand.c (pass_expand::execute): Move stack initializations
1662 to rtl_data::init_stack_alignment and call it.
1663 * emit-rtl.c (rtl_data::init_stack_alignment): New method.
1664 * emit-rtl.h (rtl_data::init_stack_alignment): New method.
1665
1666 2016-12-07 Wilco Dijkstra <wdijkstr@arm.com>
1667
1668 * gcc/ira.c (ira_setup_eliminable_regset): Initialize crtl->is_leaf.
1669 (ira): Move initialization of crtl->is_leaf earlier.
1670
1671 2016-12-07 Wilco Dijkstra <wdijkstr@arm.com>
1672
1673 * config/aarch64/aarch64.md (movti_aarch64): Change Ump to m.
1674 (movtf_aarch64): Likewise.
1675 * config/aarch64/aarch64.c (aarch64_classify_address):
1676 Use correct intersection of offsets.
1677 (aarch64_legitimize_address_displacement): Use 9-bit signed offsets.
1678 (aarch64_legitimize_address): Use 9-bit signed offsets for TI/TF mode.
1679 Use 7-bit signed scaled mode for modes > 16 bytes.
1680
1681 2016-12-07 James Greenhalgh <james.greenhalgh@arm.com>
1682
1683 PR rtl-optimization/78561
1684 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p) Use
1685 constant_pool_empty_p in place of get_pool_size_upper_bound.
1686 (rs6000_stack_info): Likewise.
1687 (rs6000_emit_prologue): Likewise.
1688 (rs6000_elf_declare_function_name): Likewise.
1689 (rs6000_set_up_by_prologue): Likewise.
1690 (rs6000_can_eliminate): Likewise.
1691 * output.h (get_pool_size_upper_bound): Delete.
1692 (constant_pool_empty_p): New.
1693 * varasm.c (get_pool_size_upper_bound): Delete
1694 (constant_pool_empty_p): New.
1695
1696 2016-12-07 Bin Cheng <bin.cheng@arm.com>
1697
1698 PR tree-optimization/78691
1699 * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
1700 Require integral type for the outer expression.
1701
1702 2016-12-07 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
1703
1704 * config/aarch64/aarch64.c
1705 (aarch64_builtin_support_vector_misalignment): New.
1706 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): Define.
1707
1708 2016-12-06 David Malcolm <dmalcolm@redhat.com>
1709
1710 PR bootstrap/78705
1711 * config/i386/i386.c (ix86_test_dumping_memory_blockage):
1712 Conditionalize the string comparison on Pmode == DImode.
1713
1714 2016-12-06 Tom de Vries <tom@codesourcery.com>
1715
1716 PR tree-optimization/67955
1717 * tree-ssa-alias.c (same_addr_size_stores_p): New function.
1718 (stmt_kills_ref_p): Use it.
1719
1720 2016-12-06 Eric Botcazou <ebotcazou@adacore.com>
1721
1722 PR middle-end/78700
1723 * calls.c (expand_call): Move back call to prepare_call_address.
1724
1725 2016-12-06 Michael Meissner <meissner@linux.vnet.ibm.com>
1726
1727 PR target/78658
1728 * config/rs6000/rs6000.md (zero_extendqi<mode>2): Use ^ instead of
1729 ?* constraints for the ISA 3.0 patterns, so the register allocator
1730 is more likely to allocate QImode/HImode to vector registers for
1731 conversion to floating point unless a reload is needed.
1732 (zero_extendhi<mode>2): Likewise.
1733 (float<QHI:mode><FP_ISA3:mode>2_internal): Properly deal with the
1734 first alternative which is converting QImode/HImode to floating
1735 point and the QImode/HImode value is in a vector register, and
1736 does not allocate the second pseudo register. Remove zero
1737 extending into traditional floating point registers, since the
1738 instruction used only works on traditional altivec registers.
1739 (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
1740
1741 2016-12-06 David Malcolm <dmalcolm@redhat.com>
1742
1743 * config/i386/i386.c: Include print-rtl.h.
1744 (selftest::ix86_test_dumping_memory_blockage): New function.
1745 (selftest::ix86_run_selftests): Call it.
1746 * print-rtl-function.c (print_rtx_function): Create an
1747 rtx_reuse_manager and use it.
1748 * print-rtl.c: Include "rtl-iter.h".
1749 (rtx_writer::rtx_writer): Add reuse_manager param.
1750 (rtx_reuse_manager::rtx_reuse_manager): New ctor.
1751 (uses_rtx_reuse_p): New function.
1752 (rtx_reuse_manager::preprocess): New function.
1753 (rtx_reuse_manager::has_reuse_id): New function.
1754 (rtx_reuse_manager::seen_def_p): New function.
1755 (rtx_reuse_manager::set_seen_def): New function.
1756 (rtx_writer::print_rtx): If "in_rtx" has a reuse ID, print it as a
1757 prefix the first time in_rtx is seen, and print reuse_rtx
1758 subsequently.
1759 (print_inline_rtx): Supply NULL for new reuse_manager param.
1760 (debug_rtx): Likewise.
1761 (print_rtl): Likewise.
1762 (print_rtl_single): Likewise.
1763 (rtx_writer::print_rtl_single_with_indent): Likewise.
1764 * print-rtl.h: Include bitmap.h when building for host.
1765 (rtx_writer::rtx_writer): Add reuse_manager param.
1766 (rtx_writer::m_rtx_reuse_manager): New field.
1767 (class rtx_reuse_manager): New class.
1768 * rtl-tests.c (selftest::assert_rtl_dump_eq): Add reuse_manager
1769 param and use it when constructing rtx_writer.
1770 (selftest::test_dumping_rtx_reuse): New function.
1771 (selftest::rtl_tests_c_tests): Call it.
1772 * selftest-rtl.h (class rtx_reuse_manager): New forward decl.
1773 (selftest::assert_rtl_dump_eq): Add reuse_manager param.
1774 (ASSERT_RTL_DUMP_EQ): Supply NULL for reuse_manager param.
1775 (ASSERT_RTL_DUMP_EQ_WITH_REUSE): New macro.
1776
1777 2016-12-06 Vladimir Makarov <vmakarov@redhat.com>
1778
1779 PR target/77761
1780 * lra-lives.c (process_bb_lives): Update biggest mode for
1781 implicitly used hard reg.
1782
1783 2016-12-06 Uros Bizjak <ubizjak@gmail.com>
1784
1785 * config/i386/predicates.md (general_gr_operand): New predicate.
1786 * config/i386/i386.md (TImode and DImode push_operand splitter):
1787 Use general_gr_operand. Macroize using DWI mode macro.
1788 (TImode and DImode nonimmediate_operand splitter): Use
1789 nonimmediate_gr_operand and general_gr_operand. Macroize using
1790 DWI mode macro.
1791 (TF/XF/DFmode push_operand splitter): Use general_gr_operand.
1792 (TFmode nonimmediate_operand splitter): Use nonimmediate_gr_operand
1793 and general_gr_operand.
1794 (XFmode nonimmediate_operand splitter): Ditto.
1795 (DFmode nonimmediate_operand splitter): Ditto.
1796 * config/i386/mmx.md (MMXMODE nonimmediate_operand splitter): Ditto.
1797
1798 2016-12-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1799
1800 * config/arm/arm-cores.def (cortex-m23, cortex-m33): Move into
1801 alphabetical order with respect to other ARMv8 processors.
1802 * config/arm/arm-tables.opt: Regenerate.
1803 * config/arm/arm-tune.md: Likewise.
1804
1805 2016-12-06 Robert Suchanek <robert.suchanek@imgtec.com>
1806
1807 * config/mips/mips.c (mips_expand_builtin_insn): Check input
1808 ranges of literal integer arguments.
1809
1810 2016-12-06 Aldy Hernandez <aldyh@redhat.com>
1811
1812 PR middle-end/78548
1813 * tree-ssa-uninit.c (simplify_preds_4): Call release() instead of
1814 destroy_predicate_vecs.
1815 (uninit_uses_cannot_happen): Make uninit_preds a scalar.
1816
1817 2016-12-06 Aldy Hernandez <aldyh@redhat.com>
1818
1819 PR middle-end/78566
1820 * tree-ssa-uninit.c (can_one_predicate_be_invalidated_p): Change
1821 argument type to a pred_chain.
1822 (can_chain_union_be_invalidated_p): Use pred_chain instead of a
1823 worklist.
1824 (flatten_out_predicate_chains): Remove.
1825 (uninit_uses_cannot_happen): Rename from
1826 uninit_ops_invalidate_phi_use.
1827 Change logic so that we are checking that the PHI use will
1828 invalidate _ALL_ possibly uninitialized operands.
1829 (is_use_properly_guarded): Rename call to
1830 uninit_ops_invalidate_phi_use into uninit_uses_cannot_happen.
1831
1832 2016-12-06 Tamar Christina <tamar.christina@arm.com>
1833
1834 * gcc/config/aarch64/arm_neon.h
1835 (vreinterpretq_p8_p128, vreinterpretq_p16_p128): Added.
1836 (vreinterpret_p64_p16, vreinterpretq_p64_p128): Likewise.
1837 (vreinterpretq_p64_p16, vreinterpretq_p128_p8): Likewise.
1838 (vreinterpretq_p128_p16, vreinterpretq_p128_f16): Likewise.
1839 (vreinterpretq_p128_f32, vreinterpretq_p128_p64): Likewise.
1840 (vreinterpretq_p128_s64, vreinterpretq_p128_u64): Likewise.
1841 (vreinterpretq_p128_s8, vreinterpretq_p128_s16): Likewise.
1842 (vreinterpretq_p128_s32, vreinterpretq_p128_u8): Likewise.
1843 (vreinterpretq_p128_u16, vreinterpretq_p128_u32): Likewise.
1844 (vreinterpretq_f16_p128, vreinterpretq_f32_p128): Likewise.
1845 (vreinterpretq_s64_p128, vreinterpretq_u64_p128): Likewise.
1846 (vreinterpretq_s8_p128, vreinterpretq_s16_p128): Likewise.
1847 (vreinterpretq_s32_p128, vreinterpretq_u8_p128): Likewise.
1848 (vreinterpretq_u16_p128, vreinterpretq_u32_p128): Likewise.
1849
1850 2016-12-06 Jakub Jelinek <jakub@redhat.com>
1851
1852 PR c++/71537
1853 * fold-const.c (fold_comparison): Assume CONSTANT_CLASS_P (base0)
1854 plus offset is non-zero. For maybe_nonzero_address decl base0,
1855 require indirect_base0.
1856
1857 PR c++/71537
1858 * fold-const-call.c (fold_const_call_1): Remove memchr handling here.
1859 (fold_const_call) <case CFN_BUILT_IN_STRNCMP,
1860 case CFN_BUILT_IN_STRNCASECMP>: Formatting improvements.
1861 (fold_const_call) <case CFN_BUILT_IN_MEMCMP>: Likewise. If s2 is 0
1862 and arguments have no side-effects, return 0.
1863 (fold_const_call): Handle CFN_BUILT_IN_MEMCHR.
1864
1865 PR c++/71537
1866 * fold-const-call.c (fold_const_call): Handle
1867 CFN_BUILT_IN_{INDEX,STRCHR,RINDEX,STRRCHR}.
1868
1869 PR tree-optimization/78675
1870 * tree-vect-loop.c (vectorizable_live_operation): For
1871 VECTOR_BOOLEAN_TYPE_P vectype use integral type with bitsize precision
1872 instead of TREE_TYPE (vectype) for the BIT_FIELD_REF.
1873
1874 2016-12-06 Eric Botcazou <ebotcazou@adacore.com>
1875
1876 PR middle-end/78642
1877 * emit-rtl.c (verify_rtx_sharing) <CLOBBER>: Relax condition.
1878 (copy_rtx_if_shared_1) <CLOBBER>: Likewise.
1879 (copy_insn_1) <CLOBBER>: Likewise.
1880
1881 2016-12-05 Michael Meissner <meissner@linux.vnet.ibm.com>
1882
1883 PR target/78688
1884 * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Use IN_RANGE
1885 instead of ((N) >= (X) && (N) <= (Y-X)) to silence warnings about
1886 comparing signed to unsigned values.
1887 (FUNCTION_ARG_REGNO_P): Likewise.
1888
1889 2016-12-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1890 Stefan Freudenberger <stefan@reservoir.com>
1891
1892 PR tree-optimization/78646
1893 * gimple-ssa-strength-reduction.c (replace_ref): The pointer
1894 addition used for the memory base expression should have the type
1895 of the candidate.
1896
1897 2016-12-05 Waldemar Brodkorb <wbx@openadk.org>
1898
1899 PR target/71721
1900 * config.gcc (*-*-uclinux*): Enable posix threads.
1901
1902 2016-12-05 Andrew Senkevich <andrew.senkevich@intel.com>
1903
1904 * config/i386/avx512bwintrin.h: Add new k-mask intrinsics.
1905 * config/i386/avx512dqintrin.h: Ditto.
1906 * config/i386/avx512fintrin.h: Ditto.
1907 * config/i386/i386-builtin-types.def (UCHAR_FTYPE_UQI_UQI_PUCHAR,
1908 UCHAR_FTYPE_UHI_UHI_PUCHAR, UCHAR_FTYPE_USI_USI_PUCHAR,
1909 UCHAR_FTYPE_UDI_UDI_PUCHAR, UCHAR_FTYPE_UQI_UQI, UCHAR_FTYPE_UHI_UHI,
1910 UCHAR_FTYPE_USI_USI, UCHAR_FTYPE_UDI_UDI, UQI_FTYPE_UQI_INT,
1911 UHI_FTYPE_UHI_INT, USI_FTYPE_USI_INT, UDI_FTYPE_UDI_INT,
1912 UQI_FTYPE_UQI, USI_FTYPE_USI, UDI_FTYPE_UDI, UQI_FTYPE_UQI_UQI): New
1913 function types.
1914 * config/i386/i386-builtin.def (__builtin_ia32_knotqi,
1915 __builtin_ia32_knotsi, __builtin_ia32_knotdi,
1916 __builtin_ia32_korqi, __builtin_ia32_korsi, __builtin_ia32_kordi,
1917 __builtin_ia32_kxnorqi, __builtin_ia32_kxnorsi,
1918 __builtin_ia32_kxnordi, __builtin_ia32_kxorqi, __builtin_ia32_kxorsi,
1919 __builtin_ia32_kxordi, __builtin_ia32_kandqi,
1920 __builtin_ia32_kandsi, __builtin_ia32_kanddi, __builtin_ia32_kandnqi,
1921 __builtin_ia32_kandnsi, __builtin_ia32_kandndi): New.
1922 * config/i386/i386.c (ix86_expand_args_builtin): Handle new types.
1923
1924 2016-12-05 Segher Boessenkool <segher@kernel.crashing.org>
1925
1926 * combine.c: Revert r243162.
1927
1928 2016-12-05 Paolo Bonzini <bonzini@gnu.org>
1929
1930 * match.pd: Simplify X ? C : 0 where C is a power of 2 and
1931 X tests a single bit.
1932
1933 2016-12-05 Nathan Sidwell <nathan@acm.org>
1934
1935 * diagnostic.c (diagnostic_check_max_errors): New, broken out of ...
1936 (diagnostic_action_after_output): ... here.
1937 (diagnostic_report_diagnostic): Call it for non-notes.
1938 * diagnostic.h (struct diagnostic_context): Make max_errors signed int.
1939 (diagnostic_check_max_errors): Declare.
1940
1941 2016-12-05 Cupertino Miranda <cmiranda@synopsys.com>
1942
1943 * config/arc/arc.h (STARTFILE_SPEC): Use default linux specs.
1944 (ENDFILE_SPEC): Likewise.
1945
1946 2016-12-05 Claudiu Zissulescu <claziss@synopsys.com>
1947
1948 * config/arc/arc-protos.h (insn_is_tls_gd_dispatch): Remove.
1949 * config/arc/arc.c (arc_unspec_offset): New function.
1950 (arc_finalize_pic): Change.
1951 (arc_emit_call_tls_get_addr): Likewise.
1952 (arc_legitimize_tls_address): Likewise.
1953 (arc_legitimize_pic_address): Likewise.
1954 (insn_is_tls_gd_dispatch): Remove.
1955 * config/arc/arc.h (INSN_REFERENCES_ARE_DELAYED): Change.
1956 * config/arc/arc.md (ls_gd_load): Remove unused pattern.
1957 (tls_gd_dispatch): Likewise.
1958
1959 2016-12-05 Andre Vieira <andre.simoesdiasvieira@arm.com>
1960
1961 * config/arm/arm.c (TARGET_ASM_INIT_SECTIONS): Fix wrong undef
1962 location.
1963
1964 2016-12-05 Eric Botcazou <ebotcazou@adacore.com>
1965
1966 * config/sparc/sparc-protos.h (sparc_splitdi_legitimate): Rename to...
1967 (sparc_split_reg_mem_legitimate): ...this.
1968 (sparc_split_reg_mem): Declare.
1969 (sparc_split_mem_reg): Likewise.
1970 (sparc_split_regreg_legitimate): Rename to...
1971 (sparc_split_reg_reg_legitimate): ...this.
1972 * config/sparc/sparc.c (sparc_splitdi_legitimate): Rename to...
1973 (sparc_split_reg_mem_legitimate): ...this.
1974 (sparc_split_reg_mem): New function.
1975 (sparc_split_mem_reg): Likewise.
1976 (sparc_split_regreg_legitimate): Rename to...
1977 (sparc_split_reg_reg_legitimate): ...this.
1978 (sparc_split_reg_reg): New function.
1979 * config/sparc/sparc.md (lra): Remove "none" value.
1980 (enabled): Adjust to above change.
1981 (*movdi_insn_sp32): Remove new (r,T) alternative and reorder others.
1982 (DImode splitters): Adjust to above renamings and use new functions.
1983 (*movdf_insn_sp32): Remove new (r,T) alternative and reorder others.
1984 (DFmode splitters): Adjust to above renamings and use new functions.
1985 (*mov<VM64:mode>_insn_sp64): Replace C with Z constraint and use W
1986 constraint in conjunction with e.
1987 (*mov<VM64:mode>_insn_sp32): Remove new (r,T) alternative, add (o,Y)
1988 alternative and reorder others.
1989 (VM64:mode splitters): Adjust to above renamings and use new functions.
1990
1991 2016-12-04 Martin Sebor <msebor@redhat.com>
1992
1993 PR c/78668
1994 * builtin-attrs.def (ATTR_ALLOC_SIZE, ATTR_RETURNS_NONNULL): New
1995 identifier tree nodes.
1996 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): New attribute list.
1997 (ATTR_MALLOC_SIZE_1_NOTHROW_LIST): Same.
1998 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Same.
1999 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Same.
2000 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Same.
2001 * builtins.def (aligned_alloc, calloc, malloc, realloc):
2002 Add attribute alloc_size.
2003 (alloca): Add attribute alloc_size and returns_nonnull.
2004
2005 2016-12-04 Uros Bizjak <ubizjak@gmail.com>
2006
2007 PR target/70322
2008 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Handle NEG.
2009 (dimode_scalar_chain::compute_convert_gain): Ditto.
2010 (dimode_scalar_chain::convert_insn): Ditto.
2011
2012 2016-12-03 Eric Botcazou <ebotcazou@adacore.com>
2013
2014 * lra-constraints.c (emit_spill_move): Use gen_lowpart_SUBREG in all
2015 cases to build a lowpart SUBREG.
2016
2017 2016-12-03 Eric Botcazou <ebotcazou@adacore.com>
2018 David S. Miller <davem@davemloft.net>
2019
2020 * config/sparc/constraints.md (U): Adjust comment.
2021 * config/sparc/sparc.md (lra): New attribute.
2022 (enabled): For base instructions, if the lra attribute is set,
2023 return 1 if it is in keeping with TARGET_LRA.
2024 (*movdi_insn_sp32): Add lra attribute for alternatives mentioning U
2025 constraint and duplicate them with U replaced by r.
2026 (*movdf_insn_sp32): Likewise.
2027 (*mov<VM64:mode>_insn_sp32): Likewise.
2028 (*movtf_insn_sp32): Remove alternatives mentioning U constraint.
2029
2030 2016-12-02 Jeff Law <law@redhat.com>
2031
2032 * config/arm/arm.c (arm_handle_cmse_nonsecure_call): Remove unused
2033 variable main_variant.
2034
2035 2016-12-02 Michael Meissner <meissner@linux.vnet.ibm.com>
2036
2037 * config.gcc (powerpc*-*-linux*): Set gnu-indirect-function by
2038 default on PowerPC linux systems.
2039
2040 2016-12-02 Segher Boessenkool <segher@kernel.crashing.org>
2041
2042 PR rtl-optimization/78638
2043 * simplify-rtx.c (simplify_truncation): M2 is not mode, it is
2044 GET_MODE (op). Fix this.
2045
2046 2016-12-02 David Malcolm <dmalcolm@redhat.com>
2047
2048 PR bootstrap/78616
2049 * selftest.c (selftest::assert_strndup_eq): Rename to...
2050 (selftest::assert_xstrndup_eq): ...this, and remove call to
2051 strndup.
2052 (selftest::test_strndup): Rename to...
2053 (selftest::test_xstrndup): ...this, updating for above renaming.
2054 (selftest::test_libiberty): Update for renaming.
2055
2056 2016-12-02 Michael Meissner <meissner@linux.vnet.ibm.com>
2057
2058 PR target/78639
2059 * config/rs6000/rs6000.md (movdi_internal64): Fix typo in
2060 subversion id 242679 that causes the wrong store instruction to be
2061 generated if a DImode is in an Altivec register using REG+REG
2062 addressing.
2063
2064 2016-12-02 Uros Bizjak <ubizjak@gmail.com>
2065
2066 PR target/70322
2067 * config/i386/i386.md (*andndi3_doubleword): Add non-BMI alternative
2068 and corresponding post-reload splitter.
2069
2070 2016-12-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2071
2072 * config/aarch64/aarch64.h (machine_function): Add
2073 reg_is_wrapped_separately field.
2074 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Define new constant.
2075 * config/aarch64/aarch64.c (emit_set_insn): Change return type to
2076 rtx_insn *.
2077 (aarch64_save_callee_saves): Don't save registers that are wrapped
2078 separately.
2079 (aarch64_restore_callee_saves): Don't restore registers that are
2080 wrapped separately.
2081 (offset_9bit_signed_unscaled_p, offset_12bit_unsigned_scaled_p,
2082 aarch64_offset_7bit_signed_scaled_p): Move earlier in the file.
2083 (aarch64_get_separate_components): New function.
2084 (aarch64_get_next_set_bit): Likewise.
2085 (aarch64_components_for_bb): Likewise.
2086 (aarch64_disqualify_components): Likewise.
2087 (aarch64_emit_prologue_components): Likewise.
2088 (aarch64_emit_epilogue_components): Likewise.
2089 (aarch64_set_handled_components): Likewise.
2090 (aarch64_process_components): Likewise.
2091 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
2092 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
2093 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
2094 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
2095 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
2096 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
2097
2098 2016-12-02 Martin Jambor <mjambor@suse.cz>
2099
2100 * passes.def: Move pass_rebuild_cgraph_edges to the end of
2101 pass_build_ssa_passes.
2102
2103 2016-12-02 Uros Bizjak <ubizjak@gmail.com>
2104
2105 * config/alpha/alpha.md (exception_receiver): Copy
2106 alpha_gp_ave_rtx return value.
2107
2108 2016-12-02 Tadek Kijkowski <tkijkowski@gmail.com>
2109
2110 * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
2111 for several include directories that may be relative to sysroot.
2112 * config/i386/x-mingw32 (gplus_includedir): Define.
2113 (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
2114 (native_system_includedir): Likewise.
2115 * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
2116 override if TARGET_SYSTEM_ROOT is defined.
2117 (NATIVE_SYSTEM_HEADER_DIR): Likewise.
2118
2119 2016-12-02 Jakub Jelinek <jakub@redhat.com>
2120
2121 PR target/70322
2122 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Handle NOT.
2123 (dimode_scalar_chain::compute_convert_gain): Likewise.
2124 (dimode_scalar_chain::convert_insn): Likewise.
2125 * config/i386/i386.md (*one_cmpldi2_doubleword): New
2126 define_insn_and_split.
2127 (one_cmpl<mode>2): Use SWIM1248x iterator instead of SWIM.
2128
2129 PR target/78614
2130 * rtl.c (copy_rtx): Don't clear used flag here.
2131 (shallow_copy_rtx_stat): Clear used flag here unless code the rtx
2132 is shareable.
2133 * simplify-rtx.c (simplify_replace_fn_rtx): When copying rtx with
2134 'E' in format, copy all vectors.
2135 * emit-rtl.c (copy_insn_1): Don't clear used flag here.
2136 * valtrack.c (cleanup_auto_inc_dec): Likewise.
2137 * config/rs6000/rs6000.c (rs6000_frame_related): Likewise.
2138
2139 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2140 Thomas Preud'homme <thomas.preudhomme@arm.com>
2141
2142 * config/arm/arm-builtins.c (arm_builtins): Define
2143 ARM_BUILTIN_CMSE_NONSECURE_CALLER.
2144 (bdesc_2arg): Add line for cmse_nonsecure_caller.
2145 (arm_init_builtins): Handle cmse_nonsecure_caller.
2146 (arm_expand_builtin): Likewise.
2147 * config/arm/arm_cmse.h (cmse_nonsecure_caller): New.
2148
2149 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2150 Thomas Preud'homme <thomas.preudhomme@arm.com>
2151
2152 * config/arm/arm.c (detect_cmse_nonsecure_call): New.
2153 (cmse_nonsecure_call_clear_caller_saved): New.
2154 (arm_reorg): Use cmse_nonsecure_call_clear_caller_saved.
2155 (arm_function_ok_for_sibcall): Disable sibcalls for
2156 cmse_nonsecure_call.
2157 * config/arm/arm-protos.h (detect_cmse_nonsecure_call): New.
2158 * config/arm/arm.md (call): Handle cmse_nonsecure_entry.
2159 (call_value): Likewise.
2160 (nonsecure_call_internal): New.
2161 (nonsecure_call_value_internal): New.
2162 * config/arm/thumb1.md (*nonsecure_call_reg_thumb1_v5): New.
2163 (*nonsecure_call_value_reg_thumb1_v5): New.
2164 * config/arm/thumb2.md (*nonsecure_call_reg_thumb2): New.
2165 (*nonsecure_call_value_reg_thumb2): New.
2166 * config/arm/unspecs.md (UNSPEC_NONSECURE_MEM): New.
2167
2168 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2169 Thomas Preud'homme <thomas.preudhomme@arm.com>
2170
2171 * config/arm/arm.c (gimplify.h): New include.
2172 (arm_handle_cmse_nonsecure_call): New.
2173 (arm_attribute_table): Added cmse_nonsecure_call.
2174 (arm_comp_type_attributes): Deny compatibility of function types
2175 with without the cmse_nonsecure_call attribute.
2176 * doc/extend.texi (ARM ARMv8-M Security Extensions): New attribute.
2177
2178 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2179 Thomas Preud'homme <thomas.preudhomme@arm.com>
2180
2181 * config/arm/arm.c (output_return_instruction): Clear
2182 registers.
2183 (thumb2_expand_return): Likewise.
2184 (thumb1_expand_epilogue): Likewise.
2185 (thumb_exit): Likewise.
2186 (arm_expand_epilogue): Likewise.
2187 (cmse_nonsecure_entry_clear_before_return): New.
2188 (comp_not_to_clear_mask_str_un): New.
2189 (compute_not_to_clear_mask): New.
2190 * config/arm/thumb1.md (*epilogue_insns): Change length attribute.
2191 * config/arm/thumb2.md (*thumb2_return): Disable for
2192 cmse_nonsecure_entry functions.
2193 (*thumb2_cmse_entry_return): Duplicate thumb2_return pattern for
2194 cmse_nonsecure_entry functions.
2195
2196 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2197 Thomas Preud'homme <thomas.preudhomme@arm.com>
2198
2199 * config/arm/arm.c (use_return_insn): Change to return with bxns
2200 when cmse_nonsecure_entry.
2201 (output_return_instruction): Likewise.
2202 (arm_output_function_prologue): Likewise.
2203 (thumb_pop): Likewise.
2204 (thumb_exit): Likewise.
2205 (thumb2_expand_return): Assert that entry functions always have simple
2206 returns.
2207 (arm_expand_epilogue): Handle entry functions.
2208 (arm_function_ok_for_sibcall): Disable sibcall for entry functions.
2209 (arm_asm_declare_function_name): New.
2210 * config/arm/arm-protos.h (arm_asm_declare_function_name): New.
2211 * config/arm/elf.h (ASM_DECLARE_FUNCTION_NAME): Redefine to
2212 use arm_asm_declare_function_name.
2213
2214 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2215 Thomas Preud'homme <thomas.preudhomme@arm.com>
2216
2217 * config/arm/arm.c (arm_handle_cmse_nonsecure_entry): New.
2218 (arm_attribute_table): Added cmse_nonsecure_entry
2219 (arm_compute_func_type): Handle cmse_nonsecure_entry.
2220 (cmse_func_args_or_return_in_stack): New.
2221 (arm_handle_cmse_nonsecure_entry): New.
2222 * config/arm/arm.h (ARM_FT_CMSE_ENTRY): New macro define.
2223 (IS_CMSE_ENTRY): Likewise.
2224 * doc/extend.texi (ARM ARMv8-M Security Extensions): New attribute.
2225
2226 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2227 Thomas Preud'homme <thomas.preudhomme@arm.com>
2228
2229 * config.gcc (extra_headers): Added arm_cmse.h.
2230 * config/arm/arm-arches.def (ARM_ARCH):
2231 (armv8-m): Add FL2_CMSE.
2232 (armv8-m.main): Likewise.
2233 (armv8-m.main+dsp): Likewise.
2234 * config/arm/arm-c.c
2235 (arm_cpu_builtins): Added __ARM_FEATURE_CMSE macro.
2236 * config/arm/arm-flags.h: Define FL2_CMSE.
2237 * config/arm.c (arm_arch_cmse): New.
2238 (arm_option_override): New error for unsupported cmse target.
2239 * config/arm/arm.h (arm_arch_cmse): New.
2240 * config/arm/arm.opt (mcmse): New.
2241 * config/arm/arm_cmse.h: New file.
2242 * doc/invoke.texi (ARM Options): Add -mcmse.
2243 * doc/sourcebuild.texi (arm_cmse_ok): Add new effective target.
2244 * doc/extend.texi: Add ARMv8-M Security Extensions entry.
2245
2246 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
2247
2248 * config/avr/avr.c: Fix coding rule glitches.
2249
2250 2016-12-02 Martin Jambor <mjambor@suse.cz>
2251
2252 * hsa.c (hsa_callable_function_p): Return false for artificial
2253 functions.
2254
2255 2016-12-02 James Greenhalgh <james.greenhalgh@arm.com>
2256
2257 PR rtl-optimization/78561
2258 * varasm.c (recompute_pool_offsets): New.
2259 (output_constant_pool): Call it.
2260
2261 2016-12-02 James Greenhalgh <james.greenhalgh@arm.com>
2262
2263 PR rtl-optimization/78561
2264 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p) Rename
2265 get_pool_size to get_pool_size_upper_bound.
2266 (rs6000_stack_info): Likewise.
2267 (rs6000_emit_prologue): Likewise.
2268 (rs6000_elf_declare_function_name): Likewise.
2269 (rs6000_set_up_by_prologue): Likewise.
2270 (rs6000_can_eliminate): Likewise, reformat spaces to tabs.
2271 * output.h (get_pool_size): Rename to...
2272 (get_pool_size_upper_bound): ...This.
2273 * varasm.c (get_pool_size): Rename to...
2274 (get_pool_size_upper_bound): ...This.
2275
2276 2016-12-02 Bin Cheng <bin.cheng@arm.com>
2277
2278 * match.pd: Add new pattern:
2279 (cond (cmp (convert? x) c1) (op x c2) c3) -> (op (minmax x c1) c2).
2280
2281 2016-12-02 Nathan Sidwell <nathan@acm.org>
2282
2283 * diagnostic.c (diagnostic_report_diagnostic): Remove extraneous
2284 braces.
2285
2286 2016-12-02 Aldy Hernandez <aldyh@redhat.com>
2287
2288 PR middle-end/78328
2289 * gimple-ssa-warn-alloca.c (alloca_call_type): Handle
2290 VR_ANTI_RANGE.
2291
2292 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2293
2294 * config/s390/s390.c (s390_save_gprs_to_fprs): Fix RTL sharing
2295 problem.
2296
2297 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
2298
2299 * config/avr/avr-arch.h (avr_mcu_t) [n_flash]: Remove field.
2300 * config/avr/avr-devices.c (AVR_MCU): Remove N_FLASH macro argument.
2301 * config/avr/avr-mcus.def (AVR_MCU): Remove initializer for n_flash.
2302 * config/avr/avr.c (avr_set_core_architecture) [avr_n_flash]: Use
2303 avr_mcu_types.flash_size to compute default value.
2304 * config/avr/gen-avr-mmcu-specs.c (print_mcu) [cc1_n_flash]: Use
2305 mcu->flash_size to compute value for spec.
2306
2307 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
2308
2309 * doc/invoke.texi (AVR Options) [-mabsdata]: Point to absdata.
2310 * doc/extend.texi (AVR Variable Attributes) [progmem]: Hint
2311 about linker description to avoid progmem altogether.
2312 [absdata]: Point to -mabsdata option.
2313
2314 2016-12-02 Jakub Jelinek <jakub@redhat.com>
2315
2316 PR rtl-optimization/78547
2317 * emit-rtl.c (unshare_all_rtl): Make sure DECL_RTL and
2318 DECL_INCOMING_RTL is not shared.
2319 * config/i386/i386.c (convert_scalars_to_vectors): If any
2320 insns have been converted, adjust all parameter's DEC_RTL and
2321 DECL_INCOMING_RTL back from V1TImode to TImode if the parameters have
2322 TImode.
2323
2324 PR rtl-optimization/78575
2325 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses): Use
2326 DF infrastructure to wrap all V1TImode reg uses into TImode subreg
2327 if not already wrapped in a subreg. Make sure df_insn_rescan does not
2328 affect further iterations.
2329
2330 2016-12-02 Martin Liska <mliska@suse.cz>
2331
2332 PR ipa/78555
2333 * sreal.c (sreal::to_int): Make absolute value before shifting.
2334 (sreal::operator/): Likewise.
2335 (sreal_verify_negative_division): New test.
2336 (void sreal_c_tests): Call the new test.
2337 * sreal.h (sreal::normalize_up): Use new SREAL_ABS and
2338 SREAL_SIGN macros.
2339 (sreal::normalize_down): Likewise.
2340
2341 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
2342
2343 * combine.c (combine_simplify_rtx): Suppress replacement of
2344 "(and (reg) (const_int bit))" with "if_then_else".
2345
2346 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
2347
2348 PR target/77822
2349 * config/s390/s390.md ("extzv")
2350 ("*extzv<mode><clobbercc_or_nocc>")
2351 ("*extzvdi<clobbercc_or_nocc>_lshiftrt")
2352 ("*<risbg_n>_ior_and_sr_ze")
2353 ("*extract1bitdi<clobbercc_or_nocc>")
2354 ("*insv<mode><clobbercc_or_nocc>", "*insv_rnsbg_noshift")
2355 ("*insv_rnsbg_srl", "*insv<mode>_mem_reg")
2356 ("*insvdi_mem_reghigh", "*insvdi_reg_imm"): Use EXTRACT_ARGS_IN_RANGE
2357 to validate the arguments of zero_extract and sign_extract.
2358
2359 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
2360
2361 PR target/77822
2362 * rtl.h (EXTRACT_ARGS_IN_RANGE): New.
2363
2364 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2365
2366 * gcc/config/s390/s390.c (s390_builtin_vectorization_cost): New
2367 function.
2368 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Define target
2369 macro.
2370
2371 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2372
2373 * config/s390/vector.md (vec_halfhalf): New mode iterator.
2374 ("vec_pack_trunc_<mode>", "vec_pack_ssat_<mode>")
2375 ("vec_pack_usat_<mode>", "vec_unpacks_hi_v16qi")
2376 ("vec_unpacks_low_v16qi", "vec_unpacku_hi_v16qi")
2377 ("vec_unpacku_low_v16qi", "vec_unpacks_hi_v8hi")
2378 ("vec_unpacks_lo_v8hi", "vec_unpacku_hi_v8hi")
2379 ("vec_unpacku_lo_v8hi", "vec_unpacks_hi_v4si")
2380 ("vec_unpacks_lo_v4si", "vec_unpacku_hi_v4si")
2381 ("vec_unpacku_lo_v4si"): New pattern definitions.
2382 * config/s390/vx-builtins.md: Move VI_HW_HSD mode iterator to
2383 vector.md.
2384
2385 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2386
2387 * config/s390/s390-protos.h (s390_reverse_condition): New
2388 prototype.
2389 * config/s390/s390.c (s390_canonicalize_comparison): Fold compares
2390 of CC mode values.
2391 (s390_reverse_condition): New function.
2392 * config/s390/s390.h (REVERSE_CC_MODE, REVERSE_CONDITION): Define
2393 target macros.
2394
2395 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2396
2397 * config/s390/s390-modes.def (CCVEQANY, CCVH, CCVHANY, CCVHU)
2398 (CCVHUANY): Remove modes.
2399 (CCVIH, CCVIHU, CCVIALL, CCVIANY, CCVFALL, CCVFANY): Add modes and
2400 documentation.
2401 * config/s390/s390.c (s390_match_ccmode_set): Rename cc modes.
2402 (s390_expand_vec_compare_scalar): Pick one of the cc consumer
2403 modes.
2404 (s390_branch_condition_mask): Adjust to use the new cc consumer
2405 modes. The new modes allow for proper reversal in the middle-end.
2406 (s390_expand_vec_compare_cc): Determine the proper cc producer and
2407 consumer modes for a comparison.
2408 * config/s390/s390.md: Rename CCVH to CCVIH and CCVHU to CCVIHU
2409 throughout the file.
2410 * config/s390/vx-builtins.md: Likewise.
2411
2412 2016-12-02 Maxim Ostapenko <m.ostapenko@samsung.com>
2413
2414 * asan.c (asan_global_struct): Refactor.
2415 (create_odr_indicator): New function.
2416 (asan_needs_odr_indicator_p): Likewise.
2417 (is_odr_indicator): Likewise.
2418 (asan_add_global): Introduce odr_indicator_ptr. Pass it into global's
2419 constructor.
2420 (asan_protect_global): Do not protect odr indicators.
2421
2422 2016-12-01 Jeff Law <law@redhat.com>
2423
2424 * tree-ssa-threadedge.c
2425 (record_temporary_equivalences_from_stmts_at_dest): Avoid temporary
2426 propagation of operands if there are no operands.
2427
2428 2016-12-02 Jakub Jelinek <jakub@redhat.com>
2429
2430 PR tree-optimization/78586
2431 * gimple-ssa-sprintf.c (format_integer): Don't handle NOP_EXPR,
2432 CONVERT_EXPR or COMPONENT_REF here. Formatting fix. For
2433 SSA_NAME_DEF_STMT with NOP_EXPR only change argtype if the rhs1's
2434 type is INTEGER_TYPE or POINTER_TYPE.
2435
2436 2016-12-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
2437
2438 PR target/78577
2439 * config/rs6000/vsx.md (vextuhlx): Revise mode of operand 2.
2440 (vextuhrx): Likewise.
2441 (vextuwlx): Likewise.
2442 (vextuwrx): Likewise.
2443
2444 2016-12-01 David Malcolm <dmalcolm@redhat.com>
2445
2446 * dwarf2out.c (dwarf2out_c_finalize): Reset early_dwarf and
2447 early_dwarf_finished.
2448
2449 2016-12-01 Eric Botcazou <ebotcazou@adacore.com>
2450 David S. Miller <davem@davemloft.net>
2451
2452 * config/sparc/sparc.opt (mlra): New target option.
2453 * config/sparc/sparc.c (TARGET_LRA_P): Define to...
2454 (sparc_lra_p): ...this. New function.
2455 (D_MODES, DF_MODES): Add missing cast.
2456 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
2457 provide these insns when flag_pic.
2458 (sethi_di_medlow, losum_di_medlow, seth44, setm44, setl44, sethh,
2459 setlm, sethm, setlo, embmedany_sethi, embmedany_losum,
2460 embmedany_brsum, embmedany_textuhi, embmedany_texthi,
2461 embmedany_textulo, embmedany_textlo): Likewise.
2462 (sethi_di_medlow_embmedany_pic): Provide it only with flag_pic.
2463
2464 2016-12-01 David Edelsohn <dje.gcc@gmail.com>
2465
2466 PR debug/66419
2467 PR c++/78235
2468 * dbxout.c (dbxout_type_fields): Skip TEMPLATE_DECLs.
2469
2470 2016-12-01 Richard Biener <rguenther@suse.de>
2471 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2472
2473 * vec.h (vec<T, A, vl_embed>::quick_grow_cleared): Guard call to
2474 memset if len-oldlen != 0.
2475 (vec<T, va_heap, vl_ptr>::safe_grow_cleared): Likewise.
2476
2477 2016-12-01 Uros Bizjak <ubizjak@gmail.com>
2478
2479 * config/i386/i386.md (*andndi3_doubleword): Depend on TARGET_SSE2.
2480
2481 2016-12-01 Georg-Johann Lay <avr@gjlay.de>
2482
2483 * config/avr/avr.c: Fix coding rule glitches.
2484
2485 2016-12-01 Markus Trippelsdorf <markus@trippelsdorf.de>
2486
2487 PR tree-optimization/78598
2488 * tree-ssa-loop-prefetch.c (ddown): Cast to signed to avoid
2489 overflows.
2490
2491 2016-12-01 Markus Trippelsdorf <markus@trippelsdorf.de>
2492
2493 PR rtl-optimization/78596
2494 * combine.c (simplify_comparison): Cast to unsigned to avoid
2495 left shifting of negative value.
2496
2497 2016-12-01 Matthias Klose <doko@ubuntu.com>
2498
2499 * doc/install.texi: Don't use pkg-config to check for bdw-gc.
2500
2501 2016-12-01 Richard Biener <rguenther@suse.de>
2502
2503 * tree-ssa-alias.c (indirect_refs_may_alias_p): Do not
2504 treat arrays with same type as objects that cannot overlap.
2505
2506 2016-12-01 Georg-Johann Lay <avr@gjlay.de>
2507
2508 * config/avr/avr.c (avr_print_operand): Use SYMBOL_REF_P if possible.
2509 (avr_handle_addr_attribute, avr_asm_output_aligned_decl_common)
2510 (avr_asm_asm_output_aligned_bss, avr_addr_space_convert): Dito.
2511
2512 2016-12-01 Jakub Jelinek <jakub@redhat.com>
2513
2514 PR debug/78587
2515 * dwarf2out.c (loc_descr_plus_const): For negative offset use
2516 uint_loc_descriptor instead of int_loc_descriptor and perform negation
2517 in unsigned HOST_WIDE_INT type.
2518 (scompare_loc_descriptor): Shift UINTVAL left instead of INTVAL.
2519
2520 PR target/78614
2521 * config/rs6000/rs6000.c (rs6000_frame_related): Call
2522 set_used_flags (pat) before any simplifications. Clear used flag on
2523 PARALLEL copy. Don't guard add_reg_note call. Call
2524 copy_rtx_if_shared on pat before storing it into
2525 REG_FRAME_RELATED_EXPR.
2526
2527 2016-12-01 Alan Modra <amodra@gmail.com>
2528
2529 * gcc/config/rs6000/rs6000.c (insn_is_swappable_p): Properly
2530 look inside UNSPEC_VSX_XXSPLTW vec.
2531
2532 2016-12-01 Segher Boessenkool <segher@kernel.crashing.org>
2533
2534 PR rtl-optimization/78607
2535 * combine.c (try_combine): Emit a barrier after a unconditional trap.
2536
2537 2016-11-30 Michael Meissner <meissner@linux.vnet.ibm.com>
2538
2539 PR target/78602
2540 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): If the
2541 element is not a constant or in a register, force it to a
2542 register.
2543
2544 PR target/78560
2545 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Force value
2546 that will be set to a vector element to be in a register.
2547 * config/rs6000/vsx.md (vsx_set_<mode>_p9): Fix thinko that used
2548 the wrong multiplier to convert the element number to a byte
2549 offset.
2550
2551 2016-11-30 Vladimir Makarov <vmakarov@redhat.com>
2552
2553 PR tree-optimization/77856
2554 * lra-constraints.c (inherit_in_ebb): Check original regno for
2555 invalid invariant regs too. Set only clobbered hard regs for the
2556 invalid invariant regs.
2557
2558 2016-11-30 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
2559
2560 Commit files forgotten in r242966.
2561
2562 * config/avr/avr-arch.h (avr_mcu_t) [flash_size]: New member.
2563 * config/avr/avr-devices.c (avr_mcu_types): Add flash size info.
2564 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Remove hard-coded
2565 prefix check to find wrap-around value, instead use MCU flash size.
2566 For 8k flash devices, update link_pmem_wrap spec string to
2567 add --pmem-wrap-around=8k.
2568 * config/avr/specs.h (LINK_RELAX_SPEC): Move link_pmem_wrap from
2569 here...
2570 (LINK_SPEC): ...to here.
2571
2572 2016-11-30 David Malcolm <dmalcolm@redhat.com>
2573
2574 PR c/78498
2575 * selftest.c (selftest::assert_strndup_eq): New function.
2576 (selftest::test_strndup): New function.
2577 (selftest::test_libiberty): New function.
2578 (selftest::selftest_c_tests): Call test_libiberty.
2579
2580 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
2581
2582 PR rtl-optimization/78610
2583 * ira.c (combine_and_move_insns): Don't substitute into TRAP_IF
2584 instructions.
2585
2586 2016-11-30 Bin Cheng <bin.cheng@arm.com>
2587
2588 PR tree-optimization/78574
2589 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Skip loop
2590 header PHI that doesn't define biv.
2591
2592 2016-11-30 Jakub Jelinek <jakub@redhat.com>
2593
2594 * emit-rtl.c (verify_insn_sharing): Call verify_rtx_sharing instead of
2595 reset_used_flags.
2596
2597 * config/i386/i386.c (dimode_scalar_chain::convert_op): Avoid
2598 sharing the SUBREG rtx between move and following insn.
2599
2600 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use copy_rtx
2601 for REG_EQUIV argument.
2602
2603 2016-11-30 Thomas Preud'homme <thomas.preudhomme@arm.com>
2604
2605 * config/arm/t-rmprofile: Add mappings for Cortex-M23 and Cortex-M33.
2606
2607 2016-11-30 Markus Trippelsdorf <markus@trippelsdorf.de>
2608
2609 PR ipa/78555
2610 * real.c (real_hash): Add cast to avoid left
2611 shifting of negative values.
2612
2613 2016-11-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2614
2615 PR target/78362
2616 * config/aarch64/aarch64.md (add<mode>3): Extract inner expression
2617 from a subreg in operands[1] and don't call REGNO on a non-reg
2618 expression when deciding to force operands[2] into a reg.
2619
2620 2016-11-30 Claudiu Zissulescu <claziss@synopsys.com>
2621 Andrew Burgess <andrew.burgess@embecosm.com>
2622
2623 * config/arc/arc-protos.h (arc_store_addr_hazard_p): Declare.
2624 * config/arc/arc.c (arc_store_addr_hazard_p): New function.
2625 (workaround_arc_anomaly): Call arc_store_addr_hazard_p for ARC700.
2626 * config/arc/arc700.md: Add define_bypass for store/load.
2627
2628 2016-11-30 Martin Liska <mliska@suse.cz>
2629
2630 * cgraph.c (symbol_table::initialize): Initialize
2631 ipa_clones_dump_file.
2632 (cgraph_node::remove): Report to ipa_clones_dump_file.
2633 * cgraph.h: Add new argument (suffix) to cloning methods.
2634 * cgraphclones.c (dump_callgraph_transformation): New function.
2635 (cgraph_node::create_clone): New argument.
2636 (cgraph_node::create_virtual_clone): Likewise.
2637 (cgraph_node::create_version_clone): Likewise.
2638 * dumpfile.c: Add .ipa-clones dump file.
2639 * dumpfile.h (enum tree_dump_index): Add TDI_clones
2640 * ipa-inline-transform.c (clone_inlined_nodes): Report operation
2641 to dump_callgraph_transformation.
2642
2643 2016-11-30 Martin Liska <mliska@suse.cz>
2644
2645 PR sanitizer/78541
2646 * asan.c (asan_expand_mark_ifn): Properly
2647 select a VAR_DECL from FRAME.* component reference.
2648
2649 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
2650
2651 PR rtl-optimization/78583
2652 * simplify-rtx.c (simplify_truncation): Add check missing from the
2653 previous commit.
2654
2655 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
2656
2657 PR rtl-optimization/78590
2658 * combine.c (change_zero_ext): Transform zero_extend of subregs only
2659 if the subreg_reg is a scalar integer mode.
2660
2661 2016-11-30 Jakub Jelinek <jakub@redhat.com>
2662
2663 PR tree-optimization/78586
2664 * gimple-ssa-sprintf.c (format_integer): Use TYPE_MAX_VALUE or
2665 TYPE_MIN_VALUE or build_all_ones_cst instead of folding LSHIFT_EXPR.
2666 Don't build_int_cst min/max twice. Formatting fix.
2667
2668 2016-11-30 Markus Trippelsdorf <markus@trippelsdorf.de>
2669
2670 PR rtl-optimization/78588
2671 * combine.c (if_then_else_cond): Also guard against BLKmode.
2672 * rtlanal.c (num_sign_bit_copies1): Add assert.
2673
2674 2016-11-29 Jeff Law <law@redhat.com>
2675
2676 * common/config/arc/arc-common.c (arc_handle_option): Remove unused
2677 variables.
2678
2679 * lra-constraints.c (check_and_process_move): Constrain the
2680 range of DCLASS and SCLASS to avoid false positive out of bounds
2681 array index warning.
2682
2683 2016-11-29 David Malcolm <dmalcolm@redhat.com>
2684
2685 * doc/install.texi (--with-target-bdw-gc): Remove stray '@'.
2686
2687 2016-11-29 David Malcolm <dmalcolm@redhat.com>
2688
2689 PR preprocessor/78569
2690 * input.c (get_substring_ranges_for_loc): Fail gracefully if
2691 line directives were present.
2692
2693 2016-11-30 Matthias Klose <doko@ubuntu.com>
2694
2695 * doc/install.texi: Document configure options --enable-objc-gc
2696 and --with-target-bdw-gc.
2697
2698 2016-11-29 Michael Meissner <meissner@linux.vnet.ibm.com>
2699
2700 PR target/78594
2701 * config/rs6000/rs6000.md (mov<mode>_internal, QHI iterator): Add
2702 'x' to stxsi<wd>x print pattern, so that QImode and HImode values
2703 residing in traditional altivec registers can be stored
2704 correctly.
2705
2706 2016-11-29 Max Filippov <jcmvbkbc@gmail.com>
2707
2708 PR target/78603
2709 * config/xtensa/xtensa.c (hwloop_optimize): Don't emit zero
2710 overhead loop start between a call and its CALL_ARG_LOCATION
2711 note.
2712
2713 2016-11-29 Waldemar Brodkorb <wbx@openadk.org>
2714
2715 * config/bfin/linux.h (CPP_SPEC): Define.
2716
2717 2016-11-29 Martin Sebor <msebor@redhat.com>
2718
2719 PR tree-optimization/78512
2720 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Remove.
2721 * config/rs6000/linux.h: Same.
2722 * config/rs6000/linux64.h: Same.
2723 * config/sol2.h: Same.
2724 * config/sol2.c (solaris_printf_pointer_format): Remove.
2725 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Remove.
2726 * doc/tm.texi: Regenerate.
2727 * gimple-ssa-sprintf.c (format_pointer): Rempove.
2728 (pass_sprintf_length::compute_format_length): Return bool.
2729 (pass_sprintf_length::handle_gimple_call): Adjust.
2730 * target.def (printf_pointer_format): Remove.
2731 * targhooks.c (default_printf_pointer_format): Remove.
2732 (linux_printf_pointer_format): Same.
2733 * targhooks.h (default_printf_pointer_format): Remove.
2734 (linux_printf_pointer_format, solaris_printf_pointer_format): Same.
2735
2736 2016-11-29 Uros Bizjak <ubizjak@gmail.com>
2737
2738 * config/i386/sse.md (UNSPEC_MASKOP): Move from i386.md.
2739 (mshift): Ditto.
2740 (SWI1248_AVX512BWDQ): Ditto.
2741 (SWI1248_AVX512BW): Ditto.
2742 (k<any_logic:code><mode>): Ditto.
2743 (kandn<mode>): Ditto.
2744 (kxnor<mode>): Ditto.
2745 (knot<mode>): Ditto.
2746 (*k<any_lshift:code><mode>): Ditto.
2747 (kortestzhi, kortestchi): Ditto.
2748 (kunpckhi, kunpcksi, kunpckdi): Ditto.
2749
2750 2016-11-29 Andrew Pinski <apinski@cavium.com>
2751
2752 * tree-vrp.c (simplify_stmt_using_ranges): Use boolean_type_node
2753 for the EQ_EXPR.
2754
2755 2016-11-29 Chen Gang <gang.chen.5i5j@gmail.com>
2756
2757 PR target/71331
2758 * config/tilegx/tilegx.c (tilegx_function_profiler): Save r10
2759 to stack before call mcount.
2760 (tilegx_can_use_return_insn_p): Clean up code.
2761
2762 2016-11-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
2763
2764 * config/avr/avr-mcu.def: (avr_mcu_types): Add flash size info.
2765
2766 2016-11-29 David Malcolm <dmalcolm@redhat.com>
2767
2768 PR c++/72774
2769 PR c++/72786
2770 PR c++/77922
2771 PR c++/78313
2772 * spellcheck.c (selftest::test_find_closest_string): Verify that
2773 we don't offer the goal string as a suggestion.
2774 * spellcheck.h (best_match::get_best_meaningful_candidate): Don't
2775 offer the goal string as a suggestion.
2776
2777
2778 2016-11-29 Claudiu Zissulescu <claziss@synopsys.com>
2779
2780 * config/arc/arc.c (arc_override_options): Avoid selection of
2781 compact casesi for ARCv2.
2782
2783 2016-11-29 Richard Biener <rguenther@suse.de>
2784
2785 * tree-cfg.c (lower_phi_internal_fn): Do not look for further
2786 PHIs after a regular stmt.
2787 (stmt_starts_bb_p): PHIs not preceeded by a PHI or a label
2788 start a new BB.
2789
2790 2016-11-29 Martin Liska <mliska@suse.cz>
2791
2792 PR gcov-profile/78582
2793 * tree-profile.c (gimple_gen_time_profiler): Make one extra BB
2794 to prevent PHI argument clash.
2795
2796 2016-11-29 Claudiu Zissulescu <claziss@synopsys.com>
2797
2798 * config/arc/arc.opt (marclinux): Fix typo.
2799 (marclinux_prof): Likewise.
2800
2801 2016-11-29 Jiong Wang <jiong.wang@arm.com>
2802
2803 * target.def (stack_protect_runtime_enabled_p): New.
2804 * function.c (expand_function_end): Guard stack_protect_epilogue with
2805 targetm.stack_protect_runtime_enabled_p.
2806 * cfgexpand.c (pass_expand::execute): Likewise.
2807 * calls.c (expand_call): Likewise.
2808 * doc/tm.texi.in (TARGET_STACK_PROTECT_RUNTIME_ENABLED_P): Add it.
2809 * doc/tm.texi: Regenerate.
2810
2811 2016-11-29 Richard Biener <rguenther@suse.de>
2812
2813 PR middle-end/78546
2814 * match.pd: Add CST1 - (CST2 - A) -> CST3 + A missing case.
2815
2816 2016-11-29 Janus Weil <janus@gcc.gnu.org>
2817
2818 * doc/contrib.texi: Add a few missing gfortran contributors.
2819
2820 2016-11-29 Segher Boessenkool <segher@kernel.crashing.org>
2821
2822 * combine.c (change_zero_ext): Also handle extends from a subreg
2823 to a mode bigger than that of the operand of the subreg.
2824
2825 2016-11-29 Segher Boessenkool <segher@kernel.crashing.org>
2826
2827 PR target/77687
2828 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Emit the
2829 stack_restore_tie insn instead of stack_tie, for the SVR4 and
2830 SPE ABIs.
2831 * config/rs6000/rs6000.md (stack_restore_tie): New define_insn.
2832
2833 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
2834
2835 * shrink-wrap.c (init_separate_shrink_wrap): Do not clear
2836 head_components and tail_components.
2837 (spread_components): New algorithm.
2838 (emit_common_tails_for_components): Clear head_components and
2839 tail_components.
2840 (insert_prologue_epilogue_for_components): Write extra output to the
2841 dump file for sibcalls and abnormal exits.
2842
2843 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
2844
2845 PR rtl-optimization/78342
2846 * combine.c: Include "cfghooks.h".
2847 (try_combine): If we create an unconditional trap, break the basic
2848 block in two just after it, and remove the edge between; also, set
2849 the *new_direct_jump_p flag so that cleanup_cfg is run.
2850
2851 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
2852
2853 * simplify-rtx.c (simplify_truncation): Handle truncate of zero_extract
2854 and sign_extract.
2855
2856 2016-11-28 Uros Bizjak <ubizjak@gmail.com>
2857
2858 * config/i386/i386.md (*and<mode>_1): Merge insn pattern from
2859 *andsi_1 and *andhi_1 using SWI24 mode iterator. Use multi-line
2860 output template string.
2861 (*anddi_1): Use multi-line output template string.
2862 (*andqi_1): Ditto.
2863
2864 2016-11-28 Jakub Jelinek <jakub@redhat.com>
2865
2866 PR middle-end/78540
2867 * rtl.h (remove_reg_equal_equiv_notes): Return bool instead of void.
2868 * rtlanal.c (remove_reg_equal_equiv_notes): Return true if any
2869 note has been removed.
2870 * postreload.c (reload_combine_recognize_pattern): If
2871 remove_reg_equal_equiv_notes returns true, call df_notes_rescan.
2872
2873 2016-11-28 Martin Sebor <msebor@redhat.com>
2874
2875 PR middle-end/78520
2876 * gimple-ssa-sprintf.c (target_max_value): Remove.
2877 (target_int_max, target_size_max): Use TYPE_MAX_VALUE.
2878 (get_width_and_precision): New function.
2879 (format_integer, format_floating, get_string_length, format_string):
2880 Correct handling of width and precision with unknown value.
2881 (format_directive): Add warning.
2882 (pass_sprintf_length::compute_format_length): Allow for precision
2883 to consist of a sole period with no asterisk or digits after it.
2884
2885 2016-11-28 Jakub Jelinek <jakub@redhat.com>
2886
2887 PR rtl-optimization/78546
2888 * simplify-rtx.c (neg_const_int): When negating most negative
2889 number in mode wider than HOST_BITS_PER_WIDE_INT, use
2890 simplify_const_unary_operation to produce CONST_DOUBLE or
2891 CONST_WIDE_INT.
2892 (simplify_plus_minus): Handle the case where neg_const_int
2893 doesn't return a CONST_INT.
2894
2895 2016-11-28 Markus Trippelsdorf <markus@trippelsdorf.de>
2896
2897 PR target/78556
2898 * config/rs6000/rs6000.c (vspltis_constant): Add casts to avoid
2899 left shifting of negative values.
2900
2901 2016-11-28 Jakub Jelinek <jakub@redhat.com>
2902
2903 PR fortran/78298
2904 * tree-nested.c (convert_local_reference_stmt): After adding
2905 shared (FRAME.NN) clause to omp parallel, task or target,
2906 add it also to all outer omp parallel, task or target constructs.
2907
2908 2016-11-28 Uros Bizjak <ubizjak@gmail.com>
2909
2910 * config/i386/i386.md (UNSPEC_KMASKOP): New.
2911 (UNSPEC_KMOV): Remove.
2912 (kmovw): Expand to plain HImode move.
2913 (k<any_logic:code><mode>): Rename from *k<logic><mode>. Use
2914 register_operand predicates. Tag pattern with UNSPEC_KMASKOP.
2915 Remove corresponding clobber-removing splitter.
2916 (*anddi_1): Remove mask register alternatives.
2917 (*andsi_1): Ditto.
2918 (*andhi_1): Ditto.
2919 (*andqi_1): Ditto.
2920 (*<any_or:code><mode>_1): Ditto.
2921 (*<any_or:code>qi_1): Ditto.
2922 (kandn<mode>): Use SWI1248_AVX512BW mode iterator. Remove
2923 general register alternatives. Tag pattern with UNSPEC_KMASKOP.
2924 Remove corresponding splitter to operation with general registers.
2925 (*andn<SWI38:mode>): Rename from *bmi_andn_<mode>.
2926 (*andn<SWI12:mode>): New pattern.
2927 (*kxnor<mode>): Remove general register alternatives. Tag pattern
2928 with UNSPEC_KMASKOP. Remove corresponding splitter to operation
2929 with general registers.
2930 (knot<mode>): New insn pattern.
2931 (*one_cmpl<mode>2_1): Remove mask register alternatives.
2932 (one_cmplqi2_1): Ditto.
2933 (*k<any_lshift:code><mode>): Rename from *k<mshift><mode>3.
2934 Tag pattern with UNSPEC_KMASKOP. Add mode attribute.
2935 * config/i386/predicates.md (mask_reg_operand): Remove predicate.
2936 * config/i386/sse.md (vec_unpacks_hi_hi): Update pattern
2937 to generate kmaskop shift.
2938 (vec_unpacks_hi_<mode>): Ditto.
2939 * config/i386/i386-builtin.def (__builtin_ia32_kandhi):
2940 Use CODE_FOR_kandhi.
2941 (__builtin_ia32_knothi): Use CODE_FOR_knothi.
2942 (__builtin_ia32_korhi): Use CODE_FOR_kiorhi.
2943 (__builtin_ia32_kxorhi): Use CODE_FOR_kxorhi.
2944
2945 2016-11-28 Richard Biener <rguenther@suse.de>
2946
2947 * tree-vrp.c (vrp_visit_assignment_or_call): Handle simplifications
2948 to SSA names via extract_range_from_ssa_name if allowed.
2949
2950 2016-11-28 Richard Biener <rguenther@suse.de>
2951
2952 PR tree-optimization/78542
2953 * tree-ssa-ccp.c (evaluate_stmt): Only valueize simplification
2954 if allowed.
2955
2956 2016-11-28 Paolo Bonzini <bonzini@gnu.org>
2957
2958 * combine.c (simplify_if_then_else): Simplify IF_THEN_ELSE that
2959 isolates a single bit, even if the condition involves subregs.
2960
2961 2016-11-28 Tamar Christina <tamar.christina@arm.com>
2962
2963 * config/aarch64/aarch64-simd-builtins.def
2964 (BSL_P): Added di and v2di mode.
2965 * config/aarch64/arm_neon.h
2966 (vsriq_n_p64, vsri_n_p64): Added poly type.
2967 (vextq_p64, vext_p64): Likewise.
2968 (vceq_p64, vbslq_p64, vbsl_p64): Likewise.
2969
2970 2016-11-28 Tamar Christina <tamar.christina@arm.com>
2971
2972 * config/aarch64/aarch64-builtins.c (TYPES_SETREGP): Added poly type.
2973 (TYPES_GETREGP): Likewise.
2974 (TYPES_SHIFTINSERTP): Likewise.
2975 (TYPES_COMBINEP): Likewise.
2976 (TYPES_STORE1P): Likewise.
2977 * config/aarch64/aarch64-simd-builtins.def
2978 (combine): Added poly generator.
2979 (get_dregoi): Likewise.
2980 (get_dregci): Likewise.
2981 (get_dregxi): Likewise.
2982 (ssli_n): Likewise.
2983 (ld1): Likewise.
2984 (st1): Likewise.
2985 * config/aarch64/arm_neon.h
2986 (poly64x1x2_t, poly64x1x3_t): New.
2987 (poly64x1x4_t, poly64x2x2_t): Likewise.
2988 (poly64x2x3_t, poly64x2x4_t): Likewise.
2989 (poly64x1_t): Likewise.
2990 (vcreate_p64, vcombine_p64): Likewise.
2991 (vdup_n_p64, vdupq_n_p64): Likewise.
2992 (vld2_p64, vld2q_p64): Likewise.
2993 (vld3_p64, vld3q_p64): Likewise.
2994 (vld4_p64, vld4q_p64): Likewise.
2995 (vld2_dup_p64, vld3_dup_p64): Likewise.
2996 (vld4_dup_p64, vsli_n_p64): Likewise.
2997 (vsliq_n_p64, vst1_p64): Likewise.
2998 (vst1q_p64, vst2_p64): Likewise.
2999 (vst3_p64, vst4_p64): Likewise.
3000 (__aarch64_vdup_lane_p64, __aarch64_vdup_laneq_p64): Likewise.
3001 (__aarch64_vdupq_lane_p64, __aarch64_vdupq_laneq_p64): Likewise.
3002 (vget_lane_p64, vgetq_lane_p64): Likewise.
3003 (vreinterpret_p8_p64, vreinterpretq_p8_p64): Likewise.
3004 (vreinterpret_p16_p64, vreinterpretq_p16_p64): Likewise.
3005 (vreinterpret_p64_f16, vreinterpret_p64_f64): Likewise.
3006 (vreinterpret_p64_s8, vreinterpret_p64_s16): Likewise.
3007 (vreinterpret_p64_s32, vreinterpret_p64_s64): Likewise.
3008 (vreinterpret_p64_f32, vreinterpret_p64_u8): Likewise.
3009 (vreinterpret_p64_u16, vreinterpret_p64_u32): Likewise.
3010 (vreinterpret_p64_u64, vreinterpret_p64_p8): Likewise.
3011 (vreinterpretq_p64_f64, vreinterpretq_p64_s8): Likewise.
3012 (vreinterpretq_p64_s16, vreinterpretq_p64_s32): Likewise.
3013 (vreinterpretq_p64_s64, vreinterpretq_p64_f16): Likewise.
3014 (vreinterpretq_p64_f32, vreinterpretq_p64_u8): Likewise.
3015 (vreinterpretq_p64_u16, vreinterpretq_p64_u32): Likewise.
3016 (vreinterpretq_p64_u64, vreinterpretq_p64_p8): Likewise.
3017 (vreinterpret_f16_p64, vreinterpretq_f16_p64): Likewise.
3018 (vreinterpret_f32_p64, vreinterpretq_f32_p64): Likewise.
3019 (vreinterpret_f64_p64, vreinterpretq_f64_p64): Likewise.
3020 (vreinterpret_s64_p64, vreinterpretq_s64_p64): Likewise.
3021 (vreinterpret_u64_p64, vreinterpretq_u64_p64): Likewise.
3022 (vreinterpret_s8_p64, vreinterpretq_s8_p64): Likewise.
3023 (vreinterpret_s16_p64, vreinterpret_s32_p64): Likewise.
3024 (vreinterpretq_s32_p64, vreinterpret_u8_p64): Likewise.
3025 (vreinterpret_u16_p64, vreinterpretq_u16_p64): Likewise.
3026 (vreinterpret_u32_p64, vreinterpretq_u32_p64): Likewise.
3027 (vset_lane_p64, vsetq_lane_p64): Likewise.
3028 (vget_low_p64, vget_high_p64): Likewise.
3029 (vcombine_p64, vst2_lane_p64): Likewise.
3030 (vst3_lane_p64, vst4_lane_p64): Likewise.
3031 (vst2q_lane_p64, vst3q_lane_p64): Likewise.
3032 (vst4q_lane_p64, vget_lane_p64): Likewise.
3033 (vget_laneq_p64, vset_lane_p64): Likewise.
3034 (vset_laneq_p64, vcopy_lane_p64): Likewise.
3035 (vcopy_laneq_p64, vdup_n_p64): Likewise.
3036 (vdupq_n_p64, vdup_lane_p64): Likewise.
3037 (vdup_laneq_p64, vld1_p64): Likewise.
3038 (vld1q_p64, vld1_dup_p64): Likewise.
3039 (vld1q_dup_p64, vld1q_dup_p64): Likewise.
3040 (vmov_n_p64, vmovq_n_p64): Likewise.
3041 (vst3q_p64, vst4q_p64): Likewise.
3042 (vld1_lane_p64, vld1q_lane_p64): Likewise.
3043 (vst1_lane_p64, vst1q_lane_p64): Likewise.
3044 (vcopy_laneq_p64, vcopyq_laneq_p64): Likewise.
3045 (vdupq_laneq_p64): Likewise.
3046
3047 2016-11-28 Tamar Christina <tamar.christina@arm.com>
3048
3049 * config/arm/arm_neon.h (vget_lane_p64): New.
3050
3051 2016-11-28 Iain Sandoe <iain@codesourcery.com>
3052
3053 PR target/71767
3054 * configure.ac (with_ld64): Use portable method to extract the
3055 major part of the version number.
3056 * configure: Regenerated.
3057
3058 2016-11-28 Jakub Jelinek <jakub@redhat.com>
3059
3060 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Look at
3061 UINTMAX_TYPE rather than SIZE_TYPE. Add gcc_unreachable if
3062 intmax_t couldn't be determined.
3063 (format_integer): Make {,u}intmax_type_node no longer static,
3064 initialize them only when needed. For z and t use
3065 signed_or_unsigned_type_for instead of assuming size_t and
3066 ptrdiff_t have the same precision.
3067
3068 PR lto/78211
3069 * ipa-icf.h (sem_item_optimizer): Add m_classes_vec member.
3070 * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Initialize it.
3071 (sem_item_optimizer::~sem_item_optimizer): Traverse m_classes_vec
3072 vector instead of traversing m_classes hash table. Release
3073 m_classes_vec.
3074 (sem_item_optimizer::read_section, sem_item_optimizer::add_class):
3075 Formatting fixes.
3076 (sem_item_optimizer::get_group_by_hash): When inserting a new group,
3077 add it also to m_classes_vec vector.
3078 (sem_item_optimizer::remove_symtab_node,
3079 sem_item_optimizer::build_hash_based_classes,
3080 sem_item_optimizer::parse_nonsingleton_classes): Formatting fixes.
3081 (sem_item_optimizer::subdivide_classes_by_equality,
3082 sem_item_optimizer::subdivide_classes_by_sensitive_refs,
3083 sem_item_optimizer::verify_classes): Traverse m_classes_vec vector
3084 instead of traversing m_classes hash table. Formatting fixes.
3085 (sem_item_optimizer::traverse_congruence_split,
3086 sem_item_optimizer::do_congruence_step_for_index,
3087 sem_item_optimizer::do_congruence_step): Formatting fixes.
3088 (sem_item_optimizer::process_cong_reduction): Traverse m_classes_vec
3089 vector instead of traversing m_classes hash table.
3090 (sem_item_optimizer::dump_cong_classes): Likewise. Formatting fixes.
3091 (sem_item_optimizer::merge_classes): Traverse m_classes_vec vector
3092 instead of traversing m_classes hash table.
3093
3094 2016-11-28 Georg-Johann Lay <avr@gjlay.de>
3095
3096 * config/avr/avr.c (out_movhi_r_mr) [REG_X + PLUS]: Only SBIW if
3097 X is not unused after.
3098
3099 2016-11-28 Bernd Schmidt <bschmidt@redhat.com>
3100
3101 PR rtl-optimization/78120
3102 * rtlanal.c (insn_rtx_cost): Revert previous change.
3103
3104 2016-11-28 Georg-Johann Lay <avr@gjlay.de>
3105
3106 PR 41076
3107 * config/avr/avr.md (SPLIT34): New mode iterator.
3108 (bitop): New code iterator.
3109 (*iorhi3.ashift8-*). New insn-and-split patterns.
3110 (*movhi): Post-reload split reg = 0.
3111 [!MOVW]: Post-reload split reg = reg.
3112 (*mov<mode>) [SI,SF,PSI,SQ,USQ,SA,USA]: Post-reload split reg = reg.
3113 (andhi3, andpsi3, andsi3): Post-reload split reg-reg operations.
3114 (iorhi3, iorpsi3, iorsi3): Same.
3115 (xorhi3, xorpsi3, xorsi3): Same.
3116 * config/avr/avr.c (avr_rtx_costs_1) [IOR && HImode]: Adjust rtx
3117 costs to *iorhi3.ashift8-* patterns.
3118
3119 2016-11-27 Iain Sandoe <iain@codesourcery.com>
3120 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3121
3122 PR target/67710
3123 * config.in: Regenerate
3124 * config/darwin-driver.c (darwin_driver_init): Emit a version string
3125 for the assembler.
3126 * config/darwin.h(ASM_MMACOSX_VERSION_MIN_SPEC): New, new tests.
3127 * config/darwin.opt(asm_macosx_version_min): New.
3128 * config/i386/darwin.h: Handle ASM_MMACOSX_VERSION_MIN_SPEC.
3129 * configure: Regenerate
3130 * configure.ac: Check for mmacosx-version-min handling.
3131
3132 2016-11-27 Iain Sandoe <iain@codesourcery.com>
3133
3134 PR target/57438
3135 * config/i386/i386.c (ix86_code_end): Note that we emitted code
3136 where the function might otherwise appear empty for picbase thunks.
3137 (ix86_output_function_epilogue): If we find a zero-sized function
3138 assume that reaching it is UB and trap. If we find a trailing label
3139 append a nop.
3140 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): If we
3141 find a zero-sized function assume that reaching it is UB and trap.
3142 If we find a trailing label, append a nop.
3143
3144 2016-11-27 Iain Sandoe <iain@codesourcery.com>
3145
3146 PR target/71767
3147 * config/darwin-sections.def (picbase_thunk_section): New.
3148 * config/darwin.c (darwin_init_sections): Set up picbase thunk
3149 section. (darwin_rodata_section, darwin_objc2_section,
3150 machopic_select_section, darwin_asm_declare_constant_name,
3151 darwin_emit_weak_or_comdat, darwin_function_section): Don’t use
3152 coalesced with newer linkers.
3153 (darwin_override_options): Decide on usage of coalesed sections
3154 on the basis of the target linker version.
3155 * config/darwin.h (MIN_LD64_NO_COAL_SECTS): New.
3156 * config/darwin.opt (mtarget-linker): New.
3157 * config/i386/i386.c (ix86_code_end): Do not force the thunks into
3158 a coalesced section, instead use a thunks section.
3159
3160 2016-11-27 Iain Sandoe <iain@codesourcery.com>
3161
3162 PR target/71767
3163 * configure.ac (with-ld64): New var, set for Darwin, set on
3164 detection of ld64, gcc_cv_ld64_export_dynamic: New, New test.
3165 * config/darwin.h: Use LD64_HAS_DYNAMIC export. DEF_LD64: New, define.
3166 * config/darwin10.h(DEF_LD64): Update for this target version.
3167 * config/darwin12.h(LINK_GCC_C_SEQUENCE_SPEC): Remove rdynamic test.
3168 (DEF_LD64): Update for this target version.
3169 * configure: Regenerated.
3170 * config.in: Regenerated.
3171
3172 2016-11-27 Iain Sandoe <iain@codesourcery.com>
3173
3174 PR target/71767
3175 * config/darwin.c (imachopic_indirection_name): Make data
3176 section indirections linker-visible.
3177 * config/darwin.h (ASM_GENERATE_INTERNAL_LABEL): Make local
3178 constant labels linker-visible.
3179
3180 2016-11-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3181
3182 * tree.c (build_common_tree_nodes): Initialize ptrdiff_type_node.
3183 (free_lang_data): Remove assignment to ptrdiff_type_node.
3184
3185 2016-11-25 Jakub Jelinek <jakub@redhat.com>
3186
3187 PR rtl-optimization/78526
3188 * simplify-rtx.c (simplify_immed_subreg): Don't use wi::extract_uhwi
3189 beyond val's precision.
3190
3191 PR rtl-optimization/78527
3192 * combine.c (make_compound_operation_int): Ignore LSHIFTRT with
3193 out of bounds shift count.
3194
3195 2016-11-25 Martin Liska <mliska@suse.cz>
3196
3197 PR web/71666
3198 * doc/invoke.texi (-fprofile-use): Fix reference to a section
3199 where -fprofile-generate is documented.
3200
3201 2016-11-25 Martin Liska <mliska@suse.cz>
3202
3203 PR gcov-profile/78086
3204 * coverage.c (build_init_ctor): Don't use priority {cd}tors if
3205 not supported by a target. Set priority to 100 if possible.
3206 (build_gcov_exit_decl): Likewise.
3207
3208 2016-11-25 Richard Biener <rguenther@suse.de>
3209
3210 PR ipa/78515
3211 * ipa-prop.c (compute_complex_assign_jump_func): Properly identify
3212 unary, binary and single RHSs.
3213 * tree.def (BIT_INSERT_EXPR): Adjust tree code name.
3214
3215 2016-11-25 Bin Cheng <bin.cheng@arm.com>
3216
3217 PR middle-end/78507
3218 PR middle-end/78510
3219 PR middle-end/78517
3220 * match.pd ((cond (cmp (convert1? @1) @3) (convert2? @1) @2)): Use
3221 cmp directly, rather than cmp_code. Initialize code to ERROR_MARK
3222 and set it to result code if transformation is valid. Use code EQ
3223 directly in last simplification case.
3224
3225 2016-11-25 Richard Biener <rguenther@suse.de>
3226
3227 * gimple-fold.c (fold_stmt_1): Check may_propagate_copy
3228 before valueizing return stmts.
3229
3230 2016-11-24 Richard Biener <rguenther@suse.de>
3231
3232 PR tree-optimization/78343
3233 * passes.def: Add CD-DCE pass after loop splitting.
3234 * tree-ssa-dce.c (find_obviously_necessary_stmts): Move
3235 SCEV init/finalize ...
3236 (perform_tree_ssa_dce): ... here. Deal with being
3237 executed inside the loop pipeline in aggressive mode.
3238
3239 2016-11-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
3240
3241 * tree-ssa-math-opts.c (struct symbolic_number): Improve comment.
3242
3243 2016-11-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
3244
3245 PR tree-optimization/77673
3246 * tree-ssa-math-opts.c (struct symbolic_number): Add new src field.
3247 (init_symbolic_number): Initialize src field from src parameter.
3248 (perform_symbolic_merge): Select most dominated statement as the
3249 source statement. Set src field of resulting n structure from the
3250 input src with the lowest address.
3251 (find_bswap_or_nop): Rename source_stmt into ins_stmt.
3252 (bswap_replace): Rename src_stmt into ins_stmt. Initially get source
3253 of load from src field rather than insertion statement. Cancel
3254 optimization if statement analyzed is not dominated by the insertion
3255 statement.
3256 (pass_optimize_bswap::execute): Rename src_stmt to ins_stmt. Compute
3257 dominance information.
3258
3259 2016-11-25 Eric Botcazou <ebotcazou@adacore.com>
3260
3261 PR ada/67205
3262 * config/mips/mips.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
3263
3264 2016-11-25 Martin Jambor <mjambor@suse.cz>
3265
3266 PR tree-optimization/70965
3267 * passes.def (pass_build_ssa_passes): Add pass_rebuild_cgraph_edges.
3268
3269 2016-11-24 James Greenahlgh <james.greenhalgh@arm.com>
3270
3271 PR target/78509
3272 * config/i386/i386.c (i386_excess_precision): Do not return
3273 FLT_EVAL_METHOD_UNPREDICTABLE when "type" is
3274 EXCESS_PRECISION_TYPE_STANDARD.
3275 * target.def (excess_precision): Document that targets should
3276 not return FLT_EVAL_METHOD_UNPREDICTABLE when "type" is
3277 EXCESS_PRECISION_TYPE_STANDARD or EXCESS_PRECISION_TYPE_FAST.
3278 Fix typo in first sentence.
3279 * doc/tm.texi: Regenerate.
3280
3281 2016-11-25 Richard Biener <rguenther@suse.de>
3282
3283 PR tree-optimization/78396
3284 * tree-vectorizer.c (vectorize_loops): When the if-converted
3285 body contains masked loads or stores do not attempt to
3286 basic-block-vectorize it.
3287
3288 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
3289 Alan Hayward <alan.hayward@arm.com>
3290 David Sherwood <david.sherwood@arm.com>
3291
3292 * function.h (spill_slot_alignment): Declare.
3293 * function.c (spill_slot_alignment): New function.
3294 * lra-spills.c (slot): Add align and size fields.
3295 (assign_mem_slot): Use them in the call to assign_stack_local.
3296 (add_pseudo_to_slot): Update the fields.
3297 (assign_stack_slot_num_and_sort_pseudos): Initialise the fields.
3298
3299 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
3300 Alan Hayward <alan.hayward@arm.com>
3301 David Sherwood <david.sherwood@arm.com>
3302
3303 * stor-layout.c (layout_type): Allow the caller to set the mode of
3304 a float type. Only choose one here if the mode is still VOIDmode.
3305 * tree.c (build_common_tree_nodes): Set the type mode of decimal
3306 floats before calling layout_type.
3307 * config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
3308
3309 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
3310
3311 * tree-tailcall.c (find_tail_calls): Allow calls to reference
3312 local variables if all references are known to be direct.
3313
3314 2016-11-25 Jakub Jelinek <jakub@redhat.com>
3315 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3316
3317 PR middle-end/78501
3318 * tree-vrp.c (extract_range_basic): Check for ptrdiff_type_node to be
3319 non null and it's precision matches precision of lhs's type.
3320
3321 2016-11-24 Martin Sebor <msebor@redhat.com>
3322
3323 PR tree-optimization/78476
3324 * gimple-ssa-sprintf.c (struct pass_sprintf_length::call_info):
3325 Add a member.
3326 (handle_gimple_call): Adjust signature.
3327 (try_substitute_return_value): Remove calls to bounded functions
3328 with zero buffer size whose result is known.
3329 (pass_sprintf_length::execute): Adjust call to handle_gimple_call.
3330
3331 2016-11-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3332
3333 * varasm.c (assemble_start_function): Wrap align_log definition in
3334 ASM_OUTPUT_MAX_SKIP_ALIGN.
3335
3336 2016-11-24 Uros Bizjak <ubizjak@gmail.com>
3337
3338 * config/i386/i386.md (wide AND insn to QImode splitter): Use
3339 explicit mode macros.
3340 (wide OR insn to QImode splitter): Ditto.
3341
3342 2016-11-24 Vladimir Makarov <vmakarov@redhat.com>
3343
3344 PR rtl-optimization/77541
3345 * lra-constraints.c (struct input_reload): Add field match_p.
3346 (get_reload_reg): Check modes of input reloads to generate unique
3347 value reload pseudo.
3348 (match_reload): Add input reload pseudo for the current insn.
3349
3350 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
3351
3352 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Update
3353 __FLT_EVAL_METHOD__ and __FLT_EVAL_METHOD_C99__ when we switch
3354 architecture levels.
3355 * config/aarch64/aarch64.c (aarch64_promoted_type): Only promote
3356 the aarch64_fp16_type_node, not all HFmode types.
3357 (aarch64_libgcc_floating_mode_supported_p): Support HFmode.
3358 (aarch64_scalar_mode_supported_p): Likewise.
3359 (aarch64_excess_precision): New.
3360 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
3361 (TARGET_SCALAR_MODE_SUPPORTED_P): Likewise.
3362 (TARGET_C_EXCESS_PRECISION): Likewise.
3363
3364 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
3365
3366 * config/aarch64/aarch64-c.c (aarch64_scalar_mode_supported_p): New.
3367 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
3368
3369 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
3370
3371 * config/aarch64/aarch64.md (<optab>sihf2): Convert to expand.
3372 (<optab>dihf2): Likewise.
3373 (aarch64_fp16_<optab><mode>hf2): New.
3374
3375 2016-11-24 Alexander Monakov <amonakov@ispras.ru>
3376
3377 PR target/67822
3378 * config/nvptx/mkoffload.c (main): Allow -fopenmp.
3379
3380 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
3381
3382 * common/config/sparc/sparc-common.c (sparc_option_optimization_table):
3383 Enable REE at -O2 and higher.
3384 * config/sparc/sparc.c (sparc_option_override): Disable it by default
3385 in 32-bit mode.
3386
3387 2016-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3388
3389 PR target/48863
3390 PR inline-asm/70184
3391 * tree-ssa-ter.c (temp_expr_table): Add reg_vars_cnt field.
3392 (new_temp_expr_table): Initialise reg_vars_cnt.
3393 (free_temp_expr_table): Release reg_vars_cnt.
3394 (process_replaceable): Add reg_vars_cnt argument, set reg_vars_cnt
3395 field of TAB.
3396 (find_replaceable_in_bb): Use the above to record register variable
3397 write occurrences and cancel replacement across them.
3398
3399 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
3400
3401 PR rtl-optimization/78437
3402 * ree.c (get_uses): New function.
3403 (combine_reaching_defs): When a copy is needed, return false if any
3404 reaching use of the source register reads it in a mode larger than
3405 the mode it is set in and WORD_REGISTER_OPERATIONS is true.
3406
3407 2016-11-24 Martin Liska <mliska@suse.cz>
3408
3409 * gimple-pretty-print.c (dump_edge_probability): New function.
3410 (dump_gimple_switch): Dump label edge probabilities.
3411 (dump_gimple_cond): Likewise.
3412 (dump_gimple_label): Dump
3413 (dump_gimple_bb_header): Dump basic block frequency.
3414 (pp_cfg_jump): Replace e->dest argument with e.
3415 (dump_implicit_edges): Likewise.
3416 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at):
3417 Use gimple_bb (at) instead of at->bb.
3418
3419 2016-11-24 Bernd Schmidt <bschmidt@redhat.com>
3420
3421 * common.opt (flimit-function-alignment): New.
3422 * doc/invoke.texi (-flimit-function-alignment): Document.
3423 * emit-rtl.h (struct rtl_data): Add max_insn_address field.
3424 * final.c (shorten_branches): Set it.
3425 * varasm.c (assemble_start_function): Limit alignment if
3426 requested.
3427
3428 2016-11-24 Richard Biener <rguenther@suse.de>
3429
3430 PR tree-optimization/71595
3431 * cfgloopmanip.h (remove_path): Add irred_invalidated and
3432 loop_closed_ssa_invalidated parameters, defaulted to NULL.
3433 * cfgloopmanip.c (remove_path): Likewise, pass them along to
3434 called functions. Only fix irred flags if the caller didn't
3435 request state.
3436 * tree-ssa-loop-ivcanon.c (unloop_loops): Use add_bb_to_loop.
3437 (unloop_loops): Pass irred_invalidated and loop_closed_ssa_invalidated
3438 to remove_path.
3439
3440 2016-11-24 Bernd Schmidt <bschmidt@redhat.com>
3441
3442 PR rtl-optimization/78120
3443 * ifcvt.c (noce_conversion_profitable_p): Check original cost in all
3444 cases, and additionally test against max_seq_cost for speed
3445 optimization.
3446 (noce_process_if_block): Compute an estimate for the original cost when
3447 optimizing for speed, using the minimum of then and else block costs.
3448
3449 PR rtl-optimization/78120
3450 * rtlanal.c (insn_rtx_cost): Use set_rtx_cost.
3451
3452 PR rtl-optimization/78120
3453 * config/i386/i386.c (ix86_rtx_costs): Fully handle SETs.
3454
3455 2016-11-24 Bin Cheng <bin.cheng@arm.com>
3456
3457 * match.pd: Refine type conversion in result expr for below pattern:
3458 (cond (cmp (convert1? x) c1) (convert2? x) c2) -> (minmax (x c)).
3459
3460 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
3461
3462 PR middle-end/78429
3463 * tree.h (wi::fits_to_boolean_p): New predicate.
3464 (wi::fits_to_tree_p): Use it for boolean types.
3465 * tree.c (int_fits_type_p): Likewise.
3466
3467 2016-11-24 Martin Liska <mliska@suse.cz>
3468
3469 * print-tree.c (struct bucket): Remove.
3470 (print_node): Add new argument which drives whether a tree node
3471 is printed briefly or not.
3472 (debug_tree): Replace a custom hash table with hash_set<T>.
3473 * print-tree.h (print_node): Add the argument.
3474
3475 2016-11-24 Chung-Lin Tang <cltang@codesourcery.com>
3476
3477 * config/nios2/nios2.c (nios2_init_libfuncs): Add ATTRIBUTE_UNUSED.
3478
3479 2016-11-23 Peter Bergner <bergner@vnet.ibm.com>
3480
3481 PR target/78458
3482 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return MODE
3483 if it is at least NREGS wide.
3484
3485 2016-11-23 Joseph Myers <joseph@codesourcery.com>
3486
3487 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p): For
3488 TARGET_E500_DOUBLE. handle TDmode, TImode and PTImode the same as
3489 TFmode, IFmode and KFmode.
3490
3491 2016-11-23 Joseph Myers <joseph@codesourcery.com>
3492
3493 * config/rs6000/spe.md (*frob_<SPE64:mode>_ti_8): New insn
3494 pattern.
3495
3496 2016-11-23 Segher Boessenkool <segher@kernel.crashing.org>
3497
3498 * combine.c (change_zero_ext): Only change the mode of a hard register
3499 destination if can_change_dest_mode holds for that.
3500
3501 2016-11-23 Jeff Law <law@redhat.com>
3502
3503 * varasm.c (assemble_name): Increase buffer size for name.
3504
3505 * config/spu/spu.md (floatunsdidf2): Remove unused local variable.
3506
3507 2016-11-23 Jakub Kicinski <jakub.kicinski@netronome.com>
3508
3509 * doc/extend.texi: Constify first argument to __builtin_object_size.
3510
3511 2016-11-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
3512
3513 * opth-gen.awk: Use unsigned shifts for bit masks. Allow all bits
3514 to be used. Add brackets around macro argument.
3515
3516 2016-11-23 Uros Bizjak <ubizjak@gmail.com>
3517
3518 * config/i386/i386.md (*<any_or:code>hi_1): Fix operand 2 constraints.
3519
3520 2016-11-23 Jakub Jelinek <jakub@redhat.com>
3521
3522 PR sanitizer/69278
3523 * opts.c (parse_sanitizer_options): For -fsanitize=undefined,
3524 restore enabling also SANITIZE_UNREACHABLE and SANITIZE_RETURN.
3525
3526 2016-11-23 Jakub Jelinek <jakub@redhat.com>
3527
3528 PR middle-end/69183
3529 * omp-low.c (build_outer_var_ref): Change lastprivate argument
3530 to code, pass it recursively, adjust uses. For OMP_CLAUSE_PRIVATE
3531 on worksharing constructs, treat it like clauses on simd construct.
3532 Formatting fix.
3533 (lower_rec_input_clauses): For OMP_CLAUSE_PRIVATE_OUTER_REF pass
3534 OMP_CLAUSE_PRIVATE as last argument to build_outer_var_ref.
3535 (lower_lastprivate_clauses): Pass OMP_CLAUSE_LASTPRIVATE instead
3536 of true as last argument to build_outer_var_ref.
3537
3538 2016-11-23 Uros Bizjak <ubizjak@gmail.com>
3539
3540 * config/i386/i386.md (*movqi_internal): Calculate mode
3541 attribute of alternatives 7,8,9 depending on TARGET_AVX512DQ.
3542 <TYPE_MSKMOV>: Emit kmovw for MODE_HI insn mode attribute.
3543 (*k<logic><mode>): Calculate mode attribute depending on
3544 TARGET_AVX512DQ. Emit k<logic>w for MODE_HI insn mode attribute.
3545 (*andqi_1): Calculate mode attribute of alternative 3 depending
3546 on TARGET_AVX512DQ. Emit kandw for MODE_HI insn mode attribute.
3547 (kandn<mode>): Calculate mode attribute of alternative 2 depending
3548 on TARGET_AVX512DQ. Emit kandnw for MODE_HI insn mode attribute.
3549 (kxnor<mode>): Merge insn patterns using SWI1248_AVX512BW mode
3550 iterator. Calculate mode attribute of alternative 1 depending
3551 on TARGET_AVX512DQ. Emit kxnorw for MODE_HI insn mode attribute.
3552 (*one_cmplqi2_1): Calculate mode attribute of alternative 2 depending
3553 on TARGET_AVX512DQ. Emit knotw for MODE_HI insn mode attribute.
3554
3555 2016-11-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3556
3557 PR middle-end/78153
3558 * gimple-fold.c (fold_stmt_1): Handle case for GIMPLE_RETURN.
3559 * tree-vrp.c (extract_range_basic): Handle case for
3560 CFN_BUILT_IN_STRLEN.
3561
3562 2016-11-23 Jeff Law <law@redhat.com>
3563
3564 * config/mcore/mcore.c (emit_new_cond_insn): Fix prototype.
3565
3566 * config/iq2000/iq2000.c (iq2000_rtx_costs): Avoid multiplication
3567 in boolean context warning.
3568
3569 * config/ia64/ia64.c (ia64_emit_insn_before): Fix prototype.
3570
3571 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3572
3573 PR target/63250
3574 * config/arm/arm-builtins.c (arm_simd_floatHF_type_node): Rename to...
3575 (arm_fp16_type_node): ...This, make visibile.
3576 (arm_simd_builtin_std_type): Rename arm_simd_floatHF_type_node to
3577 arm_fp16_type_node.
3578 (arm_init_simd_builtin_types): Likewise.
3579 (arm_init_fp16_builtins): Likewise.
3580 * config/arm/arm.c (arm_excess_precision): New.
3581 (arm_floatn_mode): Likewise.
3582 (TARGET_C_EXCESS_PRECISION): Likewise.
3583 (TARGET_FLOATN_MODE): Likewise.
3584 (arm_promoted_type): Only promote arm_fp16_type_node.
3585 * config/arm/arm.h (arm_fp16_type_node): Declare.
3586
3587 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3588
3589 * config/arm/arm.c (arm_convert_to_type): Delete.
3590 (TARGET_CONVERT_TO_TYPE): Delete.
3591 (arm_init_libfuncs): Enable trunc_optab from DFmode to HFmode.
3592 (arm_libcall_uses_aapcs_base): Add trunc_optab from DF- to HFmode.
3593 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): New.
3594 * config/arm/arm.md (truncdfhf2): Only convert through SFmode if we
3595 are in fast math mode, and have no single step hardware instruction.
3596 (extendhfdf2): Only expand through SFmode if we don't have a
3597 single-step hardware instruction.
3598 * config/arm/vfp.md (*truncdfhf2): New.
3599 (extendhfdf2): Likewise.
3600
3601 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3602
3603 * targhooks.c (default_floatn_mode): Enable _Float16 if a target
3604 provides HFmode.
3605
3606 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3607
3608 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Delete.
3609 * config/m68k/m68k.h (TARGET_FLT_EVAL_METHOD): Delete.
3610 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Delete.
3611 * defaults.h (TARGET_FLT_EVAL_METHOD): Delete.
3612 * doc/tm.texi.in (TARGET_FLT_EVAL_METHOD): Delete.
3613 * doc/tm.texi: Regenerate.
3614 * system.h (TARGET_FLT_EVAL_METHOD): Poison.
3615
3616 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3617
3618 * toplev.c (init_excess_precision): Delete most logic.
3619 * tree.c (excess_precision_type): Rewrite to use
3620 TARGET_EXCESS_PRECISION.
3621 * doc/invoke.texi (-fexcess-precision): Document behaviour in a
3622 more generic fashion.
3623 * ginclude/float.h: Wrap definition of FLT_EVAL_METHOD in
3624 __STDC_WANT_IEC_60559_TYPES_EXT__.
3625
3626 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3627
3628 * common.opt (fpermitted-flt-eval-methods): New.
3629 * doc/invoke.texi (-fpermitted-flt-eval-methods): Document it.
3630 * flag_types.h (permitted_flt_eval_methods): New.
3631
3632 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3633
3634 * config/m68k/m68k.c (m68k_excess_precision): New.
3635 (TARGET_C_EXCESS_PRECISION): Define.
3636
3637 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3638
3639 * config/s390/s390.c (s390_excess_precision): New.
3640 (TARGET_C_EXCESS_PRECISION): Define.
3641
3642 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3643
3644 * config/i386/i386.c (ix86_excess_precision): New.
3645 (TARGET_C_EXCESS_PRECISION): Define.
3646
3647 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3648
3649 * target.def (excess_precision): New hook.
3650 * target.h (flt_eval_method): New.
3651 (excess_precision_type): Likewise.
3652 * targhooks.c (default_excess_precision): New.
3653 * targhooks.h (default_excess_precision): New.
3654 * doc/tm.texi.in (TARGET_C_EXCESS_PRECISION): New.
3655 * doc/tm.texi: Regenerate.
3656
3657 2016-11-23 Martin Sebor <msebor@redhat.com>
3658
3659 PR middle-end/78461
3660 * gimple-ssa-sprintf.c (format_string): Correct the maxima and
3661 set the minimum number of bytes for an unknown string to zero.
3662
3663 2016-11-23 Martin Jambor <mjambor@suse.cz>
3664 Martin Liska <mliska@suse.cz>
3665
3666 * hsa-builtins.def: New file.
3667 * Makefile.in (BUILTINS_DEF): Add hsa-builtins.def dependency.
3668 * builtins.def: Include hsa-builtins.def.
3669 (DEF_HSA_BUILTIN): New macro.
3670 * dumpfile.h (OPTGROUP_OPENMP): Define.
3671 * dumpfile.c (optgroup_options): Added OPTGROUP_OPENMP.
3672 * gimple.h (gf_mask): Added elements GF_OMP_FOR_GRID_INTRA_GROUP and
3673 GF_OMP_FOR_GRID_GROUP_ITER.
3674 (gimple_omp_for_grid_phony): Added checking assert.
3675 (gimple_omp_for_set_grid_phony): Likewise.
3676 (gimple_omp_for_grid_intra_group): New function.
3677 (gimple_omp_for_set_grid_intra_group): Likewise.
3678 (gimple_omp_for_grid_group_iter): Likewise.
3679 (gimple_omp_for_set_grid_group_iter): Likewise.
3680 * omp-low.c (check_omp_nesting_restrictions): Allow GRID loop where
3681 previosuly only distribute loop was permitted.
3682 (lower_lastprivate_clauses): Allow non tcc_comparison predicates.
3683 (grid_get_kernel_launch_attributes): Support multiple HSA grid
3684 dimensions.
3685 (grid_expand_omp_for_loop): Likewise and also support standalone
3686 distribute constructs. New parameter INTRA_GROUP, updated both users.
3687 (grid_expand_target_grid_body): Support standalone distribute
3688 constructs.
3689 (pass_data_expand_omp): Changed optinfo_flags to OPTGROUP_OPENMP.
3690 (pass_data_expand_omp_ssa): Likewise.
3691 (pass_data_omp_device_lower): Likewsie.
3692 (pass_data_lower_omp): Likewise.
3693 (pass_data_diagnose_omp_blocks): Likewise.
3694 (pass_data_oacc_device_lower): Likewise.
3695 (pass_data_omp_target_link): Likewise.
3696 (grid_lastprivate_predicate): New function.
3697 (lower_omp_for_lastprivate): Call grid_lastprivate_predicate for
3698 gridified loops.
3699 (lower_omp_for): Support standalone distribute constructs.
3700 (grid_prop): New type.
3701 (grid_safe_assignment_p): Check for assignments to group_sizes, new
3702 parameter GRID.
3703 (grid_seq_only_contains_local_assignments): New parameter GRID, pass
3704 it to callee.
3705 (grid_find_single_omp_among_assignments_1): Likewise, improve missed
3706 optimization info messages.
3707 (grid_find_single_omp_among_assignments): Likewise.
3708 (grid_find_ungridifiable_statement): Do not bail out for SIMDs.
3709 (grid_parallel_clauses_gridifiable): New function.
3710 (grid_inner_loop_gridifiable_p): Likewise.
3711 (grid_dist_follows_simple_pattern): Likewise.
3712 (grid_gfor_follows_tiling_pattern): Likewise.
3713 (grid_call_permissible_in_distribute_p): Likewise.
3714 (grid_handle_call_in_distribute): Likewise.
3715 (grid_dist_follows_tiling_pattern): Likewise.
3716 (grid_target_follows_gridifiable_pattern): Support standalone
3717 distribute constructs.
3718 (grid_var_segment): New enum.
3719 (grid_mark_variable_segment): New function.
3720 (grid_copy_leading_local_assignments): Call grid_mark_variable_segment
3721 if a new argument says so.
3722 (grid_process_grid_body): New function.
3723 (grid_eliminate_combined_simd_part): Likewise.
3724 (grid_mark_tiling_loops): Likewise.
3725 (grid_mark_tiling_parallels_and_loops): Likewise.
3726 (grid_process_kernel_body_copy): Support standalone distribute
3727 constructs.
3728 (grid_attempt_target_gridification): New grid variable holding overall
3729 gridification state. Support standalone distribute constructs and
3730 collapse clauses.
3731 * doc/optinfo.texi (Optimization groups): Document OPTGROUP_OPENMP.
3732 * hsa.h (hsa_bb): Add method method append_phi.
3733 (hsa_insn_br): Renamed to hsa_insn_cbr, renamed all
3734 occurences in all files too.
3735 (hsa_insn_br): New class, now the ancestor of hsa_incn_cbr.
3736 (is_a_helper <hsa_insn_br *>::test): New function.
3737 (is_a_helper <hsa_insn_cbr *>::test): Adjust to only cover conditional
3738 branch instructions.
3739 (hsa_insn_signal): Make a direct descendant of
3740 hsa_insn_basic. Add memorder constructor parameter and
3741 m_memory_order and m_signalop member variables.
3742 (hsa_insn_queue): Changed constructor parameters to common form.
3743 Added m_segment and m_memory_order member variables.
3744 (hsa_summary_t): Add private member function
3745 process_gpu_implementation_attributes.
3746 (hsa_function_summary): Rename m_binded_function to
3747 m_bound_function.
3748 (hsa_insn_basic_p): Remove typedef.
3749 (hsa_op_with_type): Change hsa_insn_basic_p into plain pointers.
3750 (hsa_op_reg_p): Remove typedef.
3751 (hsa_function_representation): Change hsa_op_reg_p into plain
3752 pointers.
3753 (hsa_insn_phi): Removed new and delete operators.
3754 (hsa_insn_br): Likewise.
3755 (hsa_insn_cbr): Likewise.
3756 (hsa_insn_sbr): Likewise.
3757 (hsa_insn_cmp): Likewise.
3758 (hsa_insn_mem): Likewise.
3759 (hsa_insn_atomic): Likewise.
3760 (hsa_insn_signal): Likewise.
3761 (hsa_insn_seg): Likewise.
3762 (hsa_insn_call): Likewise.
3763 (hsa_insn_arg_block): Likewise.
3764 (hsa_insn_comment): Likewise.
3765 (hsa_insn_srctype): Likewise.
3766 (hsa_insn_packed): Likewise.
3767 (hsa_insn_cvt): Likewise.
3768 (hsa_insn_alloca): Likewise.
3769 * hsa.c (hsa_destroy_insn): Also handle instances of hsa_insn_br.
3770 (process_gpu_implementation_attributes): New function.
3771 (link_functions): Move some functionality into it. Adjust after
3772 renaming m_binded_functions to m_bound_functions.
3773 (hsa_insn_basic::op_output_p): Add BRIG_OPCODE_DEBUGTRAP
3774 to the list of instructions with no output registers.
3775 (get_in_type): Return this if it is a register of
3776 matching size.
3777 (hsa_get_declaration_name): Moved to...
3778 * hsa-gen.c (hsa_get_declaration_name): ...here. Allocate
3779 temporary string on an obstack instead from ggc.
3780 (query_hsa_grid): Renamed to query_hsa_grid_dim, reimplemented, cut
3781 down to two overloads.
3782 (hsa_allocp_operand_address): Removed.
3783 (hsa_allocp_operand_immed): Likewise.
3784 (hsa_allocp_operand_reg): Likewise.
3785 (hsa_allocp_operand_code_list): Likewise.
3786 (hsa_allocp_operand_operand_list): Likewise.
3787 (hsa_allocp_inst_basic): Likewise.
3788 (hsa_allocp_inst_phi): Likewise.
3789 (hsa_allocp_inst_mem): Likewise.
3790 (hsa_allocp_inst_atomic): Likewise.
3791 (hsa_allocp_inst_signal): Likewise.
3792 (hsa_allocp_inst_seg): Likewise.
3793 (hsa_allocp_inst_cmp): Likewise.
3794 (hsa_allocp_inst_br): Likewise.
3795 (hsa_allocp_inst_sbr): Likewise.
3796 (hsa_allocp_inst_call): Likewise.
3797 (hsa_allocp_inst_arg_block): Likewise.
3798 (hsa_allocp_inst_comment): Likewise.
3799 (hsa_allocp_inst_queue): Likewise.
3800 (hsa_allocp_inst_srctype): Likewise.
3801 (hsa_allocp_inst_packed): Likewise.
3802 (hsa_allocp_inst_cvt): Likewise.
3803 (hsa_allocp_inst_alloca): Likewise.
3804 (hsa_allocp_bb): Likewise.
3805 (hsa_obstack): New.
3806 (hsa_init_data_for_cfun): Initialize obstack.
3807 (hsa_deinit_data_for_cfun): Release memory of the obstack.
3808 (hsa_op_immed::operator new): Use obstack instead of object_allocator.
3809 (hsa_op_reg::operator new): Likewise.
3810 (hsa_op_address::operator new): Likewise.
3811 (hsa_op_code_list::operator new): Likewise.
3812 (hsa_op_operand_list::operator new): Likewise.
3813 (hsa_insn_basic::operator new): Likewise.
3814 (hsa_insn_phi::operator new): Likewise.
3815 (hsa_insn_br::operator new): Likewise.
3816 (hsa_insn_sbr::operator new): Likewise.
3817 (hsa_insn_cmp::operator new): Likewise.
3818 (hsa_insn_mem::operator new): Likewise.
3819 (hsa_insn_atomic::operator new): Likewise.
3820 (hsa_insn_signal::operator new): Likewise.
3821 (hsa_insn_seg::operator new): Likewise.
3822 (hsa_insn_call::operator new): Likewise.
3823 (hsa_insn_arg_block::operator new): Likewise.
3824 (hsa_insn_comment::operator new): Likewise.
3825 (hsa_insn_srctype::operator new): Likewise.
3826 (hsa_insn_packed::operator new): Likewise.
3827 (hsa_insn_cvt::operator new): Likewise.
3828 (hsa_insn_alloca::operator new): Likewise.
3829 (hsa_init_new_bb): Likewise.
3830 (hsa_bb::append_phi): New function.
3831 (gen_hsa_phi_from_gimple_phi): Use it.
3832 (get_symbol_for_decl): Fix dinstinguishing between
3833 global and local functions. Put local variables into a segment
3834 according to their attribute or static flag, if there is one.
3835 (hsa_insn_br::hsa_insn_br): New.
3836 (hsa_insn_br::operator new): Likewise.
3837 (hsa_insn_cbr::hsa_insn_cbr): Set width via ancestor constructor.
3838 (query_hsa_grid_nodim): New function.
3839 (multiply_grid_dim_characteristics): Likewise.
3840 (gen_get_num_threads): Likewise.
3841 (gen_get_num_teams): Reimplemented.
3842 (gen_get_team_num): Likewise.
3843 (gen_hsa_insns_for_known_library_call): Updated calls to the above
3844 helper functions.
3845 (get_memory_order_name): Removed.
3846 (get_memory_order): Likewise.
3847 (hsa_memorder_from_tree): New function.
3848 (gen_hsa_ternary_atomic_for_builtin): Renamed to
3849 gen_hsa_atomic_for_builtin, can also create signals.
3850 (gen_hsa_insns_for_call): Handle many new builtins. Adjust to use
3851 hsa_memory_order_from_tree and gen_hsa_atomic_for_builtin.
3852 (hsa_insn_atomic): Fix function comment.
3853 (hsa_insn_signal::hsa_insn_signal): Fix comment. Update call to
3854 ancestor constructor and initialization of new member variables.
3855 (hsa_insn_queue::hsa_insn_queue): Added initialization of new
3856 member variables.
3857 (hsa_get_host_function): Handle functions with no bound CPU
3858 implementation. Fix binded to bound.
3859 (get_brig_function_name): Likewise.
3860 (HSA_SORRY_ATV): Remove semicolon after macro.
3861 (HSA_SORRY_AT): Likewise.
3862 (omp_simple_builtin::generate): Add missing semicolons.
3863 (hsa_insn_phi::operator new): Removed.
3864 (hsa_insn_br::operator new): Likewise.
3865 (hsa_insn_cbr::operator new): Likewise.
3866 (hsa_insn_sbr::operator new): Likewise.
3867 (hsa_insn_cmp::operator new): Likewise.
3868 (hsa_insn_mem::operator new): Likewise.
3869 (hsa_insn_atomic::operator new): Likewise.
3870 (hsa_insn_signal::operator new): Likewise.
3871 (hsa_insn_seg::operator new): Likewise.
3872 (hsa_insn_call::operator new): Likewise.
3873 (hsa_insn_arg_block::operator new): Likewise.
3874 (hsa_insn_comment::operator new): Likewise.
3875 (hsa_insn_srctype::operator new): Likewise.
3876 (hsa_insn_packed::operator new): Likewise.
3877 (hsa_insn_cvt::operator new): Likewise.
3878 (hsa_insn_alloca::operator new): Likewise.
3879 (get_symbol_for_decl): Accept CONST_DECLs, put them to
3880 readonly segment.
3881 (gen_hsa_addr): Also process CONST_DECLs.
3882 (gen_hsa_addr_insns): Process CONST_DECLs by creating private
3883 copies.
3884 (gen_hsa_unary_operation): Make sure the function does
3885 not use bittype source type for firstbit and lastbit operations.
3886 (gen_hsa_popcount_to_dest): Make sure the function uses a bittype
3887 source type.
3888 * hsa-brig.c (emit_insn_operands): Cope with zero operands in an
3889 instruction.
3890 (emit_branch_insn): Renamed to emit_cond_branch_insn.
3891 Emit the width stored in the class.
3892 (emit_generic_branch_insn): New function.
3893 (emit_insn): Call emit_generic_branch_insn.
3894 (emit_signal_insn): Remove obsolete comment. Update
3895 member variable name, pick a type according to profile.
3896 (emit_alloca_insn): Remove obsolete comment.
3897 (emit_atomic_insn): Likewise.
3898 (emit_queue_insn): Get segment and memory order from the IR object.
3899 (hsa_brig_section): Make allocate_new_chunk, chunks
3900 and cur_chunk provate, add a default NULL parameter to add method.
3901 (hsa_brig_section::add): Added a new parameter, store pointer to
3902 output data there if it is non-NULL.
3903 (emit_function_directives): Use this new parameter instead of
3904 calculating the pointer itself, fix function comment.
3905 (hsa_brig_emit_function): Add forgotten endian conversion.
3906 (hsa_output_kernels): Remove unnecessary building of
3907 kernel_dependencies_vector_type.
3908 (emit_immediate_operand): Declare.
3909 (emit_directive_variable): Also emit initializers of CONST_DECLs.
3910 (gen_hsa_insn_for_internal_fn_call): Also handle IFN_RSQRT.
3911 (verify_function_arguments): Properly detect variadic
3912 arguments.
3913 * hsa-dump.c (hsa_width_specifier_name): New function.
3914 (dump_hsa_insn_1): Dump generic branch instructions, update signal
3915 member variable name. Special dumping for queue objects.
3916 * ipa-hsa.c (process_hsa_functions): Adjust after renaming
3917 m_binded_functions to m_bound_functions. Copy externally visible flag
3918 to the node.
3919 (ipa_hsa_write_summary): Likewise.
3920 (ipa_hsa_read_section): Likewise.
3921
3922 2016-11-23 Richard Biener <rguenther@suse.de>
3923
3924 PR tree-optimization/78396
3925 * tree-vectorizer.c (vectorize_loops): If an innermost loop didn't
3926 vectorize try vectorizing an if-converted body using BB vectorization.
3927
3928 2016-11-23 Richard Sandiford <richard.sandiford@arm.com>
3929 Alan Hayward <alan.hayward@arm.com>
3930 David Sherwood <david.sherwood@arm.com>
3931
3932 * rtlanal.c (subreg_get_info): Use more local variables.
3933 Remark that for HARD_REGNO_NREGS_HAS_PADDING, each scalar unit
3934 occupies at least one register. Assume that full hard registers
3935 have consistent endianness. Share previously-duplicated if block.
3936 Rework the main handling so that it operates on independently-
3937 addressable YMODE-sized blocks. Use subreg_size_lowpart_offset
3938 to check lowpart offsets, without trying to find an equivalent
3939 integer mode first. Handle WORDS_BIG_ENDIAN != REG_WORDS_BIG_ENDIAN
3940 as a final register-endianness correction.
3941
3942 2016-11-23 Segher Boessenkool <segher@kernel.crashing.org>
3943
3944 PR target/77881
3945 PR bootstrap/78390
3946 PR target/78438
3947 PR bootstrap/78477
3948 * combine.c (make_compound_operation_int): Do not convert a subreg of
3949 a non-constant logical shift right to a zero_extract. Handle the case
3950 where some zero bits have been shifted into the range covered by that
3951 subreg.
3952
3953 2016-11-23 Richard Sandiford <richard.sandiford@arm.com>
3954 Alan Hayward <alan.hayward@arm.com>
3955 David Sherwood <david.sherwood@arm.com>
3956
3957 * rtl.h (subreg_size_offset_from_lsb): Declare.
3958 (subreg_offset_from_lsb): New function.
3959 (subreg_size_lowpart_offset): Declare.
3960 (subreg_lowpart_offset): Turn into an inline function.
3961 (subreg_size_highpart_offset): Declare.
3962 (subreg_highpart_offset): Turn into an inline function.
3963 * emit-rtl.c (subreg_size_lowpart_offset): New function.
3964 (subreg_size_highpart_offset): Likewise
3965 * rtlanal.c (subreg_size_offset_from_lsb): Likewise.
3966
3967 2016-11-23 Richard Biener <rguenther@suse.de>
3968
3969 PR tree-optimization/78482
3970 * tree-cfgcleanup.c: Include tree-ssa-loop-niter.h.
3971 (remove_forwarder_block_with_phi): When merging with a loop
3972 header creates a new latch reset number of iteration information
3973 of the loop.
3974
3975 2016-11-23 Eric Botcazou <ebotcazou@adacore.com>
3976
3977 * config/sparc/sparc.md (*ashrsi3_extend): Rename to...
3978 (*ashrsi3_extend0): ...this. Accept constant integers.
3979 (*ashrsi3_extend2): Rename to...
3980 (*ashrsi3_extend1): ...this.
3981 (*ashrsi3_extend2): New pattern.
3982 (*lshrsi3_extend1): Accept constant integers.
3983 (*lshrsi3_extend2): Fix condition on operand 2.
3984
3985 2016-11-23 Martin Liska <mliska@suse.cz>
3986
3987 * config/i386/i386.c: Initialize function pointer to NULL.
3988
3989 2016-11-23 Bin Cheng <bin.cheng@arm.com>
3990
3991 * fold-const.c (fold_cond_expr_with_comparison): Move simplification
3992 for A == C1 ? A : C2 to below.
3993 * match.pd: Move from above to here:
3994 (cond (eq (convert1? x) c1) (convert2? x) c2)
3995 -> (cond (eq x c1) c1 c2).
3996
3997 2016-11-23 Bin Cheng <bin.cheng@arm.com>
3998
3999 * fold-const.c (fold_cond_expr_with_comparison): Move simplification
4000 for A cmp C1 ? A : C2 to below, also simplify remaining code.
4001 * match.pd: Move and extend simplification from above to here:
4002 (cond (cmp (convert1? x) c1) (convert2? x) c2) -> (minmax (x c)).
4003 * tree-if-conv.c (ifcvt_follow_ssa_use_edges): New func.
4004 (predicate_scalar_phi): Call fold_stmt using the new valueize func.
4005
4006 2016-11-23 Martin Liska <mliska@suse.cz>
4007 Martin Jambor <mjambor@suse.cz>
4008
4009 * doc/install.texi: Remove entry about --with-hsa-kmt-lib.
4010
4011 2016-11-23 Aldy Hernandez <aldyh@redhat.com>
4012
4013 PR target/78213
4014 * opts.c (finish_options): Set -fsyntax-only if running self tests.
4015
4016 2016-11-23 Richard Biener <rguenther@suse.de>
4017
4018 PR middle-end/71762
4019 * match.pd ((~X & Y) -> X < Y, (X & ~Y) -> Y < X,
4020 (~X | Y) -> X <= Y, (X | ~Y) -> Y <= X): Remove.
4021
4022 2016-11-23 Richard Biener <rguenther@suse.de>
4023
4024 PR lto/78472
4025 * tree.c (gimple_canonical_types_compatible_p): Ignore zero-sized
4026 fields.
4027
4028 2016-11-23 Richard Biener <rguenther@suse.de>
4029 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.rog>
4030
4031 PR tree-optimization/78154
4032 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Return true if function
4033 returns it's argument and the argument is nonnull.
4034 * builtin-attrs.def: Define ATTR_RETURNS_NONNULL,
4035 ATT_RETNONNULL_NOTHROW_LEAF.
4036 * builtins.def (BUILT_IN_MEMPCPY): Change attribute to
4037 ATTR_RETNONNULL_NOTHROW_LEAF.
4038 (BUILT_IN_STPCPY): Likewise.
4039 (BUILT_IN_STPNCPY): Likewise.
4040 (BUILT_IN_MEMPCPY_CHK): Likewise.
4041 (BUILT_IN_STPCPY_CHK): Likewise.
4042 (BUILT_IN_STPNCPY_CHK): Likewise.
4043 (BUILT_IN_STRCAT): Change attribute to ATTR_RET1_NOTHROW_NONNULL_LEAF.
4044 (BUILT_IN_STRNCAT): Likewise.
4045 (BUILT_IN_STRNCPY): Likewise.
4046 (BUILT_IN_MEMSET_CHK): Likewise.
4047 (BUILT_IN_STRCAT_CHK): Likewise.
4048 (BUILT_IN_STRCPY_CHK): Likewise.
4049 (BUILT_IN_STRNCAT_CHK): Likewise.
4050 (BUILT_IN_STRNCPY_CHK): Likewise.
4051
4052 2016-11-23 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4053
4054 * fold-const.c (tree_expr_nonzero_p) : Make non-static.
4055 * fold-const.h (tree_expr_nonzero_p) : Declare.
4056 * match.pd (cmp (mult:c @0 @1) (mult:c @2 @1) : New Pattern.
4057
4058 2016-11-23 Paolo Bonzini <bonzini@gnu.org>
4059
4060 * system.h (HAVE_DESIGNATED_INITIALIZERS,
4061 HAVE_DESIGNATED_UNION_INITIALIZERS): Do not use
4062 "defined" in macros.
4063 * doc/cpp.texi (Defined): Mention -Wexpansion-to-defined.
4064 * doc/cppopts.texi (Invocation): Document -Wexpansion-to-defined.
4065 * doc/invoke.texi (Warning Options): Document -Wexpansion-to-defined.
4066
4067 2016-11-23 Georg-Johann Lay <avr@gjlay.de>
4068
4069 PR target/60300
4070 * config/avr/constraints.md (Csp): Widen range to [-11..6].
4071 * config/avr/avr.c (avr_prologue_setup_frame): Limit number
4072 of RCALLs in prologue to 3.
4073
4074 2016-11-22 Michael Collison <michael.collison@arm.com>
4075
4076 * config/aarch64/aarch64-protos.h
4077 (aarch64_and_split_imm1, aarch64_and_split_imm2)
4078 (aarch64_and_bitmask_imm): New prototypes
4079 * config/aarch64/aarch64.c (aarch64_and_split_imm1):
4080 New overloaded function to create bit mask covering the
4081 lowest to highest bits set.
4082 (aarch64_and_split_imm2): New overloaded functions to create bit
4083 mask of zeros between first and last bit set.
4084 (aarch64_and_bitmask_imm): New function to determine if a integer
4085 is a valid two instruction "and" operation.
4086 * config/aarch64/aarch64.md:(and<mode>3): New define_insn and _split
4087 allowing wider range of constants with "and" operations.
4088 * (ior<mode>3, xor<mode>3): Use new LOGICAL2 iterator to prevent
4089 "and" operator from matching restricted constant range used for
4090 ior and xor operators.
4091 * config/aarch64/constraints.md (UsO constraint): New SImode constraint
4092 for constants in "and" operantions.
4093 (UsP constraint): New DImode constraint for constants
4094 in "and" operations.
4095 * config/aarch64/iterators.md (lconst2): New mode iterator.
4096 (LOGICAL2): New code iterator.
4097 * config/aarch64/predicates.md (aarch64_logical_and_immediate): New
4098 predicate.
4099 (aarch64_logical_and_operand): New predicate allowing extended
4100 constants for "and" operations.
4101
4102 2016-11-22 Walter Lee <walt@tilera.com>
4103
4104 * config/tilegx/tilegx.md (trap): New pattern.
4105 * config/tilepro/tilepro.md (trap): Likewise.
4106
4107 2016-11-22 Walter Lee <walt@tilera.com>
4108
4109 * config/tilegx/tilegx.md (*zero_extract): Use
4110 define_insn_and_split instead of define_insn; Handle pos + size >
4111 64.
4112 (*sign_extract): Likewise.
4113
4114 2016-11-22 Marek Polacek <polacek@redhat.com>
4115
4116 PR tree-optimization/78455
4117 * tree-ssa-uninit.c (can_chain_union_be_invalidated_p): Fix typo.
4118
4119 2016-11-22 Ian Lance Taylor <iant@golang.org>
4120
4121 PR go/78431
4122 PR go/78432
4123 * godump.c (go_format_type): Always pass alignment as 1 when
4124 calling go_append_padding at end of struct/union.
4125
4126 2016-11-22 Jakub Jelinek <jakub@redhat.com>
4127
4128 PR target/78451
4129 * config/i386/avx512bwintrin.h (_mm512_setzero_qi,
4130 _mm512_setzero_hi): Removed.
4131 (_mm512_maskz_mov_epi16, _mm512_maskz_loadu_epi16,
4132 _mm512_maskz_mov_epi8, _mm512_maskz_loadu_epi8,
4133 _mm512_maskz_broadcastb_epi8, _mm512_maskz_set1_epi8,
4134 _mm512_maskz_broadcastw_epi16, _mm512_maskz_set1_epi16,
4135 _mm512_mulhrs_epi16, _mm512_maskz_mulhrs_epi16, _mm512_mulhi_epi16,
4136 _mm512_maskz_mulhi_epi16, _mm512_mulhi_epu16,
4137 _mm512_maskz_mulhi_epu16, _mm512_maskz_mullo_epi16,
4138 _mm512_cvtepi8_epi16, _mm512_maskz_cvtepi8_epi16, _mm512_cvtepu8_epi16,
4139 _mm512_maskz_cvtepu8_epi16, _mm512_permutexvar_epi16,
4140 _mm512_maskz_permutexvar_epi16, _mm512_avg_epu8, _mm512_maskz_avg_epu8,
4141 _mm512_maskz_add_epi8, _mm512_maskz_sub_epi8, _mm512_avg_epu16,
4142 _mm512_maskz_avg_epu16, _mm512_subs_epi8, _mm512_maskz_subs_epi8,
4143 _mm512_subs_epu8, _mm512_maskz_subs_epu8, _mm512_adds_epi8,
4144 _mm512_maskz_adds_epi8, _mm512_adds_epu8, _mm512_maskz_adds_epu8,
4145 _mm512_maskz_sub_epi16, _mm512_subs_epi16, _mm512_maskz_subs_epi16,
4146 _mm512_subs_epu16, _mm512_maskz_subs_epu16, _mm512_maskz_add_epi16,
4147 _mm512_adds_epi16, _mm512_maskz_adds_epi16, _mm512_adds_epu16,
4148 _mm512_maskz_adds_epu16, _mm512_srl_epi16, _mm512_maskz_srl_epi16,
4149 _mm512_packs_epi16, _mm512_sll_epi16, _mm512_maskz_sll_epi16,
4150 _mm512_maddubs_epi16, _mm512_maskz_maddubs_epi16, _mm512_unpackhi_epi8,
4151 _mm512_maskz_unpackhi_epi8, _mm512_unpackhi_epi16,
4152 _mm512_maskz_unpackhi_epi16, _mm512_unpacklo_epi8,
4153 _mm512_maskz_unpacklo_epi8, _mm512_unpacklo_epi16,
4154 _mm512_maskz_unpacklo_epi16, _mm512_shuffle_epi8,
4155 _mm512_maskz_shuffle_epi8, _mm512_min_epu16, _mm512_maskz_min_epu16,
4156 _mm512_min_epi16, _mm512_maskz_min_epi16, _mm512_max_epu8,
4157 _mm512_maskz_max_epu8, _mm512_max_epi8, _mm512_maskz_max_epi8,
4158 _mm512_min_epu8, _mm512_maskz_min_epu8, _mm512_min_epi8,
4159 _mm512_maskz_min_epi8, _mm512_max_epi16, _mm512_maskz_max_epi16,
4160 _mm512_max_epu16, _mm512_maskz_max_epu16, _mm512_sra_epi16,
4161 _mm512_maskz_sra_epi16, _mm512_srav_epi16, _mm512_maskz_srav_epi16,
4162 _mm512_srlv_epi16, _mm512_maskz_srlv_epi16, _mm512_sllv_epi16,
4163 _mm512_maskz_sllv_epi16, _mm512_maskz_packs_epi16, _mm512_packus_epi16,
4164 _mm512_maskz_packus_epi16, _mm512_abs_epi8, _mm512_maskz_abs_epi8,
4165 _mm512_abs_epi16, _mm512_maskz_abs_epi16, _mm512_dbsad_epu8,
4166 _mm512_maskz_dbsad_epu8, _mm512_srli_epi16, _mm512_maskz_srli_epi16,
4167 _mm512_slli_epi16, _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
4168 _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
4169 _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
4170 _mm512_maskz_srai_epi16, _mm512_packs_epi32,
4171 _mm512_maskz_packs_epi32, _mm512_packus_epi32,
4172 _mm512_maskz_packus_epi32): Use _mm512_setzero_si512 instead of
4173 _mm512_setzero_qi or _mm512_setzero_hi.
4174 (_mm512_maskz_alignr_epi8, _mm512_dbsad_epu8,
4175 _mm512_maskz_dbsad_epu8): Formatting fixes.
4176 (_mm512_srli_epi16, _mm512_maskz_srli_epi16, _mm512_slli_epi16,
4177 _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
4178 _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
4179 _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
4180 _mm512_maskz_srai_epi16): Use _mm512_setzero_si512 instead of
4181 _mm512_setzero_qi or _mm512_setzero_hi.
4182
4183 2016-11-22 Nathan Sidwell <nathan@acm.org>
4184
4185 * gcc-ar.c (main): Fix indentation.
4186 * gcov-io.c (gcov_write_summary): Remove extraneous {...}
4187 * ggc-page.c (move_ptes_to_front): Fix formatting.
4188 * hsa-dump.c (dump_has_cfun): Fix indentation.
4189 * sel-sched-ir.h: Remove trailing blank lines.
4190
4191 2016-11-22 Jakub Jelinek <jakub@redhat.com>
4192 Alexander Monakov <amonakov@ispras.ru>
4193
4194 * internal-fn.c (expand_GOMP_USE_SIMT): New function.
4195 * tree.c (omp_clause_num_ops): OMP_CLAUSE__SIMT_ has 0 operands.
4196 (omp_clause_code_name): Add _simt_ name.
4197 (walk_tree_1): Handle OMP_CLAUSE__SIMT_.
4198 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SIMT_.
4199 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__SIMT_.
4200 (scan_omp_simd): New function.
4201 (scan_omp_1_stmt): Use it in target regions if needed.
4202 (omp_max_vf): Don't max with omp_max_simt_vf.
4203 (lower_rec_simd_input_clauses): Use omp_max_simt_vf if
4204 OMP_CLAUSE__SIMT_ is present.
4205 (lower_rec_input_clauses): Compute maybe_simt from presence of
4206 OMP_CLAUSE__SIMT_.
4207 (lower_lastprivate_clauses): Likewise.
4208 (expand_omp_simd): Likewise. Remove explicit offloaded region check.
4209 (execute_omp_device_lower): Lower IFN_GOMP_USE_SIMT.
4210 * internal-fn.def (GOMP_USE_SIMT): New internal function.
4211 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__SIMT_.
4212
4213 2016-11-22 Alexander Monakov <amonakov@ispras.ru>
4214
4215 * internal-fn.c (expand_GOMP_SIMT_LANE): New.
4216 (expand_GOMP_SIMT_VF): New.
4217 (expand_GOMP_SIMT_LAST_LANE): New.
4218 (expand_GOMP_SIMT_ORDERED_PRED): New.
4219 (expand_GOMP_SIMT_VOTE_ANY): New.
4220 (expand_GOMP_SIMT_XCHG_BFLY): New.
4221 (expand_GOMP_SIMT_XCHG_IDX): New.
4222 * internal-fn.def (GOMP_SIMT_LANE): New.
4223 (GOMP_SIMT_VF): New.
4224 (GOMP_SIMT_LAST_LANE): New.
4225 (GOMP_SIMT_ORDERED_PRED): New.
4226 (GOMP_SIMT_VOTE_ANY): New.
4227 (GOMP_SIMT_XCHG_BFLY): New.
4228 (GOMP_SIMT_XCHG_IDX): New.
4229 * omp-low.c (omp_maybe_offloaded_ctx): New, outlined from...
4230 (create_omp_child_function): ...here. Set "omp target entrypoint"
4231 or "omp declare target" attribute based on is_gimple_omp_offloaded.
4232 (omp_max_simt_vf): New. Use it...
4233 (omp_max_vf): ...here.
4234 (lower_rec_input_clauses): Add reduction lowering for SIMT execution.
4235 (lower_lastprivate_clauses): Likewise, for "lastprivate" lowering.
4236 (lower_omp_ordered): Likewise, for "ordered" lowering.
4237 (expand_omp_simd): Add SIMT transforms.
4238 (pass_data_lower_omp): Add PROP_gimple_lomp_dev.
4239 (execute_omp_device_lower): New.
4240 (pass_data_omp_device_lower): New.
4241 (pass_omp_device_lower): New pass.
4242 (make_pass_omp_device_lower): New.
4243 * passes.def (pass_omp_device_lower): Position new pass.
4244 * tree-pass.h (PROP_gimple_lomp_dev): Define.
4245 (make_pass_omp_device_lower): Declare.
4246
4247 2016-11-22 Jakub Jelinek <jakub@redhat.com>
4248
4249 PR target/78451
4250 * config/i386/avx512vlintrin.h (_mm_setzero_di): Removed.
4251 (_mm_maskz_mov_epi64): Use _mm_setzero_si128 instead of
4252 _mm_setzero_di.
4253 (_mm_maskz_load_epi64): Likewise.
4254 (_mm_setzero_hi): Removed.
4255 (_mm_maskz_loadu_epi64): Use _mm_setzero_si128 instead of
4256 _mm_setzero_di.
4257 (_mm_abs_epi64, _mm_maskz_abs_epi64, _mm_maskz_srl_epi64,
4258 _mm_maskz_unpackhi_epi64, _mm_maskz_unpacklo_epi64,
4259 _mm_maskz_compress_epi64, _mm_srav_epi64, _mm_maskz_srav_epi64,
4260 _mm_maskz_sllv_epi64, _mm_maskz_srlv_epi64, _mm_rolv_epi64,
4261 _mm_maskz_rolv_epi64, _mm_rorv_epi64, _mm_maskz_rorv_epi64,
4262 _mm_min_epi64, _mm_max_epi64, _mm_max_epu64, _mm_min_epu64,
4263 _mm_lzcnt_epi64, _mm_maskz_lzcnt_epi64, _mm_conflict_epi64,
4264 _mm_maskz_conflict_epi64, _mm_sra_epi64, _mm_maskz_sra_epi64,
4265 _mm_maskz_sll_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
4266 _mm_ror_epi64, _mm_maskz_ror_epi64, _mm_alignr_epi64,
4267 _mm_maskz_alignr_epi64, _mm_srai_epi64, _mm_maskz_slli_epi64):
4268 Likewise.
4269 (_mm_cvtepi32_epi8, _mm256_cvtepi32_epi8, _mm_cvtsepi32_epi8,
4270 _mm256_cvtsepi32_epi8, _mm_cvtusepi32_epi8, _mm256_cvtusepi32_epi8,
4271 _mm_cvtepi32_epi16, _mm256_cvtepi32_epi16, _mm_cvtsepi32_epi16,
4272 _mm256_cvtsepi32_epi16, _mm_cvtusepi32_epi16, _mm256_cvtusepi32_epi16,
4273 _mm_cvtepi64_epi8, _mm256_cvtepi64_epi8, _mm_cvtsepi64_epi8,
4274 _mm256_cvtsepi64_epi8, _mm_cvtusepi64_epi8, _mm256_cvtusepi64_epi8,
4275 _mm_cvtepi64_epi16, _mm256_cvtepi64_epi16, _mm_cvtsepi64_epi16,
4276 _mm256_cvtsepi64_epi16, _mm_cvtusepi64_epi16, _mm256_cvtusepi64_epi16,
4277 _mm_cvtepi64_epi32, _mm256_cvtepi64_epi32, _mm_cvtsepi64_epi32,
4278 _mm256_cvtsepi64_epi32, _mm_cvtusepi64_epi32, _mm256_cvtusepi64_epi32,
4279 _mm_maskz_set1_epi32, _mm_maskz_set1_epi64): Formatting fixes.
4280 (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
4281 instead of _mm_setzero_hi.
4282 (_mm256_permutex_pd, _mm256_maskz_permutex_epi64, _mm256_insertf32x4,
4283 _mm256_maskz_insertf32x4, _mm256_inserti32x4, _mm256_maskz_inserti32x4,
4284 _mm256_extractf32x4_ps, _mm256_maskz_extractf32x4_ps,
4285 _mm256_shuffle_i32x4, _mm256_maskz_shuffle_i32x4, _mm256_shuffle_f64x2,
4286 _mm256_maskz_shuffle_f64x2, _mm256_shuffle_f32x4,
4287 _mm256_maskz_shuffle_f32x4, _mm256_maskz_shuffle_pd,
4288 _mm_maskz_shuffle_pd, _mm256_maskz_shuffle_ps, _mm_maskz_shuffle_ps,
4289 _mm256_maskz_srli_epi32, _mm_maskz_srli_epi32, _mm_maskz_srli_epi64,
4290 _mm256_mask_slli_epi32, _mm256_maskz_slli_epi32, _mm256_mask_slli_epi64,
4291 _mm256_maskz_slli_epi64, _mm256_roundscale_ps,
4292 _mm256_maskz_roundscale_ps, _mm256_roundscale_pd,
4293 _mm256_maskz_roundscale_pd, _mm_roundscale_ps, _mm_maskz_roundscale_ps,
4294 _mm_roundscale_pd, _mm_maskz_roundscale_pd, _mm256_getmant_ps,
4295 _mm256_maskz_getmant_ps, _mm_getmant_ps, _mm_maskz_getmant_ps,
4296 _mm256_getmant_pd, _mm256_maskz_getmant_pd, _mm_getmant_pd,
4297 _mm_maskz_getmant_pd, _mm256_maskz_shuffle_epi32,
4298 _mm_maskz_shuffle_epi32, _mm256_rol_epi32, _mm256_maskz_rol_epi32,
4299 _mm_rol_epi32, _mm_maskz_rol_epi32, _mm256_ror_epi32,
4300 _mm256_maskz_ror_epi32, _mm_ror_epi32, _mm_maskz_ror_epi32,
4301 _mm_maskz_alignr_epi32, _mm_maskz_alignr_epi64,
4302 _mm256_maskz_srai_epi32, _mm_maskz_srai_epi32, _mm_srai_epi64,
4303 _mm_maskz_srai_epi64, _mm256_maskz_permutex_pd,
4304 _mm256_maskz_permute_pd, _mm256_maskz_permute_ps, _mm_maskz_permute_pd,
4305 _mm_maskz_permute_ps, _mm256_permutexvar_ps): Formatting fixes.
4306 (_mm_maskz_slli_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
4307 _mm_ror_epi64, _mm_maskz_ror_epi64): Use _mm_setzero_si128 instead of
4308 _mm_setzero_di.
4309 (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
4310 instead of _mm_setzero_hi.
4311 * config/i386/avx512dqintrin.h (_mm512_broadcast_f64x2,
4312 _mm512_broadcast_i64x2, _mm512_broadcast_f32x2, _mm512_broadcast_i32x2,
4313 _mm512_broadcast_f32x8, _mm512_broadcast_i32x8): Formatting fixes.
4314 (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
4315 _mm_setzero_si128 instead of _mm_setzero_di.
4316 (_mm512_cvtt_roundpd_epi64, _mm512_mask_cvtt_roundpd_epi64,
4317 _mm512_maskz_cvtt_roundpd_epi64, _mm512_cvtt_roundpd_epu64,
4318 _mm512_mask_cvtt_roundpd_epu64, _mm512_maskz_cvtt_roundpd_epu64,
4319 _mm512_cvtt_roundps_epi64, _mm512_mask_cvtt_roundps_epi64,
4320 _mm512_maskz_cvtt_roundps_epi64, _mm512_cvtt_roundps_epu64,
4321 _mm512_mask_cvtt_roundps_epu64, _mm512_maskz_cvtt_roundps_epu64,
4322 _mm512_cvt_roundpd_epi64, _mm512_mask_cvt_roundpd_epi64,
4323 _mm512_maskz_cvt_roundpd_epi64, _mm512_cvt_roundpd_epu64,
4324 _mm512_mask_cvt_roundpd_epu64, _mm512_maskz_cvt_roundpd_epu64,
4325 _mm512_cvt_roundps_epi64, _mm512_mask_cvt_roundps_epi64,
4326 _mm512_maskz_cvt_roundps_epi64, _mm512_cvt_roundps_epu64,
4327 _mm512_mask_cvt_roundps_epu64, _mm512_maskz_cvt_roundps_epu64,
4328 _mm512_cvt_roundepi64_ps, _mm512_mask_cvt_roundepi64_ps,
4329 _mm512_maskz_cvt_roundepi64_ps, _mm512_cvt_roundepu64_ps,
4330 _mm512_mask_cvt_roundepu64_ps, _mm512_maskz_cvt_roundepu64_ps,
4331 _mm512_cvt_roundepi64_pd, _mm512_mask_cvt_roundepi64_pd,
4332 _mm512_maskz_cvt_roundepi64_pd, _mm512_cvt_roundepu64_pd,
4333 _mm512_mask_cvt_roundepu64_pd, _mm512_maskz_cvt_roundepu64_pd,
4334 _mm512_reduce_pd, _mm512_maskz_reduce_pd, _mm512_reduce_ps,
4335 _mm512_maskz_reduce_ps, _mm512_extractf32x8_ps,
4336 _mm512_maskz_extractf32x8_ps, _mm512_extractf64x2_pd,
4337 _mm512_maskz_extractf64x2_pd, _mm512_extracti32x8_epi32,
4338 _mm512_maskz_extracti32x8_epi32, _mm512_range_pd,
4339 _mm512_maskz_range_pd, _mm512_range_ps, _mm512_maskz_range_ps,
4340 _mm512_range_round_pd, _mm512_maskz_range_round_pd,
4341 _mm512_range_round_ps, _mm512_maskz_range_round_ps,
4342 _mm512_maskz_insertf64x2, _mm512_insertf32x8,
4343 _mm512_maskz_insertf32x8): Formatting fixes.
4344 (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
4345 _mm_setzero_si128 instead of _mm_setzero_di.
4346 * config/i386/avx512vldqintrin.h (_mm_cvttpd_epi64,
4347 _mm_cvttpd_epu64, _mm_cvtpd_epi64, _mm_cvtpd_epu64,
4348 _mm_cvttps_epi64, _mm_maskz_cvttps_epi64, _mm_cvttps_epu64,
4349 _mm_maskz_cvttps_epu64, _mm_maskz_mullo_epi64, _mm_cvtps_epi64,
4350 _mm_maskz_cvtps_epi64, _mm_cvtps_epu64, _mm_maskz_cvtps_epu64,
4351 _mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64): Use
4352 _mm_setzero_si128 instead of _mm_setzero_di.
4353 (_mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64):
4354 Likewise in macros.
4355 * config/i386/avx512vlbwintrin.h (_mm_maskz_mov_epi8,
4356 _mm_maskz_loadu_epi16, _mm_maskz_mov_epi16, _mm_maskz_loadu_epi8,
4357 _mm_permutexvar_epi16, _mm_maskz_maddubs_epi16): Use
4358 _mm_setzero_si128 instead of _mm_setzero_hi.
4359 (_mm_maskz_min_epu16, _mm_maskz_max_epu8, _mm_maskz_max_epi8,
4360 _mm_maskz_min_epu8, _mm_maskz_min_epi8, _mm_maskz_max_epi16,
4361 _mm_maskz_max_epu16, _mm_maskz_min_epi16): Use _mm_setzero_si128
4362 instead of _mm_setzero_di.
4363 (_mm_dbsad_epu8, _mm_maskz_shufflehi_epi16,
4364 _mm_maskz_shufflelo_epi16): Use _mm_setzero_si128 instead of
4365 _mm_setzero_hi.
4366 (_mm_maskz_shufflehi_epi16, _mm_maskz_shufflelo_epi16,
4367 _mm_maskz_slli_epi16): Use _mm_setzero_si128 instead of
4368 _mm_setzero_hi.
4369 (_mm_maskz_alignr_epi8): Use _mm_setzero_si128 instead of
4370 _mm_setzero_di.
4371 (_mm_maskz_mulhi_epi16, _mm_maskz_mulhi_epu16, _mm_maskz_mulhrs_epi16,
4372 _mm_maskz_mullo_epi16, _mm_srav_epi16, _mm_srlv_epi16,
4373 _mm_sllv_epi16): Use _mm_setzero_si128 instead of _mm_setzero_hi.
4374
4375 2016-11-22 Carl Love <cel@us.ibm.com>
4376
4377 * config/rs6000/rs6000-c.c: Add built-in support for vector compare
4378 equal and vector compare not equal. The vector compares take two
4379 arguments of type vector bool char, vector bool short, vector bool int,
4380 vector bool long long with the same return type.
4381 * doc/extend.texi: Update built-in documentation file for the new
4382 powerpc built-ins.
4383
4384 2016-11-22 Uros Bizjak <ubizjak@gmail.com>
4385
4386 * Makefile.in ($(lang_checks_parallelized)): Fix detection
4387 of -j argument.
4388
4389 2016-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
4390
4391 * config.gcc: Allow new rmprofile value for configure option
4392 --with-multilib-list.
4393 * config/arm/t-rmprofile: New file.
4394 * doc/install.texi (--with-multilib-list): Document new rmprofile value
4395 for ARM.
4396
4397 2016-11-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4398
4399 PR target/78439
4400 * config/arm/vfp.md (*movdi_vfp_cortexa8): Use 'q' constraints for the
4401 register operand in alternatives 4,5,6.
4402
4403 2016-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
4404
4405 PR target/77904
4406 * config/arm/arm.c (thumb1_compute_save_reg_mask): Mark frame pointer
4407 in save register mask if it is needed.
4408
4409 2016-11-22 Jakub Jelinek <jakub@redhat.com>
4410
4411 PR tree-optimization/78436
4412 * gimple-ssa-store-merging.c (zero_char_buf): Removed.
4413 (shift_bytes_in_array, shift_bytes_in_array_right,
4414 merged_store_group::apply_stores): Formatting fixes.
4415 (clear_bit_region): Likewise. Use memset.
4416 (encode_tree_to_bitpos): Formatting fixes. Fix comment typos - EPXR
4417 instead of EXPR and inerted instead of inserted. Use memset instead
4418 of zero_char_buf. For !BYTES_BIG_ENDIAN decrease byte_size by 1
4419 if shift_amnt is 0.
4420
4421 PR middle-end/78416
4422 * expmed.c (expand_divmod): Use wide_int for computation of
4423 op1_is_pow2. Don't set it if op1 is 0. Formatting fixes.
4424 Use size <= HOST_BITS_PER_WIDE_INT instead of
4425 HOST_BITS_PER_WIDE_INT >= size.
4426
4427 PR tree-optimization/78445
4428 * tree-if-conv.c (tree_if_conversion): If any_pred_load_store or
4429 any_complicated_phi, version loop even if flag_tree_loop_if_convert
4430 is 1. Formatting fix.
4431
4432 2016-11-22 Martin Liska <mliska@suse.cz>
4433
4434 PR ipa/78309
4435 * ipa-icf.c (void sem_item::set_hash): Update m_hash_set.
4436 (sem_function::get_hash): Use the new field.
4437 (sem_function::parse): Remove an argument from ctor.
4438 (sem_variable::parse): Likewise.
4439 (sem_variable::get_hash): Use the new field.
4440 (sem_item_optimizer::read_section): Use new ctor and set hash.
4441 * ipa-icf.h: _hash is removed from sem_item::sem_item,
4442 sem_variable::sem_variable, sem_function::sem_function.
4443
4444 2016-11-21 Jeff Law <law@redhat.com>
4445
4446 PR target/68538
4447 * config/cris/cris.md: Don't call copy_to_mode_reg unless
4448 can_create_pseudo_p is true.
4449
4450 2016-11-21 Segher Boessenkool <segher@kernel.crashing.org>
4451
4452 PR target/68803
4453 * config/rs6000/rs6000.md (*rotlsi3_insert_5, *rotldi3_insert_6,
4454 *rotldi3_insert_7): New define_insns.
4455
4456 2016-11-21 Michael Meissner <meissner@linux.vnet.ibm.com>
4457
4458 * config/rs6000/rs6000.md (movdi_internal32): Change constraints
4459 so that DImode can be allocated to FP/vector registers in more
4460 cases, and we can avoid direct move operations. If the register
4461 needs reloading, prefer GPRs over FP/vector registers. In the
4462 case of FPR vs. Altivec registers, prefer FPR registers unless we
4463 have the ISA 3.0 reg+offset scalar instructions.
4464 (movdi_internal64): Likewise.
4465
4466 2016-11-21 Jakub Jelinek <jakub@redhat.com>
4467
4468 PR middle-end/67335
4469 * omp-simd-clone.c (simd_clone_adjust_argument_types): Use NULL prefix
4470 for tmp simd array if DECL_NAME (parm) is NULL.
4471
4472 2016-11-20 Jeff Law <law@redhat.com>
4473
4474 PR target/25128
4475 * config/m68k/predicates.md (swap_peephole_relational_operator): New
4476 predicate.
4477 * config/m68k/m68k.md (relational tests against 65535/65536): New
4478 peephole2.
4479
4480 2016-11-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4481
4482 * tree-ssa-loop-prefetch.c: Delete FIXME after the includes.
4483
4484 2016-11-21 Martin Sebor <msebor@redhat.com>
4485
4486 * doc/invoke.texi (-fprintf-return-value): Document that option
4487 is enabled by default.
4488
4489 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
4490
4491 * config/avr/avr-c.c (avr_register_target_pragmas): Use C++
4492 for-loop declaration of loop variable.
4493 (avr_register_target_pragmas, avr_cpu_cpp_builtins): Same.
4494 * config/avr/avr.c (avr_popcount_each_byte)
4495 (avr_init_expanders, avr_regs_to_save, sequent_regs_live)
4496 (get_sequence_length, avr_prologue_setup_frame, avr_map_metric)
4497 (avr_expand_epilogue, avr_function_arg_advance)
4498 (avr_out_compare, avr_out_plus_1, avr_out_bitop, avr_out_fract)
4499 (avr_rotate_bytes, _reg_unused_after, avr_assemble_integer)
4500 (avr_adjust_reg_alloc_order, output_reload_in_const)
4501 (avr_conditional_register_usage, avr_find_unused_d_reg)
4502 (avr_map_decompose, avr_fold_builtin): Same.
4503
4504 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
4505
4506 * config/avr/avr.c (avr_popcount): Remove static function.
4507 (avr_popcount_each_byte, avr_out_bitop): Use popcount_hwi instead.
4508
4509 2016-11-21 Richard Earnshaw <rearnsha@arm.com>
4510
4511 * arm.opt (mapcs-float): Delete option.
4512 * arm.c (arm_option_override): Remove hunk relating to
4513 TARGET_APCS_FLOAT.
4514 * doc/invoke.texi (arm options): Remove documentation for -mapcs-float.
4515
4516 2016-11-21 Richard Sandiford <richard.sandiford@arm.com>
4517
4518 * tree-tailcall.c (process_assignment): Simplify the check for
4519 a valid copy, allowing the source to be a local variable as
4520 well as an SSA name.
4521 (find_tail_calls): Allow copies between local variables to follow
4522 the call. Allow the result to be stored in any local variable,
4523 even if it's an aggregate.
4524 (eliminate_tail_call): Check whether the result is an SSA name
4525 before updating its SSA_NAME_DEF_STMT.
4526
4527 2016-11-21 David Malcolm <dmalcolm@redhat.com>
4528
4529 PR preprocessor/78324
4530 * input.c (get_substring_ranges_for_loc): Fail gracefully if
4531 -ftrack-macro-expansion has a value other than 2.
4532
4533 2016-11-21 Segher Boessenkool <segher@kernel.crashing.org>
4534
4535 PR rtl-optimization/78400
4536 * shrink-wrap.c (try_shrink_wrapping_separate): Call
4537 df_update_entry_exit_and_calls instead of df_update_entry_block_defs
4538 and df_update_exit_block_uses.
4539
4540 2016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
4541
4542 PR c++/71973
4543 * doc/invoke.texi (-Wno-builtin-declaration-mismatch): Document the
4544 new default-enabled warning..
4545 * builtin-types.def (BT_CONST_TM_PTR): New primitive type.
4546 (BT_PTR_CONST_STRING): Updated.
4547 (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR): Removed.
4548 (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_TM_PTR): New function type.
4549 * builtins.def (DEF_TM_BUILTIN): Disable BOTH_P for TM builtins.
4550 (strftime): Update builtin function.
4551 * tree-core.h (TI_CONST_TM_PTR_TYPE): New enum value.
4552 * tree.h (const_tm_ptr_type_node): New type node.
4553 * tree.c (free_lang_data, build_common_tree_nodes): Initialize
4554 const_tm_ptr_type_node.
4555
4556 2016-11-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4557
4558 PR tree-optimization/78413
4559 * tree-if-conv.c (versionable_outer_loop_p): Require that both
4560 inner and outer loop latches have single predecessors.
4561
4562 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
4563
4564 PR target/78093
4565 * config/avr/avr.c (avr_decl_maybe_lds_p): New static function.
4566 (avr_encode_section_info) [TARGET_ABSDATA && AVR_TINY]: Use it.
4567
4568 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4569
4570 * rtl.h: Adjust prototype.
4571 * rtlanal.c (dead_or_set_p): Change argument type to rtx_insn *.
4572 (dead_or_set_regno_p): Likewise.
4573
4574 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4575
4576 * rtl.h: Adjust prototype.
4577 * rtlanal.c (add_int_reg_note): Change argument type to rtx_insn *.
4578
4579 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4580
4581 * function.c (contains): Change argument type to rtx_insn *.
4582 (prologue_contains): Likewise.
4583 (epilogue_contains): Likewise.
4584 (prologue_epilogue_contains): Likewise.
4585 * function.h: Adjust prototype.
4586
4587 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4588
4589 * optabs.c (emit_libcall_block): Change argument type to
4590 rtx_insn *.
4591 * optabs.h: Adjust prototype.
4592
4593 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4594
4595 * cfgrtl.c (delete_insn): Change argument type to rtx_insn *.
4596 (fixup_reorder_chain): Adjust.
4597 * cfgrtl.h: Adjust prototype.
4598
4599 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4600
4601 * rtl.h: Adjust prototype.
4602 * rtlanal.c (replace_label_in_insn): Change argument type to
4603 rtx_insn *.
4604
4605 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4606
4607 * config/v850/v850.c (expand_prologue): Adjust.
4608 (expand_epilogue): Likewise.
4609 * expr.c (init_expr_target): Likewise.
4610 * genrecog.c (print_subroutine): Always make the argument type
4611 rtx_insn *.
4612 * recog.h: Adjust prototype.
4613
4614 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4615
4616 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): split
4617 up variables to make some rtx_insn *.
4618 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
4619 * config/arc/arc.c: Likewise.
4620 * config/arm/arm.c: Likewise.
4621 * config/mn10300/mn10300.c (mn10300_legitimize_pic_address): Likewise.
4622 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue):
4623 Likewise.
4624 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
4625
4626 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4627
4628 * config/arm/arm.c (legitimize_pic_address): Change to use
4629 rtx_insn * as the type of variables.
4630 (arm_pic_static_addr): Likewise.
4631 (arm_emit_movpair): Likewise.
4632 * config/c6x/c6x.c (reorg_split_calls): Likewise.
4633 * config/darwin.c (machopic_legitimize_pic_address): Likewise.
4634 * config/frv/frv.c (frv_optimize_membar_local): Likewise.
4635 * config/frv/frv.md: Likewise.
4636 * config/i386/i386-protos.h: Likewise.
4637 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
4638 (ix86_split_fp_branch): Likewise.
4639 (predict_jump): Likewise.
4640 * config/ia64/ia64.c: Likewise.
4641 * config/mcore/mcore.c: Likewise.
4642 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
4643 * config/s390/s390.c: Likewise.
4644 * config/s390/s390.md: Likewise.
4645 * config/spu/spu.md: Likewise.
4646 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise.
4647 * lower-subreg.c (resolve_simple_move): Likewise.
4648
4649 2016-11-20 Jeff Law <law@redhat.com>
4650
4651 PR target/48551
4652 * reload.h (struct target_reload): Make x_double_reg_address_ok
4653 be per-mode rather.
4654 * reload.c (find_reloads_address): Check if double_reg_address_ok
4655 is true for the mode of the memory reference.
4656 * reload1.c (init_reload): Initialize double_reg_address_ok for
4657 each mode.
4658
4659 2016-11-20 Aldy Hernandez <aldyh@redhat.com>
4660
4661 PR middle-end/61409
4662 * tree-ssa-uninit.c: Define new global max_phi_args.
4663 (compute_uninit_opnds_pos): Use max_phi_args.
4664 (prune_uninit_phi_opnds): Same.
4665 (use_pred_not_overlap_with_undef_path_pred): Remove reference to
4666 missing NUM_PREDS in function comment.
4667 (can_one_predicate_be_invalidated_p): New.
4668 (can_chain_union_be_invalidated_p): New.
4669 (flatten_out_predicate_chains): New.
4670 (uninit_ops_invalidate_phi_use): New.
4671 (is_use_properly_guarded): Call uninit_ops_invalidate_phi_use.
4672
4673 2016-11-20 Marc Glisse <marc.glisse@inria.fr>
4674
4675 * fold-const.c (fold_comparison): Ignore EXACT_DIV_EXPR.
4676 * match.pd (A /[ex] B CMP C): New simplifications.
4677
4678 2016-11-20 Marc Glisse <marc.glisse@inria.fr>
4679
4680 * match.pd (0 / X, X / X, X % X): New simplifications.
4681
4682 2016-11-19 Jakub Jelinek <jakub@redhat.com>
4683
4684 * config/i386/i386.c (ix86_can_inline_p): Use || instead of &
4685 when checking if callee's isa flags are subset of caller's isa flags.
4686 Fix comment wording.
4687
4688 * config/i386/i386.c (ix86_valid_target_attribute_tree): Don't
4689 clear opts->x_ix86_isa_flags, clear opts->x_ix86_isa_flags2
4690 instead and using = 0 instead of &= 0.
4691
4692 * config/i386/i386.c (def_builtin, def_builtin2, def_builtin_const2,
4693 ix86_add_new_builtins): Formatting fixes.
4694 (ix86_expand_builtin): Use || instead of && for isa vs. isa2.
4695 (ix86_get_builtin): Likewise.
4696
4697 * config/i386/i386.c (ix86_expand_builtin): Remove msk_mov variable,
4698 don't initialize it, don't use it for the case where it isn't
4699 provable %{z} nor using the same argument, instead move merge
4700 argument into a new pseudo and use that as target. Formatting fixes.
4701
4702 2016-11-19 Jeff Law <law@redhat.com>
4703
4704 PR target/25111
4705 * config/m68k/m68k.md (bsetdreg): New pattern.
4706 (bchgdreg, bclrdreg): Likewise.
4707
4708 2016-11-19 Kaz Kojima <kkojima@gcc.gnu.org>
4709
4710 PR target/78426
4711 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Use copy_to_mode_reg
4712 instead of force_reg.
4713 (sh_expand_setmem): Likewise.
4714
4715 2016-11-19 Krister Walfridsson <krister.walfridsson@gmail.com>
4716
4717 * config.gcc (*-*-netbsd): Set use_gcc_stdint=wrap.
4718
4719 2016-11-18 Walter Lee <walt@tilera.com>
4720
4721 * config/tilegx/tilegx.c (tilegx_gen_bundles): Preserve
4722 end-of-bundle marker for consecutive barriers.
4723
4724 2016-11-18 Walter Lee <walt@tilera.com>
4725
4726 * config/tilegx/tilegx.md (clzsi2): Fix for big-endian.
4727
4728 2016-11-18 Jakub Jelinek <jakub@redhat.com>
4729
4730 PR middle-end/78419
4731 * multiple_target.c (get_attr_len): Start with argnum and increment
4732 argnum on every arg. Use strchr in a loop instead of counting commas
4733 manually.
4734 (get_attr_str): Increment argnum for every comma in the string.
4735 (separate_attrs): Use for instead of while loop, simplify.
4736 (expand_target_clones): Rename defenition argument to definition.
4737 Free attrs and attr_str even when diagnosing errors. Temporarily
4738 change input_location around targetm.target_option.valid_attribute_p
4739 calls. Don't emit warning or errors if that function fails.
4740
4741 * dwarf2out.c (size_of_discr_list): Fix typo in function comment.
4742
4743 PR debug/78191
4744 * dwarf2out.c (abbrev_opt_base_type_end): New variable.
4745 (die_abbrev_cmp): Sort dies with die_abbrev smaller than
4746 abbrev_opt_base_type_end only by increasing die_abbrev, before
4747 any other dies.
4748 (optimize_abbrev_table): Don't change abbrev numbers of
4749 base types and CU or optimize implicit consts in them if
4750 calc_base_type_die_sizes has been called during build_abbrev_table.
4751 (calc_base_type_die_sizes): If abbrev_opt_start, set
4752 abbrev_opt_base_type_end to one plus largest base type's die_abbrev.
4753
4754 2016-11-18 Jeff Law <law@redhat.com>
4755
4756 PR target/25112
4757 * config/m68k/m68k.c (moveq feeding equality comparison): New
4758 peepholes.
4759 * config/m68k/predicates.md (addq_subq_operand): New predicate.
4760 (equality_comparison_operator): Likewise.
4761
4762 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
4763
4764 * rtlanal.c (load_extend_op): Move to...
4765 * rtl.h: ...here and make inline.
4766
4767 2016-11-18 Terry Guo <terry.guo@arm.com>
4768 Thomas Preud'homme <thomas.preudhomme@arm.com>
4769
4770 * common/config/arm/arm-common.c (arm_target_thumb_only): New function.
4771 * config/arm/arm-opts.h: Include arm-flags.h.
4772 (struct arm_arch_core_flag): Define.
4773 (arm_arch_core_flags): Define.
4774 * config/arm/arm-protos.h: Include arm-flags.h
4775 (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M, FL_MODE26, FL_MODE32,
4776 FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED, FL_STRONG, FL_ARCH5E,
4777 FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF, FL_ARCH6K, FL_THUMB2, FL_NOTM,
4778 FL_THUMB_DIV, FL_VFPV3, FL_NEON, FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV,
4779 FL_ARCH8, FL_CRC32, FL_SMALLMUL, FL_NO_VOLATILE_CE, FL_IWMMXT,
4780 FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1, FL2_ARCH8_2, FL2_FP16INST,
4781 FL_TUNE, FL_FOR_ARCH2, FL_FOR_ARCH3, FL_FOR_ARCH3M, FL_FOR_ARCH4,
4782 FL_FOR_ARCH4T, FL_FOR_ARCH5, FL_FOR_ARCH5T, FL_FOR_ARCH5E,
4783 FL_FOR_ARCH5TE, FL_FOR_ARCH5TEJ, FL_FOR_ARCH6, FL_FOR_ARCH6J,
4784 FL_FOR_ARCH6K, FL_FOR_ARCH6Z, FL_FOR_ARCH6ZK, FL_FOR_ARCH6KZ,
4785 FL_FOR_ARCH6T2, FL_FOR_ARCH6M, FL_FOR_ARCH7, FL_FOR_ARCH7A,
4786 FL_FOR_ARCH7VE, FL_FOR_ARCH7R, FL_FOR_ARCH7M, FL_FOR_ARCH7EM,
4787 FL_FOR_ARCH8A, FL2_FOR_ARCH8_1A, FL2_FOR_ARCH8_2A, FL_FOR_ARCH8M_BASE,
4788 FL_FOR_ARCH8M_MAIN, arm_feature_set, ARM_FSET_MAKE,
4789 ARM_FSET_MAKE_CPU1, ARM_FSET_MAKE_CPU2, ARM_FSET_CPU1, ARM_FSET_CPU2,
4790 ARM_FSET_EMPTY, ARM_FSET_ANY, ARM_FSET_HAS_CPU1, ARM_FSET_HAS_CPU2,
4791 ARM_FSET_HAS_CPU, ARM_FSET_ADD_CPU1, ARM_FSET_ADD_CPU2,
4792 ARM_FSET_DEL_CPU1, ARM_FSET_DEL_CPU2, ARM_FSET_UNION, ARM_FSET_INTER,
4793 ARM_FSET_XOR, ARM_FSET_EXCLUDE, ARM_FSET_IS_EMPTY,
4794 ARM_FSET_CPU_SUBSET): Move to ...
4795 * config/arm/arm-flags.h: This new file.
4796 * config/arm/arm.h (TARGET_MODE_SPEC_FUNCTIONS): Define.
4797 (EXTRA_SPEC_FUNCTIONS): Add TARGET_MODE_SPEC_FUNCTIONS to its value.
4798 (TARGET_MODE_SPECS): Define.
4799 (DRIVER_SELF_SPECS): Add TARGET_MODE_SPECS to its value.
4800
4801 2016-11-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
4802
4803 * config/arm/arm-protos.h (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M,
4804 FL_MODE26, FL_MODE32, FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED,
4805 FL_STRONG, FL_ARCH5E, FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF,
4806 FL_ARCH6K, FL_THUMB2, FL_NOTM, FL_THUMB_DIV, FL_VFPV3, FL_NEON,
4807 FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV, FL_ARCH8, FL_CRC32, FL_SMALLMUL,
4808 FL_NO_VOLATILE_CE, FL_IWMMXT, FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1,
4809 FL2_ARCH8_2, FL2_FP16INST): Reindent comment, add final dot when
4810 missing and make value unsigned.
4811 (arm_feature_set): Use unsigned entries instead of unsigned long.
4812
4813 2016-11-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
4814
4815 Re-apply after PR bootstrap/77359 is fixed:
4816 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
4817
4818 * explow.c (get_dynamic_stack_size): Take known alignment of stack
4819 pointer + STACK_DYNAMIC_OFFSET into account when calculating the
4820 size needed.
4821
4822 2016-11-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
4823
4824 PR bootstrap/77359
4825 * config/rs6000/rs6000.c (rs6000_stack_info): Properly align local
4826 variables in functions calling alloca. Also update the ASCII
4827 drawings.
4828 * config/rs6000/rs6000.h (STARTING_FRAME_OFFSET)
4829 (STACK_DYNAMIC_OFFSET): Likewise.
4830 * config/rs6000/aix.h (STARTING_FRAME_OFFSET)
4831 (STACK_DYNAMIC_OFFSET): Copy AIX specific versions of the rs6000.h
4832 macros to aix.h.
4833
4834 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
4835 Alan Hayward <alan.hayward@arm.com>
4836 David Sherwood <david.sherwood@arm.com>
4837
4838 * combine.c (try_combine): Use rtx_mode_t instead of std::make_pair.
4839 * dwarf2out.c (mem_loc_descriptor, loc_descriptor): Likewise.
4840 (add_const_value_attribute): Likewise.
4841 * explow.c (plus_constant): Likewise.
4842 * expmed.c (expand_mult, make_tree): Likewise.
4843 * expr.c (convert_modes): Likewise.
4844 * loop-doloop.c (doloop_optimize): Likewise.
4845 * postreload.c (reload_cse_simplify_set): Likewise.
4846 * simplify-rtx.c (simplify_const_unary_operation): Likewise
4847 (simplify_binary_operation_1, simplify_const_binary_operation):
4848 Likewise.
4849 (simplify_const_relational_operation, simplify_immed_subreg): Likewise.
4850 * wide-int.h: Update documentation to recommend rtx_mode_t
4851 instead of std::make_pair.
4852
4853 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
4854 Alan Hayward <alan.hayward@arm.com>
4855 David Sherwood <david.sherwood@arm.com>
4856
4857 * tree.h (SET_DECL_MODE): New macro.
4858 * cfgexpand.c (avoid_deep_ter_for_debug): Use SET_DECL_MODE.
4859 (expand_gimple_basic_block): Likewise.
4860 * function.c (split_complex_args): Likeise.
4861 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
4862 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Likewise.
4863 * stor-layout.c (layout_decl, relayout_decl): Likewise.
4864 (finish_bitfield_representative): Likewise.
4865 * tree.c (make_node_stat): Likewise.
4866 * tree-inline.c (remap_ssa_name): Likewise.
4867 (tree_function_versioning): Likewise.
4868 * tree-into-ssa.c (rewrite_debug_stmt_uses): Likewise.
4869 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
4870 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
4871 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Likewise.
4872 * tree-ssa.c (insert_debug_temp_for_var_def): Likewise.
4873 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
4874 * varasm.c (make_debug_expr_from_rtl): Likewise.
4875
4876 2016-11-18 Segher Boessenkool <segher@kernel.crashing.org>
4877
4878 PR rtl-optimization/71785
4879 * bb-reorder.c (maybe_duplicate_computed_goto): New function.
4880 (duplicate_computed_gotos): New function.
4881 (pass_duplicate_computed_gotos::execute): Rewrite.
4882
4883 2016-11-17 Jeff Law <law@redhat.com>
4884
4885 PR target/47192
4886 * config/m68k/m68k.c (m68k_expand_epilogue): Emit a scheduling
4887 barrier prior to deallocating the stack.
4888
4889 2016-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
4890
4891 * config/arc/arc.md (cmem bit/sign-extend peephole2): New peephole
4892 to make better use of cmem loads in the case where a single bit is
4893 being accessed.
4894 * config/arc/predicates.md (ge_lt_comparison_operator): New predicate.
4895
4896 2016-11-17 Andrew Senkevich <andrew.senkevich@intel.com>
4897
4898 * config/i386/i386.c (processor_features): Add F_AVX5124VNNIW,
4899 F_AVX5124FMAPS.
4900 (isa_names_table): Handle new features.
4901
4902 2016-11-17 Kirill Yukhin <kirill.yukhin@gmail.com>
4903 Andrew Senkevich <andrew.senkevich@intel.com>
4904
4905 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX5124FMAPS_SET,
4906 OPTION_MASK_ISA_AVX5124FMAPS_UNSET, OPTION_MASK_ISA_AVX5124VNNIW_SET,
4907 OPTION_MASK_ISA_AVX5124VNNIW_UNSET): New.
4908 (ix86_handle_option): Handle OPT_mavx5124fmaps, OPT_mavx5124vnniw.
4909 * config.gcc: Add avx5124fmapsintrin.h, avx5124vnniwintrin.h.
4910 * config/i386/avx5124fmapsintrin.h: New file.
4911 * config/i386/avx5124vnniwintrin.h: Ditto.
4912 * config/i386/constraints.md (h): New constraint.
4913 * config/i386/cpuid.h (bit_AVX5124VNNIW, bit_AVX5124FMAPS): New.
4914 * config/i386/driver-i386.c (host_detect_local_cpu):
4915 Detect avx5124fmaps, avx5124vnniw.
4916 * config/i386/i386-builtin-types.def: Add types
4917 V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF_V16SF_UHI,
4918 V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF,
4919 V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF,
4920 V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF_V4SF_UQI,
4921 V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI,
4922 V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI_V16SI_UHI.
4923 * config/i386/i386-builtin.def (__builtin_ia32_4fmaddps_mask,
4924 __builtin_ia32_4fmaddps, __builtin_ia32_4fmaddss,
4925 __builtin_ia32_4fmaddss_mask, __builtin_ia32_4fnmaddps_mask,
4926 __builtin_ia32_4fnmaddps, __builtin_ia32_4fnmaddss,
4927 __builtin_ia32_4fnmaddss_mask, __builtin_ia32_vp4dpwssd,
4928 __builtin_ia32_vp4dpwssd_mask, __builtin_ia32_vp4dpwssds,
4929 __builtin_ia32_vp4dpwssds_mask): New.
4930 * config/i386/i386-c.c (ix86_target_macros_internal):
4931 Define __AVX5124FMAPS__, __AVX5124VNNIW__.
4932 * config/i386/i386-modes.def: Fixed comment typos, added new
4933 modes (VECTOR_MODES (FLOAT, 256), VECTOR_MODE (INT, SI, 64)).
4934 * config/i386/i386.c (ix86_target_string): Add -mavx5124fmaps,
4935 -mavx5124vnniw.
4936 (PTA_AVX5124FMAPS, PTA_AVX5124VNNIW): Define.
4937 (ix86_option_override_internal): Handle new options.
4938 (ix86_valid_target_attribute_inner_p): Add avx5124fmaps,
4939 avx5124vnniw.
4940 (ix86_expand_builtin): Handle new builtins.
4941 (ix86_additional_allocno_class_p): New.
4942 * config/i386/i386.h (TARGET_AVX5124FMAPS, TARGET_AVX5124FMAPS_P,
4943 TARGET_AVX5124VNNIW, TARGET_AVX5124VNNIW_P): Define.
4944 (reg_class): Add MOD4_SSE_REGS.
4945 (MOD4_SSE_REG_P, MOD4_SSE_REGNO_P): New.
4946 * config/i386/i386.opt: Add mavx5124fmaps, mavx5124vnniw.
4947 * config/i386/immintrin.h: Include avx5124fmapsintrin.h,
4948 avx5124vnniwintrin.h.
4949 * config/i386/sse.md (unspec): Add UNSPEC_VP4FMADD, UNSPEC_VP4FNMADD,
4950 UNSPEC_VP4DPWSSD, UNSPEC_VP4DPWSSDS.
4951 (define_mode_iterator IMOD4): New.
4952 (define_mode_attr imod4_narrow): Ditto.
4953 (define_insn "mov<mode>"): Ditto.
4954 (define_insn "avx5124fmaddps_4fmaddps"): Ditto.
4955 (define_insn "avx5124fmaddps_4fmaddps_mask"): Ditto.
4956 (define_insn "avx5124fmaddps_4fmaddps_maskz"): Ditto.
4957 (define_insn "avx5124fmaddps_4fmaddss"): Ditto.
4958 (define_insn "avx5124fmaddps_4fmaddss_mask"): Ditto.
4959 (define_insn "avx5124fmaddps_4fmaddss_maskz"): Ditto.
4960 (define_insn "avx5124fmaddps_4fnmaddps"): Ditto.
4961 (define_insn "avx5124fmaddps_4fnmaddps_mask"): Ditto.
4962 (define_insn "avx5124fmaddps_4fnmaddps_maskz"): Ditto.
4963 (define_insn "avx5124fmaddps_4fnmaddss"): Ditto.
4964 (define_insn "avx5124fmaddps_4fnmaddss_mask"): Ditto.
4965 (define_insn "avx5124fmaddps_4fnmaddss_maskz"): Ditto.
4966 (define_insn "avx5124vnniw_vp4dpwssd"): Ditto.
4967 (define_insn "avx5124vnniw_vp4dpwssd_mask"): Ditto.
4968 (define_insn "avx5124vnniw_vp4dpwssd_maskz"): Ditto.
4969 (define_insn "avx5124vnniw_vp4dpwssds"): Ditto.
4970 (define_insn "avx5124vnniw_vp4dpwssds_mask"): Ditto.
4971 (define_insn "avx5124vnniw_vp4dpwssds_maskz"): Ditto.
4972 * init-regs.c (initialize_uninitialized_regs): Add emit_clobber call.
4973 * genmodes.c (mode_size_inline): Extend return type.
4974 * machmode.h (mode_size, mode_base_align): Extend type.
4975
4976 2016-11-17 Michael Meissner <meissner@linux.vnet.ibm.com>
4977
4978 PR target/78101
4979 * config/rs6000/predicates.md (fusion_addis_mem_combo_load): Add
4980 the appropriate checks for SFmode/DFmode load/stores in GPR
4981 registers.
4982 (fusion_addis_mem_combo_store): Likewise.
4983 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Rename
4984 fusion_fpr_* to fusion_vsx_* and add in support for ISA 3.0 scalar
4985 d-form instructions for traditional Altivec registers.
4986 (emit_fusion_p9_load): Likewise.
4987 (emit_fusion_p9_store): Likewise.
4988 * config/rs6000/rs6000.md (p9 fusion store peephole2): Remove
4989 early clobber from scratch register. Do not match if the register
4990 being stored is the scratch register.
4991 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_load): Rename fusion_fpr_*
4992 to fusion_vsx_* and add in support for ISA 3.0 scalar d-form
4993 instructions for traditional Altivec registers.
4994 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
4995 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
4996 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
4997
4998 2016-11-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
4999
5000 PR target/77933
5001 * config/arm/arm.c (thumb1_expand_prologue): Distinguish between lr
5002 being live in the function and lr needing to be saved. Distinguish
5003 between already saved pushable registers and registers to push.
5004 Check for LR being an available pushable register.
5005
5006 2016-11-17 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
5007
5008 * config/i386/i386.md (cmpstrnsi): New test to bail out if neither
5009 string input is a string constant.
5010 * builtins.c (expand_builtin_strncmp): Attempt expansion of strncmp
5011 via cmpstrnsi even if neither string is constant.
5012
5013 2016-11-17 Jakub Jelinek <jakub@redhat.com>
5014
5015 PR middle-end/78201
5016 * varasm.c (default_use_anchors_for_symbol_p): Fix a comment typo.
5017 Don't test decl != NULL. Don't look at DECL_SIZE, but DECL_SIZE_UNIT
5018 instead, return false if it is NULL, or doesn't fit into uhwi, or
5019 is larger or equal to targetm.max_anchor_offset.
5020
5021 2016-11-17 Pip Cet <pipcet@gmail.com>
5022 Eric Botcazou <ebotcazou@adacore.com>
5023
5024 PR rtl-optimization/78355
5025 * doc/tm.texi.in (SLOW_UNALIGNED_ACCESS): Document that the macro only
5026 needs to deal with unaligned accesses.
5027 * doc/tm.texi: Regenerate.
5028 * lra-constraints.c (simplify_operand_subreg): Only invoke
5029 SLOW_UNALIGNED_ACCESS on innermode if the MEM is not aligned enough.
5030
5031 2016-11-17 David Malcolm <dmalcolm@redhat.com>
5032
5033 * input.c (selftest::test_lexer_string_locations_long_line): New
5034 function.
5035 (selftest::test_lexer_string_locations_raw_string_multiline): New
5036 function.
5037 (selftest::input_c_tests): Call the new functions, via
5038 for_each_line_table_case.
5039
5040 2016-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5041
5042 * config/aarch64/aarch64.md (mov<mode>): Call
5043 aarch64_split_dimode_const_store on DImode constant stores.
5044 * config/aarch64/aarch64-protos.h (aarch64_split_dimode_const_store):
5045 New prototype.
5046 * config/aarch64/aarch64.c (aarch64_split_dimode_const_store): New
5047 function.
5048
5049 2016-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5050 Richard Biener <rguenther@suse.de>
5051
5052 PR tree-optimization/77848
5053 * tree-if-conv.c (tree_if_conversion): Always version loops unless
5054 the user specified -ftree-loop-if-convert.
5055
5056 2016-11-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
5057
5058 PR target/77308
5059 * config/arm/arm.md (*thumb2_ldrd, *thumb2_ldrd_base,
5060 *thumb2_ldrd_base_neg, *thumb2_strd, *thumb2_strd_base,
5061 *thumb2_strd_base_neg): Recognize insn regardless of
5062 current_tune->prefer_ldrd_strd.
5063 * config/arm/ldrdstrd.md: Enable all ldrd/strd peephole rules
5064 whenever possible.
5065
5066 2016-11-17 Claudiu Zissulescu <claziss@synopsys.com>
5067
5068 * config/arc/arc.c (arc_ccfsm_post_advance): Handle return
5069 instruction type.
5070
5071 2016-11-17 Claudiu Zissulescu <claziss@synopsys.com>
5072
5073 * config/arc/arc-arches.def: Add FPX quarkse instruction as valid
5074 for arcem.
5075 * config/arc/arc-c.def (__ARC_FPX_QUARK__): Define.
5076 * config/arc/arc-cpus.def (quarkse_em): Add.
5077 * config/arc/arc-options.def (FL_FPX_QUARK, FL_QUARK): Likewise.
5078 * config/arc/arc-opts.h (FPX_QK): Define.
5079 * config/arc/arc-tables.opt: Regenerate.
5080 * config/arc/arc.c (gen_compare_reg): Change.
5081 (arc_register_move_cost): Avoid Dy,Dx moves.
5082 * config/arc/arc.h (TARGET_HARD_FLOAT): Change.
5083 (TARGET_FPX_QUARK, TARGET_FP_ASSIST): Define.
5084 * config/arc/arc.md (divsf3, sqrtsf2, fix_truncsfsi2, floatsisf2):
5085 New expands.
5086 * config/arc/fpu.md (divsf3_fpu, sqrtsf2_fpu, floatsisf2_fpu)
5087 (fix_truncsfsi2_fpu): Rename.
5088 * config/arc/fpx.md (cmp_quark, cmpsf_quark_, cmpsf_quark_ord)
5089 (cmpsf_quark_uneq, cmpsf_quark_eq, divsf3_quark, sqrtsf2_quark)
5090 (fix_truncsfsi2_quark, floatsisf2_quark): New patterns.
5091 * config/arc/t-multilib: Regenerate.
5092
5093 2016-11-17 Georg-Johann Lay <avr@gjlay.de>
5094
5095 * config/avr/avr.c (avr_print_operand_address): Use CONST_INT_P if
5096 appropriate.
5097 (ashlqi3_out, ashlsi3_out, ashrqi3_out, ashrhi3_out): Same.
5098 (ashrsi3_out, lshrqi3_out, lshrhi3_out, lshrsi3_out): Same.
5099 (avr_rtx_costs_1, extra_constraint_Q): Same.
5100 (avr_address_cost): Use SUBREG_P if possible.
5101
5102 2016-11-17 Richard Biener <rguenther@suse.de>
5103
5104 PR middle-end/78383
5105 * tree-cfgcleanup.c (cleanup_control_flow_bb): Do not turn
5106 non-local goto into CFG.
5107
5108 2016-11-17 Richard Biener <rguenther@suse.de>
5109
5110 * common.opt (ftree-loop-if-convert-stores): Mark as preserved for
5111 backward compatibility.
5112 * doc/invoke.texi (ftree-loop-if-convert-stores): Remove.
5113 * tree-if-conv.c (pass_if_conversion::gate): Do not test
5114 flag_tree_loop_if_convert_stores.
5115 (pass_if_conversion::execute): Likewise.
5116
5117 2016-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5118
5119 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): Check for
5120 const_double code before calling aarch64_float_const_zero_rtx_p.
5121
5122 2016-11-17 Richard Biener <rguenther@suse.de>
5123
5124 PR tree-optimization/78306
5125 * ipa-inline-analysis.c (initialize_inline_failed): Do not
5126 inhibit inlining if function calls cilk_spawn.
5127 (can_inline_edge_p): Likewise.
5128
5129 2016-11-17 Richard Biener <rguenther@suse.de>
5130
5131 PR middle-end/78305
5132 * fold-const.c (negate_expr_p): Fix multiplication case.
5133
5134 2016-11-17 Chung-Lin Tang <cltang@codesourcery.com>
5135
5136 PR target/78357
5137 * config/nios2/nios2.c (nios2_init_libfuncs): Remove TARGET_LINUX_ABI
5138 condition.
5139 (TARGET_INIT_LIBFUNCS): Delete definition and...
5140 * config/nios2/linux.h (TARGET_INIT_LIBFUNCS): ...move to here, add
5141 comments.
5142
5143 2016-11-17 Krister Walfridsson <krister.walfridsson@gmail.com>
5144
5145 * config/netbsd-stdint.h: New.
5146 * config.gcc (i[34567]86-*-netbsd): Add netbsd-stdint.h to tm_file.
5147 (x86_64-*-netbsd*): Likewise.
5148
5149 2016-11-16 Andrew PInski <apinski@cavium.com>
5150
5151 * config/aarch64/aarch64.opt (mverbose-cost-dump): New option.
5152 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
5153 flag_aarch64_verbose_cost instead of checking for details dump.
5154 (aarch64_rtx_costs_wrapper): Likewise.
5155
5156 2016-11-16 Jakub Jelinek <jakub@redhat.com>
5157
5158 PR rtl-optimization/78378
5159 * combine.c (make_extraction): Use force_to_mode for non-{REG,MEM}
5160 inner only if pos is 0. Fix up formatting.
5161
5162 2016-11-17 Alan Modra <amodra@gmail.com>
5163
5164 PR rtl-optimization/78325
5165 PR rtl-optimization/70890
5166 * ira.c (combine_and_move_insns): Only remove REG_EQUIV notes
5167 for dead regno.
5168
5169 2016-11-16 Jason Merrill <jason@redhat.com>
5170
5171 * rtl.h: Declare gt_ggc_mx and gt_pch_nx.
5172
5173 2016-11-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5174 Richard Biener <rguenther@suse.de>
5175
5176 PR tree-optimization/77848
5177 * tree-if-conv.c (version_loop_for_if_conversion): When versioning
5178 an outer loop, only save basic block aux information for the inner
5179 loop.
5180 (versionable_outer_loop_p): New function.
5181 (tree_if_conversion): Version the outer loop instead of the inner
5182 one if the pattern will be recognized for outer-loop
5183 vectorization.
5184
5185 2016-11-16 Andrew Burgess <andrew.burgess@embecosm.com>
5186
5187 * gcc/bb-reorder.c: Remove 'toplev.h' include.
5188 (pass_partition_blocks::gate): No longer check
5189 user_defined_section_attribute, instead check the function decl
5190 for a section attribute.
5191 * gcc/c-family/c-attribs.c (handle_section_attribute): No longer
5192 set user_defined_section_attribute.
5193 * gcc/final.c (rest_of_handle_final): Likewise.
5194 * gcc/toplev.c: Remove definition of user_defined_section_attribute.
5195 * gcc/toplev.h: Remove declaration of
5196 user_defined_section_attribute.
5197
5198 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
5199
5200 * config/mips/mips.md (casesi_internal_mips16_<mode>):
5201 Explicitly switch between JR and JRC for the table jump. Adjust
5202 instruction count.
5203
5204 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
5205
5206 * config/mips/mips.md (casesi_internal_mips16_<mode>): Set
5207 `insn_count' to 11 rather than 16.
5208
5209 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
5210
5211 * config/mips/mips.md (casesi_internal_mips16_<mode>): Use the
5212 `ltu' rather than `leu' operation in the RTL pattern
5213
5214 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
5215
5216 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add
5217 missing <d> instruction prefixes throughout. Correct
5218 formatting.
5219
5220 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
5221
5222 * config/mips/mips.c (mips_output_jump): Output R_MICROMIPS_JALR
5223 rather than R_MIPS_JALR relocation in microMIPS code. Do not
5224 cancel short delay slots in PIC call relaxation.
5225
5226 2016-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
5227
5228 * config/arm/arm.md (arm_addsi3): Add alternative for addition of
5229 general register with general register or ARM constant into SP
5230 register.
5231
5232 2016-11-16 Jakub Jelinek <jakub@redhat.com>
5233
5234 PR fortran/78299
5235 * omp-low.c (expand_omp_for_static_nochunk): Don't assert
5236 that loop->header == body_bb if broken_loop.
5237
5238 2015-11-16 Wilco Dijkstra <wdijkstr@arm.com>
5239
5240 * tree-ssa-math-opts.c (bswap_replace): Remove test
5241 of SLOW_UNALIGNED_ACCESS.
5242
5243 2016-11-16 Alexander Monakov <amonakov@ispras.ru>
5244
5245 * config/nvptx/mkoffload.c (main): Check that either OpenACC or OpenMP
5246 is selected. Pass -mgomp to offload compiler in OpenMP case.
5247 * config/nvptx/nvptx-protos.h (nvptx_shuffle_kind): Move enum
5248 declaration from nvptx.c.
5249 (nvptx_gen_shuffle): Declare.
5250 (nvptx_output_set_softstack): Declare.
5251 * config/nvptx/nvptx.c (nvptx_shuffle_kind): Move to nvptx-protos.h.
5252 (need_softstack_decl): New variable.
5253 (need_unisimt_decl): New variable.
5254 (diagnose_openacc_conflict): New. Use it...
5255 (nvptx_option_override): ...here. Handle TARGET_GOMP.
5256 (nvptx_encode_section_info): Handle "shared" attribute.
5257 (write_as_kernel): Restrict to OpenACC target regions.
5258 (init_softstack_frame): New.
5259 (nvptx_init_unisimt_predicate): New.
5260 (write_omp_entry): New. Use it...
5261 (nvptx_declare_function_name): ...here to emit OpenMP target region
5262 entrypoints. Handle TARGET_SOFT_STACK. Call
5263 nvptx_init_unisimt_predicate.
5264 (nvptx_output_set_softstack): New.
5265 (nvptx_get_drap_rtx): Return %argp as the DRAP if needed.
5266 (nvptx_gen_shuffle): Export.
5267 (nvptx_output_call_insn): Handle COND_EXEC patterns. Emit instruction
5268 predicate.
5269 (nvptx_print_operand): Fix handling of instruction predicates.
5270 (nvptx_get_unisimt_master): New helper function.
5271 (nvptx_get_unisimt_predicate): Ditto.
5272 (nvptx_call_insn_is_syscall_p): Ditto.
5273 (nvptx_unisimt_handle_set): Ditto.
5274 (nvptx_reorg_uniform_simt): New. Transform code for -muniform-simt.
5275 (nvptx_reorg): Call nvptx_reorg_uniform_simt.
5276 (nvptx_handle_shared_attribute): New. Use it...
5277 (nvptx_attribute_table): ... here (new entry).
5278 (nvptx_record_offload_symbol): Handle NULL attributes.
5279 (nvptx_file_end): Handle need_softstack_decl and need_unisimt_decl.
5280 (nvptx_simt_vf): New.
5281 (TARGET_SIMT_VF): Define.
5282 * config/nvptx/nvptx.h (TARGET_CPU_CPP_BUILTINS): Define
5283 __nvptx_softstack or __nvptx_unisimt__ when -msoft-stack, or resp.
5284 -muniform-simt option is active.
5285 (STACK_SIZE_MODE): Define.
5286 (FIXED_REGISTERS): Adjust.
5287 (SOFTSTACK_SLOT_REGNUM): New.
5288 (SOFTSTACK_PREV_REGNUM): New.
5289 (REGISTER_NAMES): Adjust.
5290 (struct machine_function): New fields.
5291 * config/nvptx/nvptx.md (UNSPEC_SET_SOFTSTACK): New.
5292 (UNSPEC_VOTE_BALLOT): Ditto.
5293 (UNSPEC_LANEID): Ditto.
5294 (UNSPECV_NOUNROLL): Ditto.
5295 (atomic): New attribute.
5296 (predicable): New attribute. Generate predicated forms via
5297 define_cond_exec.
5298 (br_true): Mark as not predicable.
5299 (br_false): Ditto.
5300 (br_true_uni): Ditto.
5301 (br_false_uni): Ditto.
5302 (return): Ditto.
5303 (trap_if_true): Ditto.
5304 (trap_if_false): Ditto.
5305 (nvptx_fork): Ditto.
5306 (nvptx_forked): Ditto.
5307 (nvptx_joining): Ditto.
5308 (nvptx_join): Ditto.
5309 (nvptx_barsync): Ditto.
5310 (epilogue): Emit stack restore if TARGET_SOFT_STACK.
5311 (allocate_stack): Implement for TARGET_SOFT_STACK. Remove unused code.
5312 (allocate_stack_<mode>): Remove unused pattern.
5313 (set_softstack_insn): New pattern.
5314 (restore_stack_block): Handle for TARGET_SOFT_STACK.
5315 (nvptx_vote_ballot): New pattern.
5316 (omp_simt_lane): Ditto.
5317 (omp_simt_last_lane): Ditto.
5318 (omp_simt_ordered): Ditto.
5319 (omp_simt_vote_any): Ditto.
5320 (omp_simt_xchg_bfly): Ditto.
5321 (omp_simt_xchg_idx): Ditto.
5322 (nvptx_nounroll): Ditto.
5323 (atomic_compare_and_swap<mode>_1): Mark with atomic attribute.
5324 (atomic_exchange<mode>): Ditto.
5325 (atomic_fetch_add<mode>): Ditto.
5326 (atomic_fetch_addsf): Ditto.
5327 (atomic_fetch_<logic><mode>): Ditto.
5328 * config/nvptx/nvptx.opt (msoft-stack): New option.
5329 (muniform-simt): Ditto.
5330 (mgomp): Ditto.
5331 * config/nvptx/t-nvptx (MULTILIB_OPTIONS): New.
5332 * doc/extend.texi (Nvidia PTX Variable Attributes): New section.
5333 * doc/invoke.texi (msoft-stack): Document.
5334 (muniform-simt): Document
5335 (mgomp): Document.
5336 * doc/tm.texi: Regenerate.
5337 * doc/tm.texi.in (TARGET_SIMT_VF): New hook.
5338 * target.def: Define it.
5339 * target-insns.def (omp_simt_lane): New.
5340 (omp_simt_last_lane): New.
5341 (omp_simt_ordered): New.
5342 (omp_simt_vote_any): New.
5343 (omp_simt_xchg_bfly): New.
5344 (omp_simt_xchg_idx): New.
5345
5346 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
5347
5348 * config/mips/mips-protos.h (mips_set_text_contents_type): New
5349 prototype.
5350 * config/mips/mips.h (ASM_OUTPUT_BEFORE_CASE_LABEL): New macro.
5351 (ASM_OUTPUT_CASE_END): Likewise.
5352 * config/mips/mips.c (mips_set_text_contents_type): New function.
5353 (mips16_emit_constants): Record the pool's initial label number
5354 with the `consttable' insn. Emit a `consttable_end' insn at the end.
5355 (mips_final_prescan_insn): Call `mips_set_text_contents_type'
5356 for `consttable' insns.
5357 (mips_final_postscan_insn): Call `mips_set_text_contents_type'
5358 for `consttable_end' insns.
5359 * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE_END enum value.
5360 (consttable): Add operand.
5361 (consttable_end): New insn.
5362
5363 2016-11-16 Yuri Rumyantsev <ysrumyan@gmail.com>
5364
5365 * params.def (PARAM_VECT_EPILOGUES_NOMASK): New.
5366 * tree-if-conv.c (tree_if_conversion): Make public.
5367 * * tree-if-conv.h: New file.
5368 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences) Avoid
5369 dynamic alias checks for epilogues.
5370 * tree-vect-loop-manip.c (vect_do_peeling): Return created epilog.
5371 * tree-vect-loop.c: include tree-if-conv.h.
5372 (new_loop_vec_info): Add zeroing orig_loop_info field.
5373 (vect_analyze_loop_2): Don't try to enhance alignment for epilogues.
5374 (vect_analyze_loop): Add argument ORIG_LOOP_INFO which is not NULL
5375 if epilogue is vectorized, set up orig_loop_info field of loop_vinfo
5376 using passed argument.
5377 (vect_transform_loop): Check if created epilogue should be returned
5378 for further vectorization with less vf. If-convert epilogue if
5379 required. Print vectorization success for epilogue.
5380 * tree-vectorizer.c (vectorize_loops): Add epilogue vectorization
5381 if it is required, pass loop_vinfo produced during vectorization of
5382 loop body to vect_analyze_loop.
5383 * tree-vectorizer.h (struct _loop_vec_info): Add new field
5384 orig_loop_info.
5385 (LOOP_VINFO_ORIG_LOOP_INFO): New.
5386 (LOOP_VINFO_EPILOGUE_P): New.
5387 (LOOP_VINFO_ORIG_VECT_FACTOR): New.
5388 (vect_do_peeling): Change prototype to return epilogue.
5389 (vect_analyze_loop): Add argument of loop_vec_info type.
5390 (vect_transform_loop): Return created loop.
5391
5392 2016-11-16 Segher Boessenkool <segher@kernel.crashing.org>
5393
5394 * config/rs6000/rs6000.c (rs6000_components_for_bb): Mark the LR
5395 component as used also if LR_REGNO is a live input to the bb.
5396 * df-scan.c (df_get_entry_block_def_set): Return immediately after
5397 clearing the set if DF_SCAN_EMPTY_ENTRY_EXIT is set.
5398 (df_get_exit_block_use_set): Ditto.
5399 * df.h (df_scan_flags): New enum.
5400 * shrink-wrap.c (try_shrink_wrapping_separate): Set
5401 DF_SCAN_EMPTY_ENTRY_EXIT in df_scan->local_flags, and call
5402 df_update_entry_block_defs and df_update_exit_block_uses
5403 at the start; clear the flag and call those functions at the end.
5404
5405 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5406 Alan Hayward <alan.hayward@arm.com>
5407 David Sherwood <david.sherwood@arm.com>
5408
5409 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Set
5410 nb_iterations to the number of latch iterations rather than the
5411 number of loop iterations.
5412
5413 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5414 Alan Hayward <alan.hayward@arm.com>
5415 David Sherwood <david.sherwood@arm.com>
5416
5417 * combine.c (maybe_swap_commutative_operands): New function.
5418 (combine_simplify_rtx): Use it.
5419 (change_zero_ext): Likewise.
5420 (make_compound_operation_int): New function, split out of...
5421 (make_compound_operation): ...here. Use
5422 maybe_swap_commutative_operands for both.
5423
5424 2016-11-16 Richard Earnshaw <rearnsha@arm.com>
5425
5426 * arm/arm-fpus.def (vfpv2): New FPU, currently an alias for 'vfp'.
5427 (neon-vfpv3): New FPU, currently an alias for 'neon'.
5428 * arm/arm-tables.opt: Regenerated.
5429 * arm/t-aprofile (MULTILIB_REUSE): Add reuse rules for vfpv2 and
5430 neon-vfpv3.
5431 * doc/invoke.texi (ARM: -mfpu): Document new options. Note that 'vfp'
5432 and 'neon' are aliases for specific implementations.
5433
5434 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5435 Alan Hayward <alan.hayward@arm.com>
5436 David Sherwood <david.sherwood@arm.com>
5437
5438 * optabs.c (vector_compare_rtx): Add a cmp_mode parameter
5439 and use it in the final call to gen_rtx_fmt_ee.
5440 (expand_vec_cond_expr): Update accordingly.
5441 (expand_vec_cmp_expr): Likewise.
5442
5443 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5444 Alan Hayward <alan.hayward@arm.com>
5445 David Sherwood <david.sherwood@arm.com>
5446
5447 * cprop.c (local_cprop_find_used_regs): Use df_read_modify_subreg_p.
5448
5449 2016-11-16 Richard Biener <rguenther@suse.de>
5450
5451 PR middle-end/78333
5452 * gimplify.c (gimplify_function_tree): Do not instrument
5453 GNU extern inline functions.
5454
5455 2016-11-16 Martin Liska <mliska@suse.cz>
5456
5457 PR sanitizer/78270
5458 * gimplify.c (gimplify_switch_expr): Always save previous
5459 gimplify_ctxp->live_switch_vars.
5460
5461 2016-11-16 Andrew Burgess <andrew.burgess@embecosm.com>
5462
5463 * config/arc/arc.md (movb peephole2): New peephole2 to merge two
5464 zero_extract operations to allow a movb to occur.
5465 * testsuite/gcc.target/arc/movb-1.c: Update little endian arc results.
5466 * testsuite/gcc.target/arc/movb-2.c: Likewise.
5467 * testsuite/gcc.target/arc/movb-5.c: Likewise.
5468 * testsuite/gcc.target/arc/movh_cl-1.c: Extend test to cover
5469 little endian arc.
5470
5471 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5472 Alan Hayward <alan.hayward@arm.com>
5473 David Sherwood <david.sherwood@arm.com>
5474
5475 * expr.c (emit_group_load_1): Tighten check for whether an
5476 access involves only one operand of a CONCAT. Use extract_bit_field
5477 for constants if the bit range does span the whole operand.
5478
5479 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5480 Alan Hayward <alan.hayward@arm.com>
5481 David Sherwood <david.sherwood@arm.com>
5482
5483 * rtlanal.c (rtx_addr_can_trap_p_1): Handle unknown sizes.
5484
5485 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5486 Alan Hayward <alan.hayward@arm.com>
5487 David Sherwood <david.sherwood@arm.com>
5488
5489 * tree-vect-loop.c (vect_transform_loop): Protect the updates of
5490 all three iteration counts with an any_* test. Use a single update
5491 for each count. Fix the calculation of nb_iterations_estimate.
5492
5493 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5494
5495 * config/pdp11/pdp11.c: Include dbxout.h.
5496
5497 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5498
5499 * config/arc/arc.c (arc_loop_hazard): Add missing brackets.
5500
5501 2016-11-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5502
5503 PR target/78364
5504 * config/arm/arm.md (*extv_reg): Restrict operands 2 and 3 to the
5505 proper ranges for an SBFX instruction.
5506 (extzv_t2): Likewise for UBFX.
5507
5508 2016-11-16 Richard Biener <rguenther@suse.de>
5509
5510 PR tree-optimization/78348
5511 * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMMOVE.
5512 (generate_memcpy_builtin): Honor PKIND_MEMCPY on the partition.
5513 (classify_partition): Set PKIND_MEMCPY if dependence analysis
5514 revealed no dependency, PKIND_MEMMOVE otherwise.
5515
5516 2016-11-16 Jakub Jelinek <jakub@redhat.com>
5517
5518 PR sanitizer/77823
5519 * ubsan.c (ubsan_build_overflow_builtin): Add DATAP argument, if
5520 it points to non-NULL tree, use it instead of ubsan_create_data.
5521 (instrument_si_overflow): Handle vector signed integer overflow
5522 checking.
5523 * ubsan.h (ubsan_build_overflow_builtin): Add DATAP argument.
5524 * tree-vrp.c (simplify_internal_call_using_ranges): Punt for
5525 vector IFN_UBSAN_CHECK_*.
5526 * internal-fn.c (expand_addsub_overflow): Add DATAP argument,
5527 pass it through to ubsan_build_overflow_builtin.
5528 (expand_neg_overflow, expand_mul_overflow): Likewise.
5529 (expand_vector_ubsan_overflow): New function.
5530 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB,
5531 expand_UBSAN_CHECK_MUL): Use tit for vector arithmetics.
5532 (expand_arith_overflow): Adjust expand_*_overflow callers.
5533
5534 2016-11-16 Matthias Klose <doko@ubuntu.com>
5535
5536 * doc/install.texi: Remove references to java/libjava.
5537
5538 2016-11-16 Kugan Vivekanandarajah <kuganv@linaro.org>
5539
5540 * tree-ssa-coalesce.c (register_default_def): Remove
5541 register_ssa_partition.
5542 (create_outofssa_var_map): Likewise.
5543 * tree-ssa-live.c (register_ssa_partition_check): Remove.
5544 * tree-ssa-live.h (register_ssa_partition): Likewise.
5545
5546 2016-11-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
5547
5548 * genattrtab.c (attr_rtx_1): Avoid allocating new rtx objects.
5549 Clear ATTR_CURR_SIMPLIFIED_P for re-used binary rtx objects.
5550 Use DEF_ATTR_STRING for string arguments. Use RTL_HASH for
5551 integer arguments. Only set ATTR_PERMANENT_P on newly hashed
5552 rtx when all sub-rtx are also permanent.
5553 (attr_eq): Simplify.
5554 (attr_copy_rtx): Remove.
5555 (make_canonical, get_attr_value): Use attr_equal_p.
5556 (copy_boolean): Rehash NOT.
5557 (simplify_test_exp_in_temp,
5558 optimize_attrs): Remove call to attr_copy_rtx.
5559 (attr_alt_intersection, attr_alt_union,
5560 attr_alt_complement, mk_attr_alt): Rehash EQ_ATTR_ALT.
5561 (make_automaton_attrs): Use attr_eq.
5562
5563 2016-11-15 Matthias Klose <doko@ubuntu.com>
5564
5565 * doc/install.texi: Remove references to java/libjava.
5566 * doc/sourcebuild.texi: Likewise.
5567 * doc/invoke.texi: Likewise.
5568 * doc/standards.texi: Likewise.
5569
5570 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5571 Alan Hayward <alan.hayward@arm.com>
5572 David Sherwood <david.sherwood@arm.com>
5573
5574 * config/i386/i386.h (INCOMING_RETURN_ADDR_RTX): Use Pmode instead
5575 of VOIDmode.
5576 * config/ia64/ia64.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5577 * config/iq2000/iq2000.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5578 * config/m68k/m68k.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5579 * config/microblaze/microblaze.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5580 * config/mips/mips.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5581 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5582 * config/nios2/nios2.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5583
5584 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5585 Alan Hayward <alan.hayward@arm.com>
5586 David Sherwood <david.sherwood@arm.com>
5587
5588 * dce.c (check_argument_store): Pass the size instead of
5589 the memory reference.
5590 (find_call_stack_args): Pass MEM_SIZE to check_argument_store.
5591
5592 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5593 Alan Hayward <alan.hayward@arm.com>
5594 David Sherwood <david.sherwood@arm.com>
5595
5596 * alias.c (canon_rtx): Use simplify_gen_binary.
5597
5598 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5599 Alan Hayward <alan.hayward@arm.com>
5600 David Sherwood <david.sherwood@arm.com>
5601
5602 * rtl.h (load_extend_op): Declare.
5603 * rtlanal.c (load_extend_op): New function.
5604 (nonzero_bits1): Use it.
5605 (num_sign_bit_copies1): Likewise.
5606 * cse.c (cse_insn): Likewise.
5607 * fold-const.c (fold_single_bit_test): Likewise.
5608 (fold_unary_loc): Likewise.
5609 * fwprop.c (free_load_extend): Likewise.
5610 * postreload.c (reload_cse_simplify_set): Likewise.
5611 (reload_cse_simplify_operands): Likewise.
5612 * combine.c (try_combine): Likewise.
5613 (simplify_set): Likewise. Remove redundant SUBREG_BYTE and
5614 subreg_lowpart_p checks.
5615
5616 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5617 Alan Hayward <alan.hayward@arm.com>
5618 David Sherwood <david.sherwood@arm.com>
5619
5620 * combine.c (simplify_shift_const_1): Use the number of bits
5621 in the inner mode to determine the range of the shift.
5622 When handling shifts of vectors, skip any rules that apply
5623 only to scalars.
5624
5625 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5626 Alan Hayward <alan.hayward@arm.com>
5627 David Sherwood <david.sherwood@arm.com>
5628
5629 * rtlanal.c (num_sign_bit_copies1): Calculate bitwidth after
5630 handling VOIDmode.
5631
5632 2016-11-15 Matthias Klose <doko@ubuntu.com>
5633
5634 * doc/install.texi: Remove references to gcj/libjava.
5635 * doc/invoke.texi: Likewise.
5636
5637 2016-11-15 Jeff Law <law@redhat.com>
5638
5639 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove unneeded
5640 parameter. Callers changed.
5641 (check-subpath_and_update_thread_path): Extracted from
5642 fsm_find_control_statement_thread_paths.
5643 (handle_phi, handle_assignment, handle_assignment_p): Likewise.
5644 (handle_phi, handle_assignment): Allow any constant node, not
5645 just INTEGER_CST.
5646
5647 2016-11-15 Claudiu Zissulescu <claziss@synopsys.com>
5648
5649 * config/arc/arc-arch.h: New file.
5650 * config/arc/arc-arches.def: Likewise.
5651 * config/arc/arc-cpus.def: Likewise.
5652 * config/arc/arc-options.def: Likewise.
5653 * config/arc/t-multilib: Likewise.
5654 * config/arc/genmultilib.awk: Likewise.
5655 * config/arc/genoptions.awk: Likewise.
5656 * config/arc/arc-tables.opt: Likewise.
5657 * config/arc/driver-arc.c: Likewise.
5658 * testsuite/gcc.target/arc/nps400-cpu-flag.c: Likewise.
5659 * common/config/arc/arc-common.c (arc_handle_option): Trace
5660 toggled options.
5661 * config.gcc (arc*-*-*): Add arc-tables.opt to arc's extra
5662 options; check for supported cpu against arc-cpus.def file.
5663 (arc*-*-elf*, arc*-*-linux-uclibc*): Use new make fragment; define
5664 TARGET_CPU_BUILD macro; add driver-arc.o as an extra object.
5665 * config/arc/arc-c.def: Add emacs local variables.
5666 * config/arc/arc-opts.h (processor_type): Use arc-cpus.def file.
5667 (FPU_FPUS, FPU_FPUD, FPU_FPUDA, FPU_FPUDA_DIV, FPU_FPUDA_FMA)
5668 (FPU_FPUDA_ALL, FPU_FPUS_DIV, FPU_FPUS_FMA, FPU_FPUS_ALL)
5669 (FPU_FPUD_DIV, FPU_FPUD_FMA, FPU_FPUD_ALL): New defines.
5670 (DEFAULT_arc_fpu_build): Define.
5671 (DEFAULT_arc_mpy_option): Define.
5672 * config/arc/arc-protos.h (arc_init): Delete.
5673 * config/arc/arc.c (arc_cpu_name): New variable.
5674 (arc_selected_cpu, arc_selected_arch, arc_arcem, arc_archs)
5675 (arc_arc700, arc_arc600, arc_arc601): New variable.
5676 (arc_init): Add static; remove selection of default tune value,
5677 cleanup obsolete error messages.
5678 (arc_override_options): Make use of .def files for selecting the
5679 right cpu and option configurations.
5680 * config/arc/arc.h (stdbool.h): Include.
5681 (TARGET_CPU_DEFAULT): Define.
5682 (CPP_SPEC): Remove mcpu=NPS400 handling.
5683 (arc_cpu_to_as): Declare.
5684 (EXTRA_SPEC_FUNCTIONS): Define.
5685 (OPTION_DEFAULT_SPECS): Likewise.
5686 (ASM_DEFAULT): Remove.
5687 (ASM_SPEC): Use arc_cpu_to_as.
5688 (DRIVER_SELF_SPECS): Remove deprecated options.
5689 (arc_base_cpu): Declare.
5690 (TARGET_ARC600, TARGET_ARC601, TARGET_ARC700, TARGET_EM)
5691 (TARGET_HS, TARGET_V2, TARGET_ARC600): Make them use arc_base_cpu
5692 variable.
5693 (MULTILIB_DEFAULTS): Use ARC_MULTILIB_CPU_DEFAULT.
5694 * config/arc/arc.md (attr_cpu): Remove.
5695 * config/arc/arc.opt (mno-mpy): Deprecate.
5696 (mcpu=ARC600, mcpu=ARC601, mcpu=ARC700, mcpu=NPS400, mcpu=ARCEM)
5697 (mcpu=ARCHS): Remove.
5698 (mcrc, mdsp-packa, mdvbf, mmac-d16, mmac-24, mtelephony, mrtsc):
5699 Deprecate.
5700 (mbarrel_shifte, mspfp_, mdpfp_, mdsp_pack, mmac_): Remove.
5701 (arc_fpu): Use new defines.
5702 (mpy-option): Change to use numeric or string like inputs.
5703 * config/arc/t-arc (driver-arc.o): New target.
5704 (arc-cpus, t-multilib, arc-tables.opt): Likewise.
5705 * config/arc/t-arc-newlib: Delete.
5706 * config/arc/t-arc-uClibc: Renamed to t-uClibc.
5707 * doc/invoke.texi (ARC): Update arc options.
5708
5709 2016-11-15 Maciej W. Rozycki <macro@imgtec.com>
5710
5711 * config/mips/mips.c (mips16_emit_constants): Emit `consttable'
5712 insn at the beginning of the constant pool.
5713 (mips_insert_insn_pseudos): New function.
5714 (mips_machine_reorg2): Call it.
5715 * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE and
5716 UNSPEC_INSN_PSEUDO enum values.
5717 (insn_pseudo, consttable): New insns.
5718
5719 2016-11-15 Michael Matz <matz@suse.de>
5720
5721 PR missed-optimization/77881
5722 * combine.c (simplify_comparison): Remove useless subregs
5723 also inside the loop, not just after it.
5724 (make_compound_operation): Recognize some subregs as being
5725 masking as well.
5726
5727 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5728 Alan Hayward <alan.hayward@arm.com>
5729 David Sherwood <david.sherwood@arm.com>
5730
5731 * dwarf2out.c (mem_loc_descriptor): Fix GET_MODE_CLASS/
5732 GET_MODE_SIZE typo.
5733
5734 2016-11-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5735
5736 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Add support
5737 for using xxinsertw and vinsert{b,h} on ISA 3.0.
5738
5739 * config/rs6000/vsx.md (vsx_extract_<mode>): Update comment.
5740 (vsx_set_<mode>_p9): New insn to generate xxinsertw and
5741 vinsert{b,h} on ISA 3.0.
5742
5743 2016-11-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
5744
5745 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
5746 and cmpnop in two steps: first the ones not accessed in original gimple
5747 expression in a endian independent way and then the ones not accessed
5748 in the final result in an endian-specific way.
5749 (bswap_replace): Stop doing big endian adjustment.
5750
5751 2016-11-14 Uros Bizjak <ubizjak@gmail.com>
5752
5753 * config/i386/i386.md (*andndi3_doubleword): Merge operand constraints.
5754 (*ashl<mode>3_doubleword): Ditto.
5755
5756 2016-11-14 Martin Liska <mliska@suse.cz>
5757
5758 * tree-ssa-dse.c (dse_optimize_stmt): Remove quotes and extra new line.
5759
5760 2016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
5761 Richard Biener <rguenther@suse.de>
5762
5763 * doc/invoke.texi (fgimple): Document.
5764 * dumpfile.h (TDF_GIMPLE): Add.
5765 * dumpfile.c (dump_options): Add gimple.
5766 * gimple-pretty-print.c (dump_gimple_switch): Adjust dump
5767 for TDF_GIMPLE.
5768 (dump_gimple_label): Likewise.
5769 (dump_gimple_phi): Likewise.
5770 (dump_gimple_bb_header): Likewise.
5771 (dump_phi_nodes): Likewise.
5772 (pp_cfg_jump): Likewise. Pass in dump flags.
5773 (dump_implicit_edges): Adjust.
5774 * passes.c (pass_init_dump_file): Do not dump function header
5775 for TDF_GIMPLE.
5776 * tree-cfg.c (dump_function_to_file): Dump function return type
5777 and __GIMPLE keyword for TDF_GIMPLE. Change guard for dumping
5778 GIMPLE stmts.
5779 * tree-pretty-print.c (dump_decl_name): Adjust dump for TDF_GIMPLE.
5780 (dump_generic_node): Likewise.
5781 * function.h (struct function): Add pass_startwith member.
5782 * passes.c (execute_one_pass): Implement startwith.
5783 * tree-ssanames.c (make_ssa_name_fn): New argument, check for version
5784 and assign proper version for parsed ssa names.
5785 * tree-ssanames.h (make_ssa_name_fn): Add new argument to the function.
5786 * internal-fn.c (expand_PHI): New function.
5787 * internal-fn.h (expand_PHI): Declared here.
5788 * internal-fn.def: New defination for PHI.
5789 * tree-cfg.c (lower_phi_internal_fn): New function.
5790 (build_gimple_cfg): Call it.
5791 (verify_gimple_call): Condition for passing label as arg in internal
5792 function PHI.
5793 * tree-into-ssa.c (rewrite_add_phi_arguments): Handle already
5794 present PHIs with arguments.
5795
5796 2016-11-14 Martin Liska <mliska@suse.cz>
5797
5798 PR bootstrap/78069
5799 * common.opt: Add prefer-atomic as a new enum value for
5800 -fprofile-update.
5801 * coretypes.h: Likewise.
5802 * doc/invoke.texi: Document the new option value.
5803 * gcc.c: Replace atomic with prefer-atomic. Remove warning.
5804 * tree-profile.c (tree_profiling): Select default value
5805 of -fprofile-update when 'prefer-atomic' is selected.
5806
5807 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
5808
5809 * config/arm/cortex-a57.md (cortex_a57_alu): Move extend here, bfm...
5810 (cortex_a57_alu_shift): ...here.
5811
5812 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
5813
5814 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3)
5815 Use bfx attribute.
5816 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
5817 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
5818 (<optab>si3_insn_uxtw): Likewise.
5819 (<optab><mode>3_insn): Likewise.
5820 (<ANY_EXTEND:optab><GPI:mode>_ashl<SHORT:mode>): Likewise.
5821 (zero_extend<GPI:mode>_lshr<SHORT:mode>): Likewise.
5822 (extend<GPI:mode>_ashr<SHORT:mode>): Likewise.
5823 (<optab><mode>): Likewise.
5824 (insv<mode>): Likewise.
5825 (andim_ashift<mode>_bfiz): Likewise.
5826 * config/aarch64/thunderx.md (thunderx_shift): Add bfx.
5827 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
5828 * config/arm/cortex-a57.md (cortex_a57_alu): Add bfx.
5829 * config/arm/exynos-m1.md (exynos_m1_alu): Add bfx.
5830 (exynos_m1_alu_p): Likewise.
5831 * config/arm/types.md: Add bfx.
5832 * config/arm/xgene1.md (xgene1_bfm): Add bfx.
5833
5834 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
5835
5836 * config/aarch64/aarch64.c (cortexa57_vector_cost):
5837 Change vec_stmt_cost, vec_align_load_cost and vec_unalign_load_cost.
5838
5839 2016-11-14 Richard Biener <rguenther@suse.de>
5840
5841 PR tree-optimization/78312
5842 * gimple-ssa-backprop.c (backprop::prepare_change): Reset
5843 flow-sensitive info.
5844
5845 2016-11-14 Georg-Johann Lay <avr@gjlay.de>
5846
5847 PR target/78093
5848 * doc/invoke.texi (AVR Options) [-mabsdata]: Document new option.
5849 * config/avr/avr.opt (-mabsdata): New option.
5850 * config/avr/avr-arch.h (avr_device_specific_features): Add AVR_ISA_LDS.
5851 * config/avr/avr.c (avr_encode_section_info) [AVR_TINY]: If
5852 -mabsdata & symbol is not progmem, tag as AVR_SYMBOL_FLAG_TINY_ABSDATA.
5853 * config/avr/avr-mcus.def (attiny4/5/9/10/20): Use AVR_ISA_LDS.
5854 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Print cc1_absdata
5855 spec depending on AVR_ISA_LDS.
5856 * config/avr/specs.h (CC1_SPEC): Enhanced by cc1_absdata spec.
5857
5858 2016-11-13 Jakub Jelinek <jakub@redhat.com>
5859
5860 * match.pd: Don't try to compare addresses of variables with
5861 DECL_VALUE_EXPR.
5862
5863 2016-11-13 Kugan Vivekanandarajah <kuganv@linaro.org>
5864
5865 * ipa-cp.c (ipa_get_jf_pass_through_result): Skip unary expressions.
5866 (propagate_vr_accross_jump_function): Handle unary expressions.
5867 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
5868 (load_from_param_1): New.
5869 (load_from_unmodified_param): Factor common part into load_from_param_1.
5870 (load_from_param): New.
5871 (compute_complex_assign_jump_func): Handle unary expressions.
5872 (update_jump_functions_after_inlining): Likewise.
5873 (ipa_write_jump_function): Likewise.
5874 (ipa_read_jump_function): Likewise.
5875
5876 2016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5877
5878 PR c/35503
5879 * doc/invoke.texi: Document Wrestrict.
5880 * pretty-print.c (pp_format): Add case for "Z" specifier.
5881 (test_pp_format): Test "Z" specifier.
5882
5883 2016-11-13 Eric Botcazou <ebotcazou@adacore.com>
5884
5885 * ipa-icf.c (sem_function::merge): Do not create a wrapper also if the
5886 original function needs a static chain.
5887
5888 2016-11-13 David Edelsohn <dje.gcc@gmail.com>
5889
5890 PR target/78336
5891 * config/rs6000/rs6000.c (rs6000_asm_weaken_decl): Protect
5892 ASM_OUTPUT_DEF.
5893
5894 2016-11-12 Segher Boessenkool <segher@kernel.crashing.org>
5895
5896 PR target/77957
5897 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
5898 return early if !optional_tbtab.
5899
5900 2016-11-11 Eric Botcazou <ebotcazou@adacore.com>
5901
5902 PR rtl-optimization/59461
5903 * doc/rtl.texi (paradoxical subregs): Add missing word.
5904 * combine.c (reg_nonzero_bits_for_combine): Do not discard results
5905 in modes with precision larger than that of last_set_mode.
5906 * rtlanal.c (nonzero_bits1) <SUBREG>: If WORD_REGISTER_OPERATIONS is
5907 set and LOAD_EXTEND_OP is appropriate, propagate results from inner
5908 REGs to paradoxical SUBREGs.
5909 (num_sign_bit_copies1) <SUBREG>: Likewise. Check that the mode is not
5910 larger than a word before invoking LOAD_EXTEND_OP on it.
5911
5912 2016-11-11 Michael Meissner <meissner@linux.vnet.ibm.com>
5913
5914 PR target/78243
5915 * config/rs6000/vsx.md (vsx_extract_<mode>_p9): Correct the
5916 element order for little endian ordering.
5917
5918 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Use
5919 VECTOR_ELT_ORDER_BIG and not BYTES_BIG_ENDIAN to adjust element
5920 number.
5921
5922 2016-11-11 Uros Bizjak <ubizjak@gmail.com>
5923
5924 PR target/78310
5925 * config/i386/i386.md (rotate to rotatex splitter): Avoid overflow
5926 when calculating operand 2.
5927 (rotate to rotatex zext splitter): Ditto.
5928
5929 2016-11-11 Jeff Law <law@redhat.com>
5930
5931 * gimple-ssa-isolate-paths.c (is_divmod_with_given_divisor): New
5932 function.
5933 (stmt_uses_name_in_undefined_way): New function, extracted from
5934 find_implicit_erroneous_behavior and extended for div/mod case.
5935 (stmt_uses_0_or_null_in_undefined_way): New function, extracted from
5936 find_explicit_erroneous_behavior and extended for div/mod case.
5937 (find_implicit_erroneous_behavior): Use new helper function.
5938 (find_explicit_erroneous_behavior): Use new helper function.
5939
5940 2016-11-11 Richard Biener <rguenther@suse.de>
5941
5942 PR tree-optimization/71575
5943 * graphite-isl-ast-to-gimple.c (copy_cond_phi_nodes): Remove
5944 bogus assert.
5945
5946 2016-11-11 Richard Biener <rguenther@suse.de>
5947
5948 PR middle-end/78295
5949 * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
5950 about uninitialized destination arg of BIT_INSERT_EXPR.
5951
5952 2016-11-10 Sandra Loosemore <sandra@codesourcery.com>
5953
5954 PR c/37998
5955 * doc/invoke.texi (Code Gen Options) [-fno-common]: Use correct
5956 terminology. Expand to remove ambiguity.
5957
5958 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
5959
5960 PR rtl-optimization/78232
5961 * combine.c (try_combine): Add a big comment about why reusing i2dest
5962 is undesirable.
5963 (change_zero_ext): Do not call simplify_gen_binary, do the
5964 simplifications manually.
5965
5966 2016-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
5967
5968 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If ISA 3.0,
5969 enable HImode and QImode to go in vector registers by default if
5970 the -mvsx-small-integer option is enabled.
5971 (rs6000_secondary_reload_simple_move): Likewise.
5972 (rs6000_preferred_reload_class): Don't force integer constants to
5973 be loaded into vector registers that we can easily make into
5974 memory (or being created in the GPRs and moved over with direct move).
5975 * config/rs6000/vsx.md (UNSPEC_P9_MEMORY): Delete, no longer used.
5976 (vsx_extract_<mode>): Rework V4SImode, V8HImode, and V16QImode
5977 vector extraction on ISA 3.0 when the scalar integer can be
5978 allocated in vector registers. Generate the VEC_SELECT directy,
5979 and don't use UNSPEC's to avoid having the scalar type in a vector
5980 register. Make the expander target registers, and let the
5981 combiner fold in results storing to memory, if the machine
5982 supports stores.
5983 (vsx_extract_<mode>_di): Likewise.
5984 (vsx_extract_<mode>_p9): Likewise.
5985 (vsx_extract_<mode>_di_p9): Likewise.
5986 (vsx_extract_<mode>_store_p9): Likewise.
5987 (vsx_extract_si): Likewise.
5988 (vsx_extract_<mode>_p8): Likewise.
5989 (p9_lxsi<wd>zx): Delete, no longer used.
5990 (p9_stxsi<wd>x): Likewise.
5991 * config/rs6000/rs6000.md (INT_ISA3): New mode iterator for
5992 integers in vector registers for ISA 3.0.
5993 (QHI): Update comment.
5994 (zero_extendqi<mode>2): Add support for ISA 3.0 scalar load or
5995 vector extract instructions in sign/zero extend.
5996 (zero_extendhi<mode>): Likewise.
5997 (extendqi<mode>): Likewise.
5998 (extendhi<mode>2): Likewise.
5999 (HImode splitter for load/sign extend in vector register): Likewise.
6000 (float<QHI:mode><FP_ISA3:mode>2): Eliminate old method of
6001 optimizing floating point conversions to/from small data types and
6002 rewrite it to support QImode/HImode being allowed in vector
6003 registers on ISA 3.0.
6004 (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
6005 (floatuns<QHI:mode><FP_ISA3:mode>2): Likewise.
6006 (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
6007 (fix_trunc<SFDF:mode><QHI:mode>2): Likewise.
6008 (fix_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
6009 (fixuns_trunc<SFDF:mode><QHI:mode>2): Likewise.
6010 (fixuns_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
6011 VSPLITISW on ISA 2.07.
6012 (movhi_internal): Combine movhi_internal and movqi_internal into
6013 one mov<mode>_internal with an iterator. Add support for QImode
6014 and HImode being allowed in vector registers. Make large number
6015 of attributes and constraints easier to read.
6016 (movqi_internal): Likewise.
6017 (mov<mode>_internal): Likewise.
6018 (movdi_internal64): Fix constraint to allow loading -16..15 with
6019 VSPLITISW on ISA 2.07.
6020 (integer XXSPLTIB splitter): Add support for QI, HI, and SImode as
6021 well as DImode.
6022
6023 2016-11-10 Pat Haugen <pthaugen@us.ibm.com>
6024
6025 PR rtl-optimization/78241
6026 * loop-unroll.c (unroll_loop_runtime_iterations): Don't adjust 'niter',
6027 but emit initial peel copy if niter expr is not reliable.
6028
6029 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
6030
6031 * dwarf2cfi.c (dump_cfi_row): Add forward declaration.
6032 (maybe_record_trace_start): If the CFI is different on the new and
6033 old paths, print out both to the dump file before ICEing.
6034
6035 2016-11-10 Vladimir Makarov <vmakarov@redhat.com>
6036
6037 * target.def (additional_allocno_class_p): New.
6038 * hooks.h (hook_bool_reg_class_t_false): New prototype.
6039 * hooks.c (hook_bool_reg_class_t_false): New.
6040 * ira.c (setup_allocno_and_important_classes): Use the new hook.
6041 * doc/tm.texi.in (TARGET_ADDITIONAL_ALLOCNO_CLASS_P): Add it.
6042 * doc/tm.texi: Update.
6043
6044 2016-11-10 Jason Merrill <jason@redhat.com>
6045
6046 * gengtype.c (new_structure): Append to structures list.
6047 (find_structure): Likewise.
6048
6049 2016-11-10 Jim Wilson <jim.wilson@linaro.org>
6050
6051 * tree-loop-distribution.c (pg_add_dependence_edges): Return 2 if
6052 this_dir is 2. Check for this_dir non-zero before dir != this_dir
6053 check.
6054
6055 2016-11-10 Jakub Jelinek <jakub@redhat.com>
6056
6057 * omp-low.c (lower_omp_target): Fix up argument to is_reference.
6058 (expand_omp_ordered_sink): Handle TREE_PURPOSE of deps being
6059 TRUNC_DIV_EXPR.
6060 * gimplify.c (gimplify_scan_omp_clauses): Likewise. Set
6061 ctx->target_map_scalars_firstprivate on OMP_TARGET even for Fortran.
6062 Remove omp_no_lastprivate callers. Propagate lastprivate on combined
6063 teams distribute parallel for simd even to distribute and teams
6064 construct. For OMP_CLAUSE_DEPEND add missing break at the end of
6065 OMP_CLAUSE_DEPEND_SINK case.
6066 (omp_notice_variable): Use lang_hooks.decls.omp_scalar_p.
6067 (omp_no_lastprivate): Removed.
6068 (gimplify_adjust_omp_clauses): Remove omp_no_lastprivate callers.
6069 (gimplify_omp_for): Likewise.
6070 (computable_teams_clause): Fail for automatic vars from current
6071 function not yet seen in bind expr.
6072 * langhooks.c (lhd_omp_scalar_p): New function.
6073 * langhooks.h (struct lang_hooks_for_decls): Add omp_scalar_p.
6074 * varpool.c (varpool_node::get_create): Set node->offloading
6075 even for DECL_EXTERNAL decls.
6076 * langhooks-def.h (lhd_omp_scalar_p): New prototype.
6077 (LANG_HOOKS_OMP_SCALAR_P): Define.
6078 (LANG_HOOKS_DECLS): Use it.
6079
6080 2016-11-10 Martin Liska <mliska@suse.cz>
6081
6082 PR sanitizer/78270
6083 * gimplify.c (gimplify_switch_expr): Create live_switch_vars
6084 only when SWITCH_BODY is a BIND_EXPR.
6085
6086 2016-11-10 Pierre-Marie de Rodat <derodat@adacore.com>
6087
6088 PR debug/78112
6089 * dwarf2out.c (dwarf2out_early_global_decl): Call dwarf2out_decl
6090 on the context only when it has no DIE yet.
6091
6092 2016-11-10 Richard Earnshaw <rearnsha@arm.com>
6093
6094 * arm.h (target_cpus): Delete.
6095 * arm-opts.h (enum processor_type): Prefix entires with TARGET_CPU_.
6096 * arm.c (all_cores): Prefix IDENT with TARGET_CPU_.
6097 (all_architectures): Likewise.
6098 (arm_option_override): Adjust use of CPU enums.
6099 (arm_sched_reorder): Likewise.
6100 * vfp.md (movdi_vfp, movdi_vfp_cortexa8): Likewise.
6101 * arm.opt (mcpu, mtune): Adjust use of CPU enums.
6102 * arm/genopt.sh (processor_type): Prefix enumeration entries with
6103 TARGET_CPU_.
6104 * arm-tables.opt: Regenerated.
6105
6106 2016-11-10 Siddhesh Poyarekar <siddhesh.poyarekar@linaro.org>
6107
6108 * config/aarch64/aarch64-cores.def (qdf24xx): Update part number.
6109 (falkor): New core.
6110 * config/aarch64/aarch64-tune.md: Regenerated.
6111 * config/arm/arm-cores.def (falkor): New core.
6112 * config/arm/arm-tables.opt: Regenerated.
6113 * config/arm/arm-tune.md: Regenerated.
6114 * config/arm/bpabi.h (BE8_LINK_SPEC): Add falkor support.
6115 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
6116 * doc/invoke.texi (AArch64 Options/-mtune): Document it.
6117 (ARM Options/-mtune): Likewise.
6118
6119 2016-11-10 Kugan Vivekanandarajah <kuganv@linaro.org>
6120
6121 Revert
6122 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
6123
6124 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
6125 (propagate_vr_accross_jump_function): Likewise.
6126 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
6127 (load_from_param_1): New.
6128 (load_from_unmodified_param): Factor common part into load_from_param_1.
6129 (load_from_param): New.
6130 (compute_complex_assign_jump_func): Handle unary expressions.
6131 (ipa_write_jump_function): Likewise.
6132 (ipa_read_jump_function): Likewise.
6133
6134 2016-11-09 Segher Boessenkool <segher@kernel.crashing.org>
6135
6136 * simplify-rtx.c (simplify_binary_operation_1): Simplify
6137 (xor (and (xor A B) C) B) to (ior (and A C) (and B ~C)) and
6138 (xor (and (xor A B) C) A) to (ior (and A ~C) (and B C)) if C
6139 is a const_int.
6140
6141 2016-11-09 David Malcolm <dmalcolm@redhat.com>
6142
6143 * print-rtl-function.c: Include varasm.h.
6144 (print_any_param_name): New function.
6145 (print_param): New function.
6146 (print_rtx_function): Call print_param for each argument.
6147 * print-rtl.c (rtx_writer::finish_directive): New function.
6148 * print-rtl.h (rtx_writer::finish_directive): New decl.
6149
6150 2016-11-09 Uros Bizjak <ubizjak@gmail.com>
6151
6152 PR target/78262
6153 * config/i386/i386.md (*<shift_insn><mode>3_doubleword): Mark
6154 operand 0 as earlyclobber.
6155 (*ashl<mode>3_doubleword): Ditto for all operand 0 alternatives.
6156
6157 2016-11-09 Martin Liska <mliska@suse.cz>
6158
6159 * fold-const-call.c (fold_const_call): Fix up type of s0 and s1.
6160
6161 2016-11-09 Jakub Jelinek <jakub@redhat.com>
6162
6163 PR target/77718
6164 * builtins.c (expand_builtin_memcmp): Formatting fix.
6165
6166 * flag-types.h (enum sanitize_code): Add SANITIZE_SHIFT_BASE
6167 and SANITIZE_SHIFT_EXPONENT, change SANITIZE_SHIFT to bitwise
6168 or of them, renumber other enumerators.
6169 * opts.c (sanitizer_opts): Add shift-base and shift-exponent.
6170 * doc/invoke.texi: Document -fsanitize=shift-base and
6171 -fsanitize-shift-exponent, document -fsanitize=shift as
6172 having those 2 suboptions.
6173
6174 2016-11-09 Richard Biener <rguenther@suse.de>
6175
6176 * fold-const.c (tree_swap_operands_p): Remove unused arg.
6177 * fold-const.c (tree_swap_operands_p): Likewise.
6178 (fold_binary_loc): Adjust.
6179 (fold_ternary_loc): Likewise.
6180 * genmatch.c (dt_operand::gen_gimple_exp): Likewise.
6181 * gimple-fold.c (fold_stmt_1): Likewise.
6182 * gimple-match-head.c (gimple_resimplify2): Likewise.
6183 (gimple_resimplify3): Likewise.
6184 (gimple_simplify): Likewise.
6185 * tree-ssa-dom.c (record_equality): Likewise.
6186 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Likewise.
6187 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
6188 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): Likewise.
6189
6190 2016-11-09 Richard Biener <rguenther@suse.de>
6191
6192 * tree-ssa-dom.c (canonicalize_comparison): Remove.
6193 (optimize_stmt): Remove redundant pre-propagation canonicalization
6194 of comparison operand order.
6195
6196 2016-11-09 Martin Liska <mliska@suse.cz>
6197
6198 * fold-const-call.c (fold_const_call): Fix the folding.
6199
6200 2016-11-09 Richard Biener <rguenther@suse.de>
6201
6202 * common.opt (flag_evaluation_order): Remove.
6203 * expr.c (expand_operands): Remove code guarded by
6204 flag_evaluation_order.
6205 * fold-const.c (reorder_operands_p): Remove, it always returns
6206 true.
6207 (negate_expr_p): Remove calls to reorder_operands_p.
6208 (fold_negate_expr): Likewise.
6209 (tree_swap_operands_p): Likewise.
6210 (fold_binary_loc): Likewise.
6211
6212 2016-11-09 Andreas Schwab <schwab@suse.de>
6213
6214 PR target/78254
6215 * config/m68k/m68k.md: Reject out-of-range bit pos in bit-fields
6216 insns operating on a register.
6217
6218 2016-11-09 Richard Biener <rguenther@suse.de>
6219
6220 PR tree-optimization/78007
6221 * tree-vect-stmts.c (vectorizable_bswap): New function.
6222 (vectorizable_call): Call vectorizable_bswap for
6223 BUILT_IN_BSWAP{16,32,64} if arguments are not promoted.
6224
6225 2016-11-09 Richard Biener <rguenther@suse.de>
6226
6227 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
6228 Look at the DR_BASE_ADDRESS object for forcing alignment.
6229
6230 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
6231
6232 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
6233 (propagate_vr_accross_jump_function): Likewise.
6234 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
6235 (load_from_param_1): New.
6236 (load_from_unmodified_param): Factor common part into load_from_param_1.
6237 (load_from_param): New.
6238 (compute_complex_assign_jump_func): Handle unary expressions.
6239 (ipa_write_jump_function): Likewise.
6240 (ipa_read_jump_function): Likewise.
6241
6242 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
6243
6244 PR ipa/78121
6245 * ipa-cp.c (propagate_vr_accross_jump_function): Pass param type.
6246 Also fold constant passed as argument while computing value range.
6247 (propagate_constants_accross_call): Pass param type.
6248 * ipa-prop.c: export ipa_get_callee_param_type.
6249 * ipa-prop.h: export ipa_get_callee_param_type.
6250
6251 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
6252
6253 * asan.h (asan_intercepted_p): Handle BUILT_IN_STRCSPN,
6254 BUILT_IN_STRPBRK, BUILT_IN_STRSPN and BUILT_IN_STRSTR.
6255
6256 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
6257
6258 * asan.h (ASAN_STACK_MAGIC_PARTIAL): Remove.
6259 * asan.c (ASAN_STACK_MAGIC_PARTIAL): Replace with
6260 ASAN_STACK_MAGIC_MIDDLE.
6261 (asan_global_struct): Increase the size of fields.
6262 (asan_add_global): Add new field constructor.
6263 * sanitizer.def (__asan_version_mismatch_check_v6): Replace with
6264 __asan_version_mismatch_check_v8.
6265
6266 2016-11-08 David Edelsohn <dje.gcc@gmail.com>
6267
6268 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Test XCOFF_DEBUGGING_INFO
6269 at runtime.
6270
6271 2016-11-08 Uros Bizjak <ubizjak@gmail.com>
6272
6273 PR target/70799
6274 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
6275 Handle ASHIFT and LSHIFTRT.
6276 (dimode_scalar_chain::compute_convert_gain): Ditto.
6277 (dimode_scalar_chain::convert_insn): Ditto.
6278
6279 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6280
6281 * gimple-ssa-store-merging.c: Include selftest.h
6282 (verify_array_eq): New function.
6283 (verify_shift_bytes_in_array): Likewise.
6284 (verify_shift_bytes_in_array_right): Likewise.
6285 (verify_clear_bit_region): Likewise.
6286 (verify_clear_bit_region_be): Likewise.
6287 (store_merging_c_tests): Likewise.
6288 * selftest.h (store_merging_c_tests): Declare prototype.
6289 * selftest-run-tests.c (selftest::run_tests): Run
6290 store_merging_c_tests.
6291
6292 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6293
6294 * config/arm/arm.opt (mold-rtx-costs): Delete.
6295 (mnew-generic-costs): Delete.
6296 * config/arm/arm-protos.h (struct tune_params): Delete rtx_costs field.
6297 * config/arm/arm.c (arm_rtx_costs_1): Delete.
6298 (arm_size_rtx_costs): Likewise.
6299 (arm_slowmul_rtx_costs): Likewise.
6300 (arm_fastmul_rtx_costs): Likewise.
6301 (arm_xscale_rtx_costs): Likewise.
6302 (arm_9e_rtx_costs): Likewise.
6303 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
6304 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
6305 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
6306 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
6307 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
6308 arm_cortex_a5_tune, arm_xgene1_tune, arm_marvell_pj4_tune,
6309 arm_cortex_a35_tune, arm_exynosm1_tune, arm_cortex_a73_tune,
6310 arm_cortex_m7_tune):
6311 Delete rtx_costs field.
6312 (arm_new_rtx_costs): Rename to...
6313 (arm_rtx_costs_internal): ... This.
6314 (arm_rtx_costs): Remove old way of doing rtx costs.
6315
6316 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6317
6318 * config/arm/arm.c (arm_slowmul_tune): Use generic_extra_costs.
6319 (arm_fastmul_tune): Likewise.
6320 (arm_strongarm_tune): Likewise.
6321 (arm_xscale_tune): Likewise.
6322 (arm_9e_tune): Likewise.
6323 (arm_marvell_pj4_tune): Likewise.
6324 (arm_v6t2_tune): Likewise.
6325 (arm_v6m_tune): Likewise.
6326 (arm_fa726te_tune): Likewise.
6327
6328 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6329
6330 PR tree-optimization/78234
6331 * gimple-ssa-store-merging.c (clear_bit_region): Fix off-by-one error
6332 in start != 0 case.
6333
6334 2016-11-08 Martin Liska <mliska@suse.cz>
6335
6336 PR testsuite/78242
6337 * dbgcnt.def: Add new debug counter asan_use_after_scope.
6338 * gimplify.c (gimplify_decl_expr): Do not sanitize vars
6339 with a value expr. Do not add artificial variables to
6340 live_switch_vars. Use the debug counter.
6341 (gimplify_target_expr): Use the debug counter.
6342 * internal-fn.def: Remove ECF_TM_PURE from ASAN_MARK builtin.
6343 * sanitizer.def: Set ATTR_NOTHROW_LEAF_LIST to
6344 BUILT_IN_ASAN_CLOBBER_N and BUILT_IN_ASAN_UNCLOBBER_N.
6345
6346 2016-11-08 Richard Biener <rguenther@suse.de>
6347
6348 * tree-vect-stmts.c (get_group_load_store_type): If the
6349 access is aligned do not trigger peeling for gaps.
6350 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
6351 force alignment of vars with DECL_USER_ALIGN.
6352
6353 2016-11-08 James Greenhalgh <james.greenhalgh@arm.com>
6354
6355 * config/aarch64/t-aarch64 (aarch64-c.o): Depend on TARGET_H.
6356
6357 2016-11-08 Richard Biener <rguenther@suse.de>
6358
6359 PR tree-optimization/78205
6360 * tree-vect-stmts.c (vectorizable_load): Move check whether
6361 we may run into gaps when BB vectorizing SLP permutations ...
6362 * tree-vect-slp.c (vect_supported_load_permutation_p): ...
6363 here where we can do a more precise check.
6364
6365 2016-11-08 Richard Biener <rguenther@suse.de>
6366
6367 PR tree-optimization/78224
6368 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
6369 Split the fallthru edge in case its successor may have PHIs.
6370 Do not free dominance info.
6371
6372 2016-11-07 Jakub Jelinek <jakub@redhat.com>
6373
6374 PR target/78229
6375 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
6376 EH info even for bzhi and pdep/pext.
6377
6378 2016-11-07 Peter Bergner <bergner@vnet.ibm.com>
6379
6380 * config.gcc (powerpc*-*-*, rs6000*-*-*): Remove setting of
6381 INCLUDE_EXTRA_SPEC for Advance Toolchain builds.
6382
6383 2016-11-07 Segher Boessenkool <segher@kernel.crashing.org>
6384
6385 * config/rs6000/rs6000.md (div<mode>3): Expand using rs6000_emit_swdiv
6386 if appropriate.
6387 * config/rs6000/vector.md (div<mode>3): Ditto.
6388
6389 2016-11-07 David Edelsohn <dje.gcc@gmail.com>
6390
6391 * configure.ac (.hidden): Change to conftest_s string. Provide string
6392 for AIX assembler.
6393 (gcc_cv_ld_hidden): Yes for AIX.
6394 * configure: Regenerate.
6395
6396 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Don't set for AIX (XCOFF).
6397
6398 * config/rs6000/rs6000-protos.h (rs6000_asm_weaken_decl): Declare
6399 (rs6000_xcoff_asm_output_aligned_decl_common): Declare.
6400 * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_DECL_NAME): Define.
6401 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
6402 (ASM_OUTPUT_ALIGNED_COMMON): Delete.
6403 * config/rs6000/rs6000.c (rs6000_init_builtins): Change clog rename
6404 from #if to if.
6405 (rs6000_xcoff_visibility): New.
6406 (rs6000_xcoff_declare_function_name): Add visibility support.
6407 (rs6000_xcoff_asm_globalize_decl_name): New.
6408 (rs6000_xcoff_asm_output_aligned_decl_common): New.
6409 (rs6000_asm_weaken_decl): New.
6410 (rs6000_code_end): Disable HIDDEN_LINKONCE on XCOFF.
6411 config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Change definition to
6412 reference function.
6413
6414 2016-11-07 Jack Howarth <howarth.at.gcc@gmail.com>
6415
6416 PR driver/78206
6417 * incpath.c (remove_dup): Also silently ignore EPERM.
6418
6419 2016-11-07 Martin Jambor <mjambor@suse.cz>
6420
6421 * tree.c (verify_type_variant): Use pointer comparison to check that
6422 TYPE_SIZE_UNIT match.
6423
6424 2016-11-07 Jakub Jelinek <jakub@redhat.com>
6425
6426 PR target/77834
6427 * dse.c (dse_step5): Call scan_reads even if just
6428 insn_info->frame_read. Improve and fix dump file messages.
6429
6430 PR target/78227
6431 * config/i386/i386.c (ix86_expand_sse_cmp): Force dest into
6432 cmp_mode argument even for -O0 if cmp_mode != mode and maskcmp.
6433
6434 2016-11-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6435
6436 PR middle-end/35691
6437 * match.pd: Add following two patterns:
6438 (x == 0 & y == 0) -> (x | typeof(x)(y)) == 0.
6439 (x != 0 | y != 0) -> (x | typeof(x)(y)) != 0.
6440
6441 2016-11-07 Bernd Schmidt <bschmidt@redhat.com>
6442
6443 * emit-rtl.c (emit_copy_of_insn_after): Duplicate notes in order.
6444 * sel-sched-ir.c (create_copy_of_insn_rtx): Likewise.
6445 * rtl.h (duplicate_reg_notes): Declare.
6446 * rtlanal.c (duplicate_reg_note): New function.
6447
6448 PR rtl-optimization/77309
6449 * combine.c (make_compound_operation): Allow EQ for IN_CODE, and
6450 don't assume an equality comparison for plain COMPARE.
6451 (simplify_comparison): Pass a more accurate code to
6452 make_compound_operation.
6453
6454 2016-11-07 Pat Haugen <pthaugen@us.ibm.com>
6455
6456 * target.def (compute_pressure_classes): New target hook.
6457 * doc/tm.texi.in: Document it.
6458 * doc/tm.texi: Regenerate.
6459 * ira.c (setup_pressure_classes): Call target hook if defined.
6460
6461 2016-11-07 David Malcolm <dmalcolm@redhat.com>
6462
6463 * print-rtl.c (rtx_writer::operand_has_default_value_p): New
6464 method.
6465 (rtx_writer::print_rtx): In compact mode, omit trailing operands
6466 that have the default values.
6467 * print-rtl.h (rtx_writer::operand_has_default_value_p): New
6468 method.
6469 * rtl-tests.c (selftest::test_dumping_insns): Remove empty
6470 label string from expected dump.
6471 (seltest::test_uncond_jump): Remove trailing "(nil)" for REG_NOTES
6472 from expected dump.
6473
6474 2016-11-07 Jakub Jelinek <jakub@redhat.com>
6475
6476 PR target/77834
6477 * alias.c (nonoverlapping_memrefs_p): If one decl is
6478 FUNCTION_DECL or LABEL_DECL and the other is not, return 1.
6479
6480 2016-11-07 Richard Biener <rguenther@suse.de>
6481
6482 PR target/78229
6483 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
6484 EH info.
6485
6486 2016-11-07 Richard Biener <rguenther@suse.de>
6487
6488 PR tree-optimization/78218
6489 * gimple-ssa-store-merging.c
6490 (pass_store_merging::terminate_all_aliasing_chains):
6491 Drop unused argument, fix alias check to also consider uses.
6492 (pass_store_merging::execute): Adjust.
6493
6494 2016-11-07 Richard Biener <rguenther@suse.de>
6495
6496 PR tree-optimization/78228
6497 * tree-ssa-phiopt.c (abs_replacement): Avoid introducing
6498 undefined behavior.
6499
6500 2016-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6501
6502 PR target/77822
6503 * config/aarch64/aarch64.md (*tb<optab><mode>1): Use
6504 aarch64_simd_shift_imm_<mode> predicate for operand 1.
6505 (<optab>, ANY_EXTRACT): Use tighter predicates on operands 2 and 3
6506 to restrict them to an appropriate range and add FAIL check if the
6507 region they specify is out of range. Delete useless constraint
6508 strings.
6509 (*<optab><mode>, ANY_EXTRACT): Add appropriate predicates on operands
6510 2 and 3 to restrict their range and add pattern predicate.
6511
6512 2016-11-07 Martin Liska <mliska@suse.cz>
6513
6514 * asan.c (enum asan_check_flags): Move the enum to header file.
6515 (asan_init_shadow_ptr_types): Make type creation more generic.
6516 (shadow_mem_size): New function.
6517 (asan_emit_stack_protection): Use newly added ASAN_SHADOW_GRANULARITY.
6518 Rewritten stack unpoisoning code.
6519 (build_shadow_mem_access): Add new argument return_address.
6520 (instrument_derefs): Instrument local variables if use after scope
6521 sanitization is enabled.
6522 (asan_store_shadow_bytes): New function.
6523 (asan_expand_mark_ifn): Likewise.
6524 (asan_sanitize_stack_p): Moved from asan_sanitize_stack_p.
6525 * asan.h (enum asan_mark_flags): Moved here from asan.c
6526 (asan_protect_stack_decl): Protect all declaration that need
6527 to live in memory.
6528 (asan_sanitize_use_after_scope): New function.
6529 (asan_no_sanitize_address_p): Likewise.
6530 * cfgexpand.c (partition_stack_vars): Consider
6531 asan_sanitize_use_after_scope in condition.
6532 (expand_stack_vars): Likewise.
6533 * common.opt (-fsanitize-address-use-after-scope): New option.
6534 * doc/invoke.texi (use-after-scope-direct-emission-threshold):
6535 Explain the parameter.
6536 * flag-types.h (enum sanitize_code): Define SANITIZE_USE_AFTER_SCOPE.
6537 * gimplify.c (build_asan_poison_call_expr): New function.
6538 (asan_poison_variable): Likewise.
6539 (gimplify_bind_expr): Generate poisoning/unpoisoning for local
6540 variables that have address taken.
6541 (gimplify_decl_expr): Likewise.
6542 (gimplify_target_expr): Likewise for C++ temporaries.
6543 (sort_by_decl_uid): New function.
6544 (gimplify_expr): Unpoison all variables for a label we can jump
6545 from outside of a scope.
6546 (gimplify_switch_expr): Unpoison variables defined in the switch
6547 context.
6548 (gimplify_function_tree): Clear asan_poisoned_variables.
6549 (asan_poison_variables): New function.
6550 (warn_switch_unreachable_r): Handle IFN_ASAN_MARK.
6551 * internal-fn.c (expand_ASAN_MARK): New function.
6552 * internal-fn.def (ASAN_MARK): Declare.
6553 * opts.c (finish_options): Handle -fstack-reuse if
6554 -fsanitize-address-use-after-scope is enabled.
6555 (common_handle_option): Enable address sanitization if
6556 -fsanitize-address-use-after-scope is enabled.
6557 * params.def (PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD):
6558 New parameter.
6559 * params.h: Likewise.
6560 * sancov.c (pass_sanopt::execute): Handle IFN_ASAN_MARK.
6561 * sanitizer.def: Define __asan_poison_stack_memory and
6562 __asan_unpoison_stack_memory functions.
6563 * asan.c (asan_mark_poison_p): New function.
6564 (transform_statements): Handle asan_mark_poison_p calls.
6565 * gimple.c (nonfreeing_call_p): Handle IFN_ASAN_MARK.
6566
6567 2016-11-07 Tamar Christina <tamar.christina@arm.com>
6568
6569 PR driver/78196
6570 * Makefile.in (SELFTEST_FLAGS): Added -o /dev/null.
6571
6572 2016-11-07 Martin Liska <mliska@suse.cz>
6573
6574 * tree-profile.c (gimple_gen_time_profiler): Set proper type
6575 to time_profiler_counter_ptr.
6576
6577 2016-11-07 Richard Biener <rguenther@suse.de>
6578
6579 PR tree-optimization/37150
6580 * tree-vectorizer.h (vect_transform_slp_perm_load): Add n_perms
6581 parameter.
6582 * tree-vect-slp.c (vect_supported_load_permutation_p): Adjust.
6583 (vect_analyze_slp_cost_1): Account for the real number of
6584 permutations emitted and for dead loads.
6585 (vect_transform_slp_perm_load): Add n_perms parameter counting
6586 the number of emitted permutations.
6587 * tree-vect-stmts.c (vectorizable_load): Adjust.
6588
6589 2016-11-07 Richard Biener <rguenther@suse.de>
6590
6591 PR tree-optimization/78189
6592 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Fix
6593 alignment computation.
6594
6595 2016-11-06 Kugan Vivekanandarajah <kuganv@linaro.org>
6596
6597 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove unreachable code.
6598
6599 2016-11-05 Martin Sebor <msebor@redhat.com>
6600
6601 * doc/invoke.texi (Warning Options): Correct typos in -Walloca
6602 documentation.
6603
6604 2016-11-05 David Edelsohn <dje.gcc@gmail.com>
6605
6606 PR bootstrap/78188
6607 PR c++/71848
6608 * ipa-comdats.c (pass_ipa_comdats::gate): Require HAVE_COMDAT_GROUP.
6609
6610 2016-11-04 Jakub Jelinek <jakub@redhat.com>
6611
6612 PR target/77834
6613 * alias.c (nonoverlapping_memrefs_p): Return 0 if exprx or expry
6614 doesn't have rtl set.
6615
6616 2016-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6617
6618 * config/rs6000/rs6000.c (gimple-ssa.h): New #include.
6619 (TARGET_GIMPLE_FOLD_BUILTIN): Define as
6620 rs6000_gimple_fold_builtin.
6621 (rs6000_gimple_fold_builtin): New function. Add handling for
6622 early expansion of vector addition builtins.
6623
6624 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
6625
6626 * expr.h (copy_blkmode_from_reg): Delete.
6627 * expr.c (copy_blkmode_from_reg): Make static.
6628
6629 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
6630
6631 * defaults.h (LOAD_EXTEND_OP): Define if not already defined.
6632 * combine.c (LOAD_EXTEND_OP): Delete.
6633 (simplify_comparison): Fix comment about LOAD_EXTEND_OP.
6634 * cse.c (LOAD_EXTEND_OP): Delete.
6635 * fold-const.c (LOAD_EXTEND_OP): Likewise.
6636 * fwprop.c (free_load_extend): Remove #ifdef LOAD_EXTEND_OP/#endif.
6637 * postreload.c (LOAD_EXTEND_OP): Delete.
6638 * reload.c (push_reload): Remove #ifdef LOAD_EXTEND_OP/#endif.
6639 Convert conditional compilation based on WORD_REGISTER_OPERATIONS.
6640 (find_reloads): Likewise.
6641 * reload1.c (eliminate_regs_1): Likewise.
6642 * rtlanal.c (nonzero_bits1): Remove #ifdef LOAD_EXTEND_OP/#endif.
6643 (num_sign_bit_copies1): Likewise.
6644
6645 2016-11-04 David Malcolm <dmalcolm@redhat.com>
6646
6647 * config/i386/i386.c: Include "selftest.h" and "selftest-rtl.h".
6648 (selftest::ix86_test_dumping_hard_regs): New function.
6649 (selftest::ix86_run_selftests): New function.
6650 (TARGET_RUN_TARGET_SELFTESTS): When CHECKING_P, wire this up to
6651 selftest::ix86_run_selftests.
6652 * doc/tm.texi.in (TARGET_RUN_TARGET_SELFTESTS): New.
6653 * doc/tm.texi: Regenerate
6654 * selftest-rtl.h: New file.
6655 * rtl-tests.c: Include "selftest-rtl.h".
6656 (selftest::assert_rtl_dump_eq): Make non-static.
6657 (ASSERT_RTL_DUMP_EQ): Move to selftest-rtl.h.
6658 (selftest::test_dumping_regs): Update comment.
6659 * selftest-run-tests.c: Include "target.h".
6660 (selftest::run_tests): If non-NULL, call
6661 targetm.run_target_selftests.
6662 * target.def (run_target_selftests): New hook.
6663
6664 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
6665
6666 * config/arm/arm-arches.def (armv8-m.main+dsp): Set Cortex-M33 as
6667 representative core for this architecture.
6668 * config/arm/arm-cores.def (cortex-m33): Define new processor.
6669 * config/arm/arm-tables.opt: Regenerate.
6670 * config/arm/arm-tune.md: Likewise.
6671 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M33 to the list of
6672 valid -mcpu options.
6673 * doc/invoke.texi (ARM Options): Document new Cortex-M33 processor.
6674
6675 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
6676
6677 * config/arm/arm-arches.def (armv8-m.base): Set Cortex-M23 as
6678 representative core for this architecture.
6679 * config/arm/arm-cores.def (cortex-m23): Define new processor.
6680 * config/arm/arm-tables.opt: Regenerate.
6681 * config/arm/arm-tune.md: Likewise.
6682 * config/arm/arm.c (arm_v6m_tune): Add Cortex-M23 to the list of cores
6683 this tuning parameters apply to in the comment.
6684 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M23 to the list of
6685 valid -mcpu options.
6686 * doc/invoke.texi (ARM Options): Document new Cortex-M23 processor.
6687
6688 2016-11-04 Bin Cheng <bin.cheng@arm.com>
6689
6690 * fold-const.c (fold_cond_expr_with_comparison): Remove call
6691 to pedantic_non_lvalue_loc. Remove useless code for lvalue
6692 where cond_expr can't be a lvalue.
6693
6694 2016-11-04 Claudiu Zissulescu <claziss@synopsys.com>
6695
6696 * config/arc/arc.c (arc_process_double_reg_moves): Use
6697 gen_dexcl_2op call.
6698 * config/arc/arc.md (movsi_insn): Disable unsupported move
6699 instructions for ARCv2 cores.
6700 (movdi): Use prepare_move_operands.
6701 (movsf, movdf): Use move_dest_operand predicate.
6702 * config/arc/constraints.md (Chs): Enable when barrel shifter is
6703 present.
6704 * config/arc/fpu.md (divsf3): Change to divsf3_fpu.
6705 * config/arc/fpx.md (dexcl_3op_peep2_insn): Dx data register is
6706 also a destination.
6707 (dexcl_3op_peep2_insn_nores): Likewise.
6708 * config/arc/arc.h (SHIFT_COUNT_TRUNCATED): Define to one.
6709 (LINK_COMMAND_SPEC): Remove.
6710
6711 2016-11-04 Richard Biener <rguenther@suse.de>
6712
6713 PR middle-end/78185
6714 * loop-invariant.c (find_exits): Record entering inner
6715 loops as possibly exiting to handle infinite sub-loops.
6716 * tree-ssa-loop-im.c: Include tree-ssa-loop-niter.h.
6717 (fill_always_executed_in_1): Honor infinite child loops.
6718
6719 2016-11-03 Michael Meissner <meissner@linux.vnet.ibm.com>
6720
6721 PR target/78192
6722 * config/rs6000/vsx.md (vsx_extract_<mode>_di): The element number
6723 has already been adjusted for endianness, so don't adjust it any
6724 further.
6725
6726 PR target/77993
6727 * config/rs6000/rs6000.h (FLOAT128_IBM_P): Do not allow IFmode or
6728 ICmode unless we have standard PowerPC floating point.
6729 * config/rs6000/rs6000.md (FP iterator): Likewise.
6730 (FMOVE128 iterator): Likewise.
6731
6732 2016-11-03 Jakub Jelinek <jakub@redhat.com>
6733 Alexandre Oliva <aoliva@redhat.com>
6734 Jason Merrill <jason@redhat.com>
6735
6736 PR debug/28767
6737 PR debug/56974
6738 * langhooks.h (struct lang_hooks_for_types): Add type_dwarf_attribute
6739 langhook.
6740 * langhooks.c (lhd_type_dwarf_attribute): New function.
6741 * langhooks-def.h (lhd_type_dwarf_attribute): Declare.
6742 (LANG_HOOKS_TYPE_DWARF_ATTRIBUTE): Define.
6743 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add
6744 LANG_HOOKS_TYPE_DWARF_ATTRIBUTE.
6745 (check_qualified_type, check_aligned_type): Call it.
6746 * dwarf2out.c (modified_type_die): Don't use type_main_variant
6747 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
6748 check_base_type and check_lang_type.
6749 (gen_ptr_to_mbr_type_die): If lookup_type_die is already non-NULL,
6750 return early. For pointer-to-data-member add DW_AT_use_location
6751 attribute.
6752 (gen_subroutine_type_die): Add DW_AT_{,rvalue_}reference attribute
6753 if needed.
6754 (gen_type_die_with_usage): Don't use type_main_variant
6755 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
6756 check_base_type and check_lang_type. Formatting fixes. Call
6757 get_debug_type langhook.
6758
6759 2016-11-03 Jason Merrill <jason@redhat.com>
6760
6761 * tree.c (check_lang_type): New.
6762 (check_qualified_type): Use it.
6763 (check_aligned_type): Use it.
6764 * tree.h: Declare it.
6765
6766 2016-11-03 Richard Earnshaw <rearnsha@arm.com>
6767
6768 * config.gcc (arm-wrs-vxworks): Set target_cpu_cname.
6769 (arm*-freebsd*): Likewise.
6770 (arm*-*-netbsdelf*): Likewise.
6771 (arm*-*-linux*): Likewise.
6772 (arm*-*-uclinux*eabi*): Likewise.
6773 (arm*-*-phoenix*): Likewise.
6774 (arm*-*-eabi*, arm*-*-symbianelf*, arm*-*-rtems*): Likewise.
6775 (arm*-*-*): Don't clobber target_cpu_cname when --with-cpu is not
6776 specified. Default to arm6 if target_cpu_cname is not set.
6777 * arm/arm.c (arm_option_override): Simplify logic. Assert that the
6778 default cpu has been correctly configured.
6779 * arm/arm.h (TARGET_CPU_DEFAULT): Delete.
6780 (target_cpus): Delete TARGET_CPU_generic, add TARGET_CPU_num_cores.
6781 * arm/freebsd.h (SUBTARGET_CPU_DEFAULT): Delete.
6782 * arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Delete.
6783 * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
6784 * arm/symbian.h (SUBTARGET_CPU_DEFAULT): Delete.
6785 * arm/unknown-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
6786
6787 2016-11-03 Jiong Wang <jiong.wang@arm.com>
6788
6789 * reg-notes.def (CFA_VAL_EXPRESSION): New entry.
6790 * dwarf2cfi.c (dwarf2out_frame_debug_cfa_val_expression): New function.
6791 (dwarf2out_frame_debug): Support REG_CFA_VAL_EXPRESSION.
6792 (output_cfa_loc): Support DW_CFA_val_expression.
6793 (output_cfa_loc_raw): Likewise.
6794 (output_cfi): Likewise.
6795 (output_cfi_directive): Likewise.
6796 * dwarf2out.c (dw_cfi_oprnd1_desc): Support DW_CFA_val_expression.
6797 (dw_cfi_oprnd2_desc): Likewise.
6798 (mem_loc_descriptor): Recognize new pattern generated for value
6799 expression.
6800
6801 2016-11-03 Segher Boessenkool <segher@kernel.crashing.org>
6802
6803 PR rtl-optimization/78186
6804 * combine.c (change_zero_ext): Mask the RHS of a zero_extract as
6805 well, when converting to IOR.
6806
6807 2016-11-03 Eric Botcazou <ebotcazou@adacore.com>
6808
6809 * config/sparc/sparc.md (vec_interleave_lowv8qi): Delete.
6810 (vec_interleave_highv8qi): Likewise.
6811
6812 2016-11-03 Martin Liska <mliska@suse.cz>
6813
6814 * profile.c (instrument_values): Fix coding style.
6815 (branch_prob): Use renamed function.
6816 * tree-profile.c (init_ic_make_global_vars): Likewise.
6817 (gimple_init_edge_profiler): Rename to
6818 gimple_init_gcov_profiler.
6819 tree_time_profiler_counter variable declaration.
6820 (gimple_gen_time_profiler): Rewrite to do a direct gimple code
6821 emission.
6822 * value-prof.h: Remove an argument.
6823
6824 2016-11-03 Richard Biener <rguenther@suse.de>
6825
6826 * config/rs6000/rs6000.c (rs6000_xcoff_declare_object_name): Use
6827 symtab_node::get_create.
6828
6829 2016-11-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6830
6831 * rtlanal.c (nonzero_bits1): Fix WORD_REGISTER_OPERATIONS condition.
6832 Move comments into more natural position.
6833
6834 2016-11-03 Vineet Gupta <vgupta@synopsys.com>
6835
6836 * config/arc/arc.h (SIZE_TYPE): Define as unsigned int.
6837 (PTRDIFF_TYPE): Define as int.
6838
6839 2016-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6840
6841 * ccmp.c (expand_ccmp_expr_1): Adjust.
6842 (expand_ccmp_expr): Likewise.
6843 (expand_ccmp_next): Likewise.
6844 * config/aarch64/aarch64.c (aarch64_gen_ccmp_next): Likewise.
6845 (aarch64_gen_ccmp_first): Likewise.
6846 * doc/tm.texi: Regenerate.
6847 * target.def (gen_ccmp_first): Change argument types to rtx_insn *.
6848 (gen_ccmp_next): Likewise.
6849
6850 2016-11-03 Bin Cheng <bin.cheng@arm.com>
6851
6852 * tree-vect-loop.c (destroy_loop_vec_info): Handle cond_expr.
6853 (vect_is_simple_reduction): Swap cond_reduction by inversion.
6854
6855 2016-11-02 Uros Bizjak <ubizjak@gmail.com>
6856
6857 * config/i386/i386.c (ix86_init_libfuncs): New. Call
6858 darwin_rename_builtins here.
6859 (ix86_expand_divmod_libfunc): New.
6860 (TARGET_INIT_LIBFUNCS): Unconditionally define to ix86_init_libfuncs.
6861 (TARGET_EXPAND_DIVMOD_LIBFUNC): Define.
6862
6863 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
6864 Nathan Sidwell <nathan@acm.org>
6865
6866 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): Set to zero.
6867
6868 2016-11-02 Max Filippov <jcmvbkbc@gmail.com>
6869
6870 * config/xtensa/xtensa.c (xtensa_output_integer_literal_parts):
6871 New function.
6872 (xtensa_output_literal): Use xtensa_output_integer_literal_parts
6873 to format MODE_INT and MODE_PARTIAL_INT literals.
6874
6875 2016-11-02 Segher Boessenkool <segher@kernel.crashing.org>
6876
6877 PR target/78168
6878 * config/r6000/rs6000.c (rs6000_get_separate_components): Return
6879 NULL if TARGET_SPE_ABI.
6880
6881 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6882
6883 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Don't forget to
6884 clear padding bits even when they're less than a byte.
6885
6886 2016-11-02 Richard Biener <rguenther@suse.de>
6887
6888 * gimple-ssa-store-merging.c: Include gimplify-me.h.
6889 (imm_store_chain_info::output_merged_stores): Force base_addr
6890 to be proper GIMPLE for a MEM_REF address.
6891 (pass_store_merging::execute): Restrict negative bitpos
6892 handling to non-MEM_REF bases. Remove TREE_THIS_VOLATILE
6893 check. Take into account non-NULL_TREE offset if the base
6894 is already addressable.
6895
6896 2016-11-26 Wilco Dijkstra <wdijkstr@arm.com>
6897
6898 * config/aarch64/aarch64-simd.md (aarch64_crypto_sha1hv4si):
6899 New pattern.
6900 (aarch64_be_crypto_sha1hv4si): New pattern.
6901
6902 2016-11-02 Wilco Dijkstra <wdijkstr@arm.com>
6903
6904 * config/aarch64/aarch64.md (add<mode>3): Remove
6905 redundant code. Don't split frame based additions.
6906
6907 2016-11-02 Richard Biener <rguenther@suse.de>
6908
6909 * gimple-ssa-store-merging.c (struct store_immediate_info): Remove
6910 redundant val and dest members.
6911 (store_immediate_info::store_immediate_info): Adjust.
6912 (merged_store_group::merged_store_group): Adjust.
6913 (merged_store_group::apply_stores): Likewise.
6914 (struct imm_store_chain_info): Add base_addr field.
6915 (imm_store_chain_info::imm_store_chain_info): New constructor.
6916 (imm_store_chain_info::terminate_and_process_chain): Do not pass base.
6917 (imm_store_chain_info::output_merged_store): Likewise. Use
6918 addr_base which is already the address.
6919 (imm_store_chain_info::output_merged_stores): Likewise.
6920 (pass_tree_store_merging::terminate_all_aliasing_chains): Take
6921 imm_store_chain_info instead of base. Fix alias check.
6922 (pass_tree_store_merging::terminate_and_release_chain): Likewise.
6923 (imm_store_chain_info::coalesce_immediate_stores): Adjust.
6924 (pass_store_merging::execute): Refuse to operate on TARGET_MEM_REF.
6925 use the address of the base and adjust for other changes.
6926
6927 2016-11-02 Martin Liska <mliska@suse.cz>
6928
6929 * fold-const-call.c (host_size_t_cst_p): Test whether
6930 t is convertible to size_t.
6931
6932 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6933
6934 PR tree-optimization/78170
6935 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Truncate padding
6936 introduced by native_encode_expr on little-endian as well.
6937
6938 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6939
6940 PR tree-optimization/78162
6941 * gimple-ssa-store-merging.c (execute): Mark stores with bitpos < 0
6942 as invalid.
6943
6944 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6945
6946 * config/aarch64/aarch64.c (aarch64_register_saved_on_entry): Add
6947 function comment.
6948 (aarch64_next_callee_save): Likewise.
6949 (aarch64_pushwb_single_reg): Likewise.
6950 (aarch64_gen_storewb_pair): Likewise.
6951 (aarch64_push_regs): Likewise.
6952 (aarch64_gen_loadwb_pair): Likewise.
6953 (aarch64_pop_regs): Likewise.
6954 (aarch64_gen_store_pair): Likewise.
6955 (aarch64_gen_load_pair): Likewise.
6956 (aarch64_save_callee_saves): Likewise.
6957 (aarch64_restore_callee_saves): Likewise.
6958
6959 2016-11-02 Richard Biener <rguenther@suse.de>
6960
6961 PR tree-optimization/78035
6962 PR tree-optimization/77964
6963 * gimple-pretty-print.c (pp_points_to_solution): Print
6964 vars_contains_interposable.
6965 * tree-ssa-alias.c: Include varasm.h.
6966 (ptrs_compare_unequal): Check vars_contains_interposable and
6967 decl_binds_to_current_def_p.
6968 (dump_points_to_solution): Dump vars_contains_interposable.
6969 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_interposable
6970 flag.
6971 * tree-ssa-structalias.c: Include varasm.h.
6972 (set_uids_in_ptset): Record whether vars contains a
6973 not decl_binds_to_current_def_p variable in vars_contains_interposable.
6974 (ipa_escaped_pt): Update initializer.
6975
6976 2016-11-02 Richard Biener <rguenther@suse.de>
6977
6978 PR tree-optimization/78047
6979 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Initialize
6980 fake field at offset zero conservatively regarding to may_have_pointers.
6981
6982 2016-11-02 Richard Biener <rguenther@suse.de>
6983
6984 * tree-vrp.c (evrp_dom_walker::before_dom_children): Call
6985 infer_value_range on stmt ops and update value-ranges.
6986 Dump visited stmts and blocks.
6987 (evrp_dom_walker::push_value_range): Dump changes.
6988 (evrp_dom_walker::pop_value_range): Likewise.
6989 (evrp_dom_walker::try_find_new_range): Avoid noop changes.
6990
6991 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6992
6993 * emit-rtl.c (prev_nonnote_insn_bb): Change argument type to
6994 rtx_insn *.
6995 * rtl.h (prev_nonnote_insn_bb): Adjust prototype.
6996
6997 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6998
6999 * cfgrtl.c (delete_insn_chain): Change argument type to rtx_insn *
7000 and adjust for that.
7001 * cfgrtl.h (delete_insn_chain): Adjust prototype.
7002
7003 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7004
7005 * config/rl78/rl78.c (gen-and_emit_move): Change argument type
7006 to rtx_insn *.
7007 (transcode_memory_rtx): Likewise.
7008 (move_to_acc): Likewise.
7009 (move_from_acc): Likewise.
7010 (move_acc_to_reg): Likewise.
7011 (move_to_x): Likewise.
7012 (move_to_hl): Likewise.
7013 (move_to_de): Likewise.
7014 * config/rs6000/rs6000.c (emit_frame_save): Likewise.
7015 (rs6000_emit_savres_rtx): Likewise.
7016 (rs6000_emit_prologue): Likewise.
7017 * reorg.c (update_reg_unused_notes): Likewise.
7018 * rtl.h (remove_note): Adjust prototype.
7019 * rtlanal.c (remove_note): Make argument type rtx_insn *.
7020
7021 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7022
7023 * config/alpha/alpha.c (alpha_legitimize_address_1): Split up
7024 variables so some can be rtx_insn *.
7025 (alpha_emit_xfloating_libcall): Likewise.
7026 * config/mips/mips.c (mips_call_tls_get_addr): Likewise.
7027 (mips_legitimize_tls_address): Likewise.
7028 * optabs.c (expand_binop): Likewise.
7029 * reload1.c (gen_reload): Likewise.
7030
7031 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7032
7033 * reorg.c (relax_delay_slots): Split up the trial variable.
7034
7035 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7036
7037 * config/arc/arc.c (arc_emit_call_tls_get_addr): Make the type
7038 of variables rtx_insn *.
7039 * config/arm/arm.c (arm_call_tls_get_addr): Likewise.
7040 (legitimize_tls_address): Likewise.
7041 * config/bfin/bfin.c (hwloop_optimize): Likewise.
7042 (bfin_gen_bundles): Likewise.
7043 * config/c6x/c6x.c (reorg_split_calls): Likewise.
7044 (c6x_reorg): Likewise.
7045 * config/frv/frv.c (frv_reorder_packet): Likewise.
7046 * config/i386/i386.c (ix86_split_idivmod): Likewise.
7047 * config/ia64/ia64.c (ia64_expand_compare): Likewise.
7048 * config/m32c/m32c.c (m32c_prepare_shift): Likewise.
7049 * config/mn10300/mn10300.c: Likewise.
7050 * config/rl78/rl78.c: Likewise.
7051 * config/s390/s390.c (s390_fix_long_loop_prediction): Likewise.
7052 * config/sh/sh-mem.cc (sh_expand_cmpstr): Likewise.
7053 (sh_expand_cmpnstr): Likewise.
7054 (sh_expand_strlen): Likewise.
7055 (sh_expand_setmem): Likewise.
7056 * config/sh/sh.md: Likewise.
7057 * emit-rtl.c (emit_pattern_before): Likewise.
7058 * except.c: Likewise.
7059 * final.c: Likewise.
7060 * jump.c: Likewise.
7061
7062 2016-11-01 Jason Merrill <jason@redhat.com>
7063
7064 * tree-inline.c (copy_tree_body_r): Only copy the taken branch of
7065 a COND_EXPR with constant condition.
7066
7067 2016-11-01 Jakub Jelinek <jakub@redhat.com>
7068
7069 * dwarf2out.c (gen_variable_die): Remove again origin_die variable
7070 and its initialization.
7071
7072 2016-11-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7073
7074 * dwarf2out.c (output_rnglists): Wrap basebuf, len in
7075 HAVE_AS_LEB128.
7076
7077 2016-11-01 Jakub Jelinek <jakub@redhat.com>
7078
7079 * dwarf2out.c (add_name_and_src_coords_attributes): Add NO_LINKAGE_NAME
7080 argument, don't call add_linkage_name if it is true.
7081 (gen_variable_die): For C++ inline static data members, consider the
7082 initial call when old_die is NULL to be declaration and call
7083 add_name_and_src_coords_attributes in that case with true as
7084 NO_LINKAGE_NAME. Add DW_AT_inline attribute if needed.
7085 (gen_member_die): For C++ inline static data members, emit a
7086 definition DIE right away in DW_TAG_compile_unit context.
7087
7088 2016-11-01 John David Anglin <danglin@gcc.gnu.org>
7089
7090 PR target/78166
7091 * config/pa/pa.md: Add new shift/add patterns to handle
7092 (plus (mult (reg) (mem_shadd_operand)) (reg)) source operand.
7093
7094 2016-11-01 Max Filippov <jcmvbkbc@gmail.com>
7095
7096 * config/xtensa/xtensa-protos.h
7097 (xtensa_use_return_instruction_p): New prototype.
7098 * config/xtensa/xtensa.c (xtensa_current_frame_size,
7099 xtensa_callee_save_size): Remove.
7100 (struct machine_function): Add new fields: current_frame_size,
7101 callee_save_size, frame_laid_out and epilogue_done.
7102 (compute_frame_size, xtensa_expand_prologue,
7103 xtensa_expand_epilogue): Replace xtensa_callee_save_size with
7104 cfun->machine->callee_save_size and xtensa_current_frame_size
7105 with cfun->machine->current_frame_size.
7106 (compute_frame_size): Update cfun->machine->frame_laid_out and
7107 don't update frame layout after reload completion.
7108 (xtensa_expand_epilogue): Set cfun->machine->epilogue_done
7109 instead of zeroing xtensa_current_frame_size.
7110 (xtensa_use_return_instruction_p): New function.
7111 * config/xtensa/xtensa.h (xtensa_current_frame_size): Remove
7112 declaration.
7113 (INITIAL_ELIMINATION_OFFSET): Use return value of
7114 compute_frame_size instead of xtensa_current_frame_size value.
7115 * config/xtensa/xtensa.md ("return" pattern): Use new predicate
7116 function xtensa_use_return_instruction_p instead of inline code.
7117
7118 2016-11-01 Jakub Jelinek <jakub@redhat.com>
7119
7120 * tree.h (BLOCK_IN_COLD_SECTION_P): Define.
7121 * final.c (final_scan_insn): Set BLOCK_IN_COLD_SECTION_P.
7122 * dwarf2out.c (rnglist_idx): New variable.
7123 (struct dw_ranges): Add label, idx and maybe_new_sec fields.
7124 (DEBUG_RNGLISTS_SECTION): Define.
7125 (ranges_base_label): New variable.
7126 (size_of_die) <case dw_val_class_range_list>: If using
7127 DW_FORM_rnglistx, count size of uleb128 of range list index.
7128 (value_format) <case dw_val_class_range_list>: For
7129 -gdwarf-5 -gsplit-dwarf return DW_FORM_rnglistx.
7130 (output_range_list_offset): Handle -gdwarf-5 .debug_rnglists
7131 offsets. Multiply dwarf < 5 offsets by 2 * DWARF_ADDR_SIZE.
7132 (add_ranges_num): Remove useless prototype. Don't multiply
7133 by 2 * DWARF2_ADDR_SIZE. Add maybe_new_sec argument, adjust
7134 for new fields added to dw_ranges struct.
7135 (add_ranges): Add maybe_new_sec argument and pass it
7136 through to add_ranges_num.
7137 (note_rnglist_head): New function.
7138 (add_ranges_by_labels): Pass true as maybe_new_sec to
7139 add_ranges_num, call note_rnglist_head on the head of the list.
7140 (output_ranges): Add function comment. Switch to
7141 .debug_ranges section here and emit .Ldebug_ranges0 label.
7142 (index_rnglists, output_rnglists): New functions.
7143 (gen_subprogram_die): Formatting fixes.
7144 (add_high_low_attributes): Don't divide offsets
7145 by 2 * DWARF2_ADDR_SIZE. Call note_rnglist_head on the
7146 first list element or when pointing into the middle of
7147 a list. Pass true as second argument to add_ranges on the
7148 first block fragment after cold/hot section switch.
7149 (init_sections_and_labels): For -gdwarf-5 use .debug_rnglists
7150 section instead of .debug_ranges. Initialize
7151 ranges_base_label if -gdwarf-5 -gsplit-dwarf.
7152 (dwarf2out_finish): For -gdwarf-5 -gsplit-dwarf call
7153 index_rnglists and add DW_AT_rnglists_base attr. Don't switch
7154 to dwarf_ranges_section here or emit .Ldebug_ranges0 label.
7155 Call output_rnglists for -gdwarf-5.
7156 (dwarf2out_c_finalize): Clear rnglist_idx.
7157
7158 2016-11-01 Fritz Reese <fritzoreese@gmail.com>
7159
7160 * combine.c (simplify_compare_const): Add gcc_fallthrough.
7161
7162 2016-11-01 Bilyan Borisov <bilyan.borisov@arm.com>
7163 Tamar Christina <tamar.christina@arm.com>
7164
7165 * config/arm/arm-c.c (arm_cpu_builtins): New macro definition.
7166 * config/arm/arm_neon.h (vmaxnm_f32): New intrinsinc.
7167 (vmaxnmq_f32): Likewise.
7168 (vminnm_f32): Likewise.
7169 (vminnmq_f32): Likewise.
7170 * config/arm/arm_neon_builtins.def (vmaxnm): New builtin.
7171 (vminnm): Likewise.
7172 * config/arm/neon.md (neon_<fmaxmin_op><mode>, VCVTF): New
7173 expander.
7174
7175 2016-10-31 Michael Meissner <meissner@linux.vnet.ibm.com>
7176
7177 * config/rs6000/vsx.md (VSX_EXTRACT_FL): New iterator for all
7178 binary floating point types supported by the hardware except for
7179 double.
7180 (vsx_xvcvsxwdp_df): Provide scalar result alternative to the
7181 vector instruction for optimizing extracting a SImode from a
7182 V4SImode vector and converting it to floating point.
7183 (vsx_xvcvuxwdp_df): Likewise.
7184 (vsx_extract_si): On ISA 3.0, allow extract target and temporary
7185 registers to be any VSX register. Move stores to the end of the
7186 constraints.
7187 (vsx_extract_si_<uns>float_df): New combiner pattern and splitter
7188 to optimize extracting a SImode from a V4SImode vector and
7189 converting it to a binary floating point type supported by the
7190 hardware. Use the vector converts instead of extracting the
7191 element, sign extending it, and then converting it to double.
7192 Other floating point types than double first convert to double,
7193 then the double is converted to that type.
7194 (vsx_extract_si_<uns>float_<mode>): Likewise.
7195
7196 2016-10-31 Andrew Pinski <apinski@cavium.com>
7197
7198 * config/aarch64/driver-aarch64.c (host_detect_local_cpu):
7199 Rewrite handling of part num to handle the case where
7200 multiple implementers share the same part num.
7201
7202 2016-10-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7203 Jakub Jelinek <jakub@redhat.com>
7204
7205 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): Adjust for -gdwarf-5.
7206 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Likewise.
7207
7208 2016-10-31 Jakub Jelinek <jakub@redhat.com>
7209
7210 * dwarf2out.c (dwarf_AT): Handle DW_AT_dwo_name.
7211 (use_debug_types): Adjust comment for DWARF5 DW_UT_type units.
7212 (new_die): Handle DW_TAG_skeleton_unit like DW_TAG_compile_unit.
7213 (is_cu_die, is_unit_die): Likewise.
7214 (should_move_die_to_comdat, break_out_comdat_types): Adjust
7215 comments for DWARF5 DW_UT_type units.
7216 (output_compilation_unit_header): Add UT argument, output
7217 start of DWARF5 .debug_info section header.
7218 (output_comp_unit): Add dwo_id argument. Adjust
7219 output_compilation_unit_header caller, for DW_UT_split_compile
7220 emit dwo_id field, otherwise padding1. Emit padding2 field.
7221 (add_top_level_skeleton_die_attrs): Add DW_AT_dwo_name
7222 rather than DW_AT_GNU_dwo_name attr for -gdwarf-5.
7223 (output_skeleton_debug_sections): Add dwo_id argument, for
7224 -gdwarf-5 emit DWARF 5 DW_UT_skeleton header.
7225 (output_comdat_type_unit): For -gdwarf-5 emit .debug_info
7226 DW_UT_type or DW_UT_split_type units rather than .debug_types.
7227 (dwarf2out_finish): Use DW_TAG_skeleton_unit rather than
7228 DW_TAG_compile_unit for skeleton unit die. Don't add
7229 DW_AT_GNU_dwo_id attributes for -gdwarf-5, instead pass checksum
7230 address to output_comp_unit and output_skeleton_debug_sections.
7231
7232 * dwarf2out.c (debug_line_str_section): New variable.
7233 (debug_line_str_hash): Likewise.
7234 (DEBUG_LINE_STR_SECTION): Define.
7235 (set_indirect_string): Handle DW_FORM_line_strp like
7236 DW_FORM_strp.
7237 (find_string_form): Fix up formatting.
7238 (size_of_die): Handle DW_FORM_line_strp like DW_FORM_strp.
7239 Fix up indentation.
7240 (output_die): Handle DW_FORM_line_strp.
7241 (DWARF5_USE_DEBUG_LINE_STR): Define.
7242 (output_line_string): New function.
7243 (output_file_names): Add -gdwarf-5 support.
7244 (output_line_info): Likewise.
7245 (init_sections_and_labels): Initialize debug_line_str_section.
7246 (output_indirect_string): Change 2nd argument from void *
7247 to enum dwarf_form form, compare with form rather than
7248 DW_FORM_strp.
7249 (output_indirect_strings): Pass DW_FORM_strp to
7250 output_indirect_string traversion.
7251 (dwarf2out_finish): Output .debug_line_str strings.
7252 (dwarf2out_c_finalize): Clear debug_line_str_section and
7253 debug_line_str_hash.
7254
7255 2016-10-31 Tom Tromey <tom@tromey.com>
7256
7257 PR debug/77315
7258 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_form_tls_address.
7259 (resolve_args_picking_1): Move DW_OP_form_tls_address case next to
7260 DW_OP_GNU_push_tls_address case.
7261 (loc_list_from_tree_1): Use DW_OP_form_tls_address.
7262
7263 2016-10-31 Jakub Jelinek <jakub@redhat.com>
7264
7265 * dwarf2out.h (struct dw_loc_descr_node): Adjust comment
7266 for frame_offset_rel bit.
7267 (struct array_descr_info): Add rank field.
7268 * dwarf2out.c (struct loc_descr_context): Add placeholder_arg
7269 and placeholder_seen fields.
7270 (resolve_args_picking_1): Handle also frame_offset_rel DW_OP_dup
7271 and DW_OP_over. Optimize DW_OP_pick 0 into DW_OP_dup and
7272 DW_OP_pick 1 into DW_OP_over.
7273 (function_to_dwarf_procedure, type_byte_size, field_byte_offset,
7274 gen_variant_part): Clear placeholder_{arg,seen}.
7275 (loc_list_from_tree_1): Drop const from context argument.
7276 Handle integral PLACEHOLDER_EXPR if context->placeholder_arg.
7277 (loc_list_for_address_of_addr_expr_of_indirect_ref,
7278 loc_list_from_tree, loc_descriptor_from_tree): Drop const from
7279 context argument.
7280 (add_scalar_info): Drop const from context argument. Handle
7281 context->placeholder_arg.
7282 (add_bound_info): Drop const from context argument.
7283 (gen_descr_array_type_die): Drop const from ctx variable.
7284 Initialize placeholder_arg and placeholder_seen. Add DW_AT_rank
7285 attribute and use a single DW_TAG_generic_subrange instead of
7286 7 DW_TAG_subrange_type for assumed rank arrays.
7287
7288 * dwarf2out.h (enum dw_val_class): Add dw_val_class_loclistsptr.
7289 * dwarf2out.c (struct dw_loc_list_struct): Change emitted field
7290 from bool to 1-bit uchar bitfield. Add num_assigned and
7291 offset_emitted bitfields.
7292 (dw_val_equal_p): Compare v.val_lbl_id rather than v.val_unsigned
7293 for dw_val_class_lineptr and dw_val_class_macptr. Handle
7294 dw_val_class_loclistsptr.
7295 (new_addr_loc_descr): Fix up formatting.
7296 (DEBUG_LOCLISTS_SECTION, DEBUG_DWO_LOCLISTS_SECTION): Define.
7297 (add_AT_low_high_pc): Fix up formatting.
7298 (add_AT_loclistsptr): New function.
7299 (AT_lbl): Allow dw_val_class_loclistsptr.
7300 (print_dw_val, attr_checksum, attr_checksum_ordered, same_dw_val_p):
7301 Handle dw_val_class_loclistsptr.
7302 (loc_list_idx): New variable.
7303 (output_loclists_offsets, assign_location_list_indexes): New
7304 functions.
7305 (size_of_die): For dw_val_class_loc_list -gsplit-dwarf -gdwarf-5
7306 add size_of_uleb128 of the index. Drop never used
7307 dwarf_split_debug_info AT_index handling. Handle
7308 dw_val_class_loclistsptr.
7309 (value_format): Return DW_FORM_loclistsx for dw_val_class_loc_list
7310 if -gsplit-dwarf -gdwarf-5. Handle dw_val_class_loclistsptr.
7311 (output_loc_list): Handle DWARF 5 .debug_loclists* format.
7312 (output_loc_list_offset): Handle -gsplit-dwarf -gdwarf-5
7313 DW_FORM_loclistx indexes.
7314 (output_attr_index_or_value): Fix up formatting. Don't handle
7315 dw_val_class_loc_list here.
7316 (output_die): Formatting fixes. Handle dw_val_class_loclistsptr.
7317 For dw_val_class_loc_list call output_loc_list_offset rather than
7318 output_attr_index_or_value.
7319 (init_sections_and_labels): For -gdwarf-5 use .debug_loclists
7320 or .debug_loclists.dwo section name for debug_loc_section.
7321 (resolve_addr_in_expr): Formatting fix.
7322 (index_location_lists): Likewise.
7323 (dwarf2out_finish): If there are any location lists, for
7324 -gsplit-dwarf -gdwarf-5 add DW_AT_loclists_base attribute. Call
7325 index_location_lists only if have_location_lists. Call
7326 assign_location_list_indexes for -gsplit-dwarf -gdwarf-5. Emit
7327 .debug_loclists{,.dwo} section header for -gdwarf-5, for -gdwarf-5
7328 -gsplit-dwarf also emit offset table.
7329
7330 * dwarf2out.c (DWARF_LARGEST_DATA_FORM_BITS): Define.
7331 (size_of_die, value_format, output_die): Use
7332 DW_FORM_data16 for 128-bit dw_val_class_const_double or
7333 dw_val_class_wide_int.
7334
7335 * dwarf2out.c (dwarf_op): Renamed to ...
7336 (dwarf_OP): ... this.
7337 (convert_descriptor_to_mode, scompare_loc_descriptor,
7338 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
7339 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr): Adjust
7340 callers.
7341 (dwarf_AT, dwarf_TAG): New functions.
7342 (check_die): Disallow DW_AT_call_all_calls next to
7343 DW_AT_GNU_all_call_sites.
7344 (gen_call_site_die): Use dwarf_TAG and dwarf_AT with DWARF 5 tag
7345 and attributes instead of the corresponding GNU tag and attributes.
7346 (gen_subprogram_die): Likewise. Emit call site information even
7347 for -gdwarf-5 -gstrict-dwarf. Replace DW_AT_GNU_defaulted with
7348 DW_AT_defaulted in comment.
7349 (resolve_addr): Handle DW_AT_call_origin attribute on
7350 DW_TAG_call_site DIE like DW_AT_abstract_origin on
7351 DW_TAG_GNU_call_site DIE.
7352
7353 * dwarf2out.c (dwarf_op): New function.
7354 (size_of_loc_descr): Handle DW_OP_{implicit_pointer,entry_value},
7355 DW_OP_{const,regval,deref}_type and DW_OP_{convert,reinterpret}.
7356 (output_loc_operands, output_loc_operands_raw): Likewise.
7357 (resolve_args_picking_1, prune_unused_types_walk_loc_descr,
7358 mark_base_types, hash_loc_operands, compare_loc_operands): Likewise.
7359 (resolve_addr_in_expr): Likewise. Only punt for !dwarf_strict
7360 if dwarf_version < 5.
7361 (convert_descriptor_to_mode): Use dwarf_op (DW_OP_xxx) instead of
7362 DW_OP_GNU_xxx.
7363 (scompare_loc_descriptor, ucompare_loc_descriptor,
7364 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
7365 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr,
7366 optimize_location_into_implicit_ptr): Likewise. Only punt for
7367 !dwarf_strict if dwarf_version < 5.
7368 (string_cst_pool_decl): Adjust comment.
7369 (non_dwarf_expression): Handle DW_OP_implicit_pointer.
7370
7371 * dwarf2out.h (enum dw_val_class): Add dw_val_class_const_implicit,
7372 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
7373 (struct dw_val_node): Add val_file_implicit field.
7374 * dwarf2out.c (dw_val_equal_p, print_dw_val, attr_checksum,
7375 attr_checksum_ordered, same_dw_val_p, size_of_die, value_format,
7376 output_die): Handle dw_val_class_const_implicit,
7377 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
7378 (abbrev_die_table): Change into va_gc vec.
7379 (abbrev_die_table_allocated, abbrev_die_table_in_use,
7380 ABBREV_DIE_TABLE_INCREMENT): Remove.
7381 (AT_int, AT_unsigned, AT_file): Allow dw_val_class_*_implicit.
7382 (abbrev_opt_start, abbrev_usage_count, sorted_abbrev_dies): New
7383 variables.
7384 (build_abbrev_table): Adjust for abbrev_die_table being a va_gc vec.
7385 If abbrev_opt_start, fill in abbrev_usage_count and abbrev_dies
7386 vectors.
7387 (die_abbrev_cmp, optimize_implicit_const, optimize_abbrev_table): New
7388 functions.
7389 (output_die_abbrevs): For DW_FORM_implicit_const emit sleb128 with
7390 the implicit value.
7391 (output_abbrev_section): Adjust for abbrev_die_table being a va_gc
7392 vec.
7393 (output_comp_unit): Initialize abbrev_opt_start if emitting the main
7394 unit. Call optimize_abbrev_table.
7395 (dwarf2out_init, dwarf2out_finish, dwarf2out_c_finalize): Adjust for
7396 abbrev_die_table being a va_gc vec.
7397
7398 PR tree-optimization/77860
7399 * tree-ssa-reassoc.c (eliminate_using_constants): Handle
7400 also integral complex and vector constants.
7401
7402 * dwarf2out.c (dwarf2out_define, dwarf2out_undef, output_macinfo_op,
7403 optimize_macinfo_range, save_macinfo_strings): Replace
7404 DW_MACRO_GNU_* constants with corresponding DW_MACRO_* constants.
7405 (output_macinfo): Likewise. Emit .debug_macro* rather than
7406 .debug_macinfo* even for -gstrict-dwarf -gdwarf-5.
7407 (init_sections_and_labels): Use .debug_macro* labels rather than
7408 .debug_macinfo* labels even for -gstrict-dwarf -gdwarf-5.
7409 (dwarf2out_finish): Use DW_AT_macros instead of DW_AT_macro_info
7410 or DW_AT_GNU_macros for -gdwarf-5.
7411
7412 2016-10-31 Waldemar Brodkorb <wbx@openadk.org>
7413
7414 * config/microblaze/linux.h (UCLIBC_DYNAMIC_LINKER): Define.
7415
7416 2016-09-11 Le-Chun Wu <lcwu@google.com>
7417 Mark Wielaard <mjw@redhat.com>
7418
7419 * common.opt (Wshadow=global): New option. Default for -Wshadow.
7420 (Wshadow=local): New option.
7421 (Wshadow-local): Hidden alias for -Wshadow=local.
7422 (Wshadow=compatible-local): New option.
7423 (Wshadow-compatible-local): Hidden alias for
7424 -Wshadow=compatible-local.
7425 * doc/invoke.texi: Document Wshadow=global, Wshadow=local and
7426 Wshadow=compatible-local.
7427
7428 2016-10-31 Bin Cheng <bin.cheng@arm.com>
7429
7430 * tree-vect-slp.c (vect_get_and_check_slp_defs): New parameter SWAP.
7431 Check slp defs for COND_EXPR by swapping/inverting operands if the
7432 new parameter SWAP indicates so.
7433 (vect_build_slp_tree_1): New parameter SWAP. Check COND_EXPR stmt
7434 is isomorphic to the first stmt via swapping/inverting. Store swap
7435 information in the new parameter SWAP.
7436 (vect_build_slp_tree): New local array SWAP and pass it to function
7437 vect_build_slp_tree_1. Cleanup result handling code for function
7438 call to vect_get_and_check_slp_defs. Skip operand swapping if the
7439 order of operands has been fixed as indicated by SWAP[i].
7440
7441 2016-10-31 Bin Cheng <bin.cheng@arm.com>
7442
7443 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): Skip
7444 unnecessary data dependence check after visited store stmt.
7445
7446 2016-10-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7447
7448 PR tree-optimization/71915
7449 PR tree-optimization/71490
7450 * gimple-ssa-strength-reduction.c (struct slsr_cand_d): Add
7451 stride_type field.
7452 (find_basis_for_base_expr): Require stride types to match when
7453 seeking a basis.
7454 (alloc_cand_and_find_basis): Record the stride type.
7455 (slsr_process_phi): Pass stride type to alloc_cand_and_find_basis.
7456 (backtrace_base_for_ref): Pass types to legal_cast_p_1 rather than
7457 the expressions having those types.
7458 (slsr_process_ref): Pass stride type to alloc_cand_and_find_basis.
7459 (create_mul_ssa_cand): Likewise.
7460 (create_mul_imm_cand): Likewise.
7461 (create_add_ssa_cand): Likewise.
7462 (create_add_imm_cand): Likewise.
7463 (legal_cast_p_1): Change interface to accept types rather than the
7464 expressions having those types.
7465 (legal_cast_p): Pass types to legal_cast_p_1.
7466 (slsr_process_cast): Pass stride type to
7467 alloc_cand_and_find_basis.
7468 (slsr_process_copy): Likewise.
7469 (dump_candidate): Display stride type when a cast exists.
7470 (create_add_on_incoming_edge): Introduce a cast when necessary for
7471 the stride type.
7472 (analyze_increments): Change the code checking for invalid casts
7473 to rely on the stride type, and update the documentation and
7474 example. Change the code checking for pointer multiplies to rely
7475 on the stride type.
7476 (insert_initializers): Introduce a cast when necessary for the
7477 stride type. Use the stride type for the type of the initializer.
7478
7479 2016-10-30 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7480
7481 * config/arm/arm.c (arm_const_not_ok_for_debug_p): Use VAR_P.
7482
7483 2016-10-29 Jakub Jelinek <jakub@redhat.com>
7484
7485 PR rtl-optimization/77919
7486 * expr.c (expand_expr_real_1) <normal_inner_ref>: Only avoid forcing
7487 into memory if both modes are complex and their inner modes have the
7488 same precision. If the two modes are different complex modes, convert
7489 each part separately and generate a new CONCAT.
7490
7491 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
7492
7493 * config/pa/pa64-hpux.h (FINI_SECTION_ASM_OP): Define to null string.
7494
7495 2016-10-29 Jakub Jelinek <jakub@redhat.com>
7496
7497 PR target/78148
7498 * gimple-ssa-store-merging.c
7499 (imm_store_chain_info::output_merged_store): Use build_aligned_type
7500 instead of SET_TYPE_ALIGN on shared integral type.
7501
7502 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
7503
7504 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
7505 (MALLOC_ABI_ALIGNMENT): Define to 128 on all targets except SOM.
7506 Adjust comment.
7507
7508 2016-10-28 Jeff Law <law@redhat.com>
7509
7510 * config/vax/vax.h (REGNO_REG_CLASS): Access the REGNO argument.
7511 * config/spu/spu.h (REGNO_REG_CLASS): Likewise.
7512
7513 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
7514
7515 * doc/sourcebuild.texi (Ada Tests): Remove mention of gcc chapter.
7516
7517 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
7518
7519 * target.def (min_arithmetic_precision): New hook.
7520 * doc/tm.texi.in (Misc): Add TARGET_MIN_ARITHMETIC_PRECISION.
7521 * doc/tm.texi: Regenerate.
7522 * internal-fn.c (expand_arith_overflow): Adjust handling of target
7523 dependent support by means of TARGET_MIN_ARITHMETIC_PRECISION.
7524 * targhooks.c (default_min_arithmetic_precision): New function.
7525 * targhooks.h (default_min_arithmetic_precision): Declare.
7526 * config/sparc/sparc.c (TARGET_MIN_ARITHMETIC_PRECISION): Define.
7527 (sparc_min_arithmetic_precision): New function.
7528
7529 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
7530
7531 PR target/71847
7532 * combine.c (change_zero_ext): Handle zero_ext of hard registers.
7533 Swap commutative operands in new RTL if needed. Handle zero_ext
7534 in the set_dest.
7535 (recog_for_combine): Pass *pnewpat to change_zero_ext instead of
7536 PATTERN (insn).
7537
7538 2016-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7539 Kugan Vivekanandarajah <kuganv@linaro.org>
7540 Jim Wilson <jim.wilson@linaro.org>
7541
7542 PR tree-optimization/43721
7543 * target.def: New hook expand_divmod_libfunc.
7544 * doc/tm.texi.in: Add hook for TARGET_EXPAND_DIVMOD_LIBFUNC.
7545 * doc/tm.texi: Regenerate.
7546 * internal-fn.def: Add new entry for DIVMOD ifn.
7547 * internal-fn.c (expand_DIVMOD): New.
7548 * tree-ssa-math-opts.c: Include optabs-libfuncs.h, tree-eh.h,
7549 targhooks.h.
7550 (widen_mul_stats): Add new field divmod_calls_inserted.
7551 (target_supports_divmod_p): New.
7552 (divmod_candidate_p): Likewise.
7553 (convert_to_divmod): Likewise.
7554 (pass_optimize_widening_mul::execute): Call calculate_dominance_info,
7555 renumber_gimple_stmt_uids at beginning of function. Call
7556 convert_to_divmod and record stats for divmod.
7557 * config/arm/arm.c (arm_expand_divmod_libfunc): Override hook
7558 TARGET_EXPAND_DIVMOD_LIBFUNC.
7559 * doc/sourcebuild.texi: Add items for arm_divmod_simode, divmod,
7560 divmod_simode.
7561
7562 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
7563 Segher Boessenkool <segher@kernel.crashing.org>
7564
7565 * dojump.c (do_jump_by_parts_greater_rtx): Invert probability when
7566 swapping the arms of the branch.
7567 * internal-fn.c (expand_addsub_overflow): Use a straight-line code
7568 sequence for the generic signed-signed-signed case.
7569
7570 2016-10-28 Jeff Law <law@redhat.com>
7571
7572 * config/bfin/bfin.c (bfin_legitimate_address_p): Add missing
7573 fallthru comment.
7574 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
7575
7576 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
7577
7578 PR rtl-optimization/78029
7579 * function.c (prologue_contains, epilogue_contains): New functions.
7580 (record_prologue_seq, record_epilogue_seq): New functions.
7581 * function.h (prologue_contains, epilogue_contains,
7582 record_prologue_seq, record_epilogue_seq): New declarations.
7583 * sched-deps.c (sched_analyze_insn): Make dependencies to prevent
7584 mixing prologue and epilogue insns.
7585 (init_deps): Initialize the new fields in struct deps_desc.
7586 * sched-int.h (struct deps_desc): New fields last_prologue,
7587 last_epilogue, and last_logue_was_epilogue.
7588 * shrink-wrap.c (emit_common_heads_for_components): Record all
7589 emitted prologue and epilogue insns.
7590 (emit_common_tails_for_components): Ditto.
7591 (insert_prologue_epilogue_for_components): Ditto.
7592
7593 2016-10-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7594
7595 PR middle-end/22141
7596 * Makefile.in (OBJS): Add gimple-ssa-store-merging.o.
7597 * common.opt (fstore-merging): New Optimization option.
7598 * opts.c (default_options_table): Add entry for
7599 OPT_ftree_store_merging.
7600 * fold-const.h (can_native_encode_type_p): Declare prototype.
7601 * fold-const.c (can_native_encode_type_p): Define.
7602 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Define.
7603 (PARAM_MAX_STORES_TO_MERGE): Likewise.
7604 * timevar.def (TV_GIMPLE_STORE_MERGING): New timevar.
7605 * passes.def: Insert pass_tree_store_merging.
7606 * tree-pass.h (make_pass_store_merging): Declare extern
7607 prototype.
7608 * gimple-ssa-store-merging.c: New file.
7609 * doc/invoke.texi (Optimization Options): Document
7610 -fstore-merging.
7611 (--param documentation): Document store-merging-allow-unaligned
7612 and max-stores-to-merge.
7613
7614 2016-10-28 Will Schmidt <will_schmidt@vnet.ibm.com>
7615
7616 PR middle-end/72747
7617 * gimplify.c (gimplify_init_constructor): Move emit of constructor
7618 assignment to earlier in the if/else logic.
7619
7620 2016-10-28 Richard Biener <rguenther@suse.de>
7621
7622 PR middle-end/78128
7623 PR middle-end/71002
7624 * fold-const.c (make_bit_field_ref): Only adjust alias set
7625 when the original alias set was zero.
7626
7627 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7628
7629 * config/s390/s390.c (s390_adjust_loop_scan_osc): New function.
7630 (s390_adjust_loops): New function.
7631 (s390_reorg): Invoke s390_adjust_loops.
7632 * config/s390/s390.md (UNSPEC_OSC_BREAK): New constant.
7633 ("osc_break"): New insn definition.
7634
7635 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7636
7637 * config/s390/s390.opt: Support alternate cpu level naming (archXX).
7638 * config.gcc: Support alternate archXX cpu levels with
7639 --with-arch= and --with-tune=.
7640 * config/s390/linux.h: Translate new archXX cpu levels to the
7641 original names when calling GAS.
7642 * config/s390/tpf.h: Likewise.
7643 * doc/invoke.texi: Document the alternate cpu level names.
7644
7645 2016-10-28 Jakub Jelinek <jakub@redhat.com>
7646
7647 PR rtl-optimization/77919
7648 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force CONCAT into
7649 MEM if mode1 is not a complex mode.
7650
7651 PR rtl-optimization/78132
7652 * ree.c (combine_reaching_defs): Give up if copy_needed and
7653 !HARD_REGNO_MODE_OK (REGNO (src_reg), dst_mode).
7654
7655 2016-10-27 Eric Botcazou <ebotcazou@adacore.com>
7656
7657 * config/sparc/sparc.md (<*vlop:code><VL:mode>3): Remove leading '*'.
7658
7659 2016-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
7660
7661 * config/rs6000/constraints.md (wH constraint): Add new
7662 constraints for allowing 32-bit integers (and eventually 8/16-bit
7663 integers) into the vector registers.
7664 (wI constraint): Likewise.
7665 (wJ constraint): Likewise.
7666 (wK constraint): Likewise.
7667 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
7668 -mvsx-small-integer as a default option for ISA 2.07
7669 (i.e. power8).
7670 (POWERPC_MASKS): Likewise.
7671 * config/rs6000/rs6000.opt (-mvsx-small-integer): Add new debug
7672 switch to turn off small integer support in vector registers.
7673 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Eliminate
7674 test for -mupper-regs-di, since it is already done with the
7675 reg_add[mode].scalar_in_vsx_p. Add support for the switch
7676 -mvsx-small-integer.
7677 (rs6000_debug_reg_global): Add support for wH, wI, wJ, and wK
7678 constraints.
7679 (rs6000_setup_reg_addr_masks): Likewise.
7680 (rs6000_init_hard_regno_mode_ok): Likewise.
7681 (rs6000_option_override_internal): Add consistency checks for
7682 -mvsx-small-integer.
7683 (rs6000_secondary_reload_simple_move): SImode is a simple move if
7684 -mvsx-small-integer.
7685 (rs6000_secondary_reload): Use std::swap.
7686 (rs6000_preferred_reload_class): Don't prefer FLOAT_REGS over
7687 VSX_REGS for small integers in vector registers, since there is no
7688 D-FORM address mode for such types.
7689 (rs6000_register_move_cost): Use FIRST_FPR_REGNO instead of 32.
7690 (rs6000_opt_masks): Add -mvsx-small-integer.
7691 * config/rs6000/vsx.md (VSINT_84): Add SImode for small integer
7692 support.
7693 (VSX_EXTRACT_I2): Clone VSX_EXTRACT_I, but drop V4SI since SImode
7694 extracts can be done on ISA 2.07.
7695 (vsx_extract_<mode>): Add support for small integers in vsx
7696 registers.
7697 (vsx_extract_<mode>_p9): Use 'v' instead of VSX_EX, since we no
7698 longer support V4SImode in this pattern.
7699 (vsx_extract_si): New insn to support extraction of SImode in ISA
7700 2.07 using either xxextractuw or vspltw.
7701 (vsx_extract_<mode>_p8): Use 'v' instead of VSX_EX, since we no
7702 longer support V4SImode in this pattern.
7703 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wH, wI,
7704 wJ, and wK constraints.
7705 * config/rs6000/rs6000.md (f32_sv): Use correct instruction for
7706 storing SDmode with VSX instructions.
7707 (zero_extendsi<mode>2): Reorder pattern, so RLDICL comes after the
7708 GPR load and before the FPR and VSX loads. Remove ??, ! from the
7709 constraints. Add MFVSRWZ and XXEXTRACTUW instructions to support
7710 small integers in vector registers.
7711 (extendsi<mode>2): Reorder pattern, so EXTSW comes after the GPR
7712 load and before the FPR and VSX loads. Remove ??, ! from the
7713 constraints. Add VEXTSW2D support for small integers in vector
7714 registers.
7715 (lfiwax): Remove ! constraint. Add VEXTSW2D support for small
7716 integers in vector registers.
7717 (floatsi<mode>2_lfiwax): If -mvsx-small-integer issue a normal
7718 move instead of using an UNSPEC.
7719 (lfiwzx): Remove ! constraint. Add XXEXTRACTUW support for small
7720 integers in vector registers.
7721 (floatunssi<mode>2_lfiwzx): If -mvsx-small-integer issue a normal
7722 move instead of using an UNSPEC.
7723 (movsi_internal1): Add support for -mvsx-small-integer. Align
7724 columns so that it is more readable.
7725 (SImode splitter for ISA 3.0 constants): Add splitter for
7726 -128..127 constants that can easily be constructed on ISA 3.0.
7727 * doc/md.texi (PowerPC Constraints): Document wH, wI, wJ, and wK
7728 constraints.
7729
7730 2016-10-27 Jakub Jelinek <jakub@redhat.com>
7731
7732 PR middle-end/78025
7733 * omp-simd-clone.c (simd_clone_adjust): Handle noreturn declare simd
7734 functions.
7735
7736 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
7737
7738 * builtins.c (expand_builtin_nonlocal_goto): Avoid evaluating
7739 PIC_OFFSET_TABLE_REGNUM twice.
7740
7741 2016-10-27 Bin Cheng <bin.cheng@arm.com>
7742
7743 * match.pd ((convert (op:s (convert@2 @0) (convert?@3 @1)))): Add
7744 support for constant operand for OP.
7745
7746 2016-10-27 Jakub Jelinek <jakub@redhat.com>
7747
7748 * dwarf2out.c (gen_member_die): Only reparent_child instead of
7749 splice_child_die if child doesn't have DW_AT_specification attribute.
7750
7751 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
7752
7753 * config/arm/arm.h (TARGET_HAVE_LDREX): Define for ARMv8-M Baseline.
7754 (TARGET_HAVE_LDREXBH): Likewise.
7755 (TARGET_HAVE_LDACQ): Likewise.
7756
7757 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
7758
7759 * config/arm/arm.c (arm_split_atomic_op): Add function comment. Add
7760 logic to to decide whether to copy over old value to register for new
7761 value.
7762 * config/arm/sync.md: Add comments explaning why mode and code
7763 attribute are not defined in iterators.md
7764 (thumb1_atomic_op_str): New code attribute.
7765 (thumb1_atomic_newop_str): Likewise.
7766 (thumb1_atomic_fetch_op_str): Likewise.
7767 (thumb1_atomic_fetch_newop_str): Likewise.
7768 (thumb1_atomic_fetch_oldop_str): Likewise.
7769 (atomic_exchange<mode>): Add new ARMv8-M Baseline only alternatives to
7770 mirror the more restrictive constraints of the Thumb-1 insns after
7771 split compared to Thumb-2 counterpart insns.
7772 (atomic_<sync_optab><mode>): Likewise. Add comment to keep constraints
7773 in sync with non atomic version.
7774 (atomic_nand<mode>): Likewise.
7775 (atomic_fetch_<sync_optab><mode>): Likewise.
7776 (atomic_fetch_nand<mode>): Likewise.
7777 (atomic_<sync_optab>_fetch<mode>): Likewise.
7778 (atomic_nand_fetch<mode>): Likewise.
7779 * config/arm/thumb1.md (thumb1_addsi3): Add comment to keep contraint
7780 in sync with atomic version.
7781 (thumb1_subsi3_insn): Likewise.
7782 (thumb1_andsi3_insn): Likewise.
7783 (thumb1_iorsi3_insn): Likewise.
7784 (thumb1_xorsi3_insn): Likewise.
7785
7786 2016-10-27 Nick Clifton <nickc@redhat.com>
7787
7788 * plugin.c (register_plugin_info): Produce an error message if the
7789 plugin is not found in the hash table.
7790
7791 2016-10-27 Bin Cheng <bin.cheng@arm.com>
7792
7793 * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
7794 New pattern.
7795
7796 2016-10-26 Kelvin Nilsen <kelvin@gcc.gnu.org>
7797
7798 PR target/78056
7799 * config/rs6000/rs6000.c (spe_init_builtins): Modify loops to not
7800 define builtin functions from the bdesc_spe_predicates or
7801 bdesc_spe_evsel arrays if the builtin mask is not compatible with
7802 the current compiler configuration.
7803 (paired_init_builtins): Modify loop to not define define builtin
7804 functions from the bdesc_paried_preds array if the builtin mask is
7805 not compatible with the current compiler configuration.
7806 (altivec_init_builtins): Modify loops to not define the
7807 __builtin_altivec_stxvl function nor the builtin functions from
7808 the bdesc_dst or bdesc_altivec_preds, or bdesc_abs arrays if the
7809 builtin mask is not compatible with the current compiler
7810 configuration.
7811
7812 2016-10-26 Jeff Law <law@redhat.com>
7813
7814 * config/sh/sh.c (output_branch): Add missing fallthru comments.
7815 (gen_shl_and): Likewise.
7816 * config/sh/sh.md (movsicc): Add missing fallthru comments.
7817
7818 * config/mips/mips.c (mips16_constant_cost): Add missing
7819 fallthru comments.
7820 (mips16_build_call_stub): Increase buffer size. Adjust
7821 fallthru comment.
7822
7823 2016-10-26 David Malcolm <dmalcolm@redhat.com>
7824
7825 * print-rtl.c (rtx_writer::print_rtx_operand_code_u): Print
7826 INSN_UIDs for all insns in compact mode.
7827 (rtx_writer::print_rtx): Likewise.
7828 * print-rtl.h (rtx_writer::flag_compact): Update comment.
7829 * rtl-tests.c (selftest::test_dumping_insns): Update expected
7830 output to include INSN_UID.
7831 (selftest::test_uncond_jump): Likewise.
7832
7833 2016-10-26 Pat Haugen <pthaugen@us.ibm.com>
7834
7835 * haifa-sched.c (call_used_regs_num): Rename to...
7836 (call_saved_regs_num): ...this.
7837 (fixed_regs_num): New variable.
7838 (sched_pressure_start_bb): Subtract out fixed_regs. Scale call_saved
7839 regs not call_used.
7840 (alloc_global_sched_pressure_data): Compute call_saved and fixed regs.
7841
7842 2016-10-26 David Malcolm <dmalcolm@redhat.com>
7843
7844 * print-rtl-function.c (print_rtx_function): Rewrite in terms of
7845 class rtx_writer.
7846 * print-rtl.c (outfile): Delete global.
7847 (sawclose): Likewise.
7848 (indent): Likewise.
7849 (in_call_function_usage): Likewise.
7850 (flag_compact): Likewise.
7851 (flag_simple): Likewise.
7852 (rtx_writer::rtx_writer): New ctor.
7853 (print_rtx_operand_code_0): Convert to...
7854 (rtx_writer::print_rtx_operand_code_0): ...this.
7855 (print_rtx_operand_code_e): Convert to...
7856 (rtx_writer::print_rtx_operand_code_e): ...this.
7857 (print_rtx_operand_codes_E_and_V): Convert to...
7858 (rtx_writer::print_rtx_operand_codes_E_and_V): ...this.
7859 (print_rtx_operand_code_i): Convert to...
7860 (rtx_writer::print_rtx_operand_code_i): ...this.
7861 (print_rtx_operand_code_r): Convert to...
7862 (rtx_writer::print_rtx_operand_code_r): ...this.
7863 (print_rtx_operand_code_u): Convert to...
7864 (rtx_writer::print_rtx_operand_code_u): ...this.
7865 (print_rtx_operand): Convert to...
7866 (rtx_writer::print_rtx_operand): ...this.
7867 (print_rtx): Convert to...
7868 (rtx_writer::print_rtx): ...this.
7869 (print_inline_rtx): Rewrite in terms of class rtx_writer.
7870 (debug_rtx): Likewise.
7871 (print_rtl): Convert to...
7872 (rtx_writer::print_rtl): ...this.
7873 (print_rtl): Reimplement in terms of class rtx_writer.
7874 (print_rtl_single): Rewrite in terms of class rtx_writer.
7875 (print_rtl_single_with_indent): Convert to..
7876 (rtx_writer::print_rtl_single_with_indent): ...this.
7877 (print_simple_rtl): Rewrite in terms of class rtx_writer.
7878 * print-rtl.h (flag_compact): Delete decl.
7879 (class rtx_writer): New class.
7880 * rtl-tests.c (selftest::assert_rtl_dump_eq): Rewrite in terms of
7881 class rtx_writer.
7882
7883 2016-10-26 Jeff Law <law@redhat.com>
7884
7885 * config/microblaze/microblaze.c (tls_mentioned_p): Avoid
7886 fallthru.
7887
7888 * config/arc/arc.c (acr_print_operand): Adjust fallthru comment.
7889 (check_if_valid_sleep_operand): Add missing fallthru comment.
7890 (arc_register_move_cost): Increase buffer size.
7891 * config/arc/arc.md (cbranch4si_scratch): Add missing fallthru
7892 comment.
7893 * config/arc/predicates.md (move_str_operand): Avoid fallthru.
7894
7895 * config/cr16/cr16.c (cr16_print_operand): Add missing fallthru
7896 comment. Add gcc_unreachable for path that should never happen.
7897
7898 * config/epiphany/epiphany.c (epiphany_print_operand): Adjust
7899 fallthru comment.
7900
7901 2016-10-26 Jakub Jelinek <jakub@redhat.com>
7902 Martin Liska <mliska@suse.cz>
7903
7904 PR fortran/77973
7905 * gimplify.c (gimplify_adjust_omp_clauses_1): For all added map
7906 clauses with OMP_CLAUSE_SIZE being a decl, call omp_notice_variable
7907 on outer context if any.
7908
7909 2016-10-26 Jakub Jelinek <jakub@redhat.com>
7910
7911 * gen-pass-instances.awk (adjust_linenos): Increment pass_lines[p]
7912 by increment rather than double it.
7913 (insert_remove_pass): Strip leading whitespace from args[3]. Don't
7914 emit a space before args[4].
7915 (END): Don't emit a space before with_arg.
7916
7917 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
7918
7919 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Add new ARMv8-M
7920 Baseline only alternatives to (i) hold store atomic success value in a
7921 return register rather than a scratch register, (ii) use a low register
7922 for it and to (iii) ensure the cbranchsi insn generated by the split
7923 respect the constraints of Thumb-1 cbranchsi4_insn and
7924 cbranchsi4_scratch.
7925 * config/arm/thumb1.md (cbranchsi4_insn): Add comment to indicate
7926 constraints must match those in atomic_compare_and_swap.
7927 (cbranchsi4_scratch): Likewise.
7928
7929 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
7930
7931 * config/arm/arm.c (arm_expand_compare_and_swap): Add new bdst local
7932 variable. Add the new parameter to the insn generator. Set that
7933 parameter to be CC flag for 32-bit targets, bval otherwise. Set the
7934 return value from the negation of that parameter for Thumb-1, keeping
7935 the logic unchanged otherwise except for using bdst as the destination
7936 register of the compare_and_swap insn.
7937 (arm_split_compare_and_swap): Add explanation about how is the value
7938 returned to the function comment. Rename scratch variable to
7939 neg_bval. Adapt initialization of variables holding operands to the
7940 new operand numbers. Use return register to hold result of store
7941 exclusive for Thumb-1, scratch register otherwise. Construct the
7942 appropriate cbranch for Thumb-1 targets, keeping the logic unchanged
7943 for 32-bit targets. Guard Z flag setting to restrict to 32bit targets.
7944 Use gen_cbranchsi4 rather than hand-written conditional branch to loop
7945 for strongly ordered compare_and_swap.
7946 * config/arm/predicates.md (cc_register_operand): New predicate.
7947 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Use a
7948 match_operand with the new predicate to accept either the CC flag or a
7949 destination register for the boolean return value, restricting it to
7950 CC flag only via constraint. Adapt operand numbers accordingly.
7951
7952 2016-10-26 Jeff Law <law@redhat.com>
7953
7954 * config/fr30/fr30.c (fr30_print_operand): Adjust fallthru comment.
7955
7956 * config/frv/frv.c (comparison_string): Do not fall through after
7957 an error.
7958
7959 * config/iq2000/iq2000.c (iq2000_function_arg): Adjust fallthru
7960 comment.
7961 (expand_one_builtin): Add missing break.
7962
7963 * config/m32c/m32c.c (encode_pattern_1): Add fallthru comment.
7964 (m32c_legitimate_address_p): Likewise.
7965
7966 * config/m32r/m32r.c (m32r_print_operand): Adjust fallthru comment.
7967
7968 * config/mcore/mcore.c (mcore_gen_compare): Adjust fallthru comments.
7969
7970 * config/microblaze/microblaze.c (microblaze_function_arg): Adjust
7971 fallthru comment.
7972
7973 * config/msp430/msp430.c (msp430_legitimate_address_p): Adjust
7974 fallthru comment.
7975
7976 * config/nios2/nios2.c (nios2_rtx_costs): Avoid fallthru.
7977
7978 * config/rl78/rl78.c (rl78_calculate_death_notes): Add fallthru
7979 comment.
7980 (rl78_asm_ctor_dtor): Increase buffer size.
7981
7982 * config/stormy16/stormy16.c (xstormy16_asm_output_destrutor): Increase
7983 buffer size.
7984 (xstormy16_asm_output_constructor): Likewise.
7985
7986 * config/pa/pa.c (pa_asm_output_mi_thunk): Increase buffer
7987 size.
7988
7989 * config/h8300/h8300.c (h8300_print_operand): Adjust FALLTHRU
7990 comment to silence warning.
7991
7992 * config/spu/spu.c (spu_sched_reorder): Add missing fallthru comment.
7993 (spu_legitimate_address_p): Fix logic error and add missing fallthru
7994 comment.
7995
7996 2016-10-26 Michael Matz <matz@suse.de>
7997
7998 PR tree-optimization/78060
7999 PR tree-optimization/78061
8000 PR tree-optimization/78088
8001 * tree-ssa-loop-split.c (easy_exit_values): New function.
8002 (tree_ssa_split_loops): Use it.
8003 (compute_new_first_bound): Change order of operations,
8004 fix invalid use of types.
8005
8006 2016-10-26 Georg-Johann Lay <avr@gjlay.de>
8007
8008 gen-pass-instances.awk is sensitive to the order in which
8009 passes are added; passes that appear later have to be added first.
8010
8011 PR target/71676
8012 PR target/71678
8013 * config/avr/avr-passes.def: Swap order of directives for
8014 gen-pass-instances.awk.
8015
8016 2016-10-25 Jeff Law <law@redhat.com>
8017
8018 * config/vax/vax.c (vad_address_cost_1): Add missing FALLTHRU comment.
8019 (vax_notice_update_cc): Likewise.
8020
8021 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
8022
8023 * config.gcc (sparc*-*-solaris2*): Adjust.
8024 (sparc64-*-linux*): Likewise.
8025 * config/sparc/default-64.h: Rename to...
8026 * config/sparc/default64.h: ...this.
8027 * config/sparc/sparc.c (sparc_option_override): Replace TARGET_64BIT
8028 with TARGET_ARCH64.
8029 (sparc_mangle_type): Replace !TARGET_64BIT with TARGET_ARCH32.
8030 * config/sparc/sparc.h: Minor tweaks.
8031 * config/sparc/sparc.md: Replace !TARGET_64BIT and !TARGET_ARCH64 with
8032 TARGET_ARCH32 throughout. Minor various tweaks throughout.
8033
8034 2016-10-25 David Malcolm <dmalcolm@redhat.com>
8035
8036 * input.c (fcache::file_patch): Add comment about lifetime.
8037 (selftest::cpp_reader_ptr): New class.
8038 (selftest::lexer_test): Convert m_parser from cpp_reader *
8039 to a cpp_reader_ptr, and move m_tempfile to after it.
8040 (selftest::lexer_test::lexer_test): Update for above reordering.
8041 (lexer_test::~lexer_test): Move cleanup of m_parser to
8042 cpp_reader_ptr's dtor.
8043
8044 2016-10-25 David Malcolm <dmalcolm@redhat.com>
8045
8046 * toplev.c (toplev::main): Remove call to
8047 location_adhoc_data_fini.
8048
8049 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
8050
8051 * tree.h (wi::fits_to_tree_p): Accept only 0 and 1 for boolean types.
8052 * tree.c (int_fits_type_p): Likewise. Adjust head comment.
8053
8054 2016-10-25 David Malcolm <dmalcolm@redhat.com>
8055
8056 * ggc-tests.c (forcibly_ggc_collect): Rename to...
8057 (selftest::forcibly_ggc_collect): ...this, and remove "static".
8058 (test_basic_struct): Update for above renaming.
8059 (test_length): Likewise.
8060 (test_union): Likewise.
8061 (test_finalization): Likewise.
8062 (test_deletable_global): Likewise.
8063 (test_inheritance): Likewise.
8064 (test_chain_next): Likewise.
8065 (test_user_struct): Likewise.
8066 (test_tree_marking): Likewise.
8067 * selftest-run-tests.c (selftest::run_tests): Call
8068 selftest::forcibly_ggc_collect at the end of the selftests.
8069 * selftest.h (selftest::forcibly_ggc_collect): New decl.
8070
8071 2016-10-25 Jakub Jelinek <jakub@redhat.com>
8072
8073 PR target/78102
8074 * optabs.def (vcondeq_optab, vec_cmpeq_optab): New optabs.
8075 * optabs.c (expand_vec_cond_expr): For comparison codes
8076 EQ_EXPR and NE_EXPR, attempt vcondeq_optab as fallback.
8077 (expand_vec_cmp_expr): For comparison codes
8078 EQ_EXPR and NE_EXPR, attempt vec_cmpeq_optab as fallback.
8079 * optabs-tree.h (expand_vec_cmp_expr_p, expand_vec_cond_expr_p):
8080 Add enum tree_code argument.
8081 * optabs-query.h (get_vec_cmp_eq_icode, get_vcond_eq_icode): New
8082 inline functions.
8083 * optabs-tree.c (expand_vec_cmp_expr_p): Add CODE argument. For
8084 CODE EQ_EXPR or NE_EXPR, attempt to use vec_cmpeq_optab as
8085 fallback.
8086 (expand_vec_cond_expr_p): Add CODE argument. For CODE EQ_EXPR or
8087 NE_EXPR, attempt to use vcondeq_optab as fallback.
8088 * tree-vect-generic.c (expand_vector_comparison,
8089 expand_vector_divmod, expand_vector_condition): Adjust
8090 expand_vec_cmp_expr_p and expand_vec_cond_expr_p callers.
8091 * tree-vect-stmts.c (vectorizable_condition,
8092 vectorizable_comparison): Likewise.
8093 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern,
8094 check_bool_pattern, search_type_for_mask_1): Likewise.
8095 * expr.c (do_store_flag): Likewise.
8096 * doc/md.texi (@code{vec_cmpeq@var{m}@var{n}},
8097 @code{vcondeq@var{m}@var{n}}): Document.
8098 * config/i386/sse.md (vec_cmpeqv2div2di, vcondeq<VI8F_128:mode>v2di):
8099 New expanders.
8100
8101 2016-10-25 Jeff Law <law@redhat.com>
8102
8103 * config/v850/v850.c (v850_handle_data_area_attribute): Fix fallthru
8104 comment.
8105 (v850_output_aligned_bss): Add missing break.
8106
8107 * config/m68k/m68k.c (m68k_get_reloc_decoration): Add gcc_unreachable.
8108
8109 2016-10-25 Martin Liska <mliska@suse.cz>
8110
8111 PR sanitizer/78106
8112 * sanopt.c (imm_dom_path_with_freeing_call): Handle gasm
8113 statements as they can also contain possibly a freeing call.
8114
8115 2016-10-25 H.J. Lu <hongjiu.lu@intel.com>
8116 Martin Liska <mliska@suse.cz>
8117
8118 PR ipa/78099
8119 * common.opt: Mark flag_ipa_icf_variables as Optimization flag.
8120 * ipa-icf.c (sem_function::get_hash): Add target optimization
8121 node to hash.
8122
8123 2016-10-25 Wilco Dijkstra <wdijkstr@arm.com>
8124
8125 PR target/78041
8126 * config/arm/neon.md (ashldi3_neon): Add "r 0 i" and "&r r i" variants.
8127 Remove partial overlap check for shift by 1.
8128 (ashldi3_neon): Likewise.
8129
8130 2016-10-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
8131
8132 * config/arm/constraints.md (Q constraint): Document its use for
8133 Thumb-1.
8134 (Pf constraint): New constraint for relaxed, consume or relaxed memory
8135 models.
8136 * config/arm/sync.md (atomic_load<mode>): Add new ARMv8-M Baseline only
8137 alternatives to allow any register when memory model matches Pf and
8138 thus lda is used, but only low registers otherwise. Use unpredicated
8139 output template for Thumb-1 targets.
8140 (atomic_store<mode>): Likewise for stl.
8141 (arm_load_exclusive<mode>): Add new ARMv8-M Baseline only alternative
8142 whose output template does not have predication.
8143 (arm_load_acquire_exclusive<mode>): Likewise.
8144 (arm_load_exclusivesi): Likewise.
8145 (arm_load_acquire_exclusivesi): Likewise.
8146 (arm_store_release_exclusive<mode>): Likewise.
8147 (arm_store_exclusive<mode>): Use unpredicated output template for
8148 Thumb-1 targets.
8149
8150 2016-10-25 Jakub Jelinek <jakub@redhat.com>
8151
8152 * internal-fn.def (LAUNDER): New internal function.
8153 * internal-fn.c (expand_LAUNDER): New function.
8154
8155 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
8156 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
8157
8158 New avr target pass to work around performance loss by PR fix.
8159
8160 PR target/71676
8161 PR target/71678
8162 * config/avr/avr.md (casesi_<mode>_sequence) [qi,hi]: New insn.
8163 (*cmp<mode>) [qi,qq,uqq,hi,hq,uhq,ha,uha]: Rename to cmp<mode>3.
8164 * config/avr/predicates.md (extend_operator): New.
8165 * config/avr/avr-passes.def (avr_pass_casesi): Register new pass.
8166 * config/avr/avr-protos.h (avr_casei_sequence_check_operands)
8167 (make_avr_pass_casesi): New prototypes.
8168 * config/avr/avr.c (print-rtl.h): Include it.
8169 (pass_data avr_pass_data_casesi): Data for new pass.
8170 (avr_pass_casesi): New class implementing rtl_opt_pass .avr-casesi.
8171 (make_avr_pass_casesi, avr_parallel_insn_from_insns)
8172 (avr_is_casesi_sequence, avr_casei_sequence_check_operands)
8173 (avr_optimize_casesi): New functions.
8174
8175 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
8176 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
8177
8178 PR target/71676
8179 PR target/71678
8180 * config/avr/avr.md (casesi): Rewrite avoiding subregs of SI.
8181
8182 2016-10-24 Jakub Jelinek <jakub@redhat.com>
8183
8184 * dwarf2out.c (gen_subprogram_die): Add DW_AT_reference or
8185 DW_AT_rvalue_reference attributes.
8186
8187 2016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
8188
8189 * doc/invoke.text (Wint-in-bool-context): Update documentation.
8190 * value-prof.c (stringop_block_profile): Fix a warning.
8191
8192 2016-10-24 Martin Sebor <msebor@redhat.com>
8193
8194 PR middle-end/77735
8195 * builtins.c (string_length): New function.
8196 (c_strlen): Use string_length. Correctly handle wide strings.
8197 * gimple-ssa-sprintf.c (target_max_value, target_size_max): New
8198 functions.
8199 (target_int_max): Call target_max_value.
8200 (format_result::knownrange): New data member.
8201 (fmtresult::fmtresult): Define default constructor.
8202 (format_integer): Use it and set format_result::knownrange.
8203 Handle global constants.
8204 (format_floating_max): Add third argument.
8205 (format_floating): Recompute maximum value for %a for each argument.
8206 (get_string_length): Use fmtresult default ctor.
8207 (format_string): Set format_result::knownrange.
8208 (format_directive): Check format_result::knownrange.
8209 (add_bytes): Same. Correct caret placement in diagnostics.
8210 (pass_sprintf_length::compute_format_length): Set
8211 format_result::knownrange.
8212 (pass_sprintf_length::handle_gimple_call): Use target_size_max.
8213
8214 2016-10-24 Jakub Jelinek <jakub@redhat.com>
8215
8216 * config/i386/i386.c (ix86_in_large_data_p, ix86_expand_builtin): Use
8217 VAR_P (x) instead of TREE_CODE (x) == VAR_DECL.
8218
8219 2016-10-24 Ximin Luo <infinity0@pwned.gg>
8220
8221 PR debug/77985
8222 * dwarf2out.c (file_table_relative_p): Remove.
8223 (gen_compile_unit_die, dwarf2out_early_finish): Emit DW_AT_comp_dir
8224 also for absolute paths.
8225 * doc/tm.texi: Update.
8226 * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Remove.
8227 * target.def (force_at_comp_dir): Remove hook.
8228 * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Remove define.
8229
8230 2016-10-24 Richard Biener <rguenther@suse.de>
8231
8232 * tree-vrp.c (evrp_dom_walker::before_dom_children): Ignore
8233 backedges when identifying the single predecessor to take
8234 conditional info from. Use SCEV to get at ranges for loop IVs.
8235 * lto-streamer-out.c (lto_write_mode_table): CSE inner mode to
8236 avoid false warning.
8237
8238 2016-10-24 Georg-Johann Lay <avr@gjlay.de>
8239
8240 PR target/78093
8241 * doc/extend.texi (AVR Variable Attributes) [absdata]: Document it.
8242 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_ABSDATA): New macro.
8243 (avr_address_tiny_absdata_p): New static function.
8244 (avr_legitimate_address_p, avr_legitimize_address) [AVR_TINY]: Use
8245 it to determine validity of constant addresses.
8246 (avr_attribute_table) [absdata]: New variable attribute...
8247 (avr_handle_absdata_attribute): ...and handler.
8248 (avr_decl_absdata_p): New static function.
8249 (avr_encode_section_info) [AVR_TINY]: Use it to add flag
8250 AVR_SYMBOL_FLAG_TINY_ABSDATA to respective symbols_refs.
8251 (avr_address_cost) [AVR_TINY]: absdata addresses cost 2.
8252
8253 2016-10-24 Richard Biener <rguenther@suse.de>
8254
8255 PR tree-optimization/78076
8256 * tree-ssa-loop-split.c (tree_ssa_split_loops): Reset aux
8257 also on the loop tree root.
8258
8259 2016-10-24 Jakub Jelinek <jakub@redhat.com>
8260
8261 * config/i386/i386.c (ix86_fold_builtin): Handle
8262 IX86_BUILTIN_BEXTR{,I}{32,64}, IX86_BUILTIN_BZHI{32,64},
8263 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
8264 (ix86_gimple_fold_builtin): Handle IX86_BUILTIN_BZHI{32,64},
8265 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
8266
8267 2016-10-24 Martin Liska <mliska@suse.cz>
8268
8269 PR sanitizer/77966
8270 * opts.c (finish_options): Skip conditionally.
8271
8272 2016-10-23 Martin Sebor <msebor@redhat.com>
8273
8274 PR target/77837
8275 * config/rs6000/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define.
8276 * config/rs6000/linux64.h (TARGET_PRINTF_POINTER_FORMAT): Likewise.
8277
8278 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
8279
8280 * config/sparc/sparc.md (cpu_feature): Minor tweak.
8281 (enabled): Likewise.
8282 (movsi_insn, movdi_insn_sp32, movdi_insn_sp64, movsf_insn,
8283 movdf_insn_sp32, movdf_insn_sp64, zero_extendsidi2_insn_sp64,
8284 sign_extendsidi2_insn, mov<VM32:mode>_insn, mov<VM64:mode>_insn_sp64,
8285 mov<VM64:mode>_insn_sp32, not_<code><mode>, nand<mode>_vis,
8286 <code>_not1<mode>_vi, <code>_not2<mode>_vis, one_cmpl<mode>2,
8287 fcmp<code><GCM:gcm_name>, pdistn<mode>_vis): Likewise.
8288
8289 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
8290
8291 * config/sparc/sparc-c.c (sparc_target_macros): Replace TARGET_64BIT
8292 with TARGET_ARCH64. Define __VIS to 0x400 if TARGET_VIS4.
8293
8294 2016-10-21 Andrew Pinski <apinski@cavium.com>
8295
8296 * config/aarch64/aarch64-cores.def: Rewrite so IMP and PART are
8297 integer constants.
8298 * config/aarch64/driver-aarch64.c (struct aarch64_core_data): Change
8299 implementer_id to unsigned char.
8300 Change part_no to unsigned int.
8301 (AARCH64_BIG_LITTLE): New define.
8302 (INVALID_IMP): New define.
8303 (INVALID_CORE): New define.
8304 (cpu_data): Change the last element's implementer_id and part_no to
8305 integers.
8306 (valid_bL_string_p): Rewrite to ..
8307 (valid_bL_core_p): this for integers instead of strings.
8308 (parse_field): New function.
8309 (contains_string_p): Rewrite to ...
8310 (contains_core_p): this for integers and only for the part_no.
8311 (host_detect_local_cpu): Rewrite handling of implementation and
8312 par num to be integers; simplifying the code.
8313
8314 2016-10-21 Kugan Vivekanandarajah <kuganv@linaro.org>
8315
8316 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Create nonzero
8317 value range for pointers in more cases.
8318
8319 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
8320
8321 * config/aarch64/aarch64.c (aarch64_add_constant_internal):
8322 Add extra argument to allow emitting the move immediate.
8323 Use add/sub with positive immediate.
8324 (aarch64_add_constant): Add inline function.
8325 (aarch64_add_sp): Likewise.
8326 (aarch64_sub_sp): Likewise.
8327 (aarch64_expand_prologue): Call aarch64_sub_sp.
8328 (aarch64_expand_epilogue): Call aarch64_add_sp.
8329 Decide when to leave out move.
8330 (aarch64_output_mi_thunk): Call aarch64_add_constant.
8331
8332 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
8333
8334 * config/aarch64/aarch64.c (aarch64_layout_frame):
8335 Align FP callee-saves.
8336
8337 2016-10-21 Jakub Jelinek <jakub@redhat.com>
8338
8339 * config/i386/adxintrin.h (_subborrow_u32, _addcarry_u32,
8340 _addcarryx_u32, _subborrow_u64, _addcarry_u64, _addcarryx_u64):
8341 Formatting fixes.
8342 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
8343 _rdseed64_step): Likewise.
8344 * config/i386/tbmintrin.h (__bextri_u32): Likewise.
8345
8346 PR target/78057
8347 * config/i386/i386.c: Include fold-const-call.h, tree-vrp.h
8348 and tree-ssanames.h.
8349 (ix86_fold_builtin): Fold IX86_BUILTIN_[LT]ZCNT{16,32,64}
8350 with INTEGER_CST argument.
8351 (ix86_gimple_fold_builtin): New function.
8352 (TARGET_GIMPLE_FOLD_BUILTIN): Define.
8353
8354 * dwarf2out.c (ranges_table): Change into vec<dw_ranges, va_gc> *.
8355 (ranges_by_label): Change into vec<dw_ranges_by_label, va_gc> *.
8356 (ranges_table_allocated, ranges_table_in_use,
8357 ranges_by_label_allocated, ranges_by_label_in_use,
8358 RANGES_TABLE_INCREMENT): Removed.
8359 (add_ranges_num): Use vec_safe_push into ranges_table.
8360 (add_ranges_by_labels): Use vec_safe_push into ranges_by_label.
8361 (output_ranges): Adjust for ranges_table and ranges_by_label
8362 conversion from arrays to vec.
8363 (add_high_low_attributes, dwarf2out_finish): Adjust for range_table
8364 conversion from arrays to vec.
8365 (dwarf2out_c_finalize): Don't clear ranges_table_allocated,
8366 ranges_table_in_use, ranges_by_label_allocated and
8367 ranges_by_label_in_use. Set ranges_by_label to NULL instead of 0.
8368
8369 * dwarf2out.c (gen_variable_die): Emit DW_AT_const_expr attribute
8370 if needed. Re-add origin_die variable and its initialization.
8371
8372 * gimplify.c (gimplify_bind_expr): Handle oacc_declare_returns
8373 even for -fstack-reuse=none, or for volatile vars etc.
8374
8375 2016-10-21 David Malcolm <dmalcolm@redhat.com>
8376
8377 * print-rtl-function.c (flag_compact): Move extern decl to...
8378 * print-rtl.h (flag_compact): ...here.
8379 * rtl-tests.c (selftests::assert_rtl_dump_eq): New function.
8380 (ASSERT_RTL_DUMP_EQ): New macro.
8381 (selftest::test_dumping_regs): New function.
8382 (selftest::test_dumping_insns): New function.
8383 (selftest::test_uncond_jump): Add uses of ASSERT_RTL_DUMP_EQ on
8384 the insns.
8385 (selftest::rtl_tests_c_tests): Call the new test functions.
8386
8387 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8388
8389 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
8390 (outgoing_edges_match): Likewise.
8391 (try_crossjump_to_edge): Likewise.
8392 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
8393 (rtl_tidy_fallthru_edge): Likewise.
8394 * rtl.h (tablejump_p): Adjust prototype.
8395 * rtlanal.c (tablejump_p): Return the label as a rtx_insn *.
8396
8397 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8398
8399 * rtl.h (label_ref_label): New function.
8400 (set_label_ref_label): New function.
8401 (LABEL_REF_LABEL): Delete.
8402 * alias.c (rtx_equal_for_memref_p): Adjust.
8403 * cfgbuild.c (make_edges): Likewise.
8404 (purge_dead_tablejump_edges): Likewise.
8405 * cfgexpand.c (convert_debug_memory_address): Likewise.
8406 * cfgrtl.c (patch_jump_insn): Likewise.
8407 * combine.c (distribute_notes): Likewise.
8408 * cse.c (hash_rtx_cb): Likewise.
8409 (exp_equiv_p): Likewise.
8410 (fold_rtx): Likewise.
8411 (check_for_label_ref): Likewise.
8412 * cselib.c (rtx_equal_for_cselib_1): Likewise.
8413 (cselib_hash_rtx): Likewise.
8414 * emit-rtl.c (mark_label_nuses): Likewise.
8415 * explow.c (convert_memory_address_addr_space_1): Likewise.
8416 * final.c (output_asm_label): Likewise.
8417 (output_addr_const): Likewise.
8418 * gcse.c (add_label_notes): Likewise.
8419 * genconfig.c (walk_insn_part): Likewise.
8420 * genrecog.c (validate_pattern): Likewise.
8421 * ifcvt.c (cond_exec_get_condition): Likewise.
8422 (noce_emit_store_flag): Likewise.
8423 (noce_get_alt_condition): Likewise.
8424 (noce_get_condition): Likewise.
8425 * jump.c (maybe_propagate_label_ref): Likewise.
8426 (mark_jump_label_1): Likewise.
8427 (redirect_exp_1): Likewise.
8428 (rtx_renumbered_equal_p): Likewise.
8429 * lra-constraints.c (operands_match_p): Likewise.
8430 * print-rtl.c (print_value): Likewise.
8431 * reload.c (find_reloads): Likewise.
8432 * reload1.c (set_label_offsets): Likewise.
8433 * reorg.c (get_branch_condition): Likewise.
8434 * rtl-tests.c (test_uncond_jump): Likewise.
8435 * rtl.c (rtx_equal_p_cb): Likewise.
8436 (rtx_equal_p): Likewise.
8437 * rtlanal.c (reg_mentioned_p): Likewise.
8438 (rtx_referenced_p): Likewise.
8439 (get_condition): Likewise.
8440 * varasm.c (const_hash_1): Likewise.
8441 (compare_constant): Likewise.
8442 (const_rtx_hash_1): Likewise.
8443 (output_constant_pool_1): Likewise.
8444
8445 2016-10-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8446
8447 PR target/71627
8448 * reload.c (find_valid_class_1): Allow regclass if atleast one
8449 regno in regclass is ok. Compute and use rclass size based on
8450 actually available regnos for mode in rclass.
8451
8452 2016-10-21 Eric Botcazou <ebotcazou@adacore.com>
8453
8454 * config/sparc/sparc-modes.def (CCV): New.
8455 (CCXV): Likewise.
8456 * config/sparc/predicates.md (v_comparison_operator): New.
8457 (icc_comparison_operator): Add support for CCV/CCXV.
8458 (xcc_comparison_operator): Likewise.
8459 * config/sparc/sparc.c (output_cbranch): Likewise.
8460 (sparc_print_operand): Likewise.
8461 * config/sparc/sparc.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
8462 (uaddvdi4): New expander.
8463 (addvdi4): Likewise.
8464 (uaddvdi4_sp32): New instruction.
8465 (addvdi4_sp32): Likewise.
8466 (uaddvsi4): New expander.
8467 (addvsi4): Likewise.
8468 (cmp_ccc_plus_sltu_set): New instruction.
8469 (cmp_ccv_plus): Likewise.
8470 (cmp_ccxv_plus): Likewise.
8471 (cmp_ccv_plus_set): Likewise.
8472 (cmp_ccxv_plus_set): Likewise.
8473 (cmp_ccv_plus_sltu_set): Likewise.
8474 (uaddvdi4): New expander.
8475 (subvdi4): Likewise.
8476 (usubdi4_sp32): New instruction.
8477 (subvdi4_sp32): Likewise.
8478 (usubvsi4): New expander.
8479 (subvsi4): Likewise.
8480 (cmpsi_minus_sltu_set): New instruction.
8481 (cmp_ccv_minus): Likewise.
8482 (cmp_ccxv_minus): Likewise.
8483 (cmp_ccv_minus_set): Likewise.
8484 (cmp_ccxv_minus_set): Likewise.
8485 (cmp_ccv_minus_sltu_set): Likewise.
8486 (unegvdi3): New expander.
8487 (negvdi3): Likewise.
8488 (unegdi3_sp32): New instruction.
8489 (negvdi3_sp32): Likewise.
8490 (unegvsi3): New expander.
8491 (negvsi3): Likewise.
8492 (cmp_ccc_neg_sltu_set): New instruction.
8493 (cmp_ccv_neg): Likewise.
8494 (cmp_ccxv_neg): Likewise.
8495 (cmp_ccv_neg_set): Likewise.
8496 (cmp_ccxv_neg_set): Likewise.
8497 (cmp_ccv_neg_sltu_set): Likewise.
8498
8499 * tree-ssa-loop-split.c: Remove trailing spaces.
8500 * match.pd: Likewise.
8501
8502 2016-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8503
8504 PR rtl-optimization/78038
8505 * ree.c (get_defs): Return NULL if a defining insn for REG cannot
8506 be deduced to set REG through the RTL structure.
8507 (make_defs_and_copies_lists): Return false on a failing get_defs call.
8508
8509 2016-10-21 Richard Biener <rguenther@suse.de>
8510
8511 PR tree-optimization/78051
8512 * tree-vrp.c (evrp_dom_walker::before_dom_children): Update stmt
8513 and mark replaced if folding did something.
8514
8515 2016-10-21 David Edelsohn <dje.gcc@gmail.com>
8516
8517 * config/rs6000/rs6000.c (rs6000_assemble_visibility): Swap "internal"
8518 and "protected" in visibility types.
8519 (rs6000_xcoff_declare_function_name): Fix formatting.
8520 (rs6000_xcoff_declare_object_name): Fix formatting.
8521
8522 2016-10-21 Uros Bizjak <ubizjak@gmail.com>
8523
8524 * config/i386/i386.c (ix86_fold_builtin): Handle IX86_BUILTIN_INFQ
8525 and IX86_BUILTIN_HUGE_VALQ here ...
8526 (ix86_expand_builtin): ... not here.
8527
8528 2016-10-20 Jakub Jelinek <jakub@redhat.com>
8529
8530 * doc/gty.texi (for_user): Use @item next to @findex.
8531
8532 2016-10-20 Uros Bizjak <ubizjak@gmail.com>
8533
8534 PR target/78037
8535 * config/i386/bmiintrin.h (__tzcnt_u16): Call __builtin_ia32_tzcnt_u16.
8536 (__tzcnt_u32, _tzcnt_u32): Call __builtin_ia32_tzcnt_u32.
8537 (__tzcnt_u64, _tzcnt_u64): Call __builtin_ia32_tzcnt_u64.
8538 * config/i386/lzcntintrin.h (__lzcnt_u16): Call
8539 __builtin_ia32_lzcnt_u16.
8540 (__lzcnt_u32, _lzcnt_u32): Call __builtin_ia32_lzcnt_u32.
8541 (__lzcnt_u64, _lzcnt_u64): Call __builtin_ia32_lzcnt_u64.
8542 * config/i386/i386.md (UNSPEC_LZCNT, UNSPEC_TZCNT): New unspecs.
8543 (ctz<mode>2, *ctz<mode>2): Use SWI48 mode iterator.
8544 (bmi_tzcnt_<mode>): New expander.
8545 (*bmi_tzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
8546 (*bmi_tzcnt_<mode>_falsedep, *bmi_tzcnt_<mode>): New insn patterns.
8547 (clz<mode>2_lzcnt, *clz<mode>2_lzcnt): Use SWI48 mode iterator.
8548 (lzcnt_<mode>): New expander.
8549 (*lzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
8550 (*lzcnt_<mode>_falsedep, *lzcnt_<mode>): New insn patterns.
8551 * config/i386/i386-builtin-types.def (UINT_FTYPE_UINT): New.
8552 (UINT64_FTYPE_UINT64): New.
8553 * config/i386/i386-builtin.def (__builtin_clzs): Remove description.
8554 (__builtin_ia32_lzcnt_u16): New description.
8555 (__builtin_ia32_lzcnt_u32): Ditto.
8556 (__builtin_ia32_lzcnt_u64): Ditto.
8557 (__builtin_ctzs): Remove description.
8558 (__builtin_ia32_tzcnt_u16): New description.
8559 (__builtin_ia32_tzcnt_u32): Ditto.
8560 (__builtin_ia32_tzcnt_u64): Ditto.
8561 * config/i386/i386.c (ix86_expand_args_builtin): Handle
8562 UINT_FTYPE_UINT and UINT64_FTYPE_UINT64.
8563
8564 2016-10-20 Martin Liska <mliska@suse.cz>
8565
8566 PR lto/78049
8567 * lto-streamer-in.c (fixup_call_stmt_edges_1): Replace value
8568 comparison with STMT_UID_NOT_IN_RANGE.
8569 (fixup_call_stmt_edges): Do not fixup edges of a thunk in
8570 LTRANS.
8571
8572 2016-10-20 Eric Botcazou <ebotcazou@adacore.com>
8573
8574 * compare-elim.c (conforming_compare): Accept UNSPECs.
8575 (find_comparison_dom_walker::before_dom_children): Deal with
8576 instructions both using and killing the flags register.
8577 (equivalent_reg_at_start): New function extracted from...
8578 (try_eliminate_compare): ...here. Use it and add support for
8579 registers and UNSPECs as second operand of the compare.
8580 * config/visium/visium-modes.def (CCV): New.
8581 * config/visium/predicates.md (visium_v_comparison_operator): New.
8582 (visium_branch_operator): Deal with CCV mode.
8583 * config/visium/visium.c (visium_select_cc_mode): Likewise.
8584 (output_cbranch): Likewise.
8585 * config/visium/visium.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
8586 (uaddv<mode>4): New expander.
8587 (addv<mode>4): Likewise.
8588 (add<mode>3_insn_set_carry): New instruction.
8589 (add<mode>3_insn_set_overflow): Likewise.
8590 (addsi3_insn_set_overflow): Likewise.
8591 (usubv<mode>4): New expander.
8592 (subv<mode>4): Likewise.
8593 (sub<mode>3_insn_set_carry): New instruction.
8594 (sub<mode>3_insn_set_overflow): Likewise.
8595 (subsi3_insn_set_overflow): Likewise.
8596 (unegv<mode>3): New expander.
8597 (negv<mode>3): Likewise.
8598 (neg<mode>2_insn_set_overflow): New instruction.
8599 (addv_tst<mode>): Likewise.
8600 (subv_tst<mode>): Likewise.
8601 (negv_tst<mode>): Likewise.
8602 (cbranch<mode>4_addv_insn): New splitter and instruction.
8603 (cbranch<mode>4_subv_insn): Likewise.
8604 (cbranch<mode>4_negv_insn): Likewise.
8605
8606 2016-10-20 Richard Biener <rguenther@suse.de>
8607
8608 * tree-ssa-alias.c (ptrs_compare_unequal): Remove code duplication.
8609 Handle decls possibly not bound.
8610 * tree-ssa-structalias.c (get_constraint_for_ssa_var): Add
8611 nothing_id for decls that might not be bound if we are interested
8612 for the address.
8613 (get_constraint_for_component_ref): Deal with that.
8614
8615 2016-10-20 Michael Matz <matz@suse.de>
8616
8617 Loop splitting.
8618 * common.opt (-fsplit-loops): New flag.
8619 * passes.def (pass_loop_split): Add.
8620 * opts.c (default_options_table): Add OPT_fsplit_loops entry at -O3.
8621 (enable_fdo_optimizations): Add loop splitting.
8622 * timevar.def (TV_LOOP_SPLIT): Add.
8623 * tree-pass.h (make_pass_loop_split): Declare.
8624 * tree-ssa-loop-manip.h (rewrite_into_loop_closed_ssa_1): Declare.
8625 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h,
8626 * tree-ssa-loop-split.c: New file.
8627 * Makefile.in (OBJS): Add tree-ssa-loop-split.o.
8628 * doc/invoke.texi (fsplit-loops): Document.
8629 * doc/passes.texi (Loop optimization): Add paragraph about loop
8630 splitting.
8631
8632 2016-10-20 Richard Biener <rguenther@suse.de>
8633
8634 * cgraphunit.c (analyze_functions): Set node->definition to
8635 false to signal symbol removal to debug_hooks->late_global_decl.
8636 * ipa.c (symbol_table::remove_unreachable_nodes): When not in
8637 WPA signal symbol removal to the debuginfo machinery.
8638 * dwarf2out.c (dwarf2out_late_global_decl): Instead of
8639 using early_finised to guard the we're called for symbol
8640 removal case look at the symtabs definition flag.
8641 (gen_variable_die): Remove redundant check.
8642
8643 2016-10-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8644
8645 * config/s390/s390.md ("prefetch"): Add fallthrough comment.
8646
8647 2016-10-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8648
8649 PR tree-optimization/53979
8650 * match.pd ((a ^ b) | a -> a | b): New pattern.
8651
8652 2016-10-19 John David Anglin <danglin@gcc.gnu.org>
8653
8654 * config/pa/pa64-hpux.h (PA_INIT_FRAME_DUMMY_ASM_OP): Move to
8655 config/pa/pa64-hpux-lib.h.
8656 (PA_CRTBEGIN_HACK): Likewise.
8657 (DTOR_LIST_BEGIN): Likewise.
8658
8659 2016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
8660
8661 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
8662 register only if "in" and "out" are different registers.
8663
8664 2016-10-19 Eric Botcazou <ebotcazou@adacore.com>
8665
8666 * omp-low.c (pass_oacc_device_lower::gate): New method.
8667 (execute): Always call execute_oacc_device_lower.
8668
8669 2016-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8670
8671 PR tree-optimization/77916
8672 PR tree-optimization/77937
8673 * gimple-ssa-strength-reduction.c (analyze_increments): Remove
8674 stopgap fix.
8675 (insert_initializers): Requirement of initializer for -1 should be
8676 based on pointer-typedness of the candidate basis.
8677
8678 2016-10-19 Bin Cheng <bin.cheng@arm.com>
8679
8680 PR tree-optimization/78005
8681 * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Compute
8682 upper (included) bound for niters of prolog loop.
8683 (vect_gen_scalar_loop_niters): Change parameter VF to VFM1.
8684 Compute niters of scalar loop above which vectorized loop is
8685 preferred, as well as the upper (included) bound for the niters.
8686 (vect_do_peeling): Record niter bound for loops accordingly.
8687
8688 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
8689
8690 PR lto/77458
8691 * tree-core.h (enum tree_index): Put the complex types after their
8692 component types.
8693 * tree-streamer.c (verify_common_node_recorded): New function.
8694 (preload_common_nodes) <TREE_CODE (node) == COMPLEX_TYPE>: Use it.
8695
8696 2016-10-19 Martin Liska <mliska@suse.cz>
8697
8698 * cgraph.h (cgraph_edge::binds_to_current_def_p):
8699 Replace NULL with false as a return value.
8700
8701 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
8702
8703 PR tree-optimization/78024
8704 * omp-low.c (oacc_loop_discovery): Call clear_bb_flags before, and
8705 don't clear BB_VISITED after processing.
8706
8707 2016-10-19 Richard Biener <rguenther@suse.de>
8708
8709 * domwalk.c (dom_walker::walk): Use RPO order.
8710
8711 2016-10-19 Richard Biener <rguenther@suse.de>
8712
8713 * tree-vrp.c (evrp_dom_walker::evrp_dom_walker): Initialize
8714 stmts_to_remove.
8715 (evrp_dom_walker::~evrp_dom_walker): Free it.
8716 (evrp_dom_walker::stmts_to_remove): Add.
8717 (evrp_dom_walker::before_dom_children): Mark PHIs and stmts
8718 whose output we fully propagate for removal. Propagate
8719 into BB destination PHI arguments.
8720 (execute_early_vrp): Remove queued stmts. Dump value ranges
8721 before stmt removal.
8722
8723 2016-10-18 Aldy Hernandez <aldyh@redhat.com>
8724
8725 * Makefile.in (OBJS): Add gimple-ssa-warn-alloca.o.
8726 * passes.def: Add two instances of pass_walloca.
8727 * tree-pass.h (make_pass_walloca): New.
8728 * gimple-ssa-warn-alloca.c: New file.
8729 * doc/invoke.texi: Document -Walloca, -Walloca-larger-than=, and
8730 -Wvla-larger-than= options.
8731
8732 2016-10-18 Thomas Schwinge <thomas@codesourcery.com>
8733
8734 * cfg.c (clear_bb_flags): Use FOR_ALL_BB_FN.
8735 * config/nvptx/nvptx.c (nvptx_find_sese): Likewise.
8736
8737 2016-10-18 Kelvin Nilsen <kelvin@gcc.gnu.org>
8738
8739 * config/rs6000/altivec.h (vec_xl_len): New macro.
8740 (vec_xst_len): New macro.
8741 (vec_cmpnez): New macro.
8742 (vec_cntlz_lsbb): New macro.
8743 (vec_cnttz_lsbb): New macro.
8744 (vec_xlx): New macro.
8745 (vec_xrx): New macro.
8746 (vec_all_nez): New C++ predicate template.
8747 (vec_any_eqz): New C++ predicate template.
8748 (vec_all_ne): Revised C++ predicate template under _ARCH_PWR9
8749 conditional compilation.
8750 (vec_any_eq): Revised C++ predicate template under _ARCH_PWR9
8751 conditional compilation.
8752 (vec_all_nez): New macro.
8753 (vec_any_eqz): New macro.
8754 (vec_all_ne): Revised macro under _ARCH_PWR9 conditional
8755 compilation.
8756 (vec_any_eq): Revised macro under _ARCH_PWR9 conditional
8757 compilation.
8758 * config/rs6000/vector.md (VI): Moved this mode iterator
8759 definition from altivec.md to vector.md.
8760 (UNSPEC_NEZ_P): New value.
8761 (vector_ne_<mode>_p): New expansion for implementation of
8762 vec_all_ne and vec_any_eq built-in functions.
8763 (vector_nez_<mode>_p): New expansion for implementation of
8764 vec_all_nez and vec_any_eqz built-in functions.
8765 (vector_ne_v2di_p): New expansion for implementation of vec_all_ne
8766 and vec_any_eq built-in function.
8767 (cr6_test_for_zero): New commentary to explain this expansion.
8768 (cr6_test_for_zero_reverse): New commentary to explain this expansion.
8769 (cr6_test_for_lt): New commentary to explain this expansion.
8770 (cr6_test_for_lt_reverse): New commentary to explain this
8771 expansion.
8772 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8773 overloaded function prototypes for vec_all_ne, vec_all_nez,
8774 vec_any_eq, vec_any_eqz, vec_cmpnez, vec_cntlz_lsbb,
8775 vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx, and vec_xrx
8776 built-in functions.
8777 (altivec_resolve_overloaded_builtin): Modify the handling of
8778 ALTIVEC_BUILTIN_VEC_CMPNE to use the Power9 instructions when
8779 the compiler is configured to support TARGET_P9_VECTOR.
8780 * config/rs6000/rs6000-builtin.def (BU_ALTIVEC_P): Add commentary
8781 to explain the special processing that is given to predicate
8782 built-ins introduced using this macro.
8783 (BU_ALTIVEC_OVERLOAD_P): Add commentary to alert maintainers to
8784 the special processing given to predicate built-ins introduced
8785 using this macro.
8786 (BU_VSX_P): Likewise.
8787 (BU_P8V_AV_P): Likewise.
8788 (BU_P9V_AV_P): Likewise.
8789 (BU_P9V_AV_X): New macro.
8790 (BU_P9V_64BIT_AV_X): New macro.
8791 (BU_P9V_VSX_3): New macro.
8792 (BU_P9V_OVERLOAD_P): New macro.
8793 (LXVL): New BU_P9V_64BIT_VSX_2.
8794 (VEXTUBLX): New BU_P9V_AV_2.
8795 (VEXTUBRX): Likewise.
8796 (VEXTUHLX): Likewise.
8797 (VEXTUHRX): Likewise.
8798 (VEXTUWLX): Likewise.
8799 (VEXTUWRX): Likewise.
8800 (STXVL): New BU_P9V_64BIT_AV_X.
8801 (VCLZLSBB): New BU_P9V_AV_1.
8802 (VCTZLSBB): Likewise.
8803 (CMPNEB): New BU_P9V_AV_2.
8804 (CMPNEH): Likewise.
8805 (CMPNEW): Likewise.
8806 (CMPNEF): Likewise.
8807 (CMPNED): Likewise.
8808 (VCMPNEB_P): New BU_P9V_AV_P.
8809 (VCMPNEH_P): Likewise.
8810 (VCMPNEW_P): Likewise.
8811 (VCMPNED_P): Likewise.
8812 (VCMPNEFP_P): Likewise.
8813 (VCMPNEDP_P): Likewise.
8814 (CMPNEZB): New BU_P9V_AV_2.
8815 (CMPNEZH): Likewise.
8816 (CMPNEZW): Likewise.
8817 (VCMPNEZB_P): New BU_P9V_AV_P.
8818 (VCMPNEZH_P): Likewise.
8819 (VCMPNEZW_P): Likewise.
8820 (LXVL): New BU_P9V_OVERLOAD_2.
8821 (STXVL): New BU_P9V_OVERLOAD_3.
8822 (VEXTULX): New BU_P9V_OVERLOAD_2.
8823 (VEXTURX): Likewise.
8824 (CMPNEZ): Likewise.
8825 (VCMPNEZ_P): New BU_P9V_OVERLOAD_P.
8826 (VCMPNE_P): Likewise.
8827 (VCLZLSBB): New BU_P9V_OVERLOAD_1.
8828 (VCTZLSBB): Likewise.
8829 * config/rs6000/rs6000.c (altivec_expand_predicate_builtin): Add
8830 comment to explain mode used for scratch register.
8831 (altivec_expand_stxvl_builtin): New function.
8832 (altivec_expand_builtin): Add case for new constant P9V_BUILTIN_STXVL.
8833 (altivec_init_builtins): Add initialized variable
8834 void_ftype_v16qi_pvoid_long and use this type to define the
8835 built-in function __builtin_altivec_stxvl.
8836 * config/rs6000/vsx.md (UNSPEC_LXVL): New value.
8837 (UNSPEC_STXVL): New value.
8838 (UNSPEC_VCLZLSBB): New value.
8839 (UNSPEC_VCTZLSBB): New value.
8840 (UNSPEC_VEXTUBLX): New value.
8841 (UNSPEC_VEXTUHLX): New value.
8842 (UNSPEC_VEXTUWLX): New value.
8843 (UNSPEC_VEXTUBRX): New value.
8844 (UNSPEC_VEXTUHRX): New value.
8845 (UNSPEC_VEXTUWRX): New value.
8846 (UNSPEC_VCMPNEB): New value.
8847 (UNSPEC_VCMPNEZB): New value.
8848 (UNSPEC_VCMPNEH): New value.
8849 (UNSPEC_VCMPNEZH): New value.
8850 (UNSPEC_VCMPNEW): New value.
8851 (UNSPEC_VCMPNEZW): New value.
8852 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
8853 vector of integer modes.
8854 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
8855 vector of float or double modes.
8856 (*vector_nez_<mode>_p): New insn for vector test all not equal or
8857 zero.
8858 (lxvl): New expand for load VSX vector with length.
8859 (*lxvl): New insn for load VSX vector with length.
8860 (stxvl): New expand for store VSX vector with length.
8861 (*stxvl): New insn for store VSX vector with length.
8862 (vcmpneb): New insn for vector of byte compare not equal.
8863 (vcmpnezb): New insn for vector of byte compare not equal or zero.
8864 (vcmpneh): New insn for vector of half word compare not equal.
8865 (vcmpnezh): New insn for vector of half word compare not equal or
8866 zero.
8867 (vcmpnew): New insn for vector of word compare not equal.
8868 (vcmpne<VSs>): New insn for vector of float or double compare not
8869 equal.
8870 (vcmpnezw): New insn for vector of word compare not equal or zero.
8871 (vclzlsbb): New insn for vector count leading zero
8872 least-significant bits byte.
8873 (vctzlsbb): New insn for vector count trailing zero least
8874 signficant bits byte.
8875 (vextublx): New insn for vector extract unsigned byte left
8876 indexed.
8877 (vextubrx): New insn for vector extract unsigned byte right
8878 indexed.
8879 (vextuhlx): New insn for vector extract unsigned half word left
8880 indexed.
8881 (vextuhrx): New insn for vector extract unsigned half word right
8882 indexed.
8883 (vextuwlx): New insn for vector extract unsigned word left
8884 indexed.
8885 (vextuwrx): New insn for vector extract unsigned word right
8886 indexed.
8887 * config/rs6000/rs6000.h (RS6000_BTC_CONST): Enhance comment to
8888 clarify intent of this constant.
8889 * config/rs6000/altivec.md (VI): Move this mode iterator to vsx.md.
8890 * doc/extend.texi (PowerPC Altivec Built-in Functions): Add
8891 documentation for vec_all_nez, vec_any_eqz, vec_cmpnez,
8892 vec_cntlz_lsbb, vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx,
8893 and vec_xrx functions.
8894
8895 2016-10-18 Andrew Pinski <apinski@cavium.com>
8896
8897 PR tree-opt/65950
8898 * predict.c (is_exit_with_zero_arg): New function.
8899 (tree_bb_level_predictions): Don't consider paths leading to exit(0)
8900 as nottaken.
8901
8902 2016-10-18 Uros Bizjak <ubizjak@gmail.com>
8903
8904 PR target/77991
8905 * config/i386/i386.c (legitimize_tls_address)
8906 <case TLS_MODEL_INITIAL_EXEC>: For TARGET_64BIT || TARGET_ANY_GNU_TLS
8907 convert dest to Pmode if different than Pmode.
8908
8909 2016-10-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8910
8911 PR tree-optimization/77916
8912 * gimple-ssa-strength-reduction.c (analyze_increments): Reinstate
8913 stopgap fix, as pointers with -1 increment are still broken.
8914
8915 2016-10-18 David Edelsohn <dje.gcc@gmail.com>
8916
8917 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Move storage
8918 mapping class decoration from here...
8919 (rs6000_xcoff_encode_section): ...to here.
8920
8921 (rs6000_savres_strategy) [AIX,ELFv2]: Inline FPR save and restore
8922 if shrink-wrapping and optimizing for speed.
8923
8924 2016-10-18 Richard Biener <rguenther@suse.de>
8925
8926 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
8927 not visited but non-executable predecessors. Return taken edge.
8928 Simplify conditions and refactor propagation vs. folding step.
8929
8930 2016-10-18 Segher Boessenkool <segher@kernel.crashing.org>
8931
8932 * config/rs6000/rs6000.c (rs6000_savres_strategy): Do not select
8933 {SAVE,REST}_MULTIPLE if shrink-wrapping separate components.
8934 (rs6000_get_separate_components): Assert we do not have those
8935 strategies selected.
8936
8937 2016-10-18 Richard Biener <rguenther@suse.de>
8938
8939 * tree-ssa-propagate.h (substitute_and_fold): Adjust prototype.
8940 * tree-ssa-propagate.c (ssa_prop_fini): Remove final BB_VISITED
8941 clearing.
8942 (substitute_and_fold_dom_walker): Adjust constructor.
8943 (substitute_and_fold_dom_walker::before_dom_children): Remove
8944 do_dce flag and handling (always true).
8945 (substitute_and_fold): Likewise.
8946 * tree-vrp.c (vrp_finalize): Adjust.
8947 (execute_early_vrp): Remove final BB_VISITED clearing.
8948 * tree-ssa-ccp.c (ccp_finalize): Adjust.
8949 * tree-ssa-copy.c (fini_copy_prop): Likewise.
8950 * ira.c (ira): Call clear_bb_flags.
8951
8952 2016-10-18 Richard Biener <rguenther@suse.de>
8953
8954 * genmatch.c (dt_operand::gen_gimple_expr): Use get_name to
8955 get at the operand to look at with TREE_OPERAND for generic
8956 sub-nodes.
8957
8958 2016-10-18 David Malcolm <dmalcolm@redhat.com>
8959
8960 * genattrtab.c (attr_string): Use rtx_reader_ptr for call to
8961 copy_md_ptr_loc.
8962 (gen_attr): Use rtx_reader_ptr for lookup_enum_type call.
8963 (write_test_expr): Use rtx_reader_ptr for calls to
8964 fprint_c_condition.
8965 (write_attr_value): Likewise.
8966 * genconditions.c (write_one_condition): Use rtx_reader_ptr for
8967 call to print_md_ptr_loc.
8968 (write_one_condition): Likewise for calls to print_c_condition.
8969 * genconstants.c: Include "statistics.h" and "vec.h".
8970 (main): Update for conversion to member functions.
8971 * genemit.c (emit_c_code): Use rtx_reader_ptr for
8972 call to print_md_ptr_loc.
8973 * genenums.c: Include "statistics.h" and "vec.h".
8974 (main): Update for conversion of traverse_enum_types to a method.
8975 * genmddeps.c: Include "statistics.h" and "vec.h".
8976 * genoutput.c (process_template): Use rtx_reader_ptr for call to
8977 print_md_ptr_loc.
8978 * genpreds.c (write_predicate_subfunction): Likewise.
8979 (write_predicate_expr): Likewise for calls to print_c_condition.
8980 * genrecog.c (print_test): Likewise.
8981 * gensupport.c (process_rtx): Likewise for calls to
8982 copy_md_ptr_loc and join_c_conditions.
8983 (alter_test_for_insn): Likewise for call to join_c_conditions.
8984 (process_substs_on_one_elem): Likewise.
8985 (gen_mnemonic_setattr): Update for move of string_obstack to a
8986 field of rtx_reader.
8987 (mnemonic_htab_callback): Likewise. Fix formatting.
8988 (gen_mnemonic_attr): Likewise.
8989 * gentarget-def.c (def_target_insn): Use rtx_reader_ptr for calls
8990 to print_c_condition.
8991 * read-md.c: Include "statistics.h" and "vec.h".
8992 (string_obstack): Convert this global to field "m_string_obstack"
8993 of class rtx_reader.
8994 (ptr_locs): Likewise, as "m_ptr_locs".
8995 (ptr_loc_obstack): Likewise, as "m_ptr_loc_obstack".
8996 (joined_conditions): Likewise, as "m_joined_conditions".
8997 (joined_conditions_obstack): Likewise, as "m_joined_conditions_obstack".
8998 (md_constants): Likewise, as "m_md_constants".
8999 (enum_types): Likewise, as "m_enum_types".
9000 (set_md_ptr_loc): Convert to...
9001 (rtx_reader::set_md_ptr_loc): ...member function.
9002 (get_md_ptr_loc): Convert to...
9003 (rtx_reader::get_md_ptr_loc): ...member function.
9004 (copy_md_ptr_loc): Convert to...
9005 (rtx_reader::copy_md_ptr_loc): ...member function.
9006 (fprint_md_ptr_loc): Convert to...
9007 (rtx_reader::fprint_md_ptr_loc): ...member function.
9008 (print_md_ptr_loc): Convert to...
9009 (rtx_reader::print_md_ptr_loc): ...member function.
9010 (join_c_conditions): Convert to...
9011 (rtx_reader::join_c_conditions): ...member function.
9012 (fprint_c_condition): Convert to...
9013 (rtx_reader::fprint_c_condition): ...member function.
9014 (print_c_condition): Convert to...
9015 (rtx_reader::print_c_condition): ...member function.
9016 (read_name): Convert to...
9017 (rtx_reader::read_name): ...member function.
9018 (read_escape): Convert to...
9019 (rtx_reader::read_escape): ...member function.
9020 (read_quoted_string): Convert to...
9021 (rtx_reader::read_quoted_string): ...member function.
9022 (read_braced_string): Convert to...
9023 (rtx_reader::read_braced_string): ...member function.
9024 (read_string): Convert to...
9025 (rtx_reader::read_string): ...member function.
9026 (read_skip_construct): Convert to...
9027 (rtx_reader::read_skip_construct): ...member function.
9028 (handle_constants): Convert to...
9029 (rtx_reader::handle_constants): ...member function.
9030 (traverse_md_constants): Convert to...
9031 (rtx_reader::traverse_md_constants): ...member function.
9032 (handle_enum): Convert to...
9033 (rtx_reader::handle_enum): ...member function.
9034 (lookup_enum_type): Convert to...
9035 (rtx_reader::lookup_enum_type): ...member function.
9036 (traverse_enum_types): Convert to...
9037 (rtx_reader::traverse_enum_types): ...member function.
9038 (rtx_reader::rtx_reader): Move initializations
9039 of various former global data from rtx_reader::read_md_files to
9040 here, as fields, along with the call to unlock_std_streams.
9041 (rtx_reader::~rtx_reader): Clean up m_base_dir, and clean up
9042 the new fields.
9043 (rtx_reader::read_md_files): Move initializations of various
9044 global data from here to the ctor.
9045 * read-md.h (read_name): Convert to...
9046 (rtx_reader::read_name): ...member function.
9047 (rtx_reader::read_escape): New method decl.
9048 (read_quoted_string): Convert to...
9049 (rtx_reader::read_quoted_string): ...member function.
9050 (rtx_reader::read_braced_string): New method decl.
9051 (read_string): Convert to...
9052 (rtx_reader::read_string): ...member function.
9053 (rtx_reader::read_skip_construct): New method decl.
9054 (rtx_reader::set_md_ptr_loc): New method decl.
9055 (rtx_reader::get_md_ptr_loc): New method decl.
9056 (copy_md_ptr_loc): Convert to...
9057 (rtx_reader::copy_md_ptr_loc): ...member function.
9058 (fprint_md_ptr_loc): Convert to...
9059 (rtx_reader::fprint_md_ptr_loc): ...member function.
9060 (print_md_ptr_loc): Convert to...
9061 (rtx_reader::print_md_ptr_loc): ...member function.
9062 (rtx_reader::lookup_enum_type): New method decl.
9063 (rtx_reader::traverse_enum_types): New method decl.
9064 (rtx_reader::handle_constants): New method decl.
9065 (traverse_md_constants): Convert to...
9066 (rtx_reader::traverse_md_constants): ...member function.
9067 (rtx_reader::handle_enum): New method decl.
9068 (rtx_reader::join_c_conditions): New method decl.
9069 (fprint_c_condition): Convert to...
9070 (rtx_reader::fprint_c_condition): ...member function.
9071 (print_c_condition): Convert to...
9072 (rtx_reader::print_c_condition): ...member function.
9073 (rtx_reader::apply_iterator_to_string): New method decl.
9074 (rtx_reader::copy_rtx_for_iterators): New method decl.
9075 (rtx_reader::read_conditions): New method decl.
9076 (rtx_reader::record_potential_iterator_use): New method decl.
9077 (rtx_reader::read_mapping): New method decl.
9078 (rtx_reader::read_rtx): New method decl.
9079 (rtx_reader::read_rtx_code): New method decl.
9080 (rtx_reader::read_rtx_operand): New method decl.
9081 (rtx_reader::read_nested_rtx): New method decl.
9082 (rtx_reader::read_rtx_variadic): New method decl.
9083 (rtx_reader::get_string_obstack): New method.
9084 (rtx_reader::get_md_constants): New method.
9085 (string_obstack): Convert global variable decl to...
9086 (rtx_reader::m_string_obstack): ...this new field.
9087 (rtx_reader::m_ptr_locs): New field.
9088 (rtx_reader::m_ptr_loc_obstack): New field.
9089 (rtx_reader::m_joined_conditions): New field.
9090 (rtx_reader::m_joined_conditions_obstack): New field.
9091 (rtx_reader::m_md_constants): New field.
9092 (rtx_reader::m_enum_types): New field.
9093 * read-rtl.c (apply_iterator_to_string): Convert to...
9094 (rtx_reader::apply_iterator_to_string): ...member function.
9095 (copy_rtx_for_iterators): Convert to...
9096 (rtx_reader::copy_rtx_for_iterators): ...member function.
9097 (add_condition_to_string): Use rtx_reader_ptr for
9098 calls join_c_conditions.
9099 (apply_iterators): Use rtx_reader_ptr for calls to
9100 join_c_conditions and copy_rtx_for_iterators.
9101 (read_conditions): Convert to...
9102 (rtx_reader::read_conditions): ...member function.
9103 (record_potential_iterator_use): Convert to...
9104 (rtx_reader::record_potential_iterator_use): ...member function.
9105 (read_mapping): Convert to...
9106 (rtx_reader::read_mapping): ...member function.
9107 (read_subst_mapping): Use rtx_reader_ptr for read_string call.
9108 (read_rtx): Convert to...
9109 (rtx_reader::read_rtx): ...member function.
9110 (read_rtx_code): Convert to...
9111 (rtx_reader::read_rtx_code): ...member function.
9112 (read_rtx_operand): Convert to...
9113 (rtx_reader::read_rtx_operand): ...member function. Update for move
9114 of string_obstack to a field.
9115 (read_nested_rtx): Convert to..
9116 (rtx_reader::read_nested_rtx): ...member function.
9117 (read_rtx_variadic): Convert to..
9118 (rtx_reader::read_rtx_variadic): ...member function.
9119
9120 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
9121
9122 * tree-vrp.c (get_value_range): Check get_ptr_nonnull.
9123
9124 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
9125
9126 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Set value range
9127 for pointer type too.
9128 (ipcp_update_vr): set_ptr_nonnull for pointer.
9129
9130 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
9131
9132 * tree-ssa-alias.h (pt_solution_singleton_or_null_p): Renamed from
9133 pt_solution_singleton_p.
9134 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use renamed
9135 pt_solution_singleton_or_null_p from pt_solution_singleton_p.
9136 * tree-ssa-structalias.c (find_what_p_points_to): Preserve
9137 pointer nonnull computed by VRP.
9138 Also Conservatively set pt.null to 1.
9139 (pt_solution_reset): Conservatively set pt.null to 1.
9140 (pt_solution_singleton_or_null_p): Renamed from
9141 pt_solution_singleton_p.
9142 * tree-ssanames.h (set_ptr_nonnull): Declare.
9143 (get_ptr_nonnull): Likewise.
9144 * tree-ssanames.c (set_ptr_nonnull): New.
9145 (get_ptr_nonnull): Likewise.
9146 * tree-vrp.c (vrp_finalize): Set ptr that are nonnull.
9147 (evrp_dom_walker::before_dom_children): Likewise.
9148
9149 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
9150
9151 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
9152 * config/i386/i386.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
9153 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
9154 * config/ia64/ia64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
9155 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to.
9156 * config/rs6000/rs6000.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
9157 (rs6000_option_override_internal): Clear it if ABI_AIX.
9158 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
9159 * config/sparc/sparc.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ... here.
9160
9161 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9162
9163 * gimple-ssa-strength-reduction.c (record_increment): Remove
9164 garbage comment.
9165
9166 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
9167
9168 * expmed.c (expand_shift_1): Add MAY_FAIL parameter and do not assert
9169 that the result is non-zero if it is true.
9170 (maybe_expand_shift): New wrapper around expand_shift_1.
9171 (emit_store_flag): Call maybe_expand_shift in lieu of expand_shift.
9172
9173 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9174
9175 PR tree-optimization/77916
9176 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
9177 Don't allow a MINUS_EXPR for pointer arithmetic for either known
9178 or unknown strides.
9179 (record_increment): Increments of -1 for unknown strides just use
9180 a multiply initializer like other negative values.
9181 (analyze_increments): Remove stopgap solution for -1 increment
9182 applied to pointer arithmetic.
9183
9184 2016-10-17 Yuri Rumyantsev <ysrumyan@gmail.com>
9185
9186 * dominance.c (dom_info::dom_info): Add new constructor for region
9187 which is vector of basic blocks.
9188 (dom_init): New method to initialize members common for both
9189 constructors.
9190 (dom_info::dom_info): Invoke dom_init for partial initialization.
9191 (dom_info::get_idom): Add check to corner cases on basic blocks which
9192 are not in region.
9193 (dom_info::calc_dfs_tree): Check M_FAKE_EXIT_EDGE instead of M_REVERSE
9194 to detect unreachable bbs.
9195 (dom_info::calc_idoms): Likewise.
9196 (compute_dom_fast_query_in_region): New function.
9197 (calculate_dominance_info_for_region): Likewise.
9198 (free_dominance_info_for_region): Likewise.
9199 * dominance.h: Add prototypes for introduced region-based functions
9200 * tree-if-conv.c (build_region): New function.
9201 (if_convertible_loop_p_1): Invoke local version of post-dominators
9202 calculation before basic block predication with subsequent freeing
9203 post-dominator info.
9204 (tree_if_conversion): Remove free of post-dominator info
9205 (pass_if_conversion::execute): Delete detection of infinite loops
9206 and fake edges to exit block since post-dominator calculation is
9207 performed per if-converted loop only.
9208
9209 2016-10-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
9210
9211 PR target/77308
9212 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
9213 register explicitly.
9214 * config/arm/arm.md (ashldi3, ashrdi3, lshrdi3): Don't FAIL if
9215 optimizing for size.
9216
9217 2016-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9218
9219 * config/aarch64/aarch64.c: Delete inclusion of
9220 cortex-a57-fma-steering.h.
9221 (aarch64_override_options): Delete call
9222 to aarch64_register_fma_steering.
9223 * config/aarch64/aarch64-protos.h (make_pass_fma_steering): Declare.
9224 * config/aarch64/cortex-a57-fma-steering.h: Delete.
9225 * config/aarch64/aarch64-passes.def: New file.
9226 * config/aarch64/cortex-a57-fma-steering.c
9227 (aarch64_register_fma_steering): Delete definition.
9228 (make_pass_fma_steering): Remove static qualifier.
9229 * config/aarch64/t-aarch64 (PASSES_EXTRA): New directive.
9230 (cortex-a57-fma-steering.o): Remove dependency on
9231 cortex-a57-fma-steering.h.
9232
9233 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
9234
9235 * explow.c (validize_mem): Do not modify the argument in-place.
9236
9237 2016-10-17 Thomas Schwinge <thomas@codesourcery.com>
9238
9239 * tree-streamer.c (record_common_node): Explicitly list expected
9240 tree codes.
9241
9242 2016-10-17 Richard Biener <rguenther@suse.de>
9243
9244 PR tree-optimization/77988
9245 * tree-vrp.c (remove_range_assertions): Use replace_uses_by.
9246
9247 2016-10-17 Marek Polacek <polacek@redhat.com>
9248
9249 * Makefile.in (C_COMMON_OBJS): Add c-family/c-attribs.o.
9250
9251 2016-10-17 Richard Biener <rguenther@suse.de>
9252
9253 * bb-reorder.c (reorder_basic_blocks_simple): Clear BB_VISITED
9254 before using it.
9255
9256 2016-10-17 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9257
9258 PR tree-optimization/71636
9259 * match.pd (x & ((1 << b) - 1) -> x & ~(~0 << b)): New pattern.
9260
9261 2016-10-17 Richard Biener <rguenther@suse.de>
9262
9263 * gimplify.c (gimplify_function_tree): Do not move the outer
9264 binds block.
9265
9266 2016-10-17 Jakub Jelinek <jakub@redhat.com>
9267
9268 * langhooks.h (struct lang_hooks_for_decls): Remove
9269 function_decl_explicit_p, function_decl_deleted_p and
9270 function_decl_defaulted hooks. Add decl_dwarf_attribute hook.
9271 * langhooks-def.h (lhd_decl_dwarf_attribute): Declare.
9272 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
9273 LANG_HOOKS_FUNCTION_DECL_DELETED_P,
9274 LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Remove.
9275 (LANG_HOOKS_DECL_DWARF_ATTRIBUTE): Define.
9276 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
9277 LANG_HOOKS_FUNCTION_DECL_DELETED_P and
9278 LANG_HOOKS_FUNCTION_DECL_DEFAULTED. Add
9279 LANG_HOOKS_DECL_DWARF_ATTRIBUTE.
9280 * langhooks.c (lhd_decl_dwarf_attribute): New function.
9281 * dwarf2out.c (gen_subprogram_die): Use
9282 lang_hooks.decls.decl_dwarf_attribute instead of
9283 lang_hooks.decls.function_decl_*.
9284
9285 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
9286
9287 PR ada/37139
9288 PR ada/67205
9289 * common.opt (-ftrampolines): New option.
9290 * doc/invoke.texi (Code Gen Options): Document it.
9291 * doc/tm.texi.in (Trampolines): Add TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
9292 * doc/tm.texi: Regenerate.
9293 * builtins.def: Add init_descriptor and adjust_descriptor.
9294 * builtins.c (expand_builtin_init_trampoline): Do not issue a warning
9295 on platforms with descriptors.
9296 (expand_builtin_init_descriptor): New function.
9297 (expand_builtin_adjust_descriptor): Likewise.
9298 (expand_builtin) <BUILT_IN_INIT_DESCRIPTOR>: New case.
9299 <BUILT_IN_ADJUST_DESCRIPTOR>: Likewise.
9300 * calls.c (prepare_call_address): Remove SIBCALLP parameter and add
9301 FLAGS parameter. Deal with indirect calls by descriptor and adjust.
9302 Set STATIC_CHAIN_REG_P on the static chain register, if any.
9303 (call_expr_flags): Set ECF_BY_DESCRIPTOR for calls by descriptor.
9304 (expand_call): Likewise. Move around call to prepare_call_address
9305 and pass all flags to it.
9306 * cfgexpand.c (expand_call_stmt): Reinstate CALL_EXPR_BY_DESCRIPTOR.
9307 * gimple.h (enum gf_mask): New GF_CALL_BY_DESCRIPTOR value.
9308 (gimple_call_set_by_descriptor): New setter.
9309 (gimple_call_by_descriptor_p): New getter.
9310 * gimple.c (gimple_build_call_from_tree): SetCALL_EXPR_BY_DESCRIPTOR.
9311 (gimple_call_flags): Deal with GF_CALL_BY_DESCRIPTOR.
9312 * langhooks.h (struct lang_hooks): Add custom_function_descriptors.
9313 * langhooks-def.h (LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS): Define.
9314 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS.
9315 * rtl.h (STATIC_CHAIN_REG_P): New macro.
9316 * rtlanal.c (find_first_parameter_load): Skip static chain registers.
9317 * target.def (custom_function_descriptors): New POD hook.
9318 * tree.h (FUNC_ADDR_BY_DESCRIPTOR): New flag on ADDR_EXPR.
9319 (CALL_EXPR_BY_DESCRIPTOR): New flag on CALL_EXPR.
9320 * tree-core.h (ECF_BY_DESCRIPTOR): New mask.
9321 Document FUNC_ADDR_BY_DESCRIPTOR and CALL_EXPR_BY_DESCRIPTOR.
9322 * tree.c (make_node_stat) <tcc_declaration>: Use FUNCTION_ALIGNMENT.
9323 (build_common_builtin_nodes): Initialize init_descriptor and
9324 adjust_descriptor.
9325 * tree-nested.c: Include target.h.
9326 (struct nesting_info): Add 'any_descr_created' field.
9327 (get_descriptor_type): New function.
9328 (lookup_element_for_decl): New function extracted from...
9329 (create_field_for_decl): Likewise.
9330 (lookup_tramp_for_decl): ...here. Adjust.
9331 (lookup_descr_for_decl): New function.
9332 (convert_tramp_reference_op): Deal with descriptors.
9333 (build_init_call_stmt): New function extracted from...
9334 (finalize_nesting_tree_1): ...here. Adjust and deal with descriptors.
9335 * defaults.h (FUNCTION_ALIGNMENT): Define.
9336 (TRAMPOLINE_ALIGNMENT): Set to above instead of FUNCTION_BOUNDARY.
9337 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
9338 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
9339 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS):Likewise.
9340 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
9341
9342 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
9343
9344 * config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
9345 constants in CONST_VECTORs.
9346
9347 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
9348
9349 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
9350 register as destination of bmask.
9351 (vector_init_bshuffle): Likewise.
9352 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
9353 (bmaskdi_vis): Enable only in 64-bit mode.
9354
9355 2016-10-15 Segher Boessenkool <segher@kernel.crashing.org>
9356
9357 * config/rs6000/rs6000.c (rs6000_get_separate_components): Do not
9358 make LR a separately shrink-wrapped component unless savres_strategy
9359 contains all of {SAVE,REST}_INLINE_{GPRS,FPRS,VRS}. Do not wrap
9360 GPRs unless both {SAVE,REST}_INLINE_GPRS. Do not disallow all
9361 wrapping when not both {SAVE,REST}_INLINE_GPRS.
9362
9363 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
9364
9365 * optabs.c (expand_parity): Fix mode mismatch, add final conversion
9366 and keep looping on failure.
9367
9368 2016-10-14 David Malcolm <dmalcolm@redhat.com>
9369
9370 * print-rtl-function.c (print_edge): Omit "(flags)" when none are
9371 set.
9372 (print_rtx_function): Update example in comment for...
9373 * print-rtl.c (print_rtx_operand_code_r): In compact mode, print
9374 non-virtual pseudos with a '%' sigil followed by the regno, offset
9375 by (LAST_VIRTUAL_REGISTER + 1), so that the first non-virtual
9376 pseudo is dumped as "%0".
9377
9378 2016-10-14 Jakub Jelinek <jakub@redhat.com>
9379
9380 PR middle-end/77959
9381 * expr.c (expand_expr_real_1) <case CONST_DECL>: For EXPAND_WRITE
9382 return a MEM.
9383
9384 2016-10-14 Eric Botcazou <ebotcazou@adacore.com>
9385
9386 * config/sparc/sparc-passes.def: New file.
9387 * config/sparc/t-sparc (PASSES_EXTRA): Add sparc-passes.def.
9388 * config/sparc/sparc-protos.h (make_pass_work_around_errata): New.
9389 * config/sparc/sparc.c (sparc_option_override): Don't register passes.
9390
9391 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
9392
9393 * loop-unroll.c (unroll_loop_runtime_iterations): Condition initial
9394 loop peel to loops with exit test at the beginning.
9395
9396 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
9397
9398 PR rtl-optimization/68212
9399 * cfgloopmanip.c (duplicate_loop_to_header_edge): Use preheader edge
9400 frequency when computing scale factor for peeled copies.
9401 * loop-unroll.c (unroll_loop_runtime_iterations): Fix freq/count
9402 values for switch/peel blocks/edges.
9403
9404 2016-10-14 Pedro Alves <palves@redhat.com>
9405
9406 * coretypes.h (OVERRIDE, FINAL): Delete, moved to include/ansidecl.h.
9407
9408 2016-10-14 Catherine Moore <clm@codesourcery.com>
9409
9410 * config/mips/mips.c (mips_prepare_pch_save): Initialize
9411 micromips_globals to zero.
9412
9413 2016-10-14 Richard Biener <rguenther@suse.de>
9414
9415 PR tree-optimization/77979
9416 * tree-vrp.c (compare_name_with_value): Handle released SSA names
9417 in the equivalency sets.
9418 (compare_names): Likewise.
9419
9420 2016-10-14 Martin Liska <mliska@suse.cz>
9421
9422 * builtins.h(target_char_cst_p): Declare the function.
9423 * builtins.c (fold_builtin_memchr): Remove.
9424 (target_char_cst_p): Move the function from gimple-fold.c.
9425 (fold_builtin_3): Do not call the function.
9426 * gimple-fold.c (gimple_fold_builtin_memchr): New function.
9427 (gimple_fold_builtin): Call the function.
9428 * fold-const-call.c (fold_const_call_1): Handle CFN_BUILT_IN_MEMCHR.
9429
9430 2016-10-14 Martin Liska <mliska@suse.cz>
9431
9432 * builtins.c (fold_builtin_strcmp): Remove function.
9433 (fold_builtin_strncmp): Likewise.
9434 (fold_builtin_2): Remove call of the function.
9435 (fold_builtin_3): Likewise.
9436 * fold-const-call.c (fold_const_call): Add constant folding
9437 for CFN_BUILT_IN_STRCASECMP and CFN_BUILT_IN_STRNCASECMP.
9438 * fold-const-call.h (build_cmp_result): Declare the function.
9439 * gimple-fold.c (gimple_load_first_char): New function.
9440 (gimple_fold_builtin_string_compare): Likewise.
9441 (gimple_fold_builtin): Call the function.
9442
9443 2016-10-14 Nathan Sidwell <nathan@acm.org>
9444
9445 * gcov-io.c (gcov_open): Deconstify 'mode'.
9446
9447 2016-10-14 Martin Liska <mliska@suse.cz>
9448
9449 * fold-const.c (c_getstr): Support of properly \0-terminated
9450 string constants. New argument is added.
9451 * fold-const.h: New argument is added.
9452
9453 2016-10-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9454
9455 * config/aarch64/aarch64.c (aarch64_print_hint_for_core_or_arch):
9456 New function.
9457 (aarch64_print_hint_for_core): Likewise.
9458 (aarch64_print_hint_for_arch): Likewise.
9459 (aarch64_validate_march): Use it. Fix indentation in type signature.
9460 (aarch64_validate_mcpu): Use aarch64_print_hint_for_core_or_arch.
9461 (aarch64_validate_mtune): Likewise.
9462 (aarch64_handle_attr_arch): Likewise.
9463 (aarch64_handle_attr_cpu): Likewise.
9464 (aarch64_handle_attr_tune): Likewise.
9465
9466 2016-10-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9467
9468 * optabs.def: Remove optab function gen_int_libfunc for sdivmod_optab
9469 and udivmod_optab.
9470
9471 2016-10-13 Andreas Schwab <schwab@linux-m68k.org>
9472
9473 * config/m68k/m68k.c (m68k_option_override): Check
9474 opt_fstack_limit_symbol_arg and opt_fstack_limit_register_no
9475 instead of stack_limit_rtx.
9476
9477 2016-10-13 Jakub Jelinek <jakub@redhat.com>
9478
9479 * dwarf2out.c (gen_member_die): Handle inline static data member
9480 definitions.
9481
9482 2016-10-13 Nathan Sidwell <nathan@acm.org>
9483
9484 * gcov-io.c (gcov_open): Fix documentation. Simplify setting
9485 gcov_var.mode. Remove unnecessary fstat.
9486
9487 2016-10-13 Segher Boessenkool <segher@kernel.crashing.org>
9488
9489 PR bootstrap/77962
9490 * function.c (thread_prologue_and_epilogue_insns): Call all
9491 make_*logue_seq in the same order as traditional. Call them
9492 all a second time if shrink_wrapped_separate.
9493
9494 2016-10-13 Marek Polacek <polacek@redhat.com>
9495
9496 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
9497 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Don't
9498 use -Wno-error.
9499
9500 2016-10-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9501
9502 PR tree-optimization/77937
9503 * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
9504 to infinite when we have a pointer with an increment of -1.
9505
9506 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
9507
9508 * coretypes.h: Move MEMMODEL_* macros and enum memmodel definition
9509 into ...
9510 * memmodel.h: This file.
9511 * alias.c, asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
9512 caller-save.c, calls.c, ccmp.c, cfgbuild.c, cfgcleanup.c,
9513 cfgexpand.c, cfgloopanal.c, cfgrtl.c, cilk-common.c, combine.c,
9514 combine-stack-adj.c, common/config/aarch64/aarch64-common.c,
9515 common/config/arm/arm-common.c, common/config/bfin/bfin-common.c,
9516 common/config/c6x/c6x-common.c, common/config/i386/i386-common.c,
9517 common/config/ia64/ia64-common.c, common/config/nvptx/nvptx-common.c,
9518 compare-elim.c, config/aarch64/aarch64-builtins.c,
9519 config/aarch64/aarch64-c.c, config/aarch64/cortex-a57-fma-steering.c,
9520 config/arc/arc.c, config/arc/arc-c.c, config/arm/arm-builtins.c,
9521 config/arm/arm-c.c, config/avr/avr.c, config/avr/avr-c.c,
9522 config/avr/avr-log.c, config/bfin/bfin.c, config/c6x/c6x.c,
9523 config/cr16/cr16.c, config/cris/cris.c, config/darwin-c.c,
9524 config/darwin.c, config/epiphany/epiphany.c,
9525 config/epiphany/mode-switch-use.c,
9526 config/epiphany/resolve-sw-modes.c, config/fr30/fr30.c,
9527 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
9528 config/i386/i386-c.c, config/i386/winnt.c, config/iq2000/iq2000.c,
9529 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
9530 config/m68k/m68k.c, config/mcore/mcore.c,
9531 config/microblaze/microblaze.c, config/mmix/mmix.c,
9532 config/mn10300/mn10300.c, config/moxie/moxie.c,
9533 config/msp430/msp430.c, config/nds32/nds32-cost.c,
9534 config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
9535 config/nds32/nds32-memory-manipulation.c,
9536 config/nds32/nds32-predicates.c, config/nds32/nds32.c,
9537 config/nios2/nios2.c, config/nvptx/nvptx.c, config/pa/pa.c,
9538 config/pdp11/pdp11.c, config/rl78/rl78.c, config/rs6000/rs6000-c.c,
9539 config/rx/rx.c, config/s390/s390-c.c, config/s390/s390.c,
9540 config/sh/sh.c, config/sh/sh-c.c, config/sh/sh-mem.cc,
9541 config/sh/sh_treg_combine.cc, config/sol2.c, config/spu/spu.c,
9542 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
9543 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
9544 config/visium/visium.c, config/vms/vms-c.c, config/xtensa/xtensa.c,
9545 coverage.c, cppbuiltin.c, cprop.c, cse.c, cselib.c, dbxout.c, dce.c,
9546 df-core.c, df-problems.c, df-scan.c, dojump.c, dse.c, dwarf2asm.c,
9547 dwarf2cfi.c, dwarf2out.c, emit-rtl.c, except.c, explow.c, expmed.c,
9548 expr.c, final.c, fold-const.c, function.c, fwprop.c, gcse.c,
9549 ggc-page.c, haifa-sched.c, hsa-brig.c, hsa-gen.c, hw-doloop.c,
9550 ifcvt.c, init-regs.c, internal-fn.c, ira-build.c, ira-color.c,
9551 ira-conflicts.c, ira-costs.c, ira-emit.c, ira-lives.c, ira.c, jump.c,
9552 loop-doloop.c, loop-invariant.c, loop-iv.c, loop-unroll.c,
9553 lower-subreg.c, lra.c, lra-assigns.c, lra-coalesce.c,
9554 lra-constraints.c, lra-eliminations.c, lra-lives.c, lra-remat.c,
9555 lra-spills.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
9556 postreload-gcse.c, postreload.c, predict.c, print-rtl-function.c,
9557 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
9558 reload.c, reload1.c, reorg.c, resource.c, rtl-chkp.c, rtl-tests.c,
9559 rtlanal.c, rtlhooks.c, sched-deps.c, sched-rgn.c, sdbout.c,
9560 sel-sched-ir.c, sel-sched.c, shrink-wrap.c, simplify-rtx.c,
9561 stack-ptr-mod.c, stmt.c, stor-layout.c, target-globals.c,
9562 targhooks.c, toplev.c, tree-nested.c, tree-outof-ssa.c,
9563 tree-profile.c, tree-ssa-coalesce.c, tree-ssa-ifcombine.c,
9564 tree-ssa-loop-ivopts.c, tree-ssa-loop.c, tree-ssa-reassoc.c,
9565 tree-ssa-sccvn.c, tree-vect-data-refs.c, ubsan.c, valtrack.c,
9566 var-tracking.c, varasm.c: Include memmodel.h.
9567 * genattrtab.c (write_header): Include memmodel.h in generated file.
9568 * genautomata.c (main): Likewise.
9569 * gengtype.c (open_base_files): Likewise.
9570 * genopinit.c (main): Likewise.
9571 * genconditions.c (write_header): Include memmodel.h earlier in
9572 generated file.
9573 * genemit.c (main): Likewise.
9574 * genoutput.c (output_prologue): Likewise.
9575 * genpeep.c (main): Likewise.
9576 * genpreds.c (write_insn_preds_c): Likewise.
9577 * genrecog.c (write_header): Likewise.
9578 * Makefile.in (PLUGIN_HEADERS): Include memmodel.h
9579
9580 2016-10-13 David Malcolm <dmalcolm@redhat.com>
9581
9582 * function-tests.c (selftest::test_expansion_to_rtl): Add "true"
9583 for new "compact" param of print_rtx_function. Check for "cinsn"
9584 rather than "insn".
9585 * print-rtl-function.c (flag_compact): New decl.
9586 (print_rtx_function): Add param "compact" and use it to set
9587 flag_compact, adding a description of the effect to the leading
9588 comment, and updating the example output.
9589 * print-rtl.c (flag_compact): New variable.
9590 (print_rtx_operand_code_0): Omit the JUMP_LABEL reference in compact
9591 mode.
9592 (print_rtx_operand_code_i): When printing source locations, wrap
9593 xloc.file in quotes. Don't print INSN_CODEs in compact mode.
9594 (print_rtx_operand_code_r): Don't print regnos for hard regs and
9595 virtuals in compact mode.
9596 (print_rtx_operand_code_u): Don't print insn UIDs in compact mode,
9597 apart from in LABEL_REFs.
9598 (print_rtx_operand): In case 'w', don't print in hex in compact mode.
9599 Don't print basic block ids in compact mode.
9600 (print_rtx): In compact mode, prefix the code of insns with "c",
9601 only print the INSN_UID of CODE_LABELs, and omit their LABEL_NUSES.
9602 * print-rtl.h (print_rtx_function): Add "compact" param.
9603
9604 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
9605
9606 * arm.h (TARGET_VFP): Delete.
9607 (TARGET_VFPD32): Remove references to TARGET_VFP.
9608 (TARGET_VFP3, TARGET_VFP5): Likewise.
9609 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Likewise.
9610 (TARGET_NEON_FP16): Likewise.
9611 (TARGET_FMA): Likewise.
9612 (TARGET_CRYPTO): Likewise.
9613 (TARGET_NEON): Likewise.
9614 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
9615 (FUNCTION_ARG_REGNO_P): Likewise.
9616 * arm.c (arm_option_check_internal): Likewise.
9617 (arm_option_override): Likewise.
9618 (use_return_insn): Likewise.
9619 (arm_function_value_regno_p): Likewise.
9620 (arm_apply_result_size): Likewise.
9621 (use_vfp_abi): Likewise.
9622 (arm_legitimate_address_outer_p): Likewise.
9623 (thumb2_legitimate_address_p): Likewise.
9624 (arm_legitimate_index_p): Likewise.
9625 (thumb2_legitimate_index_p): Likewise.
9626 (arm_legitimate_address): Likewise.
9627 (arm_get_vfp_saved_size): Likewise.
9628 (arm_emit_vfp_multi_reg_pop): Likewise.
9629 (arm_get_frame_offsets): Likewise.
9630 (arm_save_coproc_regs): Likewise.
9631 (arm_hard_regno_mode_ok): Likewise.
9632 (arm_expand_epilogue_apcs_frame): Likewise.
9633 (arm_expand_epilogue): Likewise.
9634 (arm_file_start): Likewise.
9635 (arm_conditional_register_usage): Likewise.
9636 (arm_validize_comparison): Use vfp_compare_operand directly.
9637 * arm-builtins.c (arm_init_builtins): Remove references to TARGET_VFP.
9638 (arm_expand_vfp_builtin): Use TARGET_HARD_FLOAT for detecting
9639 unsupported usage.
9640 (arm_atomic_assign_expand_fenv): Likewise.
9641 * arm.md (divsf3): Likewise.
9642 (arm_negsi2): Likewise.
9643 (absdf2): Likewise.
9644 (arm_movdi): Likewise.
9645 (arm_movt): Likewise.
9646 (cbranchsf4): Change predicate to vfp_compare_operand.
9647 (cbranchdf4): Change predicate to vfp_compare_operand.
9648 (cstorehf4): Change predicate to vfp_compare_operand.
9649 (cstoresf4): Change predicate to vfp_compare_operand.
9650 (cstoredf4): Change predicate to vfp_compare_operand.
9651 (vfp_pop_multiple_with_writeback): Remove references to TARGET_VFP.
9652 (movhi_insn_arch4, movhi_bytes): Likewise.
9653 * constraints.md (Dt): Likewise.
9654 (Dp): Likewise.
9655 * iterators.md (SDF): Likewise.
9656 * predicates.md (arm_float_compare_operand): Delete.
9657 (const_double_vcvt_power_of_two_reciprocal): Remove references to
9658 TARGET_VFP.
9659 (const_double_vcvt_power_of_two): Likewise.
9660 * thumb2.md thumb2_movsi_insn): Likewise.
9661 * vfp.md (arm_movhi_vfp, thumb2_movhi_vfp): Likewise.
9662 (movhf_vfp): Likewise.
9663 (arm_movsi_vfp, thumb2_movsi_vfp): Likewise.
9664 (movdi_vfp, movdi_vfp_cortexa8): Likewise.
9665 (movsf_vfp, thumb2_movsf_vfp): Likewise.
9666 (movdf_vfp, thumb2_movdf_vfp): Likewise.
9667 (movsfcc_vfp, abssf2_vfp, negsf2_vfp, addsf3_vfp): Likewise.
9668 (subsf3_vfp, divsf3_vfp): Likewise.
9669 (mulsf3_vfp, mulsf3negsf_vfp, negmulsf3_vfp): Likewise.
9670 (mulsf3addsf_vfp, (mulsf3subsf_vfp, mulsf3negsfaddsf_vfp): Likewise.
9671 (mulsf3negsfsubsf_vfp): Likewise.
9672 (truncsisf2_vfp, fixuns_truncsfsi2, floatsisf2_vfp): Likewise.
9673 (floatunssisf2, sqrtsf2_vfp): Likewise.
9674 (movcc_vfp): Likewise.
9675 (cmpsf_split_vfp, cmpsf_trap_split_vfp): Likewise.
9676 (cmpsf_vfp, cmpsf_trap_vfp): Likewise.
9677 (push_multi_vfp): Likewise.
9678 (set_fpscr, get_fpscr): Likewise.
9679 * arm-c.c (arm_cpu_builtins): Unconditionally define __VFP_FP__.
9680
9681 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
9682
9683 * arm.h (TARGET_VFP): Unconditionally define to 1.
9684 (arm_fpu_desc): Remove 'model' field.
9685 (TARGET_FPU_MODEL): Delete.
9686 * arm.c (all_fpus): Don't initialize the model field.
9687 (arm_can_inline_p): Don't check the FPU model.
9688 * arm-fpus.def: Remove redundant model field from all FPU
9689 descriptions.
9690
9691 2016-10-13 Richard Biener <rguenther@suse.de>
9692
9693 PR middle-end/77826
9694 * genmatch.c (struct capture): Add value_match member.
9695 (commutate): Preserve value_match.
9696 (lower_opt_convert): Likewise.
9697 (lower_cond): Likewise.
9698 (replace_id): Likewise.
9699 (struct dt_operand): Add value_match member.
9700 (decision_tree::cmp_node): Compare it.
9701 (decision_tree::insert_operand): Honor it when finding and
9702 when appending a DT_MATCH.
9703 (dt_operand::gen_match_op): Generate a type check after
9704 operand_equal_p if ! value_match for both GENERIC and GIMPLE.
9705 (parser::get_internal_capture_id): New helper.
9706 (parser::finish_match_operand): New function lowering @@<id>.
9707 (parser::parse_capture): Parse @@<id> as value-match.
9708 (parser::parse_expr): Use get_internal_capture_id.
9709 (parser::parse_simplify): Call finish_match_operand.
9710 (walk_captures): New helper.
9711 * match.pd (X - (X / Y) * Y -> X % Y): Use value-matching instead
9712 of operand_equal_p.
9713 ((X /[ex] A) * A -> X): Likewise.
9714 ((X | Y) ^ X -> Y & ~ X): Handle constants properly by using
9715 convert[12] and value-matching.
9716 ((A | B) & (A | C) -> A | (B & C)): Likewise.
9717 ((X | Y) | Y -> X | Y): Likewise.
9718 ((X ^ Y) ^ Y -> X): Likewise.
9719 (A - (A & B) -> ~B & A): Likewise.
9720 ((T)(P + A) - (T)P -> (T) A): Likewise.
9721 ((T)P - (T)(P + A) -> -(T) A): Likewise.
9722 ((T)(P + A) - (T)(P + B) -> (T)A - (T)B): Likewise.
9723 * doc/match-and-simplify.texi: Amend capture section.
9724
9725 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
9726
9727 * config/arc/arc.md (umul_600): Remove predicated variant.
9728 (umul64_600): Likewise.
9729
9730 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
9731
9732 * config/arc/arc.h (INSN_LENGTH_ALIGNMENT): Change.
9733
9734 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9735
9736 * tree-vect-loop.c (loop_niters_no_overflow): New func.
9737 (vect_transform_loop): Call loop_niters_no_overflow. Pass the
9738 no-overflow information to vect_do_peeling_for_loop_bound and
9739 vect_gen_vector_loop_niters.
9740
9741 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9742
9743 * tree-predcom.c (tree_predictive_commoning_loop): Skip loop that only
9744 iterates 1 time.
9745
9746 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9747
9748 * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Don't release
9749 adjust_vec automatically.
9750 (slpeel_add_loop_guard): Remove param cond_expr_stmt_list. Rename
9751 param exit_bb to guard_to.
9752 (slpeel_checking_verify_cfg_after_peeling):
9753 (set_prologue_iterations):
9754 (create_lcssa_for_virtual_phi): New func which is factored out from
9755 slpeel_tree_peel_loop_to_edge.
9756 (slpeel_tree_peel_loop_to_edge):
9757 (iv_phi_p): New func.
9758 (vect_can_advance_ivs_p): Call iv_phi_p.
9759 (vect_update_ivs_after_vectorizer): Call iv_phi_p. Directly insert
9760 new gimple stmts in basic block.
9761 (vect_gen_niters_for_prolog_loop): Rename to...
9762 (vect_gen_prolog_loop_niters): ...Rename from. Change parameters and
9763 adjust implementation.
9764 (vect_update_inits_of_drs): Fix code style issue. Convert niters to
9765 sizetype if necessary.
9766 (vect_build_loop_niters): Move to here from tree-vect-loop.c. Change
9767 it to external function.
9768 (vect_gen_scalar_loop_niters, vect_gen_vector_loop_niters): New.
9769 (vect_gen_vector_loop_niters_mult_vf): New.
9770 (slpeel_update_phi_nodes_for_loops): New.
9771 (slpeel_update_phi_nodes_for_guard1): Reimplement.
9772 (find_guard_arg, slpeel_update_phi_nodes_for_guard2): Reimplement.
9773 (slpeel_update_phi_nodes_for_lcssa, vect_do_peeling): New.
9774 * tree-vect-loop.c (vect_build_loop_niters): Move to file
9775 tree-vect-loop-manip.c
9776 (vect_generate_tmps_on_preheader): Delete.
9777 (vect_transform_loop): Rename vectorization_factor to vf. Call
9778 vect_do_peeling instead of vect_do_peeling-* functions.
9779 * tree-vectorizer.h (vect_do_peeling): New decl.
9780 (vect_build_loop_niters, vect_gen_vector_loop_niters): New decls.
9781 (vect_do_peeling_for_loop_bound): Delete.
9782 (vect_do_peeling_for_alignment): Delete.
9783
9784 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9785
9786 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Put
9787 duplicated loop after its preheader and after the original loop.
9788
9789 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9790
9791 * tree-vect-loop.c (vect_analyze_loop_2): Check and skip loop if it
9792 has no enough iterations for LOOP_VINFO_PEELING_FOR_GAPS.
9793
9794 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9795
9796 * tree-vect-loop.c (vectorizable_live_operation): Support handling
9797 for live variable outside loop but not in lcssa form.
9798
9799 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9800
9801 * cfg.c (reset_original_copy_tables): New func.
9802 * cfg.h (reset_original_copy_tables): New decl.
9803
9804 2016-10-13 Jakub Jelinek <jakub@redhat.com>
9805
9806 PR c/77946
9807 * tree.h (FALLTHROUGH_LABEL_P): Use private_flag instead of
9808 public_flag.
9809 * varasm.c (default_binds_local_p_3): Formatting fix.
9810
9811 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9812
9813 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Fix code
9814 style issue.
9815 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
9816 Remove useless code.
9817
9818 2016-10-13 Martin Liska <mliska@suse.cz>
9819
9820 PR tree-optimization/77943
9821 * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
9822 a different EH landing pads.
9823
9824 2016-10-13 Jakub Jelinek <jakub@redhat.com>
9825
9826 PR target/77957
9827 * hooks.h (hook_tree_void_null): Declare.
9828 * hooks.c (hook_tree_void_null): New function.
9829 * langhooks.c (lhd_return_null_tree_v): Remove.
9830 * langhooks-def.h (lhd_return_null_tree_v): Remove.
9831 * cfgexpand.c (stack_protect_prologue): If guard_decl is NULL,
9832 set y to const0_rtx.
9833 * function.c (stack_protect_epilogue): Likewise.
9834 * config/tilepro/tilepro.c (TARGET_STACK_PROTECT_GUARD): Redefine
9835 if TARGET_THREAD_SSP_OFFSET is defined.
9836 * config/s390/s390.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9837 * config/sparc/sparc.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9838 * config/tilegx/tilegx.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9839 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9840 * config/i386/i386.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9841 (ix86_stack_protect_guard): New function.
9842
9843 2016-10-13 Richard Biener <rguenther@suse.de>
9844
9845 * dwarf2out.c (tree_add_const_value_attribute): Do not try
9846 rtl_for_decl_init during early phase.
9847 (gen_variable_die): Do not create locations during early phase.
9848 (gen_label_die): Likewise.
9849 (decls_for_scope): Do not waste time handling BLOCK_NONLOCALIZED_VARs
9850 twice.
9851
9852 2016-10-12 Richard Biener <rguenther@suse.de>
9853
9854 * tree-vrp.c (evrp_dom_walker::try_find_new_range): Renamed from
9855 try_add_new_range and made to eturn new range.
9856 (evrp_dom_walker::before_dom_children): Push op1 value range before
9857 pushing op0 value range.
9858
9859 2016-10-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9860
9861 PR tree-optimization/77937
9862 * gimple-ssa-strength-reduction.c (analyze_increments): Use
9863 POINTER_TYPE_P on the candidate type to determine whether
9864 candidates in this chain require pointer arithmetic.
9865
9866 2016-10-12 Eric Botcazou <ebotcazou@adacore.com>
9867
9868 * config/visium/visium.c (visium_gimplify_va_arg): Emit a big-endian
9869 correction if the type is smaller than a word.
9870 (visium_select_cc_mode): Add ... fall through ... comment.
9871
9872 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9873
9874 * config/rs6000/rs6000.c (machine_function): Add new fields
9875 gpr_is_wrapped_separately and lr_is_wrapped_separately.
9876 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
9877 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
9878 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
9879 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
9880 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
9881 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
9882 (rs6000_get_separate_components): New function.
9883 (rs6000_components_for_bb): New function.
9884 (rs6000_disqualify_components): New function.
9885 (rs6000_emit_prologue_components): New function.
9886 (rs6000_emit_epilogue_components): New function.
9887 (rs6000_set_handled_components): New function.
9888 (rs6000_emit_prologue): Don't emit LR save if lr_is_wrapped_separately.
9889 Don't emit GPR saves if gpr_is_wrapped_separately for that register.
9890 (restore_saved_lr): Don't restore LR if lr_is_wrapped_separately.
9891 (rs6000_emit_epilogue): Don't emit GPR restores if
9892 gpr_is_wrapped_separately for that register. Don't make a
9893 REG_CFA_RESTORE note for registers we did not restore, either.
9894
9895 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9896
9897 * function.c (thread_prologue_and_epilogue_insns): Call
9898 try_shrink_wrapping_separate. Compute the prologue_seq afterwards,
9899 if it has possibly changed. Compute the split_prologue_seq and
9900 epilogue_seq later, too.
9901 * shrink-wrap.c: #include cfgbuild.h and insn-config.h.
9902 (dump_components): New function.
9903 (struct sw): New struct.
9904 (SW): New function.
9905 (init_separate_shrink_wrap): New function.
9906 (fini_separate_shrink_wrap): New function.
9907 (place_prologue_for_one_component): New function.
9908 (spread_components): New function.
9909 (disqualify_problematic_components): New function.
9910 (emit_common_heads_for_components): New function.
9911 (emit_common_tails_for_components): New function.
9912 (insert_prologue_epilogue_for_components): New function.
9913 (try_shrink_wrapping_separate): New function.
9914 * shrink-wrap.h: Declare try_shrink_wrapping_separate.
9915
9916 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9917
9918 * regrename.c (build_def_use): Invalidate chains that have a
9919 REG_CFA_RESTORE on some instruction.
9920
9921 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9922
9923 * dce.c (delete_unmarked_insns): Don't delete instructions with
9924 a REG_CFA_RESTORE note.
9925
9926 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9927
9928 * common.opt (-fshrink-wrap-separate): New flag.
9929 * doc/invoke.texi: Document it.
9930 * doc/tm.texi.in (Shrink-wrapping separate components): New subsection.
9931 * doc/tm.texi: Regenerate.
9932 * emit-rtl.h (struct rtl_data): New field shrink_wrapped_separate.
9933 * target.def (shrink_wrap): New hook vector.
9934 (get_separate_components, components_for_bb, disqualify_components,
9935 emit_prologue_components, emit_epilogue_components,
9936 set_handled_components): New hooks.
9937
9938 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9939
9940 * config/rs6000/rs6000.c (rs6000_return_in_memory): Warn for
9941 vector return by reference only if -Wpsabi.
9942 (rs6000_pass_by_reference): Similarly, for argument passing.
9943
9944 2016-10-12 David Malcolm <dmalcolm@redhat.com>
9945
9946 * function-tests.c: Include "print-rtl.h".
9947 (selftest::test_expansion_to_rtl): Call print_rtx_function on the
9948 function, and verify what is dumped.
9949 * print-rtl-function.c (print_edge): New function.
9950 (begin_any_block): New function.
9951 (end_any_block): New function.
9952 (can_have_basic_block_p): New function.
9953 (print_rtx_function): Track the basic blocks of insns in the
9954 chain, wrapping those that are within blocks within "(block)"
9955 directives. Remove the "(cfg)" directive.
9956
9957 2016-10-12 David Malcolm <dmalcolm@redhat.com>
9958
9959 * selftest.c (selftest::read_file): New function.
9960 (selftest::test_read_file): New function.
9961 (selftest::selftest_c_tests): Call test_read_file.
9962 * selftest.h (selftest::read_file): New decl.
9963
9964 2016-10-12 Richard Biener <rguenther@suse.de>
9965
9966 PR debug/77947
9967 * cgraphunit.c (analyze_functions): Preserve cgraph nodes
9968 function context.
9969
9970 2016-10-12 Thomas Schwinge <thomas@codesourcery.com>
9971
9972 * lto-streamer.c: Fix LTO_STREAMER_DEBUG build.
9973
9974 * dwarf2out.c (dwarf2_lineno_debug_hooks): Use
9975 dwarf2out_assembly_start.
9976
9977 * Makefile.in (SELFTEST_FLAGS): Add -nostdinc.
9978
9979 * Makefile.in (SELFTEST_FLAGS): New variable.
9980 (s-selftest, selftest-gdb, selftest-valgrind): Use it.
9981
9982 * vmsdbgout.c (vmsdbg_debug_hooks): Add filename parameter to
9983 early_finish hook.
9984
9985 2016-10-12 Georg-Johann Lay <avr@gjlay.de>
9986
9987 * rtl.h (struct rtx_def): Comment how RTX_FLAGS will be
9988 dumped in RTL dumps.
9989
9990 2016-10-12 Martin Liska <mliska@suse.cz>
9991
9992 * gimple-fold.c (create_tmp_reg_or_ssa_name): New function.
9993 (gimple_fold_builtin_memory_op): Use the function.
9994 (gimple_fold_builtin_strchr): Likewise.
9995 (gimple_fold_builtin_strcat): Likewise.
9996 (gimple_build): Likewise.
9997
9998 2016-10-12 Nathan Sidwell <nathan@acm.org>
9999
10000 * diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
10001
10002 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
10003
10004 * dwarf2out.c (int_loc_descriptor): Generate opcodes for another
10005 equivalent 32-bit constant (modulo 2**32) when that yields
10006 smaller instructions.
10007 (size_of_int_loc_descriptor): Update accordingly.
10008
10009 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
10010
10011 * dwarf2out.c (dwarf2out_early_global_decl): For nested
10012 functions, call dwarf2out_decl on the parent function first.
10013
10014 2016-10-12 Richard Biener <rguenther@suse.de>
10015
10016 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
10017 on the conversion.
10018
10019 2016-10-12 Richard Biener <rguenther@suse.de>
10020
10021 * tree-ssa-propagate.c
10022 (substitute_and_fold_dom_walker::before_dom_children): Do not
10023 ignore ASSERT_EXPRs but only preserve them.
10024 * tree-vrp.c (remove_range_assertions): Deal with ASSERT_EXPRs
10025 that have been propagated into.
10026 (vrp_finalize): Enable DCE for substitute_and_fold.
10027
10028 2016-10-12 Richard Biener <rguenther@suse.de>
10029
10030 PR tree-optimization/77920
10031 * tree-vrp.c (simplify_div_or_mod_using_ranges): Simplify.
10032 (simplify_min_or_max_using_ranges): Pass in gsi and use it.
10033 (simplify_abs_using_ranges): Likewise.
10034 (simplify_conversion_using_ranges): Likewise.
10035 (simplify_stmt_using_ranges): Adjust.
10036
10037 2016-10-12 Jakub Jelinek <jakub@redhat.com>
10038
10039 PR tree-optimization/77929
10040 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle
10041 (*ops)[ranges[i].idx]->op != ranges[i].exp case.
10042
10043 2016-10-12 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
10044
10045 PR target/77934
10046 * config/rs6000/vmx.md (vsx_concat_<mode>): The mtvsrdd instruction
10047 needs a base register for arg 1.
10048
10049 2016-10-12 Jakub Jelinek <jakub@redhat.com>
10050
10051 * common.opt (Wimplicit-fallthrough) Turn into alias to
10052 -Wimplicit-fallthrough=3. Remove EnabledBy.
10053 (Wimplicit-fallthrough=): New option.
10054 * gimplify.c (warn_implicit_fallthrough_r): Use
10055 OPT_Wimplicit_fallthrough_ instead of OPT_Wimplicit_fallthrough.
10056 * doc/invoke.texi (-Wimplicit-fallthrough): Document as alias
10057 to -Wimplicit-fallthrough=3.
10058 (-Wimplicit-fallthrough=): Document.
10059
10060 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
10061
10062 * config/sparc/sparc.c (emit_scc_insn): Remove direct support for EQ
10063 and GEU in DImode if TARGET_SUBXC.
10064 * config/sparc/sparc.md (seqdi<W:mode>_zero): Remove TARGET_SUBXC.
10065 (seqdi<W:mode>_zero_subxc): Delete.
10066 (neg_seqdi<W:mode>_zero): Remove TARGET_VIS3.
10067 (neg_seqdi<W:mode>_zero_vis3): Delete.
10068 (plus_seqdi<W:mode>_zero): Likewise.
10069 (minus_seqdi<W:mode>_zero): Likewise.
10070 (plus_plus_sltu<W:mode>): Accept only register.
10071 (addx<W:mode>): Likewise.
10072 (plus_sltu<W:mode>_vis3): Likewise.
10073 (plus_plus_sltu<W:mode>_vis3): Likewise.
10074 (neg_sgeu<W:mode>_vis3): Delete.
10075 (minus_sgeu<W:mode>_vis3): Likewise.
10076 (addxc<W:mode>): Accept only registers.
10077 (neg_sltu<W:mode>_subxc): Write %%g0 instead of 0.
10078 (minus_neg_sltu<W:mode>_subxc): Accept only register.
10079 (neg_plus_sltu<W:mode>_subxc): Likewise.
10080 (minus_sltu<W:mode>_subxc): Write %%g0 instead of 0.
10081 (minus_minus_sltu<W:mode>_subxc): Accept only register.
10082 (sgeu<W:mode>_insn_subxc): Delete.
10083 (plus_sgeu<W:mode>_subxc): Likewise.
10084 (subxc<W:mode>): Accept only register.
10085 (scc splitter): Split always GEU again.
10086
10087 2016-10-11 Jeff Law <law@redhat.com>
10088
10089 PR tree-optimization/77424
10090 * tree-ssa-threadupdate.c (thread_through_all_blocks): Remove
10091 dead conditionals. Assert that all e->aux fields are NULL.
10092
10093 2016-10-11 David Malcolm <dmalcolm@redhat.com>
10094
10095 * print-rtl.c (print_rtx): Rename "i" to "idx". Split out the
10096 operand-printing "switch" statement into...
10097 (print_rtx_operand_code_0): ...this new function, ...
10098 (print_rtx_operand_code_e): ...this new function, ...
10099 (print_rtx_operand_codes_E_and_V): ...this new function, ...
10100 (print_rtx_operand_code_i): ...this new function, ...
10101 (print_rtx_operand_code_r): ...this new function, ...
10102 (print_rtx_operand_code_u): ...this new function, ...
10103 (print_rtx_operand): ...and this new function.
10104
10105 2016-10-11 Uros Bizjak <ubizjak@gmail.com>
10106
10107 * config/alpha/alpha-passes.def: New file.
10108 * config/alpha/t-alpha: New file.
10109 * config/alpha/alpha-protos.h (gcc::context, rtl_opt_pass): Declare.
10110 (make_pass_handle_trap_shadows): New prototype.
10111 (make_pass_align_insns): Ditto.
10112 * config/alpha/alpha.c (alpha_option_override): Don't register
10113 passes here.
10114 * config.gcc (alpha*-*-*) Add alpha/t-alpha to tmake_file.
10115
10116 2016-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
10117
10118 PR target/77924
10119 * config/rs6000/rs6000.c (rs6000_init_builtins): Only create the
10120 distinct __ibm128 IBM extended double type if long doubles are
10121 128-bits and the default format for long double is IEEE 128-bit.
10122
10123 2016-10-11 Richard Biener <rguenther@suse.de>
10124
10125 * dwarf2out.c (DEBUG_STR_OFFSETS_SECTION): Remove conditional.
10126 (init_sections_and_labels): Use DEBUG_DWO_STR_OFFSETS_SECTION.
10127 (verify_die): New function.
10128 (dwarf2out_finish): Call it.
10129 (output_line_info): Handle case of -gsplit-dwarf without
10130 DWARF2_ASM_LINE_DEBUG_INFO.
10131
10132 2016-10-11 Richard Biener <rguenther@suse.de>
10133
10134 PR debug/77931
10135 * gimple-low.c (lower_gimple_bind): Handle arbitrary common
10136 sub-chains of BLOCK_VARS and gimple_bind_vars.
10137
10138 2016-10-11 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
10139
10140 * config/i386/znver1.md : Fix imov/imovx load type reservations.
10141
10142 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
10143
10144 * config/sparc/sparc.opt (msubxc): New option.
10145 * doc/invoke.texi (SPARC options): Document it and tidy up.
10146 * doc/tm.texi.in (Condition Codes): Adjust SPARC example.
10147 * doc/tm.texi: Regenerate.
10148 * config/sparc/sparc-modes.def (CC_NOOV): Rename into...
10149 (CCNZ): ...this.
10150 (CCX_NOOV): Rename into...
10151 (CCXNZ): ...this.
10152 (CCC): New.
10153 (CCXC): Likewise.
10154 * config/sparc/predicates.m (fcc_register_operand): Simplify.
10155 (fcc0_register_operand): Likewise.
10156 (icc_register_operand): New.
10157 (icc_or_fcc_register_operand): Simplify.
10158 (nz_comparison_operator): New.
10159 (c_comparison_operator): Likewise.
10160 (noov_compare_operator): Rename into...
10161 (icc_comparison_operator): ...this. Use above predicates.
10162 (noov_compare64_operator): Rename into...
10163 (v9_comparison_operator): ...this and tidy up.
10164 (fcc_comparison_operator): New.
10165 (icc_or_fcc_comparison_operator): Likewise.
10166 (v9_register_compare_operator): Rename info...
10167 (v9_register_comparison_operator): ...this.
10168 * config/sparc/sparc.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
10169 (sparc_option_override): Remove redundant VIS masks and add MASK_SUBXC
10170 for Niagara-7.
10171 (sparc_fixed_condition_code_regs): New function.
10172 (select_cc_mode): Remove ATTRIBUTE_UNUSED. Adjust for CCNZ/CCXNZ
10173 renaming and add support for CCC/CCXC.
10174 (output_cbranch): Likewise.
10175 (sparc_print_operand): Likewise.
10176 (gen_v9_scc): Remove obsolete assertion.
10177 (emit_scc_insn): Emit RTL directly for EQ and NE. Add direct support
10178 for EQ in DImode if TARGET_SUBXC. Remove test on TARGET_VIS3 for GEU.
10179 (output_cbcond): Remove bogus handling of CC modes.
10180 (sparc_register_move_cost): Return 100 for NO_REGS.
10181 * config/sparc/sparc.md (W): New mode iterator.
10182 (length): Adjust for noov_compare64_operator renaming.
10183 (cmpsi_sne): New instruction.
10184 (cmpdi_sne): Likewise.
10185 (seqdi_special): Delete.
10186 (seqdi_special): Likewise.
10187 (snesi<P:mode>_special): Likewise.
10188 (snedi_special): Likewise.
10189 (snedi_special_vis3): Likewise.
10190 (snesi patterns): Use W iterator.
10191 (snedi patterns): Likewise. Add TARGET_SUBXC patterns.
10192 (sltu patterns): Likewise.
10193 (sgeu patterns): Likewise.
10194 (scc splitter): Do not split GEU in DImode if TARGET_SUBXC.
10195 (normal_branch): Use icc_comparison_operator predicate.
10196 (inverted_branch): Likewise.
10197 (cbcond_sp32): Use comparison_operator predicate.
10198 (cbcond_sp64): Likewise.
10199 (normal_int_branch_sp64): Adjust for renaming
10200 (inverted_int_branch_sp64): Likewise.
10201 (mov<I:mode>_cc_reg_sp64): Likewise.
10202 (movsf_cc_reg_sp6): Likewise.
10203 (movdf_cc_reg_sp64): Likewise.
10204 (movtf_cc_reg_hq_sp64): Likewise.
10205 (movtf_cc_reg_sp64): Likewise.
10206 (mov<I:mode>_cc_v9): Use icc_or_fcc_comparison_operator predicate.
10207 (movsf_cc_v9): Likewise.
10208 (movdf_cc_v9): Likewise.
10209 (movtf_cc_hq_v9): Likewise.
10210 (movtf_cc_v9): Likewise.
10211 (adddi3): Call gen_adddi3_sp32.
10212 (adddi3_insn_sp32): Rename to...
10213 (adddi3_sp32): ...this. Accept only register_operand as operand #1
10214 and use CCCmode for the carry.
10215 (addx_extend_sp32): Use CCCmode for the carry.
10216 (addx_extend_sp64): Delete.
10217 (adddi3_extend_sp32): Use CCCmode for the carry.
10218 (cmp_plus patterns): Use CCNZ/CCXNZ mode and add C variants.
10219 (subdi3): Call gen_subdi3_sp32.
10220 (subdi3_insn_sp32): Rename to...
10221 (subdi3_sp32): ...this and use CCmode for the carry.
10222 (subx_extend_sp32): Use CCCmode for the carry.
10223 (subx_extend_sp64): Delete.
10224 (subdi3_extend_sp32): Use CCmode for the carry.
10225 (cmp_minus patterns): Use CCNZ/CCXNZ mode and add C variants.
10226 (negdi3): Call gen_negdi3_sp32.
10227 (negdi3_sp32): Use CCCmode for the carry.
10228 (cmp_neg patterns): Use CCNZ/CCXNZ mode and add C variants.
10229 (cmp_nz_ashift_1): Use CCNZ mode.
10230 (cmp_nz_set_ashift_1): Likewise.
10231 (ctrapsi4): Use comparison_operator predicate.
10232 (ctrapdi4): Likewise.
10233 (trapsi_insn): Use icc_comparison_operator predicate.
10234 (trapdi_insn): Likewise.
10235 (edge8 patterns): Use CCNZmode.
10236 (edge16 patterns): Likewise.
10237 (edge32 patterns): Likewise.
10238
10239 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
10240
10241 * config/visium/visium-modes.def (CC_NOOV): Rename into...
10242 (CCNZ): ...this.
10243 (CC_BTST): Rename into...
10244 (CCC): ...this.
10245 * config/visium/predicates.md (real_add_operand): New.
10246 (visium_btst_operator): Rename into...
10247 (visium_equality_comparison_operator): ...this.
10248 (visium_noov_operator): Rename into...
10249 (visium_nz_comparison_operator): ...this.
10250 (visium_c_comparison_operator): New.
10251 (visium_branch_operator): Adjust and deal with all CC modes.
10252 * config/visium/visium.c (visium_adjust_cost): Adjust.
10253 (visium_split_double_add): Use the *_set_carry patterns.
10254 (visium_select_cc_mode): Add support for CCC mode and adjust.
10255 (output_cbranch): Adjust and use the carry-based operators for
10256 floating-point comparisons.
10257 * config/visium/visium.md (flags_subst_arith): Adjust.
10258 (addsi3_insn_set_carry): New instruction.
10259 (subsi3_insn_set_carry): Likewise.
10260 (negsi2_insn_set_carry): Likewise.
10261 (btst): Adjust.
10262 (cmp<mode>_sne): Likewise.
10263 (cbranch<mode>4): Use ordered_comparison_operator.
10264 (cbranch<mode>4_insn): Likewise.
10265 (cbranchsi4_btst_insn): Adjust.
10266
10267 2016-10-11 Tom de Vries <tom@codesourcery.com>
10268
10269 PR middle-end/77558
10270 * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
10271 special-casing.
10272
10273 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
10274
10275 * tree.h (build_complex_type): Add second parameter with default.
10276 * tree.c (build_complex_type): Add NAMED second parameter and adjust
10277 recursive call. Create a TYPE_DECL only if NAMED is true.
10278 (build_common_tree_nodes): Pass true in calls to build_complex_type.
10279
10280 2016-10-11 Georg-Johann Lay <avr@gjlay.de>
10281
10282 New avr-passes.def to register AVR specific passes.
10283
10284 * config/avr/avr-passes.def: New file.
10285 * config/avr/t-avr (PASSES_EXTRA): Add avr-passes.def.
10286 * config/avr/avr-protos.h (gcc::context, rtl_opt_pass): Declare.
10287 (make_avr_pass_recompute_note): New proto.
10288 * config/avr/avr.c (make_avr_pass_recompute_notes): New function.
10289 (avr_pass_recompute_notes): Use anonymous namespace.
10290 (avr_register_passes): Remove function...
10291 (avr_option_override): ...and its call.
10292
10293 2016-10-11 Robert Suchanek <robert.suchanek@imgtec.com>
10294
10295 * config/mips/mips-cpus.def: Replace PTF_AVOID_BRANCHLIKELY with
10296 PTF_AVOID_BRANCHLIKELY_ALWAYS for generic architecture and with
10297 PTF_AVOID_BRANCHLIKELY_SPEED for others.
10298 (mips2, mips3, mips4): Add PTF_AVOID_BRANCHLIKELY_SIZE to tune
10299 flags.
10300 * config/mips/mips.c (mips_option_override): Enable the branch
10301 likely depending on the tune flags and optimization level.
10302 * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): Remove.
10303 (PTF_AVOID_BRANCHLIKELY_SPEED): Define.
10304 (PTF_AVOID_BRANCHLIKELY_SIZE): Likewise.
10305 (PTF_AVOID_BRANCHLIKELY_ALWAYS): Likewise.
10306
10307 2016-10-11 Richard Biener <rguenther@suse.de>
10308
10309 * lto-streamer-out.c (collect_block_tree_leafs): New helper.
10310 (output_function): Properly stream the whole block tree.
10311 * lto-streamer-in.c (input_function): Likewise.
10312
10313 2016-10-11 Marek Polacek <polacek@redhat.com>
10314
10315 * Makefile.in (C_COMMON_OBJS): Add c-family/c-warn.o.
10316
10317 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
10318
10319 * tree-vrp.c (evrp_dom_walker::try_add_new_range): New.
10320 (evrp_dom_walker::before_dom_children): Infer and push new value
10321 ranges for x in y < x.
10322
10323 2016-10-10 Joseph Myers <joseph@codesourcery.com>
10324
10325 PR target/77586
10326 * config/ia64/ia64.c (ia64_libgcc_floating_mode_supported_p)
10327 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
10328 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Likewise.
10329 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Likewise.
10330 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
10331 (IA64_NO_LIBGCC_TFMODE): Likewise.
10332
10333 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
10334
10335 * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
10336 copying.
10337
10338 2016-10-10 Andreas Tobler <andreast@gcc.gnu.org>
10339
10340 * config.gcc: Add aarch64-*-freebsd* support.
10341 * config.host: Likewise.
10342 * config/aarch64/aarch64-freebsd.h: New file.
10343 * config/aarch64/t-aarch64-freebsd: Ditto.
10344
10345 2016-10-10 Jeff Law <law@redhat.com>
10346
10347 PR tree-optimization/71947
10348 * tree-ssa-dom.c (cprop_into_stmt): Avoid replacing A with B, then
10349 B with A within a single statement.
10350
10351 2016-10-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10352
10353 PR tree-optimization/77824
10354 * gimple-ssa-strength-reduction.c (stmt_cost): Explicitly return
10355 zero cost for copies.
10356 (find_candidates_dom_walker::before_dom_children): Replace
10357 MODIFY_EXPR with SSA_NAME.
10358 (replace_mult_candidate): Likewise.
10359 (replace_profitable_candidates): Likewise.
10360
10361 2016-10-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10362
10363 * config/s390/s390.h: Wrap more macros args in brackets and fix
10364
10365 2016-10-10 Georg-Johann Lay <avr@gjlay.de>
10366
10367 * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
10368
10369 2016-10-10 Andreas Schwab <schwab@suse.de>
10370
10371 PR target/77738
10372 * config/ia64/ia64.md ("doloop_end"): Reject if mode of loop
10373 pseudo is not DImode.
10374
10375 2016-10-10 Claudiu Zissulescu <claziss@synopsys.com>
10376
10377 * common/config/arc/arc-common.c (arc_option_optimization_table):
10378 Remove compact casesi option.
10379 * config/arc/arc.c (arc_override_options): Use compact casesi
10380 option only for pre-ARCv2 cores.
10381 * doc/invoke.texi (mcompact-casesi): Update text.
10382
10383 2016-10-09 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
10384
10385 * config/rs6000/rs6000.h (TARGET_EFFICIENT_OVERLAPPING_UNALIGNED):
10386 Add macro to say we can efficiently handle overlapping unaligned
10387 loads.
10388 * config/rs6000/rs6000.c (expand_block_compare): Avoid generating
10389 poor code for processors older than p8.
10390
10391 2016-10-09 Eric Botcazou <ebotcazou@adacore.com>
10392
10393 * gen-pass-instances.awk: Remove GNUism.
10394
10395 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10396
10397 * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to
10398 NULL of (*ipcp_transformations)][node->uid].
10399
10400 2016-10-09 John David Anglin <danglin@gcc.gnu.org>
10401
10402 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
10403 (MALLOC_ABI_ALIGNMENT): Define.
10404
10405 2016-10-09 Jakub Jelinek <jakub@redhat.com>
10406
10407 * tree-ssa.c (target_for_debug_bind, verify_phi_args,
10408 ssa_undefined_value_p, maybe_optimize_var): Use VAR_P and/or
10409 VAR_OR_FUNCTION_DECL_P macros.
10410 * tree-chkp.c (chkp_register_var_initializer, chkp_make_static_bounds,
10411 chkp_get_bounds_for_decl_addr, chkp_parse_array_and_component_ref,
10412 chkp_find_bounds_1): Likewise.
10413 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Likewise.
10414 * hsa-gen.c (get_symbol_for_decl): Likewise.
10415 * cgraphunit.c (check_global_declaration, analyze_functions,
10416 handle_alias_pairs, thunk_adjust, cgraph_node::expand_thunk):
10417 Likewise.
10418 * gimple-fold.c (can_refer_decl_in_current_unit_p,
10419 canonicalize_constructor_val, gimple_get_virt_method_for_vtable):
10420 Likewise.
10421 * tree.c (set_decl_section_name, copy_node_stat,
10422 need_assembler_name_p, free_lang_data_in_decl, find_decls_types_r,
10423 merge_dllimport_decl_attributes, handle_dll_attribute,
10424 decl_init_priority_insert, auto_var_in_fn_p, array_at_struct_end_p,
10425 verify_type): Likewise.
10426 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior,
10427 find_explicit_erroneous_behavior): Likewise.
10428 * sdbout.c (sdbout_toplevel_data, sdbout_late_global_decl): Likewise.
10429 * ipa.c (process_references): Likewise.
10430 * tree-chkp-opt.c (chkp_get_check_result): Likewise.
10431 * varasm.c (get_block_for_decl, use_blocks_for_decl_p, make_decl_rtl,
10432 notice_global_symbol, assemble_variable, mark_decl_referenced,
10433 build_constant_desc, output_constant_def_contents, do_assemble_alias,
10434 make_decl_one_only, default_section_type_flags,
10435 categorize_decl_for_section, default_encode_section_info): Likewise.
10436 * trans-mem.c (requires_barrier): Likewise.
10437 * gimple-expr.c (mark_addressable): Likewise.
10438 * cfgexpand.c (add_scope_conflicts_1, expand_one_var,
10439 expand_used_vars_for_block, clear_tree_used, stack_protect_decl_p,
10440 expand_debug_expr): Likewise.
10441 * tree-dump.c (dequeue_and_dump): Likewise.
10442 * ubsan.c (instrument_bool_enum_load): Likewise.
10443 * tree-pretty-print.c (print_declaration): Likewise.
10444 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
10445 * tree-ssa-uninit.c (warn_uninitialized_vars): Likewise.
10446 * asan.c (asan_protect_global, instrument_derefs): Likewise.
10447 * tree-into-ssa.c (rewrite_stmt, maybe_register_def,
10448 pass_build_ssa::execute): Likewise.
10449 * var-tracking.c (var_debug_decl, track_expr_p): Likewise.
10450 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost, split_address_cost):
10451 Likewise.
10452 * ipa-split.c (test_nonssa_use, consider_split, mark_nonssa_use):
10453 Likewise.
10454 * tree-inline.c (insert_debug_decl_map, remap_ssa_name,
10455 can_be_nonlocal, remap_decls, copy_debug_stmt,
10456 initialize_inlined_parameters, add_local_variables,
10457 reset_debug_binding, replace_locals_op): Likewise.
10458 * dse.c (can_escape): Likewise.
10459 * ipa-devirt.c (compare_virtual_tables, referenced_from_vtable_p):
10460 Likewise.
10461 * tree-diagnostic.c (default_tree_printer): Likewise.
10462 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
10463 unpack_ts_decl_with_vis_value_fields,
10464 lto_input_ts_decl_common_tree_pointers): Likewise.
10465 * builtins.c (builtin_save_expr, fold_builtin_expect,
10466 readonly_data_expr): Likewise.
10467 * tree-ssa-structalias.c (new_var_info, get_constraint_for_ssa_var,
10468 create_variable_info_for, set_uids_in_ptset, visit_loadstore):
10469 Likewise.
10470 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
10471 * gimplify.c (force_constant_size, gimplify_bind_expr,
10472 gimplify_decl_expr, gimplify_var_or_parm_decl,
10473 gimplify_compound_lval, gimplify_init_constructor,
10474 gimplify_modify_expr, gimplify_asm_expr, gimplify_oacc_declare,
10475 gimplify_type_sizes): Likewise.
10476 * cgraphbuild.c (record_reference, record_type_list, mark_address,
10477 mark_load, mark_store, pass_build_cgraph_edges::execute): Likewise.
10478 * tree-ssa-live.c (mark_all_vars_used_1, remove_unused_scope_block_p,
10479 remove_unused_locals): Likewise.
10480 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p, ptrs_compare_unequal,
10481 ref_maybe_used_by_call_p_1, call_may_clobber_ref_p_1): Likewise.
10482 * function.c (instantiate_expr, instantiate_decls_1,
10483 setjmp_vars_warning, add_local_decl): Likewise.
10484 * alias.c (ao_ref_from_mem, get_alias_set, compare_base_symbol_refs):
10485 Likewise.
10486 * tree-stdarg.c (find_va_list_reference, va_list_counter_struct_op,
10487 va_list_ptr_read, va_list_ptr_write, check_all_va_list_escapes,
10488 optimize_va_list_gpr_fpr_size): Likewise.
10489 * tree-nrv.c (pass_nrv::execute): Likewise.
10490 * tsan.c (instrument_expr): Likewise.
10491 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
10492 * vtable-verify.c (verify_bb_vtables): Likewise.
10493 * tree-dfa.c (ssa_default_def, set_ssa_default_def,
10494 get_ref_base_and_extent): Likewise.
10495 * toplev.c (wrapup_global_declaration_1, wrapup_global_declaration_2):
10496 Likewise.
10497 * tree-sra.c (static bool constant_decl_p, find_var_candidates,
10498 analyze_all_variable_accesses): Likewise.
10499 * tree-nested.c (get_nonlocal_debug_decl,
10500 convert_nonlocal_omp_clauses, note_nonlocal_vla_type,
10501 note_nonlocal_block_vlas, convert_nonlocal_reference_stmt,
10502 get_local_debug_decl, convert_local_omp_clauses,
10503 convert_local_reference_stmt, nesting_copy_decl, remap_vla_decls):
10504 Likewise.
10505 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Likewise.
10506 * stmt.c (decl_overlaps_hard_reg_set_p): Likewise.
10507 * dbxout.c (dbxout_late_global_decl, dbxout_type_fields,
10508 dbxout_symbol, dbxout_common_check): Likewise.
10509 * expr.c (expand_assignment, expand_expr_real_2, expand_expr_real_1,
10510 string_constant): Likewise.
10511 * hsa.c (hsa_get_declaration_name): Likewise.
10512 * passes.c (rest_of_decl_compilation): Likewise.
10513 * tree-ssanames.c (make_ssa_name_fn): Likewise.
10514 * tree-streamer-out.c (pack_ts_decl_common_value_fields,
10515 pack_ts_decl_with_vis_value_fields,
10516 write_ts_decl_common_tree_pointers): Likewise.
10517 * stor-layout.c (place_field): Likewise.
10518 * symtab.c (symtab_node::maybe_create_reference,
10519 symtab_node::verify_base, symtab_node::make_decl_local,
10520 symtab_node::copy_visibility_from,
10521 symtab_node::can_increase_alignment_p): Likewise.
10522 * dwarf2out.c (add_var_loc_to_decl, tls_mem_loc_descriptor,
10523 decl_by_reference_p, reference_to_unused, rtl_for_decl_location,
10524 fortran_common, add_location_or_const_value_attribute,
10525 add_scalar_info, add_linkage_name, set_block_abstract_flags,
10526 local_function_static, gen_variable_die, dwarf2out_late_global_decl,
10527 optimize_one_addr_into_implicit_ptr,
10528 optimize_location_into_implicit_ptr): Likewise.
10529 * gimple-low.c (record_vars_into): Likewise.
10530 * ipa-visibility.c (update_vtable_references): Likewise.
10531 * tree-ssa-address.c (fixed_address_object_p, copy_ref_info):
10532 Likewise.
10533 * lto-streamer-out.c (tree_is_indexable, get_symbol_initial_value,
10534 DFS::DFS_write_tree_body, write_symbol): Likewise.
10535 * langhooks.c (lhd_warn_unused_global_decl,
10536 lhd_set_decl_assembler_name): Likewise.
10537 * attribs.c (decl_attributes): Likewise.
10538 * except.c (output_ttype): Likewise.
10539 * varpool.c (varpool_node::get_create, ctor_for_folding,
10540 varpool_node::assemble_decl, varpool_node::create_alias): Likewise.
10541 * fold-const.c (fold_unary_loc): Likewise.
10542 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
10543 ipa_find_agg_cst_from_init): Likewise.
10544 * omp-low.c (expand_omp_regimplify_p, expand_omp_taskreg,
10545 expand_omp_target, lower_omp_regimplify_p,
10546 grid_reg_assignment_to_local_var_p, grid_remap_prebody_decls,
10547 find_link_var_op): Likewise.
10548 * tree-chrec.c (chrec_contains_symbols): Likewise.
10549 * tree-cfg.c (verify_address, verify_expr, verify_expr_location_1,
10550 gimple_duplicate_bb, move_stmt_op, replace_block_vars_by_duplicates,
10551 execute_fixup_cfg): Likewise.
10552
10553 PR tree-optimization/77901
10554 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Only optimize
10555 if ranges[i].exp is SSA_NAME when looking for >= and only when
10556 ranges[i].exp is NULL or SSA_NAME when looking for the other
10557 comparison.
10558
10559 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10560
10561 * ipa-cp.c (ipcp_alignment_lattice): Remove.
10562 (ipcp_param_lattices): Remove field alignment.
10563 (print_all_lattices): Remove call to ipcp_alignment_lattice::print.
10564 (set_all_contains_variable): Remove call to
10565 ipcp_alignment_lattice::set_to_bottom.
10566 (initialize_node_lattices): Likewise.
10567 (propagate_alignment_accross_jump_function): Remove.
10568 (propagate_constants_accross_call): Remove call to
10569 propagate_alignment_accross_jump_function.
10570 (ipcp_store_alignment_results): Remove.
10571 (ipcp_driver): Remove call to ipcp_store_alignment_results.
10572 (propagate_bits_accross_jump_function): Handle ancestor jump function.
10573 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Remove
10574 pretty-printing of alignment jump function.
10575 (ipa_set_jf_unknown): Remove assignment to jfunc->alignment.known.
10576 (ipa_compute_jump_functions_for_edge): Adjust ipa_bits jump function for
10577 alignments and remove computing ipa_alignment jump function.
10578 (ipa_node_params_t::duplicate): Remove copying of src_trans->alignments.
10579 (ipa_write_jump_functions): Remove streaming for ipa_alignment.
10580 (ipa_read_jump_function): Remove reading of ipa_alignment.
10581 (write_ipcp_transformation_info): Remove streaming for alignment
10582 propagation summary.
10583 (read_ipcp_transformation_info): Remove reading of alignment
10584 propagation summary.
10585 (ipcp_update_alignments): Remove.
10586 (ipcp_update_bits): Adjust to set alignment for parameters of pointer
10587 type.
10588 (ipcp_transform_function): Remove call to ipcp_update_alignments()
10589 and remove assignment to (*ipcp_transformations)[node->uid].alignments.
10590 * ipa-prop.h (ipa_alignment): Remove.
10591 (ipa_jump_func): Remove field alignment.
10592 (ipcp_transformation_summary): Remove field alignments.
10593 * doc/invoke.texi: Mark fipa-cp-alignment as obsolete.
10594 * opts.c (default_options_table): Remove entry for fipa-cp-alignment.
10595 (enable_fdo_optimizations): Remove checking for fipa-cp-alignment.
10596
10597 2016-10-08 Eric Botcazou <ebotcazou@adacore.com>
10598
10599 * config/sparc/sparc.h (FIXED_REGISTERS): Add %icc.
10600
10601 * config/visium/visium.c (visium_expand_int_cstore): Revert latest
10602 change.
10603 (visium_expand_fp_cstore): Likewise.
10604
10605 2016-10-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10606
10607 * diagnostic-core.h (warning_at_rich_loc_n): Declare.
10608 * diagnostic.c (warning_at_rich_loc_n): New function.
10609 (diagnostic_n_impl_richloc): Likewise.
10610 (diagnostic_n_impl): Move most of the function to
10611 diagnostic_n_impl_richloc and call it.
10612
10613 2016-10-08 Jakub Jelinek <jakub@redhat.com>
10614
10615 * gen-pass-instances.awk: Rewritten.
10616 * Makefile.in (pass-instances.def): Depend on $(PASSES_EXTRA), pass
10617 $(PASSES_EXTRA) after passes.def to the script.
10618 * config/i386/t-i386 (PASSES_EXTRA): Add i386-passes.def.
10619 * config/i386/i386-passes.def: New file.
10620 * config/i386/i386-protos.h (make_pass_insert_vzeroupper,
10621 make_pass_stv): Declare.
10622 * config/i386/i386.c (pass_stv::pass_stv): Initialize timode_p to
10623 false.
10624 (pass_stv::gate): Depending on timode_p member require TARGET_64BIT
10625 or !TARGET_64BIT.
10626 (pass_stv::clone, pass_stv::set_pass_param): New methods.
10627 (pass_stv::timode_p): New non-static data member.
10628 (ix86_option_override): Don't register passes here.
10629
10630 * doc/invoke.texi: Document accepting Else, fallthrough.
10631
10632 * doc/invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment
10633 style changes.
10634
10635 * doc/invoke.texi (-Wimplicit-fallthrough): Document the accepted
10636 FALLTHRU comment styles.
10637
10638 2016-10-07 Andrew Pinski <apinski@cavium.com>
10639
10640 * config/aarch64/aarch64-arches.def (AARCH64_ARCH): #undef at the end.
10641 * config/aarch64/aarch64-cores.def (AARCH64_CORE): Likewise.
10642 * config/aarch64/aarch64-fusion-pairs.def (AARCH64_FUSION_PAIR):
10643 Likewise.
10644 * config/aarch64/aarch64-option-extensions.def (AARCH64_OPT_EXTENSION):
10645 Likewise.
10646 * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNING_OPTION):
10647 Likewise.
10648 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Don't #undef here.
10649 (AARCH64_ARCH): Likewise.
10650 * common/config/aarch64/aarch64-common.c (AARCH64_OPT_EXTENSION):
10651 Likewise.
10652 (AARCH64_CORE): Likewise.
10653 (AARCH64_ARCH): Likewise.
10654 * config/aarch64/aarch64-protos.h (AARCH64_FUSION_PAIR): Likewise.
10655 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
10656 * config/aarch64/aarch64.c (AARCH64_FUION_PAIR): Likewise.
10657 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
10658 (AARCH64_ARCH): Likewise.
10659 (AARCH64_CORE): Likewise.
10660 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
10661 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Likewise.
10662 (AARCH64_CORE): Likewise.
10663 (AARCH64_ARCH): Likewise.
10664
10665 2016-10-06 Michael Meissner <meissner@linux.vnet.ibm.com>
10666
10667 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Split
10668 -mfloat128 into -mfloat128-type that enables the IEEE 128-bit
10669 floating point type infrastructre, and -mfloat128 that enables the
10670 keyword. Define __FLOAT128__ if -mfloat128, and __FLOAT128_TYPE__
10671 if -mfloat128-type. Define __ibm128 to be long double by default.
10672 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print whether
10673 the IEEE 128-bit floating point type infrastructure should
10674 automatically be enabled.
10675 (rs6000_init_hard_regno_mode_ok): Switch to use -mfloat128-type
10676 instead of -mfloat128 to enable KFmode.
10677 (rs6000_option_override_internal): Split the option -mfloat128
10678 into -mfloat128-type and -mfloat128. On Linux PowerPC 64-bit
10679 systems, automatically set -mfloat128-type, but don't enable it on
10680 other operating systems. Move setting the long double size and
10681 IEEE quad support before the IEEE 128-bit floating point changes.
10682 (rs6000_init_builtins): Do not create a unique type for __ibm128
10683 if long double is IBM extended double, instead rely on __ibm128
10684 being defined as 'long double'. If -mfloat128-type and not
10685 -mfloat128, create the KFmode type with an undocumented __ieee128
10686 keyword.
10687 (rs6000_init_libfuncs): Use -mfloat128-type instead of
10688 -mfloat128 for tests about the types, but keep tests for
10689 -mfloat128 to enable the keyword support.
10690 (rs6000_complex_function_value): Likewise.
10691 (rs6000_scalar_mode_supported_p): Likewise.
10692 (rs6000_floatn_mode): Likewise.
10693 (rs6000_c_mode_for_suffix): Likewise.
10694 (rs6000_opt_masks): Add -mfloat128-type.
10695 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add support for
10696 -mfloat128-type being split from -mfloat128. Add
10697 -mfloat128-hardware, which was missing.
10698 * config/rs6000/rs6000.opt (-mfloat128): Split -mfloat128 into
10699 -mfloat128 and -mfloat128-type:
10700 (-mfloat128-type): Likewise.
10701 * config/rs6000/linux64.h (TARGET_FLOAT128_ENABLE_TYPE): Define so
10702 that 64-bit Linux systems with enable -mfloat128-type by default
10703 on VSX systems.
10704 * config/rs6000/rs6000.h (TARGET_FLOAT128_ENABLE_TYPE): Likewise.
10705 (FLOAT128_VECTOR_P): Switch IEEE 128-bit floating points to use
10706 -mfloat128-type instead of -mfloat128.
10707 (FLOAT128_2REG_P): Likewise.
10708 (MASK_FLOAT128_TYPE): Likewise.
10709 (ALTIVEC_ARG_MAX_RETURN): Likewise.
10710 (RS6000_BTM_FLOAT128): Likewise.
10711 (TARGET_FLOAT128): Poison old identifiers.
10712 (OPTION_MASK_FLOAT128): Likewise.
10713 (MASK_FLOAT128): Likewise.
10714 * config/rs6000/rs6000.md (FP): Likewise.
10715 (FLOAT128): Likewise.
10716 (fix_trunc<mode>di2): Likewise.
10717 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
10718 (floatdi<mode>2): Likewise.
10719 (floatuns<SDI:mode><IEEE128:mode>2): Likewise.
10720 (neg<mode>2, FLOAT128 iterator): Likewise.
10721 (abs<mode>2, FLOAT128 iterator): Likewise.
10722 (ieee_128bit_negative_zero): Likewise.
10723 (ieee_128bit_vsx_neg<mode>2): Likewise.
10724 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
10725 (ieee_128bit_vsx_abs<mode>2): Likewise.
10726 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
10727 (ieee_128bit_vsx_nabs<mode>2): Likewise.
10728 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
10729 (extendiftf2): Likewise.
10730 (extendifkf2): Likewise.
10731 (extendtfkf2): Likewise.
10732 (trunciftf2): Likewise.
10733 (truncifkf2): Likewise.
10734 (trunckftf2): Likewise.
10735 (trunctfif2): Likewise.
10736 (extendkftf2): Likewise.
10737 (trunctfkf2): Likewise.
10738
10739 2016-10-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10740
10741 * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
10742 before merging in bytes to pass down to real_from_target.
10743
10744 2016-10-07 Richard Biener <rguenther@suse.de>
10745
10746 * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
10747 required hack.
10748 (substitute_and_fold_dom_walker::before_dom_children):
10749 Substitute and fold before pass specific folding to avoid
10750 feeding that with SSA names that will be later released.
10751 * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
10752 introduced by folding and visited by evaluate_stmt called during
10753 ccp_fold_stmt.
10754 (likely_value): Likewise.
10755 (evaluate_stmt): Likewise.
10756 * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
10757 (simplify_div_or_mod_using_ranges): Likewise.
10758 (simplify_min_or_max_using_ranges): Likewise.
10759 (simplify_abs_using_ranges): Likewise.
10760 (simplify_conversion_using_ranges): Likewise.
10761 (simplify_float_conversion_using_ranges): Likewise.
10762 (simplify_stmt_using_ranges): Likewise.
10763
10764 2016-10-07 Marek Polacek <polacek@redhat.com>
10765
10766 * gimplify.c (should_warn_for_implicit_fallthrough): Check for
10767 FALLTHROUGH_LABEL_P here...
10768 (warn_implicit_fallthrough_r): ...not here.
10769
10770 2016-10-07 Bernd Schmidt <bschmidt@redhat.com>
10771
10772 PR tree-optimization/77880
10773 * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
10774 necessary.
10775
10776 2016-10-07 Marek Polacek <polacek@redhat.com>
10777
10778 PR c++/77803
10779 * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
10780
10781 2016-10-07 Richard Biener <rguenther@suse.de>
10782
10783 * bitmap.h: Document constraints on bitmap modification while
10784 iterating over it.
10785
10786 2016-10-07 Richard Biener <rguenther@suse.de>
10787
10788 * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
10789 * bitmap.h (bmp_iter_set): When advancing to the next element
10790 check that we didn't remove the current one.
10791 (bmp_iter_and): Likewise.
10792 (bmp_iter_and_compl): Likewise.
10793 * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
10794 we currently iterate on but keep a one-level queue.
10795 * sched-deps.c (remove_from_deps): Do not clear current bit
10796 but keep a one-level queue.
10797
10798 2016-10-07 Jakub Jelinek <jakub@redhat.com>
10799
10800 PR tree-optimization/77664
10801 * tree-ssa-reassoc.c (update_range_test): Also clear low and high
10802 for the other ranges.
10803 (optimize_range_tests_diff): Fix up formatting.
10804 (optimize_range_tests_var_bound): New function.
10805 (optimize_range_tests): Use it.
10806
10807 2016-10-07 Martin Liska <mliska@suse.cz>
10808
10809 * coverage.c (build_gcov_exit_decl): Fix priority what
10810 should be really 99.
10811
10812 2016-10-07 Richard Biener <rguenther@suse.de>
10813
10814 * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
10815 vars in gimple_bind_vars but not in BLOCK_VARS.
10816
10817 2016-10-07 Richard Biener <rguenther@suse.de>
10818
10819 PR tree-optimization/77879
10820 * tree-ssa-structalias.c (handle_const_call): Properly handle
10821 NRV return slots.
10822 (handle_pure_call): Likewise.
10823
10824 2016-10-06 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
10825
10826 * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
10827 (rs6000_elf_asm_out_destructor): increase size of buf to avoid
10828 possible overflow.
10829
10830 2016-10-06 Andrew Pinski <apinski@cavium.com>
10831
10832 * config/aarch64/aarch64-cores.def: Add a comment before each
10833 set of cores.
10834
10835 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
10836
10837 PR tree-optimization/77862
10838 * tree-vrp.c (add_equivalence): Use get_value_range so that
10839 num_vr_values is checked before accessing vr_values.
10840
10841 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
10842
10843 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
10844 POINTER_TYPE_P.
10845
10846 2016-10-05 Jeff Law <law@redhat.com>
10847
10848 PR tree-optimization/71661
10849 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
10850 removal of a forwarder exposes a new natural loop.
10851
10852 2016-10-06 Uros Bizjak <ubizjak@gmail.com>
10853
10854 * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
10855 Introduce ssesuffix variable.
10856 (<mask_codefor><code><mode>3<mask_name>): Ditto.
10857 (*<code><mode>3): Ditto.
10858
10859 2016-10-06 Jan Hubicka <hubicka@ucw.cz>
10860
10861 * postreload.c (reload_cse_simplify): Skip also USE when detecting
10862 noop move.
10863
10864 2016-10-06 Richard Biener <rguenther@suse.de>
10865
10866 PR tree-optimization/77855
10867 * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
10868 instead of removing the current item while iterating over the set
10869 which is not safe.
10870
10871 2016-10-06 James Clarke <jrtc27@jrtc27.com>
10872 Eric Botcazou <ebotcazou@adacore.com>
10873
10874 PR target/77759
10875 * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
10876 (classify_registers): Don't set it
10877 (function_arg_slotno): Don't initialize and test it. Tidy up.
10878
10879 2016-10-06 Richard Biener <rguenther@suse.de>
10880
10881 PR tree-optimization/77839
10882 * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
10883 lattice transition.
10884
10885 2016-10-06 Martin Liska <mliska@suse.cz>
10886
10887 * gcc.c: Set -fprofile-update=atomic when profiling is
10888 enabled and -pthread is set. Warn when one combines
10889 -pthread and -fprofile-update=single for an app using
10890 profiling code.
10891
10892 2016-10-06 Martin Liska <mliska@suse.cz>
10893
10894 PR bootstrap/77788
10895 * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
10896 * gimple-ssa-strength-reduction.c (slsr_process_cast):
10897 Initialize a pointer to NULL.
10898 (slsr_process_copy): Likewise.
10899 * input.c (location_get_source_line): Likewise.
10900 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
10901
10902 2016-10-05 Andrew Senkevich <andrew.senkevich@intel.com>
10903
10904 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
10905 OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
10906 (ix86_handle_option): Deleted handle of OPT_mpcommit.
10907 * config.gcc: Deleted pcommitintrin.h
10908 * config/i386/pcommitintrin.h: Deleted file.
10909 * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
10910 * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
10911 detection.
10912 * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
10913 __PCOMMIT__.
10914 * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
10915 (PTA_PCOMMIT): Deleted define.
10916 (ix86_option_override_internal): Deleted handle of option.
10917 (ix86_valid_target_attribute_inner_p): Deleted pcommit.
10918 * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
10919 __builtin_ia32_pcommit): Deleted.
10920 * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
10921 * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
10922 (pcommit): Deleted instruction.
10923 * config/i386/i386.opt: Mention -mpcommit deprecation.
10924 * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
10925
10926 2016-10-05 Uros Bizjak <ubizjak@gmail.com>
10927
10928 PR target/77874
10929 * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
10930 Remove wrong assert.
10931 (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
10932 Use <round_constraint> as operand 1 constraint.
10933
10934 2016-10-05 Jakub Jelinek <jakub@redhat.com>
10935
10936 PR sanitizer/66343
10937 * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
10938 (ubsan_instrument_float_cast): And not here.
10939
10940 PR sanitizer/66343
10941 * ubsan.c (ubsan_ids): New GTY(()) array.
10942 (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
10943 instead of static local counters.
10944
10945 2016-10-05 Martin Sebor <msebor@redhat.com>
10946
10947 PR bootstrap/77819
10948 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
10949 * config/linux.c (gnu_libc_printf_pointer_format): Remove.
10950 * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
10951 (default_printf_pointer_format): Define function.
10952 * targhooks.c (linux_printf_pointer_format): Define new function.
10953 * targhooks.h (linux_printf_pointer_format): Declare.
10954 (gnu_libc_printf_pointer_format): Remove declaration.
10955
10956 2016-10-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10957
10958 * fold-const.c (native_encode_real): Fix logic for selecting offset
10959 to write to when BYTES_BIG_ENDIAN.
10960
10961 2016-10-05 Wilco Dijkstra <wdijkstr@arm.com>
10962
10963 * builtins.c (fold_builtin_strchr): Remove function.
10964 (fold_builtin_strrchr): Likewise.
10965 (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
10966 * gimple-fold.c (target_char_cst_p): New function.
10967 (gimple_fold_builtin_strchr) Add more foldings.
10968 (gimple_fold_builtin): Add index, strrchr, rindex cases.
10969
10970 2016-10-05 Richard Biener <rguenther@suse.de>
10971
10972 PR middle-end/77863
10973 * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
10974 capture ids in c-exprs.
10975
10976 2016-10-05 Richard Biener <rguenther@suse.de>
10977
10978 PR middle-end/77826
10979 * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
10980 with types_match for GIMPLE code gen to handle type mismatched
10981 constants properly.
10982 (dt_operand::gen): Adjust.
10983 * match.pd ((X /[ex] A) * A -> X): Properly handle converted
10984 and constant A.
10985
10986 2016-10-05 Richard Biener <rguenther@suse.de>
10987
10988 * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
10989
10990 2016-10-05 Richard Biener <rguenther@suse.de>
10991
10992 PR middle-end/77842
10993 * genmatch.c (parser::parse_c_expr): Handle premature EOF.
10994
10995 2016-10-05 Pierre-Marie de Rodat <derodat@adacore.com>
10996
10997 * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
10998 version check to protect only DW_TAG_imported_module generation.
10999
11000 2016-10-05 Richard Biener <rguenther@suse.de>
11001
11002 PR middle-end/55152
11003 * match.pd (min(a,-a) -> -abs(a)): New pattern.
11004
11005 2016-10-04 Ian Lance Taylor <iant@golang.org>
11006
11007 * explow.c (allocate_dynamic_stack_space): Call
11008 do_pending_stack_adjust before handling flag_split_stack.
11009
11010 2016-10-04 David Malcolm <dmalcolm@redhat.com>
11011
11012 * genattrtab.c (make_internal_attr): Supply dummy column number to
11013 file_location ctor.
11014 (main): Likewise.
11015 * genoutput.c (init_insn_for_nothing): Likewise.
11016 * gensupport.c (add_define_attr): Likewise.
11017 * read-md.c (message_at_1): Print column number.
11018 (fatal_with_file_and_line): Likewise.
11019 (rtx_reader::read_char): Track column numbers.
11020 (rtx_reader::unread_char): Likewise.
11021 (rtx_reader::rtx_reader): Initialize m_read_md_colno.
11022 (rtx_reader::handle_include): Stash and restore m_read_md_colno.
11023 (rtx_reader::handle_file): Initialize m_read_md_colno.
11024 (rtx_reader::get_current_location): Supply column number to
11025 file_location ctor.
11026 * read-md.h (struct file_location): Add field "colno".
11027 (file_location::file_location): Likewise.
11028 (rtx_reader::get_colno): New accessor.
11029 (rtx_reader::m_read_md_colno): New field.
11030 (rtx_reader::m_last_line_colno): New field.
11031
11032 2016-10-04 Jakub Jelinek <jakub@redhat.com>
11033
11034 * doc/extend.texi (Java Exceptions): Remove.
11035 (java_interface): Remove.
11036
11037 2016-10-04 Doug Gilmore <doug.gilmore@imgtec.com>
11038
11039 PR tree-optimization/77808
11040 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
11041 and addr are different before copying points-to information.
11042
11043 2016-10-04 Uros Bizjak <ubizjak@gmail.com>
11044
11045 * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
11046 * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
11047 * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
11048 of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
11049
11050 2016-10-04 Richard Biener <rguenther@suse.de>
11051
11052 PR tree-optimization/77399
11053 * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
11054 verify the target can convert.
11055
11056 2016-10-04 Richard Biener <rguenther@suse.de>
11057
11058 PR middle-end/77833
11059 * explow.c (plus_constant): Verify the mode of the constant
11060 pool offset before calling plus_constant.
11061
11062 2016-10-04 Richard Biener <rguenther@suse.de>
11063
11064 PR middle-end/77407
11065 * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
11066 type support, mark with :C.
11067 (X / -X -> -1): Mark with :C.
11068
11069 2016-10-04 Jakub Jelinek <jakub@redhat.com>
11070
11071 * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
11072 * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
11073 * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
11074 * doc/tm.texi: Regenerated.
11075 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
11076 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
11077 * config/darwin.h (JCR_SECTION_NAME): Remove.
11078 * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
11079 * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
11080 * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
11081 * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
11082 * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
11083 * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
11084
11085 2016-10-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11086
11087 * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
11088 between "because" and "param" in dump message in call to fprintf.
11089
11090 2016-10-03 Jeff Law <law@redhat.com>
11091
11092 PR tree-optimization/71550
11093 PR tree-optimization/71403
11094 * tree-ssa-threadbackward.c: Include tree-vectorizer.h
11095 (profitable_jump_thread_path): Also return boolean indicating if
11096 the realized path will create an irreducible loop.
11097 Remove loop depth tests from 71403.
11098 (fsm_find_control_statement_thread_paths): Remove loop depth tests
11099 from 71403. If threading will create an irreducible loop, then
11100 throw away loop iteration and related information.
11101
11102 2016-10-03 Uros Bizjak <ubizjak@gmail.com>
11103
11104 * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
11105 -Woverloaded-virtual checks for warning options.
11106 * configure: Regenerate.
11107
11108 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11109
11110 PR preprocessor/77699
11111 * input.c (maybe_grow): Don't allocate one byte extra headroom.
11112 (get_next_line): Return false on error.
11113 (read_next_line): Removed, use get_next_line instead.
11114 (read_line_num): Don't copy the line.
11115 (location_get_source_line): Don't use static data.
11116 (selftest::test_reading_source_line): Add more test cases.
11117
11118 2016-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11119
11120 Revert
11121 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11122
11123 * ifcvt.c (noce_try_avoid_const_materialization): New function.
11124 (noce_process_if_block): Use it.
11125
11126 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11127
11128 * doc/invoke.texi: Update -Wint-in-bool-context.
11129
11130 2016-10-02 Jakub Jelinek <jakub@redhat.com>
11131
11132 * dwarf2out.c (output_fde, output_call_frame_info,
11133 dwarf2out_do_cfi_startproc, set_indirect_string,
11134 gen_internal_sym, output_die, output_line_info): Use
11135 MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
11136 ASM_GENERATE_INTERNAL_LABEL output.
11137
11138 2016-10-01 Richard Biener <rguenther@suse.de>
11139
11140 PR middle-end/77798
11141 * genmatch.c (get_operand_type): Add operand position arg
11142 and handle COND_EXPR comparison operand with fixed boolean_type_node.
11143 (expr::gen_transform): Adjust.
11144 (dt_simplify::gen_1): Likewise.
11145
11146 2016-10-01 Jakub Jelinek <jakub@redhat.com>
11147
11148 * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
11149 comments. Simplify asserts, remove unnecessary conditions.
11150 Formatting fixes.
11151 (*<code><mode>3): Likewise.
11152
11153 2016-09-30 Jakub Jelinek <jakub@redhat.com>
11154
11155 * doc/invoke.texi (-Wregister): Document.
11156
11157 2016-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
11158
11159 * configure.ac: Split CHECKING_P into CHECKING_P and
11160 ENABLE_EXTRA_CHECKING.
11161 * configure: Regenerated.
11162 * config.in: Adjust commment of CHECKING_P. Add ENABLE_EXTRA_CHECKING.
11163 * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
11164
11165 2016-09-30 Prasad Ghangal <prasad.ghangal@gmail.com>
11166
11167 PR other/31566
11168 * gcc.c (process_command): For @filename handling, output
11169 the correct name if the file does not exist.
11170
11171 2016-09-30 Marek Polacek <polacek@redhat.com>
11172
11173 * config/aarch64/aarch64-simd.md: Adjust fall through comments.
11174 * config/alpha/predicates.md: Likewise.
11175
11176 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11177
11178 * ifcvt.c (noce_try_avoid_const_materialization): New function.
11179 (noce_process_if_block): Use it.
11180
11181 2016-09-30 Martin Liska <mliska@suse.cz>
11182
11183 * doc/invoke.texi: Document asan-use-after-return that
11184 it's disabled by default in runtime.
11185
11186 2016-09-30 Richard Biener <rguenther@suse.de>
11187
11188 * tree-vrp.c (intersect_ranges): If we failed to handle
11189 the intersection choose a constant singleton range if available.
11190
11191 2016-09-30 Richard Biener <rguenther@suse.de>
11192
11193 PR tree-optimization/77399
11194 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
11195 float <-> int conversions.
11196
11197 2016-09-30 Alan Modra <amodra@gmail.com>
11198
11199 * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
11200
11201 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
11202
11203 * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
11204 ext_level before calling CPUID with 0x80000008.
11205 Simplify xgetbv checks.
11206
11207 2016-09-29 David Malcolm <dmalcolm@redhat.com>
11208
11209 * Makefile.in (OBJS): Add print-rtl-function.o.
11210 * print-rtl-function.c: New file.
11211 * print-rtl.h (print_rtx_function): New decl.
11212
11213 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
11214
11215 PR target/77756
11216 * config/i386/cpuid.h (__get_cpuid_count): New.
11217 (__get_cpuid): Rename __level to __leaf.
11218
11219 2016-09-29 Marek Polacek <polacek@redhat.com>
11220
11221 * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
11222
11223 2016-09-29 Bernd Schmidt <bschmidt@redhat.com>
11224
11225 PR target/77718
11226 * builtins.c (expand_builtin_memcmp): Don't swap args unless
11227 result is only being compared with zero.
11228
11229 2016-09-29 Marek Polacek <polacek@redhat.com>
11230
11231 * dwarf2out.c (loc_descriptor): Add fall through comment.
11232 (add_const_value_attribute): Likewise.
11233
11234 2016-09-29 Matthew Wahab <matthew.wahab@arm.com>
11235
11236 * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
11237 with "v6t2". Move "arch" attribute above "pool_range".
11238 * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
11239 with "v6t2".
11240 (*thumb2_movhi_vfp): Likewise.
11241 (*arm_movhi_fp16): Likewise.
11242 (*thumb2_movhi_fp16): Likewise.
11243 (*arm_movsi_vfp): Remove "arch" attribute.
11244 (*thumb2_movsi_vfp): Likewise.
11245
11246 2016-09-29 Martin Liska <mliska@suse.cz>
11247
11248 * doc/extend.texi: Remove limitation of Objective C for
11249 __attribute__((constructor)) and __attribute__((destructor)).
11250
11251 2016-09-29 Richard Biener <rguenther@suse.de>
11252
11253 PR tree-optimization/77768
11254 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11255 Handle stores to readonly memory when removing redundant stores.
11256
11257 2016-09-29 Richard Biener <rguenther@suse.de>
11258
11259 PR middle-end/77407
11260 * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
11261 X / -X -> -1 simplifications.
11262
11263 2016-09-29 Richard Biener <rguenther@suse.de>
11264
11265 PR middle-end/55152
11266 * match.pd: Add max(a,-a) -> abs(a) pattern.
11267 * tree-ssa-phiopt.c (minmax_replacement): Disable for
11268 HONOR_SIGNED_ZEROS types.
11269
11270 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
11271
11272 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
11273 * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
11274
11275 2016-09-29 Richard Biener <rguenther@suse.de>
11276
11277 * tree-vrp.c (set_defs_to_varying): New helper avoiding
11278 writing to vr_const_varying.
11279 (vrp_initialize): Call it.
11280 (vrp_visit_stmt): Likewise.
11281 (evrp_dom_walker::before_dom_children): Likewise.
11282
11283 2016-09-29 Richard Biener <rguenther@suse.de>
11284
11285 * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
11286 constructors with vector elements.
11287
11288 2016-09-29 Richard Biener <rguenther@suse.de>
11289
11290 PR tree-optimization/77768
11291 * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
11292 with stores to a place we know has a constant value.
11293
11294 2016-09-29 Alan Modra <amodra@gmail.com>
11295
11296 * config/rs6000/sysv4.opt (mgnu-attribute): New option.
11297 * doc/invoke.texi: Document it.
11298 * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
11299 (rs6000_passes_float): Comment.
11300 (rs6000_passes_long_double): New static var.
11301 (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
11302 (init_cumulative_args): Set up to emit fp .gnu_attribute for
11303 ELF 64-bit ABIs as well as 32-bit ELF. Correct rs6000_passes_float
11304 to include fp values returned in vectors.
11305 Set rs6000_passes_long_double.
11306 (rs6000_function_arg_advance_1): Likewise for function args.
11307 (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
11308 and SPE. Emit long double tag value too.
11309 (rs6000_opt_vars): Add gnu-attr.
11310 * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
11311 * configure: Regenerate.
11312 * config.in: Regenerate.
11313
11314 2016-09-28 Jakub Jelinek <jakub@redhat.com>
11315
11316 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
11317 of 0 < x.
11318 (format_floating, format_string, format_directive,
11319 get_destination_size, pass_sprintf_length::handle_gimple_call):
11320 Likewise.
11321
11322 2016-09-28 Jakub Jelinek <jakub@redhat.com>
11323
11324 * gimple-ssa-sprintf.c: Fix comment formatting.
11325 (format_integer): Use is_gimple_assign.
11326 (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
11327 and gimple_call_fndecl. Reorder case BUILT_IN_SPRINTF_CHK. Fix up
11328 BUILT_IN_SNPRINTF_CHK comment. Replace "to to" with "to" in comment.
11329 (pass_sprintf_length::execute): Use is_gimple_call.
11330
11331 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
11332
11333 * gimple-fold.c (gimple_fold_builtin): After failing to fold
11334 strchr, also try the generic folding.
11335
11336 2016-09-28 Martin Sebor <msebor@redhat.com>
11337
11338 PR c/77762
11339 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
11340 Fix typos.
11341
11342 2016-09-28 Martin Sebor <msebor@redhat.com>
11343
11344 PR middle-end/77683
11345 * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
11346 length modifier is not expected.
11347 (format_floating): Ignore l length modifier and fail gracefuly
11348 when it isn't one of the other expected ones.
11349
11350 2016-09-28 Martin Sebor <msebor@redhat.com>
11351
11352 PR bootstrap/77753
11353 * varasm.c (assemble_addr_to_section): Increase local buffer size.
11354
11355 2016-09-27 Richard Biener <rguenther@suse.de>
11356
11357 * dwarf2out.c (cu_die_list): New global.
11358 (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs. Add
11359 main_comp_unit_die to cu_die_list if we created it.
11360 Move break_out_includes ...
11361 (dwarf2out_early_finish): ... here. Push created CU DIEs onto
11362 the cu_die_list.
11363
11364 2016-09-28 Richard Biener <rguenther@suse.de>
11365
11366 * dwarf2out.c (struct die_struct): Add removed flag.
11367 (lookup_type_die): If the DIE is marked as removed, clear
11368 TYPE_SYMTAB_DIE and return NULL.
11369 (lookup_decl_die): If the DIE is marked as removed, remove it
11370 from the hash and return NULL.
11371 (mark_removed): New helper.
11372 (prune_unused_types_prune): Call it for removed DIEs.
11373 (gen_subprogram_die): Move the premark_used_types call to after
11374 DIEs for the functions scopes are generated.
11375 (process_scope_var): Do not re-create pruned types or type decls.
11376 Make sure to also re-parent type decls.
11377 (dwarf2out_finish): Move unused type pruning and debug_types
11378 handling ...
11379 (dwarf2out_early_finish): ... here.
11380
11381 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
11382
11383 * config/arc/arc-c.c: New file.
11384 * config/arc/arc-c.def: Likewise.
11385 * config/arc/t-arc: Likewise.
11386 * config.gcc: Include arc-c.o as c and cpp object.
11387 * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
11388 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
11389 arc_cpu_cpp_builtins.
11390
11391 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
11392
11393 * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
11394 (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
11395
11396 2016-09-28 Nathan Sidwell <nathan@acm.org>
11397
11398 * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
11399 printing.
11400
11401 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
11402
11403 PR tree-optimization/61056
11404 * gimple-fold.c (gimple_fold_builtin_strchr):
11405 New function to optimize strchr (s, 0) to strlen.
11406 (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
11407
11408 2016-09-27 Robin Dapp <rdapp@linux.vnet.ibm.com>
11409
11410 PR tree-optimization/77724
11411 * tree-vect-loop-manip.c (create_intersect_range_checks_index):
11412 Add tree_fits_shwi_p check.
11413
11414 2016-09-27 Jakub Jelinek <jakub@redhat.com>
11415
11416 * auto-inc-dec.c (try_merge): Remove break after return.
11417 * cselib.c (autoinc_split): Likewise.
11418 * explow.c (promote_mode): Likewise.
11419 * fixed-value.c (fixed_arithmetic): Likewise.
11420 * hsa.c (hsa_internal_fn::get_arity): Likewise.
11421 * rtlanal.c (modified_between_p, modified_in_p): Likewise.
11422 * trans-mem.c (get_attrs_for): Likewise.
11423 * tree-if-conv.c (if_convertible_stmt_p): Likewise.
11424 * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
11425 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
11426 * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
11427 * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
11428 * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
11429 * config/cris/cris.c (cris_op_str): Likewise.
11430 * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
11431 * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
11432
11433 2016-09-27 Nathan Sidwell <nathan@codesourcery.com>
11434
11435 * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
11436 IFN_GOACC_REDUCTION_CODES): New.
11437 (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
11438 ifn_goacc_reduction_kind): Use them.
11439 * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
11440 of internal functions, when applicable.
11441
11442 2016-09-27 Maciej W. Rozycki <macro@imgtec.com>
11443
11444 * config/mips/constraints.md (d): Fix documentation.
11445 * doc/md.texi (Machine Constraints): Update accordingly.
11446
11447 2016-09-27 Richard Biener <rguenther@suse.de>
11448
11449 * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
11450 cur_line_info_table initialization ...
11451 (dwarf2out_assembly_start): ... here.
11452
11453 2016-09-27 Matthew Wahab <matthew.wahab@arm.com>
11454
11455 * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
11456 * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
11457 (*thumb2_movhi_vfp): Likewise.
11458 (*arm_movhi_fp16): Remove predication operand from VMOV.F16
11459 template. Expand predicable attribute to mark VMOV.F16 as not
11460 predicable. Add "arch" attribute.
11461 (*thumb2_movhi_fp16): Likewise.
11462 (*arm_movsi_vfp): Break a long line. Add "arch" attribute.
11463 (*thumb2_movsi_vfp): Add "arch" attribute.
11464
11465 2016-09-27 David Edelsohn <dje.gcc@gmail.com>
11466
11467 * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
11468 VAR_DECL string.
11469
11470 2016-09-27 Marek Polacek <polacek@redhat.com>
11471
11472 * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
11473 comment.
11474
11475 * config/c6x/c6x.h: Adjust fall through comment.
11476 * config/sh/sh.c (final_prescan_insn): Likewise.
11477 * config/visium/visium.c (visium_expand_int_cstore): Likewise.
11478 (visium_expand_fp_cstore): Likewise.
11479
11480 2016-09-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11481
11482 * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
11483 expected by -Wimplicit-fallthrough.
11484 (thumb1_size_rtx_costs): Likewise.
11485 (thumb2_reorg): Likewise.
11486 (tls_mentioned_p): Add "Fall through" comment.
11487 (thumb2_reorg): Likewise.
11488 * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
11489 comment form expected by -Wimplicit-fallthrough.
11490
11491 2016-09-27 Martin Liska <mliska@suse.cz>
11492
11493 PR gcov-profile/46266
11494 * input.h (RESERVED_LOCATION_P): New macro.
11495 * profile.c (branch_prob): Use RESERVED_LOCATION_P and
11496 instread of comparison with UNKNOWN_LOCATION.
11497
11498 2016-09-27 Richard Biener <rguenther@suse.de>
11499
11500 PR tree-optimization/77745
11501 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11502 When removing redundant stores make sure to check compatibility
11503 of the TBAA state for downstream accesses.
11504 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
11505 value-numbering virtual operands for store matches.
11506
11507 2016-09-27 Oleg Endo <olegendo@gcc.gnu.org>
11508
11509 PR target/51244
11510 * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
11511 movrt patterns. Match them before anything else in the SET case.
11512
11513 2016-09-27 Martin Liska <mliska@suse.cz>
11514
11515 PR gcov-profile/7970
11516 PR gcov-profile/16855
11517 PR gcov-profile/44779
11518 * coverage.c (build_gcov_exit_decl): New function.
11519 (coverage_obj_init): Call the function and generate __gcov_exit
11520 destructor.
11521 * doc/gcov.texi: Document when __gcov_exit function is called.
11522
11523 2016-09-27 Marek Polacek <polacek@redhat.com>
11524
11525 PR bootstrap/77751
11526 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
11527 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
11528 -Wno-error instead of -Wno-implicit-fallthrough.
11529
11530 2016-09-27 Martin Liska <mliska@suse.cz>
11531
11532 PR bootstrap/77749
11533 * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
11534
11535 2016-09-27 Jakub Jelinek <jakub@redhat.com>
11536
11537 * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
11538 * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
11539 comments. Remove break after return.
11540 (ix86_fp_compare_code_to_integer, has_dispatch,
11541 ix86_simd_clone_usable): Remove break after return.
11542
11543 2016-09-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
11544
11545 PR rlt-optimization/77714
11546 * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
11547 REG_EQUAL note.
11548
11549 2016-09-27 Kugan Vivekanandarajah <kuganv@linaro.org>
11550
11551 PR ipa/77677
11552 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
11553 extract_range_from_unary_expr to convert value_range.
11554 * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
11555 (extract_range_from_unary_expr): This.
11556 * tree-vrp.h (extract_range_from_unary_expr): Declare.
11557
11558 2016-09-27 Segher Boessenkool <segher@kernel.crashing.org>
11559
11560 * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
11561
11562 2016-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11563
11564 * config/i386/i386.c (ix86_print_operand)
11565 [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
11566 * config/sparc/sparc.c (check_pic): Add fallthrough comment.
11567 (epilogue_renumber): Likewise.
11568
11569 2016-09-26 Kugan Vivekanandarajah <kuganv@linaro.org>
11570
11571 PR middle-end/77719
11572 * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
11573 to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
11574
11575 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
11576
11577 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
11578 is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
11579 is_mm_seq_cst, is_mm_sync): Move to ...
11580 * memmodel.h: This. New file.
11581 * builtins.c: Include memmodel.h.
11582 * optabs.c: Likewise.
11583 * tsan.c: Likewise.
11584 * config/aarch64/aarch64.c: Likewise.
11585 * config/alpha/alpha.c: Likewise.
11586 * config/arm/arm.c: Likewise.
11587 * config/i386/i386.c: Likewise.
11588 * config/ia64/ia64.c: Likewise.
11589 * config/mips/mips.c: Likewise.
11590 * config/rs6000/rs6000.c: Likewise.
11591 * config/sparc/sparc.c: Likewise.
11592 * genconditions.c: Include memmodel.h in generated file.
11593 * genemit.c: Likewise.
11594 * genoutput.c: Likewise.
11595 * genpeep.c: Likewise.
11596 * genpreds.c: Likewise.
11597 * genrecog.c: Likewise.
11598
11599 2016-09-26 David Malcolm <dmalcolm@redhat.com>
11600
11601 * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
11602 "c" instead when parsing characters. Move operand parsing into...
11603 (read_rtx_operand): ...this new function, renaming "i" to "idx",
11604 and tightening the scope of various locals.
11605
11606 2016-09-26 Liu Hao <lh_mouse@126.com>
11607
11608 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
11609
11610 2016-09-26 Marek Polacek <polacek@redhat.com>
11611
11612 * system.h: Use __has_attribute to check whether the fallthrough
11613 attribute is supported.
11614
11615 2016-09-26 Marek Polacek <polacek@redhat.com>
11616
11617 * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
11618 gimple_call_internal_p.
11619 * ipa-split.c (find_return_bb): Likewise.
11620 (execute_split_functions): Likewise.
11621 * omp-low.c (dump_oacc_loop_part): Likewise.
11622 (oacc_loop_xform_head_tail): Likewise.
11623 * predict.c (predict_loops): Likewise.
11624 * sanopt.c (pass_sanopt::execute): Likewise.
11625 * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
11626 * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
11627 * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
11628 (expand_ifn_va_arg_1): Use gimple_call_internal_p.
11629 (expand_ifn_va_arg): Likewise.
11630 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
11631 (optimize_mask_stores): Likewise.
11632 * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
11633 (vect_transform_stmt): Likewise.
11634 * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
11635 * tsan.c (instrument_memory_accesses): Likewise.
11636
11637 2016-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11638 Alexander Monakov <amonakov@ispras.ru>
11639
11640 * regrename.c (rename_chains): Check
11641 HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
11642 HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
11643 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11644
11645 2016-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11646
11647 * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
11648 (s390_sched_score): Likewise.
11649
11650 2016-09-26 Martin Liska <mliska@suse.cz>
11651
11652 * doc/gcov.texi: Update program output of gcov tool.
11653
11654 2016-09-26 Martin Liska <mliska@suse.cz>
11655
11656 PR gcov-profile/23332
11657 * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
11658 * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
11659 * value-prof.c (dump_histogram_value): Do not handle
11660 HIST_TYPE_CONST_DELTA.
11661 (stream_in_histogram_value): Likewise.
11662 (gimple_find_values_to_profile): Likewise.
11663 * value-prof.h (enum hist_type): Likewise.
11664
11665 2016-09-26 Martin Liska <mliska@suse.cz>
11666
11667 * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
11668 from default sanitize recover values.
11669 * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
11670 -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
11671 * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
11672 consistent.
11673 * opts.c (finish_options): Do a generic loop over options
11674 that can be recovered.
11675 (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
11676 SANITIZE_RETURN.
11677 (common_handle_option): Likewise.
11678 * opts.h: Declare can_recover to sanitizer_opts_s.
11679
11680 2016-09-26 Andre Vieira <andre.simoesdiasvieira@arm.com>
11681
11682 * target.def(elf_flags_numeric): Change documentation to present tense.
11683 * doc/tm.texi: Regenerate.
11684
11685 2016-09-26 Marek Polacek <polacek@redhat.com>
11686
11687 PR c/7652
11688 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
11689 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
11690 -Wno-switch-fallthrough.
11691 * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
11692 (expand_builtin): Likewise.
11693 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
11694 * convert.c (convert_to_real_1): Likewise.
11695 (convert_to_integer_1): Likewise.
11696 * final.c (output_alternate_entry_point): Likewise.
11697 * genattrtab.c (make_canonical): Likewise.
11698 (write_test_expr): Likewise.
11699 * genpreds.c (validate_exp): Likewise.
11700 * gimple-ssa-strength-reduction.c
11701 (find_candidates_dom_walker::before_dom_children): Likewise.
11702 * godump.c (go_format_type): Likewise.
11703 * reload1.c (elimination_effects): Likewise.
11704 * resource.c (mark_referenced_resources): Likewise.
11705 (mark_set_resources): Likewise.
11706 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
11707 * varasm.c (output_addressed_constants): Likewise.
11708
11709 2016-09-26 Marek Polacek <polacek@redhat.com>
11710
11711 PR c/7652
11712 * common.opt (Wimplicit-fallthrough): New option.
11713 * doc/extend.texi: Document statement attributes and the fallthrough
11714 attribute.
11715 * doc/invoke.texi: Document -Wimplicit-fallthrough.
11716 * gimple.h (gimple_call_internal_p): New function.
11717 * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
11718 (struct label_entry): New struct.
11719 (find_label_entry): New function.
11720 (case_label_p): New function.
11721 (collect_fallthrough_labels): New function.
11722 (last_stmt_in_scope): New function.
11723 (should_warn_for_implicit_fallthrough): New function.
11724 (warn_implicit_fallthrough_r): New function.
11725 (maybe_warn_implicit_fallthrough): New function.
11726 (expand_FALLTHROUGH_r): New function.
11727 (expand_FALLTHROUGH): New function.
11728 (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
11729 expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
11730 (gimplify_label_expr): New function.
11731 (gimplify_case_label_expr): Set location.
11732 (gimplify_expr): Call gimplify_label_expr.
11733 * internal-fn.c (expand_FALLTHROUGH): New function.
11734 * internal-fn.def (FALLTHROUGH): New internal function.
11735 * langhooks.c (lang_GNU_OBJC): New function.
11736 * langhooks.h (lang_GNU_OBJC): Declare.
11737 * system.h (gcc_fallthrough): Define.
11738 * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
11739 * tree.h (FALLTHROUGH_LABEL_P): Define.
11740
11741 2016-09-26 Richard Biener <rguenther@suse.de>
11742
11743 * dwarf2out.c (stripattributes): Remove unused function.
11744 (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
11745 Push dwarf_split_debug_info handling into init_sections_and_labels.
11746 (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
11747 (DEBUG_MACRO_SECTION_FLAGS): Remove.
11748 (debug_macinfo_section_name): New global.
11749 (output_macinfo): Use debug_macinfo_section_name.
11750 (init_sections_and_labels): Split out section and label generation
11751 from dwarf2out_init. Set debug_macinfo_section_name.
11752 (dwarf2out_init): Move text section label generation and emission
11753 to ...
11754 (dwarf2out_assembly_start): ... here.
11755 (dwarf2out_finish): Call init_sections_and_labels before DWARF
11756 output starts.
11757
11758 2016-09-26 Richard Biener <rguenther@suse.de>
11759
11760 PR debug/77692
11761 * cgraphunit.c (analyze_functions): Before early removing
11762 global vars calls the late_global_decl debug handler mark
11763 the variable as readonly.
11764
11765 2016-09-25 Oleg Endo <olegendo@gcc.gnu.org>
11766
11767 PR target/51244
11768 * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
11769 (sh_rtx_costs): Handle SET of movt and movrt patterns.
11770 * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
11771 declare new overloads.
11772 * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
11773 operand.
11774
11775 2016-09-24 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
11776
11777 * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
11778 Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
11779
11780 2016-09-24 David Edelsohn <dje.gcc@gmail.com>
11781
11782 * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
11783 * configure: Regenerate.
11784
11785 2016-09-24 Marek Polacek <polacek@redhat.com>
11786
11787 PR c/77490
11788 * doc/invoke.texi: Document -Wbool-operation.
11789
11790 2016-09-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
11791
11792 * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
11793 * config/rs6000/rs6000.c (expand_block_compare): New function used by
11794 cmpmemsi pattern to do builtin expansion of memcmp ().
11795 (compute_current_alignment): Add helper function for
11796 expand_block_compare used to compute alignment as the compare proceeds.
11797 (select_block_compare_mode): Used by expand_block_compare to select
11798 the mode used for reading the next chunk of bytes in the compare.
11799 (do_load_for_compare): Used by expand_block_compare to emit the load
11800 insns for the compare.
11801 (rs6000_emit_dot_insn): Moved this function to avoid a forward
11802 reference from expand_block_compare ().
11803 * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
11804 prototype for this function.
11805 * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
11806 target option for controlling how much code inline expansion of
11807 memcmp() will be allowed to generate.
11808
11809 2016-09-23 Jakub Jelinek <jakub@redhat.com>
11810
11811 * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
11812 hook_bool_mode_false, hook_bool_mode_true,
11813 hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
11814 hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
11815 hook_bool_const_rtx_insn_const_rtx_insn_true,
11816 hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
11817 hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
11818 hook_bool_const_tree_hwi_hwi_const_tree_false,
11819 hook_bool_const_tree_hwi_hwi_const_tree_true,
11820 default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
11821 hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
11822 hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
11823 hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
11824 hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
11825 hook_bool_const_tree_true, hook_bool_tree_tree_false,
11826 hook_bool_tree_tree_true, hook_bool_tree_bool_false,
11827 hook_bool_rtx_insn_true, hook_bool_rtx_false,
11828 hook_bool_uintp_uintp_false,
11829 hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
11830 hook_rtx_tree_int_null, hook_uint_mode_0,
11831 hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
11832 hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
11833 hook_constcharptr_const_rtx_insn_null,
11834 hook_constcharptr_const_tree_const_tree_null,
11835 hook_constcharptr_int_const_tree_null,
11836 hook_constcharptr_int_const_tree_const_tree_null,
11837 hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
11838 hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
11839 ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
11840
11841 * vec.h (vNULL): Extend comment to say = vNULL initialization
11842 isn't needed for static vars.
11843
11844 * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
11845 loop_nests, s_i_d, last_added_blocks): Remove unnecessary
11846 = vNULL initialization of file scope vec.
11847 * passes.c (pass_tab, enabled_pass_uid_range_tab,
11848 disabled_pass_uid_range_tab): Likewise.
11849 * haifa-sched.c (sched_luids, h_i_d): Likewise.
11850 * tree-chkp-opt.c (check_infos): Likewise.
11851 * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
11852
11853 * vec.h (vnull::operator vec): Add constexpr keyword for
11854 C++11 and later.
11855
11856 2016-09-23 Doug Gilmore <doug.gilmore@imgtec.com>
11857
11858 PR tree-optimization/77654
11859 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
11860 to duplicate_ssa_name_ptr_info.
11861
11862 2016-09-23 David Malcolm <dmalcolm@redhat.com>
11863
11864 PR preprocessor/77672
11865 * input.c (selftest::test_lexer_string_locations_simple): Update
11866 test to expect location information of the terminator character
11867 at the location of the final closing quote.
11868 (selftest::test_lexer_string_locations_hex): Likewise.
11869 (selftest::test_lexer_string_locations_oct): Likewise.
11870 (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
11871 (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
11872 (selftest::test_lexer_string_locations_ucn4): Likewise.
11873 (selftest::test_lexer_string_locations_ucn8): Likewise.
11874 (selftest::test_lexer_string_locations_u8): Likewise.
11875 (selftest::test_lexer_string_locations_utf8_source): Likewise.
11876 (selftest::test_lexer_string_locations_concatenation_1): Likewise.
11877 (selftest::test_lexer_string_locations_concatenation_2): Likewise.
11878 (selftest::test_lexer_string_locations_concatenation_3): Likewise.
11879 (selftest::test_lexer_string_locations_macro): Likewise.
11880 (selftest::test_lexer_string_locations_long_line): Likewise.
11881
11882 2016-09-23 Richard Biener <rguenther@suse.de>
11883
11884 * tree-ssa-sccvn.c (visit_reference_op_call): Value number
11885 virtual definition to virtual use if the call devirtualizes
11886 to a const or pure function.
11887 (visit_use): Also visit calls we can devirtualize to a
11888 const or pure function.
11889
11890 2016-09-23 Richard Biener <rguenther@suse.de>
11891
11892 PR tree-optimization/77697
11893 * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
11894 signal error if we have sth ternary or unhandled.
11895
11896 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11897
11898 * config/arm/arm_neon.h (vabd_f16): New.
11899 (vabdq_f16): New.
11900 (vabs_f16): New.
11901 (vabsq_f16): New.
11902 (vadd_f16): New.
11903 (vaddq_f16): New.
11904 (vcage_f16): New.
11905 (vcageq_f16): New.
11906 (vcagt_f16): New.
11907 (vcagtq_f16): New.
11908 (vcale_f16): New.
11909 (vcaleq_f16): New.
11910 (vcalt_f16): New.
11911 (vcaltq_f16): New.
11912 (vceq_f16): New.
11913 (vceqq_f16): New.
11914 (vceqz_f16): New.
11915 (vceqzq_f16): New.
11916 (vcge_f16): New.
11917 (vcgeq_f16): New.
11918 (vcgez_f16): New.
11919 (vcgezq_f16): New.
11920 (vcgt_f16): New.
11921 (vcgtq_f16): New.
11922 (vcgtz_f16): New.
11923 (vcgtzq_f16): New.
11924 (vcle_f16): New.
11925 (vcleq_f16): New.
11926 (vclez_f16): New.
11927 (vclezq_f16): New.
11928 (vclt_f16): New.
11929 (vcltq_f16): New.
11930 (vcltz_f16): New.
11931 (vcltzq_f16): New.
11932 (vcvt_f16_s16): New.
11933 (vcvt_f16_u16): New.
11934 (vcvt_s16_f16): New.
11935 (vcvt_u16_f16): New.
11936 (vcvtq_f16_s16): New.
11937 (vcvtq_f16_u16): New.
11938 (vcvtq_s16_f16): New.
11939 (vcvtq_u16_f16): New.
11940 (vcvta_s16_f16): New.
11941 (vcvta_u16_f16): New.
11942 (vcvtaq_s16_f16): New.
11943 (vcvtaq_u16_f16): New.
11944 (vcvtm_s16_f16): New.
11945 (vcvtm_u16_f16): New.
11946 (vcvtmq_s16_f16): New.
11947 (vcvtmq_u16_f16): New.
11948 (vcvtn_s16_f16): New.
11949 (vcvtn_u16_f16): New.
11950 (vcvtnq_s16_f16): New.
11951 (vcvtnq_u16_f16): New.
11952 (vcvtp_s16_f16): New.
11953 (vcvtp_u16_f16): New.
11954 (vcvtpq_s16_f16): New.
11955 (vcvtpq_u16_f16): New.
11956 (vcvt_n_f16_s16): New.
11957 (vcvt_n_f16_u16): New.
11958 (vcvtq_n_f16_s16): New.
11959 (vcvtq_n_f16_u16): New.
11960 (vcvt_n_s16_f16): New.
11961 (vcvt_n_u16_f16): New.
11962 (vcvtq_n_s16_f16): New.
11963 (vcvtq_n_u16_f16): New.
11964 (vfma_f16): New.
11965 (vfmaq_f16): New.
11966 (vfms_f16): New.
11967 (vfmsq_f16): New.
11968 (vmax_f16): New.
11969 (vmaxq_f16): New.
11970 (vmaxnm_f16): New.
11971 (vmaxnmq_f16): New.
11972 (vmin_f16): New.
11973 (vminq_f16): New.
11974 (vminnm_f16): New.
11975 (vminnmq_f16): New.
11976 (vmul_f16): New.
11977 (vmul_lane_f16): New.
11978 (vmul_n_f16): New.
11979 (vmulq_f16): New.
11980 (vmulq_lane_f16): New.
11981 (vmulq_n_f16): New.
11982 (vneg_f16): New.
11983 (vnegq_f16): New.
11984 (vpadd_f16): New.
11985 (vpmax_f16): New.
11986 (vpmin_f16): New.
11987 (vrecpe_f16): New.
11988 (vrecpeq_f16): New.
11989 (vrnd_f16): New.
11990 (vrndq_f16): New.
11991 (vrnda_f16): New.
11992 (vrndaq_f16): New.
11993 (vrndm_f16): New.
11994 (vrndmq_f16): New.
11995 (vrndn_f16): New.
11996 (vrndnq_f16): New.
11997 (vrndp_f16): New.
11998 (vrndpq_f16): New.
11999 (vrndx_f16): New.
12000 (vrndxq_f16): New.
12001 (vrsqrte_f16): New.
12002 (vrsqrteq_f16): New.
12003 (vrecps_f16): New.
12004 (vrecpsq_f16): New.
12005 (vrsqrts_f16): New.
12006 (vrsqrtsq_f16): New.
12007 (vsub_f16): New.
12008 (vsubq_f16): New.
12009
12010 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12011
12012 * config.gcc (extra_headers): Add arm_fp16.h
12013 * config/arm/arm_fp16.h: New.
12014 * config/arm/arm_neon.h: Include "arm_fp16.h".
12015
12016 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12017
12018 * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
12019 variants).
12020 (vmulf): New (v8hf, v4hf variants).
12021 (vfma): New (v8hf, v4hf variants).
12022 (vfms): New (v8hf, v4hf variants).
12023 (vsub): New (v8hf, v4hf variants).
12024 (vcage): New (v8hf, v4hf variants).
12025 (vcagt): New (v8hf, v4hf variants).
12026 (vcale): New (v8hf, v4hf variants).
12027 (vcalt): New (v8hf, v4hf variants).
12028 (vceq): New (v8hf, v4hf variants).
12029 (vcgt): New (v8hf, v4hf variants).
12030 (vcge): New (v8hf, v4hf variants).
12031 (vcle): New (v8hf, v4hf variants).
12032 (vclt): New (v8hf, v4hf variants).
12033 (vceqz): New (v8hf, v4hf variants).
12034 (vcgez): New (v8hf, v4hf variants).
12035 (vcgtz): New (v8hf, v4hf variants).
12036 (vcltz): New (v8hf, v4hf variants).
12037 (vclez): New (v8hf, v4hf variants).
12038 (vabd): New (v8hf, v4hf variants).
12039 (vmaxf): New (v8hf, v4hf variants).
12040 (vmaxnm): New (v8hf, v4hf variants).
12041 (vminf): New (v8hf, v4hf variants).
12042 (vminnm): New (v8hf, v4hf variants).
12043 (vpmaxf): New (v4hf variant).
12044 (vpminf): New (v4hf variant).
12045 (vpadd): New (v4hf variant).
12046 (vrecps): New (v8hf, v4hf variants).
12047 (vrsqrts): New (v8hf, v4hf variants).
12048 (vabs): New (v8hf, v4hf variants).
12049 (vneg): New (v8hf, v4hf variants).
12050 (vrecpe): New (v8hf, v4hf variants).
12051 (vrnd): New (v8hf, v4hf variants).
12052 (vrnda): New (v8hf, v4hf variants).
12053 (vrndm): New (v8hf, v4hf variants).
12054 (vrndn): New (v8hf, v4hf variants).
12055 (vrndp): New (v8hf, v4hf variants).
12056 (vrndx): New (v8hf, v4hf variants).
12057 (vrsqrte): New (v8hf, v4hf variants).
12058 (vmul_lane): Add v4hf and v8hf variants.
12059 (vmul_n): Add v4hf and v8hf variants.
12060 (vext): New (v8hf, v4hf variants).
12061 (vcvts): New (v8hi, v4hi variants).
12062 (vcvts): New (v8hf, v4hf variants).
12063 (vcvtu): New (v8hi, v4hi variants).
12064 (vcvtu): New (v8hf, v4hf variants).
12065 (vcvts_n): New (v8hf, v4hf variants).
12066 (vcvtu_n): New (v8hi, v4hi variants).
12067 (vcvts_n): New (v8hi, v4hi variants).
12068 (vcvtu_n): New (v8hf, v4hf variants).
12069 (vbsl): New (v8hf, v4hf variants).
12070 (vcvtas): New (v8hf, v4hf variants).
12071 (vcvtau): New (v8hf, v4hf variants).
12072 (vcvtms): New (v8hf, v4hf variants).
12073 (vcvtmu): New (v8hf, v4hf variants).
12074 (vcvtns): New (v8hf, v4hf variants).
12075 (vcvtnu): New (v8hf, v4hf variants).
12076 (vcvtps): New (v8hf, v4hf variants).
12077 (vcvtpu): New (v8hf, v4hf variants).
12078
12079 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12080
12081 * config/arm/arm-builtins.c (hf_UP): New.
12082 (si_UP): New.
12083 (vfp_builtin_data): New. Update comment.
12084 (enum arm_builtins): Include "arm_vfp_builtins.def".
12085 (ARM_BUILTIN_VFP_PATTERN_START): New.
12086 (arm_init_vfp_builtins): New.
12087 (arm_init_builtins): Add arm_init_vfp_builtins.
12088 (arm_expand_vfp_builtin): New.
12089 (arm_expand_builtins): Update for arm_expand_vfp_builtin. Fix
12090 long line.
12091 * config/arm/arm_vfp_builtins.def: New file.
12092 * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
12093 (arm-builtins.o): Likewise.
12094
12095 2016-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
12096
12097 PR ipa/77677
12098 * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
12099 from constant while creating value range.
12100
12101 2016-09-23 Renlin Li <renlin.li@arm.com>
12102
12103 * ira.c (ira): Move ira_use_lra_p initialization code to ...
12104 (ira_init_once): Here.
12105
12106 2016-09-23 Uros Bizjak <ubizjak@gmail.com>
12107 Jakub Jelinek <jakub@redhat.com>
12108
12109 * hooks.h (hook_uint_uintp_false): Rename to...
12110 (hook_bool_uint_uintp_false): ... this.
12111 * hooks.c (hook_uint_uintp_false): Rename to...
12112 (hook_bool_uint_uintp_false): ... this.
12113 * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
12114 instead of hook_uint_uintp_false.
12115
12116 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12117
12118 * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
12119 (arm_init_builtins): Move body of a loop to the standalone
12120 function arm_init_neon_builtin.
12121 (arm_expand_neon_builtin_1): New. Update comment. Function body
12122 moved from arm_neon_builtin with some white-space fixes.
12123 (arm_expand_neon_builtin): Move code into the standalone function
12124 arm_expand_neon_builtin_1.
12125
12126 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12127
12128 * config/arm/iterators.md (VCVTHI): New.
12129 (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE. Fix a long line.
12130 (NEON_VAGLTE): New.
12131 (VFM_LANE_AS): New.
12132 (VH_CVTTO): New.
12133 (V_reg): Add HF, V4HF and V8HF. Fix white-space.
12134 (V_HALF): Add V4HF. Fix white-space.
12135 (V_if_elem): Add HF, V4HF and V8HF. Fix white-space.
12136 (V_s_elem): Likewise.
12137 (V_sz_elem): Fix white-space.
12138 (V_elem_ch): Likewise.
12139 (VH_elem_ch): New.
12140 (scalar_mul_constraint): Add V8HF and V4HF.
12141 (Is_float_mode): Fix white-space.
12142 (Is_d_reg): Add V4HF and V8HF. Fix white-space.
12143 (q): Add HF. Fix white-space.
12144 (float_sup): New.
12145 (float_SUP): New.
12146 (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
12147 (neon_vfm_lane_as): New.
12148 * config/arm/neon.md (add<mode>3_fp16): New.
12149 (sub<mode>3_fp16): New.
12150 (mul<mode>3add<mode>_neon): New.
12151 (fma<VH:mode>4_intrinsic): New.
12152 (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
12153 (fmsub<VH:mode>4_intrinsic): New.
12154 (<absneg_str><mode>2): New.
12155 (neon_v<absneg_str><mode>): New.
12156 (neon_v<fp16_rnd_str><mode>): New.
12157 (neon_vrsqrte<mode>): New.
12158 (neon_vpaddv4hf): New.
12159 (neon_vadd<mode>): New.
12160 (neon_vsub<mode>): New.
12161 (neon_vmulf<mode>): New.
12162 (neon_vfma<VH:mode>): New.
12163 (neon_vfms<VH:mode>): New.
12164 (neon_vc<cmp_op><mode>): New.
12165 (neon_vc<cmp_op><mode>_fp16insn): New
12166 (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
12167 (neon_vca<cmp_op><mode>): New.
12168 (neon_vca<cmp_op><mode>_fp16insn): New.
12169 (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
12170 (neon_vc<cmp_op>z<mode>): New.
12171 (neon_vabd<mode>): New.
12172 (neon_v<maxmin>f<mode>): New.
12173 (neon_vp<maxmin>fv4hf: New.
12174 (neon_<fmaxmin_op><mode>): New.
12175 (neon_vrecps<mode>): New.
12176 (neon_vrsqrts<mode>): New.
12177 (neon_vrecpe<mode>): New (VH variant).
12178 (neon_vdup_lane<mode>_internal): New.
12179 (neon_vdup_lane<mode>): New.
12180 (neon_vcvt<sup><mode>): New (VCVTHI variant).
12181 (neon_vcvt<sup><mode>): New (VH variant).
12182 (neon_vcvt<sup>_n<mode>): New (VH variant).
12183 (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
12184 (neon_vcvt<vcvth_op><sup><mode>): New.
12185 (neon_vmul_lane<mode>): New.
12186 (neon_vmul_n<mode>): New.
12187 * config/arm/unspecs.md (UNSPEC_VCALE): New
12188 (UNSPEC_VCALT): New.
12189 (UNSPEC_VFMA_LANE): New.
12190 (UNSPECS_VFMS_LANE): New.
12191
12192 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
12193
12194 * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
12195 ("*extzv<mode><clobbercc_or_nocc>"):
12196 Correct a typo in a comment.
12197 Merged patterns.
12198 ("*insv<mode>_zEC12", "*insv<mode>_z10")
12199 ("*insv<mode><clobbercc_or_nocc>"): Ditto.
12200 ("*insv<mode>_zEC12_appendbitsleft")
12201 ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
12202 ("*insv<mode>_z10_appendbitsleft"): Ditto.
12203 ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
12204 ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
12205 Provide pattern with operands switched.
12206 ("*pre_z10_extv<mode>"):
12207 Use new subst patterns.
12208 ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
12209 ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
12210 ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
12211 ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
12212 ("*<risbg_n>_<mode>_ior_and_lshiftrt")
12213 ("*<risbg_n>_sidi_ior_and_lshiftrt")
12214 ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
12215 New patterns.
12216 ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
12217 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
12218 ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
12219 on zEC12.
12220 ("SINT"): New mode_iterator with SI, HI, QI.
12221 * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
12222 ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
12223 duplication.
12224
12225 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
12226
12227 * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
12228 new interface of s390_contiguous_bitmask_p.
12229 ("contiguous_bitmask_nowrap_operand"): New predicate.
12230 ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
12231 * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
12232 of s390_contiguous_bitmask_p.
12233 ("NxxDw"): Rename NxxDq constraint to NxxDw.
12234 ("NxxSw"): New constraint.
12235 * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
12236 * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
12237 interface.
12238 (s390_contiguous_bitmask_nowrap_p): Export.
12239 * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
12240 former s390_contiguous_bitmask_p.
12241 (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
12242 detect contiguous bit ranges with wraparound. Change signature to
12243 return START and END position instead of POS and LENGTH.
12244 (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
12245 ranges with wraparound.
12246 (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
12247 (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
12248 Adapt to new signature of s390_contiguous_bitmask_p.
12249
12250 2016-09-23 Bin Cheng <bin.cheng@arm.com>
12251
12252 * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
12253 (create_intersect_range_checks): New.
12254 (vect_create_cond_for_alias_checks): Call above function.
12255
12256 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12257
12258 * config/arm/iterators.md (Code iterators): Fix some white-space
12259 in the comments.
12260 (GLTE): New.
12261 (ABSNEG): New
12262 (FCVT): Moved from vfp.md.
12263 (VCVT_HF_US_N): New.
12264 (VCVT_SI_US_N): New.
12265 (VCVT_HF_US): New.
12266 (VCVTH_US): New.
12267 (FP16_RND): New.
12268 (absneg_str): New.
12269 (FCVTI32typename): Moved from vfp.md.
12270 (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
12271 UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
12272 UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
12273 UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N, UNSPEC_VCVTH_S_N,
12274 UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
12275 (vcvth_op): New.
12276 (fp16_rnd_str): New.
12277 (fp16_rnd_insn): New.
12278 * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
12279 (UNSPEC_VCVT_HF_U_N): New.
12280 (UNSPEC_VCVT_SI_S_N): New.
12281 (UNSPEC_VCVT_SI_U_N): New.
12282 (UNSPEC_VCVTH_S): New.
12283 (UNSPEC_VCVTH_U): New.
12284 (UNSPEC_VCVTA_S): New.
12285 (UNSPEC_VCVTA_U): New.
12286 (UNSPEC_VCVTM_S): New.
12287 (UNSPEC_VCVTM_U): New.
12288 (UNSPEC_VCVTN_S): New.
12289 (UNSPEC_VCVTN_U): New.
12290 (UNSPEC_VCVTP_S): New.
12291 (UNSPEC_VCVTP_U): New.
12292 (UNSPEC_VCVTP_S): New.
12293 (UNSPEC_VCVTP_U): New.
12294 (UNSPEC_VRND): New.
12295 (UNSPEC_VRNDA): New.
12296 (UNSPEC_VRNDI): New.
12297 (UNSPEC_VRNDM): New.
12298 (UNSPEC_VRNDN): New.
12299 (UNSPEC_VRNDP): New.
12300 (UNSPEC_VRNDX): New.
12301 * config/arm/vfp.md (<absneg_str>hf2): New.
12302 (neon_vabshf): New.
12303 (neon_v<fp16_rnd_str>hf): New.
12304 (neon_vrndihf): New.
12305 (addhf3): New.
12306 (subhf3): New.
12307 (divhf3): New.
12308 (mulhf3): New.
12309 (*mulsf3neghf_vfp): New.
12310 (*negmulhf3_vfp): New.
12311 (*mulsf3addhf_vfp): New.
12312 (*mulhf3subhf_vfp): New.
12313 (*mulhf3neghfaddhf_vfp): New.
12314 (*mulhf3neghfsubhf_vfp): New.
12315 (fmahf4): New.
12316 (neon_vfmahf): New.
12317 (fmsubhf4_fp16): New.
12318 (neon_vfmshf): New.
12319 (*fnmsubhf4): New.
12320 (*fnmaddhf4): New.
12321 (neon_vsqrthf): New.
12322 (neon_vrsqrtshf): New.
12323 (FCVT): Move to iterators.md.
12324 (FCVTI32typename): Likewise.
12325 (neon_vcvth<sup>hf): New.
12326 (neon_vcvth<sup>si): New.
12327 (neon_vcvth<sup>_nhf_unspec): New.
12328 (neon_vcvth<sup>_nhf): New.
12329 (neon_vcvth<sup>_nsi_unspec): New.
12330 (neon_vcvth<sup>_nsi): New.
12331 (neon_vcvt<vcvth_op>h<sup>si): New.
12332 (neon_<fmaxmin_op>hf): New.
12333
12334 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
12335
12336 * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
12337 ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
12338 ("*insv<mode>_zEC12_appendbitsleft")
12339 ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
12340 ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
12341
12342 2016-09-23 Jakub Jelinek <jakub@redhat.com>
12343
12344 * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
12345 * sreal.h (sreal::min, sreal::max): Avoid static local vars,
12346 construct values without normalization.
12347 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
12348 static local lhs_ops to vNULL.
12349
12350 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12351 Jiong Wang <jiong.wang@arm.com>
12352
12353 * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
12354 available when FP16 instructions are available.
12355 (output_move_vfp): Add support for 16-bit data moves.
12356 (arm_validize_comparison): Fix some white-space. Support HFmode
12357 by conversion to SFmode.
12358 * config/arm/arm.md (truncdfhf2): Fix a comment.
12359 (extendhfdf2): Likewise.
12360 (cstorehf4): New.
12361 (movsicc): Fix some white-space.
12362 (movhfcc): New.
12363 (movsfcc): Fix some white-space.
12364 (*cmovhf): New.
12365 * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
12366 instructions are available.
12367 (*thumb2_movhi_vfp): Likewise.
12368 (*arm_movhi_fp16): New.
12369 (*thumb2_movhi_fp16): New.
12370 (*movhf_vfp_fp16): New.
12371 (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
12372 (*movhf_vfp): Likewise.
12373 (extendhfsf2): Enable when VFP FP16 instructions are available.
12374 (truncsfhf2): Enable when VFP FP16 instructions are available.
12375
12376 2016-09-23 Martin Liska <mliska@suse.cz>
12377
12378 * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
12379
12380 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12381
12382 * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
12383 V4HF modes.
12384 (arm_evpc_neon_vtrn): Likewise.
12385 (arm_evpc_neon_vrev): Likewise.
12386 (arm_evpc_neon_vext): Likewise.
12387 * config/arm/arm_neon.h (vbsl_f16): New.
12388 (vbslq_f16): New.
12389 (vdup_n_f16): New.
12390 (vdupq_n_f16): New.
12391 (vdup_lane_f16): New.
12392 (vdupq_lane_f16): New.
12393 (vext_f16): New.
12394 (vextq_f16): New.
12395 (vmov_n_f16): New.
12396 (vmovq_n_f16): New.
12397 (vrev64_f16): New.
12398 (vrev64q_f16): New.
12399 (vtrn_f16): New.
12400 (vtrnq_f16): New.
12401 (vuzp_f16): New.
12402 (vuzpq_f16): New.
12403 (vzip_f16): New.
12404 (vzipq_f16): New.
12405 * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
12406 (vdup_lane): New (v8hf, v4hf variants).
12407 (vext): New (v8hf, v4hf variants).
12408 (vbsl): New (v8hf, v4hf variants).
12409 * config/arm/iterators.md (VDQWH): New.
12410 (VH): New.
12411 (V_double_vector_mode): Add V8HF and V4HF. Fix white-space.
12412 (Scalar_mul_8_16): Fix white-space.
12413 (Is_d_reg): Add V4HF and V8HF.
12414 * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
12415 (neon_vdup_lane<mode>): New.
12416 (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
12417 (*neon_vtrn<mode>_insn): Likewise.
12418 (neon_vzip<mode>_internal): Likewise. Also fix white-space.
12419 (*neon_vzip<mode>_insn): Likewise
12420 (neon_vuzp<mode>_internal): Likewise.
12421 (*neon_vuzp<mode>_insn): Likewise
12422 * config/arm/vec-common.md (vec_perm_const<mode>): New.
12423
12424 2016-09-23 Jiong Wang <jiong.wang@arm.com>
12425 Matthew Wahab <matthew.wahab@arm.com>
12426
12427 * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
12428 (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
12429 * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
12430 available. Also fix some white-space.
12431 * config/arm/vfp.md (*arm_movhi_vfp): New.
12432 (*thumb2_movhi_vfp): New.
12433
12434 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12435
12436 * config/arm/arm-c.c (arm_cpu_builtins): Define
12437 "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
12438 "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
12439
12440 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12441
12442 * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
12443 arm_v8_1a_neon_ok. Add entries for arm_v8_2a_fp16_scalar_ok,
12444 arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
12445 arm_v8_2a_fp16_neon_hw.
12446 (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
12447 arm_v8_2a_neon.
12448
12449 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12450
12451 * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
12452 arm_fp16_alternative_ok and arm_fp16_none_ok.
12453
12454 2016-09-23 Martin Liska <mliska@suse.cz>
12455
12456 * ipa-icf.c (sem_variable::merge): Replace adress with address.
12457
12458 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12459
12460 * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
12461 ("armv8.2-a"): New.
12462 ("armv8.2-a+fp16"): New.
12463 * config/arm/arm-protos.h (FL2_ARCH8_2): New.
12464 (FL2_FP16INST): New.
12465 (FL2_FOR_ARCH8_2A): New.
12466 * config/arm/arm-tables.opt: Regenerate.
12467 * config/arm/arm.c (arm_arch8_2): New.
12468 (arm_fp16_inst): New.
12469 (arm_option_override): Set arm_arch8_2 and arm_fp16_inst. Check
12470 for incompatible fp16-format settings.
12471 * config/arm/arm.h (TARGET_VFP_FP16INST): New.
12472 (TARGET_NEON_FP16INST): New.
12473 (arm_arch8_2): Declare.
12474 (arm_fp16_inst): Declare.
12475 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
12476 march=armv8.2-a and march=armv8.2-a+fp16.
12477 * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
12478 and armv8.2-a+fp16.
12479 * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
12480 "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
12481
12482 2016-09-23 Martin Liska <mliska@suse.cz>
12483
12484 * doc/extend.texi: Remove fused-madd from i386 target options.
12485
12486 2016-09-23 Martin Liska <mliska@suse.cz>
12487
12488 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
12489 Handle movbe.
12490
12491 2016-09-23 Martin Liska <mliska@suse.cz>
12492
12493 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
12494 Handle crc32.
12495
12496 2016-09-23 Martin Liska <mliska@suse.cz>
12497
12498 PR target/71652
12499 * config/i386/i386.c (ix86_option_override_internal): Change
12500 signature and return false when there's an error related to
12501 arch string.
12502 (release_options_strings): New function.
12503 (ix86_valid_target_attribute_tree): Call the function.
12504
12505 2016-09-23 Jakub Jelinek <jakub@redhat.com>
12506
12507 * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
12508 instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
12509 (gen_hsa_ctor_assignment): Likewise.
12510 * print-tree.c (print_node): Likewise.
12511 * tree-dump.c (dequeue_and_dump): Likewise.
12512 * tree-sra.c (sra_modify_constructor_assign): Likewise.
12513 * expr.c (store_constructor): Likewise.
12514 * fold-const.c (operand_equal_p): Likewise.
12515 * tree-pretty-print.c (dump_generic_node): Likewise.
12516 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
12517 * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
12518
12519 2016-09-23 Richard Biener <rguenther@suse.de>
12520
12521 * hooks.h (hook_uint_uintp_false): Declare.
12522
12523 2016-09-22 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12524
12525 * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
12526 (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
12527
12528 2016-09-22 Martin Sebor <msebor@redhat.com>
12529
12530 PR target/77676
12531 * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
12532 HOST_BITS_PER_WIDE_INT, make a static local variable auto.
12533 (target_int_min): Correct computation.
12534 (format_integer): Use long long as the argument for the ll length
12535 modifier.
12536 (format_floating): Use target_int_max().
12537 (get_string_length): Same.
12538 (format_string): Avoid setting the bounded flag for strings
12539 of unknown length.
12540 (try_substitute_return_value): Avoid setting range info when
12541 the result isn't bounded.
12542 * varasm.c (assemble_name): Increase buffer size.
12543
12544 2016-09-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
12545 Terry Guo <terry.guo@arm.com>
12546
12547 * target.def (elf_flags_numeric): New target hook.
12548 * targhooks.h (default_asm_elf_flags_numeric): New.
12549 * varasm.c (default_asm_elf_flags_numeric): New.
12550 (default_elf_asm_named_section): Use new target hook.
12551 * config/arm/arm.opt (mpure-code): New.
12552 * config/arm/arm.h (SECTION_ARM_PURECODE): New.
12553 * config/arm/arm.c (arm_asm_init_sections): Add section
12554 attribute to default text section if -mpure-code.
12555 (arm_option_check_internal): Diagnose use of option with
12556 non supported targets and/or options.
12557 (arm_asm_elf_flags_numeric): New.
12558 (arm_function_section): New.
12559 (arm_elf_section_type_flags): New.
12560 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
12561 for -mpure-code.
12562 * doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
12563 * doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
12564
12565 2016-09-22 Jan Hubicka <hubicka@ucw.cz>
12566
12567 * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
12568
12569 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12570
12571 * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
12572 * rtl.h: Adjust prototype.
12573
12574 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12575
12576 * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
12577 (prev_active_insn): Likewise.
12578 (active_insn_p): Likewise.
12579 * rtl.h: Adjust prototypes.
12580 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
12581 * config/arc/arc.md: Likewise.
12582 * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
12583 (branch_needs_nop_p): Likewise.
12584 (use_skip_p): Likewise.
12585 * config/sh/sh.c (gen_block_redirect): Likewise.
12586 (split_branches): Likewise.
12587 * reorg.c (optimize_skip): Likewise.
12588 (fill_simple_delay_slots): Likewise.
12589 (fill_slots_from_thread): Likewise.
12590 (relax_delay_slots): Likewise.
12591 * resource.c (mark_target_live_regs): Likewise.
12592
12593 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12594
12595 * config/cris/cris.c (cris_asm_output_case_end): Change argument
12596 type to rtx_insn *.
12597 * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
12598 (prev_nonnote_nondebug_insn): Likewise.
12599 * config/cris/cris-protos.h: Adjust prototype.
12600 * rtl.h: Likewise.
12601 * jump.c (rtx_renumbered_equal_p): Adjust.
12602
12603 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12604
12605 * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
12606 * rtl.h: Adjust prototype.
12607 * config/sh/sh.md: Adjust.
12608 * dwarf2out.c (add_var_loc_to_decl): Likewise.
12609
12610 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12611
12612 * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
12613 (prev_nondebug_insn): Likewise.
12614 * loop-doloop.c (doloop_condition_get): Likewise.
12615 * rtl.h: Adjust prototype.
12616 * cfgloop.h: Likewise.
12617
12618 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12619
12620 * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
12621 (prev_nonnote_insn): Likewise.
12622 * jump.c (reversed_comparison_code_parts): Likewise.
12623 (reversed_comparison): Likewise.
12624 * rtl.h: Adjust prototypes.
12625 * config/arc/arc.md: Adjust.
12626 * cse.c (find_comparison_args): Likewise.
12627 * reorg.c (redundant_insn): Change return type to rtx_insn *.
12628 (fix_reg_dead_note): Change argument type to rtx_insn *.
12629 (delete_prior_computation): Likewise.
12630 (delete_computation): Likewise.
12631 (fill_slots_from_thread): Adjust.
12632 (relax_delay_slots): Likewise.
12633 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
12634 (simplify_relational_operation_1): Likewise.
12635 (simplify_ternary_operation): Likewise.
12636
12637 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12638
12639 * config/arc/arc-protos.h (arc_label_align): Change type of
12640 variables from rtx to rtx_insn *.
12641 * config/arc/arc.c (arc_label_align): Likewise.
12642 * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
12643 * config/bfin/bfin.c (workaround_speculation): Likewise.
12644 * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
12645 (find_last_same_clock): Likewise.
12646 (reorg_split_calls): Likewise.
12647 * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
12648 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
12649 * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
12650 (same_cmp_following_p): Likewise.
12651 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
12652 (same_cmp_following_p): Likwise.
12653 * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
12654 * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
12655 * config/nds32/nds32.c (nds32_target_alignment): Likewise.
12656 * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
12657 (rl78_alloc_physical_registers_cmp): Likewise.
12658 (rl78_alloc_physical_registers_umul): Likewise.
12659 (rl78_calculate_death_notes): Likewise.
12660 * config/s390/s390-protos.h (s390_label_align): Likewise.
12661 * config/s390/s390.c (s390_label_align): Likewise.
12662 * config/sh/sh.c (barrier_align): Likewise.
12663 * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
12664 * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
12665 (emit_cbcond_nop): Likewise.
12666
12667 2016-09-22 Martin Liska <mliska@suse.cz>
12668
12669 PR ipa/77653
12670 * ipa-icf.c (sem_variable::merge): Yield merge operation if
12671 alias address matters, not necessarily address of original.
12672
12673 2016-09-22 Richard Biener <rguenther@suse.de>
12674
12675 PR middle-end/77697
12676 * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
12677 fold fails.
12678
12679 2016-09-22 Richard Biener <rguenther@suse.de>
12680
12681 PR middle-end/77677
12682 * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
12683 from constant folding results.
12684 (gimple_resimplify2): Likewise.
12685 (gimple_resimplify3): Likewise.
12686
12687 2016-09-22 Richard Biener <rguenther@suse.de>
12688
12689 PR middle-end/77678
12690 * expr.c (expand_expr_real_1): Guard array access against negative
12691 offset.
12692
12693 2016-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12694
12695 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
12696 of MPFR_RNDN.
12697 (format_floating): Likewise.
12698
12699 2016-09-22 Jakub Jelinek <jakub@redhat.com>
12700
12701 PR fortran/77665
12702 * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
12703 for all IFN_GOMP_SIMD_* internal fns, not just for
12704 IFN_GOMP_SIMD_ORDERED_*.
12705
12706 2016-09-21 Michael Meissner <meissner@linux.vnet.ibm.com>
12707
12708 PR target/77670
12709 * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
12710 New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
12711 instructions when you want to invert the test.
12712 * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
12713 correct order for XXSEL.
12714 (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
12715 for using XSCMP{EQ,GT,GE}DP.
12716
12717 2016-09-21 David Malcolm <dmalcolm@redhat.com>
12718
12719 * genconstants.c (main): Introduce noop_reader and convert call
12720 to read_md_files to a method call.
12721 * genenums.c (main): Likewise.
12722 * genmddeps.c (main): Likewise.
12723 * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
12724 rtx_reader_ptr->get_top_level_filename ().
12725 (write_tm_preds_h): Likewise.
12726 (write_insn_preds_c): Likewise.
12727 * gensupport.c (class gen_reader): New subclass of rtx_reader.
12728 (rtx_handle_directive): Convert to...
12729 (gen_reader::handle_unknown_directive): ...this.
12730 (init_rtx_reader_args_cb): Convert return type from bool to
12731 rtx_reader *. Create a gen_reader instance, using it for the
12732 call to read_md_files. Return it if no errors occur.
12733 (init_rtx_reader_args): Convert return type from bool to
12734 rtx_reader *.
12735 * gensupport.h (init_rtx_reader_args_cb): Likewise.
12736 (init_rtx_reader_args_cb): Likewise.
12737 * read-md.c (struct file_name_list): Move to class rtx_reader.
12738 (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
12739 (read_md_filename): Delete in favor of
12740 rtx_reader::m_read_md_filename.
12741 (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
12742 (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
12743 (base_dir): Delete in favor of rtx_reader::m_base_dir.
12744 (first_dir_md_include): Delete in favor of
12745 rtx_reader::m_first_dir_md_include.
12746 (last_dir_md_include_ptr): Delete in favor of
12747 rtx_reader::m_last_dir_md_include_ptr.
12748 (max_include_len): Delete.
12749 (rtx_reader_ptr): New.
12750 (fatal_with_file_and_line): Use get_filename and get_lineno
12751 accessors of rtx_reader_ptr.
12752 (require_char_ws): Likewise.
12753 (rtx_reader::read_char): New method, based on ::read_char.
12754 (rtx_reader::unread_char): New method, based on ::unread_char.
12755 (read_escape): Use get_filename and get_lineno accessors of
12756 rtx_reader_ptr.
12757 (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
12758 (read_string): Use get_filename and get_lineno accessors of
12759 rtx_reader_ptr.
12760 (rtx_reader::rtx_reader): New ctor.
12761 (rtx_reader::~rtx_reader): New dtor.
12762 (handle_include): Convert from a function to...
12763 (rtx_reader::handle_include): ...this method, converting
12764 handle_directive from a callback to a virtual function.
12765 (handle_file): Likewise, converting to...
12766 (rtx_reader::handle_file): ...this method.
12767 (handle_toplevel_file): Likewise, converting to...
12768 (rtx_reader::handle_toplevel_file): ...this method.
12769 (rtx_reader::get_current_location): New method.
12770 (parse_include): Convert from a function to...
12771 (rtx_reader::add_include_path): ...this method, dropping redundant
12772 update to unused max_include_len.
12773 (read_md_files): Convert from a function to...
12774 (rtx_reader::read_md_files): ...this method, converting
12775 handle_directive from a callback to a virtual function.
12776 (noop_reader::handle_unknown_directive): New method.
12777 * read-md.h (directive_handler_t): Delete this typedef.
12778 (in_fname): Delete.
12779 (read_md_file): Delete.
12780 (read_md_lineno): Delete.
12781 (read_md_filename): Delete.
12782 (class rtx_reader): New class.
12783 (rtx_reader_ptr): New decl.
12784 (class noop_reader): New subclass of rtx_reader.
12785 (read_char): Reimplement in terms of rtx_reader::read_char.
12786 (unread_char): Reimplement in terms of rtx_reader::unread_char.
12787 (read_md_files): Delete.
12788 * read-rtl.c (read_rtx_code): Update for deletion of globals
12789 read_md_filename and read_md_lineno.
12790
12791 2016-09-21 Jason Merrill <jason@redhat.com>
12792
12793 * input.h (from_macro_definition_at): New.
12794
12795 2016-09-21 Segher Boessenkool <segher@kernel.crashing.org>
12796
12797 * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
12798
12799 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
12800
12801 PR tree-optimization/77550
12802 * tree-vect-stmts.c (create_array_ref): Change parameters.
12803 (get_group_alias_ptr_type): New function.
12804 (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
12805
12806 2016-09-21 Marek Polacek <polacek@redhat.com>
12807
12808 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
12809 Add falls through comment.
12810
12811 2016-09-21 Richard Biener <rguenther@suse.de>
12812
12813 * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
12814 (replace_child): Likewise.
12815 (remove_child_TAG): Adjust.
12816 (move_marked_base_types): Likewise.
12817 (prune_unused_types_prune): Clear die_sib of removed children.
12818
12819 2016-09-21 Georg-Johann Lay <avr@gjlay.de>
12820
12821 PR target/77326
12822 * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
12823 touches some regs mentioned in cc_status, do CC_STATUS_INIT.
12824
12825 2016-09-21 Richard Biener <rguenther@suse.de>
12826
12827 PR tree-optimization/77648
12828 * tree-ssa-structalias.c (process_constraint): Handle all DEREF
12829 with complex RHS.
12830 (make_transitive_closure_constraints): Adjust comment.
12831 (make_any_offset_constraints): New function.
12832 (handle_rhs_call): Make sure to first expand a pointer to all
12833 subfields before transitively closing it.
12834 (handle_const_call): Likewise. Properly expand returned
12835 pointers as well.
12836 (handle_pure_call): Likewise.
12837
12838 2016-09-21 Richard Biener <rguenther@suse.de>
12839 Jakub Jelinek <jakub@redhat.com>
12840
12841 PR tree-optimization/77621
12842 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
12843 group at non-vectorizable stmts.
12844
12845 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
12846
12847 PR tree-optimization/72835
12848 * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
12849 (make_new_ssa_for_all_defs): Likewise.
12850 (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
12851
12852 2016-09-20 Martin Sebor <msebor@redhat.com>
12853
12854 PR middle-end/49905
12855 * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
12856 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
12857 * config/linux.c (gnu_libc_printf_pointer_format): New function.
12858 * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
12859 * config/sol2.c (solaris_printf_pointer_format): New function.
12860 * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
12861 options.
12862 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
12863 * doc/tm.texi: Regenerate.
12864 * gimple-fold.h (get_range_strlen): New function.
12865 (get_maxval_strlen): Declare existing function.
12866 * gimple-fold.c (get_range_strlen): Add arguments and compute both
12867 maximum and minimum.
12868 (get_range_strlen): Define overload.
12869 (get_maxval_strlen): Adjust.
12870 * gimple-ssa-sprintf.c: New file and pass.
12871 * passes.def (pass_sprintf_length): Add new pass.
12872 * targhooks.h (default_printf_pointer_format): Declare new function.
12873 (gnu_libc_printf_pointer_format): Same.
12874 (solaris_libc_printf_pointer_format): Same.
12875 * targhooks.c (default_printf_pointer_format): Define new function.
12876 * tree-pass.h (make_pass_sprintf_length): Declare new function.
12877 * print-tree.c: Increase buffer size.
12878
12879 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
12880
12881 * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
12882
12883 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
12884
12885 * common.opt: New option -fipa-vrp.
12886 * ipa-cp.c (ipa_get_vr_lat): New.
12887 (ipcp_vr_lattice::print): Likewise.
12888 (print_all_lattices): Call ipcp_vr_lattice::print.
12889 (ipcp_vr_lattice::meet_with): New.
12890 (ipcp_vr_lattice::meet_with_1): Likewise.
12891 (ipcp_vr_lattice::top_p): Likewise.
12892 (ipcp_vr_lattice::bottom_p): Likewsie.
12893 (ipcp_vr_lattice::set_to_bottom): Likewise.
12894 (set_all_contains_variable): Call VR set_to_bottom.
12895 (initialize_node_lattices): Init VR lattices.
12896 (propagate_vr_accross_jump_function): New.
12897 (propagate_constants_accross_call): Call
12898 propagate_vr_accross_jump_function.
12899 (ipcp_store_vr_results): New.
12900 (ipcp_driver): Handle VR.
12901 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
12902 (ipa_set_jf_unknown): Likewise.
12903 (ipa_compute_jump_functions_for_edge): Likewise.
12904 (ipa_node_params_t::duplicate): Likewise.
12905 (ipa_write_jump_function): Likewise.
12906 (ipa_read_jump_function): Likewise.
12907 (write_ipcp_transformation_info): Likewise.
12908 (read_ipcp_transformation_info): Likewise.
12909 (ipcp_update_vr): New.
12910 (ipcp_transform_function): Handle VR.
12911 * ipa-prop.h (struct ipa_vr): New.
12912 * cgraph.c: Include tree-vrp.h.
12913 * cgraphunit.c: Likewise.
12914 * ipa-utils.c: Likewise.
12915 * ipa.c: Likewise.
12916 * opts.c: Likewise.
12917 * toplev.c: Likewise.
12918 * ipa-devirt.c: Likewise.
12919 * ipa-inline-transform.c: Likewise.
12920 * ipa-inline.c: Likewise.
12921 * ipa-profile.c: Likewise.
12922
12923 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
12924
12925 * doc/invoke.texi: Document -fdump-tree-evrp.
12926 * passes.def: Define new pass_early_vrp.
12927 * timevar.def: Define new TV_TREE_EARLY_VRP.
12928 * tree-pass.h (make_pass_early_vrp): New.
12929 * tree-ssa-propagate.c: Make replace_uses_in non static.
12930 * tree-ssa-propagate.h: Export replace_uses_in.
12931 * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
12932 (extract_range_from_assert): Factor out
12933 extract_range_for_var_from_comparison_expr.
12934 (vrp_initialize_lattice): New.
12935 (vrp_initialize): Factor out vrp_initialize_lattice.
12936 (vrp_valueize): Fix it to reject complex value ranges.
12937 (vrp_free_lattice): New.
12938 (evrp_dom_walker::before_dom_children): Likewise.
12939 (evrp_dom_walker::after_dom_children): Likewise.
12940 (evrp_dom_walker::push_value_range): Likewise.
12941 (evrp_dom_walker::pop_value_range): Likewise.
12942 (execute_early_vrp): Likewise.
12943 (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
12944 (make_pass_early_vrp): New.
12945
12946 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
12947
12948 * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
12949 instead of exact_log2.
12950
12951 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
12952
12953 PR target/77621
12954 * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
12955 Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
12956 (ix86_add_stmt_cost): Penalize DFmode vector operations
12957 for !TARGET_VECTORIZE_DOUBLE.
12958
12959 2016-09-20 Gerald Pfeifer <gerald@pfeifer.com>
12960
12961 * doc/invoke.texi (Warning Options): Simplify language.
12962 (Optimize Options): Complete sentence.
12963
12964 2016-09-20 David Edelsohn <dje.gcc@gmail.com>
12965
12966 * dbxout.c (xcoff_debug_hooks): Add filename parameter to
12967 early_finish hook.
12968
12969 2016-09-20 Michael Meissner <meissner@linux.vnet.ibm.com>
12970
12971 PR target/71395
12972 * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
12973 inits on power8 and above, use the VMRGEW instruction instead of a
12974 permute.
12975
12976 * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
12977 (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
12978 initialization.
12979
12980 2016-09-20 Tamar Christina <tamar.christina@arm.com>
12981
12982 * config/aarch64/arm_neon.h
12983 (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
12984 (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
12985 (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
12986
12987 2016-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
12988
12989 * config/var/vax.h (ELIMINABLE_REGS): Define.
12990 (INITIAL_ELIMINATION_OFFSET): Define.
12991
12992 2016-09-20 Jakub Jelinek <jakub@redhat.com>
12993
12994 PR middle-end/77624
12995 * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
12996 cast to void * if the cast is from some other pointer type.
12997
12998 2016-09-20 Richard Biener <rguenther@suse.de>
12999
13000 PR tree-optimization/77646
13001 * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
13002 a VDEF.
13003
13004 2016-09-20 Tamar Christina <tamar.christina@arm.com>
13005
13006 * config/aarch64/arm_neon.h: Add gnu_inline and artificial
13007 attributes to all inlined functions and make them extern.
13008
13009 2016-09-20 Richard Biener <rguenther@suse.de>
13010
13011 * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
13012 hook.
13013 * debug.c (do_nothing_debug_hooks): Adjust.
13014 * dbxout.c (dbx_debug_hooks): Likewise.
13015 * sdbout.c (sdb_debug_hooks): Likewise.
13016 * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
13017 (dwarf2out_finish): Move producer, filename and
13018 path annotation ...
13019 (dwarf2out_early_finish): ... here. Remove in_lto_p special-casing.
13020 * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
13021
13022 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
13023
13024 PR c++/77434
13025 * doc/invoke.texi: Document -Wint-in-bool-context.
13026
13027 PR middle-end/77421
13028 * dwarf2out.c (output_loc_operands): Fix an assertion.
13029
13030 2016-09-19 Joseph Myers <joseph@codesourcery.com>
13031
13032 * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
13033 (CR_DECIMAL_DIG): New macro.
13034
13035 2016-09-19 Joseph Myers <joseph@codesourcery.com>
13036
13037 * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
13038 element.
13039
13040 2016-09-19 Vladimir Makarov <vmakarov@redhat.com>
13041
13042 PR rtl-optimization/77416
13043 * lra-remat.c (operand_to_remat): Process hard coded insn
13044 registers.
13045
13046 2016-09-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13047
13048 * simplify-rtx.c (simplify_relational_operation_1): Add transformation
13049 (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
13050
13051 2016-09-19 Segher Boessenkool <segher@kernel.crashing.org>
13052
13053 * target.def (lra_p): Wordsmithing.
13054 * doc/tm.texi: Regenerate.
13055
13056 2016-09-19 Jakub Jelinek <jakub@redhat.com>
13057 Jan Hubicka <jh@suse.cz>
13058
13059 PR target/77587
13060 * cgraph.c (cgraph_node::rtl_info): Pass &avail to
13061 ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
13062 Call ultimate_alias_target just once, not up to 4 times.
13063
13064 2016-09-19 Richard Biener <rguenther@suse.de>
13065
13066 * dwarf2out.c (early_dwarf_finished): New global.
13067 (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
13068 is false.
13069 (dwarf2out_early_finish): Set early_dwarf_finished at the end,
13070 if called from LTO exit early.
13071 (dwarf2out_late_global_decl): When being during the early
13072 debug phase do not add locations but only const value attributes.
13073 Adjust the way we generate early DIEs for LTO.
13074
13075 2016-09-19 Richard Biener <rguenther@suse.de>
13076
13077 PR middle-end/77605
13078 * tree-data-ref.c (analyze_subscript_affine_affine): Use the
13079 proper niter to bound the loops.
13080
13081 2016-09-19 Richard Biener <rguenther@suse.de>
13082
13083 PR tree-optimization/77514
13084 * tree-ssa-pre.c (create_expression_by_pieces): Optimize
13085 search for folded stmt.
13086
13087 2016-09-17 Jan Hubicka <hubicka@ucw.cz>
13088
13089 * passes.def (pass_early_thread_jumps): Schedule after forwprop.
13090 * tree-pass.h (make_pass_early_thread_jumps): Declare.
13091 * tree-ssa-threadbackward.c (fsm_find_thread_path,
13092 fsm_find_thread_path, profitable_jump_thread_path,
13093 fsm_find_control_statement_thread_paths,
13094 find_jump_threads_backwards): Add speed_p parameter.
13095 (pass_data_early_thread_jumps): New pass.
13096 (make_pass_early_thread_jumps): New function.
13097
13098 2016-09-17 Andreas Schwab <schwab@suse.de>
13099
13100 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
13101 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
13102
13103 2016-09-16 Eric Botcazou <ebotcazou@adacore.com>
13104
13105 * recog.c (rest_of_handle_split_after_reload): Delete.
13106 (pass_split_after_reload::gate): New method.
13107 (pass_split_after_reload::execute): Call split_all_insns directly.
13108
13109 2016-09-16 Jonathan Wakely <jwakely@redhat.com>
13110
13111 * doc/extend.texi (Integer Overflow Builtins): Fix type of out
13112 parameters for functions taking long long arguments.
13113
13114 2016-09-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13115
13116 PR target/77613
13117 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
13118 splat with truncate.
13119
13120 2016-09-16 Jason Merrill <jason@redhat.com>
13121
13122 * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
13123 New.
13124 * hwint.c (exact_log2): Use pow2p_hwi.
13125 (ctz_hwi, ffs_hwi): Use least_bit_hwi.
13126 * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
13127 * builtins.c (get_object_alignment_2, get_object_alignment)
13128 (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
13129 least_bit_hwi.
13130 * calls.c (compute_argument_addresses, store_one_arg): Use
13131 least_bit_hwi.
13132 * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
13133 * combine.c (force_to_mode): Use least_bit_hwi.
13134 (contains_muldiv, find_split_point, combine_simplify_rtx)
13135 (simplify_if_then_else, simplify_set, force_to_mode)
13136 (if_then_else_cond, simplify_and_const_int_1)
13137 (simplify_compare_const): Use pow2p_hwi.
13138 * cse.c (fold_rtx): Use pow2p_hwi.
13139 * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
13140 Use least_bit_hwi.
13141 * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
13142 (init_expmed_one_conv): Use pow2p_hwi.
13143 * expr.c (is_aligning_offset): Use pow2p_hwi.
13144 * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
13145 (fold_binary_loc): Use pow2p_hwi.
13146 * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
13147 * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
13148 * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
13149 * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
13150 Use least_bit_hwi.
13151 * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
13152 * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
13153 * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
13154 * omp-low.c (oacc_loop_fixed_partitions)
13155 (oacc_loop_auto_partitions): Use least_bit_hwi.
13156 * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
13157 * stor-layout.c (place_field): Use least_bit_hwi.
13158 * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
13159 * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
13160 * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
13161 * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
13162 * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
13163 * tree-vect-data-refs.c (vect_analyze_group_access_1)
13164 (vect_grouped_store_supported, vect_grouped_load_supported)
13165 (vect_permute_load_chain, vect_shift_permute_load_chain)
13166 (vect_transform_grouped_load): Use pow2p_hwi.
13167 * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
13168 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
13169 * tree-vect-stmts.c (vectorizable_mask_load_store): Use
13170 least_bit_hwi.
13171 * tsan.c (instrument_expr): Use least_bit_hwi.
13172 * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
13173
13174 2016-09-16 Andreas Schwab <schwab@suse.de>
13175
13176 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
13177 OFFSET, not offset.
13178 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
13179
13180 2016-09-16 Jakub Jelinek <jakub@redhat.com>
13181
13182 PR target/77526
13183 * combine.c (rest_of_handle_combine): If any edges have been purged,
13184 free dominators if available.
13185
13186 2016-09-16 Jakub Jelinek <jakub@redhat.com>
13187 Eric Botcazou <ebotcazou@adacore.com>
13188
13189 PR middle-end/77594
13190 * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
13191 through into expand_addsub_overflow after expand_neg_overflow.
13192
13193 2016-09-15 David Malcolm <dmalcolm@redhat.com>
13194
13195 * diagnostic-show-locus.c
13196 (selftest::test_fixit_insert_containing_newline): New function.
13197 (selftest::test_fixit_replace_containing_newline): New function.
13198 (selftest::diagnostic_show_locus_c_tests): Call the above.
13199
13200 2016-09-15 Bin Cheng <bin.cheng@arm.com>
13201
13202 PR tree-optimization/77503
13203 * tree-vect-loop.c (vectorizable_reduction): Record reduction
13204 code for CONST_COND_REDUCTION at analysis stage and use it at
13205 transform stage.
13206 * tree-vectorizer.h (struct _stmt_vec_info): New field.
13207 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
13208 * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
13209 field.
13210
13211 2016-09-15 Richard Biener <rguenther@suse.de>
13212
13213 PR middle-end/77544
13214 * fold-const.c (split_tree): Do not split constant ~X.
13215
13216 2016-09-15 Jakub Jelinek <jakub@redhat.com>
13217
13218 PR rtl-optimization/77425
13219 * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
13220 is NULL.
13221
13222 PR middle-end/77475
13223 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
13224 use %qs instead of %s where desirable, use argument instead of arg in
13225 the diagnostic wording, add list of supported strategies and
13226 spellcheck hint.
13227 (ix86_option_override_internal): Emit target("m...") instead of
13228 option("m...") in the diagnostic. Use %qs instead of %s in invalid
13229 -march/-mtune option diagnostic. Add list of supported arches/tunings
13230 and spellcheck hint. Remove prefix, suffix and sw variables, use
13231 main_args_p ? "..." : "..." in diagnostics to make translation
13232 possible.
13233
13234 2016-09-15 Richard Biener <rguenther@suse.de>
13235
13236 * dwarf2asm.h (dw2_asm_output_offset): Add overload with
13237 extra offset argument.
13238 * dwarf2asm.c (dw2_asm_output_offset): Implement that.
13239 * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
13240 to reflect new offset parameter.
13241 * doc/tm.texi: Regenerate.
13242 * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
13243 * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
13244 offset argument.
13245 (darwin_asm_output_dwarf_offset): Likewise.
13246 * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
13247 argument.
13248 (darwin_asm_output_dwarf_offset): Pass offset argument through.
13249 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
13250 * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
13251
13252 2016-09-15 Chung-Lin Tang <cltang@codesourcery.com>
13253
13254 PR fortran/72743
13255 * ipa-icf.c (set_alias_uids): New function.
13256 (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
13257 all the merged variable's referring aliases.
13258
13259 2016-09-15 Richard Biener <rguenther@suse.de>
13260
13261 PR tree-optimization/77514
13262 * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
13263 only forced_stmts sequence.
13264
13265 2016-09-15 Kugan Vivekanandarajah <kuganv@linaro.org>
13266
13267 * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
13268 * cfgexpand.c (update_alias_info_with_stack_vars): Use
13269 FOR_EACH_SSA_NAME to iterate over SSA variables.
13270 (pass_expand::execute): Likewise.
13271 * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
13272 * tree-cfg.c (dump_function_to_file): Likewise.
13273 * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
13274 (update_ssa): Likewise.
13275 * tree-ssa-alias.c (dump_alias_info): Likewise.
13276 * tree-ssa-ccp.c (ccp_finalize): Likewise.
13277 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
13278 (create_outofssa_var_map): Likewise.
13279 (coalesce_ssa_name): Likewise.
13280 * tree-ssa-operands.c (dump_immediate_uses): Likewise.
13281 * tree-ssa-pre.c (compute_avail): Likewise.
13282 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
13283 (scc_vn_restore_ssa_info): Likewise.
13284 (free_scc_vn): Likwise.
13285 (run_scc_vn): Likewise.
13286 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
13287 * tree-ssa-ter.c (new_temp_expr_table): Likewise.
13288 * tree-ssa-copy.c (fini_copy_prop): Likewise.
13289 * tree-ssa.c (verify_ssa): Likewise.
13290
13291 2016-09-14 Matthew Fortune <matthew.fortune@imgtec.com>
13292
13293 * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
13294 and mips64r2 as default 32-bit and 64-bit architectures.
13295 (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
13296 as default 32-bit and 64-bit architectures.
13297
13298 2016-09-14 Pat Haugen <pthaugen@us.ibm.com>
13299
13300 * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
13301 of succ edge.
13302
13303 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
13304
13305 * target.def (lra_p): Change commentary (for the manual) for the
13306 new default.
13307 * doc/tm.texi: Regenerate.
13308
13309 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
13310
13311 * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
13312 * config/arm/arm.c (TARGET_LRA_P): Delete macro.
13313 * config/i386/i386.c (TARGET_LRA_P): Delete macro.
13314 * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
13315
13316 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
13317
13318 * targhooks.c (default_lra_p): Return true instead of false.
13319
13320 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
13321
13322 * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
13323 hook_bool_void_false.
13324 * config/avr/avr.c: Ditto.
13325 * config/bfin/bfin.c: Ditto.
13326 * config/c6x/c6x.c: Ditto.
13327 * config/cr16/cr16.c: Ditto.
13328 * config/cris/cris.c: Ditto.
13329 * config/epiphany/epiphany.c: Ditto.
13330 * config/fr30/fr30.c: Ditto.
13331 * config/frv/frv.c: Ditto.
13332 * config/h8300/h8300.c: Ditto.
13333 * config/ia64/ia64.c: Ditto.
13334 * config/iq2000/iq2000.c: Ditto.
13335 * config/lm32/lm32.c: Ditto.
13336 * config/m32c/m32c.c: Ditto.
13337 * config/m32r/m32r.c: Ditto.
13338 * config/m68k/m68k.c: Ditto.
13339 * config/mcore/mcore.c: Ditto.
13340 * config/microblaze/microblaze.c: Ditto.
13341 * config/mmix/mmix.c: Ditto.
13342 * config/mn10300/mn10300.c: Ditto.
13343 * config/moxie/moxie.c: Ditto.
13344 * config/msp430/msp430.c: Ditto.
13345 * config/nios2/nios2.c: Ditto.
13346 * config/nvptx/nvptx.c: Ditto.
13347 * config/pa/pa.c: Ditto.
13348 * config/pdp11/pdp11.c: Ditto.
13349 * config/rl78/rl78.c: Ditto.
13350 * config/sparc/sparc.c: Ditto.
13351 * config/spu/spu.c: Ditto.
13352 * config/stormy16/stormy16.c: Ditto.
13353 * config/tilegx/tilegx.c: Ditto.
13354 * config/tilepro/tilepro.c: Ditto.
13355 * config/v850/v850.c: Ditto.
13356 * config/vax/vax.c: Ditto.
13357 * config/visium/visium.c: Ditto.
13358 * config/xtensa/xtensa.c: Ditto.
13359
13360 2016-09-14 Jakub Jelinek <jakub@redhat.com>
13361
13362 PR sanitizer/68260
13363 * tsan.c: Include target.h.
13364 (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
13365 (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
13366 (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
13367 BUILT_IN_ATOMIC_TEST_AND_SET entries.
13368 (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
13369
13370 2016-09-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13371 Martin Liska <mliska@suse.cz>
13372
13373 PR middle-end/77574
13374 * predict.c (force_edge_cold): Add braces to a condition.
13375
13376 2016-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
13377
13378 PR rtl-optimization/77289
13379 * lra-constraints.c (get_final_hard_regno): Removed.
13380 (get_hard_regno): Add new parameter final_p.
13381 (get_reg_class): Directly call lra_get_elimination_hard_regno.
13382 (operands_match_p): Adjust call to get_hard_regno.
13383 (uses_hard_regs_p): Likewise.
13384 (process_alt_operands): Likewise.
13385
13386 2016-09-13 Joe Seymour <joe.s@somniumtech.com>
13387
13388 PR target/70713
13389 * config/msp430/msp430.c (msp430_start_function): Emit an error
13390 if a function is both weak and specifies an interrupt number.
13391
13392 2016-09-13 Jakub Jelinek <jakub@redhat.com>
13393
13394 PR tree-optimization/77454
13395 * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
13396 changing GIMPLE_COND. Move update_stmt_if_modified call after this.
13397 Formatting fix.
13398
13399 2016-09-13 Tamar Christina <tamar.christina@arm.com>
13400
13401 * config/aarch64/aarch64-builtins.c
13402 (aarch64_init_simd_builtins): Fix builtin type signature printing.
13403
13404 2016-09-13 Uros Bizjak <ubizjak@gmail.com>
13405
13406 * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
13407 SFmode and SCmode arguments by reference.
13408
13409 2016-09-13 David Malcolm <dmalcolm@redhat.com>
13410
13411 * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
13412 Rename to...
13413 (selftest::test_one_liner_fixit_insert_before): ...this, and update
13414 for renaming of add_fixit_insert to add_fixit_insert_before.
13415 (selftest::test_one_liner_fixit_insert_after): New function.
13416 (selftest::test_one_liner_fixit_validation_adhoc_locations):
13417 Update for renaming of add_fixit_insert to add_fixit_insert_before.
13418 (selftest::test_one_liner_many_fixits): Likewise.
13419 (selftest::test_diagnostic_show_locus_one_liner): Update for
13420 renaming, call new test function.
13421 (selftest::test_diagnostic_show_locus_fixit_lines): Update for
13422 renaming of add_fixit_insert to add_fixit_insert_before.
13423 (selftest::test_fixit_consolidation): Likewise.
13424 * diagnostic.c (selftest::test_print_parseable_fixits_insert):
13425 Likewise.
13426 * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
13427 (selftest::test_applying_fixits_insert_before): ...this.
13428 (selftest::test_applying_fixits_insert): Update for renaming of
13429 add_fixit_insert to add_fixit_insert_before.
13430 (selftest::test_applying_fixits_insert_after): New function.
13431 (selftest::test_applying_fixits_insert_after_at_line_end): New
13432 function.
13433 (selftest::test_applying_fixits_insert_after_failure): New function.
13434 (selftest::test_applying_fixits_multiple): Update for renaming of
13435 add_fixit_insert to add_fixit_insert_before.
13436 (selftest::change_line): Likewise.
13437 (selftest::test_applying_fixits_unreadable_file): Likewise.
13438 (selftest::test_applying_fixits_line_out_of_range): Likewise.
13439 (selftest::test_applying_fixits_column_validation): Likewise.
13440 (selftest::test_applying_fixits_column_validation): Likewise.
13441 (selftest::edit_context_c_tests): Update for renamed test function;
13442 call new test functions.
13443
13444 2016-09-13 Pat Haugen <pthaugen@us.ibm.com>
13445
13446 PR tree-optimization/77536
13447 PR rtl-optimization/68212
13448 * config/rs6000/rs6000.md (div->recip splitter): Remove
13449 optimize_insn_for_speed_p condition.
13450
13451 2016-09-13 Maciej W. Rozycki <macro@imgtec.com>
13452
13453 * optabs.c (prepare_cmp_insn): Update documentation comment.
13454
13455 2016-09-13 Jakub Jelinek <jakub@redhat.com>
13456 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13457
13458 PR middle-end/77475
13459 * opts.h (candidates_list_and_hint): Declare.
13460 * opts-common.c (candidates_list_and_hint): New function.
13461 (cmdline_handle_error): Use it.
13462
13463 2016-09-12 David Malcolm <dmalcolm@redhat.com>
13464
13465 * edit-context.c (edited_line::get_len): New accessor.
13466 (edited_file::print_diff): Split out hunk-printing into...
13467 (edited_file::print_diff_hunk): New method.
13468 (edited_file::print_diff_line): New method.
13469
13470 2016-09-12 Andrew Pinski <apinski@cavium.com>
13471
13472 * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
13473 New tuning option.
13474 * config/aarch64/aarch64.c (thunderx_tunings): Enable
13475 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
13476 (aarch64_operands_ok_for_ldpstp): Return false if
13477 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
13478 was SImode and the alignment is less than 8 byte.
13479 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
13480
13481 2016-09-12 Orlando Arias <oarias@knights.ucf.edu>
13482
13483 PR target/77570
13484 * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
13485
13486 2016-09-12 Marek Polacek <polacek@redhat.com>
13487
13488 * doc/extend.texi: Use lowercase "boolean".
13489 * doc/invoke.texi: Likewise.
13490 * doc/md.texi: Likewise.
13491 * target.def: Likewise.
13492 * doc/tm.texi: Regenerated.
13493
13494 2016-09-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13495
13496 PR middle-end/77426
13497 * expmed.c (synth_mult): Delete duplicate mode check.
13498
13499 2016-09-10 Tom de Vries <tom@codesourcery.com>
13500
13501 PR C/71602
13502 * builtins.c (std_canonical_va_list_type): Strictly return non-null for
13503 va_list type only.
13504 * config/i386/i386.c (ix86_canonical_va_list_type): Same.
13505 * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
13506
13507 2016-09-09 Peter Bergner <bergner@vnet.ibm.com>
13508
13509 PR rtl-optimization/77289
13510 * lra-constraints.c (get_final_hard_regno): Add support for non hard
13511 register numbers. Remove support for subregs.
13512 (get_hard_regno): Use SUBREG_P. Don't call get_final_hard_regno().
13513 (get_reg_class): Delete removed get_final_hard_regno() argument.
13514 (uses_hard_regs_p): Call get_final_hard_regno().
13515
13516 2016-09-09 Martin Sebor <msebor@redhat.com>
13517
13518 PR c/77520
13519 PR c/77521
13520 * pretty-print.c (pp_quoted_string): New function.
13521 (pp_format): Call it for %c and %s directives.
13522
13523 2016-09-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
13524
13525 * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
13526 (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
13527 INITIAL_ELIMINATION_OFFSET) : Update documentation.
13528 * target.def (frame_pointer_required, can_eliminate): Likewise.
13529 * doc/tm.texi: Regenerated.
13530 * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
13531 ELIMINABLE_REGS.
13532 * df-scan.c (df_hard_reg_init): Likewise.
13533 * ira.c (ira_setup_eliminable_regset): Likewise.
13534 * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
13535 init_elim_table): Likewise.
13536 * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
13537 set_initial_elim_offsets, update_eliminables,
13538 init_elim_table): Likewise.
13539 * rtlanal.c (get_initial_register_offset): Likewise.
13540 * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
13541 * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
13542 * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
13543 * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
13544 * config/fr30/fr30.h: Fix comment.
13545 * config/frv/frv.c: Likewise.
13546 * config/frv/frv.h: Likewise.
13547 * config/ft32/ft32.h: Likewise.
13548 * config/visium/visium.h: Likewise.
13549 * config/pa/pa64-linux.h: Likewise.
13550 * config/v850/v850.h: Likewise.
13551 * config/cris/cris.c: Likewise.
13552 * config/ia64/ia64.h: Likewise.
13553 * config/moxie/moxie.h: Likewise.
13554 * config/m32r/m32r.h: Likewise.
13555
13556 2016-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
13557
13558 PR target/77267
13559 * config.in: Regenerate.
13560 * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
13561 New macro.
13562 (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
13563 (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
13564 static-libmpxwrappers case.
13565 (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
13566 MPX_LD_AS_NEEDED_GUARD_POP.
13567 * configure: Regenerate.
13568 * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
13569 defined if linker support "--push-state"/"--pop-state".
13570
13571 2016-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
13572
13573 * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
13574
13575 2016-09-09 Joseph Myers <joseph@codesourcery.com>
13576
13577 * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
13578 (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
13579 (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
13580 (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
13581 (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
13582 (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
13583 (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
13584 Document.
13585 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
13586 width macros from TS 18661-1.
13587 * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
13588
13589 2016-09-08 Jakub Jelinek <jakub@redhat.com>
13590
13591 PR fortran/77516
13592 * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
13593 OMP_CLAUSE_SAFELEN_EXPR.
13594
13595 2016-09-07 David Malcolm <dmalcolm@redhat.com>
13596
13597 * Makefile.in (OBJS): Add substring-locations.o.
13598 * langhooks-def.h (class substring_loc): New forward decl.
13599 (lhd_get_substring_location): New decl.
13600 (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
13601 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
13602 * langhooks.c (lhd_get_substring_location): New function.
13603 * langhooks.h (class substring_loc): New forward decl.
13604 (struct lang_hooks): Add field get_substring_location.
13605 * substring-locations.c: New file, taking definition of
13606 format_warning_va and format_warning_at_substring from
13607 c-family/c-format.c, making them non-static.
13608 * substring-locations.h (class substring_loc): Move class here
13609 from c-family/c-common.h. Add and rewrite comments.
13610 (format_warning_va): New decl.
13611 (format_warning_at_substring): New decl.
13612 (get_source_location_for_substring): Add comment.
13613
13614 2016-09-07 Eric Gallager <egall@gwmail.gwu.edu>
13615
13616 * config/i386/i386.c: Add 'U' suffix to processor feature bits
13617 to avoid -Wnarrowing warning.
13618 * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
13619 * opts.c: Likewise for SANITIZER_OPT bitmasks.
13620
13621 2016-09-07 Wilco Dijkstra <wdijkstr@arm.com>
13622
13623 * config/aarch64/aarch64.c (aarch64_legitimize_address):
13624 Avoid use of base_offset if offset already in range.
13625
13626 2016-09-07 Kaz Kojima <kkojima@gcc.gnu.org>
13627
13628 * config/sh/sh-protos.h (struct sh_atomic_model,
13629 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
13630 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
13631 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
13632 * config/sh/sh.h (struct sh_atomic_model,
13633 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
13634 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
13635 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
13636 Guard with __cplusplus.
13637
13638 2016-09-06 Jakub Jelinek <jakub@redhat.com>
13639
13640 PR target/69255
13641 * config/i386/i386.c (ix86_expand_builtin): For builtin with
13642 unsupported or unknown ISA, use expand_call.
13643
13644 2016-09-06 Martin Liska <mliska@suse.cz>
13645
13646 PR gcov-profile/77378
13647 PR gcov-profile/77466
13648 * tree-profile.c (tree_profiling): Detect whether target can use
13649 -fprofile-update=atomic.
13650
13651 2016-09-06 Richard Biener <rguenther@suse.de>
13652
13653 PR tree-optimization/77479
13654 * tree-vrp.c (update_value_range): Extend overflow handling to
13655 VARYING.
13656
13657 2016-09-05 Jakub Jelinek <jakub@redhat.com>
13658
13659 PR target/77476
13660 * config/i386/i386.md (isa): Add x64_avx512bw.
13661 (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
13662 (kmov_isa): New mode attr.
13663 (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
13664 (*zero_extend<mode>si2): Likewise.
13665 (*zero_extendqihi2): Use avx512dq isa for the last alternative.
13666
13667 2016-09-05 Gerald Pfeifer <gerald@pfeifer.com>
13668
13669 * doc/invoke.texi (SPU Options): nops -> NOPs.
13670 (x86 Options): Ditto.
13671
13672 2016-09-05 Jakub Jelinek <jakub@redhat.com>
13673
13674 PR middle-end/77475
13675 * toplev.c (process_options): Temporarily set input_location
13676 to UNKNOWN_LOCATION around targetm.target_option.override () call.
13677
13678 2016-09-05 Uros Bizjak <ubizjak@gmail.com>
13679
13680 PR rtl-optimization/77452
13681 * explow.c (plus_constant) <case MEM>: Extract scalar constant from
13682 inner-mode reference to a CONST_VECTOR constant in the constant pool.
13683
13684 2016-09-05 Marek Polacek <polacek@redhat.com>
13685
13686 PR c/77423
13687 * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
13688
13689 2016-09-05 Jakub Jelinek <jakub@redhat.com>
13690
13691 PR other/77421
13692 * gensupport.c (alter_output_for_subst_insn): Remove redundant
13693 *insn_out == '*' test. Don't copy unnecessary to yet another
13694 memory buffer, and don't leak it.
13695
13696 PR rtl-optimization/77425
13697 * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
13698
13699 2016-09-03 Kirill Yukhin <kirill.yukhin@intel.com>
13700
13701 * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
13702
13703 2016-09-02 David Malcolm <dmalcolm@redhat.com>
13704
13705 * common.opt (fdiagnostics-generate-patch): New option.
13706 * diagnostic.c: Include "edit-context.h".
13707 (diagnostic_initialize): Initialize context->edit_context_ptr.
13708 (diagnostic_finish): Delete context->edit_context_ptr.
13709 (diagnostic_report_diagnostic): Add fix-it hints from the
13710 diagnostic to context->edit_context_ptr, if any.
13711 * diagnostic.h (class edit_context): Add forward decl.
13712 (struct diagnostic_context): Add field "edit_context_ptr".
13713 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
13714 -fdiagnostics-generate-patch.
13715 (-fdiagnostics-generate-patch): New item.
13716 * toplev.c: Include "edit-context.h".
13717 (process_options): Set global_dc->edit_context_ptr to a new
13718 edit_context if the options need one.
13719 (toplev::main): Handle -fdiagnostics-generate-patch by using
13720 global_dc->edit_context_ptr.
13721
13722 2016-09-02 Jakub Jelinek <jakub@redhat.com>
13723
13724 PR c/65467
13725 * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
13726 map and firstprivate clauses on target construct for _Atomic
13727 qualified decls.
13728 (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
13729 on target construct for _Atomic qualified decls.
13730 * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
13731 decls.
13732 * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
13733 _Atomic qualified arguments not mentioned in uniform clause.
13734
13735 2016-09-02 David Malcolm <dmalcolm@redhat.com>
13736
13737 * Makefile.in (OBJS-libcommon): Add edit-context.o.
13738 * diagnostic-color.c (color_dict): Add "diff-filename",
13739 "diff-hunk", "diff-delete", and "diff-insert".
13740 (parse_gcc_colors): Update default value of GCC_COLORS in comment
13741 to reflect above changes.
13742 * doc/invoke.texi (-fdiagnostics-color): Update description of
13743 default GCC_COLORS, and of the supported capabilities.
13744 * edit-context.c: New file.
13745 * edit-context.h: New file.
13746 * input.c (struct fcache): Add field "missing_trailing_newline".
13747 (diagnostics_file_cache_forcibly_evict_file): Initialize it to
13748 true.
13749 (add_file_to_cache_tab): Likewise.
13750 (fcache::fcache): Likewise.
13751 (get_next_line): Update c->missing_trailing_newline.
13752 (location_missing_trailing_newline): New function.
13753 * input.h (location_missing_trailing_newline): New decl.
13754 * selftest-run-tests.c (selftest::run_tests): Call
13755 edit_context_c_tests.
13756 * selftest.h (edit_context_c_tests): New decl.
13757
13758 2016-09-02 Jakub Jelinek <jakub@redhat.com>
13759 Richard Biener <rguenth@suse.de>
13760
13761 PR tree-optimization/77444
13762 * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
13763 as steptype, remove redundant initialization.
13764
13765 2016-09-02 Jakub Jelinek <jakub@redhat.com>
13766
13767 PR sanitizer/77396
13768 * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
13769 (sanopt_optimize_walker): Optimize away
13770 __asan_before_dynamic_init (...) followed by
13771 __asan_after_dynamic_init () without intervening memory loads/stores.
13772 * ipa-pure-const.c (special_builtin_state): Handle
13773 BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
13774 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
13775
13776 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13777
13778 * cfg.c (free_original_copy_tables): Replace second assignment of
13779 bb_copy = NULL by bb_original = NULL.
13780
13781 2016-09-02 Jakub Jelinek <jakub@redhat.com>
13782
13783 PR other/77421
13784 * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
13785 assignment added in r216794.
13786
13787 2016-09-02 David Malcolm <dmalcolm@redhat.com>
13788
13789 * Makefile.in (OBJS): Add typed-splay-tree.o.
13790 * selftest-run-tests.c (selftest::run_tests): Call
13791 typed_splay_tree_c_tests.
13792 * selftest.h (typed_splay_tree_c_tests): New decl.
13793 * typed-splay-tree.c: New file.
13794 * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
13795 (typed_splay_tree::max): New method.
13796 (typed_splay_tree::min): New method.
13797 (typed_splay_tree::foreach): New method.
13798 (typed_splay_tree::closure): New struct.
13799 (typed_splay_tree::inner_foreach_fn): New function.
13800
13801 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13802
13803 * ipa-cp.c (ipcp_store_bits_results): Change option name from
13804 -fipa-cp-bit to -fipa-bit-cp.
13805
13806 2016-09-01 Martin Sebor <msebor@redhat.com>
13807
13808 PR tree-optimization/71831
13809 * tree-object-size.h: Return bool instead of the size and add
13810 argument for the size.
13811 * tree-object-size.c (compute_object_offset): Update signature.
13812 (addr_object_size): Same.
13813 (compute_builtin_object_size): Return bool instead of the size
13814 and add argument for the size. Handle POINTER_PLUS_EXPR when
13815 optimization is disabled.
13816 (expr_object_size): Adjust.
13817 (plus_stmt_object_size): Adjust.
13818 (pass_object_sizes::execute): Adjust.
13819 * builtins.c (fold_builtin_object_size): Adjust.
13820 * doc/extend.texi (Object Size Checking): Update.
13821 * ubsan.c (instrument_object_size): Adjust.
13822
13823 2016-09-01 Martin Sebor <msebor@redhat.com>
13824
13825 * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
13826 it fits the output of the formatted function regardless of its
13827 arguments.
13828 * genmodes.c (parser::parse_expr): Same.
13829 * gimplify.c (gimplify_asm_expr): Same.
13830 * passes.c (pass_manager::register_one_dump_file): Same.
13831 * print-tree.c (print_node): Same.
13832
13833 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13834
13835 * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
13836
13837 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13838
13839 * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
13840
13841 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13842
13843 * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
13844 * config/rs6000/vector.md: Ditto.
13845 * config/rs6000/vsx.md: Ditto.
13846
13847 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
13848
13849 * ipa-inline-analysis.c (param_change_prob): Get to the base object
13850 first in all cases.
13851
13852 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13853
13854 * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
13855 *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
13856 *return_and_restore_gpregs_<mode>_r11,
13857 *return_and_restore_gpregs_<mode>_r12,
13858 *return_and_restore_gpregs_<mode>_r1,
13859 *return_and_restore_fpregs_<mode>_r11,
13860 *return_and_restore_fpregs_<mode>_r12,
13861 *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
13862 directly instead of via the "l" constraint. Renumber operands.
13863 Fix whitespace.
13864
13865 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13866
13867 * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
13868 save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
13869 *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
13870 * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
13871 load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
13872 *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
13873 *call_value_nonlocal_darwin64, reload_macho_picbase,
13874 reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
13875 * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
13876 * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
13877 *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
13878 *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
13879 *save_fpregs_<mode>_r1): Ditto.
13880 * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
13881 *return_and_restore_gpregs_spe): Ditto.
13882
13883 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13884
13885 * config/rs6000/rs6000.md
13886 (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
13887 the use of the link register.
13888 (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
13889
13890 2016-09-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13891 Michael Meissner <meissner@linux.vnet.ibm.com>
13892
13893 PR target/72827
13894 * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
13895 reg+reg addressing for TImode.
13896 (rs6000_legitimate_address_p): Only allow register indirect
13897 addressing for TImode, even without TARGET_QUAD_MEMORY.
13898
13899 2016-09-01 Richard Biener <rguenther@suse.de>
13900
13901 PR middle-end/77436
13902 * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
13903 check whether the result fits the desired result type.
13904
13905 2016-09-01 Nathan Sidwell <nathan@acm.org>
13906
13907 * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
13908
13909 2016-09-01 Wilco Dijkstra <wdijkstr@arm.com>
13910
13911 * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
13912 New function.
13913 (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
13914
13915 2016-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13916
13917 * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
13918 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
13919 for comparisons of integer ZERO_EXTEND against zero.
13920
13921 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
13922
13923 * config/i386/i386.c (ix86_option_override_internal): Also disable the
13924 STV pass if -mstackrealign is enabled.
13925
13926 2016-08-31 Ilya Verbin <iverbin@gmail.com>
13927
13928 * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
13929 AVX512IFMA.
13930
13931 2016-08-31 David Malcolm <dmalcolm@redhat.com>
13932
13933 * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
13934 (layout_range::intersects_line_p): New method.
13935 (test_range_contains_point_for_single_point): Rename to...
13936 (test_layout_range_for_single_point): ...this, and add testing
13937 for layout_range::intersects_line_p.
13938 (test_range_contains_point_for_single_line): Rename to...
13939 (test_layout_range_for_single_line): ...this, and add testing
13940 for layout_range::intersects_line_p.
13941 (test_range_contains_point_for_multiple_lines): Rename to...
13942 (test_layout_range_for_multiple_lines): ...this, and add testing
13943 for layout_range::intersects_line_p.
13944 (layout::layout): Populate m_fixit_hints.
13945 (layout::get_expanded_location): Handle the case of a line-span
13946 for a fix-it hint.
13947 (layout::validate_fixit_hint_p): New method.
13948 (get_line_span_for_fixit_hint): New function.
13949 (layout::calculate_line_spans): Add spans for fixit-hints.
13950 (layout::should_print_annotation_line_p): New method.
13951 (layout::print_any_fixits): Drop param "richloc", instead using
13952 validated fixits in m_fixit_hints. Add "const" to hint pointers.
13953 (diagnostic_show_locus): Avoid printing blank annotation lines.
13954 (selftest::test_diagnostic_context::test_diagnostic_context):
13955 Initialize show_column and start_span.
13956 (selftest::test_diagnostic_context::start_span_cb): New static
13957 function.
13958 (selftest::test_diagnostic_show_locus_fixit_lines): New function.
13959 (selftest::diagnostic_show_locus_c_tests): Update for function
13960 renamings. Call test_diagnostic_show_locus_fixit_lines.
13961
13962 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
13963
13964 PR tree-optimization/73714
13965 * match.pd (a * (1 << b)): Revert change from 2016-05-23.
13966
13967 2016-08-31 David Malcolm <dmalcolm@redhat.com>
13968
13969 * selftest.c: Move "namespace selftest {" to top of file,
13970 removing explicit "selftest::" qualifiers throughout.
13971
13972 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
13973
13974 * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
13975 New types.
13976 (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
13977 _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
13978 Replace builtin with vector extension.
13979 * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
13980 New types.
13981 (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
13982 _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
13983 Replace builtin with vector extension.
13984 * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
13985 (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
13986 Replace builtin with vector extension.
13987 * config/i386/xmmintrin.h (__m128_u): New type.
13988 (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
13989 (_mm_load_ps, _mm_store_ps): Simplify.
13990
13991 2016-08-31 Eric Botcazou <ebotcazou@adacore.com>
13992
13993 * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
13994
13995 2016-08-30 David Malcolm <dmalcolm@redhat.com>
13996
13997 * diagnostic-show-locus.c (colorizer::begin_state): Support more
13998 than 3 ranges per diagnostic by alternating between color 1 and
13999 color 2.
14000 (layout::layout): Replace use of rich_location::MAX_RANGES
14001 with richloc->get_num_locations ().
14002 (layout::calculate_line_spans): Replace use of
14003 rich_location::MAX_RANGES with m_layout_ranges.length ().
14004 (layout::print_annotation_line): Handle arbitrary numbers of
14005 ranges in caret-printing by defaulting to '^'.
14006 (selftest::test_one_liner_many_fixits): New function.
14007 (test_diagnostic_show_locus_one_liner): Call it.
14008 * diagnostic.c (diagnostic_initialize): Update for renaming
14009 of rich_location::MAX_RANGES to
14010 rich_location::STATICALLY_ALLOCATED_RANGES.
14011 * diagnostic.h (struct diagnostic_context): Likewise.
14012
14013 2016-08-30 David Malcolm <dmalcolm@redhat.com>
14014
14015 * selftest.c (selftest::named_temp_file::named_temp_file): New
14016 ctor.
14017 (selftest::temp_source_file::~temp_source_file): Move to...
14018 (selftest::named_temp_file::~named_temp_file): ...here.
14019 (selftest::test_named_temp_file): New function.
14020 (selftest::selftest_c_tests): Call test_named_temp_file.
14021 * selftest.h (class named_temp_file): New class.
14022 (class temp_source_file): Convert to a subclass of named_temp_file.
14023
14024 2016-08-30 Segher Boessenkool <segher@kernel.crashing.org>
14025
14026 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
14027 USEs of LR_REGNO in returns and sibcalls.
14028 (rs6000_output_mi_thunk): Similar.
14029 (rs6000_sibcall_aix): Similar.
14030 * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
14031 sibcall_local64, sibcall_value_local32, sibcall_value_local64,
14032 sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
14033 Remove the USE of LR_REGNO from the patterns as well. Delete an
14034 obsolete comment.
14035 (return_internal_<mode>): Delete.
14036
14037 2016-08-30 Tamar Christina <tamar.christina@arm.com>
14038
14039 * config/aarch64/aarch64-simd.md
14040 (aarch64_ld2<mode>_dreg_le): New.
14041 (aarch64_ld2<mode>_dreg_be): New.
14042 (aarch64_ld2<mode>_dreg): Removed.
14043 (aarch64_ld3<mode>_dreg_le): New.
14044 (aarch64_ld3<mode>_dreg_be): New.
14045 (aarch64_ld3<mode>_dreg): Removed.
14046 (aarch64_ld4<mode>_dreg_le): New.
14047 (aarch64_ld4<mode>_dreg_be): New.
14048 (aarch64_ld4<mode>_dreg): Removed.
14049 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
14050
14051 2016-08-30 David Malcolm <dmalcolm@redhat.com>
14052
14053 * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
14054 redundant location param.
14055 (test_one_liner_fixit_remove): Likewise.
14056 (test_one_liner_fixit_replace): Likewise.
14057 (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
14058 * gcc-rich-location.c
14059 (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
14060 get_range_from_loc. Drop overload taking a const char *.
14061 * gcc-rich-location.h
14062 (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
14063 a const char *.
14064
14065 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
14066
14067 * config/linux.c (linux_libc_has_function): Return true on musl.
14068
14069 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
14070
14071 * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
14072
14073 2016-08-30 Eric Botcazou <ebotcazou@adacore.com>
14074
14075 * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
14076 used for abnormal egdes.
14077
14078 2016-08-30 Jakub Jelinek <jakub@redhat.com>
14079
14080 PR tree-optimization/72866
14081 * tree-vect-patterns.c (search_type_for_mask): Turn into
14082 a small wrapper, move all code to ...
14083 (search_type_for_mask_1): ... this new function. Add caching
14084 and adjust recursive calls.
14085
14086 PR debug/77363
14087 * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
14088 instead of lookup_type_die (type_main_variant (type)) even for array
14089 types.
14090
14091 PR middle-end/77377
14092 * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
14093 constant pool reference return x instead of c.
14094
14095 2016-08-29 Segher Boessenkool <segher@kernel.crashing.org>
14096
14097 * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
14098 include MQ.
14099
14100 2016-08-29 David Malcolm <dmalcolm@redhat.com>
14101
14102 * input.c
14103 (selftest::test_make_location_nonpure_range_endpoints): Fix
14104 header comment.
14105
14106 2016-08-29 David Malcolm <dmalcolm@redhat.com>
14107
14108 * diagnostic-show-locus.c
14109 (selftest::test_one_liner_fixit_validation_adhoc_locations): New
14110 function.
14111 (selftest::test_diagnostic_show_locus_one_liner): Call it.
14112 * input.c (get_pure_location): Move to libcpp/line-map.c.
14113 * input.h (get_pure_location): Convert decl to an inline function
14114 calling implementation in libcpp.
14115
14116 2016-08-29 Uros Bizjak <ubizjak@gmail.com>
14117
14118 PR target/77403
14119 * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
14120 template for intel asm dialect.
14121 (vec_set_hi_<mode><mask_name>): Ditto.
14122
14123 2016-08-29 David Malcolm <dmalcolm@redhat.com>
14124
14125 * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
14126 (selftest::fail_formatted): Likewise.
14127
14128 2016-08-29 David Malcolm <dmalcolm@redhat.com>
14129
14130 * input.c (make_location): Call get_start and get_finish
14131 on the endpoints to avoid storing packed ranges or ad-hoc
14132 ranges in them.
14133 (selftest::test_make_location_nonpure_range_endpoints): New function.
14134 (selftest::input_c_tests): Call it.
14135 * input.h (get_start): New inline function.
14136
14137 2016-08-29 Tom de Vries <tom@codesourcery.com>
14138
14139 PR c/77398
14140 * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
14141 with assert.
14142
14143 2016-08-29 Eric Botcazou <ebotcazou@adacore.com>
14144
14145 * Makefile.in (gcov-iov.h): Add dummy recipe.
14146
14147 2016-08-29 Nathan Sidwell <nathan@acm.org>
14148
14149 * config/nvptx/nvptx.c: #include tree-vrp.h.
14150
14151 2016-08-28 Eric Botcazou <ebotcazou@adacore.com>
14152
14153 PR target/77324
14154 * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
14155 HIGH+LO construct during reload.
14156
14157 2016-08-28 Tom de Vries <tom@codesourcery.com>
14158
14159 PR lto/70955
14160 * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
14161 'sysv_abi va_list' attribute.
14162 (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
14163 (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
14164 attributes.
14165
14166 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14167
14168 * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
14169 * emit-rtl.c (unshare_all_rtl_1): Adjust.
14170 (unshare_all_rtl_again): Likewise.
14171 * function.c (assign_stack_local_1): Likewise.
14172 (assign_stack_temp_for_type): Likewise.
14173
14174 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14175
14176 * cfgbuild.c (make_edges): Adjust.
14177 * cfgrtl.c (can_delete_label_p): Likewise.
14178 * dwarf2cfi.c (create_trace_edges): Likewise.
14179 * except.c (sjlj_emit_dispatch_table): Likewise.
14180 * function.h (struct expr_status): make x_forced_labels a vector.
14181 * jump.c (rebuild_jump_labels_1): Adjust.
14182 * reload1.c (set_initial_label_offsets): Likewise.
14183 * stmt.c (force_label_rtx): Likewise.
14184 (expand_label): Likewise.
14185
14186 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14187
14188 * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
14189
14190 2016-08-27 Patrick Palka <ppalka@gcc.gnu.org>
14191
14192 PR tree-optimization/71077
14193 PR tree-optimization/68542
14194 * fold-const.c (fold_relational_const): Fix folding of
14195 VECTOR_CST comparisons that have a scalar boolean result type.
14196 (selftest::test_vector_folding): New static function.
14197 (selftest::fold_const_c_tests): Call it.
14198
14199 2016-08-27 Gerald Pfeifer <gerald@pfeifer.com>
14200
14201 * doc/extend.texi (SPU Built-in Functions): Remove stale
14202 references to material formerly at IBM and Sony.
14203
14204 2016-08-26 David Edelsohn <dje.gcc@gmail.com>
14205
14206 PR target/77349
14207 * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
14208
14209 2016-08-26 David Malcolm <dmalcolm@redhat.com>
14210
14211 * diagnostic-show-locus.c
14212 (selftest::test_fixit_consolidation): New function.
14213 (selftest::diagnostic_show_locus_c_tests): Call it.
14214 * gcc-rich-location.h (gcc_rich_location): Eliminate unused
14215 constructor based on source_range.
14216
14217 2016-08-26 David Malcolm <dmalcolm@redhat.com>
14218
14219 * diagnostic-color.c (color_dict): Add "fixit-insert" and
14220 "fixit-delete".
14221 (parse_gcc_colors): Update description of default GCC_COLORS.
14222 * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
14223 (colorizer::set_fixit_insert): New method.
14224 (colorizer::set_fixit_delete): New method.
14225 (colorizer::get_color_by_name): New method.
14226 (colorizer::STATE_FIXIT_INSERT): New constant.
14227 (colorizer::STATE_FIXIT_DELETE): New constant.
14228 (class colorizer): Drop "_cs" suffix from fields. Delete "_ce"
14229 fields in favor of new field "m_stop_color". Add fields
14230 "m_fixit_insert" and "m_fixit_delete".
14231 (colorizer::colorizer): Update for above changes. Replace
14232 colorize_start calls with calls to get_color_by_name.
14233 (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
14234 STATE_FIXIT_DELETE. Update for field renamings.
14235 (colorizer::finish_state): Simplify by using m_stop_color,
14236 rather than multiple identical "*_ce" fields.
14237 (colorizer::get_color_by_name): New method.
14238 (layout::print_any_fixits): Print insertions and replacements
14239 using the "fixit-insert" color, and deletions using the
14240 "fixit-delete" color.
14241 * doc/invoke.texi (-fdiagnostics-color): Update description of
14242 default GCC_COLORS, and of the supported capabilities.
14243
14244 2016-08-26 Max Filippov <jcmvbkbc@gmail.com>
14245
14246 * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
14247 current_function_static_stack_size variable with the static
14248 stack frame size of the current function when
14249 flag_stack_usage_info is enabled.
14250
14251 2016-08-26 Nathan Sidwell <nathan@acm.org>
14252
14253 * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
14254 assignment inside if condition.
14255
14256 2016-08-26 Richard Biener <rguenther@suse.de>
14257
14258 PR tree-optimization/69047
14259 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
14260 extracts similar to what FRE does.
14261 (non_rewritable_mem_ref_base): Likewise.
14262
14263 2016-08-26 Joseph Myers <joseph@codesourcery.com>
14264
14265 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
14266 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
14267 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
14268 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
14269 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
14270 Likewise.
14271 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
14272 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
14273 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
14274 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
14275 * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
14276
14277 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14278
14279 PR target/70473
14280 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
14281 reservation duration to 15 cycles.
14282 (cortex_a8_vfp_macs): Likewise.
14283 (cortex_a8_vfp_macd): Likewise.
14284 (cortex_a8_vfp_divs): Likewise.
14285 (cortex_a8_vfp_divd): Likewise.
14286
14287 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14288
14289 * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
14290 (aarch_macro_fusion_pair_p): Use above to avoid early return.
14291
14292 2016-08-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14293 Martin Jambhor <mjambor@suse.cz>
14294
14295 * common.opt: New option -fipa-bit-cp.
14296 * doc/invoke.texi: Document -fipa-bit-cp.
14297 * opts.c (default_options_table): Add entry for -fipa-bit-cp.
14298 (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
14299 * tree-ssa-ccp.h: New header file.
14300 * tree-ssa-ccp.c: Include tree-ssa-ccp.h
14301 (bit_value_binop_1): Change to bit_value_binop_1 and export it.
14302 Replace all occurences of tree parameter by two new params: signop, int.
14303 (bit_value_unop_1): Change to bit_value_unop and export it.
14304 Replace all occurences of tree parameter by two new params: signop,
14305 int.
14306 (bit_value_binop): Change call from bit_value_binop_1 to
14307 bit_value_binop.
14308 (bit_value_assume_aligned): Likewise.
14309 (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
14310 (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
14311 to ccp_finalize.
14312 (ccp_finalize): Skip processing if val->mask == 0.
14313 * ipa-cp.c: Include tree-ssa-ccp.h
14314 (ipcp_bits_lattice): New class.
14315 (ipcp_param_lattice (bits_lattice): New member.
14316 (print_all_lattices): Call ipcp_bits_lattice::print.
14317 (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
14318 (initialize_node_lattices): Likewise.
14319 (propagate_bits_accross_jump_function): New function.
14320 (propagate_constants_accross_call): Call
14321 propagate_bits_accross_jump_function.
14322 (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
14323 (ipcp_store_bits_results): New function.
14324 (ipcp_driver): Call ipcp_store_bits_results.
14325 * ipa-prop.h (ipa_bits): New struct.
14326 (ipa_jump_func): Add new member bits of type ipa_bits.
14327 (ipa_param_descriptor): Change decl to decl_or_type.
14328 (ipa_get_param): Change decl to decl_or_type and assert on
14329 PARM_DECL.
14330 (ipa_get_type): New function.
14331 (ipcp_transformation_summary): New member bits.
14332 * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
14333 (ipa_populate_param_decls): Likewise.
14334 (ipa_dump_param): Likewise.
14335 (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
14336 function.
14337 (ipa_set_jf_unknown): Set ipa_bits::known to false.
14338 (ipa_compute_jump_functions_for_edge): Compute jump function for bits
14339 propagation.
14340 (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
14341 (ipa_write_jump_function): Add streaming for ipa_bits.
14342 (ipa_read_jump_function): Add support for reading streamed ipa_bits.
14343 (write_ipcp_transformation_info): Add streaming for ipa_bits
14344 summary for ltrans.
14345 (read_ipcp_transfomration_info): Add support for reading streamed
14346 ipa_bits.
14347 (ipcp_update_bits): New function.
14348 (ipcp_transform_function): Call ipcp_update_bits.
14349
14350 2016-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
14351
14352 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
14353 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
14354
14355 2016-08-25 David Edelsohn <dje.gcc@gmail.com>
14356
14357 * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
14358
14359 2016-08-25 Richard Biener <rguenther@suse.de>
14360
14361 * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
14362 Only add locations in late dwarf.
14363 (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
14364 (dwarf2out_early_finish): But do it here.
14365
14366 2016-08-24 Michael Collison <michael.collison@linaro.org>
14367 Michael Collison <michael.collison@arm.com>
14368
14369 * config/arm/arm-modes.def: Add new condition code mode CC_V
14370 to represent the overflow bit.
14371 * config/arm/arm.c (maybe_get_arm_condition_code):
14372 Add support for CC_Vmode.
14373 (arm_gen_unlikely_cbranch): New function to generate common
14374 rtl conditional branches for overflow patterns.
14375 * config/arm/arm-protos.h: Add prototype for
14376 arm_gen_unlikely_cbranch.
14377 * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
14378 addsi3_compareV_upper): New patterns to support signed
14379 builtin overflow add operations.
14380 (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
14381 New patterns to support unsigned builtin add overflow operations.
14382 (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
14383 builtin overflow subtract operations,
14384 (usubv<mode>4): New patterns to support unsigned builtin subtract
14385 overflow operations.
14386 (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
14387 to support builtin overflow negate operations.
14388
14389 2016-08-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14390
14391 Revert
14392 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
14393
14394 * explow.c (get_dynamic_stack_size): Take known alignment of stack
14395 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
14396 needed.
14397
14398 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
14399
14400 * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
14401 MULTILIB_OPTIONS should be used. Small wording fixes.
14402 * genmultilib: Memorize set of all option combinations in
14403 combination_space. Detect if RHS of MULTILIB_REUSE uses an option not
14404 found in MULTILIB_OPTIONS by checking if option set is listed in
14405 combination_space. Output new and existing error message to stderr.
14406
14407 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
14408
14409 * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
14410 -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
14411 Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
14412 (MULTILIB_REUSE): Remove reuse rules for option set including
14413 -mfpu=fp-armv8 and -mfpu=vfpv4
14414
14415 2016-08-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
14416
14417 * config/arm/t-rtems: Add vfp multilib.
14418
14419 2016-08-23 Ian Lance Taylor <iant@golang.org>
14420
14421 * config/s390/s390.c (s390_asm_file_start): Call
14422 default_file_start.
14423
14424 2016-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
14425
14426 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
14427 initialization of all 0's to the 0 constant, instead of directly
14428 generating XOR. Add support for V4SImode vector initialization on
14429 64-bit systems with direct move, and rework the ISA 3.0 V4SImode
14430 initialization. Change variables used in V4SFmode vector
14431 intialization. For V4SFmode vector splat on ISA 3.0, make sure
14432 any memory addresses are in index form. Add support for using
14433 VSPLTH/VSPLTB to initialize vector short and vector char vectors
14434 with all of the same element.
14435 (regno_or_subregno): New helper function to return a register
14436 number for either REG or SUBREG.
14437 (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
14438 Use regno_or_subregno where possible.
14439 (rs6000_split_v4si_init_di_reg): New helper function to build up a
14440 DImode value from two SImode values in order to generate V4SImode
14441 vector initialization on 64-bit systems with direct move.
14442 (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
14443 initialization.
14444 (rtx_is_swappable_p): V4SImode vector initialization insn is not
14445 swappable.
14446 * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
14447 declaration.
14448 * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
14449 attributes to initialize V8HImode and V16QImode vectors with the
14450 same element.
14451 (VSX_SPLAT_COUNT): Likewise.
14452 (VSX_SPLAT_SUFFIX): Likewise.
14453 (UNSPEC_VSX_VEC_INIT): New unspec.
14454 (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
14455 Allow SFmode values to come from Altivec registers.
14456 (vsx_init_v4si): New insn/split for V4SImode vector initialization
14457 on 64-bit systems with direct move.
14458 (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
14459 vector initializations, to allow V4SImode vector initializations
14460 on 64-bit systems with direct move.
14461 (vsx_splat_v4si): Likewise.
14462 (vsx_splat_v4si_di): Likewise.
14463 (vsx_splat_v4sf): Likewise.
14464 (vsx_splat_v4sf_internal): Likewise.
14465 (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
14466 register classes.
14467 (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
14468 (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
14469 initializing V8HImode and V16QImode vectors with the same
14470 element.
14471 * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
14472 optimization if -maltivec=be.
14473
14474 2016-08-23 Christophe Lyon <christophe.lyon@linaro.org>
14475
14476 * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
14477 attribute for alternatives 3 and 4.
14478
14479 2016-08-23 David Malcolm <dmalcolm@redhat.com>
14480
14481 * selftest.c (selftest::assert_str_contains): New function.
14482 (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
14483 * selftest.h (selftest::assert_str_contains): New decl.
14484 (ASSERT_STR_CONTAINS): New macro.
14485
14486 2016-08-23 Richard Biener <rguenther@suse.de>
14487
14488 PR tree-optimization/77286
14489 * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
14490 the CFG here.
14491 (vect_transform_loop): Split exit edges of loop and scalar
14492 loop if required and at the appropriate time.
14493
14494 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
14495
14496 * explow.c (get_dynamic_stack_size): Take known alignment of stack
14497 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
14498 needed.
14499 Correct a typo in a comment.
14500
14501 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
14502
14503 * config/s390/s390.md ("*andc_split"): New splitter for and with
14504 complement.
14505
14506 2016-08-23 Richard Biener <rguenther@suse.de>
14507
14508 PR tree-optimization/27336
14509 * tree-vrp.c (infer_value_range): Handle stmts that can throw
14510 by looking for a non-EH edge.
14511 (process_assert_insertions_for): Likewise.
14512
14513 2016-08-23 Richard Biener <rguenther@suse.de>
14514
14515 PR middle-end/77305
14516 * statistics.c (statistics_counter_event): Robustify against
14517 NULL current_pass.
14518
14519 2016-08-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14520
14521 * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
14522 for targets amdfam10 and barcelona.
14523
14524 2016-08-22 Uros Bizjak <ubizjak@gmail.com>
14525
14526 * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
14527 (zero_extend<mode>di2): Ditto.
14528 (*zero_extend<mode>si2): Ditto.
14529 (*zero_extendqihi2): Ditto.
14530
14531 2016-08-22 Joseph Myers <joseph@codesourcery.com>
14532
14533 PR middle-end/77269
14534 * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
14535 (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
14536
14537 2016-08-22 Patrick Palka <ppalka@gcc.gnu.org>
14538
14539 * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
14540 identical consecutive elements.
14541 [SSA_NAME]: Print the name's def stmt on its own line. When printing
14542 the node's def stmt, avoid printing an unwanted trailing newline by
14543 replacing the call to print_gimple_stmt() with its inlined body and
14544 adjusting it to not set pp_needs_newline and to call pp_flush()
14545 instead of pp_newline_and_flush().
14546
14547 2016-08-22 Joseph Myers <joseph@codesourcery.com>
14548
14549 * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
14550 (float32_type_node, float64_type_node, float32x_type_node)
14551 (float128x_type_node): New macros.
14552 * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
14553 (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
14554 (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
14555 (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
14556 (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
14557 (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
14558 (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
14559 (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
14560 (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
14561 (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
14562 (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
14563 (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
14564 (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
14565 (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
14566 (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
14567 (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
14568 * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
14569 (copysign, fabs, huge_val, inf, nan, nans): Use it.
14570 * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
14571 and copysign.
14572 (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
14573 (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
14574 * doc/extend.texi (Other Builtins): Document these built-in
14575 functions.
14576 * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
14577 for nan and nans.
14578
14579 2016-08-22 Gerald Pfeifer <gerald@pfeifer.com>
14580
14581 * doc/install.texi (Binaries): www.opencsw.org now uses https.
14582
14583 2016-08-22 Richard Biener <rguenther@suse.de>
14584
14585 * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
14586
14587 2016-08-21 Uros Bizjak <ubizjak@gmail.com>
14588
14589 PR target/77270
14590 * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
14591 TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
14592 non-SSE2 athlons only, otherwise prefer SSE prefetches.
14593
14594 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
14595
14596 * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
14597 (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
14598 (vrp_visit_switch_stmt): Likewise.
14599 (extract_range_from_stmt): Factored out from vrp_visit_stmt.
14600 (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
14601 (vrp_visit_stmt): Use extract_range_from_stmt.
14602 (vrp_visit_phi_node): Use extract_range_from_phi_node.
14603
14604 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
14605
14606 * Makefile.in: Add tree-vrp.h to GTFILES.
14607 * gengtype.c (open_base_files): Add tree-vrp.h.
14608 * asan.c: Add tree-vrp.h which now has the definition value_range_type.
14609 * builtins.c: Likewise.
14610 * fold-const.c: Likewise.
14611 * gimple-builder.c: Likewise.
14612 * gimple-laddress.c: Likewise.
14613 * hsa-gen.c: Likewise.
14614 * internal-fn.c: Likewise.
14615 * ssa.h: Likewise.
14616 * targhooks.c: Liewise,
14617 * tree-ssa-address.c: Likewise.
14618 * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
14619 * tree-vrp.c (struct value_range): Move to tree-vrp.h
14620 * tree-vrp.h: New file.
14621
14622 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
14623
14624 PR tree-optimization/61839
14625 * tree-vrp.c (two_valued_val_range_p): New.
14626 (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
14627 two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
14628 Also Convert VAR BINOP CST where VAR is two-valued to
14629 VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
14630
14631 2016-08-19 David Malcolm <dmalcolm@redhat.com>
14632
14633 * diagnostic-show-locus.c
14634 (layout::annotation_line_showed_range_p): New method.
14635 (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
14636 Reimplement case fixit_hint::REPLACE to cover removals, and
14637 replacements where the range of the replacement isn't one
14638 of the ranges in the rich_location.
14639 (test_one_liner_fixit_replace): Likewise.
14640 (selftest::test_one_liner_fixit_replace_non_equal_range): New
14641 function.
14642 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
14643 New function.
14644 (selftest::test_diagnostic_show_locus_one_liner): Call the new
14645 functions.
14646 * diagnostic.c (print_parseable_fixits): Remove case
14647 fixit_hint::REMOVE.
14648
14649 2016-08-19 Uros Bizjak <ubizjak@gmail.com>
14650
14651 PR target/77270
14652 * config/i386/i386.c (ix86_option_override_internal): Remove
14653 PTA_PRFCHW from entries that also have PTA_3DNOW flag.
14654 Enable SSE prefetch also for TARGET_PREFETCHWT1.
14655 Do not try to enable TARGET_PRFCHW ISA flag here.
14656 * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
14657 Rewrite expander function body.
14658 (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
14659
14660 2016-08-19 Joseph Myers <joseph@codesourcery.com>
14661
14662 PR c/32187
14663 * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
14664 (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
14665 (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
14666 (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
14667 (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
14668 (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
14669 (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
14670 (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
14671 (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
14672 tree_index values.
14673 (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
14674 macros.
14675 (struct floatn_type_info): New structure type.
14676 (floatn_nx_types): New variable declaration.
14677 * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
14678 (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
14679 (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
14680 * tree.c (floatn_nx_types): New variable.
14681 (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
14682 corresponding complex types.
14683 * target.def (floatn_mode): New hook.
14684 * targhooks.c: Include "real.h".
14685 (default_floatn_mode): New function.
14686 * targhooks.h (default_floatn_mode): New prototype.
14687 * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
14688 types.
14689 * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
14690 effective-target and dg-add-options keywords.
14691 (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
14692 Document new effective-target keywords.
14693 * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
14694 * doc/tm.texi: Regenerate.
14695 * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
14696 __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
14697 [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
14698 18661-3.
14699 * real.h (struct real_format): Add field ieee_bits.
14700 * real.c (ieee_single_format, mips_single_format)
14701 (motorola_single_format, spu_single_format, ieee_double_format)
14702 (mips_double_format, motorola_double_format)
14703 (ieee_extended_motorola_format, ieee_extended_intel_96_format)
14704 (ieee_extended_intel_128_format)
14705 (ieee_extended_intel_96_round_53_format, ibm_extended_format)
14706 (mips_extended_format, ieee_quad_format, mips_quad_format)
14707 (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
14708 (decimal_double_format, decimal_quad_format, ieee_half_format)
14709 (arm_half_format, real_internal_format: Initialize ieee_bits
14710 field.
14711 * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
14712 float128_type_node. Set float80_type_node to float64x_type_node
14713 if appropriate and long_double_type_node not appropriate.
14714 * config/ia64/ia64.c (ia64_init_builtins): Likewise.
14715 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
14716 Initialize ieee_bits field.
14717 * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
14718 (rs6000_init_builtins): Set ieee128_float_type_node to
14719 float128_type_node.
14720 (rs6000_floatn_mode): New function.
14721
14722 2016-08-19 Jakub Jelinek <jakub@redhat.com>
14723
14724 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
14725 _rdseed64_step): Uglify argument names and/or local variable names
14726 in inline functions.
14727 * config/i386/rtmintrin.h (_xabort): Likewise.
14728 * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
14729 _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
14730 _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
14731 _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
14732 _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
14733 _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
14734 _mm_maskz_ternarylogic_epi32): Likewise.
14735 * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
14736 __lwpins32, __lwpins64): Likewise.
14737 * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
14738 _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
14739 _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
14740 _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
14741 _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
14742 _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
14743 _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
14744 _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
14745 _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
14746 _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
14747 _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
14748 _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
14749 _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
14750 _mm256_mask_i64gather_epi32): Likewise.
14751 * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
14752 * config/i386/ia32intrin.h (__writeeflags): Likewise.
14753 * config/i386/pkuintrin.h (_wrpkru): Likewise.
14754 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
14755 _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
14756 _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
14757 _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
14758 _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
14759 _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
14760 _mm512_mask_prefetch_i64scatter_ps): Likewise.
14761 * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
14762 * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
14763 _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
14764 _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
14765 _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
14766 _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
14767 _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
14768 _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
14769
14770 * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
14771 returning void.
14772 (_fxrstor, _fxsave64, _fxrstor64): Likewise.
14773 * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
14774 Likewise.
14775 * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
14776 * config/i386/pkuintrin.h (_wrpkru): Likewise. Add space after
14777 function name.
14778 (_rdpkru_u32): Add space after function name.
14779
14780 * config/i386/t-i386 (i386-c.o): Don't depend on
14781 i386-builtin-types.inc.
14782 (i386.o): Depend on i386-builtin-types.inc.
14783
14784 2016-08-19 Matthew Wahab <matthew.wahab@arm.com>
14785
14786 PR target/77281
14787 * config/arm/arm.c (neon_valid_immediate): Delete declaration.
14788 Use const_vec_duplicate to check for duplicated elements.
14789
14790 2016-08-19 Richard Biener <rguenther@suse.de>
14791
14792 PR tree-optimization/77290
14793 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14794 Fix flag_tree_parallelize_loops check.
14795
14796 2016-08-19 Richard Biener <rguenther@suse.de>
14797
14798 * match.pd (x | 0 -> x): Add.
14799
14800 2016-08-19 Richard Biener <rguenther@suse.de>
14801
14802 PR tree-optimization/77286
14803 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
14804 Deal with virtual PHIs being out-of-order.
14805
14806 2016-08-18 David Malcolm <dmalcolm@redhat.com>
14807
14808 * doc/invoke.texi (fverbose-asm): Note that source code lines
14809 are emitted, and provide an example.
14810 * final.c (asm_show_source): New function.
14811 (final_scan_insn): Call asm_show_source.
14812
14813 2016-08-18 David Malcolm <dmalcolm@redhat.com>
14814
14815 * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
14816 param with diagnostic_kind.
14817 (class colorizer): Similarly replace field m_diagnostic with
14818 m_diagnostic_kind.
14819 (colorizer::colorizer): Replace diagnostic
14820 param with diagnostic_kind.
14821 (colorizer::begin_state): Update for above field change.
14822 (layout::layout): Replace diagnostic param with rich_location *
14823 and diagnostic_kind.
14824 (diagnostic_show_locus): Replace diagnostic param with richloc
14825 and diagnostic_kind.
14826 (class selftest::test_diagnostic_context): New class.
14827 (selftest::test_diagnostic_show_locus_unknown_location): New
14828 function.
14829 (selftest::test_one_liner_simple_caret): New function.
14830 (selftest::test_one_liner_caret_and_range): New function.
14831 (selftest::test_one_liner_multiple_carets_and_ranges): New
14832 function.
14833 (selftest::test_one_liner_fixit_remove): New function.
14834 (selftest::test_one_liner_fixit_replace): New function.
14835 (selftest::test_diagnostic_show_locus_one_liner): New function.
14836 (selftest::diagnostic_show_locus_c_tests): Call the new test
14837 functions.
14838 * diagnostic.c (diagnostic_initialize): Initialize
14839 colorize_source_p, show_ruler_p and parseable_fixits_p.
14840 (default_diagnostic_finalizer): Update for change to
14841 diagnostic_show_locus.
14842 (diagnostic_append_note): Likewise.
14843 * diagnostic.h (diagnostic_show_locus): Replace
14844 const diagnostic_info * param with location * and diagnostic_t.
14845
14846 2016-08-18 David Malcolm <dmalcolm@redhat.com>
14847
14848 * input.c (saved_line_table): New global.
14849 (class selftest::temp_line_table): Rename to line_table_test and
14850 move declaration to selftest.h, and drop field m_old_line_table.
14851 (selftest::temp_line_table::temp_line_table): Rename ctor to...
14852 (selftest::line_table_test::line_table_test): ...this. Add a
14853 default ctor. Store current value of line_table within
14854 saved_line_table.
14855 (selftest::temp_line_table::~temp_line_table): Rename dtor to...
14856 (selftest::line_table_test::~line_table_test): ...this, and
14857 restore line_table from the saved_line_table, rather than
14858 m_old_line_table.
14859 (selftest::test_accessing_ordinary_linemaps): Update for above
14860 renaming.
14861 (selftest::test_lexer): Likewise.
14862 (struct selftest::lexer_test): Likewise.
14863 (selftest::lexer_test::lexer_test): Likewise.
14864 (selftest::input_c_tests): Move the looping over test cases from
14865 here into...
14866 (selftest::for_each_line_table_case): New function.
14867 * input.h (saved_line_table): New decl.
14868 * selftest.h (struct selftest::line_table_case): New forward decl.
14869 (class selftest::line_table_test): New class, moved here from
14870 selftest::temp_line_table in input.c, and renamed.
14871 (selftest::for_each_line_table_case): New decl.
14872
14873 2015-08-18 H.J. Lu <hongjiu.lu@intel.com>
14874
14875 PR target/72839
14876 * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
14877
14878 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
14879
14880 PR middle-end/70895
14881 * gimplify.c (omp_add_variable): Adjust/add variable mapping on
14882 enclosing parallel construct for reduction variables on OpenACC loop
14883 directives.
14884
14885 2016-08-18 Pierre-Marie de Rodat <derodat@adacore.com>
14886
14887 * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
14888 (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
14889 -gdwarf-3.
14890 (function_to_dwarf_procedure): Update comment.
14891
14892 2016-08-18 David Malcolm <dmalcolm@redhat.com>
14893
14894 * input.c (diagnostics_file_cache_forcibly_evict_file): New
14895 function.
14896 * input.h (diagnostics_file_cache_forcibly_evict_file): New
14897 declaration.
14898 * selftest.c (selftest::temp_source_file::~temp_source_file):
14899 Evict m_filename from the diagnostic file cache.
14900
14901 2016-08-18 Richard Biener <rguenther@suse.de>
14902
14903 * tree-pass.h (make_pass_materialize_all_clones): Declare.
14904 * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
14905 make_pass_materialize_all_clones): New simple IPA pass encapsulating
14906 clone materialization.
14907 * passes.def (all_late_ipa_passes): Start with
14908 pass_materialize_all_clones.
14909 * cgraphunit.c (symbol_table::compile): Remove call to
14910 materialize_all_clones.
14911 * tree-into-ssa.c: Include statistics.h.
14912 (update_ssa): Count number of times we do incremental/rewrite
14913 SSA update.
14914
14915 2016-08-18 Richard Biener <rguenther@suse.de>
14916
14917 PR tree-optimization/77282
14918 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14919 When doing auto-parallelizing also prevent use of PHIs that
14920 carry dependences across loop backedges.
14921
14922 2016-08-18 Tamar Christina <tamar.christina@arm.com>
14923 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14924
14925 * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
14926
14927 2016-08-18 Richard Biener <rguenther@suse.de>
14928
14929 * ssa-iterators.h (ssa_vuse_operand): New inline.
14930 * tree-if-conv.c (ifc_temp_var): Update virtual operand.
14931 (predicate_all_scalar_phis): Use remove_phi_node to remove
14932 phi nodes predicated. Delay removing virtual PHIs.
14933 (predicate_mem_writes): Update virtual operands.
14934 (combine_blocks): Likewise. Propagate out remaining virtual PHIs.
14935 (tree_if_conversion): Do not rewrite virtual SSA form.
14936 * tree-phinodes.c (release_phi_node): Make static.
14937 * tree-phinodes.h (release_phi_node): Remove.
14938
14939 2016-08-18 Jakub Jelinek <jakub@redhat.com>
14940
14941 * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
14942 codes that appear in bdesc_* arrays, instead include i386-builtin.def
14943 twice to define those.
14944 (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
14945 bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
14946 bdesc_multi_arg): Define by including i386-builtin.def the third time.
14947 * config/i386/i386-builtin.def: New file.
14948
14949 2016-08-17 David Malcolm <dmalcolm@redhat.com>
14950
14951 * input.c (get_source_range_for_char): Rename to...
14952 (selftest::get_source_range_for_char): ...this, and move within
14953 the #if CHECKING_P guard.
14954 (get_num_source_ranges_for_substring): Rename to...
14955 (selftest::get_num_source_ranges_for_substring): ...this, move
14956 within the #if CHECKING_P guard, and make static.
14957 (selftest::assert_num_substring_ranges): Initialize
14958 actual_num_ranges.
14959
14960 2016-08-18 Alan Modra <amodra@gmail.com>
14961
14962 PR rtl-optimization/72771
14963 * reload.c (find_reloads): Don't assume that a subreg mem is OK
14964 when find_reloads_toplev returns address_reloaded==-1.
14965 (alternative_allows_const_pool_ref): Update comment.
14966
14967 2015-08-17 Alan Hayward <alan.hayward@arm.com>
14968
14969 PR tree-optimization/71752
14970 * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
14971 * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
14972
14973 2016-08-17 Jakub Jelinek <jakub@redhat.com>
14974
14975 * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
14976 instead of testing ECF_NORETURN bit in gimple_call_flags.
14977 * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
14978 * predict.c (tree_bb_level_predictions): Likewise.
14979 * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
14980
14981 PR middle-end/77259
14982 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
14983 turning a call into __builtin_unreachable-like noreturn call, adjust
14984 gimple_call_set_fntype.
14985 * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
14986 gimple_call_fntype has void return type.
14987
14988 2016-08-17 Chung-Lin Tang <cltang@codesourcery.com>
14989
14990 * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
14991 maybe_lookup_decl, to handle nested acc loop directives.
14992
14993 2016-08-17 Richard Biener <rguenther@suse.de>
14994
14995 PR tree-optimization/76490
14996 * tree-vrp.c (update_value_range): Preserve overflow infinities
14997 when intersecting with ranges from get_range_info.
14998 (operand_less_p): Handle overflow infinities correctly.
14999 (value_range_constant_singleton): Use vrp_operand_equal_p
15000 to handle overflow max/min correctly.
15001 (vrp_valueize): Likewise.
15002 (union_ranges): Likewise.
15003 (intersect_ranges): Likewise.
15004 (vrp_visit_phi_node): Improve iteration limitation to only
15005 apply when we'll possibly re-visit the PHI via a changed argument
15006 on the backedge.
15007
15008 2016-08-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
15009
15010 * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
15011 (MULTILIB_REQUIRED): This by specifying multilib needing to be built
15012 rather than those that should not be built.
15013
15014 2016-08-17 Stanislaw Halik <sthalik@misaki.pl>
15015
15016 PR target/66488
15017 * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
15018
15019 2016-08-17 Richard Biener <rguenther@suse.de>
15020
15021 * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
15022 (verify_vssa): New function verifying virtual SSA form.
15023 (verify_ssa): Call it.
15024 * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
15025 Do not apply loop-closed SSA handling to virtuals.
15026 * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
15027 * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
15028 when rewriting their symbol.
15029 (prepare_def_site_for): Likewise.
15030 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
15031 operands of moved stmts.
15032
15033 2016-08-17 Richard Biener <rguenther@suse.de>
15034
15035 PR tree-optimization/23855
15036 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
15037 (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
15038 find guards to hoist. Do not update SSA form but rewrite virtuals
15039 into loop closed SSA.
15040 (find_loop_guard): Adjust to skip already hoisted guards. Do
15041 not mark virtuals for renaming or update SSA form.
15042
15043 2016-08-17 Martin Liska <mliska@suse.cz>
15044
15045 * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
15046 a LONG_LONG_TYPE_SIZE comparison.
15047 * gcov-io.h: Remove macro definitions.
15048 * tree-profile.c (gimple_gen_edge_profiler): Replace usage
15049 of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
15050 comparison.
15051
15052 2016-08-16 Jakub Jelinek <jakub@redhat.com>
15053
15054 * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
15055 that builtins not mentioned in bdesc_* arrays come first, then
15056 the ones mentioned in bdesc_* arrays in the order they appear in
15057 the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
15058 IX86_BUILTIN__BDESC_*_LAST enumerator.
15059 (bdesc_mpx): Fix up a comment typo.
15060 (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
15061 __builtin_ia32_vpcomneu[bwdq] builtins.
15062 (BDESC_VERIFY, BDESC_VERIFYS): Define.
15063 (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
15064 enum ix86_builtins ordering.
15065 (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
15066 for direct bdesc_* array member access instead of searching all the
15067 arrays until an fcode match is found.
15068
15069 2016-08-16 Uros Bizjak <ubizjak@gmail.com>
15070
15071 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
15072 pattern as define_insn_and_split. Split insn before reload to
15073 ashl<mode>3_1.
15074 (*<shift_insn><mode>3_mask): Ditto. Split insn before reload to
15075 <shift_insn><mode>3_1.
15076 (*<rotate_insn><mode>3_mask): Ditto. Split insn before reload to
15077 <rotate_insn><mode>3_1.
15078
15079 2016-08-16 David Malcolm <dmalcolm@redhat.com>
15080
15081 PR c/72857
15082 * input.c (get_source_range_for_substring): Rename to...
15083 (get_source_location_for_substring): ...this, adding param
15084 "caret_idx", and converting output param from source_range * to
15085 location_t *.
15086 (get_source_range_for_char): New function.
15087 (get_num_source_ranges_for_substring): Update comment to reflect
15088 above renaming.
15089 (assert_char_at_range): Update to use get_source_range_for_char
15090 rather than get_source_range_for_substring.
15091 (test_lexer_string_locations_concatenation_2): Likewise.
15092 * substring-locations.h (get_source_range_for_substring): Rename
15093 to...
15094 (get_source_location_for_substring): ...this, and adding param
15095 "caret_idx", and converting output param from source_range * to
15096 location_t *.
15097
15098 2016-08-16 David Malcolm <dmalcolm@redhat.com>
15099
15100 * input.c (class selftest::temp_source_file): Move to
15101 selftest.h.
15102 (selftest::temp_source_file::temp_source_file): Move to
15103 selftest.c.
15104 (selftest::temp_source_file::~temp_source_file): Likewise.
15105 * selftest.c (selftest::temp_source_file::temp_source_file): Move
15106 here from input.c.
15107 (selftest::temp_source_file::~temp_source_file): Likewise.
15108 * selftest.h (class selftest::temp_source_file): Move here from
15109 input.c
15110
15111 2016-08-16 Jakub Jelinek <jakub@redhat.com>
15112
15113 PR target/71910
15114 * tree-cfg.c (execute_fixup_cfg): Add node variable, use it. Before
15115 inlining, add cgraph edge for the added __builtin_unreachable call.
15116
15117 PR middle-end/67485
15118 * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
15119 only cast it to SHWI for the final comparison.
15120
15121 2016-08-16 Martin Liska <mliska@suse.cz>
15122
15123 PR gcov-profile/36412
15124 * doc/gcov.texi: Document --hash-filenames(-x).
15125 * gcov.c (print_usage): Add the option.
15126 (process_args): Process the option, sort options alphabetically.
15127 (md5sum_to_hex): New function.
15128 (make_gcov_file_name): Do the md5sum and append it to a
15129 filename.
15130
15131 2016-08-16 Bin Cheng <bin.cheng@arm.com>
15132
15133 PR tree-optimization/69848
15134 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
15135 and swtich operands to avoid additional NOT instruction.
15136 (vcond<v_cmp_mixed><mode>): Ditto.
15137 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
15138
15139 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
15140
15141 * doc/install.texi (*-*-solaris2*): Adjust latest change.
15142
15143 2016-08-16 Richard Biener <rguenther@suse.de>
15144
15145 PR tree-optimization/76783
15146 * tree-ssa-propagate.c (ssa_prop_init): Use RPO order. Clear
15147 BB visited flags at start.
15148
15149 2016-08-16 Bin Cheng <bin.cheng@arm.com>
15150
15151 PR tree-optimization/72817
15152 PR tree-optimization/73450
15153 * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
15154 multiple_of_p for adjusted IV.base.
15155
15156 2016-08-15 Uros Bizjak <ubizjak@gmail.com>
15157
15158 PR target/72867
15159 * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
15160 Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
15161 for !flag_finite_math_only or flag_signed_zeros.
15162 (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
15163 *<code><mode>3_finite<mask_name><round_saeonly_name>. Do not
15164 depend on flag_finite_math_only.
15165 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
15166 New insn pattern.
15167 (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
15168 (*ieee_smin<mode>3): Ditto.
15169 (*ieee_smax<mode>3): Ditto.
15170 * config/i386/mmx.md (mmx_<code>v2sf3): Emit
15171 mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
15172 flag_signed_zeros.
15173 (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite. Do not
15174 depend on flag_finite_math_only.
15175 (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
15176 (*mmx_<code>v2sf3): Remove.
15177 * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
15178 * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
15179 flag_signed_zeros instead of !flag_unsafe_math_optimizations.
15180
15181 2016-08-15 Segher Boessenkool <segher@kernel.crashing.org>
15182
15183 PR rtl-optimization/73650
15184 * lra-constraints.c (simple_move_p): If the insn is multiple_sets
15185 it is not a simple move.
15186
15187 2016-08-15 Martin Liska <mliska@suse.cz>
15188
15189 PR driver/72765
15190 * gcc.c (do_spec_1): Call save_string with the right size.
15191 (save_string): Do an assert about string we copy.
15192
15193 2016-08-15 Richard Biener <rguenther@suse.de>
15194
15195 * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
15196 * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
15197 TV_MACH_DEP.
15198 (pass_data_stv): Likewise.
15199
15200 2016-08-15 Richard Biener <rguenther@suse.de>
15201
15202 PR tree-optimization/73434
15203 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
15204 TBAA info on the base when forwarding a non-invariant address.
15205
15206 2016-08-15 Jakub Jelinek <jakub@redhat.com>
15207
15208 * dwarf2out.c (struct checksum_attributes): Add
15209 at_string_length_bit_size and at_string_length_byte_size fields.
15210 (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
15211 and DW_AT_string_length_byte_size.
15212 (die_checksum_ordered): Handle at_string_length_bit_size and
15213 at_string_length_byte_size.
15214 (gen_array_type_die): For dwarf_version >= 5 emit
15215 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
15216 (adjust_string_types): For dwarf_version >= 5 remove
15217 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
15218 (resolve_addr): Likewise.
15219
15220 PR debug/71906
15221 * dwarf2out.c (string_types): New variable.
15222 (gen_array_type_die): Change early_dwarf handling of
15223 DW_AT_string_length, create DW_OP_call4 referencing the
15224 length var temporarily. Handle parameters that are pointers
15225 to string length.
15226 (adjust_string_types): New function.
15227 (gen_subprogram_die): Temporarily set string_types to local var,
15228 call adjust_string_types if needed.
15229 (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
15230 New functions.
15231 (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
15232
15233 2016-08-15 Eric Botcazou <ebotcazou@adacore.com>
15234
15235 * doc/install.texi (*-*-solaris2*): Fix version number and document
15236 requirement on GNU make for building libjava with the Solaris linker.
15237
15238 2016-08-15 Martin Liska <mliska@suse.cz>
15239 Jakub Jelinek <jakub@redhat.com>
15240
15241 PR tree-optimization/72824
15242 * tree-loop-distribution.c (const_with_all_bytes_same)
15243 <case VECTOR_CST>: Fix a typo.
15244
15245 2016-08-14 Uros Bizjak <ubizjak@gmail.com>
15246
15247 PR target/76342
15248 * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
15249 Renamed from _mm512_undefined_si512.
15250 (_mm_undefined_si512): New definition.
15251
15252 2016-08-13 Richard Biener <rguenther@suse.de>
15253
15254 * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
15255 into PHIs and update the lattice for its def.
15256
15257 2016-08-12 Jakub Jelinek <jakub@redhat.com>
15258
15259 PR c/71512
15260 * ubsan.c (instrument_si_overflow): Pass true instead of false
15261 to gsi_replace.
15262 (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
15263 of bbs. Return TODO_cleanup_cfg if any returned true.
15264
15265 2016-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
15266
15267 * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
15268 ISA 3.0 MTVSRDD instruction.
15269 (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
15270 vecperm.
15271
15272 2016-08-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
15273
15274 PR tree-optimization/71083
15275 * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
15276 bitfield access when possible.
15277
15278 2016-08-12 Patrick Palka <ppalka@gcc.gnu.org>
15279
15280 PR middle-end/71654
15281 * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
15282 sign-changing cast from a shorter unsigned type to a wider
15283 signed type.
15284
15285 2016-08-12 Jakub Jelinek <jakub@redhat.com>
15286
15287 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
15288 vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
15289 vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
15290
15291 2016-08-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15292
15293 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
15294 Correct costs for vec_construct.
15295
15296 2016-08-12 Bin Cheng <bin.cheng@arm.com>
15297
15298 PR tree-optimization/69848
15299 * tree-vectorizer.h (enum vect_def_type): New condition reduction
15300 type CONST_COND_REDUCTION.
15301 * tree-vect-loop.c (vectorizable_reduction): Support new condition
15302 reudction type CONST_COND_REDUCTION.
15303
15304 2016-08-12 Richard Biener <rguenther@suse.de>
15305
15306 PR tree-optimization/57326
15307 * tree-ssa-pre.c (fully_constant_expression): Handle simplification
15308 returning an SSA name.
15309 (phi_translate_1): When fully_constant_expression returns a NAME
15310 make sure we have a leader for it.
15311
15312 2016-08-12 Martin Liska <mliska@suse.cz>
15313 Adam Fineman <afineman@afineman.com>
15314
15315 * gcov.c (process_file): Create .gcov file when .gcda
15316 file is missing.
15317
15318 2016-08-12 Marek Polacek <polacek@redhat.com>
15319
15320 PR c/7652
15321 * alias.c (find_base_value): Adjust fall through comment.
15322 * cfgexpand.c (expand_debug_expr): Likewise.
15323 * combine.c (find_split_point): Likewise.
15324 (expand_compound_operation): Likewise. Add FALLTHRU.
15325 (make_compound_operation): Adjust fall through comment.
15326 (canon_reg_for_combine): Add FALLTHRU.
15327 (force_to_mode): Adjust fall through comment.
15328 (simplify_shift_const_1): Likewise.
15329 (simplify_comparison): Likewise.
15330 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
15331 FALLTHRU.
15332 * config/aarch64/predicates.md: Likewise.
15333 * config/i386/i386.c (function_arg_advance_32): Likewise.
15334 (ix86_gimplify_va_arg): Likewise.
15335 (print_reg): Likewise.
15336 (ix86_print_operand): Likewise.
15337 (ix86_build_const_vector): Likewise.
15338 (ix86_expand_branch): Likewise.
15339 (ix86_sched_init_global): Adjust fall through comment.
15340 (ix86_expand_args_builtin): Add FALLTHRU.
15341 (ix86_expand_builtin): Likewise.
15342 (ix86_expand_vector_init_one_var): Likewise.
15343 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
15344 (rs6000_adjust_cost): Likewise.
15345 (insn_must_be_first_in_group): Likewise.
15346 * config/rs6000/rs6000.md: Likewise. Adjust fall through comment.
15347 * dbxout.c (dbxout_symbol): Adjust fall through comment.
15348 * df-scan.c (df_uses_record): Likewise.
15349 * dojump.c (do_jump): Add FALLTHRU.
15350 * dwarf2out.c (mem_loc_descriptor): Likewise. Adjust fall through
15351 comment.
15352 (resolve_args_picking_1): Adjust fall through comment.
15353 (loc_list_from_tree_1): Likewise.
15354 * expmed.c (make_tree): Likewise.
15355 * expr.c (expand_expr_real_2): Add FALLTHRU.
15356 (expand_expr_real_1): Likewise. Adjust fall through comment.
15357 * fold-const.c (const_binop): Adjust fall through comment.
15358 (fold_truth_not_expr): Likewise.
15359 (fold_cond_expr_with_comparison): Add FALLTHRU.
15360 (fold_binary_loc): Likewise.
15361 (contains_label_1): Adjust fall through comment.
15362 (multiple_of_p): Likewise.
15363 * gcov-tool.c (process_args): Add FALLTHRU.
15364 * genattrtab.c (check_attr_test): Likewise.
15365 (write_test_expr): Likewise.
15366 * genconfig.c (walk_insn_part): Likewise.
15367 * genpreds.c (validate_exp): Adjust fall through comment.
15368 (needs_variable): Likewise.
15369 * gensupport.c (get_alternatives_number): Add FALLTHRU.
15370 (subst_dup): Likewise.
15371 * gimple-pretty-print.c (dump_gimple_assign): Likewise.
15372 * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
15373 (gimplify_scan_omp_clauses): Add FALLTHRU.
15374 (goa_stabilize_expr): Likewise.
15375 * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
15376 through comment.
15377 * hsa-gen.c (get_address_from_value): Likewise.
15378 * ipa-icf.c (sem_function::hash_stmt): Likewise.
15379 * ira.c (ira_setup_alts): Add FALLTHRU.
15380 * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
15381 comment.
15382 * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
15383 * opts.c (common_handle_option): Likewise.
15384 * read-rtl.c (read_rtx_code): Likewise.
15385 * real.c (round_for_format): Likewise.
15386 * recog.c (asm_operand_ok): Likewise.
15387 * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
15388 * reload1.c (set_label_offsets): Likewise.
15389 (eliminate_regs_1): Likewise.
15390 (reload_reg_reaches_end_p): Likewise.
15391 * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
15392 (rtx_cost): Likewise.
15393 * sched-rgn.c (is_exception_free): Likewise.
15394 * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
15395 * stor-layout.c (int_mode_for_mode): Likewise.
15396 * toplev.c (print_to_asm_out_file): Likewise.
15397 (print_to_stderr): Likewise.
15398 * tree-cfg.c (gimple_verify_flow_info): Likewise.
15399 * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
15400 (chrec_fold_multiply): Likewise.
15401 (evolution_function_is_invariant_rec_p): Likewise.
15402 (for_each_scev_op): Likewise.
15403 * tree-data-ref.c (siv_subscript_p): Likewise.
15404 (get_references_in_stmt): Likewise.
15405 * tree.c (find_placeholder_in_expr): Adjust fall through comment.
15406 (substitute_in_expr): Likewise.
15407 (type_cache_hasher::equal): Likewise.
15408 (walk_type_fields): Likewise.
15409 * var-tracking.c (adjust_mems): Add FALLTHRU.
15410 (set_dv_changed): Adjust fall through comment.
15411 * varasm.c (default_function_section): Add FALLTHRU.
15412
15413 2016-08-12 Marek Polacek <polacek@redhat.com>
15414
15415 PR c/7652
15416 * tree-complex.c (expand_complex_division): Add missing break.
15417
15418 2016-08-12 Richard Biener <rguenther@suse.de>
15419
15420 * passes.c (execute_todo): Do not push/pop TV_TODO.
15421 (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
15422 (execute_one_pass): Likewise.
15423 * common.opt (ftime-report-details): New switch.
15424 * doc/invoke.texi (ftime-report-details): Document.
15425 * timevar.h (timer::print_row): Adjust signature.
15426 (timer::all_zero): New static helper.
15427 (timer::child_map_t): New typedef.
15428 (timer::time_var_def): Add children field.
15429 * timevar.c (timer::named_items::print): Adjust.
15430 (timer::~timer): Free timevar recorded children.
15431 (timer::pop_internal): When -ftime-report-details record
15432 time spent in sub-timevars.
15433 (timer::print_row): Adjust.
15434 (timer::print): Print sub-timevar stats, use all_zero.
15435 * timevar.def (TV_TODO): Remove.
15436
15437 2016-08-12 Richard Biener <rguenther@suse.de>
15438
15439 PR tree-optimization/72851
15440 * tree-ssa-propagate.c: Include cfganal.h. Rewrite block and stmt
15441 worklists to use bitmaps indexed in execution order.
15442 (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
15443 bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
15444 (cfg_blocks): Make a bitmap.
15445 (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
15446 New globals.
15447 (cfg_blocks_empty_p): Adjust.
15448 (cfg_blocks_add): Likewise.
15449 (cfg_blocks_get): Likewise.
15450 (add_ssa_edge): Likewise.
15451 (add_control_edge): Likewise.
15452 (simulate_stmt): Likewise.
15453 (process_ssa_edge_worklist): Likewise.
15454 (simulate_block): Likewise.
15455 (ssa_prop_init): Compute PRE order and stmt UIDs.
15456 (ssa_prop_fini): Adjust.
15457 (ssa_propagate): Adjust.
15458
15459 2016-08-12 Richard Biener <rguenther@suse.de>
15460
15461 * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
15462 the currently executable edges have fixed ranges. Always
15463 go through update_value_range.
15464
15465 2016-08-12 Alexandre Oliva <aoliva@redhat.com>
15466
15467 PR debug/63240
15468 * langhooks-def.h
15469 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
15470 (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
15471 (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
15472 (LANG_HOOKS_DECLS): Add it.
15473 * langhooks.h (struct lang_hooks_for_decls): Add
15474 function_decl_defaulted. Const_tree-ify
15475 function_decl_explicit_p and function_decl_deleted_p.
15476 * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
15477 attribute. Add DW_AT_deleted instead of DW_AT_GNU_deleted,
15478 also at strict DWARF v5.
15479
15480 PR debug/55641
15481 * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
15482 TYPE_QUAL_CONST in reference-typed decls.
15483
15484 PR debug/49366
15485 * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
15486 in DW_OP_pieces, just enough to handle pointers to member
15487 functions.
15488 (gen_remaining_tmpl_value_param_die_attribute): Use a location
15489 expression on DWARFv5 if a constant value doesn't work.
15490
15491 2016-08-11 David Malcolm <dmalcolm@redhat.com>
15492
15493 * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
15494 * selftest.c (selftest::test_assertions): New function.
15495 (selftest::selftest_c_tests): New function.
15496 * selftest.h (selftest::selftest_c_tests): New declaration.
15497
15498 2016-08-11 Richard Biener <rguenther@suse.de>
15499 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15500
15501 PR rtl-optimization/72855
15502 * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
15503
15504 2016-08-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15505
15506 PR target/72863
15507 * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
15508 (vsx_store_<mode>): Likewise.
15509
15510 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
15511
15512 * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
15513 TImode CONST_WIDE_INT store.
15514 (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
15515
15516 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
15517
15518 * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
15519 mode if unaligned SSE load and store are optimal.
15520
15521 2016-08-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
15522
15523 PR tree-optimization/71083
15524 * tree-predcom.c (ref_at_iteration): Correctly align the
15525 reference type.
15526
15527 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15528
15529 * config/s390/s390-builtin-types.def: Add INT128 types.
15530 * config/s390/s390-builtins.def: Add INT128 variants for the add
15531 sub low-level builtins dealing with TImode.
15532 * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
15533 via subreg when expanding a builtin.
15534 * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
15535 UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
15536 Fix comment.
15537 * config/s390/vecintrin.h: Adjust builtin names accordingly.
15538 * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
15539 ("vec_addc<mode>", "vec_addc_u128"): Merge to
15540 "vacc<bhfgq>_<mode>".
15541 ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
15542 ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
15543 ("vec_subc<mode>", "vec_subc_u128"): Merge to
15544 "vscbi<bhfgq>_<mode>".
15545 ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
15546 ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
15547
15548 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15549
15550 * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
15551
15552 2016-08-11 Bin Cheng <bin.cheng@arm.com>
15553
15554 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
15555 unused declaration.
15556 (vcond<v_cmp_mixed><mode>): Ditto.
15557 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
15558
15559 2016-08-11 Bin Cheng <bin.cheng@arm.com>
15560
15561 * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
15562 variable explicitly, also assert on it before use.
15563
15564 2016-08-11 Richard Biener <rguenther@suse.de>
15565
15566 PR tree-optimization/72772
15567 * cfgloopmanip.c (create_preheader): Use split_edge if there
15568 is a single loop entry, avoiding degenerate PHIs.
15569
15570 2016-08-11 Richard Biener <rguenther@suse.de>
15571
15572 * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
15573 unconditional TODO_cleanup_cfg.
15574 (pass_thread_jumps::execute): Initialize loops, perform a CFG
15575 cleanup only if we threaded a jump.
15576
15577 2016-08-11 Alan Modra <amodra@gmail.com>
15578
15579 PR target/71680
15580 * lra-constraints.c (simplify_operand_subreg): Allow subreg
15581 mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
15582 slow. Emit two reloads for slow mem case, first loading in
15583 fast innermode, then converting to required mode.
15584
15585 2016-08-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
15586
15587 * config/rs6000/altivec.h (vec_extract_exp): New macro.
15588 (vec_extract_sig): New macro.
15589 (vec_insert_exp): New macro.
15590 (vec_test_data_class): New macro.
15591 (scalar_extract_exp): New macro.
15592 (scalar_extract_sig): New macro.
15593 (scalar_insert_exp): New macro.
15594 (scalar_test_data_class): New macro.
15595 (scalar_test_neg): New macro.
15596 (scalar_cmp_exp_gt): New macro.
15597 (scalar_cmp_exp_lt): New macro.
15598 (scalar_cmp_exp_eq): New macro.
15599 (scalar_cmp_exp_unordered): New macro.
15600 * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
15601 to enforce constraint that operand is a 7-bit unsigned literal.
15602 * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
15603 for power9 built-ins.
15604 (BU_P9V_VSX_2): Likewise.
15605 (BU_P9V_64BIT_VSX_2): Likewise.
15606 (VSEEDP): Add scalar extract exponent support.
15607 (VSEESP): Add scalar extract signature support.
15608 (VSTDCNDP): Add scalar test negative support.
15609 (VSTDCNSP): Likewise.
15610 (VSIEDP): Add scalar insert exponent support.
15611 (VSCEDPGT): Add scalar compare exponent greater than support.
15612 (VSCEDPLT): Add scalar compare exponent less than support.
15613 (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
15614 (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
15615 (VSTDCDP): Add scalar test data class support.
15616 (VSTDCSP): Likewise.
15617 (VSEEDP): Add overload support for scalar extract exponent
15618 operation.
15619 (VSESDP): Add overload support for scalar extract signature
15620 operation.
15621 (VSTDCN): Add overload support for scalar test negative
15622 operation.
15623 (VSTDCNDP): Add overload support for scalar test negative
15624 operation.
15625 (VSTDCNSP): Add overload support for scalar test negative
15626 operation.
15627 (VSIEDP): Add overload support for scalar insert exponent
15628 operation.
15629 (VSTDC): Add overload support for scalar test data class
15630 operation.
15631 (VSTDCDP): Add overload support for scalar test data class
15632 operation.
15633 (VSTDCSP): Add overload support for scalar test data class
15634 opreation.
15635 (VSCEDPGT): Add overload support for scalar compare exponent
15636 greater than operation.
15637 (VSCEDPLT): Add overload support for scalar compare exponent
15638 less than operation.
15639 (VSCEDPEQ): Add overload support for scalar compare exponent
15640 test-for-equality operation.
15641 (VSCEDPUO): Add overload support for scalar compare exponent
15642 test-for-unordered operation.
15643 (VEEDP): Add vector extract exponent support.
15644 (VEESP): Likewise.
15645 (VESDP): Add vector extract significand support.
15646 (VESSP): Likewise.
15647 (VIEDP): Add vector insert exponent support.
15648 (VIESP): Likewise.
15649 (VTDCDP): Add vector test data class support.
15650 (VTDCSP): Likewise.
15651 (VES): Add overload support for vector extract significand operation.
15652 (VESDP): Likewise.
15653 (VESSP): Likewise
15654 (VEE): Add overload support for vector extract exponent operation.
15655 (VEEDP): Likewise.
15656 (VEESP): Likewise.
15657 (VTDC): Add overload support for vector test data class operation.
15658 (VTDCDP): Likewise.
15659 (VTDCSP): Likewise.
15660 (VIE): Add overload support for vector insert exponent operation.
15661 (VIEDP): Likewise.
15662 (VIESP): Likewise.
15663 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15664 overloaded binary floating point functions.
15665 (altivec_resolve_overloaded_builtin): Improve error messages to
15666 distinguish between functions not supported in the current
15667 compiler configuration and functions that were invoked with an
15668 invalid parameter combination, and include the built-in function
15669 name in both error messages.
15670 * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
15671 New prototype.
15672 * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
15673 function.
15674 (rs6000_expand_binop_builtin): Add check to enforce that argument
15675 2 of the test data class operations is a 7-bit unsigned literal.
15676 (rs6000_invalid_builtin): Add code to issue an error message if a
15677 built-in function that requires the power9_vector and -m32
15678 command-line options is compiled without these options.
15679 * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
15680 (UNSPEC_VSX_SXSIGDP): New value.
15681 (UNSPEC_VSX_SXSIGPDP): New value.
15682 (UNSPEC_VSX_SIEXPDP): New value.
15683 (UNSPEC_VSX_SCMPEXPDP): New value.
15684 (UNSPEC_VSX_STSTDC): New value.
15685 (UNSPEC_VSX_VXEXP): New value.
15686 (UNSPEC_VSX_VXSIG): New value.
15687 (UNSPEC_VSX_VIEXP): New value.
15688 (UNSPEC_VSX_VTSTDC): New value.
15689 (xsxexpdp): New insn for scalar extract exponent.
15690 (xsxsigdp): New insn for scalar extract significand.
15691 (xsiexpdp): New insn for scalar insert exponent.
15692 (xscmpexpdp_<code>): New expansion for scalar compare exponents.
15693 (*xscmpexpdp): New insn for scalar compare exponents.
15694 (xststdc<Fvsx): New expansion for both single- and
15695 double-precision scalar test data class operations.
15696 (xststdcneg<Fvsx>): New expansion for both single- and
15697 double-precision scalar test for negative value operations.
15698 (*xststdc<Fvsx>): New insn for scalar test data class
15699 operation.
15700 (xvxexp<VSs>): New insn for single- and double-precision
15701 vector extract exponent operation.
15702 (xvxsig<VSs>): New insn for single- and double-precision
15703 vector extract significand operation.
15704 (xviexp<VSs>): New insn for single- and double-precision
15705 vector insert exponent operation.
15706 (xvtstdc<VSs>): New insn for single- and double-precision
15707 vector test data class operation.
15708 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
15709 built-in functions to represent the Power9 binary floating-point
15710 support instructions.
15711
15712 2016-08-10 bin cheng <bin.cheng@arm.com>
15713
15714 * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
15715
15716 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
15717 Renlin Li <renlin.li@arm.com>
15718 Bin Cheng <bin.cheng@arm.com>
15719
15720 * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
15721 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
15722 gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
15723 (aarch64_vcond_internal<mode><mode>): Delete pattern.
15724 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
15725 (vcond<v_cmp_result><mode>): Ditto.
15726 (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
15727 (vcondu<mode><mode>): Ditto.
15728 (vcond<v_cmp_mixed><mode>): New pattern.
15729 (vcondu<mode><v_cmp_mixed>): New pattern.
15730 (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
15731 of aarch64_vcond_internal.
15732
15733 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
15734 Renlin Li <renlin.li@arm.com>
15735 Bin Cheng <bin.cheng@arm.com>
15736
15737 * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
15738 (vec_cmp<mode><v_cmp_result>): New pattern.
15739 (vec_cmpu<mode><mode>): New pattern.
15740 (vcond_mask_<mode><v_cmp_result>): New pattern.
15741
15742 2016-08-10 Yuri Rumyantsev <ysrumyan@gmail.com>
15743
15744 PR tree-optimization/71734
15745 * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
15746 REF_LOOP, invoke ref_indep_loop_p_1.
15747 (outermost_indep_loop): Pass LOOP argumnet where REF was defined
15748 to ref_indep_loop_p.
15749 (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
15750 combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
15751 is inside LOOP, do not cache dpendence value for loops with
15752 non-zero SAFELEN.
15753 (ref_indep_loop_p_2): Delete function.
15754 (can_sm_ref_p): Pass LOOP as additional argument to
15755 ref_indep_loop_p.
15756
15757 2016-08-10 Michael Meissner <meissner@linux.vnet.ibm.com>
15758
15759 PR target/72853
15760 * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
15761 being an offsettable address.
15762
15763 2016-08-10 Martin Liska <mliska@suse.cz>
15764
15765 PR gcov-profile/58306
15766 * tree-profile.c (gimple_init_edge_profiler): Create conditionally
15767 atomic variants of profile update functions.
15768
15769 2016-08-10 Martin Liska <mliska@suse.cz>
15770
15771 Cherry picked (and modified) from google-4_7 branch
15772 2012-12-26 Rong Xu <xur@google.com>
15773 * common.opt (fprofile-update): Add new flag.
15774 * coretypes.h: Define enum profile_update.
15775 * doc/invoke.texi: Document -fprofile-update.
15776 * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
15777 GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
15778 * tree-profile.c (gimple_init_edge_profiler): Generate
15779 also atomic profiler update.
15780 (gimple_gen_edge_profiler): Likewise.
15781
15782 2016-08-10 David Malcolm <dmalcolm@redhat.com>
15783
15784 * toplev.c (finalize): Set aux_info_file, asm_out_file, and
15785 stack_usage_file to NULL after fclose calls.
15786
15787 2016-08-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
15788
15789 PR target/71873
15790 * reload.c (push_reload): Compute subreg_in_class for
15791 subregs of constants and plus expressions. Remove special
15792 handling of SYMBOL_REFs.
15793
15794 2016-08-10 Alan Modra <amodra@gmail.com>
15795
15796 PR target/71680
15797 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
15798 SImode for TARGET_E500_DOUBLE when given SImode.
15799
15800 2016-08-09 David Wohlferd <dw@LimeGreenSocks.com>
15801
15802 * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
15803 unused variable __O.
15804
15805 2016-08-09 Martin Liska <mliska@suse.cz>
15806
15807 * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
15808 _gcov_reset to __gcov_reset.
15809 * doc/gcov-tool.texi: Fix typo.
15810
15811 2016-08-09 Martin Liska <mliska@suse.cz>
15812
15813 * value-prof.c (gimple_divmod_values_to_profile): Do not
15814 instrument MOD histogram if a value is not a SSA name.
15815
15816 2016-08-09 Martin Liska <mliska@suse.cz>
15817
15818 * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
15819 values.
15820
15821 2016-08-09 Renlin Li <renlin.li@arm.com>
15822
15823 PR middle-end/64971
15824 * calls.c (prepare_call_address): Convert funexp to Pmode when
15825 necessary.
15826 * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
15827 (sibcall_value): Likewise.
15828
15829 2016-08-09 Marek Polacek <polacek@redhat.com>
15830
15831 PR c/7652
15832 * cselib.c (cselib_expand_value_rtx_1): Add return.
15833 * gengtype.c (dbgprint_count_type_at): Likewise.
15834 * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
15835 * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
15836
15837 2016-08-09 Martin Jambor <mjambor@suse.cz>
15838
15839 PR ipa/71981
15840 * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
15841 if instance is a MEM_REF.
15842
15843 2016-08-09 Uros Bizjak <ubizjak@gmail.com>
15844
15845 PR target/72843
15846 * config/i386/i386.md (*movtf_internal): Use
15847 lra_in_progress || reload_completed instead of !can_create_pseudo_p
15848 in the insn constraint.
15849 (*movxf_internal): Ditto.
15850 (*movdf_internal): Ditto.
15851 (*movsf_internal): Ditto.
15852
15853 2016-08-09 Bin Cheng <bin.cheng@arm.com>
15854
15855 PR tree-optimization/72772
15856 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
15857 for expanded base.
15858
15859 2016-08-09 Bin Cheng <bin.cheng@arm.com>
15860
15861 PR tree-optimization/72772
15862 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
15863 parameter STOP.
15864 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
15865 parameter STOP and update calls. Move expand_simple_operations
15866 function call from here...
15867 (simplify_using_initial_conditions): ...to here. Delete parameter
15868 STOP.
15869 (tree_simplify_using_condition): Delete parameter STOP.
15870 * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
15871 simplify_using_initial_conditions.
15872
15873 2016-08-09 Matthew Fortune <matthew.fortune@imgtec.com>
15874
15875 PR c/65345
15876 * config/mips/mips.c (mips_atomic_assign_expand_fenv):
15877 Use create_tmp_var_raw instead of create_tmp_var.
15878
15879 2016-08-09 Richard Biener <rguenther@suse.de>
15880
15881 * tree-ssa-threadbackward.c (profitable_jump_thread_path):
15882 Treat same SSA names related.
15883
15884 2016-08-09 Jakub Jelinek <jakub@redhat.com>
15885
15886 PR tree-optimization/72824
15887 * tree-loop-distribution.c (const_with_all_bytes_same): Verify
15888 real_zerop is not negative.
15889
15890 2016-08-09 Richard Biener <rguenther@suse.de>
15891
15892 PR tree-optimization/71802
15893 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
15894 all merge opportunities with the predecessor.
15895
15896 2016-08-09 Richard Biener <rguenther@suse.de>
15897
15898 PR ipa/68273
15899 * ipa-prop.c (ipa_modify_formal_parameters): Build
15900 parameter types with natural alignment also for the
15901 over-aligned case.
15902
15903 2016-08-08 Andi Kleen <ak@linux.intel.com>
15904
15905 * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
15906
15907 2016-08-08 David Malcolm <dmalcolm@redhat.com>
15908
15909 PR c/64955
15910 * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
15911 do-nothing langhook.
15912 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
15913 * langhooks.h (struct lang_hooks): Add run_lang_selftests.
15914 * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
15915 (selftest::run_tests): Call lang_hooks.run_lang_selftests.
15916
15917 2016-08-08 David Malcolm <dmalcolm@redhat.com>
15918
15919 PR bootstrap/72844
15920 * input.c: Ensure that HAVE_ICONV is defined.
15921
15922 2016-08-08 Jakub Jelinek <jakub@redhat.com>
15923
15924 PR middle-end/72781
15925 * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
15926 private vars for lastprivate and for linear iterator.
15927
15928 PR middle-end/68762
15929 * omp-simd-clone.c: Include varasm.h.
15930 (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
15931 DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
15932 DECL_ONE_ONLY call make_decl_one_only. Fix up spelling in comment and
15933 update function name.
15934
15935 2016-07-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
15936
15937 * config/avr/driver-avr.c (specfiles_doc_url): Remove.
15938 (avr_diagnose_devicespecs_error): Remove.
15939 (avr_devicespecs_file): Remove composing absolute path for specfile
15940 and its verbose info. Remove conditions to check specs-file,
15941
15942 2016-08-08 Jakub Jelinek <jakub@redhat.com>
15943
15944 PR rtl-optimization/72821
15945 * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
15946 just return false for them.
15947
15948 2016-08-08 Alan Modra <amodra@gmail.com>
15949
15950 PR target/72771
15951 * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
15952 toc refs created during reload. Update function comment.
15953
15954 2016-08-08 Alan Modra <amodra@gmail.com>
15955
15956 PR target/72802
15957 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
15958 alternatives. Put loads first, then stores, and reg/reg moves
15959 within same class later. Delete attr length.
15960
15961 2016-08-08 Alan Modra <amodra@gmail.com>
15962
15963 PR target/72802
15964 * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
15965 (mem_operand_ds_form): New predicate.
15966 * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
15967 * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
15968 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
15969 * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
15970 (extendsfdf2_fpr): Replace o constraint with wY.
15971
15972 2016-08-07 Jan Hubicka <hubicka@ucw.cz>
15973
15974 * tree-ssa-threadbackward.c: Include tree-inline.h
15975 (profitable_jump_thread_path): Use estimate_num_insns to estimate
15976 size of copied block; for cold paths reduce duplication.
15977 (find_jump_threads_backwards): Remove redundant tests.
15978 (pass_thread_jumps::gate): Enable for -Os.
15979
15980 2016-08-07 Jakub Jelinek <jakub@redhat.com>
15981
15982 PR c/72816
15983 * stor-layout.c (layout_decl): Fix up formatting.
15984 (relayout_decl): Allow DECL to be FIELD_DECL.
15985
15986 2016-08-07 Alan Modra <amodra@gmail.com>
15987
15988 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
15989
15990 2016-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
15991
15992 * data-streamer-in.c (streamer_read_wide_int): New.
15993 (streamer_read_widest_int): Renamed function.
15994 * data-streamer-out.c (streamer_write_wide_int): New
15995 (streamer_write_widest_int): Renamed function.
15996 * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
15997 data-stream-in.c.
15998 (input_cfg): Call renamed function.
15999 * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
16000 data-stream-out.c.
16001 (output_cfg): Call renamed function.
16002 * data-streamer.h: Add declarations.
16003
16004 2016-08-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16005
16006 * tree-ssa-ccp.c (extend_mask): New param sgn.
16007 Remove ORing with wi::mask.
16008 (get_default_value): Adjust call to extend_mask to pass sign.
16009 (evaluate_stmt): Likewise.
16010
16011 2016-08-06 Jakub Jelinek <jakub@redhat.com>
16012
16013 * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
16014 INT64_MAX.
16015
16016 2016-08-06 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16017
16018 * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
16019 transform if operand's type is pointer to function or method.
16020
16021 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
16022
16023 PR tree-optimization/18046
16024 * tree-ssa-threadedge.c: Include cfganal.h.
16025 (simplify_control_statement_condition): If simplifying a
16026 GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
16027 with the dominating ASSERT_EXPR before handing it off to VRP.
16028 Mention that a CASE_LABEL_EXPR may be returned.
16029 (thread_around_empty_blocks): Adjust to handle
16030 simplify_control_statement_condition() returning a
16031 CASE_LABEL_EXPR.
16032 (thread_through_normal_block): Likewise.
16033 * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
16034 a switch statement by trying to determine which case label
16035 will be taken.
16036
16037 2016-08-05 Vladimir Makarov <vmakarov@redhat.com>
16038
16039 PR rtl-optimization/69847
16040 * lra-constraints.c (process_invariant_for_inheritance): Save
16041 pattern instead of src.
16042 (remove_inheritance_pseudos): Use the pattern. Add assert.
16043
16044 2016-08-05 David Malcolm <dmalcolm@redhat.com>
16045
16046 * input.c (string_concat::string_concat): New constructor.
16047 (string_concat_db::string_concat_db): New constructor.
16048 (string_concat_db::record_string_concatenation): New method.
16049 (string_concat_db::get_string_concatenation): New method.
16050 (string_concat_db::get_key_loc): New method.
16051 (class auto_cpp_string_vec): New class.
16052 (get_substring_ranges_for_loc): New function.
16053 (get_source_range_for_substring): New function.
16054 (get_num_source_ranges_for_substring): New function.
16055 (class selftest::lexer_test_options): New class.
16056 (struct selftest::lexer_test): New struct.
16057 (class selftest::ebcdic_execution_charset): New class.
16058 (selftest::ebcdic_execution_charset::s_singleton): New variable.
16059 (selftest::lexer_test::lexer_test): New constructor.
16060 (selftest::lexer_test::~lexer_test): New destructor.
16061 (selftest::lexer_test::get_token): New method.
16062 (selftest::assert_char_at_range): New function.
16063 (ASSERT_CHAR_AT_RANGE): New macro.
16064 (selftest::assert_num_substring_ranges): New function.
16065 (ASSERT_NUM_SUBSTRING_RANGES): New macro.
16066 (selftest::assert_has_no_substring_ranges): New function.
16067 (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
16068 (selftest::test_lexer_string_locations_simple): New function.
16069 (selftest::test_lexer_string_locations_ebcdic): New function.
16070 (selftest::test_lexer_string_locations_hex): New function.
16071 (selftest::test_lexer_string_locations_oct): New function.
16072 (selftest::test_lexer_string_locations_letter_escape_1): New function.
16073 (selftest::test_lexer_string_locations_letter_escape_2): New function.
16074 (selftest::test_lexer_string_locations_ucn4): New function.
16075 (selftest::test_lexer_string_locations_ucn8): New function.
16076 (selftest::uint32_from_big_endian): New function.
16077 (selftest::test_lexer_string_locations_wide_string): New function.
16078 (selftest::uint16_from_big_endian): New function.
16079 (selftest::test_lexer_string_locations_string16): New function.
16080 (selftest::test_lexer_string_locations_string32): New function.
16081 (selftest::test_lexer_string_locations_u8): New function.
16082 (selftest::test_lexer_string_locations_utf8_source): New function.
16083 (selftest::test_lexer_string_locations_concatenation_1): New
16084 function.
16085 (selftest::test_lexer_string_locations_concatenation_2): New
16086 function.
16087 (selftest::test_lexer_string_locations_concatenation_3): New
16088 function.
16089 (selftest::test_lexer_string_locations_macro): New function.
16090 (selftest::test_lexer_string_locations_stringified_macro_argument):
16091 New function.
16092 (selftest::test_lexer_string_locations_non_string): New function.
16093 (selftest::test_lexer_string_locations_long_line): New function.
16094 (selftest::test_lexer_char_constants): New function.
16095 (selftest::input_c_tests): Call the new test functions once per
16096 case within the line_table test matrix.
16097 * input.h (struct string_concat): New struct.
16098 (struct location_hash): New struct.
16099 (class string_concat_db): New class.
16100 * substring-locations.h: New header.
16101
16102 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
16103
16104 PR tree-optimization/72810
16105 * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
16106 the type of the case labels when truncating.
16107
16108 2016-08-05 James Greenhalgh <james.greenhalgh@arm.com>
16109
16110 PR Target/72819
16111 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
16112 (aarch64_fp16_ptr_type_node): Likewise.
16113 * config/aarch64/aarch64-simd-builtins.c
16114 (aarch64_fp16_ptr_type_node): Define.
16115 (aarch64_init_fp16_types): New, refactored out of...
16116 (aarch64_init_builtins): ...here, update to call
16117 aarch64_init_fp16_types.
16118 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
16119 HFmode.
16120 (aapcs_vfp_sub_candidate): Likewise.
16121
16122 2016-08-05 Martin Liska <mliska@suse.cz>
16123 Joshua Cranmer <Pidgeot18@gmail.com>
16124
16125 * gcov.c (line_t::has_block): New function.
16126 (enum loop_type): New enum.
16127 (handle_cycle): New function.
16128 (unblock): Likewise.
16129 (circuit): Likewise.
16130 (get_cycles_count): Likewise.
16131 (accumulate_line_counts): Use new loop detection algorithm.
16132
16133 2016-08-05 Martin Liska <mliska@suse.cz>
16134
16135 * gcov.c (output_intermediate_file): Rename
16136 function_info::line_next to next_file_fn.
16137 (process_file): Likewise.
16138 (read_graph_file): Likewise.
16139 (accumulate_line_counts): Likewise.
16140 (output_lines): Likewise.
16141
16142 2016-08-05 Richard Biener <rguenther@suse.de>
16143
16144 * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
16145 restriction on threading to a loop header.
16146
16147 2016-08-05 Richard Biener <rguenther@suse.de>
16148
16149 * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
16150 * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
16151 adjust loop info accordingly.
16152
16153 2016-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
16154
16155 * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
16156 before folding call to __builtin_constant_p with parameters to false.
16157
16158 2016-08-05 Alan Modra <amodra@gmail.com>
16159
16160 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
16161 code accidentally committed 2016-05-02 providing class when given
16162 NO_REGS.
16163
16164 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
16165
16166 * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
16167 the case label ranges that partially overlap with OP's value
16168 range.
16169
16170 2016-08-04 Uros Bizjak <ubizjak@gmail.com>
16171
16172 PR target/72805
16173 * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
16174 Cast builtin function result to __mmask16 instead of __mmask8.
16175 (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
16176 (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
16177 (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
16178
16179 2016-08-04 David Malcolm <dmalcolm@redhat.com>
16180
16181 * selftest.h (ASSERT_TRUE): Reimplement in terms of...
16182 (ASSERT_TRUE_AT): New macro.
16183 (ASSERT_FALSE): Reimplement in terms of...
16184 (ASSERT_FALSE_AT): New macro.
16185 (ASSERT_STREQ_AT): Fix typo in comment.
16186
16187 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
16188
16189 * gimple.c (preprocess_case_label_vec_for_gimple): When the case
16190 labels are exhaustive, designate the label with the widest
16191 range to be the default label.
16192
16193 2016-08-04 Andrew Pinski <apinski@cavium.com>
16194
16195 * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
16196 (thunderx_tunings): Use thunderx_vector_cost instead of
16197 generic_vector_cost.
16198
16199 2016-08-04 Martin Liska <mliska@suse.cz>
16200
16201 * gcov.c (main): Fix GNU coding style.
16202 (output_intermediate_file): Likewise.
16203 (process_file): Likewise.
16204 (generate_results): Likewise.
16205 (release_structures): Likewise.
16206 (create_file_names): Likewise.
16207 (find_source): Likewise.
16208 (read_graph_file): Likewise.
16209 (find_exception_blocks): Likewise.
16210 (canonicalize_name): Likewise.
16211 (make_gcov_file_name): Likewise.
16212 (mangle_name): Likewise.
16213 (accumulate_line_counts): Likewise.
16214 (output_branch_count): Likewise.
16215 (read_line): Likewise.
16216
16217 2016-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
16218
16219 PR rtl-optimization/71779
16220 * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
16221 if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
16222 or if it was truncated.
16223
16224 PR rtl-optimization/70903
16225 * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
16226
16227 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
16228
16229 * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
16230 accessing SSA_NAME_PTR_INFO.
16231
16232 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
16233
16234 PR 70677
16235 * common/config/avr/avr-common.c (avr_option_optimization_table)
16236 [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
16237
16238 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
16239
16240 PR 55181
16241 * config/avr/avr.md: New pattern to work around do_store_flag
16242 generating shift instructions for bit extractions.
16243
16244 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
16245
16246 * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
16247 BITMAP_ALLOC.
16248 (add_equivalence): Likewise.
16249 (get_value_range): Allocate value range with vrp_value_range_pool.
16250 (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
16251 (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
16252
16253 2016-08-03 Peter Bergner <bergner@vnet.ibm.com>
16254
16255 * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
16256 the default for the rs6000 port.
16257
16258 2016-08-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
16259
16260 PR middle-end/71876
16261 * calls.c (special_function_p): Remove special handling of
16262 "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
16263 prefix "__x". Recognize "savectx", "vfork" and "getcontext" only
16264 without prefix. Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
16265
16266 2016-08-03 Vladimir Makarov <vmakarov@redhat.com>
16267
16268 PR middle-end/72778
16269 * lra-spills.c (regno_in_use_p): Check bb and regno modification.
16270 Don't stop on regular insns.
16271
16272 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
16273
16274 * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
16275 size to DImode boundary.
16276 (nvptx_propagate): Likewise.
16277
16278 2016-08-03 Alan Modra <amodra@gmail.com>
16279
16280 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
16281 float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
16282 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
16283 from -mefficient-unaligned-vector. Note that this affects fp too.
16284
16285 2016-08-03 Alan Modra <amodra@gmail.com>
16286
16287 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
16288 cost more.
16289
16290 2016-08-03 Alan Modra <amodra@gmail.com>
16291
16292 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
16293 to a reg. Localize vars.
16294
16295 2016-08-03 Alan Modra <amodra@gmail.com>
16296
16297 * config/rs6000/rs6000.opt: Remove negatives from help strings
16298 and comments.
16299
16300 2016-08-03 Alan Modra <amodra@gmail.com>
16301
16302 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
16303 Delete duplicated code.
16304
16305 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
16306
16307 PR middle-end/72778
16308 * lra-spills.c (regno_in_use_p): New.
16309 (lra_final_code_change): Use it.
16310
16311 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
16312
16313 PR rtl-optimization/69847
16314 * lra-int.h (struct lra-reg): Use restore_rtx instead of
16315 restore_regno.
16316 (lra_rtx_hash): New.
16317 * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
16318 of restore_regno.
16319 (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
16320 * lra-remat.c (rtx_hash): Rename and Move to lra.c.
16321 * lra-spills.c (lra_final_code_change): Don't delete insn when the
16322 next insn is USE with the same reg as the current insn source.
16323 * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
16324 of restore_regno.
16325 (lra_constraints_init): Call initiate_invariants.
16326 (lra_constraints_finish): Call finish_invariants.
16327 (struct invariant, invariant_t, invariant_ptr_t): New.
16328 (const_invariant_ptr_t, invariants, invariants_pool): New.
16329 (invariant_table, invariant_hash, invariant_eq_p): New.
16330 (insert_invariant, initiate_invariants, finish_invariants): New.
16331 (clear_invariants, invalid_invariant_regs): New.
16332 (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
16333 instead of restore_regno.
16334 (invariant_p, process_invariant_for_inheritance): New.
16335 (inherit_in_ebb): Implement invariant inheritance.
16336 (lra_inheritance): Initialize and finalize invalid_invariant_regs.
16337 (remove_inheritance_pseudos): Implement undoing invariant
16338 inheritance.
16339 (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
16340 instead of restore_regno.
16341 * lra-assigns.c (regno_live_length): New.
16342 (reload_pseudo_compare_func): Use regno_live_length.
16343 (assign_by_spills): Use restore_rtx instead of restore_regno.
16344 (lra_assign): Ditto. Initiate regno_live_length.
16345
16346 2016-02-08 James Greenhalgh <james.greenhalgh@arm.com>
16347
16348 * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
16349 __builtin_aarch64_fmindf.
16350
16351 2016-08-02 Bin Cheng <bin.cheng@arm.com>
16352
16353 PR tree-optimization/34114
16354 * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
16355 information for more control IVs.
16356
16357 2016-08-02 Bin Cheng <bin.cheng@arm.com>
16358
16359 PR tree-optimization/34114
16360 * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
16361 PLUS_EXPR case. Handle SSA_NAME case.
16362
16363 2016-08-02 Tamar Christina <tamar.christina@arm.com>
16364
16365 * config/aarch64/aarch64-simd-builtins.def
16366 (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
16367 (__builtin_aarch64_fmaxdf): Likewise.
16368 (__builtin_aarch64_smin_nandf): Likewise.
16369 (__builtin_aarch64_smax_nandf): Likewise.
16370 * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
16371 * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
16372 (<fmaxmin><mode>3): ...this.
16373 * config/aarch64/arm_neon.h (vmaxnm_f64): New.
16374 (vminnm_f64): Likewise.
16375 (vmin_f64): Likewise.
16376 (vmax_f64): Likewise.
16377 * config/aarch64/iterators.md (FMAXMIN): Merge with...
16378 (FMAXMIN_UNS): ...this.
16379 (fmaxmin): Merged with
16380 (fmaxmin_op): ...this...
16381 (maxmin_uns_op): ...in to this.
16382
16383 2016-08-01 Michael Meissner <meissner@linux.vnet.ibm.com>
16384
16385 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16386 Add support for vec_extract on vector float, vector int, vector
16387 short, and vector char vector types.
16388 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
16389 vector float, vector int, vector short, and vector char
16390 optimizations on 64-bit ISA 2.07 systems for both constant and
16391 variable element numbers.
16392 (rs6000_split_vec_extract_var): Likewise.
16393 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
16394 Altivec registers on ISA 2.07 and above.
16395 (vsx_extract_v4sf): Delete alternative that hard coded element 0,
16396 which never was matched due to the split occuring before register
16397 allocation (and the code would not have worked on little endian
16398 systems if it did match). Allow extracts to go to the Altivec
16399 registers if ISA 2.07 (power8). Change from using "" around the
16400 C++ code to using {}'s.
16401 (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
16402 vec_extracts when the vector is in memory.
16403 (vsx_extract_v4sf_var): New insn to optimize vector float
16404 vec_extracts when the element number is variable on 64-bit ISA
16405 2.07 systems.
16406 (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
16407 for 64-bit ISA 2.07 as well as ISA 3.0.
16408 (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
16409 (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
16410 (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
16411 optimize vector int, vector short, and vector char vec_extracts
16412 when the vector is in memory.
16413 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
16414 optimize vector int, vector short, and vector char vec_extracts
16415 when the element number is variable.
16416
16417 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
16418
16419 PR target/71948
16420 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
16421 does not overlap with other symbol flags.
16422
16423 2016-08-01 Wilco Dijkstra <wdijkstr@arm.com>
16424
16425 * config/aarch64/aarch64.h (aarch64_frame):
16426 Remove padding0 and hardfp_offset. Add locals_offset,
16427 initial_adjust, callee_adjust, callee_offset and final_adjust.
16428 * config/aarch64/aarch64.c (aarch64_layout_frame):
16429 Remove unused padding0 and hardfp_offset initializations.
16430 Choose frame layout and set frame variables accordingly.
16431 Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
16432 (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
16433 (aarch64_pop_regs): Likewise.
16434 (aarch64_expand_prologue): Remove all decision code, just emit
16435 prolog according to frame variables.
16436 (aarch64_expand_epilogue): Remove all decision code, just emit
16437 epilog according to frame variables.
16438 (aarch64_initial_elimination_offset): Use offset to local/arg area.
16439
16440 2015-08-01 H.J. Lu <hongjiu.lu@intel.com>
16441
16442 PR target/72748
16443 * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
16444 fix_debug_reg_uses after changing source register mode to
16445 V1TImode if source register is undefined.
16446
16447 2015-08-01 Alan Hayward <alan.hayward@arm.com>
16448
16449 PR tree-optimization/71818
16450 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
16451 with non invariant evolutions
16452
16453 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
16454
16455 PR target/72767
16456 * config/avr/avr.md (length) [branch]: Correct insn length
16457 attribute for forward branches.
16458
16459 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
16460
16461 * doc/extend.texi (AVR Built-in Functions): Document
16462 __builtin_avr_nops.
16463 * config/avr/builtins.def (NOPS): New.
16464 * config/avr/avr.c (avr_expand_nops): New static function.
16465 (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
16466
16467 2016-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16468
16469 * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
16470 performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
16471 addresses.
16472
16473 2016-08-01 Virendra Pathak <virendra.pathak@broadcom.com>
16474
16475 * config/aarch64/aarch64.c (vulcan_tunings): Update
16476 vulcan L1 cache_line_size.
16477
16478 2016-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
16479
16480 * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
16481 function that takes a vector memory address, a hard register, an
16482 element number and a temporary base register, and recreates an
16483 address that points to the appropriate element within the vector.
16484 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
16485 (rs6000_split_vec_extract_var): Add support for the target of a
16486 vec_extract with variable element number being a scalar memory
16487 location.
16488 (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
16489 swappable.
16490 * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
16491 vsx_extract_<mode>_load insn with a new insn that optimizes
16492 storing either element to a memory location, using scratch
16493 registers to pick apart the vector and reconstruct the address.
16494 (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
16495 (vsx_extract_<mode>_store): Rework alternatives to more correctly
16496 support Altivec registers. Add support for ISA 3.0 Altivec d-form
16497 store instruction.
16498 (vsx_extract_<mode>_var): Add support for extracting a variable
16499 element number from memory.
16500
16501 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
16502
16503 * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
16504 when testing for compares against constants of the form 0xabab.
16505
16506 2016-07-29 Bin Cheng <bin.cheng@arm.com>
16507
16508 PR tree-optimization/57558
16509 * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
16510 function.
16511 (vect_loop_versioning): Support versioning with niter assumptions.
16512 * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
16513 (vect_get_loop_niters): New parameter. Reimplement to support
16514 assumptions in loop niter info.
16515 (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
16516 (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
16517 (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
16518 Support loop versioning for niters.
16519 * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
16520 (vect_free_loop_info_assumptions): New function.
16521 (vectorize_loops): Free loop niter info for loops with flag
16522 LOOP_F_ASSUMPTIONS set if vectorization failed.
16523 * tree-vectorizer.h (struct _loop_vec_info): New field
16524 num_iters_assumptions.
16525 (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
16526 (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
16527 (LOOP_REQUIRES_VERSIONING): New macro.
16528 (vect_free_loop_info_assumptions): New decl.
16529
16530 2016-07-29 Bin Cheng <bin.cheng@arm.com>
16531
16532 * cfgloop.h (struct loop): New field constraints.
16533 (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
16534 (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
16535 functions.
16536 * cfgloop.c (alloc_loop): Initialize new field.
16537 * cfgloopmanip.c (copy_loop_info): Copy constraints.
16538 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
16539 Adjust niter analysis wrto loop constraints.
16540 * doc/loop.texi (@node Number of iterations): Add description for loop
16541 constraints.
16542
16543 2016-07-29 Marek Polacek <polacek@redhat.com>
16544
16545 PR c/7652
16546 * config/i386/i386.c (ix86_expand_args_builtin): Add break.
16547 (ix86_expand_round_builtin): Likewise.
16548
16549 2016-07-29 Segher Boessenkool <segher@kernel.crashing.org>
16550 Georg-Johann Lay <avr@gjlay.de>
16551
16552 PR rtl-optimization/71976
16553 * combine.c (get_last_value): Return 0 if the argument for which
16554 the function is called has a wider mode than the recorded value.
16555
16556 2016-07-29 Marek Polacek <polacek@redhat.com>
16557
16558 PR c/7652
16559 * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
16560 (altivec_expand_st_builtin): Likewise.
16561
16562 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
16563
16564 * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
16565 introduced in r238381.
16566
16567 2016-07-29 Kugan Vivekanandarajah <kuganv@linaro.org>
16568
16569 PR middle-end/68217
16570 * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
16571 & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
16572
16573 2016-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
16574
16575 * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
16576 New declaration.
16577 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16578 Add support for vec_extract of vector double or vector long having
16579 a variable element number on 64-bit ISA 2.07 systems or newer.
16580 * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
16581 Likewise.
16582 (rs6000_split_vec_extract_var): New function to split a
16583 vec_extract built-in function with variable element number.
16584 (rtx_is_swappable_p): Variable vec_extracts and shifts are not
16585 swappable.
16586 * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
16587 (UNSPEC_VSX_EXTRACT): Likewise.
16588 (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
16589 direct move instructions to be generated on 64-bit ISA 2.07
16590 systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
16591 instruction.
16592 (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
16593 arguments for vec_extract variable element.
16594 (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
16595 vec_extract with variable element on V2DFmode and V2DImode
16596 vectors.
16597 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
16598 -mupper-regs-df requirement, since it isn't needed.
16599 (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
16600 do direct moves on 64-bit systems, which allows optimization of
16601 vec_extract on 64-bit ISA 2.07 systems and newer.
16602
16603 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
16604 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
16605
16606 * config/aarch64/aarch64.md
16607 (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
16608 statement and type.
16609 (<optab>qihi2_aarch64): Likewise, and split into two.
16610 (extendqihi2_aarch64): New.
16611 (zero_extendqihi2_aarch64): New.
16612 * config/aarch64/iterators.md (ldrxt): Remove.
16613 * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
16614 uxtb/uxth.
16615
16616 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
16617
16618 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
16619
16620 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
16621
16622 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
16623 (aarch64_push_reg): New function to push 1 or 2 registers.
16624 (aarch64_pop_reg): New function to pop 1 or 2 registers.
16625 (aarch64_expand_prologue): Use aarch64_push_regs.
16626 (aarch64_expand_epilogue): Use aarch64_pop_regs.
16627
16628 2016-07-28 Yuri Rumyantsev <ysrumyan@gmail.com>
16629
16630 PR tree-optimization/71734
16631 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
16632 attribute instead of REF_LOOP and use it.
16633 (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
16634 set it for Loops having non-zero safelen attribute.
16635 (ref_indep_loop_p): Pass zero as initial value for safelen.
16636
16637 2016-07-28 Ilya Enkovich <ilya.enkovich@intel.com>
16638
16639 PR middle-end/72657
16640 PR target/72683
16641 * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
16642 call using chkp_gimple_call_builtin_p.
16643 (chkp_copy_bounds_for_assign): Likewise.
16644
16645 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16646
16647 * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
16648 * config/arm/arm-protos.h (struct tune_params): Likewise.
16649 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
16650 (cortex_a9_sched_adjust_cost): Likewise.
16651 (fa726te_sched_adjust_cost): Likewise.
16652 (arm_adjust_cost): Likewise.
16653 * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
16654 * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
16655 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
16656 * config/i386/i386.c (ix86_adjust_cost): Likewise.
16657 * config/ia64/ia64.c: Likewise.
16658 * config/m68k/m68k.c: Likewise.
16659 * config/mep/mep.c (mep_adjust_cost): Likewise.
16660 * config/microblaze/microblaze.c (microblaze_adjust_cost):
16661 * Likewise.
16662 * config/mips/mips.c (mips_adjust_cost): Likewise.
16663 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
16664 * Likewise.
16665 * config/pa/pa.c (pa_adjust_cost): Likewise.
16666 * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
16667 (rs6000_debug_adjust_cost): Likewise.
16668 * config/sh/sh.c (sh_adjust_cost): Likewise.
16669 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
16670 (hypersparc_adjust_cost): Likewise.
16671 (sparc_adjust_cost): Likewise.
16672 * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
16673 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
16674 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
16675 * Likewise.
16676 * config/visium/visium.c (visium_adjust_cost): Likewise.
16677 * doc/tm.texi: Regenerate.
16678 * haifa-sched.c (dep_cost_1): Adjust.
16679 * target.def: Merge adjust_cost and adjust_cost_2.
16680
16681 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16682
16683 * haifa-sched.c (add_to_speculative_block): Make twins a vector.
16684
16685 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16686
16687 * store-motion.c (struct st_expr): Make pattern_regs a vector.
16688 (extract_mentioned_regs): Append to a vector instead of
16689 returning a rtx_expr_list.
16690 (st_expr_entry): Adjust.
16691 (free_st_expr_entry): Likewise.
16692 (store_ops_ok): Likewise.
16693 (store_killed_in_insn): Likewise.
16694 (find_moveable_store): Likewise.
16695
16696 2016-07-28 Martin Liska <mliska@suse.cz>
16697
16698 PR gcov-profile/68025
16699 * tree-profile.c (tree_profiling): Respect
16700 no_profile_instrument_function attribute.
16701 * doc/extend.texi: Document no_profile_instrument_function
16702 attribute.
16703
16704 2016-07-28 Martin Liska <mliska@suse.cz>
16705
16706 PR rtl-optimization/70944
16707 * combine.c (make_compound_operation):
16708 Do not allow make_compound_operation for vector mode
16709
16710 2016-07-28 Kugan Vivekanandarajah <kuganv@linaro.org>
16711
16712 PR middle-end/71994
16713 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
16714 before calling get_ops.
16715
16716 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
16717
16718 * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
16719 * tree.h (LOG2_BITS_PER_UNIT): ...to here.
16720 (BITS_PER_UNIT_LOG): Remove.
16721 (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
16722 * expr.c (expand_assignment): Likewise.
16723 * stor-layout.c (initialize_sizetypes): Likewise.
16724
16725 2016-07-27 Michael Meissner <meissner@linux.vnet.ibm.com>
16726
16727 * config/rs6000/vector.md (vec_extract<mode>): Change the calling
16728 signature of rs6000_expand_vector_extract so that the element
16729 number is a RTX instead of a constant integer.
16730 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
16731 Likewise.
16732 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
16733 (altivec_expand_vec_ext_builtin): Likewise.
16734 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
16735 * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
16736 MFVSRLD instruction.
16737
16738 2016-07-27 David Malcolm <dmalcolm@redhat.com>
16739
16740 * input.c (get_pure_location): Move here from tree.c.
16741 (make_location): Likewise. Add header comment.
16742 (selftest::test_accessing_ordinary_linemaps): Verify
16743 pure_location_p, make_location, get_location_from_adhoc_loc and
16744 get_range_from_loc.
16745 * input.h (get_pure_location): Move declaration here from tree.h.
16746 (get_finish): Likewise for inline function.
16747 (make_location): Likewise for declaration.
16748 * tree.c (get_pure_location): Move to input.c.
16749 (make_location): Likewise.
16750 * tree.h (get_pure_location): Move declaration to tree.h.
16751 (get_finish): Likewise for inline function.
16752 (make_location): Likewise for declaration.
16753
16754 2016-07-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16755
16756 PR middle-end/71078
16757 * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
16758
16759 2016-07-27 David Malcolm <dmalcolm@redhat.com>
16760
16761 * system.h (STATIC_ASSERT): Use static_assert if building
16762 with C++11 onwards.
16763
16764 2016-07-27 Richard Biener <rguenther@suse.de>
16765
16766 PR tree-optimization/72517
16767 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
16768 Revert change to not compute read-read dependences.
16769
16770 2016-07-27 Richard Biener <rguenther@suse.de>
16771
16772 * predict.c (set_even_probabilities): Make nedges unsigned.
16773
16774 2016-07-27 Martin Liska <mliska@suse.cz>
16775
16776 * predict.c (set_even_probabilities): Handle unlikely edges.
16777 (combine_predictions_for_bb): Likewise.
16778
16779 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
16780
16781 PR target/71869
16782 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
16783 __float128 support when we don't have hardware support, so that
16784 the IEEE built-in functions like isgreater, first call __unordkf3
16785 to make sure neither operand is a NaN, and if both operands are
16786 ordered, do the normal comparison.
16787
16788 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
16789
16790 * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
16791 name.
16792 (extract_code_and_val_from_cond_with_ops): Verify that name is
16793 either cond_op0 or cond_op1.
16794
16795 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
16796
16797 PR tree-optimization/18046
16798 * genmodes.c (emit_mode_size_inline): Emit an assert that
16799 verifies that mode is a valid array index.
16800 (emit_mode_nuinits_inline): Likewise.
16801 (emit_mode_inner_inline): Likewise.
16802 (emit_mode_unit_size_inline): Likewise.
16803 (emit_mode_unit_precision_inline): Likewise.
16804 * tree-vrp.c: Include params.h.
16805 (find_switch_asserts): Register edge assertions for the default
16806 label which correspond to the anti-ranges of each case label.
16807 * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
16808 * doc/invoke.texi: Document it.
16809
16810 2016-07-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16811
16812 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
16813 and unnecessary call to gimple_bb.
16814
16815 2016-07-26 Richard Biener <rguenther@suse.de>
16816
16817 PR rtl-optimization/71984
16818 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
16819 for VOIDmode.
16820
16821 2016-07-26 Richard Biener <rguenther@suse.de>
16822
16823 PR middle-end/72517
16824 * expmed.c (extract_bit_field_1): Constrain the vector mode
16825 with element size matching the extraction mode size when
16826 choosing a better vector mode to do the extraction from.
16827
16828 2016-07-26 Richard Biener <rguenther@suse.de>
16829 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16830
16831 PR middle-end/70920
16832 * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
16833 pattern.
16834
16835 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16836
16837 * tree-ssa-structalias.c (struct scc_info): Change types of
16838 members to auto_sbitmap and auto_vec.
16839 (scc_info::scc_info): New constructor.
16840 (scc_info::~scc_info): New destructor.
16841 (init_scc_info): Remove.
16842 (free_scc_info): Remove.
16843 (find_indirect_cycles): Adjust.
16844 (perform_var_substitution): Likewise.
16845 (free_var_substitution_info): Likewise.
16846
16847 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16848
16849 * tree-outof-ssa.c (struct elim_graph): Change type of members
16850 to auto_vec and auto_sbitmap.
16851 (elim_graph::elim_graph): New constructor.
16852 (delete_elim_graph): Remove.
16853 (expand_phi_nodes): Adjust.
16854
16855 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16856
16857 * tree-outof-ssa.c (struct elim_graph): Remove typedef.
16858 (new_elim_graph): Adjust.
16859 (clear_elim_graph): Likewise.
16860 (delete_elim_graph): Likewise.
16861 (elim_graph_size): Likewise.
16862 (elim_graph_add_node): Likewise.
16863 (elim_graph_add_edge): Likewise.
16864 (elim_graph_remove_succ_edge): Likewise.
16865 (eliminate_name): Likewise.
16866 (eliminate_build): Likewise.
16867 (elim_forward): Likewise.
16868 (elim_unvisited_predecessor): Likewise.
16869 (elim_backward): Likewise.
16870 (elim_create): Likewise.
16871 (eliminate_phi): Likewise.
16872 (expand_phi_nodes): Likewise.
16873
16874 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16875
16876 * bt-load.c (compute_out): Use auto_sbitmap class.
16877 (link_btr_uses): Likewise.
16878 * cfganal.c (mark_dfs_back_edges): Likewise.
16879 (post_order_compute): Likewise.
16880 (inverted_post_order_compute): Likewise.
16881 (pre_and_rev_post_order_compute_fn): Likewise.
16882 (single_pred_before_succ_order): Likewise.
16883 * cfgexpand.c (pass_expand::execute): Likewise.
16884 * cfgloop.c (verify_loop_structure): Likewise.
16885 * cfgloopmanip.c (fix_bb_placements): Likewise.
16886 (remove_path): Likewise.
16887 (update_dominators_in_loop): Likewise.
16888 * cfgrtl.c (break_superblocks): Likewise.
16889 * ddg.c (check_sccs): Likewise.
16890 (create_ddg_all_sccs): Likewise.
16891 * df-core.c (df_worklist_dataflow): Likewise.
16892 * dse.c (dse_step3): Likewise.
16893 * except.c (eh_region_outermost): Likewise.
16894 * function.c (thread_prologue_and_epilogue_insns): Likewise.
16895 * gcse.c (prune_expressions): Likewise.
16896 (prune_insertions_deletions): Likewise.
16897 * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
16898 * graph.c (draw_cfg_nodes_no_loops): Likewise.
16899 * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
16900 * lcm.c (compute_earliest): Likewise.
16901 (compute_farthest): Likewise.
16902 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
16903 (unroll_loop_runtime_iterations): Likewise.
16904 (unroll_loop_stupid): Likewise.
16905 * lower-subreg.c (decompose_multiword_subregs): Likewise.
16906 * lra-lives.c: Likewise.
16907 * lra.c (lra): Likewise.
16908 * modulo-sched.c (schedule_reg_moves): Likewise.
16909 (optimize_sc): Likewise.
16910 (get_sched_window): Likewise.
16911 (sms_schedule_by_order): Likewise.
16912 (check_nodes_order): Likewise.
16913 (order_nodes_of_sccs): Likewise.
16914 (order_nodes_in_scc): Likewise.
16915 * recog.c (split_all_insns): Likewise.
16916 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
16917 * reload1.c (reload): Likewise.
16918 * sched-rgn.c (haifa_find_rgns): Likewise.
16919 (split_edges): Likewise.
16920 (compute_trg_info): Likewise.
16921 * sel-sched.c (init_seqno): Likewise.
16922 * store-motion.c (remove_reachable_equiv_notes): Likewise.
16923 * tree-into-ssa.c (update_ssa): Likewise.
16924 * tree-ssa-live.c (live_worklist): Likewise.
16925 * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
16926 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
16927 * Likewise.
16928 (try_peel_loop): Likewise.
16929 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
16930 * Likewise.
16931 * tree-ssa-pre.c (compute_antic): Likewise.
16932 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
16933 * tree-stdarg.c (reachable_at_most_once): Likewise.
16934 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
16935 * var-tracking.c (vt_find_locations): Likewise.
16936
16937 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16938
16939 * sbitmap.h (auto_sbitmap): New class.
16940
16941 2016-07-26 Alan Modra <amodra@gmail.com>
16942
16943 PR target/72103
16944 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
16945 sri->t_icode.
16946
16947 2016-07-25 David Malcolm <dmalcolm@redhat.com>
16948
16949 * input.c (selftest::temp_source_file::temp_source_file): Fix
16950 missing "%s" in fprintf.
16951
16952 2016-07-25 John David Anglin <danglin@gcc.gnu.org>
16953
16954 PR middle-end/71732
16955 * cselib.c (cselib_process_insn): Invalidate argument slots for
16956 const/pure calls.
16957
16958 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16959
16960 * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
16961 vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
16962 vmulxh_lane_f16, vmulxh_laneq_f16): New.
16963
16964 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16965
16966 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
16967 * config/aarch64/aarch64.md (fma, fnma): Support HF.
16968 * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
16969
16970 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16971
16972 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
16973 * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
16974 New.
16975 (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
16976 (add<mode>3): Likewise.
16977 (sub<mode>3): Likewise.
16978 (mul<mode>3): Likewise.
16979 (div<mode>3): Likewise.
16980 (*div<mode>3): Likewise.
16981 (<fmaxmin><mode>3): Extend to HF.
16982 * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
16983 (fabd<mode>3): Likewise.
16984 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
16985 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
16986 (aarch64_fmulx<mode>): Likewise.
16987 (aarch64_fac<optab><mode>): Likewise.
16988 (aarch64_frecps<mode>): Likewise.
16989 (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
16990 (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
16991 * config/aarch64/iterators.md (VHSDF_SDF): Delete.
16992 (VSDQ_HSDI): Support HI.
16993 (fcvt_target, FCVT_TARGET): Likewise.
16994 * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
16995 vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
16996 vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
16997 vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
16998 vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
16999 vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
17000 vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
17001 vrsqrtsh_f16): New.
17002
17003 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17004
17005 * config.gcc (aarch64*-*-*): Install arm_fp16.h.
17006 * config/aarch64/aarch64-builtins.c (hi_UP): New.
17007 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
17008 * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
17009 mode.
17010 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
17011 (aarch64_cm<optab><mode>): Likewise.
17012 * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
17013 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
17014 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
17015 (sqrt<mode>2): Likewise.
17016 (*sqrt<mode>2): Likewise.
17017 (abs<mode>2): Likewise.
17018 (<optab><mode>hf2): New pattern for HF mode.
17019 (<optab>hihf2): Likewise.
17020 * config/aarch64/arm_neon.h: Include arm_fp16.h.
17021 * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
17022 (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
17023 Support HF mode.
17024 * config/aarch64/arm_fp16.h: New file.
17025 (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
17026 vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
17027 vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
17028 vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
17029 vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
17030 vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
17031 vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
17032 vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
17033 vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
17034 vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
17035 vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
17036 vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
17037 vsqrth_f16): New.
17038
17039 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17040
17041 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
17042 reduc_smin_scal_): Use VDQIF_F16.
17043 (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
17044 * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
17045 Use VHSDF.
17046 (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
17047 * config/aarch64/iterators.md (VDQIF_F16): New.
17048 (vp): Support HF modes.
17049 * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
17050 vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
17051
17052 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17053
17054 * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
17055 "*aarch64_mulx_elt_from_dup<mode>".
17056 (*aarch64_mul3_elt<mode>): Update schedule type.
17057 (*aarch64_mul3_elt_from_dup<mode>): Likewise.
17058 (*aarch64_fma4_elt_from_dup<mode>): Likewise.
17059 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
17060 * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
17061 (f, fp): Support HF modes.
17062 * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
17063 vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
17064 vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
17065 vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
17066 vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
17067 vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
17068
17069 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17070
17071 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
17072 * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
17073 modes.
17074 * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
17075 vfmsq_f16): New.
17076
17077 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17078
17079 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
17080 * config/aarch64/aarch64-simd.md
17081 (aarch64_rsqrts<mode>): Extend to HF modes.
17082 (fabd<mode>3): Likewise.
17083 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
17084 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
17085 (aarch64_<maxmin_uns>p<mode>): Likewise.
17086 (<su><maxmin><mode>3): Likewise.
17087 (<maxmin_uns><mode>3): Likewise.
17088 (<fmaxmin><mode>3): Likewise.
17089 (aarch64_faddp<mode>): Likewise.
17090 (aarch64_fmulx<mode>): Likewise.
17091 (aarch64_frecps<mode>): Likewise.
17092 (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
17093 (add<mode>3): Extend to HF modes.
17094 (sub<mode>3): Likewise.
17095 (mul<mode>3): Likewise.
17096 (div<mode>3): Likewise.
17097 (*div<mode>3): Likewise.
17098 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
17099 HF, V4HF and V8HF.
17100 * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
17101 * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
17102 vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
17103 vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
17104 vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
17105 vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
17106 vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
17107 vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
17108 vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
17109 vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
17110 vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
17111 vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
17112 vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
17113 vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
17114
17115 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17116
17117 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
17118 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
17119 * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
17120 (neg<mode>2): Likewise.
17121 (abs<mode>2): Likewise.
17122 (<frint_pattern><mode>2): Likewise.
17123 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
17124 (<optab><VDQF:mode><fcvt_target>2): Likewise.
17125 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
17126 (ftrunc<VDQF:mode>2): Likewise.
17127 (<optab><fcvt_target><VDQF:mode>2): Likewise.
17128 (sqrt<mode>2): Likewise.
17129 (*sqrt<mode>2): Likewise.
17130 (aarch64_frecpe<mode>): Likewise.
17131 (aarch64_cm<optab><mode>): Likewise.
17132 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
17133 HF, V4HF and V8HF.
17134 * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
17135 (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
17136 (stype): New.
17137 * config/aarch64/arm_neon.h (vdup_n_f16): New.
17138 (vdupq_n_f16): Likewise.
17139 (vld1_dup_f16): Use vdup_n_f16.
17140 (vld1q_dup_f16): Use vdupq_n_f16.
17141 (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
17142 vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
17143 vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
17144 vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
17145 vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
17146 vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
17147 vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
17148 vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
17149 vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
17150 vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
17151 vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
17152 vsqrt_f16, vsqrtq_f16): New.
17153
17154 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17155
17156 * config/aarch64/aarch64-simd.md
17157 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
17158 (aarch64_ext<mode>): Likewise.
17159 (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
17160 * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
17161 aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
17162 and V8HFmode.
17163 * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
17164 float16x8_t.
17165 (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
17166 __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
17167 vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
17168 vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
17169 vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
17170 vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
17171 vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
17172 New.
17173 (vmov_n_f16): Reimplement using vdup_n_f16.
17174 (vmovq_n_f16): Reimplement using vdupq_n_f16..
17175
17176 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17177
17178 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
17179 "frame_related_p". Generate CFA annotation when it's necessary.
17180 (aarch64_expand_prologue): Use aarch64_add_constant.
17181 (aarch64_expand_epilogue): Likewise.
17182 (aarch64_output_mi_thunk): Pass "false" when calling
17183 aarch64_add_constant.
17184
17185 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17186
17187 * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
17188 sequences.
17189
17190 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17191
17192 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
17193 Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
17194 (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
17195 (aarch64_build_constant): Delete.
17196
17197 2016-07-25 Alexander Monakov <amonakov@ispras.ru>
17198
17199 Revert
17200 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
17201
17202 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
17203 flag_toplevel_reorder.
17204
17205 2016-07-25 Richard Biener <rguenther@suse.de>
17206
17207 * cgraph.c (cgraph_node::verify_node): Compare against builtin
17208 by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
17209 * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
17210 * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
17211 (streamer_get_builtin_tree): Likewise.
17212 (streamer_write_builtin): Likewise.
17213 * lto-streamer.h (LTO_builtin_decl): Remove.
17214 * lto-streamer-in.c (lto_read_tree_1): Remove assert.
17215 (lto_input_scc): Remove LTO_builtin_decl handling.
17216 (lto_input_tree_1): Liekwise.
17217 * lto-streamer-out.c (lto_output_tree_1): Remove special
17218 handling of builtins.
17219 (DFS::DFS): Likewise.
17220 * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
17221 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
17222 assert.
17223 (streamer_write_builtin): Remove.
17224
17225 2016-07-25 Martin Liska <mliska@suse.cz>
17226
17227 * lto-cgraph.c (input_symtab): Don't call get_working_sets
17228 if flag_auto_profile is set to true.
17229
17230 2016-07-25 Martin Liska <mliska@suse.cz>
17231
17232 PR gcov-profile/71868
17233 * cfgloopanal.c (expected_loop_iterations_unbounded): When we
17234 have a function with multiple latches, count them all.
17235
17236 2016-07-25 Martin Liska <mliska@suse.cz>
17237
17238 * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
17239
17240 2016-07-25 Martin Liska <mliska@suse.cz>
17241
17242 PR tree-optimization/71987
17243 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
17244 just for SSA_NAMEs. Fix GNU coding style.
17245
17246 2016-07-25 Martin Liska <mliska@suse.cz>
17247
17248 PR gcov-profile/64874
17249 * gcov-io.h: Update command about file format.
17250 * gcov-iov.c (main): Adapt the numbering scheme.
17251
17252 2016-07-24 Kugan Vivekanandarajah <kuganv@linaro.org>
17253
17254 PR middle-end/66726
17255 * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
17256 whose result is used in PHI.
17257 (final_range_test_p): Likewise.
17258 (maybe_optimize_range_tests): Likewise.
17259
17260 2016-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
17261
17262 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17263 Reformat two multi-line strings.
17264
17265 2016-07-22 Martin Sebor <msebor@redhat.com>
17266
17267 * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
17268
17269 2016-07-22 Martin Sebor <msebor@redhat.com>
17270
17271 PR c/71560
17272 * doc/extend.texi (Compound Literals): Correct and clarify.
17273 (Cast to Union): Same.
17274
17275 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
17276
17277 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
17278 comments to explain why certain error messages make mention of
17279 undocumented options.
17280 (rs6000_invalid_builtin): Change error messages to replace mention
17281 of undocumented options with mention of the -mcpu=power9 option
17282 that enables those undocumented options.
17283 * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
17284 (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
17285 definition of this macro to correct an existing error.
17286 * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
17287 mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
17288 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
17289 descriptions of built-in functions so that they depend on
17290 -mcpu=power9 instead of on the corresponding undocumented flags.
17291 * doc/invoke.texi (Option Summary): Remove all mention of newly
17292 undocumented flags.
17293 (IBM RS/6000 and PowerPC Options): Likewise.
17294 * doc/md.texi (Constraints for Particuliar Machines): Remove all
17295 mention of newly undocumented flags.
17296
17297 2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
17298
17299 * ipa-cp.c (determine_versionability): Do not create constprop clones,
17300 when target_clones attribute is set.
17301
17302 2016-07-22 Bin Cheng <bin.cheng@arm.com>
17303
17304 * common.opt (funsafe-loop-optimizations): Mark ignore.
17305 * doc/invoke.texi (funsafe-loop-optimizations): Remove.
17306 * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
17307 related code.
17308 * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
17309 * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
17310
17311 2016-07-22 Bin Cheng <bin.cheng@arm.com>
17312
17313 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
17314 Parameter.
17315 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
17316 Parameter.
17317 (number_of_iterations_exit): Warn missed loop optimization for
17318 possible infinite loops.
17319
17320 2016-07-22 Segher Boessenkool <segher@kernel.crashing.org>
17321
17322 PR target/71216
17323 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
17324 when to emit a ".machine" pseudo-op.
17325
17326 2016-07-22 Martin Liska <mliska@suse.cz>
17327
17328 PR gcov-profile/69028
17329 PR gcov-profile/62047
17330 * coverage.c (coverage_compute_lineno_checksum): Do not
17331 calculate checksum for fns w/o xloc.file.
17332 (coverage_compute_profile_id): Likewise.
17333
17334 2016-07-22 Georg-Johann Lay <avr@gjlay.de>
17335
17336 * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
17337 (avr_secondary_reload): ...and implementation.
17338 (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
17339 * config/avr/avr.md (reload_in<mode>): Remove insns.
17340 (adjust_len) [lpm]: Remove insn attribute value.
17341 * config/avr/predicates.md (flash_operand): Remove insn predicate.
17342
17343 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
17344
17345 PR middle-end/71876
17346 * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
17347 attribute.
17348 * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
17349 * calls.c (special_function_p): Remove the special handling of the
17350 "__builtin_" prefix.
17351
17352 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
17353
17354 PR middle-end/71876
17355 * calls.c (gimple_maybe_alloca_call_p): New function. Return true
17356 if STMT may be an alloca call.
17357 (gimple_alloca_call_p, alloca_call_p): Return only true for the
17358 builtin alloca call.
17359 * calls.h (gimple_maybe_alloca_call_p): New function.
17360 * tree-inline.c (inline_forbidden_p_stmt): Use
17361 gimple_maybe_alloca_call_p here.
17362
17363 2016-07-21 David Malcolm <dmalcolm@redhat.com>
17364
17365 * spellcheck-tree.c (best_macro_match::best_macro_match):
17366 Explictly specify the template arguments when invoking the base
17367 class constructor, to help older C++ compilers.
17368
17369 2016-07-21 Jakub Jelinek <jakub@redhat.com>
17370
17371 PR sanitizer/71953
17372 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
17373 before builtin_decl_implicit.
17374
17375 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
17376
17377 * optabs.c (emit_condiitonal_move): Short circuit for identical
17378 sources.
17379
17380 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
17381
17382 * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
17383 max_seq_cost. Removed fields: then_cost, else_cost, branch_cost.
17384 (noce_conversion_profitable_p): New.
17385 (noce_try_store_flag_constants): Use it.
17386 (noce_try_addcc): Likewise.
17387 (noce_try_store_flag_mask): Likewise.
17388 (noce_try_cmove): Likewise.
17389 (noce_try_cmove_arith): Likewise.
17390 (bb_valid_for_noce_process_p): Add to the cost parameter rather than
17391 overwriting it.
17392 (noce_convert_multiple_sets): Move cost model to here, from...
17393 (bb_ok_for_noce_convert_multiple_sets) ...here.
17394 (noce_process_if_block): Update calls for above changes.
17395 (noce_find_if_block): Record new noce_if_info parameters.
17396
17397 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
17398
17399 * target.def (max_noce_ifcvt_seq_cost): New.
17400 * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
17401 * doc/tm.texi: Regenerate.
17402 * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
17403 * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
17404 * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
17405 (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
17406 * doc/invoke.texi: Document new params.
17407
17408 2016-07-21 Richard Biener <rguenther@suse.de>
17409
17410 PR tree-optimization/71947
17411 * tree-vrp.c (extract_range_from_assert): Singleton symbolic
17412 ranges have useful limit_vr information.
17413
17414 2016-07-21 Richard Biener <rguenther@suse.de>
17415
17416 * function-tests.c (build_trivial_generic_function): Set
17417 BLOCK_SUPERCONTEXT of DECL_INITIAL.
17418 * omp-low.c (create_omp_child_function): Likewise.
17419 (grid_expand_target_grid_body): Likewise.
17420 * cgraphunit.c (init_lowered_empty_function): Likewise.
17421 (cgraph_node::expand_thunk): Likewise.
17422 * tree-parloops.c (create_loop_fn): Likewise.
17423 * ipa.c (cgraph_build_static_cdtor_1): Likewise.
17424
17425 2016-07-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17426
17427 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
17428 in comment.
17429
17430 2016-07-21 Georg-Johann Lay <avr@gjlay.de>
17431
17432 * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
17433 (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
17434 (*insv.xor-extract, *insv.xor1-bit.0): New insns.
17435 (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
17436 values for insn attribute.
17437 * config/avr/avr.c (avr_out_insert_notbit): New function.
17438 (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
17439 ADJUST_LEN_INSV_NOTBIT_0/_7.
17440 * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
17441
17442 2016-07-21 Bin Cheng <bin.cheng@arm.com>
17443
17444 * tree-chrec.c (convert_affine_scev): New parameter. Pass new arg.
17445 (chrec_convert_1, chrec_convert): Ditto.
17446 * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
17447 * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
17448 * tree-vrp.c (adjust_range_with_scev): Ditto.
17449 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
17450 (scev_var_range_cant_overflow): New function.
17451 (scev_probably_wraps_p): New parameter. Call above function.
17452 * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
17453
17454 2016-07-21 Bin Cheng <bin.cheng@arm.com>
17455
17456 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
17457 by removing computation of may_be_zero.
17458
17459 2016-07-21 Jakub Jelinek <jakub@redhat.com>
17460
17461 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
17462
17463 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
17464
17465 Improving concepts performance and diagnostics.
17466 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
17467 for constraint satisfaction and subsumption.
17468 * timevar.h (auto_timevar): New constructor that matches the push/pop
17469 pattern of usage in pt.c.
17470
17471 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
17472
17473 * hwint.h (HOST_WIDE_INT_0): New define.
17474 (HOST_WIDE_INT_0U): Ditto.
17475 * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
17476 * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
17477 * simplify-rtx.c: Ditto.
17478 * tree-object-size.c: Ditto.
17479
17480 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17481
17482 * config/s390/s390.c (s390_encode_section_info): Remove mode size
17483 check.
17484
17485 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
17486
17487 * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
17488 * combine.c: Use HOST_WIDE_INT_M1U instead of
17489 ~(unsigned HOST_WIDE_INT) 0.
17490 * double-int.h: Ditto.
17491 * dse.c: Ditto.
17492 * dwarf2asm.c:Ditto.
17493 * expmed.c: Ditto.
17494 * genmodes.c: Ditto.
17495 * match.pd: Ditto.
17496 * read-rtl.c: Ditto.
17497 * tree-ssa-loop-ivopts.c: Ditto.
17498 * tree-ssa-loop-prefetch.c: Ditto.
17499 * tree-vect-generic.c: Ditto.
17500 * tree-vect-patterns.c: Ditto.
17501 * tree.c: Ditto.
17502
17503 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
17504
17505 * config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
17506 constant addresses outside [0,0xc0] into a register.
17507 (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn. And handle
17508 cases where the base address register is unused after.
17509 (avr_out_movhi_r_mr_reg_disp_tiny): Same.
17510 (avr_out_movhi_mr_r_reg_disp_tiny): Same.
17511 (avr_out_store_psi_reg_disp_tiny): Same.
17512
17513 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
17514
17515 Implement attribute progmem on reduced Tiny cores by adding
17516 flash offset 0x4000 to respective symbols.
17517
17518 PR target/71948
17519 * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
17520 documentation how it works on reduced Tiny cores.
17521 (AVR Named Address Spaces): No support for reduced Tiny.
17522 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
17523 (avr_address_tiny_pm_p): New static function.
17524 (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
17525 if the address is in progmem.
17526 (avr_assemble_integer): Same.
17527 (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
17528 for symbol_ref in progmem.
17529 * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
17530 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
17531 magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
17532
17533 2016-07-20 Patrick Palka <ppalka@gcc.gnu.org>
17534
17535 * configure.ac (thin_archive_support): New variable. AC_SUBST it.
17536 * configure: Regenerate.
17537 * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
17538 (USE_THIN_ARCHIVES): New variable.
17539 (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
17540 this archive as a thin archive.
17541
17542 2016-07-20 David Malcolm <dmalcolm@redhat.com>
17543
17544 * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
17545 same location as last time, don't skip if we have fix-it hints.
17546 Clarify the skipping logic by converting it from one "if" clause
17547 to repeated "if" clauses.
17548 * spellcheck-tree.c: Include "cpplib.h".
17549 (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
17550 (best_macro_match::best_macro_match): New constructor.
17551 * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
17552 Move here from c/c-decl.c.
17553 (class best_macro_match): Move here from c/c-decl.c, converting
17554 from a typedef to a subclass, gaining a ctor.
17555
17556 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
17557
17558 * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
17559 * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
17560 define...
17561 (avr_addr_space_diagnose_usage): ...and implementation.
17562 (avr_addr_space_supported_p): New function.
17563 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
17564 report bad address space usage if that space is supported.
17565 (avr_insert_attributes): Same. No more complain about unsupported
17566 address spaces.
17567 * config/avr/avr-c.c (tm_p.h): Include it.
17568 (avr_cpu_cpp_builtins): Only define addr-space related built-in
17569 macro if avr_addr_space_supported_p.
17570
17571 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
17572
17573 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
17574 flag_toplevel_reorder.
17575
17576 2016-07-20 David Malcolm <dmalcolm@redhat.com>
17577
17578 * gcc-rich-location.c
17579 (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
17580 a const char *.
17581 * gcc-rich-location.h
17582 (gcc_rich_location::add_fixit_misspelled_id): Likewise.
17583
17584 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
17585
17586 * target.def (addr_space): Add new diagnose_usage to hook vector.
17587 * targhooks.c (default_addr_space_diagnose_usage): Add default
17588 implementation and...
17589 * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
17590 * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
17591 is some address space, call targetm.addr_space.diagnose_usage.
17592 * doc/tm.texi.in (Named Address Spaces): Add anchor for
17593 TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
17594 * doc/tm.texi: Regenerate.
17595
17596 2016-07-20 Martin Liska <mliska@suse.cz>
17597
17598 PR middle-end/71898
17599 * graphite-isl-ast-to-gimple.c (later_of_the_two):
17600 Properly handly PHI stmts.
17601
17602 2016-07-20 Bin Cheng <bin.cheng@arm.com>
17603
17604 PR tree-optimization/71503
17605 PR tree-optimization/71683
17606 * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
17607 and break.
17608
17609 2016-07-20 Martin Liska <mliska@suse.cz>
17610
17611 * doc/invoke.texi (-fipa-ra): Document when the option is
17612 disabled. Fix a typo.
17613
17614 2016-07-20 Martin Liska <mliska@suse.cz>
17615
17616 * Makefile.in: Include fibonacci_heap.c
17617 * fibonacci_heap.c: New file.
17618 * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
17619 (fibonacci_heap::union_with): Fix deletion of the second heap.
17620 * selftest-run-tests.c (selftest::run_tests): Incorporate
17621 fibonacci heap tests.
17622 * selftest.h: Declare fibonacci_heap_c_tests.
17623
17624 2016-07-20 Martin Liska <mliska@suse.cz>
17625
17626 * selftest-run-tests.c (selftest::run_tests): New function.
17627 * selftest.h (sreal_c_tests): Declare.
17628 * sreal.c (sreal_verify_basics): New function.
17629 (verify_aritmetics): Likewise.
17630 (sreal_verify_arithmetics): Likewise.
17631 (verify_shifting): Likewise.
17632 (sreal_verify_shifting): Likewise.
17633 (void sreal_c_tests): Likewise.
17634
17635 2016-07-19 Jakub Jelinek <jakub@redhat.com>
17636
17637 PR rtl-optimization/71916
17638 * cfgrtl.c (contains_no_active_insn_p): Return false also for
17639 bb which have a single succ fake edge.
17640
17641 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
17642
17643 PR debug/71855
17644 * dwarf2out.c (gen_subprogram_die): Only call
17645 gen_unspecified_parameters_die while dumping early dwarf.
17646
17647 2016-07-19 Jakub Jelinek <jakub@redhat.com>
17648
17649 PR middle-end/71874
17650 * gimple-fold.c (fold_builtin_memory_op): Use
17651 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
17652
17653 2016-07-19 Uros Bizjak <ubizjak@gmail.com>
17654
17655 * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
17656 HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
17657 HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
17658 HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
17659 * combine.c: Ditto.
17660 * cse.c: Ditto.
17661 * dojump.c: Ditto.
17662 * double-int.c: Ditto.
17663 * dse.c: Ditto.
17664 * dwarf2out.c: Ditto.
17665 * expmed.c: Ditto.
17666 * expr.c: Ditto.
17667 * fold-const.c: Ditto.
17668 * function.c: Ditto.
17669 * fwprop.c: Ditto.
17670 * genmodes.c: Ditto.
17671 * hwint.c: Ditto.
17672 * hwint.h: Ditto.
17673 * ifcvt.c: Ditto.
17674 * loop-doloop.c: Ditto.
17675 * loop-invariant.c: Ditto.
17676 * loop-iv.c: Ditto.
17677 * match.pd: Ditto.
17678 * optabs.c: Ditto.
17679 * real.c: Ditto.
17680 * reload.c: Ditto.
17681 * rtlanal.c: Ditto.
17682 * simplify-rtx.c: Ditto.
17683 * stor-layout.c: Ditto.
17684 * toplev.c: Ditto.
17685 * tree-ssa-loop-ivopts.c: Ditto.
17686 * tree-vect-generic.c: Ditto.
17687 * tree-vect-patterns.c: Ditto.
17688 * tree.c: Ditto.
17689 * tree.h: Ditto.
17690 * ubsan.c: Ditto.
17691 * varasm.c: Ditto.
17692 * wide-int-print.cc: Ditto.
17693 * wide-int.cc: Ditto.
17694 * wide-int.h: Ditto.
17695
17696 2016-07-19 David Malcolm <dmalcolm@redhat.com>
17697
17698 * selftest.c (selftest::assert_streq): Handle NULL values of
17699 val_actual and val_expected.
17700
17701 2016-07-19 Martin Jambor <mjambor@suse.cz>
17702
17703 PR fortran/71688
17704 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
17705 rather than cgraph_create_node to get a call graph node.
17706
17707 2016-07-19 Richard Biener <rguenther@suse.de>
17708
17709 * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
17710 handle all tcc_constant bases and valueize SSA names.
17711 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
17712 tcc_constant bases.
17713
17714 2016-07-19 David Malcolm <dmalcolm@redhat.com>
17715
17716 * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
17717 the flags of the exit block and bb2, not just the entry block.
17718
17719 2016-07-19 Richard Biener <rguenther@suse.de>
17720
17721 PR tree-optimization/71901
17722 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
17723 align member, group stuff with the bitfield.
17724 (vn_ref_op_align_unit): New inline.
17725 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
17726 record element alignment and operand 3 unchanged.
17727 (ao_ref_init_from_vn_reference): Adjust.
17728 (valueize_refs_1): Likewise.
17729 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
17730
17731 2016-07-19 Richard Biener <rguenther@suse.de>
17732
17733 PR tree-optimization/71908
17734 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
17735 symbolic constants in a more reliable way.
17736
17737 2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
17738
17739 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
17740 comment.
17741 (vect_update_inits_of_drs): Likewise.
17742 (vect_create_cond_for_alias_checks): Likewise.
17743 * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
17744
17745 2016-07-19 Richard Biener <rguenther@suse.de>
17746
17747 PR lto/71907
17748 * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
17749 with an abstract origin that is not an inlined function outer
17750 scope add a self-reference as abstract origin.
17751 * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
17752
17753 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
17754
17755 PR target/71493
17756 * config/rs6000/rs6000.c (rs6000_function_value): Fix
17757 unintentional System V.4 structure return breakage for structures
17758 with a single floating point element.
17759
17760 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com>
17761
17762 PR tree-optimization/71734
17763 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
17764 contains REF, use it to check safelen, assume that safelen value
17765 must be greater 1, fix style.
17766 (ref_indep_loop_p_2): Add REF_LOOP argument.
17767 (ref_indep_loop_p): Pass LOOP as additional argument to
17768 ref_indep_loop_p_2.
17769
17770 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
17771
17772 * cfgexpand.c (expand_stack_vars): Implement synamic stack space
17773 allocation in the prologue.
17774 * explow.c (get_dynamic_stack_base): New function to return an address
17775 expression for the dynamic stack base.
17776 (get_dynamic_stack_size): New function to do the required dynamic stack
17777 space size calculations.
17778 (allocate_dynamic_stack_space): Use new functions.
17779 (align_dynamic_address): Move some code from
17780 allocate_dynamic_stack_space to new function.
17781 * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
17782
17783 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17784
17785 * config/s390/s390.c (s390_encode_section_info): Always set
17786 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
17787 found.
17788
17789 2016-07-18 Richard Biener <rguenther@suse.de>
17790
17791 PR tree-optimization/71893
17792 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
17793 for sizetype cast added by array_ref_element_size.
17794 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
17795
17796 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
17797
17798 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
17799 register parameters. Remove code to initialize argument pointer
17800 on TARGET_64BIT. Optimize call to _mcount when it can be reached
17801 using a pc-relative branch. Cleanup conditional code.
17802 * config/pa/pa.md (call_mcount): New expander.
17803 (call_mcount_nonpic): New insn.
17804 (call_mcount_pic): New insn and split.
17805 (call_mcount_pic_post_reload): New insn.
17806 (call_mcount_64bit): New insn and split.
17807 (call_mcount_64bit_post_reload): New insn.
17808
17809 2016-07-15 Georg-Johann Lay <avr@gjlay.de>
17810
17811 * config/avr/predicates.md (const_m255_to_m1_operand): New.
17812 * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
17813 * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
17814 (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
17815 (*usum_widenqihi3, *udiff_widenqihi3)
17816 (*addhi3_zero_extend.const): New combiner insns.
17817 (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
17818 just 1 bit is affected.
17819 * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
17820 (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
17821
17822 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
17823
17824 * omp-low.c (lower_omp_target): Mark data clauses with
17825 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
17826 zero-length subarrays.
17827
17828 2016-07-15 Richard Biener <rguenther@suse.de>
17829
17830 PR tree-optimization/71881
17831 * tree-loop-distribution.c (destroy_loop): Remove blocks in
17832 reverse DOM order to make debug temp generation happy.
17833
17834 2016-07-15 Richard Biener <rguenther@suse.de>
17835
17836 PR tree-optimization/71887
17837 * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
17838 verify it is not zero for division / modulo handling.
17839 (value_replacement): Adjust.
17840
17841 2016-07-15 Virendra Pathak <virendra.pathak@broadcom.com>
17842 Julian Brown <julian@codesourcery.com>
17843
17844 * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
17845 * config/aarch64/aarch64-cost-tables.h
17846 (vulcan_extra_costs): New variable.
17847 * config/aarch64/aarch64.c
17848 (vulcan_addrcost_table): Likewise.
17849 (vulcan_regmove_cost): Likewise.
17850 (vulcan_vector_cost): Likewise.
17851 (vulcan_branch_cost): Likewise.
17852 (vulcan_tunings): Likewise.
17853
17854 2016-07-15 Alexander Monakov <amonakov@ispras.ru>
17855
17856 * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
17857 (output_in_order): Loop over undefined variables too. Output them
17858 via assemble_undefined_decl. Skip variables that correspond to hard
17859 registers or have value-exprs.
17860 * varpool.c (symbol_table::output_variables): Handle undefined
17861 variables together with defined ones.
17862
17863 2016-07-15 Richard Biener <rguenther@suse.de>
17864
17865 * tree-ssa-pre.c (get_representative_for): Make sure to return
17866 the value number of SSA names.
17867 (phi_translate_1): get_representative_for cannot return NULL.
17868 (do_pre_regular_insertion): Remove redundant call to
17869 fully_constant_expression.
17870 (do_pre_partial_partial_insertion): Likewise.
17871
17872 2016-07-15 Bin Cheng <bin.cheng@arm.com>
17873
17874 * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
17875 (derive_simple_iv_with_niters): New function.
17876 (simple_iv): Rewrite using simple_iv_with_niters.
17877 * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
17878 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
17879 function.
17880 (number_of_iterations_exit): Rewrite using above function.
17881 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
17882 Decl.
17883
17884 2016-07-15 Richard Biener <rguenther@suse.de>
17885
17886 * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
17887 vec_construct cost.
17888
17889 2016-07-14 Jakub Jelinek <jakub@redhat.com>
17890
17891 PR tree-optimization/71872
17892 * tree-data-ref.c (get_references_in_stmt): Ignore references
17893 with is_gimple_constant get_base_address.
17894
17895 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
17896
17897 * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
17898 (TARGET_HAVE_LDACQD): New macro.
17899 * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
17900 than TARGET_HAVE_LDACQ.
17901 (arm_load_acquire_exclusivedi): Likewise.
17902 (arm_store_release_exclusivedi): Likewise.
17903
17904 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
17905
17906 PR rtl-optimization/71878
17907 * lra-constraints.c (match_reload): Pass information about other
17908 output operands. Create new unique register value if matching input
17909 operand shares same register value as output operand being considered.
17910 (curr_insn_transform): Record output operands already processed.
17911
17912 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17913
17914 PR target/65951
17915 PR tree-optimization/70923
17916 * tree-vect-patterns.c: Include mult-synthesis.h.
17917 (target_supports_mult_synth_alg): New function.
17918 (synth_lshift_by_additions): Likewise.
17919 (apply_binop_and_append_stmt): Likewise.
17920 (vect_synth_mult_by_constant): Likewise.
17921 (target_has_vecop_for_code): Likewise.
17922 (vect_recog_mult_pattern): Use above functions to synthesize vector
17923 multiplication by integer constants.
17924
17925 2016-07-14 Alan Modra <amodra@gmail.com>
17926
17927 * config/rs6000/altivec.md (altivec_mov<mode>): Disparage
17928 gpr alternatives. Correct '*' placement on Y,r alternative.
17929 Add '*' on operand 1 of r,r alternative.
17930
17931 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17932
17933 * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
17934 * expmed.h: ... Here.
17935
17936 2016-07-14 Jan Hubicka <hubicka@ucw.cz>
17937
17938 * gimple.h (stmt_can_terminate_bb_p): New function.
17939 * tree-cfg.c (need_fake_edge_p): Rename to ...
17940 (stmt_can_terminate_bb_p): ... this; return true if stmt can
17941 throw external; handle const and pure calls.
17942 * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
17943
17944 2016-07-14 Richard Biener <rguenther@suse.de>
17945
17946 PR tree-optimization/71866
17947 * tree-ssa-pre.c (get_constant_for_value_id): Remove.
17948 (do_hoist_insertion): Avoid endless recursion when we
17949 didn't insert anything because we managed to simplify
17950 things down to a constant or SSA name.
17951 (fully_constant_expression): Re-write in terms of ...
17952 * tree-ssa-sccvn.h (vn_nary_simplify): ... this. Declare.
17953 * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
17954 vn_nary_build_or_lookup_1.
17955 (vn_nary_build_or_lookup_1): Added flag and renamed from ...
17956 (vn_nary_build_or_lookup): ... this which now wraps it.
17957
17958 2016-07-14 Alan Modra <amodra@gmail.com>
17959
17960 PR target/71733
17961 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
17962 with p9_vector override before power9-dform override.
17963
17964 2016-07-13 Andi Kleen <ak@linux.intel.com>
17965
17966 * value-prof.c (gimple_value_profile_transformations): Don't run
17967 when auto_profile is on.
17968
17969 2016-07-13 Andi Kleen <ak@linux.intel.com>
17970
17971 * auto-profile.c (update_inlined_ind_target,
17972 afdo_indirect_call): Print information to dump file.
17973
17974 2016-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
17975
17976 * genrecog.c (special_predicate_operand_p): New function.
17977 (predicate_name): Move function.
17978 (validate_pattern): Don't warn about missing mode for all
17979 define_special_predicate predicates.
17980
17981 2016-07-13 Bin Cheng <bin.cheng@arm.com>
17982
17983 * tree-vect-data-refs.c (vect_no_alias_p): New function.
17984 (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
17985 resolve alias checks which are known at compilation time.
17986 Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
17987 alias checks are resolved. Move dump info for too many runtime
17988 alias checks to here...
17989 * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
17990
17991 2016-07-13 Richard Biener <rguenther@suse.de>
17992
17993 PR tree-optimization/24574
17994 * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
17995 position and add shift, rotate, divison and modulo support
17996 for left zero.
17997 (value_replacement): Pass in argument position to absorbing_element_p.
17998
17999 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
18000
18001 PR ipa/71633
18002 * ipa-inline-transform.c (inline_call): Support
18003 instrumented thunks.
18004
18005 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
18006
18007 * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
18008 (TARGET_IDIV): Set for all Thumb targets provided they have hardware
18009 divide feature.
18010 * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
18011 Baseline. Make initial alternative TARGET_32BIT only.
18012 (udivsi3): Likewise.
18013 * config/arm/thumb1.md (thumb1_cbz): New define_insn.
18014 * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
18015 target.
18016
18017 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
18018
18019 * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
18020 * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
18021 availability with TARGET_HAVE_MOVT.
18022 (thumb_legitimate_constant_p): Strip the high part of a label_ref.
18023 (thumb1_rtx_costs): Also return 0 if setting a half word constant and
18024 MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
18025 UINTVAL.
18026 (thumb1_size_rtx_costs): Make set of half word constant also cost 1
18027 extra instruction if MOVW is available. Use a cost variable
18028 incremented by COSTS_N_INSNS (1) when the condition match rather than
18029 returning an arithmetic expression based on COSTS_N_INSNS. Make
18030 constant with bottom half word zero cost 2 instruction if MOVW is
18031 available.
18032 * config/arm/arm.md (define_attr "arch"): Add v8mb.
18033 (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
18034 target is ARMv8-M Baseline.
18035 (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
18036 (arm_movtas_ze): Likewise.
18037 * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
18038 alternative for constants satisfying j constraint.
18039 (thumb1_movsi_insn): Likewise.
18040 (movsi splitter for K alternative): Tighten condition to not trigger
18041 if movt is available and j constraint is satisfied.
18042 (Pe immediate splitter): Likewise.
18043 (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
18044 constant fitting in an halfword to use MOVW.
18045 * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
18046 effective target.
18047
18048 2016-07-13 Richard Biener <rguenther@suse.de>
18049
18050 PR middle-end/71104
18051 * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
18052 gimplifying the LHS. Make sure to gimplify a returning twice
18053 call LHS without using SSA names.
18054
18055 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18056
18057 * tree-data-ref.c (find_data_references_in_stmt): Remove
18058 unnecessary call to vec::release.
18059 (graphite_find_data_references_in_stmt): Likewise.
18060 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
18061 * tree-vect-stmts.c (vectorizable_condition): Likewise.
18062
18063 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18064
18065 * cfgexpand.c (expand_used_vars): Make the type of a local
18066 variable auto_vec.
18067 * genmatch.c (lower_for): Likewise.
18068 * haifa-sched.c (haifa_sched_init): Likewise.
18069 (add_to_speculative_block): Likewise.
18070 (create_check_block_twin): Likewise.
18071 * predict.c (handle_missing_profiles): Likewise.
18072 * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
18073 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
18074 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
18075 Likewise.
18076 (maybe_lower_iteration_bound): Likewise.
18077 * tree-ssa-sccvn.c (DFS): Likewise.
18078 * tree-stdarg.c (reachable_at_most_once): Likewise.
18079 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
18080 (vectorizable_store): Likewise.
18081
18082 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18083
18084 * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
18085 (sccvn_dom_walker): make cond_stack an auto_vec.
18086
18087 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18088
18089 * ree.c (struct ext_state): Make type of members auto_vec.
18090 (find_and_remove_re): Adjust.
18091
18092 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18093
18094 * cfgexpand.c (struct stack_vars_data): Make type of fields
18095 auto_vec.
18096 (expand_used_vars): Adjust.
18097
18098 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18099
18100 * ipa.c (record_cdtor_fn): Adjust.
18101 (build_cdtor_fns): Likewise.
18102 (ipa_cdtor_merge): Make static_ctors and static_dtors local
18103 variables.
18104
18105 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18106
18107 * genextract.c (struct accum_extract): Add constructor and make
18108 members auto_vec.
18109 (gen_insn): Adjust.
18110
18111 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18112
18113 * tree.c (struct free_lang_data_d): Add constructor and change
18114 types of members to ones that automatically manage resources.
18115 (fld_worklist_push): Adjust.
18116 (find_decls_types): Likewise.
18117 (find_decls_types_in_eh_region): Likewise.
18118 (free_lang_data_in_cgraph): Stop manually creating and
18119 destroying members of free_lang_data_d.
18120
18121 2016-07-13 Uros Bizjak <ubizjak@gmail.com>
18122
18123 PR rtl-optimization/68961
18124 * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
18125 peephole variant. Use sse_reg_operand predicates.
18126
18127 2016-07-12 Uros Bizjak <ubizjak@gmail.com>
18128
18129 * config/i386/predicates.md (x86_64_immediate_operand)
18130 <case CONST_INT>: Remove unneeded truncation to DImode.
18131 <case CONST>: Ditto.
18132 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
18133
18134 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
18135
18136 PR target/71805
18137 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
18138 The xxperm and xxpermr instructions require that the 2nd input
18139 operand overlap with the output operand, and not the 1st.
18140 (altivec_vperm_v8hiv16qi): Likewise.
18141 (altivec_vperm_<mode>_uns_internal): Likewise.
18142 (altivec_vpermr_<mode>_internal): Likewise.
18143 (vperm_v8hiv4si): Likewise.
18144 (vperm_v16qiv8hi): Likewise.
18145
18146 2016-07-12 Nathan Sidwell <nathan@acm.org>
18147
18148 * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
18149 when -mno-pic-data-is-text-relative is in effect, by default.
18150 * doc/invoke.texi (mpic-data-is-text-relative): Document new
18151 behavior and clarify.
18152
18153 2016-07-12 Martin Liska <mliska@suse.cz>
18154
18155 * params.def: Add avg-loop niter.
18156 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
18157 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
18158 * doc/invoke.texi: Document the new parameter.
18159
18160 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18161
18162 PR middle-end/71700
18163 * expr.c (store_constructor): Mask sign-extended bits when widening
18164 sub-word constructor element at the start of a word.
18165
18166 2016-07-12 Martin Liska <mliska@suse.cz>
18167
18168 * Makefile.in: Append rule for params-options.h.
18169 * params-options.h: New file.
18170
18171 2016-07-12 Martin Liska <mliska@suse.cz>
18172
18173 * ira-build.c (mark_loops_for_removal): Properly iterate
18174 loops.
18175
18176 2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
18177 Richard Biener <rguenther@suse.de>
18178
18179 PR tree-optimization/23286
18180 PR tree-optimization/70159
18181 * doc/invoke.texi: Document -fcode-hoisting.
18182 * common.opt (fcode-hoisting): New flag.
18183 * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
18184 * tree-ssa-pre.c (pre_stats): Add hoist_insert.
18185 (do_regular_insertion): Rename to ...
18186 (do_pre_regular_insertion): ... this and amend general comments
18187 on insertion strathegy.
18188 (do_partial_partial_insertion): Rename to ...
18189 (do_pre_partial_partial_insertion): ... this.
18190 (do_hoist_insertion): New function.
18191 (insert_aux): Take flags on whether to do PRE and/or hoist insertion
18192 and call do_hoist_insertion properly.
18193 (insert): Adjust.
18194 (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
18195 (pass_pre::execute): Register hoist_insert stats.
18196
18197 2016-07-12 Jakub Jelinek <jakub@redhat.com>
18198
18199 PR middle-end/71716
18200 * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
18201 for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
18202 is different from mode's bitsize. Small cleanup.
18203
18204 2016-07-12 Richard Biener <rguenther@suse.de>
18205
18206 PR rtl-optimization/68961
18207 * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
18208 to simplify to a non-constant.
18209
18210 2016-07-11 Jakub Jelinek <jakub@redhat.com>
18211
18212 PR middle-end/71758
18213 * omp-low.c (expand_omp_target): Gimplify device.
18214
18215 PR tree-optimization/71823
18216 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
18217 to get vec_oprnds2 from op2.
18218
18219 2016-07-11 Uros Bizjak <ubizjak@gmail.com>
18220
18221 * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
18222 Hoist common subexpressions.
18223 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
18224
18225 2016-07-11 Pat Haugen <pthaugen@us.ibm.com>
18226
18227 PR target/71800
18228 * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
18229 prevent generation of 'stxsiwx' on pre Power8 hardware.
18230
18231 2016-07-11 David Malcolm <dmalcolm@redhat.com>
18232
18233 * input.c: Include cpplib.h.
18234 (selftest::temp_source_file): New class.
18235 (selftest::temp_source_file::temp_source_file): New ctor.
18236 (selftest::temp_source_file::~temp_source_file): New dtor.
18237 (selftest::should_have_column_data_p): New function.
18238 (selftest::test_should_have_column_data_p): New function.
18239 (selftest::temp_line_table): New class.
18240 (selftest::temp_line_table::temp_line_table): New ctor.
18241 (selftest::temp_line_table::~temp_line_table): New dtor.
18242 (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
18243 it to create a temp_line_table.
18244 (selftest::assert_loceq): Only verify LOCATION_COLUMN for
18245 locations that are known to have column data.
18246 (selftest::line_table_case): New struct.
18247 (selftest::test_reading_source_line): Move tempfile handling
18248 to class temp_source_file.
18249 (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
18250 (selftest::assert_token_loc_eq): New function.
18251 (ASSERT_TOKEN_LOC_EQ): New macro.
18252 (selftest::test_lexer): New function.
18253 (selftest::boundary_locations): New array.
18254 (selftest::input_c_tests): Call test_should_have_column_data_p.
18255 Loop over a test matrix of interesting values of location and
18256 default_range_bits, calling test_lexer on each case in the matrix.
18257 Move call to test_accessing_ordinary_linemaps into the matrix.
18258 * selftest.h (ASSERT_EQ): Reimplement in terms of...
18259 (ASSERT_EQ_AT): New macro.
18260
18261 2016-07-11 H.J. Lu <hongjiu.lu@intel.com>
18262
18263 PR target/71801
18264 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
18265 Don't convert TImode in debug insn.
18266
18267 2016-07-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
18268
18269 Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
18270 * tree-core.h (tree_base::nothrow_flag): Adjust comment.
18271 (tree_type_common::lang_flag_7): New.
18272 (tree_type_common::spare): Reduce size.
18273 * tree.h (TYPE_ALIGN_OK): Remove.
18274 (TYPE_LANG_FLAG_7): New.
18275 (get_inner_reference): Adjust header.
18276 * print-tree.c (print_node): Adjust.
18277 * expr.c (get_inner_reference): Remove parameter keep_aligning.
18278 (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
18279 calls to get_inner_reference.
18280 (expand_expr_real_1): Adjust call to get_inner_reference. Remove
18281 handling of TYPE_ALIGN_OK.
18282 * builtins.c (get_object_alignment_2): Adjust call to
18283 get_inner_reference. Remove handling of VIEW_CONVERT_EXPR.
18284 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
18285 TYPE_ALIGN_OK.
18286 * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
18287 * cfgexpand.c (expand_debug_expr): Likewise.
18288 * dbxout.c (dbxout_expand_expr): Likewise.
18289 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
18290 loc_list_from_tree, fortran_common): Likewise.
18291 * fold-const.c (optimize_bit_field_compare,
18292 decode_field_reference, fold_unary_loc, fold_comparison,
18293 split_address_to_core_and_offset): Likewise.
18294 * gimple-laddress.c (execute): Likewise.
18295 * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
18296 * gimplify.c (gimplify_scan_omp_clauses): Likewise.
18297 * hsa-gen.c (gen_hsa_addr): Likewise.
18298 * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
18299 * tsan.c (instrument_expr): Likewise.
18300 * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
18301 * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
18302 * tree-affine.c (tree_to_aff_combination,
18303 get_inner_reference_aff): Adjust calls to get_inner_reference.
18304 * tree-data-ref.c (split_constant_offset_1,
18305 dr_analyze_innermost): Likewise.
18306 * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
18307 * tree-sra.c (ipa_sra_check_caller): Likewise.
18308 * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
18309 * tree-ssa-math-opts.c (find_bswap_or_nop_load,
18310 bswap_replace): Likewise.
18311 * tree-vect-data-refs.c (vect_check_gather,
18312 vect_analyze_data_refs): Likewise.
18313 * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
18314 * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
18315 TYPE_ALIGN_OK.
18316
18317 2016-07-11 David Malcolm <dmalcolm@redhat.com>
18318
18319 * Makefile.in (selftest-valgrind): New phony target.
18320 * function-tests.c (selftest::build_cfg): Delete pass instances
18321 created by the test.
18322 (selftest::convert_to_ssa): Likewise.
18323 (selftest::test_expansion_to_rtl): Likewise.
18324 * tree-cfg.c (selftest::test_linear_chain): Release dominator
18325 vectors.
18326 (selftest::test_diamond): Likewise.
18327
18328 2016-07-11 Richard Biener <rguenther@suse.de>
18329
18330 PR tree-optimization/71816
18331 * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
18332 than replacing all of its operands.
18333
18334 2016-07-11 Alan Modra <amodra@gmail.com>
18335
18336 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
18337 (ctr<mode>): Add unspec.
18338 (ctr<mode>_internal*): Likewise.
18339
18340 2016-07-08 James Bowman <james.bowman@ftdichip.com>
18341
18342 * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
18343 * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
18344
18345 2016-07-08 Vladimir Makarov <vmakarov@redhat.com>
18346
18347 PR rtl-optimization/71621
18348 * lra-constraints.c (process_alt_operands): Check combination of
18349 reg class and mode.
18350
18351 2016-07-08 Jason Merrill <jason@redhat.com>
18352 Richard Biener <rguenther@suse.de>
18353
18354 P0145: Refining Expression Order for C++.
18355 * gimplify.c (initial_rhs_predicate_for): New.
18356 (gimplfy_modify_expr): Gimplify RHS before LHS.
18357
18358 2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18359
18360 PR target/71297
18361 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
18362 Allow standard error handling to take over when a wrong number
18363 of arguments is presented to __builtin_vec_ld () or
18364 __builtin_vec_st ().
18365
18366 2016-07-08 Jiong Wang <jiong.wang@arm.com>
18367
18368 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
18369 variants.
18370 (smin): Likewise.
18371 (fmax): New entry.
18372 (fmin): Likewise.
18373 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
18374 __builtin_aarch64_fmaxv2sf.
18375 (vmaxnmq_f32): Likewise.
18376 (vmaxnmq_f64): Likewise.
18377 (vminnm_f32): Likewise.
18378 (vminnmq_f32): Likewise.
18379 (vminnmq_f64): Likewise.
18380
18381 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
18382
18383 PR target/71806
18384 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
18385 enable -mfloat128-hardware by default.
18386 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
18387 that IEEE 128-bit hardware support needs.
18388 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
18389 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
18390 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
18391 floating point requires.
18392 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
18393 -mfloat128 and -mfloat128-hardware changes.
18394
18395 2016-07-08 Alan Hayward <alan.hayward@arm.com>
18396
18397 PR tree-optimization/71667
18398 * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
18399
18400 2016-07-08 Martin Liska <mliska@suse.cz>
18401
18402 PR middle-end/71606
18403 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
18404 folding produces SAVE_EXPRs, thus return false for the type.
18405
18406 2016-07-07 Martin Liska <mliska@suse.cz>
18407
18408 * file-find.c (remove_prefix): New function.
18409 * file-find.h (remove_prefix): Declare the function.
18410 * gcc-ar.c (main): Skip a folder of the wrapper if
18411 a wrapped binary would point to the same file.
18412
18413 2016-07-07 Jan Hubicka <jh@suse.cz>
18414
18415 * tree-scalar-evolution.c (iv_can_overflow_p): export.
18416 * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
18417 * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
18418
18419 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
18420
18421 PR ipa/71624
18422 * ipa-inline-analysis.c (compute_inline_parameters): Set
18423 local.can_change_signature to false for intrumentation
18424 thunk callees.
18425
18426 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
18427
18428 * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
18429 with TARGET_HAVE_MOVT.
18430 (TARGET_HAVE_MOVT): Define.
18431 * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
18432 availability with TARGET_HAVE_MOVT.
18433 * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
18434 availability.
18435 (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
18436 TARGET_THUMB2.
18437 (symbol_refs movsi splitter): Remove TARGET_32BIT check.
18438 (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
18439 * config/arm/constraints.md (define_constraint "j"): Use
18440 TARGET_HAVE_MOVT to check MOVT availability.
18441
18442 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
18443
18444 * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
18445
18446 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
18447
18448 * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
18449 (armv8-m.main): Likewise.
18450 (armv8-m.main+dsp): Likewise.
18451 * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
18452 (FL_FOR_ARCH8M_MAIN): Likewise.
18453 * config/arm/arm-tables.opt: Regenerate.
18454 * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
18455 armv8-m.main+dsp to BE8_LINK_SPEC.
18456 * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
18457 (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
18458 * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
18459 Baseline and Mainline.
18460 (arm_option_override_internal): Also disable arm_restrict_it when
18461 !arm_arch_notm. Update comment for -munaligned-access to also cover
18462 ARMv8-M Baseline.
18463 (arm_file_start): Increase buffer size for printing architecture name.
18464 * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
18465 and armv8-m.main+dsp.
18466 (mno-unaligned-access): Clarify that this is disabled by default for
18467 ARMv8-M Baseline architectures as well.
18468
18469 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
18470
18471 * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
18472 decide whether to prevent some libgcc routines being included for some
18473 multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
18474 link between this condition and the one in
18475 libgcc/config/arm/lib1func.S.
18476
18477 2016-07-07 Richard Biener <rguenther@suse.de>
18478
18479 * tree-ssa-pre.c: Include alias.h.
18480 (compute_avail): If we have multiple VN_REFERENCEs with the
18481 same hashtable entry adjust that to make it a valid replacement
18482 for all of them with respect to alignment and aliasing
18483 when doing insertion.
18484 * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
18485 * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
18486
18487 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
18488
18489 PR target/70098
18490 PR target/71763
18491 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
18492 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
18493 constraint.
18494
18495 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18496
18497 * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
18498 (adjust_mems): Adjust.
18499 (adjust_insn): Likewise.
18500 (prepare_call_arguments): Likewise.
18501
18502 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18503
18504 * gcse.c (struct ls_expr): Make stores field a vector.
18505 (ldst_entry): Adjust.
18506 (free_ldst_entry): Likewise.
18507 (print_ldst_list): Likewise.
18508 (compute_ld_motion_mems): Likewise.
18509 (update_ld_motion_stores): Likewise.
18510
18511 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18512
18513 * gcse.c (struct ls_expr): Remove loads field.
18514 (ldst_entry): Adjust.
18515 (free_ldst_entry): Likewise.
18516 (print_ldst_list): Likewise.
18517 (compute_ld_motion_mems): Likewise.
18518
18519 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18520
18521 * store-motion.c (struct st_expr): Make antic_stores a vector.
18522 (st_expr_entry): Adjust.
18523 (free_st_expr_entry): Likewise.
18524 (print_store_motion_mems): Likewise.
18525 (find_moveable_store): Likewise.
18526 (compute_store_table): Likewise.
18527 (remove_reachable_equiv_notes): Likewise.
18528 (replace_store_insn): Likewise.
18529 (build_store_vectors): Likewise.
18530
18531 2016-07-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18532
18533 * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
18534 cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
18535
18536 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
18537
18538 PR tree-optimization/71518
18539 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
18540 misalign also for outer loops with negative step.
18541
18542 2016-07-06 Wilco Dijkstra <wdijkstr@arm.com>
18543
18544 * config/arm/cortex-a53.md: Use final_presence_set for in-order.
18545 (cortex_a53_shift): Add mov_shift.
18546 (cortex_a53_shift_reg): Add new reservation for register shifts.
18547 (cortex_a53_alu): Remove bfm.
18548 (cortex_a53_alu_shift): Add bfm, remove mov_shift.
18549 (cortex_a53_alu_extr): Add new reservation for EXTR.
18550 (bypasses): Improve bypass modelling.
18551
18552 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
18553
18554 PR target/50739
18555 * config/avr/avr.c (avr_asm_select_section): Strip off
18556 SECTION_DECLARED from flags when calling get_section.
18557
18558 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18559
18560 * tree-vectorizer.h (vect_memory_access_type): Add
18561 VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
18562 * tree-vect-stmts.c (compare_step_with_zero): New function.
18563 (perm_mask_for_reverse): Move further up file.
18564 (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
18565 step is negative.
18566 (get_negative_load_store_type): New function.
18567 (get_load_store_type): Call it. Add an ncopies argument.
18568 (vectorizable_mask_load_store): Update call accordingly and
18569 remove tests for negative steps.
18570 (vectorizable_store, vectorizable_load): Likewise. Handle new
18571 memory_access_types.
18572
18573 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18574
18575 * tree-vectorizer.h (vect_memory_access_type): New enum.
18576 (_stmt_vec_info): Add a memory_access_type field.
18577 (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
18578 (vect_model_store_cost): Take an access type instead of a boolean.
18579 (vect_model_load_cost): Likewise.
18580 * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
18581 vect_model_store_cost and vect_model_load_cost.
18582 * tree-vect-stmts.c (vec_load_store_type): New enum.
18583 (vect_model_store_cost): Take an access type instead of a
18584 store_lanes_p boolean. Simplify tests.
18585 (vect_model_load_cost): Likewise, but for load_lanes_p.
18586 (get_group_load_store_type, get_load_store_type): New functions.
18587 (vectorizable_store): Use get_load_store_type. Record the access
18588 type in STMT_VINFO_MEMORY_ACCESS_TYPE.
18589 (vectorizable_load): Likewise.
18590 (vectorizable_mask_load_store): Likewise. Replace is_store
18591 variable with vls_type.
18592
18593 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18594
18595 * tree-vectorizer.h (vect_grouped_load_supported): Add a
18596 single_element_p parameter.
18597 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
18598 Check the PR65518 case here rather than in vectorizable_load.
18599 * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
18600 * tree-vect-stmts.c (vectorizable_load): Likewise.
18601
18602 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18603
18604 * tree-vectorizer.h (gather_scatter_info): New structure.
18605 (vect_check_gather_scatter): Return a bool rather than a decl.
18606 Replace return-by-pointer arguments with a single
18607 gather_scatter_info *.
18608 * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
18609 (vect_analyze_data_refs): Update call accordingly.
18610 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
18611 (vectorizable_mask_load_store): Likewise. Also record the
18612 offset dt and vectype in the gather_scatter_info.
18613 (vectorizable_store): Likewise.
18614 (vectorizable_load): Likewise.
18615
18616 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18617
18618 * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
18619 strided groups, use the cost of N scalar accesses instead
18620 of ncopies vector accesses.
18621 (vect_model_load_cost): Likewise.
18622
18623 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18624
18625 * tree-vect-stmts.c (vect_cost_group_size): Delete.
18626 (vect_model_store_cost): Avoid calling it. Use first_stmt_p
18627 variable to indicate when once-per-group costs are being used.
18628 (vect_model_load_cost): Likewise. Fix comment and misindented code.
18629
18630 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18631
18632 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
18633 peeling-for-gaps condition.
18634
18635 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18636
18637 * config/s390/s390.c (s390_expand_vec_init): Force initializer
18638 element to register if it doesn't match general_operand.
18639
18640 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
18641 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18642
18643 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
18644 prototype.
18645 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
18646 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
18647 (SIGNBIT): New mode iterator.
18648 (Fsignbit): New mode attribute.
18649 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
18650 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
18651 when direct moves are available.
18652 (signbit<mode>2_dm): New define_insn_and_split).
18653 (signbit<mode>2_dm2): New define_insn.
18654
18655 2016-07-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18656
18657 PR rtl-optimization/71594
18658 * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
18659 into subregs of appropriate mode before trying to emit a conditional
18660 move.
18661
18662 2016-07-05 Jan Hubicka <jh@suse.cz>
18663
18664 * tree-scalar-evolution.c (iv_can_overflow_p): New function.
18665 (simple_iv): Use it.
18666
18667 2016-07-05 Jan Hubicka <jh@suse.cz>
18668
18669 * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
18670
18671 2016-07-05 Jiong Wang <jiong.wang@arm.com>
18672
18673 * lra-constraints.c (process_alt_operands): Don't add spilling cost for
18674 "offmemok".
18675
18676 2016-07-05 Jan Hubicka <jh@suse.cz>
18677
18678 * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
18679 IV can overflow.
18680
18681 2016-07-05 Richard Biener <rguenther@suse.de>
18682
18683 * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
18684 Handle empty else block.
18685 (is_feasible_trace): Likewise.
18686 (split_paths): Likewise.
18687
18688 2016-07-05 Richard Biener <rguenther@suse.de>
18689
18690 * tree-loop-distribution.c (distribute_loop): Fix issue with
18691 the cost model loop.
18692
18693 2016-07-05 Christophe Lyon <christophe.lyon@linaro.org>
18694
18695 * config/arm/neon-testgen.ml: Delete.
18696 * config/arm/neon.ml: Delete.
18697
18698 2016-07-04 Jakub Jelinek <jakub@redhat.com>
18699
18700 PR c++/71739
18701 * tree.c (attribute_value_equal): Use get_attribute_name instead of
18702 directly using TREE_PURPOSE.
18703
18704 2016-07-04 Jiong Wang <jiong.wang@arm.com>
18705
18706 * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
18707 * config/aarch64/aarch64_neon.h: Likewise.
18708 * config/aarch64/arm_neon.h: Likewise.
18709 * config/aarch64/atomics.md: Likewise.
18710 * config/aarch64/aarch64-simd-builtins.def: Likewise.
18711 * doc/invoke.texi: Likewise.
18712
18713 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
18714
18715 * config/s390/s390.md: Add "z13" cpu_facility.
18716 ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
18717 * config/s390/predicates.md ("loc_operand"): New predicate for "load on
18718 condition" type instructions.
18719
18720 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
18721 Jeff Law <law@redhat.com>
18722
18723 * explow.c (allocate_dynamic_stack_space): Simplify knowing that
18724 MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
18725
18726 2016-07-04 Yuri Rumyantsev <ysrumyan@gmail.com>
18727
18728 * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
18729 permutation for TARGET_AVX512F.
18730 (ix86_expand_vec_one_operand_perm_avx512): New function.
18731 (expand_vec_perm_1): Invoke introduced function.
18732 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
18733 it may be not valid after vectorization.
18734
18735 2016-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18736
18737 PR target/63874
18738 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
18739 typo in comment. Only force to memory if it is a weak
18740 external reference.
18741
18742 2016-07-04 Matthew Wahab <matthew.wahab@arm.com>
18743 Jiong Wang <jiong.wang@arm.com>
18744
18745 * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
18746 * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
18747 (AARCH64_FL_F16): New.
18748 (AARCH64_FL_FOR_ARCH8_2): New.
18749 (AARCH64_ISA_8_2): New.
18750 (AARCH64_ISA_F16): New.
18751 (TARGET_FP_F16INST): New.
18752 (TARGET_SIMD_F16INST): New.
18753 * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
18754 ("fp"): Disabling "fp" also disables "fp16".
18755 * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
18756 Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
18757 and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
18758 * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
18759
18760 2016-07-04 Jan Beulich <jbeulich@suse.com>
18761
18762 * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
18763
18764 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
18765
18766 PR target/71720
18767 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
18768 the insns, use an insn form that does not adjust the offset on
18769 little endian systems.
18770
18771 2016-07-01 Jan Beulich <jbeulich@suse.com>
18772
18773 * varasm.c (get_variable_section): Validate initializer in
18774 named .bss-like sections.
18775
18776 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
18777
18778 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
18779 Exchange the order of the second and third operands in the vpermr
18780 instruction tmeplate.
18781
18782 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
18783
18784 PR target/71698
18785 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
18786 Disallow TDmode values.
18787
18788 2016-07-01 Alan Modra <amodra@gmail.com>
18789
18790 PR rtl-optimization/71709
18791 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
18792 being set, not referenced.
18793
18794 2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
18795
18796 PR tree-optimization/70729
18797 * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
18798 of loop since it can be not valid after transformation.
18799
18800 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18801
18802 * config/arm/arm.c (thumb_reload_in_hi): Delete.
18803 * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
18804
18805 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
18806
18807 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
18808 for NULL decl.
18809
18810 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
18811
18812 PR target/71677
18813 * config/rs6000/constraints.md (wY constraint): New constraint to
18814 match the requirements for the LXSD and STXSD instructions.
18815 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
18816 predicate to match the requirements for the LXSD and STXSD
18817 instructions.
18818 * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
18819 Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
18820 to make sure that the bottom 2 bits of offset are 0, the address
18821 form is offsettable, and no updating is done in the address mode.
18822 (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
18823 (movdi_internal32): Likewise
18824 (movdi_internal64): Likewise.
18825
18826 2016-06-30 Jakub Jelinek <jakub@redhat.com>
18827
18828 PR tree-optimization/71707
18829 * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
18830 strinfo even for ADDR_EXPR ptr.
18831
18832 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
18833
18834 * config/rs6000/altivec.md (darn_32): Change the condition to
18835 TARGET_P9_MISC instead of TARGET_MODULO.
18836 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
18837 condition expression.
18838 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
18839 condition expression.
18840 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
18841 (DFP_TEST): New code iterator.
18842 (dfptstsfi_<code>_mode>): New define_expand.
18843 (*dfp_sgnfcnc_<mode>): New define_insn.
18844 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
18845 definition next to BU_P9_MISC_1 definition and change the MASK
18846 value to RS6000_BTM_P9_MISC.
18847 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
18848 (BU_P9_64BIT_MISC_0): Likewise.
18849 (BU_P9_DFP_MISC_0): New macro definition.
18850 (BU_P9_DFP_MISC_1): New macro definition.
18851 (BU_P9_DFP_MISC_2): New macro definition.
18852 (BU_P9_DFP_OVERLOAD_1): New macro definition.
18853 (BU_P9_DFP_OVERLOAD_2): New macro definition.
18854 (BU_P9_DFP_OVERLOAD_3): New macro definition.
18855 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
18856 (TSTSFI_LT_TD): Likewise.
18857 (TSTSFI_EQ_DD): Likewise.
18858 (TSTSFI_EQ_TD): Likewise.
18859 (TSTSFI_GT_DD): Likewise.
18860 (TSTSFI_GT_TD): Likewise.
18861 (TSTSFI_OV_DD): Likewise.
18862 (TSTSFI_OV_TD): Likewise.
18863 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
18864 (TSTSFI_LT_DD): Likewise.
18865 (TSTSFI_LT_TD): Likewise.
18866 (TSTSFI_EQ): Likewise.
18867 (TSTSFI_EQ_DD): Likewise.
18868 (TSTSFI_EQ_TD): Likewise.
18869 (TSTSFI_GT): Likewise.
18870 (TSTSFI_GT_DD): Likewise.
18871 (TSTSFI_GT_TD): Likewise.
18872 (TSTSFI_OV): Likewise.
18873 (TSTSFI_OV_DD): Likewise.
18874 (TSTSFI_OV_TD): Likewise.
18875 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
18876 overloaded test significance functions.
18877 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
18878 OPTION_MASK_P9_MISC into the representation of this mask.
18879 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
18880 of this mask.
18881 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
18882 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
18883 non-zero.
18884 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
18885 argument is a 6-bit unsigned literal value if the icode argument
18886 represents a DFP test significance built-in call.
18887 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
18888 flag used independently and in combination with the
18889 RS6000_BTM_64BIT flag.
18890 (rs6000_opt_masks): Add entry for power9-misc command-line option.
18891 (rs6000_builtin_mask_names): Add entry for power9-misc
18892 command-line option.
18893 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
18894 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
18895 RS6000_BTM_P9_MISC macros.
18896 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
18897 option and change the description of the -mpower9-vector option to
18898 enable only vector instructions, removing its erroneously claimed
18899 support for scalar instructions.
18900 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
18901 the ISA 3.0 digital floating point test significance built-in
18902 functions.
18903
18904 2016-06-30 Wilco Dijkstra <wdijkstr@arm.com>
18905
18906 * config/aarch64/aarch64.c (cortexa35_tunings):
18907 Enable AES fusion. Use cortexa57_branch_cost.
18908 (cortexa53_tunings): Use cortexa57_branch_cost.
18909 (cortexa72_tunings): Use cortexa57_branch_cost.
18910 Use AUTOPREFETCHER_WEAK.
18911 (cortexa73_tunings): Use cortexa57_branch_cost.
18912
18913 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18914 James Greenhalgh <james.greenhalgh@arm.com>
18915
18916 * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
18917 vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
18918 vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
18919 vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
18920 (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
18921 vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
18922 vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
18923 vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
18924 vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
18925 vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
18926 vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
18927 vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
18928 vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
18929 New intrinsics.
18930
18931 2016-06-30 James Greenhalgh <james.greenhalgh@arm.com>
18932 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18933
18934 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
18935 New define_insn.
18936 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
18937
18938 2016-06-30 David Malcolm <dmalcolm@redhat.com>
18939
18940 PR driver/71651
18941 * gcc.c (driver::build_option_suggestions): Pass "option" to
18942 add_misspelling_candidates.
18943 * opts-common.c (add_misspelling_candidates): Add "option" param;
18944 use it to avoid adding negated forms for options marked with
18945 RejectNegative.
18946 * opts.h (add_misspelling_candidates): Add "option" param.
18947
18948 2016-06-30 Jakub Jelinek <jakub@redhat.com>
18949
18950 PR middle-end/71693
18951 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
18952 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
18953 first when permuting bitwise operation with rotate. Cast
18954 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
18955
18956 2016-06-29 David Malcolm <dmalcolm@redhat.com>
18957
18958 * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
18959 for misspelled param names.
18960 * params.c: Include spellcheck.h.
18961 (find_param_fuzzy): New function.
18962 * params.h (find_param_fuzzy): New prototype.
18963 * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
18964 * spellcheck.h (struct edit_distance_traits<const char *>):
18965 ...here.
18966
18967 2016-06-29 Michael Meissner <meissner@linux.vnet.ibm.com>
18968
18969 * config/rs6000/predicates.md (const_0_to_7_operand): New
18970 predicate, recognize 0..7.
18971 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
18972 support for doing extracts from V16QImode, V8HImode, V4SImode
18973 under ISA 3.0.
18974 * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
18975 vector extract support.
18976 (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
18977 for ISA 3.0 vector extract.
18978 (VSX_EX): Constraints to use for ISA 3.0 vector extract.
18979 (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
18980 extracts of a constant element number from small integer vectors
18981 on 64-bit ISA 3.0 systems.
18982 (vsx_extract_<mode>_di): Likewise.
18983 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
18984 say when we can do ISA 3.0 vector extracts.
18985 * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
18986 registers, using the stxsiwx instruction.
18987
18988 2016-06-29 Jim Wilson <jim.wilson@linaro.org>
18989
18990 * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
18991 * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
18992 qdf24xx_regmove_cost, qdf24xx_tunings): New.
18993 * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
18994 * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
18995 * config/arm/arm.c (arm_qdf24xx_tune): New.
18996
18997 2016-06-29 Wilco Dijkstra <wdijkstr@arm.com>
18998
18999 * config/aarch64/aarch64.c (cortexa53_tunings):
19000 Increase loop alignment to 8. Set function alignment to 16.
19001 (cortexa35_tunings): Likewise.
19002 (cortexa57_tunings): Increase loop alignment to 8.
19003 (cortexa72_tunings): Likewise.
19004 (cortexa73_tunings): Likewise.
19005
19006 2016-06-29 Matthew Wahab <matthew.wahab@arm.com>
19007
19008 * doc/sourcebuild.texi (Effective-Target keywords): Add entries
19009 for arm_fp16_ok and arm_fp16_hw.
19010 (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
19011 arm_fp16_alternative.
19012
19013 2016-06-29 Ilya Enkovich <ilya.enkovich@intel.com>
19014
19015 PR tree-optimization/71655
19016 * tree-vect-stmts.c (vectorizable_comparison): Swap definition
19017 types when swapping operands.
19018
19019 2016-06-29 Martin Liska <mliska@suse.cz>
19020
19021 PR middle-end/71585
19022 * common.opt (flag_stack_protect): Mark the flag as optimization flag.
19023 * ipa-inline-transform.c (inline_call): Remove unnecessary call
19024 of build_optimization_node.
19025
19026 2016-06-29 Yuri Rumyantsev <ysrumyan@gmail.com>
19027
19028 PR tree-optimization/70729
19029 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
19030 independent in loops having positive safelen value.
19031 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
19032 it may be not valid after vectorization.
19033
19034 2016-06-29 Jakub Jelinek <jakub@redhat.com>
19035
19036 PR tree-optimization/71625
19037 * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument. Assume list
19038 is sorted by ascending list->offset. If PTR is non-NULL and there is
19039 previous strinfo, call get_stridx_plus_constant.
19040 (get_stridx): Pass exp as second argument to get_addr_stridx.
19041 (addr_stridxptr): Add missing list = list->next, so that there can be
19042 more than one entries in the list. Bump limit from 16 to 32. Ensure
19043 the list is sorted by ascending list->offset.
19044 (get_stridx_plus_constant): Adjust so that it can be also called with
19045 ADDR_EXPR instead of SSA_NAME as PTR.
19046 (handle_char_store): Pass NULL_TREE as second argument to
19047 get_addr_stridx.
19048
19049 2016-06-29 Richard Biener <rguenther@suse.de>
19050
19051 PR rtl-optimization/68961
19052 * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
19053
19054 2016-06-29 Richard Biener <rguenther@suse.de>
19055
19056 PR middle-end/71002
19057 * alias.c (component_uses_parent_alias_set_from): Handle
19058 type punning through union accesses by using the union alias set.
19059 * gimple.c (gimple_get_alias_set): Remove union type punning case.
19060
19061 2016-07-29 Richard Biener <rguenther@suse.de>
19062
19063 * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
19064 precision not matching mode precision.
19065
19066 2016-06-28 John David Anglin <danglin@gcc.gnu.org>
19067
19068 * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
19069 pa_output_arg_descriptor.
19070 (call_val_symref_64bit_post_reload): Likewise.
19071 (call_val_powf_64bit_post_reload): Likewise.
19072 (sibcall_internal_symref_64bit): Likewise.
19073 (sibcall_value_internal_symref_64bit): Likewise.
19074
19075 2016-06-28 Jakub Jelinek <jakub@redhat.com>
19076
19077 PR middle-end/71626
19078 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
19079 a constant, force its SUBREG_REG into memory or register instead
19080 of whole op1.
19081
19082 2016-06-28 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
19083
19084 PR target/58655
19085 * config/avr/avr.opt (-mfract-convert-truncate): Update description.
19086 * doc/invoke.texi (AVR Options): Document it.
19087
19088 2016-06-28 Walter Lee <walt@tilera.com>
19089
19090 * config/tilegx/linux.h: Do not include arch/icache.h
19091 (CLEAR_INSN_CACHE): Provide inlined definition directly.
19092 * config/tilepro/linux.h: Do not include arch/icache.h
19093 (CLEAR_INSN_CACHE): Provide inlined definition directly.
19094
19095 2016-06-28 Wilco Dijkstra <wdijkstr@arm.com>
19096
19097 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
19098 for big-endian BIT_FIELD_REF.
19099
19100 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
19101
19102 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
19103 ('size' attribute): Add '128'.
19104 Include power9.md.
19105 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
19106 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
19107 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
19108 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
19109 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
19110 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
19111 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
19112 *trunc<mode>df2_odd): Set size attribute to '128'.
19113 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
19114 * config/rs6000/power6.md (power6-fp): Include dfp type.
19115 * config/rs6000/power7.md (power7-fp): Likewise.
19116 * config/rs6000/power8.md (power8-fp): Likewise.
19117 * config/rs6000/power9.md: New file.
19118 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
19119 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
19120 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
19121 htmsimple.
19122 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
19123 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
19124 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
19125 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
19126 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
19127 dfp_dscri_<mode>): Change type attribute to dfp.
19128 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
19129 attribute to vecsimple.
19130 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
19131 and prefetch streams.
19132 (rs6000_option_override_internal): Remove temporary code setting
19133 tuning to power8. Don't set rs6000_sched_groups for power9.
19134 (last_scheduled_insn): Change to rtx_insn *.
19135 (divide_cnt, vec_load_pendulum): New variables.
19136 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
19137 (rs6000_issue_rate): Set issue rate for Power9.
19138 (is_power9_pairable_vec_type): New.
19139 (power9_sched_reorder2): New.
19140 (rs6000_sched_reorder2): Call new function for Power9 specific
19141 reordering.
19142 (insn_must_be_first_in_group): Remove Power9.
19143 (insn_must_be_last_in_group): Likewise.
19144 (force_new_group): Likewise.
19145 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
19146 Initialize divide_cnt/vec_load_pendulum.
19147 (_rs6000_sched_context, rs6000_init_sched_context,
19148 rs6000_set_sched_context): Handle context save/restore of new
19149 variables.
19150
19151 2016-06-28 Richard Biener <rguenther@suse.de>
19152
19153 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
19154 Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
19155 COMPONENT_REF operand.
19156 (nonoverlapping_component_refs_p): Likewise.
19157 * stor-layout.c (start_bitfield_representative): Mark
19158 DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
19159
19160 2016-06-28 Jakub Jelinek <jakub@redhat.com>
19161
19162 * Makefile.in: Don't cat ../stage_current if it does not exist.
19163
19164 * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
19165 last argument is a bit-field.
19166
19167 PR rtl-optimization/71673
19168 * internal-fn.c (expand_arith_overflow_result_store): Use
19169 OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
19170 expand_simple_binop.
19171
19172 PR middle-end/66867
19173 * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
19174 expand_ifn_atomic_compare_exchange): New functions.
19175 * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
19176 * tree.h (build_call_expr_internal_loc): Rename to ...
19177 (build_call_expr_internal_loc_array): ... this. Fix up type of
19178 last argument.
19179 * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
19180 * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
19181 ATOMIC_COMPARE_EXCHANGE result.
19182 * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
19183 * gimple-fold.h (optimize_atomic_compare_exchange_p,
19184 fold_builtin_atomic_compare_exchange): New prototypes.
19185 * gimple-fold.c (optimize_atomic_compare_exchange_p,
19186 fold_builtin_atomic_compare_exchange): New functions..
19187 * tree-ssa.c (execute_update_addresses_taken): If
19188 optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
19189 of call when finding addressable vars, and if such var becomes
19190 non-addressable, call fold_builtin_atomic_compare_exchange.
19191
19192 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
19193
19194 PR target/71670
19195 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
19196 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
19197
19198 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
19199
19200 * config/rs6000/rs6000.md ('type' attribute): Add
19201 veclogical,veccmpfx,vecexts,vecmove insn types.
19202 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
19203 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
19204 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
19205 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
19206 *nabs<mode>2_hw): Change type to vecmove.
19207 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
19208 *boolcc<mode>3_internal, *eqv<mode>3_internal,
19209 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
19210 *ieee_128bit_vsx_abs<mode>2_internal,
19211 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
19212 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
19213 *ieee128_mtvsrd_32bit): Change type to veclogical.
19214 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
19215 *movdi_internal32, *movdi_internal64): Update insn types.
19216 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
19217 vsx_extract_<mode>): Change type to veclogical.
19218 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
19219 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
19220 *vsx_sign_extend_si_v2di): Change type to vecexts.
19221 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
19222 type to veclogical.
19223 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
19224 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
19225 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
19226 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
19227 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
19228 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
19229 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
19230 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
19231 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
19232 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
19233 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
19234 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
19235 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
19236 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
19237 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
19238 (ppc7450-vecsimple): Add veclogical, vecmove.
19239 (ppc7450-veccmp): Add veccmpfx.
19240 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
19241 vecmove.
19242 (ppc8540_vector_compare): Add veccmpfx.
19243 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
19244 * config/rs6000/cell.md (cell-fp): Add fpsimple.
19245 (cell-vecsimple): Add veclogical, vecmove.
19246 (cell-veccmp): Add veccmpfx.
19247 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
19248 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
19249 veccmpfx.
19250 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
19251 * config/rs6000/power4.md (power4-fp): Add fpsimple.
19252 (power4-vecsimple): Add veclogical, vecmove.
19253 (power4-veccmp): Add veccmpfx.
19254 * config/rs6000/power5.md (power5-fp): Add fpsimple.
19255 * config/rs6000/power6.md (power6-fp): Add fpsimple.
19256 (power6-vecsimple): Add veclogical, vecmove.
19257 (power6-veccmp): Add veccmpfx.
19258 * config/rs6000/power7.md (power7-fp): Add fpsimple.
19259 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
19260 * config/rs6000/power8.md (power8-fp): Add fpsimple.
19261 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
19262 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
19263 * config/rs6000/titan.md (titan_fp): Add fpsimple.
19264 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
19265 fpsimple.
19266 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
19267
19268 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
19269
19270 PR target/71656
19271 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
19272 OPTION_MASK_P9_DFORM_VECTOR.
19273 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
19274 disable -mpower9-dform-vector when using reload.
19275 (quad_address_p): Remove 'gpr_p' argument and all associated code.
19276 New 'strict' argument. Update all callers. Add strict addressing
19277 support.
19278 (rs6000_legitimate_offset_address_p): Remove call to
19279 virtual_stack_registers_memory_p.
19280 (rs6000_legitimize_reload_address): Add quad address support.
19281 (rs6000_legitimate_address_p): Move call to quad_address_p above
19282 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
19283 to account for new strict usage.
19284 (rs6000_output_move_128bit): Adjust quad_address_p args to account
19285 for new strict usage.
19286 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
19287
19288 2016-06-26 Uros Bizjak <ubizjak@gmail.com>
19289
19290 PR target/70902
19291 PR target/71453
19292 PR target/71555
19293 PR target/71596
19294 PR target/71657
19295 * config/i386/i386.c (ix86_spill_class): Disable condition to
19296 always return NO_REGS.
19297
19298 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
19299
19300 * predict.c: Include gimple-pretty-print.h
19301 (predicted_by_loop_heuristics_p): Check also
19302 PRED_LOOP_EXIT_WITH_RECURSION
19303 (predict_loops): Find self recursive calls and use special purpose
19304 predictors for them; dump log about decisions.
19305 (pass_profile::execute): Dump info about #of iterations.
19306 * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
19307 (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
19308
19309 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
19310
19311 * config/pa/pa.c (pa_output_indirect_call): Rework to combine
19312 output_asm_insn calls and shorten long lines. Output .CALL
19313 argument descriptor using pa_output_arg_descriptor. Add various
19314 inline $$dyncall and other optimizations.
19315 (pa_attr_length_indirect_call): Adjust ordering and lengths.
19316
19317 2016-06-25 Jakub Jelinek <jakub@redhat.com>
19318
19319 PR tree-optimization/71643
19320 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
19321 EH preds.
19322
19323 * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
19324 leak a bitmap if dep_bb is NULL.
19325
19326 PR tree-optimization/71631
19327 * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
19328 to rewrite_expr_tree even if negate_result, move new_lhs var
19329 declaration and initialization earlier, for powi_result set afterwards
19330 new_lhs to lhs. For negate_result, use new_lhs instead of tmp
19331 if new_lhs != lhs, and don't shadow gsi var.
19332
19333 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
19334
19335 * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
19336 Add in_loop parameter.
19337 (predict_loops): Add loop guard heuristics.
19338 * predict.def (PRED_LOOP_GUARD): New heuristics.
19339
19340 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
19341
19342 * predict.c: Include ipa-utils.h
19343 (tree_bb_level_prediction): Predict recursive calls.
19344 (tree_estimate_probability_bb): Skip inexpensive calls for call
19345 predictor.
19346 * predict.def (PRED_RECURSIVE_CALL): New.
19347
19348 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19349
19350 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
19351 (BU_FLOAT128_1): Likewise.
19352 (FABSQ): Likewise.
19353 (COPYSIGNQ): Likewise.
19354 (RS6000_BUILTIN_NANQ): Likewise.
19355 (RS6000_BUILTIN_NANSQ): Likewise.
19356 (RS6000_BUILTIN_INFQ): Likewise.
19357 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
19358 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
19359 (TARGET_FOLD_BUILTIN): New #define.
19360 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
19361 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
19362 (rs6000_fold_builtin): New target hook implementation, handling
19363 folding of 128-bit NaNs and infinities.
19364 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
19365 entries are filled in to avoid problems during bootstrap
19366 self-test; define builtins for 128-bit NaNs and infinities.
19367 (rs6000_opt_mask): Add entry for float128.
19368 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
19369 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
19370 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
19371 (const_str_type_node): New #define.
19372 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
19373 to a define_expand that dispatches to either copysign<mode>3_soft
19374 or copysign<mode>3_hard.
19375 (copysign<mode>3_hard): Rename from copysign<mode>3.
19376 (copysign<mode>3_soft): New define_insn.
19377 * doc/extend.texi: Document new builtins.
19378
19379 2016-06-24 Jakub Jelinek <jakub@redhat.com>
19380
19381 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
19382 PRIu64 instead of lu.
19383
19384 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
19385
19386 PR debug/71642
19387 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
19388 copy the type name.
19389
19390 2016-06-24 Jakub Jelinek <jakub@redhat.com>
19391
19392 PR tree-optimization/71647
19393 * omp-low.c (lower_rec_input_clauses): Convert
19394 omp_clause_aligned_alignment (c) to size_type_node for the
19395 last argument of __builtin_assume_aligned.
19396
19397 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
19398
19399 * configure.ac (calling ___tls_get_addr via GOT): New
19400 assembler/linker check.
19401 (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New. Defined to 1 if 32-bit
19402 assembler and linker supports calling ___tls_get_addr via GOT.
19403 Otherise, defined to 0.
19404 * config.in: Regenerated.
19405 * configure: Likewise.
19406 * config/i386/constraints.md (Yb): New constraint.
19407 * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
19408 (REG_CLASS_NAMES): Likewise.
19409 (REG_CLASS_CONTENTS): Likewise.
19410 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
19411 the b constraint with the Yb constraint. Call ___tls_get_addr
19412 via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
19413 is 1.
19414 (*tls_local_dynamic_base_32_gnu): Likewise.
19415 (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
19416 GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
19417 (*tls_local_dynamic_base_64_<mode>): Likewise.
19418
19419 2016-06-24 Martin Liska <mliska@suse.cz>
19420
19421 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
19422 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
19423 few functions.
19424 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
19425 argument to true if the expected number of iterations is
19426 loop-based.
19427
19428 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
19429
19430 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
19431 assemble for 32bit target.
19432 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
19433 and $ld_ix86_gld_32_opt to link for 32bit target.
19434 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
19435 * configure: Regenerate.
19436
19437 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19438
19439 * config/arm/arm.c (int_log2): Delete definition and prototype.
19440 (shift_op): Use exact_log2 instead of int_log2.
19441 (vfp3_const_double_for_fract_bits): Likewise.
19442
19443 2016-06-24 Jakub Jelinek <jakub@redhat.com>
19444
19445 * internal-fn.c (expand_arith_set_overflow): New function.
19446 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
19447 Use it.
19448 (expand_arith_overflow_result_store): Likewise. Handle precision
19449 smaller than mode precision.
19450 * tree-vrp.c (extract_range_basic): For imag part, handle
19451 properly signed 1-bit precision result.
19452 * doc/extend.texi (__builtin_add_overflow): Document that last
19453 argument can't be pointer to enumerated or boolean type.
19454 (__builtin_add_overflow_p): Document that last argument can't
19455 have enumerated or boolean type.
19456
19457 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
19458 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19459
19460 * config/rs6000/predicates.md (splat_input_operand): Rework.
19461 Don't allow constants, since the insns that use this predicate
19462 don't support constants. Constants are handled by other insns
19463 that are created via combine. During and after register
19464 allocation, only allow indexed or indirect addresses, and not
19465 general addresses. Only allow modes supported by the hardware.
19466 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
19467 comment. Move check for using VSPLTIS<x> to a common location,
19468 instead of doing it in two different places.
19469
19470 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
19471
19472 * config/i386/driver-i386.c (host_detect_local_cpu): Set
19473 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
19474 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
19475 signature_CENTAUR_ebx.
19476
19477 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
19478
19479 PR target/66232
19480 PR target/67400
19481 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
19482 (as_ix86_gas_32_opt): This.
19483 (ld_ix86_tls_ldm_opt): Renamed to ...
19484 (ld_ix86_gld_32_opt): This.
19485 (R_386_TLS_LDM reloc): Updated.
19486 (R_386_GOT32X reloc): New assembler/linker check.
19487 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
19488 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
19489 defined to 0.
19490 * config.in: Regenerated.
19491 * configure: Likewise.
19492 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
19493 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
19494 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
19495 if ix86_force_load_from_GOT_p returns true.
19496 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
19497 ix86_force_load_from_GOT_p returns true.
19498 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
19499 the external function address via the GOT slot.
19500 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
19501 HAVE_AS_IX86_GOT32X before returning false.
19502 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
19503 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
19504
19505 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
19506
19507 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
19508
19509 2016-06-23 Andi Kleen <ak@linux.intel.com>
19510
19511 * Makefile.in: Regenerate.
19512 * doc/install.texi: Document autoprofiledbootstrap.
19513
19514 2016-06-23 Andi Kleen <ak@linux.intel.com>
19515
19516 * config/i386/gcc-auto-profile: New file.
19517
19518 2016-06-23 Martin Liska <mliska@suse.cz>
19519
19520 PR middle-end/71619
19521 * predict.c (predict_loops): Revert the hunk that was removed
19522 in r237103.
19523
19524 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
19525
19526 * config.gcc: Add support for arm*-*-phoenix* targets.
19527 * config/arm/t-phoenix: New.
19528 * config/phoenix.h: New.
19529
19530 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
19531 H.J. Lu <hongjiu.lu@intel.com>
19532
19533 PR target/67400
19534 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
19535 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
19536 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
19537 ix86_force_load_from_GOT_p returns true.
19538 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
19539 ix86_force_load_from_GOT_p returns true.
19540 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
19541 ix86_force_load_from_GOT_p returns true.
19542 (ix86_expand_move): Load the external function address via the
19543 GOT slot if ix86_force_load_from_GOT_p returns true.
19544 * config/i386/predicates.md (x86_64_immediate_operand): Return
19545 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
19546 (x86_64_zext_immediate_operand): Ditto.
19547
19548 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
19549
19550 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
19551
19552 2016-06-22 David Malcolm <dmalcolm@redhat.com>
19553
19554 PR c/70339
19555 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
19556 * diagnostic.c (pedwarn_at_rich_loc): New function.
19557 * spellcheck.h (best_match::best_match): Add a
19558 "best_distance_so_far" optional parameter.
19559 (best_match::set_best_so_far): New method.
19560 (best_match::get_best_distance): New accessor.
19561 (best_match::get_best_candidate_length): New accessor.
19562
19563 2016-06-22 Nick Clifton <nickc@redhat.com>
19564
19565 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
19566 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
19567 modes are accepted as well.
19568 (ucompare_loc_descriptor): Likewise.
19569 (minmax_loc_descriptor): Likewise.
19570 (clz_loc_descriptor): Likewise.
19571 (popcount_loc_descriptor): Likewise.
19572 (bswap_loc_descriptor): Likewise.
19573 (rotate_loc_descriptor): Likewise.
19574 (mem_loc_descriptor): Likewise.
19575 (loc_descriptor): Likewise.
19576
19577 2016-06-22 David Malcolm <dmalcolm@redhat.com>
19578
19579 * common.opt (fdiagnostics-parseable-fixits): New option.
19580 * diagnostic.c: Include "selftest.h".
19581 (print_escaped_string): New function.
19582 (print_parseable_fixits): New function.
19583 (diagnostic_report_diagnostic): Call print_parseable_fixits.
19584 (selftest::assert_print_escaped_string): New function.
19585 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
19586 (selftest::test_print_escaped_string): New function.
19587 (selftest::test_print_parseable_fixits_none): New function.
19588 (selftest::test_print_parseable_fixits_insert): New function.
19589 (selftest::test_print_parseable_fixits_remove): New function.
19590 (selftest::test_print_parseable_fixits_replace): New function.
19591 (selftest::diagnostic_c_tests): New function.
19592 * diagnostic.h (struct diagnostic_context): Add field
19593 "parseable_fixits_p".
19594 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
19595 -fdiagnostics-parseable-fixits.
19596 (-fdiagnostics-parseable-fixits): New option.
19597 * opts.c (common_handle_option): Handle
19598 -fdiagnostics-parseable-fixits.
19599 * selftest-run-tests.c (selftest::run_tests): Call
19600 selftest::diagnostic_c_tests.
19601 * selftest.h (selftest::diagnostic_c_tests): New prototype.
19602
19603 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
19604
19605 PR tree-optimization/71488
19606 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
19607 comparison of boolean vectors.
19608 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
19609 of boolean vectors using bitwise operations.
19610
19611 2016-06-22 Andreas Schwab <schwab@suse.de>
19612
19613 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
19614 Remove declaration.
19615
19616 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
19617
19618 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
19619
19620 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
19621
19622 * config/i386/i386.c (print_reg): Emit an error message on attempt to
19623 print FLAGS_REG.
19624
19625 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19626
19627 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
19628 * config/arm/arm-cores.def (cortex-a73): New entry.
19629 (cortex-a73.cortex-a35): Likewise.
19630 (cortex-a73.cortex-a53): Likewise.
19631 * config/arm/arm-tables.opt: Regenerate.
19632 * config/arm/arm-tune.md: Likewise.
19633 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
19634 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
19635 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
19636 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
19637 * doc/invoke.texi (ARM Options): Document cortex-a73,
19638 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
19639
19640 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19641
19642 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
19643 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
19644 (cortex-a73.cortex-a35): Likewise.
19645 (cortex-a73.cortex-a53): Likewise.
19646 * config/aarch64/aarch64-tune.md: Regenerate.
19647 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
19648 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
19649 -mcpu and -mtune.
19650
19651 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19652
19653 * configure.ac (gcc_cv_as_compress_debug): Remove
19654 --compress-debug-sections as extra as switch.
19655 Handle gas --compress-debug-sections=type.
19656 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
19657 Handle gld --compress-debug-sections=type.
19658 * configure: Regenerate.
19659
19660 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
19661
19662 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
19663
19664 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
19665
19666 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
19667 (do_rewrite): likewise.
19668
19669 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19670
19671 * common/config/mep/mep-common.c: Remove.
19672 * config.gcc: Remove mep-* support.
19673 * config/mep/constraints.md: Remove.
19674 * config/mep/default.h: Remove.
19675 * config/mep/intrinsics.h: Remove.
19676 * config/mep/intrinsics.md: Remove.
19677 * config/mep/ivc2-template.h: Remove.
19678 * config/mep/mep-c5.cpu: Remove.
19679 * config/mep/mep-core.cpu: Remove.
19680 * config/mep/mep-default.cpu: Remove.
19681 * config/mep/mep-ext-cop.cpu: Remove.
19682 * config/mep/mep-intrin.h: Remove.
19683 * config/mep/mep-ivc2.cpu: Remove.
19684 * config/mep/mep-pragma.c: Remove.
19685 * config/mep/mep-protos.h: Remove.
19686 * config/mep/mep.c: Remove.
19687 * config/mep/mep.cpu: Remove.
19688 * config/mep/mep.h: Remove.
19689 * config/mep/mep.md: Remove.
19690 * config/mep/mep.opt: Remove.
19691 * config/mep/predicates.md: Remove.
19692 * config/mep/t-mep: Remove.
19693 * doc/install.texi: Remove mep-* documentation.
19694 * doc/md.texi: Likewise.
19695
19696 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19697
19698 * config.gcc: Remove support for avr-rtems.
19699 * config/avr/gen-avr-mmcu-specs.c: Likewise.
19700 * config/avr/rtems.h: Remove.
19701 * config/avr/t-rtems: Remove.
19702
19703 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19704
19705 * config.gcc: Remove m32r-rtems support.
19706 * config/m32r/rtems.h: Remove.
19707
19708 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19709
19710 * config.gcc: Remove h8300-rtems support.
19711 * config/h8300/rtems.h: Remove.
19712 * config/h8300/t-rtems: Remove.
19713
19714 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19715
19716 * config.gcc: Remove support for knetbsd.
19717 * configure.ac: Likewise.
19718 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
19719 * config/knetbsd-gnu.h: Remove.
19720 * configure: Regenerate.
19721
19722 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19723
19724 * config.gcc: Remove support for openbsd 2 and 3.
19725 * config/openbsd-oldgas.h: Remove.
19726
19727 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19728
19729 * config.gcc: Remove interix support.
19730 * config/i386/i386-interix.h: Remove.
19731 * config/i386/interix.opt: Remove.
19732 * config/i386/t-interix: Remove.
19733 * configure: Regenerate.
19734 * configure.ac: Remove interix support.
19735 * doc/install.texi: Remove interix documentation.
19736
19737 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
19738
19739 * config/rs6000/rs6000.h: Add conditional preprocessing directives
19740 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
19741 not defined.
19742
19743 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
19744
19745 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
19746 they are both PLACEHOLDER_EXPRs.
19747
19748 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
19749
19750 * stor-layout.c (layout_type): Move setting complex MODE to
19751 layout_type, instead of setting it ahead of time by the caller.
19752 * tree.c (build_complex_type): Likewise.
19753
19754 2016-06-21 Martin Liska <mliska@suse.cz>
19755
19756 * predict.c (force_edge_cold): Replace imposisble with
19757 impossible.
19758
19759 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
19760
19761 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
19762 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
19763
19764 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
19765
19766 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
19767
19768 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
19769 Ilya Enkovich <ilya.enkovich@intel.com>
19770
19771 PR target/71549
19772 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
19773 New member function to convert V1TImode register to SUBREG
19774 TImode in debug insn.
19775 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
19776 after changing register mode to V1TImode.
19777
19778 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
19779
19780 * config/aarch64/aarch64-cores.def (vulcan): New core.
19781 * config/aarch64/aarch64-tune.md: Regenerate.
19782 * doc/invoke.texi: Document vulcan as an available option.
19783
19784 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
19785
19786 * cse.c (canon_asm_operands): New function extracted from...
19787 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
19788 either standalone or member of a PARALLEL.
19789
19790 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
19791
19792 PR target/30417
19793 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
19794 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
19795 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
19796
19797 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
19798
19799 PR target/71103
19800 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
19801 constant addresses if can_create_pseudo_p.
19802
19803 2016-06-21 Jakub Jelinek <jakub@redhat.com>
19804
19805 PR tree-optimization/71588
19806 * tree-ssa-strlen.c (valid_builtin_call): New function.
19807 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
19808 it.
19809
19810 2016-06-20 Jakub Jelinek <jakub@redhat.com>
19811
19812 PR middle-end/71581
19813 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
19814 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
19815 for conversion of scalar user var to complex type and use the
19816 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
19817 punt.
19818
19819 PR rtl-optimization/71591
19820 * toplev.c (toplev::run_self_tests): If no_backend, complain and
19821 don't run any tests.
19822
19823 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
19824
19825 PR target/71571
19826 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
19827 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
19828 space for PIC with non-v32 and the common non-PIC "jump".
19829
19830 2016-06-20 Jakub Jelinek <jakub@redhat.com>
19831
19832 PR target/71559
19833 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
19834 returned values and add UN*/LTGT/*ORDERED cases with values matching
19835 D operand modifier on vcmp for AVX.
19836
19837 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
19838
19839 * config/aarch64/aarch64.opt
19840 (mpc-relative-literal-loads): Rename internal option name.
19841 * config/aarch64/aarch64.c
19842 (aarch64_nopcrelative_literal_loads): Rename to
19843 aarch64_pcrelative_literal_loads.
19844 (aarch64_expand_mov_immediate): Likewise.
19845 (aarch64_secondary_reload): Likewise.
19846 (aarch64_can_use_per_function_literal_pools_p): Likewise.
19847 (aarch64_override_options_after_change_1): Rename and simplify logic.
19848 (aarch64_classify_symbol): Merge large model checks into switch,
19849 remove pc-relative load check.
19850
19851 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
19852
19853 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
19854 costs relative to the cost of a register move.
19855
19856 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
19857
19858 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
19859 (vcvt_n_f64_u64): Likewise.
19860 (vcvt_n_s64_f64): Likewise.
19861 (vcvt_n_u64_f64): Likewise.
19862 (vcvt_f64_s64): Likewise.
19863 (vrecpe_f64): Likewise.
19864 (vcvt_f64_u64): Likewise.
19865 (vrecps_f64): Likewise.
19866
19867 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
19868
19869 * config/aarch64/aarch64.md
19870 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
19871 iterators.
19872 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
19873 attributes.
19874 * config/aarch64/aarch64-builtins.c
19875 (aarch64_types_binop_uss_qualifiers): Delete.
19876 (TYPES_BINOP_USS): Likewise.
19877 (aarch64_types_binop_sus_qualifiers): Likewise.
19878 (TYPES_BINOP_SUS): Likewise.
19879 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
19880 (TYPES_FCVTIMM_SUS): Likewise.
19881 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
19882 rather than BINOP.
19883 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
19884 (fcvtzs): Use SHIFTIMM rather than BINOP.
19885 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
19886
19887 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
19888
19889 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
19890 costs relative to the cost of a register move.
19891
19892 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
19893
19894 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
19895 Allow scalar/single vector modes to be tieable.
19896
19897 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
19898
19899 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
19900
19901 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19902
19903 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
19904 "alignement".
19905 * tree.h (TYPE_ALIGN): Likewise.
19906
19907 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
19908
19909 PR target/71103
19910 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
19911
19912 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
19913
19914 * config/avr/avr.c (avr_print_operand): Fix "format not a string
19915 literal" build warnings.
19916 (avr_print_operand_address): Dito.
19917
19918 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
19919
19920 PR target/71375
19921 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
19922 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
19923
19924 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
19925
19926 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
19927
19928 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
19929
19930 PR bootstrap/71435
19931 * reload1.c (reload): Pass 0 to finish_spills when called because
19932 update_eliminables_and_spill returns true and remove did_spill.
19933 (finish_spills): Adjust comment and document GLOBAL parameter.
19934
19935 2016-06-17 DJ Delorie <dj@redhat.com>
19936
19937 PR target/71338
19938 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
19939 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
19940 (umulqihi3_virt): Likewise.
19941 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
19942 (umulqihi3_real): Likewise.
19943
19944 2016-06-17 Martin Liska <mliska@suse.cz>
19945
19946 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
19947
19948 2016-06-17 Martin Liska <mliska@suse.cz>
19949
19950 * predict.def: PRED_LOOP_EXIT from 92 to 85.
19951
19952 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
19953
19954 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
19955 __FAST_MATH__.
19956 (vaddq_f32): Likewise.
19957 (vmul_f32): Likewise.
19958 (vmulq_f32): Likewise.
19959 (vsub_f32): Likewise.
19960 (vsubq_f32): Likewise.
19961
19962 2016-06-17 Bin Cheng <bin.cheng@arm.com>
19963
19964 PR tree-optimization/71347
19965 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
19966 cost for all uses in group.
19967
19968 2016-06-17 Bin Cheng <bin.cheng@arm.com>
19969
19970 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
19971 insert gimple seq if it's not empty.
19972
19973 2016-06-17 Bin Cheng <bin.cheng@arm.com>
19974
19975 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
19976 member OFFSET.
19977 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
19978 rather than OFFSET.
19979 (comp_dr_with_seg_len_pair): Ditto.
19980 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
19981 struct dr_with_seg_len_pair against DR_OFFSET.
19982 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
19983 DR_OFFSET directly.
19984
19985 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
19986
19987 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
19988
19989 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
19990
19991 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
19992 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
19993 (pa_output_millicode_call): Likewise.
19994 (pa_output_call): Likewise.
19995 (pa_output_indirect_call): Likewise.
19996 (pa_asm_output_mi_thunk): Likewise.
19997
19998 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19999
20000 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
20001
20002 2016-06-16 Martin Liska <mliska@suse.cz>
20003
20004 * predict.c (combine_predictions_for_insn): When we find a first
20005 match predictor, we should consider just predictors with
20006 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
20007 DS theory predictor.
20008 (combine_predictions_for_bb): Likewise.
20009
20010 2016-06-16 Jakub Jelinek <jakub@redhat.com>
20011
20012 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
20013 with base of reference to struct.
20014
20015 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
20016
20017 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
20018
20019 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
20020
20021 PR target/71151
20022 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
20023 progmem_swtable_section.
20024 (progmem_swtable_section): Remove.
20025 (avr_asm_function_rodata_section): Remove.
20026 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
20027 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
20028
20029 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
20030
20031 * config/i386/driver-i386.c (host_detect_local_cpu): Set
20032 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
20033 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
20034 signature_CENTAUR_ebx.
20035 * config/i386/i386.c (ix86_option_override_internal): Add
20036 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
20037 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
20038 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
20039
20040 2016-06-16 Martin Liska <mliska@suse.cz>
20041
20042 * predict.def: Add fortran loop preheader predictor.
20043 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
20044 fold IFN_BUILTIN_EXPECT with a known constant argument.
20045
20046 2016-06-16 Martin Liska <mliska@suse.cz>
20047
20048 * predict.def: Add 'Fortran' to display text of all
20049 PRED_FORTRAN_* predictors.
20050
20051 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
20052
20053 PR target/71242
20054 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
20055 [IA64_BUILTIN_NANSQ]: Ditto.
20056 (ia64_fold_builtin): New function.
20057 (TARGET_FOLD_BUILTIN): New define.
20058 (ia64_init_builtins) Declare const_string_type node.
20059 Add __builtin_nanq and __builtin_nansq builtin functions.
20060 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
20061
20062 2016-06-16 Nick Clifton <nickc@redhat.com>
20063
20064 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
20065 MSP430_HWMULT_ prefix to enum values.
20066 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
20067 * config/msp430/msp430.c: Update use of enum values.
20068 * config/msp430/msp430.md: Likewise.
20069 * config/msp430/msp430.opt: Likewise.
20070
20071 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
20072
20073 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
20074 of comparsions in the last iteration.
20075
20076 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
20077 Joern Rennecke <joern.rennecke@embecosm.com>
20078
20079 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
20080 addresses.
20081 (arc_needs_pcl_p): Add GOTOFFPC.
20082 (arc_legitimate_pic_addr_p): Likewise.
20083 (arc_output_pic_addr_const): Likewise.
20084 (arc_legitimize_pic_address): Generate a pc-relative address using
20085 GOTOFFPC.
20086 (arc_output_libcall): Use @pcl syntax.
20087 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
20088 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
20089 (*movsi_insn): Use @pcl syntax.
20090 (doloop_begin_i): Likewise.
20091
20092 2016-06-16 Martin Liska <mliska@suse.cz>
20093
20094 * predict.def: Define a new predictor.
20095
20096 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
20097
20098 * config/arc/arc.opt (mtp-regno): Update text.
20099
20100 2016-06-16 Renlin Li <renlin.li@arm.com>
20101
20102 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
20103
20104 2016-06-16 Jakub Jelinek <jakub@redhat.com>
20105
20106 PR target/71554
20107 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
20108 (setcc + and peephole2): Likewise.
20109
20110 PR rtl-optimization/71532
20111 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
20112 memory slots.
20113
20114 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
20115
20116 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
20117 DImode constants with XXSPLTIB in vector registers.
20118 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
20119 vsx_extract_<mode>_internal{1,2} into a single insn that handles
20120 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
20121 extraction of the element at the top of the register as a scalar
20122 value.
20123 (vsx_extract_<mode>_internal1): Likewise.
20124 (vsx_extract_<mode>_internal2): Likewise.
20125 * config/rs6000/constraints.md (wi constraint): Remove a comment
20126 about DImode not being allowed in Altivec registers.
20127 (wB constraint): New constraint for constants that can be
20128 generated in Altivec registers with VSPLTISW/VUPKHSW.
20129 * config/rs6000/predicates.md (xxspltib_constant_split): Update
20130 comments.
20131 (xxspltib_constant_nosplit): Likewise.
20132 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
20133 support for -mupper-regs-di to enable DImode to go into Altivec
20134 registers.
20135 (POWERPC_MASKS): Likewise.
20136 (power7 cpu): Likewise.
20137 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
20138 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
20139 for DImode being allowed in Altivec registers. Update wi/wj
20140 constraints. Set scalar_in_vmx_p flag.
20141 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
20142 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
20143 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
20144 (rs6000_opt_masks): Add -mupper-regs-di.
20145 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
20146 direct move to use wi and not wj.
20147 (lfiwzx): Likewise.
20148 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
20149 alternative.
20150 (floatunssi<mode>2_lfiwzx_mem): Likewise.
20151 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
20152 any VSX register, instead of just Altivec registers, to allow
20153 either operand to be an Altivec register or both.
20154 (fixuns_trunc<mode>di2_fctiduz): Likewise.
20155 (movdi_internal32): Add support for -mupper-regs-di. Add support
20156 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
20157 the alternatives and attributes to be lined up to be easier to
20158 read.
20159 (movdi_internal64): Likewise.
20160 (64-bit DImode splitters): Change predicates to only split loading
20161 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
20162 load constants in ISA 3.0 or ISA 2.07 respectively.
20163 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
20164 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
20165 mention -mcpu=power9 sets these options.
20166 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
20167 wB constraint.
20168
20169 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
20170
20171 PR target/67353
20172 * config/avr/avr.c (avr_set_current_function): Warn misspelled
20173 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
20174 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
20175 by default to warn misspelled interrupt/ signal handler.
20176 * doc/invoke.texi (AVR Options): Document it. Update description
20177 for -nodevicelib option.
20178
20179 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20180
20181 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
20182 up parentheses. Use GET_MODE_UNIT_BITSIZE.
20183 (aarch64_<sur>shll2_n<mode>): Likewise.
20184
20185 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
20186
20187 PR middle-end/71529
20188 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
20189 DECL_CONTEXT for copied arguments.
20190
20191 2016-06-15 Alan Hayward <alan.hayward@arm.com>
20192
20193 PR tree-optimization/71483
20194 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
20195 for slp
20196
20197 2016-06-15 Martin Liska <mliska@suse.cz>
20198
20199 * predict.c (tree_predict_by_opcode): Call predict_edge_def
20200 instead of predict_edge w/o a probability.
20201
20202 2016-06-15 Alan Hayward <alan.hayward@arm.com>
20203
20204 PR tree-optimization/71439
20205 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
20206 live PHIs.
20207
20208 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20209
20210 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
20211 register subregs in SET_SRC.
20212
20213 2016-06-15 Richard Biener <rguenther@suse.de>
20214
20215 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
20216 store restrictions.
20217
20218 2016-06-15 Richard Biener <rguenther@suse.de>
20219
20220 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
20221 not consider dependences between accesses that belong to the
20222 same group.
20223 (vect_analyze_data_ref_dependences): Do not analyze read-read
20224 or self-dependences.
20225
20226 2016-06-14 David Malcolm <dmalcolm@redhat.com>
20227
20228 * spellcheck-tree.c: Include spellcheck-tree.h rather than
20229 spellcheck.h.
20230 (find_closest_identifier): Reimplement in terms of
20231 best_match<tree,tree>.
20232 * spellcheck-tree.h: New file.
20233 * spellcheck.c (struct edit_distance_traits<const char *>): New
20234 struct.
20235 (find_closest_string): Reimplement in terms of
20236 best_match<const char *, const char *>.
20237 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
20238 overload to spellcheck-tree.h.
20239 (find_closest_identifier): Likewise.
20240 (struct edit_distance_traits<T>): New template.
20241 (class best_match): New class.
20242
20243 2016-06-14 David Malcolm <dmalcolm@redhat.com>
20244
20245 * selftest-run-tests.c (selftest::run_tests): Call
20246 selftest::spellcheck_tree_c_tests.
20247 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
20248 * spellcheck-tree.c: Include selftest.h and stringpool.h.
20249 (selftest::test_find_closest_identifier): New function.
20250 (selftest::spellcheck_tree_c_tests): New function.
20251 * spellcheck.c (selftest::test_find_closest_string): Verify that
20252 the order of the vec does not affect the results for this case.
20253 (selftest::test_data): New array.
20254 (selftest::test_metric_conditions): New function.
20255 (selftest::spellcheck_c_tests): Add a test of case-comparison.
20256 Call selftest::test_metric_conditions.
20257
20258 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20259
20260 * config/rs6000/rs6000-builtin.def (commentary): Typo.
20261 (BU_P9_MISC_1): Likewise.
20262 (BU_P9_64BIT_MISC_0): Likewise.
20263 (BU_P9_MISC_0): Likewise.
20264
20265 2016-06-14 David Malcolm <dmalcolm@redhat.com>
20266
20267 * gcc-rich-location.c
20268 (gcc_rich_location::add_fixit_misspelled_id): New method.
20269 * gcc-rich-location.h
20270 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
20271
20272 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
20273
20274 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
20275 FreeBSD 11 and above.
20276
20277 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
20278
20279 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
20280
20281 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20282
20283 * expmed.h: Close parenthesis in "at your option" in copyright
20284 boilerplate.
20285 * lower-subreg.h: Likewise.
20286
20287 2016-06-14 Richard Biener <rguenther@suse.de>
20288
20289 PR middle-end/71526
20290 * genmatch.c (expr::gen_transform): Use in_type for comparisons
20291 if available.
20292
20293 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20294
20295 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
20296 New function.
20297 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
20298 mask+shift version.
20299 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
20300 New prototype.
20301 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
20302 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
20303
20304 2016-06-14 Richard Biener <rguenther@suse.de>
20305
20306 PR tree-optimization/71522
20307 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
20308 copying into float copying.
20309
20310 2016-06-14 Jakub Jelinek <jakub@redhat.com>
20311
20312 PR tree-optimization/71520
20313 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
20314 (replace_block_by): Move user labels from bb1 to bb2.
20315
20316 2016-06-14 Richard Biener <rguenther@suse.de>
20317
20318 PR middle-end/71310
20319 PR bootstrap/71510
20320 * expr.h (get_bit_range): Declare.
20321 * expr.c (get_bit_range): Export.
20322 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
20323 word_mode again to constrain the bitfield access.
20324
20325 2016-06-14 Richard Biener <rguenther@suse.de>
20326
20327 PR tree-optimization/71521
20328 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
20329 division int_const_binop against zero divisor.
20330
20331 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
20332
20333 * config/i386/i386.md (signbittf2): New expander.
20334 * config/i386/sse.md (ptesttf2): New insn pattern.
20335
20336 2016-06-13 David Malcolm <dmalcolm@redhat.com>
20337
20338 PR bootstrap/71481
20339 * input.c (selftest::test_reading_source_line): Avoid reading from
20340 __FILE__ by creating a tempfile with known content and reading
20341 from that instead.
20342
20343 2016-06-13 David Malcolm <dmalcolm@redhat.com>
20344
20345 * pretty-print.c (assert_pp_format_colored): Skip the test if
20346 GCC_COLORS is set.
20347 (test_pp_format): Remove comment about GCC_COLORS.
20348
20349 2016-06-13 David Malcolm <dmalcolm@redhat.com>
20350
20351 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
20352 * pretty-print.c (assert_pp_format_va): Add location param and use
20353 it with ASSERT_STREQ_AT.
20354 (assert_pp_format): Add location param and pass it to
20355 assert_pp_format_va.
20356 (assert_pp_format_colored): Likewise.
20357 (ASSERT_PP_FORMAT_1): New.
20358 (ASSERT_PP_FORMAT_2): New.
20359 (ASSERT_PP_FORMAT_3): New.
20360 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
20361 explicitly, or implicitly via the above macros.
20362 * selftest.c (selftest::pass): Use a selftest::location rather
20363 than file and line.
20364 (selftest::fail): Likewise. Print the function name.
20365 (selftest::fail_formatted): Likewise.
20366 (selftest::assert_streq): Use a selftest::location rather than
20367 file and line.
20368 * selftest.h (selftest::location): New struct.
20369 (SELFTEST_LOCATION): New macro.
20370 (selftest::pass): Accept a const location & rather than file
20371 and line.
20372 (selftest::fail): Likewise.
20373 (selftest::fail_formatted): Likewise.
20374 (selftest::assert_streq): Likewise.
20375 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
20376 (ASSERT_FALSE): Likewise.
20377 (ASSERT_EQ): Likewise.
20378 (ASSERT_NE): Likewise.
20379 (ASSERT_STREQ): Likewise.
20380 (ASSERT_PRED1): Likewise.
20381 (ASSERT_STREQ_AT): New macro.
20382
20383 2016-06-13 David Malcolm <dmalcolm@redhat.com>
20384
20385 * selftest.c (selftest::fail_formatted): New function.
20386 (selftest::assert_streq): New function.
20387 * selftest.h (selftests::fail_formatted): New decl.
20388 (selftest::assert_streq): New decl.
20389 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
20390
20391 2016-06-13 Jeff Law <law@redhat.com>
20392
20393 PR tree-optimization/71403
20394 * tree-ssa-threadbackward.c
20395 (convert_and_register_jump_thread_path): No longer accept reference
20396 to path. Do not pop items off the path anymore.
20397 (fsm_find_control_statement_thread_paths): Do not allow threading
20398 to a deeper loop nest. Pop the last item off the path here rather
20399 than in convert_and_register_jump_thread_path.
20400
20401 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
20402 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
20403
20404 [AArch64] Emit division using the Newton series
20405
20406 * config/aarch64/aarch64-protos.h
20407 (cpu_approx_modes): Add new member "division".
20408 (aarch64_emit_approx_div): Declare new function.
20409 * config/aarch64/aarch64.c
20410 (generic_approx_modes): New member "division".
20411 (exynosm1_approx_modes): Likewise.
20412 (xgene1_approx_modes): Likewise.
20413 (aarch64_emit_approx_div): Define new function.
20414 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
20415 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
20416 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
20417 * doc/invoke.texi (-mlow-precision-div): Describe new option.
20418
20419 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
20420 Wilco Dijkstra <wilco.dijkstra@arm.com>
20421
20422 [AArch64] Emit square root using the Newton series
20423
20424 * config/aarch64/aarch64-protos.h
20425 (aarch64_emit_approx_rsqrt): Replace with new function
20426 "aarch64_emit_approx_sqrt".
20427 (cpu_approx_modes): New member "sqrt".
20428 * config/aarch64/aarch64.c
20429 (generic_approx_modes): New member "sqrt".
20430 (exynosm1_approx_modes): Likewise.
20431 (xgene1_approx_modes): Likewise.
20432 (aarch64_emit_approx_rsqrt): Replace with new function
20433 "aarch64_emit_approx_sqrt".
20434 (aarch64_override_options_after_change_1): Handle new option.
20435 * config/aarch64/aarch64-simd.md
20436 (rsqrt<mode>2): Use new function instead.
20437 (sqrt<mode>2): New expansion and insn definitions.
20438 * config/aarch64/aarch64.md: Likewise.
20439 * config/aarch64/aarch64.opt
20440 (mlow-precision-sqrt): Add new option description.
20441 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
20442
20443 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
20444
20445 [AArch64] Add more choices for the reciprocal square root approximation
20446
20447 Allow a target to prefer such operation depending on the operation mode.
20448
20449 * config/aarch64/aarch64-protos.h
20450 (AARCH64_APPROX_MODE): New macro.
20451 (AARCH64_APPROX_{NONE,ALL}): Likewise.
20452 (cpu_approx_modes): New structure.
20453 (tune_params): New member "approx_modes".
20454 * config/aarch64/aarch64-tuning-flags.def
20455 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
20456 * config/aarch64/aarch64.c
20457 (generic_approx_modes): New core "cpu_approx_modes" structure.
20458 (exynosm1_approx_modes): Likewise.
20459 (xgene1_approx_modes): Likewise.
20460 (generic_tunings): New member "approx_modes".
20461 (cortexa35_tunings): Likewise.
20462 (cortexa53_tunings): Likewise.
20463 (cortexa57_tunings): Likewise.
20464 (cortexa72_tunings): Likewise.
20465 (exynosm1_tunings): Likewise.
20466 (thunderx_tunings): Likewise.
20467 (xgene1_tunings): Likewise.
20468 (use_rsqrt_p): New argument for the mode and use new member from
20469 "tune_params".
20470 (aarch64_builtin_reciprocal): Devise mode from builtin.
20471 (aarch64_optab_supported_p): New argument for the mode.
20472 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
20473
20474 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
20475
20476 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
20477 RS6000_BTM_MODULO flag into the set of flags that are considered
20478 to be part of the common configuration.
20479
20480 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
20481
20482 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
20483 difference unsigned.
20484 (vec_absdb): New macro for vector absolute difference unsigned
20485 byte.
20486 (vec_absdh): New macro for vector absolute difference unsigned
20487 half-word.
20488 (vec_absdw): New macro for vector absolute difference unsigned word.
20489 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
20490 (vadu<mode>3): New insn.
20491 (*p9_vadu<mode>3): New insn.
20492 * config/rs6000/rs6000-builtin.def (vadub): New built-in
20493 definition.
20494 (vaduh): New built-in definition.
20495 (vaduw): New built-in definition.
20496 (vadu): New overloaded built-in definition.
20497 (vadub): New overloaded built-in definition.
20498 (vaduh): New overloaded built-in definition.
20499 (vaduw): New overloaded built-in definition.
20500 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20501 overloaded vector absolute difference unsigned functions.
20502 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
20503 the ISA 3.0 vector absolute difference unsigned built-in functions.
20504
20505 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
20506
20507 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
20508 update shared_lookup_references only once after changing operands.
20509
20510 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
20511
20512 PR middle-end/71373
20513 * tree-nested.c (convert_nonlocal_omp_clauses)
20514 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
20515
20516 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
20517 * tree.def (CASE_LABEL_EXPR): Likewise.
20518
20519 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
20520
20521 PR bootstrap/71481
20522 * input.c (test_builtins): Fix an assertion.
20523
20524 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
20525
20526 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
20527 (paritysi2): Ditto.
20528 (isinfxf2): Ditto.
20529 (isinf<mode>2): Ditto.
20530
20531 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
20532
20533 * ggc-tests.c (test_finalization): Only test need_finalization_p
20534 for GCC_VERSION >= 4003.
20535
20536 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20537
20538 * config/s390/vecintrin.h: Fix file description in comment.
20539
20540 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20541
20542 * config/s390/s390-builtin-types.def: Change builtin type naming
20543 scheme to match builtin-types.def.
20544
20545 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
20546
20547 * fold-const.c (optimize_minmax_comparison): Remove.
20548 (fold_comparison): Remove call to the above.
20549 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
20550 New transformations.
20551
20552 2016-06-13 Alan Hayward <alan.hayward@arm.com>
20553
20554 PR tree-optimization/71416
20555 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
20556 multiple entries
20557
20558 2016-06-13 Martin Liska <mliska@suse.cz>
20559
20560 * predict.c (enum predictor_reason): Prefix enum with REASON_.
20561 (combine_predictions_for_insn): Likewise.
20562 (prune_predictions_for_bb): Likewise.
20563 (combine_predictions_for_bb): Likewise.
20564
20565 2016-06-13 Richard Biener <rguenther@suse.de>
20566
20567 PR tree-optimization/71505
20568 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
20569 assert match comment.
20570
20571 2016-06-13 Marek Polacek <polacek@redhat.com>
20572
20573 PR middle-end/71476
20574 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
20575 gimplify_switch_expr.
20576 (warn_switch_unreachable_r): New function.
20577
20578 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20579
20580 PR target/71379
20581 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
20582 one.
20583
20584 2016-06-13 Richard Biener <rguenther@suse.de>
20585
20586 PR middle-end/64516
20587 * fold-const.c (fold_unary_loc): Preserve alignment when
20588 folding a VIEW_CONVERT_EXPR into a MEM_REF.
20589
20590 2016-06-13 Martin Liska <mliska@suse.cz>
20591
20592 PR sanitizer/71458
20593 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
20594 w/ -fsanitize=bounds.
20595
20596 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
20597
20598 * config/i386/i386.c (ix86_init_builtins): Calculate
20599 FLOAT128_FTYPE_CONST_STRING function type only once.
20600 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
20601 built-in functions are available for x86-32 and x86-64 targets.
20602
20603 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
20604
20605 PR target/71241
20606 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
20607 New primitive type.
20608 (FLOAT128_FTYPE_CONST_STRING): New function type.
20609 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
20610 [IX86_BUILTIN_NANSQ]: Ditto.
20611 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
20612 (ix86_init_builtin_types): Declare const_string_type_node.
20613 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
20614 builtin functions.
20615 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
20616 * doc/extend.texi (x86 Built-in Functions): Document
20617 __builtin_nanq and __builtin_nansq.
20618
20619 2016-06-11 Jiong Wang <jiong.wang@arm.com>
20620
20621 PR target/71061
20622 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
20623 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
20624 length for pop patterns.
20625 (arm_attr_length_push_multi): Update comments.
20626 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
20627 attribute.
20628 (*pop_multiple_with_writeback_and_return): Likewise.
20629 (*pop_multiple_with_return): Likewise.
20630
20631 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
20632
20633 PR middle-end/71310
20634 * fold-const.c (optimize_bit_field_compare): Don't try to use
20635 word_mode unconditionally for reading the bit field, look at
20636 DECL_BIT_FIELD_REPRESENTATIVE instead.
20637
20638 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
20639
20640 PR middle-end/71478
20641 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
20642 vector integer type.
20643
20644 2016-06-10 Jakub Jelinek <jakub@redhat.com>
20645
20646 PR middle-end/71494
20647 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
20648 without LABEL_DECL, set *handled_ops_p to false instead of true.
20649
20650 2016-06-10 Martin Sebor <msebor@redhat.com>
20651
20652 PR c/71392
20653 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
20654 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
20655 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
20656 them.
20657 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
20658 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
20659 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
20660 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
20661 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
20662 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
20663 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
20664 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
20665
20666 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
20667
20668 * config/arm/arm.h (pool_vector_label,
20669 return_used_this_function): Remove.
20670
20671 2016-06-10 Jeff Law <law@redhat.com>
20672
20673 PR tree-optimization/71335
20674 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
20675 zero length paths here.
20676 (convert_and_register_jump_thread_path): Remove hacks related to
20677 duplicated blocks in the jump thread path.
20678 (fsm_find_control_statement_thread_paths): Avoid putting the same
20679 block on the thread path twice, but ensure the thread path is
20680 unchanged from the caller's point of view.
20681
20682 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
20683
20684 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
20685 * predict.def (PRED_LOOP_BRANCH): Remove.
20686
20687 2016-06-10 David Malcolm <dmalcolm@redhat.com>
20688
20689 * Makefile.in (OBJS): Add ggc-tests.o.
20690 (GTFILES): Add ggc-tests.c.
20691 * ggc-tests.c: New file.
20692 * selftest-run-tests.c (selftest::run_tests): Call
20693 selftest::ggc_tests_c_tests.
20694 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
20695
20696 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
20697
20698 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
20699
20700 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
20701
20702 PR sanitizer/71480
20703 * varasm.c (place_block_symbol): Adjust alignment for asan protected
20704 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
20705
20706 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
20707
20708 * profile.c: Include cfgloop.h.
20709 (branch_prob): Compute estimated number of iterations.
20710 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
20711 recompute estimate number of iterations from profile.
20712
20713 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
20714
20715 PR inline-asm/68843
20716 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
20717 must be grouped on top of stack. Don't force early clobber
20718 on ordinary reg outputs.
20719
20720 2016-06-10 Richard Biener <rguenther@suse.de>
20721
20722 * targhooks.c (default_builtin_vectorization_cost): Adjust
20723 vec_construct cost.
20724
20725 2016-06-10 Richard Biener <rguenther@suse.de>
20726
20727 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
20728 to fold the RHS to a constant if possible.
20729
20730 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
20731
20732 PR middle-end/71373
20733 * tree-nested.c (convert_nonlocal_omp_clauses)
20734 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
20735 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
20736 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
20737
20738 * gimplify.c (gimplify_adjust_omp_clauses): Discard
20739 OMP_CLAUSE_TILE.
20740 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
20741
20742 * omp-low.c (scan_sharing_clauses): Don't expect
20743 OMP_CLAUSE__CACHE_.
20744
20745 2016-06-10 Alan Hayward <alan.hayward@arm.com>
20746
20747 PR tree-optimization/71407
20748 PR tree-optimization/71416
20749 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
20750 BIT_FIELD_REF type.
20751
20752 2016-06-10 Richard Biener <rguenther@suse.de>
20753
20754 PR middle-end/71477
20755 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
20756
20757 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
20758
20759 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
20760
20761 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
20762 Jiong Wang <jiong.wang@arm.com>
20763
20764 PR rtl-optimization/70751
20765 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
20766 spilled into memory.
20767
20768 2016-06-09 Jonathan Yong <10walls@gmail.com>
20769
20770 Revert:
20771 2015-09-21 Jonathan Yong <10walls@gmail.com>
20772
20773 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
20774 sysroot/usr/lib/32api for additional win32 libraries,
20775 fixes failing Cygwin bootstrapping.
20776
20777 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
20778
20779 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
20780 Delete.
20781
20782 2016-06-09 David Malcolm <dmalcolm@redhat.com>
20783
20784 PR bootstrap/71471
20785 * pretty-print.c (pp_indent): Specify that %p is printed in a
20786 host-dependent manner.
20787 (test_pp_format): Remove the test for %p.
20788
20789 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
20790
20791 * config/mips/mips.c (mips_output_jump): Fix formatting.
20792
20793 2016-06-09 Richard Biener <rguenther@suse.de>
20794
20795 PR tree-optimization/71462
20796 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
20797 removed blocks.
20798
20799 2016-06-09 Martin Liska <mliska@suse.cz>
20800
20801 * predict.c (dump_prediction): Add new argument.
20802 (enum predictor_reason): New enum.
20803 (struct predictor_hash): New struct.
20804 (predictor_hash::hash): New function.
20805 (predictor_hash::equal): Likewise.
20806 (not_removed_prediction_p): New function.
20807 (prune_predictions_for_bb): Likewise.
20808 (combine_predictions_for_bb): Prune predictions.
20809
20810 2016-06-09 Martin Liska <mliska@suse.cz>
20811
20812 * predict.c (filter_predictions): New function.
20813 (remove_predictions_associated_with_edge): Use the filter
20814 function.
20815 (equal_edge_p): New function.
20816
20817 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
20818
20819 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
20820 Correct usage of @samp vs @option, add @samp where appropriate.
20821 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
20822 Add armv6s-m and document it, as it is no official ARM name.
20823
20824 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20825
20826 * ifcvt.c (struct noce_if_info): Add transform_name field.
20827 (noce_try_move): Set if_info->transform_name to the function name.
20828 (noce_try_ifelse_collapse): Likewise.
20829 (noce_try_store_flag): Likewise.
20830 (noce_try_inverse_constants): Likewise.
20831 (noce_try_store_flag_constants): Likewise.
20832 (noce_try_addcc): Likewise.
20833 (noce_try_store_flag_mask): Likewise.
20834 (noce_try_cmove): Likewise.
20835 (noce_try_cmove_arith): Likewise.
20836 (noce_try_minmax): Likewise.
20837 (noce_try_abs): Likewise.
20838 (noce_try_sign_mask): Likewise.
20839 (noce_try_bitop): Likewise.
20840 (noce_convert_multiple_sets): Likewise.
20841 (noce_process_if_block): Print if_info->transform_name to
20842 dump_file if transformation succeeded.
20843
20844 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20845
20846 * config/arm/cortex-a57.md (cortex_a57_alu):
20847 Handle csel type.
20848
20849 2016-06-08 Martin Sebor <msebor@redhat.com>
20850 Jakub Jelinek <jakub@redhat.com>
20851
20852 PR c++/70507
20853 PR c/68120
20854 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
20855 BUILT_IN_MUL_OVERFLOW_P): New builtins.
20856 * builtins.c: Include gimple-fold.h.
20857 (fold_builtin_arith_overflow): Handle
20858 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
20859 (fold_builtin_3): Likewise.
20860 * doc/extend.texi (Integer Overflow Builtins): Document
20861 __builtin_{add,sub,mul}_overflow_p.
20862
20863 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
20864
20865 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
20866 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
20867
20868 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
20869
20870 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
20871 Rewrite, looking one level down for records and arrays.
20872
20873 2016-06-08 David Malcolm <dmalcolm@redhat.com>
20874
20875 * pretty-print.c: Include "selftest.h".
20876 (pp_format): Fix comment.
20877 (identifier_to_locale): Likewise.
20878 (selftest::test_basic_printing): New function.
20879 (selftest::assert_pp_format): New function.
20880 (selftest::test_pp_format): New function.
20881 (selftest::pretty_print_c_tests): New function.
20882 * selftest-run-tests.c (selftest::run_tests): Call
20883 selftest::pretty_print_c_tests.
20884 * selftest.h (pretty_print_c_tests): New declaration.
20885
20886 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
20887
20888 * invoke.texi (max-loop-headers-insns): Document.
20889 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
20890 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
20891 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
20892
20893 2016-06-08 Richard Biener <rguenther@suse.de>
20894
20895 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
20896 on strided SLP loads and fall back to scalar loads in case
20897 we can't chunk them.
20898
20899 2016-06-08 Richard Biener <rguenther@suse.de>
20900
20901 PR tree-optimization/71452
20902 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
20903 type used for the SSA rewrite has enough precision to cover
20904 the dynamic type of the location.
20905
20906 2016-06-08 Jakub Jelinek <jakub@redhat.com>
20907 Richard Biener <rguenther@suse.de>
20908
20909 PR c++/71448
20910 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
20911 the same as DECL_P (base0) for indirect_base0. Use equality_code
20912 in one further place.
20913
20914 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
20915
20916 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
20917 to one word if the field is known to overlap other words.
20918 (extract_bit_field_1): Likewise.
20919 (store_split_bit_field): Remove compensating code.
20920 (extract_split_bit_field): Likewise.
20921
20922 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
20923
20924 PR debug/71432
20925 PR ada/71413
20926 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
20927
20928 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20929
20930 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
20931 VDQF.
20932 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
20933 (arch64_addpv4sf): Delete.
20934 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
20935 "gen_aarch64_addpv4sf".
20936 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
20937 builtin.
20938 (vpadds_f32): Likewise.
20939 (vpaddq_f32): Likewise.
20940 (vpaddq_f64): Likewise.
20941
20942 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20943
20944 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
20945 VALLF.
20946 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
20947 to VALLF. Rename to "fabd<mode>3".
20948 "*fabd_scalar<mode>3): Delete.
20949 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
20950 Use builtin.
20951 (vabdd_f64): Likewise.
20952 (vabd_f32): Likewise.
20953 (vabd_f64): Likewise.
20954 (vabdq_f32): Likewise.
20955 (vabdq_f64): Likewise.
20956
20957 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20958
20959 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
20960 VALLF.
20961 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
20962 "aarch64_rsqrts<mode>".
20963 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
20964 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
20965 builtin.
20966 (vrsqrtsd_f64): Likewise.
20967 (vrsqrts_f32): Likewise.
20968 (vrsqrts_f64): Likewise.
20969 (vrsqrtsq_f32): Likewise.
20970 (vrsqrtsq_f64): Likewise.
20971
20972 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20973
20974 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
20975 VALLF.
20976 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
20977 "aarch64_rsqrte<mode>".
20978 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
20979 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
20980 builtin.
20981 (vrsqrted_f64): Likewise.
20982 (vrsqrte_f32): Likewise.
20983 (vrsqrte_f64): Likewise.
20984 (vrsqrteq_f32): Likewise.
20985 (vrsqrteq_f64): Likewise.
20986
20987 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20988
20989 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
20990 (ucvtf): Likewise.
20991 (fcvtzs): Likewise.
20992 (fcvtzu): Likewise.
20993 * config/aarch64/aarch64-simd.md
20994 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
20995 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
20996 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
20997 Use builtin.
20998 (vcvt_n_f32_u32): Likewise.
20999 (vcvt_n_s32_f32): Likewise.
21000 (vcvt_n_u32_f32): Likewise.
21001 (vcvtq_n_f32_s32): Likewise.
21002 (vcvtq_n_f32_u32): Likewise.
21003 (vcvtq_n_f64_s64): Likewise.
21004 (vcvtq_n_f64_u64): Likewise.
21005 (vcvtq_n_s32_f32): Likewise.
21006 (vcvtq_n_s64_f64): Likewise.
21007 (vcvtq_n_u32_f32): Likewise.
21008 (vcvtq_n_u64_f64): Likewise.
21009 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
21010 (VSDQ_SDI): Likewise.
21011 (fcvt_target): Support V4DI, V4SI and V2SI.
21012 (FCVT_TARGET): Likewise.
21013
21014 2016-06-08 Jiong Wang <jiong.wang@arm.com>
21015
21016 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
21017 (TYPES_BINOP_SUS): Likewise.
21018 (aarch64_simd_builtin_data): Update include file name.
21019 (aarch64_builtins): Likewise.
21020 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
21021 for conversion between scalar float-point and fixed-point.
21022 (ucvtf): Likewise.
21023 (fcvtzs): Likewise.
21024 (fcvtzu): Likewise.
21025 * config/aarch64/aarch64.md
21026 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
21027 pattern for conversion between scalar float to fixed-pointer.
21028 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
21029 (UNSPEC_FCVTZS): New UNSPEC enumeration.
21030 (UNSPEC_FCVTZU): Likewise.
21031 (UNSPEC_SCVTF): Likewise.
21032 (UNSPEC_UCVTF): Likewise.
21033 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
21034 Use builtin.
21035 (vcvtd_n_f64_u64): Likewise.
21036 (vcvtd_n_s64_f64): Likewise.
21037 (vcvtd_n_u64_f64): Likewise.
21038 (vcvtd_n_f32_s32): Likewise.
21039 (vcvts_n_f32_u32): Likewise.
21040 (vcvtd_n_s32_f32): Likewise.
21041 (vcvts_n_u32_f32): Likewise.
21042 * config/aarch64/iterators.md (fcvt_target): Support integer to float
21043 mapping.
21044 (FCVT_TARGET): Likewise.
21045 (FCVT_FIXED2F): New iterator.
21046 (FCVT_F2FIXED): Likewise.
21047 (fcvt_fixed_insn): New define_int_attr.
21048
21049 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
21050
21051 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
21052 some statements was removed.
21053
21054 2016-06-08 Alan Hayward <alan.hayward@arm.com>
21055
21056 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
21057 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
21058 (vect_can_advance_ivs_p): likewise.
21059 (vect_update_ivs_after_vectorizer): likewise.
21060 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
21061 (vect_analyze_scalar_cycles_1): likewise.
21062 (vect_analyze_loop_operations): likewise.
21063 (report_vect_op): likewise.
21064 (vect_is_slp_reduction): likewise.
21065 (vect_is_simple_reduction): likewise.
21066 (get_initial_def_for_induction): likewise.
21067 (vect_transform_loop): likewise.
21068 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
21069 (vect_recog_sad_pattern): likewise.
21070 (vect_recog_widen_sum_pattern): likewise.
21071 (vect_recog_widening_pattern): likewise.
21072 (vect_recog_divmod_pattern): likewise.
21073 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
21074 (vect_analyze_slp_instance): likewise.
21075 (vect_transform_slp_perm_load): likewise.
21076 (vect_schedule_slp_instance): likewise.
21077
21078 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
21079
21080 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
21081 (return_prediction): PRED_CONST_RETURN predict return as not taken.
21082 * predict.def (PRED_CONTINUE): Change hitrate 50->67
21083 (PRED_LOOP_BRANCH): Document predictor as broken.
21084 (PRED_LOOP_EXIT): Change hitrate 91->92.
21085 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
21086 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
21087 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
21088 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
21089 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
21090 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
21091 (PRED_CALL): Chane hitrate 71->67.
21092 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
21093 (PRED_GOTO): Document as unused right now.
21094 (PRED_CONST_RETURN): Change hitrate 67->69
21095 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
21096 (PRED_NULL_RETURN): Change hitrate 91->90.
21097 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
21098 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
21099 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
21100
21101 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
21102
21103 * config/rs6000/altivec.h: Add __builtin_vec_mul.
21104 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
21105 special case Altivec builtin.
21106 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
21107 VSX_BUILTIN_VEC_MUL (replaced with special case code).
21108 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
21109 code for ALTIVEC_BUILTIN_VEC_MUL.
21110 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
21111 for __builtin_vec_mul.
21112
21113 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
21114
21115 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
21116 -mno-htm.
21117
21118 2016-06-07 David Malcolm <dmalcolm@redhat.com>
21119
21120 * spellcheck.c (selftest::test_find_closest_string): New function.
21121 (spellcheck_c_tests): Call the above.
21122
21123 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21124
21125 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
21126
21127 2016-06-07 Jakub Jelinek <jakub@redhat.com>
21128
21129 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
21130 Yv=Yv,C alternatives.
21131
21132 2016-06-07 Richard Biener <rguenther@suse.de>
21133
21134 PR c/61564
21135 * common.opt (ffast-math): Make Optimization.
21136
21137 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
21138 Prachi Godbole <prachi.godbole@imgtec.com>
21139
21140 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
21141 `fabs' and `fneg' type attributes.
21142 (p5600_fpu_fabs): Add `fmove' to the comment.
21143
21144 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
21145
21146 * gimple.c: Include builtins.h
21147 (gimple_inexpensive_call_p): New function.
21148 * gimple.h (gimple_inexpensive_call_p): Declare.
21149 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
21150 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
21151 fix formatting.
21152
21153 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
21154
21155 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
21156 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
21157 warning_at_rich_loc, warning_n, pedwarn, permerror,
21158 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
21159 sorry, fatal_error, internal_error, internal_error_no_backtrace):
21160 Use the above.
21161
21162 2016-06-07 Richard Biener <rguenther@suse.de>
21163
21164 PR tree-optimization/71428
21165 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
21166 BIT_FIELD_REF op vs. load.
21167
21168 2016-06-07 Richard Biener <rguenther@suse.de>
21169
21170 PR middle-end/71423
21171 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
21172 for signed ops.
21173
21174 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
21175
21176 * config/pa/pa.md (call): Generate indirect long calls to non-local
21177 functions on TARGET_64BIT.
21178 (call_value): Likewise.
21179
21180 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
21181
21182 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
21183 pattern and subsequent splitters.
21184 (call_val_reg_64bit_post_reload): Likewise.
21185
21186 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
21187
21188 PR middle-end/71408
21189 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
21190 propagate_op_to_single_use.
21191
21192 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
21193
21194 PR middle-end/71281
21195 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
21196
21197 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
21198
21199 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
21200 (enum x86_dirflag_state): New enum.
21201 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
21202 (machine_function): Remove needs_cld.
21203 (ix86_current_function_needs_cld): Remove.
21204 * config/i386/i386.c (ix86_set_func_type): Set
21205 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
21206 (ix86_expand_prologue): Do not emit CLD here.
21207 (ix86_dirflag_mode_needed): New function.
21208 (ix86_dirflag_mode_entry): Ditto.
21209 (ix86_mode_needed): Handle X86_DIRFLAG entity.
21210 (ix86_mode_after): Ditto.
21211 (ix86_mode_entry): Ditto.
21212 (ix86_mode_exit): Ditto.
21213 (ix86_emit_mode_set): Ditto.
21214 * config/i386/i386.md (strmov_singleop): Set
21215 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
21216 Do not set ix86_current_function_needs_cld.
21217 (rep_mov): Ditto.
21218 (strset_singleop): Ditto.
21219 (rep_stos): Ditto.
21220 (cmpstrnqi_nz_1): Ditto.
21221 (cmpstrnqi_1): Ditto.
21222 (strlenqi_1): Ditto.
21223
21224 2016-06-06 Jakub Jelinek <jakub@redhat.com>
21225
21226 PR tree-optimization/71259
21227 * tree-vect-slp.c (vect_get_constant_vectors): For
21228 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
21229 one for constant op, and use COND_EXPR for non-constant.
21230
21231 2016-06-06 David Malcolm <dmalcolm@redhat.com>
21232
21233 * Makefile.in (OBJS): Add function-tests.o,
21234 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
21235 selftest-run-tests.o.
21236 (OBJS-libcommon): Add selftest.o.
21237 (OBJS-libcommon-target): Add selftest.o.
21238 (all.internal): Add "selftest".
21239 (all.cross): Likewise.
21240 (selftest): New phony target.
21241 (s-selftest): New target.
21242 (selftest-gdb): New phony target.
21243 (COLLECT2_OBJS): Add selftest.o.
21244 * bitmap.c: Include "selftest.h".
21245 (selftest::test_gc_alloc): New function.
21246 (selftest::test_set_range): New function.
21247 (selftest::test_clear_bit_in_middle): New function.
21248 (selftest::test_copying): New function.
21249 (selftest::test_bitmap_single_bit_set_p): New function.
21250 (selftest::bitmap_c_tests): New function.
21251 * common.opt (fself-test): New.
21252 * diagnostic-show-locus.c: Include "selftest.h".
21253 (make_range): New function.
21254 (test_range_contains_point_for_single_point): New function.
21255 (test_range_contains_point_for_single_line): New function.
21256 (test_range_contains_point_for_multiple_lines): New function.
21257 (assert_eq): New function.
21258 (test_get_line_width_without_trailing_whitespace): New function.
21259 (selftest::diagnostic_show_locus_c_tests): New function.
21260 * et-forest.c: Include "selftest.h".
21261 (selftest::test_single_node): New function.
21262 (selftest::test_simple_tree): New function.
21263 (selftest::test_disconnected_nodes): New function.
21264 (selftest::et_forest_c_tests): New function.
21265 * fold-const.c: Include "selftest.h".
21266 (selftest::assert_binop_folds_to_const): New function.
21267 (selftest::assert_binop_folds_to_nonlvalue): New function.
21268 (selftest::test_arithmetic_folding): New function.
21269 (selftest::fold_const_c_tests): New function.
21270 * function-tests.c: New file.
21271 * gimple.c: Include "selftest.h".
21272 Include "gimple-pretty-print.h".
21273 (selftest::verify_gimple_pp): New function.
21274 (selftest::test_assign_single): New function.
21275 (selftest::test_assign_binop): New function.
21276 (selftest::test_nop_stmt): New function.
21277 (selftest::test_return_stmt): New function.
21278 (selftest::test_return_without_value): New function.
21279 (selftest::gimple_c_tests): New function.
21280 * hash-map-tests.c: New file.
21281 * hash-set-tests.c: New file.
21282 * input.c: Include "selftest.h".
21283 (selftest::assert_loceq): New function.
21284 (selftest::test_accessing_ordinary_linemaps): New function.
21285 (selftest::test_unknown_location): New function.
21286 (selftest::test_builtins): New function.
21287 (selftest::test_reading_source_line): New function.
21288 (selftest::input_c_tests): New function.
21289 * rtl-tests.c: New file.
21290 * selftest-run-tests.c: New file.
21291 * selftest.c: New file.
21292 * selftest.h: New file.
21293 * spellcheck.c: Include "selftest.h".
21294 (selftest::levenshtein_distance_unit_test_oneway): New function,
21295 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
21296 (selftest::levenshtein_distance_unit_test): Likewise.
21297 (selftest::spellcheck_c_tests): Likewise.
21298 * toplev.c: Include selftest.h.
21299 (toplev::run_self_tests): New.
21300 (toplev::main): Handle -fself-test.
21301 * toplev.h (toplev::run_self_tests): New.
21302 * tree.c: Include "selftest.h".
21303 (selftest::test_integer_constants): New function.
21304 (selftest::test_identifiers): New function.
21305 (selftest::test_labels): New function.
21306 (selftest::tree_c_tests): New function.
21307 * tree-cfg.c: Include "selftest.h".
21308 (selftest::push_fndecl): New function.
21309 (selftest::test_linear_chain): New function.
21310 (selftest::test_diamond): New function.
21311 (selftest::test_fully_connected): New function.
21312 (selftest::tree_cfg_c_tests): New function.
21313 * vec.c: Include "selftest.h".
21314 (selftest::safe_push_range): New function.
21315 (selftest::test_quick_push): New function.
21316 (selftest::test_safe_push): New function.
21317 (selftest::test_truncate): New function.
21318 (selftest::test_safe_grow_cleared): New function.
21319 (selftest::test_pop): New function.
21320 (selftest::test_safe_insert): New function.
21321 (selftest::test_ordered_remove): New function.
21322 (selftest::test_unordered_remove): New function.
21323 (selftest::test_block_remove): New function.
21324 (selftest::reverse_cmp): New function.
21325 (selftest::test_qsort): New function.
21326 (selftest::vec_c_tests): New function.c.
21327 * wide-int.cc: Include selftest.h and wide-int-print.h.
21328 (selftest::from_int <wide_int>): New function.
21329 (selftest::from_int <offset_int>): New function.
21330 (selftest::from_int <widest_int>): New function.
21331 (selftest::assert_deceq): New function.
21332 (selftest::assert_hexeq): New function.
21333 (selftest::test_printing <VALUE_TYPE>): New function template.
21334 (selftest::test_ops <VALUE_TYPE>): New function template.
21335 (selftest::test_comparisons <VALUE_TYPE>): New function template.
21336 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
21337 template.
21338 (selftest::wide_int_cc_tests): New function.
21339
21340 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21341
21342 PR middle-end/37780
21343 * ifcvt.c (noce_try_ifelse_collapse): New function.
21344 Declare prototype.
21345 (noce_process_if_block): Call noce_try_ifelse_collapse.
21346 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
21347 (simplify_ternary_operation): Use the above to simplify
21348 conditional CLZ/CTZ expressions.
21349
21350 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21351
21352 PR middle-end/37780
21353 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
21354 define_insn_and_split.
21355
21356 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21357
21358 PR middle-end/37780
21359 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
21360
21361 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
21362
21363 PR c/24414
21364 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
21365 Implicitly clobber memory for basic asm with non-empty assembler
21366 string. Use targetm.md_asm_adjust also here.
21367 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
21368 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
21369 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
21370 non-empty assembler string.
21371 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
21372 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
21373 (decode_asm_operands): Handle basic asm in PARALLEL block.
21374 (extract_insn): Handle basic asm in PARALLEL block.
21375 * doc/extend.texi: Mention new behavior of basic asm.
21376 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
21377 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
21378 branch_needs_nop_p): Use asm_noperands.
21379
21380 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
21381
21382 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
21383 Include the M7 SPARC DFA scheduler.
21384 New attribute v3pipe.
21385 Annotate insns with v3pipe where appropriate.
21386 Define cpu_feature vis4.
21387 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
21388 Add (V8QI "8") to vbits.
21389 Add insns {add,sub}v8qi3
21390 Add insns ss{add,sub}v8qi3
21391 Add insns us{add,sub}{v8qi,v4hi}3
21392 Add insns {min,max}{v8qi,v4hi,v2si}3
21393 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
21394 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
21395 * config/sparc/niagara4.md: Add a comment explaining the
21396 discrepancy between the documented latenty numbers and the
21397 implemented ones.
21398 * config/sparc/niagara7.md: New file.
21399 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
21400 supports SPARC5 and VIS 4.0 instructions.
21401 * configure: Regenerate.
21402 * config.in: Likewise.
21403 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
21404 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
21405 TARGET_CPU_niagara7.
21406 (ASM_CPU64_DEFAULT_SPEC): Likewise.
21407 (CPP_CPU_SPEC): Handle niagara7.
21408 (ASM_CPU_SPEC): Likewise.
21409 * config/sparc/sparc-opts.h (processor_type): Add
21410 PROCESSOR_NIAGARA7.
21411 (mvis4): New option.
21412 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
21413 (AS_NIAGARA7_FLAG): Define.
21414 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
21415 (CPP_CPU64_DEFAULT_SPEC): Likewise.
21416 (CPP_CPU_SPEC): Handle niagara7.
21417 (ASM_CPU_SPEC): Likewise.
21418 * config/sparc/sparc.c (niagara7_costs): Define.
21419 (sparc_option_override): Handle niagara7 and adjust cache-related
21420 parameters with better values for niagara cpus. Also support VIS4.
21421 (sparc32_initialize_trampoline): Likewise.
21422 (sparc_use_sched_lookahead): Likewise.
21423 (sparc_issue_rate): Likewise.
21424 (sparc_register_move_cost): Likewise.
21425 (dump_target_flag_bits): Support VIS4.
21426 (sparc_vis_init_builtins): Likewise.
21427 (sparc_builtins): Likewise.
21428 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
21429 VIS4 4.0.
21430 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
21431 UltraSparc M7.
21432 * config/sparc/sparc.opt (sparc_processor_type): New value
21433 niagara7.
21434 * config/sparc/visintrin.h (__attribute__): Prototypes for the
21435 VIS4 builtins.
21436 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
21437 -mvis4.
21438 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
21439 VIS4 builtins.
21440
21441 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
21442
21443 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
21444
21445 2016-06-06 Richard Biener <rguenther@suse.de>
21446
21447 PR tree-optimization/71398
21448 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
21449 remove edges.
21450
21451 2016-06-05 James Bowman <james.bowman@ftdichip.com>
21452
21453 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
21454 ft32_expand_prolog, ft32_expand_epilogue):
21455 Handle pretend_args.
21456 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
21457 * config/ft32/ft32.md: Add pretend_returner.
21458
21459 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
21460
21461 PR target/71389
21462 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
21463 Copy op1 RTX to avoid invalid sharing.
21464 (ix86_expand_vector_move_misalign): Ditto.
21465
21466 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
21467
21468 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
21469 ATTRIBUTE_UNUSED.
21470
21471 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
21472
21473 * predict.c (predicted_by_loop_heuristics_p): New function.
21474 (predict_iv_comparison): Use it.
21475 (predict_loops): Walk from innermost loops; do not predict edges
21476 leaving multiple loops multiple times; implement
21477 PRED_LOOP_ITERATIONS_MAX heuristics.
21478 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
21479
21480 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
21481
21482 * cfg.c (check_bb_profile): Do not report mismatched profiles when
21483 only edges out of BB are EH edges.
21484
21485 2016-06-04 Martin Sebor <msebor@redhat.com>
21486 Marcin Baczyński <marbacz@gmail.com>
21487
21488 PR c/48116
21489 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
21490 a void expression in a void function.
21491
21492 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
21493
21494 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
21495 aux; dump reasons of decisions.
21496 (should_duplicate_loop_header_p): Likewise.
21497 (do_while_loop_p): Likewise.
21498 (ch_base::copy_headers): Dump asi num insns duplicated.
21499
21500 2016-06-04 Jakub Jelinek <jakub@redhat.com>
21501
21502 PR tree-optimization/71405
21503 * tree-ssa.c (execute_update_addresses_taken): For clobber with
21504 incompatible type, build a new clobber with the right type instead
21505 of building a VIEW_CONVERT_EXPR around it.
21506
21507 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
21508
21509 PR tree-optimization/52171
21510 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
21511 by_pieces_ninsns instead of move_by_pieces_ninsns.
21512
21513 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
21514
21515 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
21516 for reg+reg addressing mode.
21517
21518 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21519
21520 * rs6000-c.c (c/c-tree.h): Add #include.
21521 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
21522 in C++ when found in the base position of vec_ld or vec_st.
21523
21524 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
21525
21526 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
21527 use of profile unless profile status is PROFILE_READ.
21528 * profile.c (compute_branch_probabilities): Set profile status
21529 only after reporting predictor hitrates.
21530
21531 2016-06-03 Joseph Myers <joseph@codesourcery.com>
21532
21533 PR target/71276
21534 PR target/71277
21535 * common.opt (ffp-int-builtin-inexact): New option.
21536 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
21537 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
21538 (ceil@var{m}2): Document dependence on this option.
21539 * ipa-inline-transform.c (inline_call): Handle
21540 flag_fp_int_builtin_inexact.
21541 * ipa-inline.c (can_inline_edge_p): Likewise.
21542 * config/i386/i386.md (rintxf2): Do not test
21543 flag_unsafe_math_optimizations.
21544 (rint<mode>2_frndint): New define_insn.
21545 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
21546 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
21547 for 387 instead of extending and truncating.
21548 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
21549 !flag_trapping_math instead of flag_unsafe_math_optimizations.
21550 Change to frndint<mode>2_<rounding>.
21551 (frndintxf2_<rounding>_i387): Likewise. Change to
21552 frndint<mode>2_<rounding>_i387.
21553 (<rounding_insn>xf2): Likewise.
21554 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
21555 !flag_trapping_math instead of flag_unsafe_math_optimizations for
21556 x87. Test TARGET_ROUND || !flag_trapping_math ||
21557 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
21558 SSE. Use ROUND_NO_EXC in constant operand of
21559 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
21560 for 387 instead of extending and truncating.
21561
21562 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
21563 Julia Koval <julia.koval@intel.com>
21564
21565 PR target/66960
21566 PR target/67630
21567 PR target/67634
21568 PR target/67841
21569 PR target/68037
21570 PR target/68618
21571 PR target/68661
21572 PR target/69575
21573 PR target/69596
21574 PR target/69734
21575 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
21576 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
21577 all registers, except for function return registers if there are
21578 no caller-saved registers.
21579 (ix86_set_func_type): New function.
21580 (ix86_set_current_function): Call ix86_set_func_type to set
21581 no_caller_saved_registers and func_type. Call reinit_regs if
21582 caller-saved registers are changed. Don't allow MPX, SSE, MMX
21583 nor x87 instructions in interrupt handler nor function with
21584 no_caller_saved_registers attribute.
21585 (ix86_function_ok_for_sibcall): Return false if there are no
21586 caller-saved registers.
21587 (type_natural_mode): Don't warn ABI change for MMX in interrupt
21588 handler.
21589 (ix86_function_arg_advance): Skip for callee in interrupt handler.
21590 (ix86_function_arg): Return special arguments in interrupt handler.
21591 (ix86_promote_function_mode): Promote pointer to word_mode only
21592 for normal functions.
21593 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
21594 interrupt handler.
21595 (ix86_epilogue_uses): New function.
21596 (ix86_hard_regno_scratch_ok): Likewise.
21597 (ix86_save_reg): Preserve all registers in interrupt handler
21598 after reload. Preserve all registers, except for function return
21599 registers, if there are no caller-saved registers after reload.
21600 (find_drap_reg): Always use callee-saved register if there are
21601 no caller-saved registers.
21602 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
21603 for interrupt handler.
21604 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
21605 Emit cld instruction if stringops are used in interrupt handler
21606 or interrupt handler isn't a leaf function.
21607 (ix86_expand_epilogue): Generate interrupt return for interrupt
21608 handler and pop the 'ERROR_CODE' off the stack before interrupt
21609 return in exception handler.
21610 (ix86_expand_call): Disallow calling interrupt handler directly.
21611 If there are no caller-saved registers, mark all registers that
21612 are clobbered by the call which returns as clobbered.
21613 (ix86_handle_no_caller_saved_registers_attribute): New function.
21614 (ix86_handle_interrupt_attribute): Likewise.
21615 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
21616 attributes.
21617 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
21618 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
21619 accumulation in interrupt function if stack may be realigned to
21620 avoid DRAP.
21621 (EPILOGUE_USES): New.
21622 (function_type): New enum.
21623 (machine_function): Add func_type and no_caller_saved_registers.
21624 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
21625 (interrupt_return): New pattern.
21626 * doc/extend.texi: Document x86 interrupt and
21627 no_caller_saved_registers attributes.
21628
21629 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
21630
21631 PR tree-optimization/52171
21632 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
21633 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
21634 Look for constant strings. Move some code to emit_block_cmp_hints
21635 and use it.
21636 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
21637 * defaults.h (COMPARE_MAX_PIECES): New macro.
21638 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
21639 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
21640 (clear_by_pieces_1): Don't declare. Move definition before use.
21641 (can_do_by_pieces): New static function.
21642 (can_move_by_pieces): Use it. Return bool.
21643 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
21644 OP. All callers changed. Handle COMPARE_BY_PIECES.
21645 (class pieces_addr); New.
21646 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
21647 pieces_addr::adjust, pieces_addr::increment_address,
21648 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
21649 functions for it.
21650 (class op_by_pieces_d): New.
21651 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
21652 functions for it.
21653 (class move_by_pieces_d, class compare_by_pieces_d,
21654 class store_by_pieces_d): New subclasses of op_by_pieces_d.
21655 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
21656 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
21657 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
21658 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
21659 compare_by_pieces_d::finish_mode): New member functions.
21660 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
21661 functions.
21662 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
21663 (emit_block_cmp_hints): New function.
21664 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
21665 use the newly defined classes.
21666 * expr.h (by_pieces_constfn): New typedef.
21667 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
21668 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
21669 (move_by_pieces_ninsns): Don't declare.
21670 (can_move_by_pieces): Change return value to bool.
21671 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
21672 (compare_by_pieces_branch_ratio): New hook.
21673 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
21674 (by_pieces_ninsns): Declare.
21675 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
21676 COMPARE_BY_PIECES.
21677 (default_compare_by_pieces_branch_ratio): New function.
21678 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
21679 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
21680 * doc/tm.texi: Regenerate.
21681 * tree-ssa-strlen.c: Include "builtins.h".
21682 (handle_builtin_memcmp): New static function.
21683 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
21684 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
21685
21686 2016-06-03 Alan Hayward <alan.hayward@arm.com>
21687
21688 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
21689 relevant stmts which are simple and invariant.
21690 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
21691 instead of simple and invariant
21692
21693 2016-06-03 Alan Hayward <alan.hayward@arm.com>
21694
21695 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
21696 (vectorizable_reduction): Check for new relevant state.
21697 (vectorizable_live_operation): vectorize live stmts using
21698 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
21699 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
21700 (vect_stmt_relevant_p): Check for stmts which are only used live.
21701 (process_use): Use of a stmt does not inherit it's live value.
21702 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
21703 (vect_analyze_stmt): Check for new relevant state.
21704 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
21705 outside the loop, but not inside it.
21706
21707 2016-06-03 Alan Hayward <alan.hayward@arm.com>
21708
21709 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
21710 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
21711 (vect_get_vec_def_for_operand): Split out code.
21712
21713 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
21714
21715 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
21716
21717 2016-06-03 Alan Hayward <alan.hayward@arm.com>
21718
21719 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
21720
21721 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21722
21723 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
21724
21725 2016-06-03 Jakub Jelinek <jakub@redhat.com>
21726
21727 PR middle-end/71387
21728 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
21729 to noreturn e->callee->decl that has void return type and void
21730 arguments, adjust gimple_call_fntype and remove lhs even if it had
21731 previously addressable type.
21732
21733 2016-06-02 Jeff Law <law@redhat.com>
21734
21735 PR tree-optimization/71328
21736 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
21737 error when checking for a jump back onto the copied path.
21738
21739 2016-06-02 David Malcolm <dmalcolm@redhat.com>
21740
21741 * config/microblaze/microblaze.c (get_branch_target): Add return
21742 NULL_RTX for the non-CALL_P case.
21743 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
21744 (insert_wic): Remove unused local "j".
21745
21746 2016-06-02 Martin Liska <mliska@suse.cz>
21747
21748 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
21749
21750 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
21751 Julia Koval <julia.koval@intel.com>
21752
21753 * function.c (assign_parm_setup_stack): Force source into a
21754 register if needed.
21755 * target.def (function_incoming_arg): Update documentation to
21756 allow arbitrary address computation based on hard register.
21757 * doc/tm.texi: Regenerated.
21758
21759 2016-06-02 Martin Liska <mliska@suse.cz>
21760
21761 * predict.c (combine_predictions_for_bb): Fix first match in
21762 cases where a first predictor contains more than one occurence
21763 in list of predictors. Take the best value in such case.
21764
21765 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21766
21767 PR rtl-optimization/71295
21768 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
21769 offset would go over the size of the inner mode reject it.
21770
21771 2016-06-02 Jakub Jelinek <jakub@redhat.com>
21772
21773 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
21774 x=x,x and v=v,m instead of x=x,m.
21775
21776 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
21777 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
21778 alternative to v=rm,C.
21779
21780 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
21781 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
21782 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
21783 instead of vex for the last two above mentioned alternatives.
21784
21785 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21786
21787 PR target/70830
21788 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
21789
21790 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
21791
21792 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
21793
21794 2016-06-01 David Malcolm <dmalcolm@redhat.com>
21795
21796 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
21797 from int to unsigned.
21798
21799 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
21800
21801 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
21802 alternatives, eliminating preferred register class. Add support
21803 for the MTVSRDD instruction in ISA 3.0.
21804 (vsx_splat_v4si_internal): Use splat_input_operand instead of
21805 reg_or_indexed_operand.
21806 (vsx_splat_v4sf_internal): Likewise.
21807
21808 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
21809
21810 PR target/71186
21811 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
21812 for loading up all 0's or all 1's.
21813
21814 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
21815
21816 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
21817
21818 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
21819
21820 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
21821 extension.
21822 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
21823 * gcc.c (set_source_date_epoch_envvar): New function, sets
21824 the SOURCE_DATE_EPOCH environment variable to the current time.
21825
21826 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
21827
21828 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
21829 the factor for live Phi nodes.
21830
21831 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
21832
21833 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
21834 * tree-parloops.c (parallelize_loops): likewise.
21835 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
21836 tree_unswitch_outer_loop): likewise.
21837
21838 2016-06-01 Jakub Jelinek <jakub@redhat.com>
21839
21840 PR middle-end/71371
21841 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
21842 around creation of the temporary.
21843
21844 2016-06-01 Richard Biener <rguenther@suse.de>
21845
21846 PR tree-optimization/71366
21847 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
21848 (unloop_loops): Move removing edges here ...
21849 (try_unroll_loop_completely): ... from here.
21850 (try_peel_loop): ... and here.
21851 (tree_unroll_loops_completely_1): Track parent loops via
21852 bitmap of header BBs.
21853 (tree_unroll_loops_completely): Adjust for that.
21854
21855 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
21856
21857 * config/rs6000/altivec.h (vec_slv): New macro.
21858 (vec_srv): New macro.
21859 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
21860 (UNSPEC_VSRV): New value.
21861 (vslv): New insn.
21862 (vsrv): New insn.
21863 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
21864 (vsrv): New builtin definition.
21865 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
21866 define argument types for new builtin.
21867 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
21868 new builtin.
21869 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
21870 functions.
21871
21872 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
21873 Jocelyn Mayer <l_indien@magic.fr>
21874
21875 PR target/67310
21876 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
21877 detect processor family for signature_CENTAUR_ebx.
21878 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
21879 signature_CENTAUR_ebx.
21880 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
21881 <default>: Pass x86-64 for has_longmode.
21882
21883 2016-06-01 Nathan Sidwell <nathan@acm.org>
21884
21885 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
21886 undefined weak.
21887
21888 2016-06-01 Richard Biener <rguenther@suse.de>
21889
21890 PR tree-optimization/71261
21891 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
21892 of stmts successfully put in the bool pattern. Remove
21893 single-use restriction.
21894 (adjust_bool_pattern_cast): Add cast at the use site via the
21895 pattern def sequence.
21896 (adjust_bool_pattern): Remove recursion, maintain a hash-map
21897 of patterned defs. Use the pattern def seqence instead of
21898 multiple independent patterns.
21899 (sort_after_uid): New qsort compare function.
21900 (adjust_bool_stmts): New function to process stmts in the bool
21901 pattern in IL order.
21902 (vect_recog_bool_pattern): Adjust.
21903 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
21904 (ifcvt_walk_pattern_tree): Likewise.
21905 (stmt_is_root_of_bool_pattern): Likewise.
21906 (ifcvt_repair_bool_pattern): Likewise.
21907 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
21908
21909 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
21910
21911 * loop-unroll.c (decide_unroll_constant_iterations,
21912 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
21913 likely upper bounds.
21914 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
21915
21916 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
21917
21918 * tree-core.h (enum omp_clause_code): Remove
21919 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
21920
21921 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21922
21923 * config/arm/sync.md (arm_store_exclusive<mode>):
21924 Use 'H' output modifier on operands[2] rather than creating a new
21925 entry in out-of-bounds memory of the operands array.
21926 (arm_store_release_exclusivedi): Likewise.
21927
21928 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21929
21930 * config/arm/arm.c (arm_fusion_enabled_p): New function.
21931 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
21932 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
21933 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
21934
21935 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
21936
21937 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
21938 into account live statements for mask producers.
21939
21940 2016-06-01 Richard Biener <rguenther@suse.de>
21941
21942 PR tree-optimization/71311
21943 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
21944 restrict to non-INTEGER_CST @0.
21945
21946 2016-06-01 Richard Biener <rguenther@suse.de>
21947
21948 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
21949 (relational patterns): Use :c to avoid pattern duplications.
21950
21951 2016-06-01 Richard Biener <rguenther@suse.de>
21952
21953 * genmatch.c (comparison_code_p): New predicate.
21954 (swap_tree_comparison): New function.
21955 (commutate): Add for_vec parameter to append new for entries.
21956 Support commutating relational operators by swapping it alongside
21957 operands.
21958 (lower_commutative): Adjust.
21959 (dt_simplify::gen): Do not pass artificial operators to gen
21960 functions.
21961 (decision_tree::gen): Do not add artificial operators as parameters.
21962 (parser::parse_expr): Verify operator commutativity when :c is
21963 applied. Allow :C to override this.
21964 * match.pd: Adjust patterns to use :C instead of :c where required.
21965
21966 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
21967
21968 PR tree-optimization/71077
21969 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
21970 the combining step, use boolean_false_node and boolean_true_node
21971 as the designated false/true return values.
21972
21973 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
21974
21975 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
21976 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
21977 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
21978 PRED_LOOP_EXIT.
21979
21980 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
21981
21982 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
21983 of flags impliying the register renaming.
21984 * toplev.c (process_options): Do not imply flag_rename_registers with
21985 loop peeling.
21986
21987 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
21988
21989 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
21990 default implementation.
21991
21992 2016-05-31 Nathan Sidwell <nathan@acm.org>
21993
21994 * dwarf2out.c (cur_line_info_table): Add GTY marker.
21995
21996 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
21997
21998 * config/sh/constraints.md (b): Remove constraint.
21999 * config/sh/predicates.md (arith_reg_operand): Remove
22000 TARGET_REGISTER_P.
22001 * config/sh/sh-modes.def (PDI): Remove.
22002 * config/sh/sh.c (sh_target_reg_class,
22003 sh_optimize_target_register_callee_saved): Remove functions.
22004 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
22005 (sh_expand_epilogue): Update comment.
22006 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
22007 sh_secondary_reload): Remove TARGET_REGS related code.
22008 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
22009 TARGET_REGISTER_P): Remove macros.
22010 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
22011 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
22012 TR1_REG, TR2_REG): Remove constants.
22013 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
22014
22015 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
22016
22017 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
22018 define_expand patterns.
22019 (adddi3_compact): Rename to adddi3.
22020 (subdi3_compact): Rename to subdi3.
22021 (*negdi2): Rename to negdi2.
22022 (*abs<mode>2): Rename to abs<mode>2.
22023
22024 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
22025
22026 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
22027 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
22028 (atomic_sub_fetchsi): ... this new pattern.
22029 (mvtc): Add CC_REG clobber.
22030
22031 2016-05-31 Marek Polacek <polacek@redhat.com>
22032
22033 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
22034
22035 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22036
22037 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
22038 aarch64_fusion_enabled_p to check for fusion capabilities.
22039
22040 2016-05-31 Richard Biener <rguenther@suse.de>
22041
22042 PR tree-optimization/71352
22043 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
22044 minus one and a negate.
22045
22046 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22047
22048 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
22049 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
22050 Delete prototype.
22051 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
22052 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
22053 Remove use of aarch64_simd_attr_length_move, set length attribute
22054 directly.
22055 (*aarch64_be_movoi): Likewise.
22056 (*aarch64_be_movci): Likewise.
22057 (*aarch64_be_movxi): Likewise.
22058
22059 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
22060
22061 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
22062 It no longer does that.
22063 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
22064
22065 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
22066
22067 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
22068 attribute __unused__.
22069
22070 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
22071
22072 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
22073 * config/arm/arm.c (arm_arch_thumb1): Define.
22074 (arm_option_override): Initialize arm_arch_thumb1.
22075 * config/arm/arm.h (arm_arch_thumb1): Declare.
22076 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
22077 support Thumb-1 ISA.
22078
22079 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
22080
22081 PR target/71346
22082 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
22083 `Yv' for scalar operand.
22084
22085 2016-05-31 Tom de Vries <tom@codesourcery.com>
22086
22087 PR tree-optimization/69068
22088 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
22089 phis with more than two args.
22090
22091 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
22092
22093 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
22094 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
22095 target.
22096
22097 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
22098
22099 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
22100 tune_64.
22101 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
22102 support on SPARC.
22103 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
22104 cpu_32, cpu_64, tune_32 and tune_64.
22105 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
22106
22107 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
22108
22109 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
22110
22111 2016-05-30 Andi Kleen <ak@linux.intel.com>
22112
22113 * auto-profile.c (read_profile): Replace asserts with errors
22114 when file does not exist.
22115 * gcov-io.c (gcov_read_words): Dito.
22116
22117 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
22118
22119 * tree-cfg.c (print_loop): Print likely upper bounds.
22120
22121 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
22122
22123 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
22124 * opts.c (default_options): Enable peel loops at -O3.
22125 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
22126 (try_peel_loop): Do not re-peel already peeled loops;
22127 use likely upper bounds; fix profile updating.
22128 (pass_complete_unroll::execute): Initialize peeled_loops.
22129
22130 2016-05-30 Martin Liska <mliska@suse.cz>
22131
22132 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
22133 computed costs by frequency of BB they belong to.
22134 (get_scaled_computation_cost_at): New function.
22135
22136 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
22137 Marc Glisse <marc.glisse@inria.fr>
22138
22139 PR tree-optimization/71289
22140 * match.pd (-1 / B < A, A > -1 / B): New transformations.
22141
22142 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
22143
22144 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
22145
22146 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
22147
22148 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
22149 for peeled copies; avoid underflow when updating estimates; correctly
22150 scale loop profile.
22151
22152 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
22153
22154 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
22155 r236875. Corrected oe3 to oe2 as obvious.
22156
22157 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
22158
22159 PR middle-end/71269
22160 PR middle-end/71252
22161 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
22162 that inserted stmt will not dominate stmts that defines its operand.
22163 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
22164 (rewrite_expr_tree_parallel): Likewise.
22165
22166 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
22167
22168 PR middle-end/71252
22169 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
22170 all fields including stmt_to_insert are swapped.
22171
22172 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
22173
22174 * predict.h (force_edge_cold): Declare.
22175 * predict.c (force_edge_cold): New function.
22176 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
22177 updating.
22178 (canonicalize_loop_induction_variables): Fix formating.
22179
22180 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
22181
22182 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
22183 (visium_expand_copysign): Use gen_int_mode directly.
22184 (visium_compute_frame_size): Minor tweaks.
22185
22186 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
22187
22188 * tree-vect-loop.c (vect_analyze_loop_2): Use
22189 likely_max_stmt_executions_int.
22190
22191 2016-05-30 Tom de Vries <tom@codesourcery.com>
22192
22193 PR tree-optimization/69067
22194 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
22195
22196 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
22197
22198 PR target/71245
22199 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
22200 New peepholes to remove unneeded fild/fistp pairs.
22201 (define_peephole2 atomic_loaddi_fpu): Ditto.
22202
22203 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
22204
22205 * predict.c (maybe_hot_frequency_p): Avoid division.
22206
22207 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
22208
22209 * doc/install.texi: Use https for shop.fsf.org.
22210
22211 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
22212
22213 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
22214 likely_max_stmt_executions_int.
22215
22216 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
22217
22218 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
22219 likely_max_stmt_executions_int.
22220
22221 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
22222
22223 * profile.c (compute_branch_probabilities): Do not report hitrates
22224 here.
22225 (branch_prob): Report hitrates here.
22226 * predict.c (gimple_predict_edge): Do not assert profile status;
22227 fix formatting issues.
22228
22229 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
22230
22231 * predict.c (edge_predicted_by_p): New function.
22232 (predict_paths_for_bb): Do not put multiple predictions of the same type
22233 on one edge.
22234
22235 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
22236
22237 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
22238 commit.
22239
22240 2016-05-28 Alan Modra <amodra@gmail.com>
22241
22242 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
22243
22244 2016-05-28 Alan Modra <amodra@gmail.com>
22245
22246 PR rtl-optimization/71275
22247 * ira.c (ira): Free dominance info.
22248
22249 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
22250
22251 * doc/sourcebuild.texi: New address for upstream Go repository.
22252
22253 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
22254
22255 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
22256 (TARGET_ARM_V7M): Likewise.
22257
22258 2016-05-26 Jeff Law <law@redhat.com>
22259
22260 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
22261 (thread_across_edge): Remove calls to find_jump_threads_backwards.
22262 * passes.def: Add jump threading passes before DOM/VRP.
22263 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
22264 argument to a basic block from an edge. Remove tests which are
22265 handled elsewhere.
22266 (pass_data_thread_jumps, class pass_thread_jumps): New.
22267 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
22268 (make_pass_thread_jumps): Likewise.
22269 * tree-pass.h (make_pass_thread_jumps): Declare.
22270
22271 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
22272
22273 * config/visium/visium-protos.h (split_double_move): Rename into...
22274 (visium_split_double_move): ...this.
22275 (visium_split_double_add): Declare.
22276 * config/visium/visium.c (split_double_move): Rename into...
22277 (visium_split_double_move): ...this.
22278 (visium_split_double_add): New function.
22279 (visium_expand_copysign): Renumber operands for consistency.
22280 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
22281 (DFmode move splitter): Likewise.
22282 (*addi3_insn): Split by means of visium_split_double_add.
22283 (*adddi3_insn_flags): Delete.
22284 (*plus_plus_sltu<subst_arith>): New insn.
22285 (*subdi3_insn): Split by means of visium_split_double_add.
22286 (subdi3_insn_flags): Delete.
22287 (*minus_minus_sltu<subst_arith>): New insn.
22288 (*negdi2_insn): Split by means of visium_split_double_add.
22289 (*negdi2_insn_flags): Delete.
22290
22291 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
22292
22293 * configure.ac: Treat a --with-headers option without argument
22294 the same as the default (i.e. consult sys-include directory).
22295 * configure: Regenerate.
22296
22297 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22298
22299 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
22300 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
22301 prototype.
22302 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
22303 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
22304
22305 2016-05-27 Jiong Wang <jiong.wang@arm.com>
22306
22307 PR target/63596
22308 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
22309 tree-stdarg analysis results.
22310 (aarch64_setup_incoming_varargs): Likewise.
22311
22312 2016-05-27 Jiong Wang <jiong.wang@arm.com>
22313
22314 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
22315 va_list_gpr_counter_field and va_list_fpr_counter_field.
22316
22317 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
22318
22319 PR67609
22320 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
22321 * config/aarch64/aarch64.c
22322 (aarch64_cannot_change_mode_class): Remove function.
22323 * config/aarch64/aarch64-protos.h
22324 (aarch64_cannot_change_mode_class): Remove.
22325
22326 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
22327
22328 * cfgloop.c (record_niter_bound): Record likely upper bounds.
22329 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
22330 get_likely_max_loop_iterations_int): New.
22331 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
22332 any_likely_upper_bound.
22333 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
22334 Declare.
22335 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
22336 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
22337 upper bound.
22338 (unroll_loop_constant_iterations): Likewise.
22339 (unroll_loop_runtime_iterations): Likewise.
22340 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
22341 * lto-streamer-out.c (output_cfg): Likewise.
22342 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
22343 bounds.
22344 (canonicalize_loop_induction_variables): Dump likely upper bounds.
22345 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
22346 (likely_max_loop_iterations): New.
22347 (likely_max_loop_iterations_int): New.
22348 (likely_max_stmt_executions): New.
22349 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
22350 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
22351 likely_max_stmt_executions): Declare.
22352
22353 2016-05-27 Marek Polacek <polacek@redhat.com>
22354
22355 PR middle-end/71308
22356 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
22357
22358 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22359
22360 * config/s390/s390.md (2x risbg splitters): Use
22361 reg_overlap_mentioned_p instead of rtx_equal_p.
22362
22363 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
22364
22365 * combine.c (make_compound_operation): Take known zero bits into
22366 account when checking for possible zero_extend.
22367
22368 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22369
22370 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
22371 Use const_int_operand for operand 2 predicate. Simplify expand code
22372 as a result.
22373
22374 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
22375
22376 PR middle-end/71279
22377 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
22378 into comparison.
22379
22380 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22381
22382 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
22383 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
22384 that returns CC_SESWPmode and CC_ZESWPmode.
22385 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
22386 and CC_SESWPmode.
22387 (aarch64_rtx_costs): Likewise.
22388
22389 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
22390
22391 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
22392 for ISA 3.0 min/max support.
22393 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
22394 conditional move support.
22395 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
22396 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
22397 available.
22398 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
22399 conditional moves where the comparison type is different from move
22400 type.
22401 (fp_minmax): New code iterator for smin/smax.
22402 (minmax): New code attributes for min/max.
22403 (SMINMAX): Likewise.
22404 (smax<mode>3): Combine min, max insns into one insn using the
22405 fp_minmax code iterator. Add support for ISA 3.0 min/max
22406 instructions that don't need -ffast-math.
22407 (s<minmax><mode>3): Likewise.
22408 (smax<mode>3_vsx): Likewise.
22409 (smin<mode>3): Likewise.
22410 (s<minmax><mode>3_vsx): Likewise.
22411 (smin<mode>3_vsx): Likewise.
22412 (pre-VSX min/max splitters): Likewise.
22413 (s<minmax><mode>3_fpr): Likewise.
22414 (movsfcc): Rewrite floating point conditional moves to combine
22415 SFmode/DFmode into a single insn.
22416 (mov<mode>cc): Likewise.
22417 (movdfcc): Likewise.
22418 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
22419 SFDF2 iterators to handle all combinations.
22420 (fseldfsf4): Likewise.
22421 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
22422 (fseldfdf4): Likewise.
22423 (fselsfdf4): Likewise.
22424 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
22425 comparison instructions that set a 0/-1 mask, and use it for
22426 floating point conditional move via XXSEL.
22427 (fpmask<mode>): Likewise.
22428 (xxsel<mode>): Likewise.
22429 * config/rs6000/predicates.md (min_max_operator): Delete, no
22430 longer used.
22431 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
22432 instructions that generate a 0/-1 mask for use with XXSEL.
22433 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
22434 say whether floating point min/max is available, either through
22435 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
22436 (TARGET_MINMAX_DF): Likewise.
22437
22438 2016-05-27 Alan Modra <amodra@gmail.com>
22439
22440 PR rtl-optimization/71275
22441 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
22442 for update_equiv_regs and combine_and_move_insns.
22443
22444 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
22445
22446 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
22447 if_then_else or cond RTXes to calculate attribute value.
22448 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
22449 <attr "length_immediate>: Ditto.
22450 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
22451 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
22452 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
22453 <attr "type">: Ditto.
22454 <attr "prefix_data16">: Ditto.
22455 <attr "prefix_extra">: Ditto.
22456 <attr "length_immediate">: Ditto.
22457 <attr "prefix">: Ditto.
22458 (vec_set<mode>_0) <attr "isa">: Ditto.
22459 <attr "prefix_extra">: Ditto.
22460 <attr "length_immediate">: Ditto.
22461 <attr "prefix">: Ditto.
22462 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
22463 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
22464 (sse2_storelpd) <attr "prefix_data16">: Ditto.
22465 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
22466 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
22467 <attr "length_immediate">: Ditto.
22468 <attr "prefix">: Ditto.
22469 (sse2_movsd) <attr "length_immediate">: Ditto.
22470 <attr "prefix">: Ditto.
22471 (vec_concatv2df) <attr "isa">: Ditto.
22472 <attr "prefix">: Ditto.
22473 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
22474 (*vec_extractv2di_1) <attr "isa">: Ditto.
22475 <attr "type">: Ditto.
22476 <attr "length_immediate">: Ditto.
22477 <attr "prefix_rex">: Ditto.
22478 <attr "prefix_extra">: Ditto.
22479 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
22480 <attr "prefix_extra">: Ditto.
22481 <attr "length_immediate">: Ditto.
22482 (vec_concatv2di) <attr "isa">: Ditto.
22483 <attr "prefix_extra">: Ditto.
22484 <attr "length_immediate">: Ditto.
22485 <attr "prefix">: Ditto.
22486
22487 2016-05-26 Martin Liska <mliska@suse.cz>
22488
22489 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
22490 function.
22491 (operator+): Likewise.
22492 (operator-): Likewise.
22493 (comp_cost::operator+=): Likewise.
22494 (comp_cost::operator-=): Likewise.
22495 (comp_cost::operator/=): Likewise.
22496 (comp_cost::operator*=): Likewise.
22497 (operator<): Likewise.
22498 (operator==): Likewise.
22499 (operator<=): Likewise.
22500 (new_cost): Remove.
22501 (infinite_cost_p): Likewise.
22502 (add_costs): Likewise.
22503 (sub_costs): Likewise.
22504 (compare_costs): Likewise.
22505 (set_group_iv_cost): Use the newly introduced functions.
22506 (get_address_cost): Likewise.
22507 (get_shiftadd_cost): Likewise.
22508 (force_expr_to_var_cost): Likewise.
22509 (split_address_cost): Likewise.
22510 (ptr_difference_cost): Likewise.
22511 (difference_cost): Likewise.
22512 (get_computation_cost_at): Likewise.
22513 (determine_group_iv_cost_generic): Likewise.
22514 (determine_group_iv_cost_address): Likewise.
22515 (determine_group_iv_cost_cond): Likewise.
22516 (autoinc_possible_for_pair): Likewise.
22517 (determine_group_iv_costs): Likewise.
22518 (cheaper_cost_pair): Likewise.
22519 (iv_ca_recount_cost): Likewise.
22520 (iv_ca_set_no_cp): Likewise.
22521 (iv_ca_set_cp): Likewise.
22522 (iv_ca_cost): Likewise.
22523 (iv_ca_new): Likewise.
22524 (iv_ca_dump): Likewise.
22525 (iv_ca_narrow): Likewise.
22526 (iv_ca_prune): Likewise.
22527 (iv_ca_replace): Likewise.
22528 (try_add_cand_for): Likewise.
22529 (try_improve_iv_set): Likewise.
22530 (find_optimal_iv_set): Likewise.
22531
22532 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
22533
22534 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
22535 that internal functions will clobber all caller-saved registers.
22536
22537 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
22538
22539 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
22540 Return a better case_values_threshold when optimizing.
22541
22542 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
22543
22544 * config/aarch64/aarch64-simd.md (aarch64_combinez):
22545 Add ? to integer variant.
22546 (aarch64_combinez_be): Likewise.
22547
22548 2016-05-26 Jakub Jelinek <jakub@redhat.com>
22549
22550 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
22551 instead of x constraint.
22552 (vcvtps2ph256<mask_name>): Likewise.
22553
22554 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
22555 alternative. Formatting fix.
22556
22557 * config/i386/sse.md
22558 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
22559 to ...
22560 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
22561 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
22562 maybe_evex prefix instead of vex.
22563 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
22564 EXT_REX_SSE_REG_P (op0) case in the splitter.
22565
22566 2016-05-25 Jeff Law <law@redhat.com>
22567
22568 PR tree-optimization/71272
22569 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
22570 Update comments. Add test for empty path.
22571
22572 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
22573
22574 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
22575 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
22576 special case builtin.
22577 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
22578 code for ALTIVEC_BUILTIN_VEC_CMPNE.
22579 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
22580 for __builtin_vec_cmpne.
22581
22582 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
22583
22584 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
22585 redundant test and bail out if the type of the new operand is not
22586 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
22587
22588 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
22589
22590 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
22591 (x_ix86_target_flags_explicit): Remove.
22592 * config/i386/i386.c (ix86_function_specific_save): Do not copy
22593 x_ix86_target_flags_explicit.
22594 (ix86_function_specific_restore): Ditto.
22595
22596 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
22597 H.J. Lu <hongjiu.lu@intel.com>
22598
22599 PR target/70738
22600 * common/config/i386/i386-common.c
22601 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
22602 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
22603 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
22604 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
22605 (-mgeneral-regs-only): Add new option.
22606 * config/i386/i386.c (ix86_option_override_internal): Don't enable
22607 x87 instructions if only general registers are allowed.
22608 (ix86_target_string): Add ix86_flags argument. Handle additional
22609 flags options through ix86_flags argument. Update all callers.
22610 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
22611
22612 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22613
22614 PR rtl-optimization/66940
22615 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
22616 decrementing desired_val will not overflow before performing these
22617 operations.
22618
22619 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
22620
22621 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
22622 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
22623 * config/i386/i386.c (enum ix86_builtins): Add
22624 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
22625 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
22626 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
22627 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
22628 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
22629 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
22630 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
22631 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
22632 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
22633 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
22634 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
22635 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
22636 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
22637 __builtin_ia32_cvtps2dq512_mask.
22638 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
22639 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
22640 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
22641 * config/i386/sse.md
22642 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
22643 Rename to ...
22644 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
22645 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
22646 to ...
22647 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
22648 (avx512f_vec_pack_sfix_v8df): New define_expand.
22649 (avx512f_roundpd512): Rename to ...
22650 (avx512f_round<castmode>512): ... this. Change iterator.
22651 (avx512f_roundps512_sfix): New define_expand.
22652 (round<mode>2_sfix): Change iterator.
22653
22654 2016-05-25 Nick Clifton <nickc@redhat.com>
22655
22656 * config/msp430/msp430.c (msp430_attr): Produce an error if a
22657 static interrupt handler is detected.
22658 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
22659 default linker script.
22660 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
22661 the low part of a symbolic pointer.
22662
22663 2016-05-25 Richard Biener <rguenther@suse.de>
22664
22665 PR tree-optimization/71261
22666 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
22667 interesting stmt instead of immediate uses when looking
22668 for the use operand to replace.
22669
22670 2016-05-25 Martin Liska <mliska@suse.cz>
22671
22672 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
22673
22674 2016-05-25 Richard Biener <rguenther@suse.de>
22675
22676 PR tree-optimization/71264
22677 * tree-vect-stmts.c (vect_init_vector): Properly deal with
22678 vector type val.
22679
22680 2016-05-25 Martin Liska <mliska@suse.cz>
22681
22682 PR tree-optimization/71239
22683 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
22684 if DECL_SIZE is NULL.
22685
22686 2016-05-25 Richard Biener <rguenther@suse.de>
22687
22688 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
22689 * tree-if-conv.c (pass_data_if_conversion): Use it.
22690
22691 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
22692
22693 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
22694 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
22695 * varpool.c (varpool_node::get_availability): Likewise.
22696
22697 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
22698
22699 * config/rs6000/altivec.md (VNEG iterator): New iterator for
22700 VNEGW/VNEGD instructions.
22701 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
22702 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
22703 support for ISA 3.0 VNEGW/VNEGD instructions.
22704
22705 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
22706
22707 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
22708 pointers inside OACC_DATA regions.
22709 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
22710 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
22711 (gimplify_adjust_omp_clauses): Fix typo in comment.
22712
22713 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
22714
22715 * config/rs6000/altivec.md (VParity): New mode iterator for vector
22716 parity built-in functions.
22717 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
22718 zeros.
22719 (p9v_parity<mode>2): Likewise.
22720 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
22721 parity.
22722 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
22723 (parity<mode>2): ISA 3.0 expander for vector parity.
22724 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
22725 power9 built-ins.
22726 (BU_P9_64BIT_MISC_0): Likewise.
22727 (BU_P9_MISC_0): Likewise.
22728 (BU_P9V_AV_1): Likewise.
22729 (BU_P9V_AV_2): Likewise.
22730 (BU_P9V_AV_3): Likewise.
22731 (BU_P9V_AV_P): Likewise.
22732 (BU_P9V_VSX_1): Likewise.
22733 (BU_P9V_OVERLOAD_1): Likewise.
22734 (BU_P9V_OVERLOAD_2): Likewise.
22735 (BU_P9V_OVERLOAD_3): Likewise.
22736 (VCTZB): Add vector count trailing zeros support.
22737 (VCTZH): Likewise.
22738 (VCTZW): Likewise.
22739 (VCTZD): Likewise.
22740 (VPRTYBD): Add vector parity support.
22741 (VPRTYBQ): Likewise.
22742 (VPRTYBW): Likewise.
22743 (VCTZ): Add overloaded vector count trailing zeros support.
22744 (VPRTYB): Add overloaded vector parity support.
22745 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
22746 overloaded vector count trailing zeros and parity instructions.
22747 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
22748 vector parity support.
22749 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
22750 trailing zeros support.
22751 (vec_cntlz): Likewise.
22752 (vec_vctzb): Likewise.
22753 (vec_vctzd): Likewise.
22754 (vec_vctzh): Likewise.
22755 (vec_vctzw): Likewise.
22756 (vec_vprtyb): Add ISA 3.0 vector parity support.
22757 (vec_vprtybd): Likewise.
22758 (vec_vprtybw): Likewise.
22759 (vec_vprtybq): Likewise.
22760 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
22761 the ISA 3.0 vector count trailing zeros and vector parity built-in
22762 functions.
22763
22764 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
22765
22766 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
22767 when there is stmt_to_insert.
22768
22769 2016-05-24 Martin Sebor <msebor@redhat.com>
22770
22771 PR c++/71147
22772 * tree.h (complete_or_array_type_p): New inline function.
22773
22774 2016-05-24 Jakub Jelinek <jakub@redhat.com>
22775
22776 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
22777 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
22778 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
22779
22780 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
22781 Limit 1st alternative to noavx isa, split 2nd alternative into one
22782 noavx and one avx alternative, use *x and Bm in the former and
22783 x and m in the latter.
22784
22785 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
22786 of sse4 for the first alternative, drop %v from the template
22787 and d operand modifier. Split second alternative into one sse4_noavx
22788 and one avx alternative, use *x instead of *v in the former and v
22789 instead of *v in the latter.
22790 (*sse4_1_extractps): Use noavx isa instead of * for the first
22791 alternative, drop %v from the template. Split second alternative into
22792 one noavx and one avx alternative, use *x instead of *v in the
22793 former and v instead of *v in the latter.
22794 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
22795 with noavx and the last one with avx.
22796 (sse4_1_phminposuw): Guard first alternative with noavx isa,
22797 split the second one into one noavx and one avx alternative,
22798 use *x and Bm in the former and x and m in the latter one.
22799 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
22800 alternatives.
22801
22802 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
22803 first two alternatives to noavx, use *x instead of *v in the second
22804 one, add avx alternative without *.
22805 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
22806 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
22807 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
22808
22809 2016-05-24 Jeff Law <law@redhat.com>
22810
22811 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
22812 New function, extracted from...
22813 (fsm_find_control_statement_thread_paths): Here. Use the new function.
22814 Allow simple copies and constant initializations in the SSA chain.
22815
22816 2016-05-24 Marek Polacek <polacek@redhat.com>
22817
22818 PR c/71249
22819 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
22820 scope.
22821
22822 2016-05-24 Jakub Jelinek <jakub@redhat.com>
22823
22824 PR c++/71257
22825 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
22826 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
22827 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
22828 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
22829 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
22830
22831 2016-05-24 Richard Biener <rguenther@suse.de>
22832
22833 PR tree-optimization/71240
22834 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
22835 has integral type.
22836
22837 2016-05-24 Richard Biener <rguenther@suse.de>
22838
22839 PR tree-optimization/71230
22840 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
22841
22842 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
22843
22844 * tree-vectorizer.h (vectorizable_comparison): Delete.
22845 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
22846 PURE_SLP_STMT check.
22847 * tree-vect-stmts.c (vectorizable_call): Likewise.
22848 (vectorizable_simd_clone_call): Likewise.
22849 (vectorizable_conversion): Likewise.
22850 (vectorizable_assignment): Likewise.
22851 (vectorizable_shift): Likewise.
22852 (vectorizable_operation): Likewise.
22853 (vectorizable_load): Likewise.
22854 (vectorizable_condition): Likewise.
22855 (vectorizable_store): Likewise. Assert that we don't have
22856 hybrid SLP.
22857 (vectorizable_comparison): Make static. Remove redundant
22858 PURE_SLP_STMT check.
22859 (vect_transform_stmt): Assert that we always have an slp_node
22860 if PURE_SLP_STMT.
22861
22862 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22863
22864 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
22865 operands[2] against 1 with comparison against CONST1_RTX.
22866 (<shift>di3_neon): Likewise.
22867 * config/arm/predicates.md (const0_operand): Replace with comparison
22868 against CONST0_RTX.
22869
22870 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22871
22872 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
22873 operands[2] against 1 with comparison against CONST1_RTX.
22874 (ashrdi3): Likewise.
22875 (lshrdi3): Likewise.
22876 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
22877 UINTVAL.
22878 (ashrsi3): Likewise.
22879 (lshrsi3): Likewise.
22880 (rotrsi3): Likewise.
22881 (define_split above *compareqi_eq0): Likewise.
22882 (define_split above "prologue"): Likewise.
22883 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
22884 * config/arm/predicates.md (shift_operator): Likewise.
22885 (shift_nomul_operator): Likewise.
22886 (sat_shift_operator): Likewise.
22887 (thumb1_cmp_operand): Likewise.
22888 (const_neon_scalar_shift_amount_operand): Replace manual range
22889 check with IN_RANGE.
22890 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
22891 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
22892
22893 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22894
22895 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
22896 with HOST_WIDE_INT_1.
22897 (insv): Likewise.
22898 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
22899 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
22900 (arm_canonicalize_comparison): Likewise.
22901 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
22902 HOST_WIDE_INT_1.
22903 (thumb1_size_rtx_costs): Likewise.
22904 (vfp_const_double_index): Replace cast of 1 to unsigned
22905 HOST_WIDE_INT with HOST_WIDE_INT_1U.
22906 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
22907 HOST_WIDE_INT_1.
22908 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
22909 HOST_WIDE_INT with HOST_WIDE_INT_1U.
22910 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
22911 HOST_WIDE_INT with HOST_WIDE_INT_1.
22912
22913 2016-05-24 Marek Polacek <polacek@redhat.com>
22914
22915 * tree-cfg.h (should_remove_lhs_p): New predicate.
22916 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
22917 * gimplify.c (gimplify_modify_expr): Likewise.
22918 * tree-cfg.c (verify_gimple_call): Likewise.
22919 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
22920 * gimple-fold.c: Include "tree-cfg.h".
22921 (gimple_fold_call): Use should_remove_lhs_p.
22922
22923 2016-05-24 Richard Biener <rguenther@suse.de>
22924
22925 PR tree-optimization/71253
22926 * cfganal.h (control_dependences): Make robust against edge
22927 and BB removal.
22928 (control_dependences::control_dependences): Remove edge_list argument.
22929 (control_dependences::get_edge): Remove.
22930 (control_dependences::get_edge_src): Add.
22931 (control_dependences::get_edge_dest): Likewise.
22932 (control_dependences::m_el): Make a vector of edge src/dest index.
22933 * cfganal.c (control_dependences::find_control_dependence): Adjust.
22934 (control_dependences::control_dependences): Likewise.
22935 (control_dependences::~control_dependence): Likewise.
22936 (control_dependences::get_edge): Remove.
22937 (control_dependences::get_edge_src): Add.
22938 (control_dependences::get_edge_dest): Likewise.
22939 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
22940 get_edge_src.
22941 (perform_tree_ssa_dce): Adjust.
22942 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
22943 get_edge_src.
22944 (pass_loop_distribution::execute): Adjust. Do loop destroying
22945 conditional on changed.
22946
22947 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22948
22949 PR target/69857
22950 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
22951 return. Reindent transformation comment and mention the ARM state
22952 behavior.
22953
22954 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
22955
22956 PR middle-end/71252
22957 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
22958 after build_and_add_sum creates new use stmt.
22959
22960 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
22961
22962 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
22963 load_lanes/grouped_load classification comes first. Don't check
22964 whether the vectorization factor is a multiple of the group size
22965 for load_lanes.
22966
22967 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
22968
22969 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
22970 GROUP_GAP for single-element interleaving.
22971 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
22972 variable.
22973
22974 2016-05-24 Richard Biener <rguenther@suse.de>
22975
22976 PR middle-end/70434
22977 PR c/69504
22978 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
22979 bases which are accessed with non-invariant indices.
22980 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
22981 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
22982
22983 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
22984
22985 PR middle-end/71170
22986 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
22987 (add_to_ops_vec): Add stmt_to_insert.
22988 (add_repeat_to_ops_vec): Init stmt_to_insert.
22989 (insert_stmt_before_use): New.
22990 (transform_add_to_multiply): Remove mult_stmt insertion and add it
22991 to ops vector.
22992 (get_ops): Init stmt_to_insert.
22993 (maybe_optimize_range_tests): Likewise.
22994 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
22995 (rewrite_expr_tree_parallel): Likewise.
22996 (reassociate_bb): Likewise.
22997
22998 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
22999
23000 PR target/71201
23001 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
23002 ISA 3.0 xxperm fusion alternative.
23003 (altivec_vperm_v8hiv16qi): Likewise.
23004 (altivec_vperm_<mode>_uns_internal): Likewise.
23005 (vperm_v8hiv4si): Likewise.
23006 (vperm_v16qiv8hi): Likewise.
23007
23008 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
23009 Kelvin Nilsen <kelvin@gcc.gnu.org>
23010
23011 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
23012 vpermr/xxpermr on ISA 3.0.
23013 (altivec_expand_vec_perm_le): Likewise.
23014 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
23015 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
23016 ISA 3.0.
23017
23018 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
23019
23020 * config/i386/i386.h (IS_STACK_MODE): Enable for
23021 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
23022 SSE_FLOAT_MODE_P macros.
23023 * config/i386/i386.c (ix86_preferred_reload_class): Use
23024 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
23025 Cleanup regclass processing for CONST_DOUBLE_P.
23026 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
23027 (ix86_rtx_costs): Remove redundant TARGET_80387 check
23028 with IS_STACK_MODE macro.
23029 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
23030 with TARGET_SSE2.
23031 (*movdf_internal): Use IS_STACK_MODE macro.
23032 (*movsf_internal): Ditto.
23033
23034 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
23035
23036 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
23037 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
23038
23039 2016-05-23 Jeff Law <law@redhat.com>
23040
23041 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
23042 extracted from ...
23043 (fsm_find_control_statement_thread_paths): Call it.
23044
23045 2016-05-23 Martin Jambor <mjambor@suse.cz>
23046
23047 PR ipa/71234
23048 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
23049 from_global_constant if t is not NULL.
23050
23051 2016-05-23 Marek Polacek <polacek@redhat.com>
23052
23053 PR c/49859
23054 * common.opt (Wswitch-unreachable): New option.
23055 * doc/invoke.texi: Document -Wswitch-unreachable.
23056 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
23057 warning.
23058
23059 2016-05-23 Bin Cheng <bin.cheng@arm.com>
23060
23061 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
23062 TMR_INDEX is non-NULL.
23063
23064 2016-05-23 Richard Biener <rguenther@suse.de>
23065
23066 PR tree-optimization/71230
23067 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
23068 (try_special_add_to_ops): ... here. Always test for single-use.
23069
23070 2016-05-23 Martin Jambor <mjambor@suse.cz>
23071
23072 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
23073 default block if a PHI node in the original one would be resized.
23074
23075 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
23076
23077 PR tree-optimization/58135
23078 * tree-vect-slp.c: When group size is not multiple
23079 of vector size, allow splitting of store group at
23080 vector boundary.
23081
23082 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
23083
23084 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
23085
23086 2016-05-22 Jakub Jelinek <jakub@redhat.com>
23087
23088 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
23089 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
23090 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
23091 of 64x2.
23092
23093 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
23094 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
23095 v constraint instead of x and vinserti32x4 insn.
23096
23097 * config/i386/sse.md (i128vldq): New mode iterator.
23098 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
23099 avx512dq and avx512vl alternatives.
23100
23101 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
23102 constraint, use maybe_evex prefix instead of vex.
23103 (vec_dupv4sf): Use v constraint instead of x for output
23104 operand except for noavx alternative, use Yv constraint
23105 instead of x for input. Use maybe_evex prefix instead of vex.
23106 (*vec_dupv4si): Likewise.
23107 (*vec_dupv2di): Likewise.
23108
23109 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
23110
23111 PR middle-end/40921
23112 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
23113 (linearize_expr_tree): Call try_special_add_to_ops.
23114 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
23115
23116 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23117
23118 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
23119 to computed stack_usage.
23120
23121 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
23122
23123 PR target/71103
23124 * config/avr/avr.md (define_expand "mov<mode>"): If the source
23125 operand is subreg (symbol_ref) then move the symbol ref to register.
23126
23127 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
23128
23129 * tree.c (array_at_struct_end_p): Look through MEM_REF.
23130
23131 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
23132
23133 PR middle-end/71179
23134 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
23135 VECTOR type.
23136
23137 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
23138
23139 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
23140 ranges by calling get_single_symbol and tidy up. Look more closely
23141 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
23142
23143 2016-05-20 Jeff Law <law@redhat.com>
23144
23145 * bitmap.c (bitmap_find_bit): Remove useless test.
23146
23147 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
23148
23149 * function.c (thread_prologue_and_epilogue_insns): Commit the
23150 insertion of the epilogue.
23151
23152 2016-05-20 Martin Jambor <mjambor@suse.cz>
23153
23154 PR tree-optimization/70884
23155 * tree-sra.c (initialize_constant_pool_replacements): Do not check
23156 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
23157 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
23158 of constant pool data as a reason for scalarization.
23159
23160 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
23161
23162 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
23163 for naked functions.
23164 (thumb1_expand_prologue): Likewise.
23165
23166 2016-05-20 Nathan Sidwell <nathan@acm.org>
23167
23168 * config/nvptx/nptx.c (nvptx_option_override): Only set
23169 flag_toplevel_reorder, if not explicitly specified. Set
23170 flag_no_common, unless explicitly specified.
23171
23172 2016-05-20 David Malcolm <dmalcolm@redhat.com>
23173
23174 * calls.c (can_implement_as_sibling_call_p): Mark param
23175 reg_parm_stack_space with ATTRIBUTE_UNUSED.
23176
23177 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
23178
23179 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
23180 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
23181 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
23182 constants.
23183 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
23184 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
23185 and CASE_CONST_ANY.
23186
23187 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
23188
23189 * config/nvptx/nvptx.md (sincossf3): New pattern.
23190
23191 2016-05-20 David Malcolm <dmalcolm@redhat.com>
23192
23193 * calls.c (maybe_complain_about_tail_call): New function.
23194 (initialize_argument_information): Call
23195 maybe_complain_about_tail_call when clearing *may_tailcall.
23196 (can_implement_as_sibling_call_p): Call
23197 maybe_complain_about_tail_call when returning false.
23198 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
23199 ensure try_tail_call is set. Call maybe_complain_about_tail_call
23200 if tail-call optimization fails.
23201 * cfgexpand.c (expand_call_stmt): Initialize
23202 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
23203 * gimple-pretty-print.c (dump_gimple_call): Dump
23204 gimple_call_must_tail_p.
23205 * gimple.c (gimple_build_call_from_tree): Call
23206 gimple_call_set_must_tail with the value of
23207 CALL_EXPR_MUST_TAIL_CALL.
23208 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
23209 (gimple_call_set_must_tail): New function.
23210 (gimple_call_must_tail_p): New function.
23211 * print-tree.c (print_node): Update printing of TREE_STATIC
23212 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
23213 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
23214 trailing comment listing applicable flags.
23215 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
23216
23217 2016-05-20 David Malcolm <dmalcolm@redhat.com>
23218
23219 * calls.c (expand_call): Move "Rest of purposes for tail call
23220 optimizations to fail" to...
23221 (can_implement_as_sibling_call_p): ...this new function, and
23222 split into multiple "if" statements.
23223
23224 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
23225
23226 * cfgloop.h (expected_loop_iterations_unbounded,
23227 expected_loop_iterations): Unconstify.
23228 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
23229 profile with known upper bound; return 3 when profile is absent.
23230 (expected_loop_iterations): Update.
23231
23232 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
23233
23234 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
23235 and get_max_loop_iterations_int.
23236
23237 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
23238
23239 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
23240 realistic upper bounds here.
23241
23242 2016-05-20 Jakub Jelinek <jakub@redhat.com>
23243
23244 PR c++/71210
23245 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
23246 calls if the LHS is variable length or has addressable type.
23247 If targets[0]->decl is a noreturn call with void return type and
23248 zero arguments, adjust fntype and remove lhs in that case.
23249
23250 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
23251
23252 PR tree-optimization/71079
23253 PR tree-optimization/71206
23254 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
23255
23256 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23257
23258 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
23259 (get_vec_alignment_for_array_decl): Likewise.
23260 (get_vec_alignment_for_record_decl): Likewise.
23261 (increase_alignment::execute): Move code to find alignment to
23262 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
23263 (type_align_map): New hash_map.
23264
23265 2016-05-20 Richard Guenther <rguenther@suse.de>
23266
23267 PR tree-optimization/29756
23268 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
23269 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
23270 * fold-const.c (operand_equal_p): Likewise.
23271 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
23272 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
23273 * tree-inline.c (estimate_operator_cost): Likewise.
23274 * tree-pretty-print.c (dump_generic_node): Likewise.
23275 * tree-ssa-operands.c (get_expr_operands): Likewise.
23276 * cfgexpand.c (expand_debug_expr): Likewise.
23277 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
23278 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
23279 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
23280 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
23281 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
23282 (execute_update_addresses_taken): Do it.
23283
23284 2016-05-20 Richard Biener <rguenther@suse.de>
23285
23286 PR tree-optimization/71185
23287 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
23288 register operations.
23289
23290 2016-05-20 Richard Biener <rguenther@suse.de>
23291
23292 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
23293 gimple_seq_add_seq_without_update.
23294 (release_bb_predicate): Assert we have no operands to free.
23295 (if_convertible_loop_p_1): Calculate post dominators later.
23296 Do not free BB predicates here.
23297 (combine_blocks): Do not recompute BB predicates.
23298 (version_loop_for_if_conversion): Save BB predicates around
23299 loop versioning.
23300
23301 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23302
23303 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
23304 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
23305 code. Ignore sibcalls on EDGE_IGNORE edges.
23306 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
23307 on edges for sibcalls that run without prologue. The rest of the
23308 function is combined from...
23309 (fix_fake_fallthrough_edge): ... this, and ...
23310 (try_shrink_wrapping): ... a part of this. Remove the bb_with
23311 function argument, make it a local variable.
23312
23313 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
23314
23315 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
23316 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
23317 for 32-bit mode and SEH for 64-bit.
23318 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
23319 TARGET_64BIT_DEFAULT.
23320
23321 2016-05-19 Ryan Burn <contact@rnburn.com>
23322
23323 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
23324 * gengtype.c (open_base_files): Add cilk.h to ifiles.
23325
23326 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
23327
23328 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
23329 force pending loads from memory.
23330
23331 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
23332
23333 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
23334 (UNSPEC_DARN_32): New unspec constant.
23335 (UNSPEC_DARN_RAW): New unspec constant.
23336 (darn_32): New instruction.
23337 (darn_raw): New instruction.
23338 (darn): New instruction.
23339 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
23340 support and documentation for this macro.
23341 (BU_P9_MISC_1): New macro definition.
23342 (BU_P9_64BIT_MISC_0): New macro definition.
23343 (BU_P9_MISC_0): New macro definition.
23344 (darn_32): New builtin definition.
23345 (darn_raw): New builtin definition.
23346 (darn): New builtin definition.
23347 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
23348 RS6000_BUILTIN_0 directives to surround each occurrence of
23349 #include "rs6000-builtin.def".
23350 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
23351 RS6000_BTM_64BIT flags to the returned mask, depending on
23352 configuration.
23353 (def_builtin): Correct an error in the assignments made to the
23354 debugging variable attr_string.
23355 (rs6000_expand_builtin): Add support for no-operand built-in
23356 functions.
23357 (builtin_function_type): Remove fatal_error assertion that is no
23358 longer valid.
23359 (rs6000_common_init_builtins): Add support for no-operand built-in
23360 functions.
23361 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
23362 definition.
23363 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
23364 definition.
23365 (RS6000_BTM_64BIT): New macro definition.
23366 * doc/extend.texi: Document __builtin_darn (void),
23367 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
23368 functions.
23369
23370 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
23371
23372 * tree-vect-loop.c (vect_analyze_loop_2): Use also
23373 max_loop_iterations_int.
23374
23375 2016-05-19 Marek Polacek <polacek@redhat.com>
23376
23377 PR tree-optimization/71031
23378 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
23379 condition and adjust the code a bit.
23380
23381 2016-05-19 Martin Liska <mliska@suse.cz>
23382
23383 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
23384 auto_vec instead of vec.
23385
23386 2016-05-19 Martin Liska <mliska@suse.cz>
23387
23388 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
23389
23390 2016-05-19 Martin Liska <mliska@suse.cz>
23391
23392 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
23393
23394 2016-05-19 Martin Liska <mliska@suse.cz>
23395
23396 * ipa-pure-const.c (set_function_state): Remove an existing
23397 funct_state.
23398 (remove_node_data): Do not free it as it's released
23399 in set_function_state.
23400
23401 2016-05-19 Martin Liska <mliska@suse.cz>
23402
23403 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
23404 bitmap.
23405
23406 2016-05-19 Martin Liska <mliska@suse.cz>
23407
23408 * omp-simd-clone.c (simd_clone_adjust): Release vector.
23409
23410 2016-05-19 Martin Liska <mliska@suse.cz>
23411
23412 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
23413 an auto_vec instead of re-creating it.
23414
23415 2016-05-19 Martin Liska <mliska@suse.cz>
23416
23417 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
23418 auto_vec instead of vec.
23419
23420 2016-05-19 Martin Liska <mliska@suse.cz>
23421
23422 * lto-section-in.c (lto_get_section_data): Call
23423 lto_check_version with additional argument.
23424 * lto-streamer.c (lto_check_version): Add new argument.
23425 * lto-streamer.h (lto_check_version): Likewise.
23426
23427 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23428
23429 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
23430 Don't add cost of inner memory when handling sign-extended loads.
23431
23432 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
23433
23434 PR rtl-optimization/71148
23435 * cse.c (cse_main): Free dominance info.
23436 (rest_of_handle_cse): Don't free dominance info.
23437 (rest_of_handle_cse2): Likewise.
23438 (rest_of_handle_cse_after_global_opts): Likewise.
23439
23440 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23441
23442 PR target/71056
23443 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
23444 NULL_TREE early if NEON is not available. Remove now redundant check
23445 in ARM_CHECK_BUILTIN_MODE.
23446
23447 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
23448
23449 PR sanitizer/64354
23450 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
23451 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
23452 * doc/cpp.texi: Document new macros.
23453
23454 2016-05-19 Bin Cheng <bin.cheng@arm.com>
23455
23456 PR tree-optimization/69848
23457 * tree-vect-loop.c (vectorizable_reduction): Don't factor
23458 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
23459
23460 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23461
23462 * function.c (thread_prologue_and_epilogue_insn): Move the
23463 "goto epilogue_done" one block later.
23464
23465 2016-05-19 Richard Biener <rguenther@suse.de>
23466
23467 PR tree-optimization/70729
23468 * passes.def: Move LIM pass before PRE. Remove no longer
23469 required copyprop and move first DCE out of the loop pipeline.
23470
23471 2016-05-18 David Malcolm <dmalcolm@redhat.com>
23472
23473 PR driver/69265
23474 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
23475 (OBJS-libcommon-target): ...here.
23476 * opts-common.c: Include spellcheck.h.
23477 (cmdline_handle_error): Build a vec of valid options and use it
23478 to suggest provide hints for misspelled arguments.
23479
23480 2016-05-18 Jakub Jelinek <jakub@redhat.com>
23481
23482 PR c++/71100
23483 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
23484 lhs if it has TREE_ADDRESSABLE type.
23485
23486 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
23487
23488 PR target/71145
23489 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
23490 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
23491
23492 2016-05-18 Martin Jambor <mjambor@suse.cz>
23493
23494 PR ipa/69708
23495 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
23496 input for NOP_EXPR pass-through functions.
23497 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
23498 aggregate global constant VAR_DECLs in constant jump functions.
23499
23500 2016-05-18 Martin Jambor <mjambor@suse.cz>
23501
23502 PR ipa/69708
23503 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
23504 from TREE_READONLY parameters.
23505
23506 2016-05-18 Martin Jambor <mjambor@suse.cz>
23507
23508 PR ipa/69708
23509 * cgraph.h (cgraph_indirect_call_info): New field
23510 guaranteed_unmodified.
23511 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
23512 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
23513 appropriate.
23514 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
23515 pass the parameter value to ipa_find_agg_cst_for_param.
23516 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
23517 guaranteed_unmodified, store AA results there instead of bailing out
23518 if present.
23519 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
23520 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
23521 (find_constructor_constant_at_offset): New function.
23522 (ipa_find_agg_cst_from_init): Likewise.
23523 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
23524 static initializers of contants, report back through a new paameter
23525 from_global_constant if that was the case.
23526 (try_make_edge_direct_simple_call): Also pass parameter value to
23527 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
23528 appropriate.
23529 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
23530 (ipa_read_indirect_edge_info): Likewise.
23531 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
23532 (ipa_load_from_parm_agg): Likewise.
23533
23534 2016-05-18 Jiong Wang <jiong.wang@arm.com>
23535
23536 PR rtl-optimization/71150
23537 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
23538 check.
23539
23540 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
23541
23542 PR target/70915
23543 * config/rs6000/constraints.md (wE constraint): New constraint
23544 for a vector constant that can be loaded with XXSPLTIB.
23545 (wM constraint): New constraint for a vector constant of a 1's.
23546 (wS constraint): New constraint for a vector constant that can be
23547 loaded with XXSPLTIB and a vector sign extend instruction.
23548 * config/rs6000/predicates.md (xxspltib_constant_split): New
23549 predicates for wE/wS constraints.
23550 (xxspltib_constant_nosplit): Likewise.
23551 (easy_vector_constant): Add support for constants that can be
23552 loaded via XXSPLTIB.
23553 (all_ones_constant): New predicate for vector constant with all
23554 1's set.
23555 (splat_input_operand): Add support for ISA 3.0 word splat operations.
23556 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
23557 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
23558 instruction and possibly with a sign extension.
23559 (output_vec_const_move): Add support for XXSPLTIB. If we are
23560 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
23561 instead of XXLXOR/XXLORC.
23562 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
23563 operations.
23564 (rs6000_legitimize_reload_address): Likewise.
23565 (rs6000_output_move_128bit): Use output_vec_const_move to emit
23566 constants.
23567 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
23568 combine VSX_M and VSX_M2 into one iterator.
23569 (VSX_M2): Likewise.
23570 (VSINT_84): New iterators for loading constants with XXSPLTIB.
23571 (VSINT_842): Likewise.
23572 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
23573 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
23574 XXSPLTIB instruction.
23575 (xxspltib_<mode>_nosplit): Likewise.
23576 (xxspltib_<mode>_split): New insn to load up constants with
23577 XXSPLTIB and a sign extend instruction.
23578 (vsx_mov<mode>): Replace single move that handled all vector types
23579 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
23580 moves (when -mvsx-timode is in effect) into the main vector
23581 moves. Eliminate separate moves for <VSr> <VSa>, where the
23582 preferred register class (<VSr>) is listed first, and the
23583 secondary register class (<VSa>) is listed second with a '?' to
23584 discourage use. Prefer loading 0/-1 in any VSX register for ISA
23585 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
23586 that if the register was involved in a slow operation, the
23587 clear/set operation does not wait for the slow operation to
23588 finish. Adjust the length attributes for 32-bit mode. Use
23589 rs6000_output_move_128bit and drop the use of the string
23590 instructions for 32-bit movti when -mvsx-timode is in effect. Use
23591 spacing so that the alternatives and attributes don't generate
23592 long lines, and put things in columns, so that it is easier to
23593 match up the operands and attributes with the insn alternatives.
23594 (vsx_mov<mode>_64bit): Likewise.
23595 (vsx_mov<mode>_32bit): Likewise.
23596 (vsx_movti_64bit): Fold movti into normal vector moves.
23597 (vsx_movti_32bit): Likewise.
23598 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
23599 splat instructions.
23600 (vsx_splat_v4si_internal): Likewise.
23601 (vsx_splat_v4sf_internal): Likewise.
23602 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
23603 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
23604 extend vector elements.
23605 (vsx_sign_extend_hi_<mode>): Likewise.
23606 (vsx_sign_extend_si_v2di): Likewise.
23607 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
23608 declaration.
23609 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
23610 constraints. Add trailing period to wL documentation.
23611
23612 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
23613
23614 PR middle-end/71020
23615 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
23616 * tree-dfa.c (replace_abnormal_ssa_names): New function.
23617 * tree-call-cdce.c: Include tree-dfa.h.
23618 (can_guard_call_p): New function, extracted from...
23619 (can_use_internal_fn): ...here.
23620 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
23621 and return void.
23622 (shrink_wrap_one_built_in_call): Likewise.
23623 (use_internal_fn): Likewise.
23624 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
23625 and return void. Call replace_abnormal_ssa_names.
23626 (pass_call_cdce::execute): Check can_guard_call_p during the
23627 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
23628 will always change something.
23629
23630 2016-05-18 Martin Jambor <mjambor@suse.cz>
23631
23632 PR ipa/70646
23633 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
23634 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
23635
23636 2016-05-18 Martin Jambor <mjambor@suse.cz>
23637
23638 PR ipa/70646
23639 * ipa-inline.h (condition): New field size.
23640 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
23641 for comaprison and store it into the new condition.
23642 (evaluate_conditions_for_known_args): Use condition size to check
23643 access sizes for all but CHANGED conditions.
23644 (unmodified_parm_1): New parameter size_p, store access size into it.
23645 (unmodified_parm): Likewise.
23646 (unmodified_parm_or_parm_agg_item): Likewise.
23647 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
23648 (set_cond_stmt_execution_predicate): Extract access sizes and store
23649 them to conditions.
23650 (set_switch_stmt_execution_predicate): Likewise.
23651 (will_be_nonconstant_expr_predicate): Likewise.
23652 (will_be_nonconstant_predicate): Likewise.
23653 (inline_read_section): Stream condition size.
23654 (inline_write_summary): Likewise.
23655
23656 2016-05-18 Richard Biener <rguenther@suse.de>
23657
23658 * tree-ssa-loop-im.c (determine_max_movement): Properly add
23659 condition cost to PHI cost instead of total_cost.
23660
23661 2016-05-18 Martin Liska <mliska@suse.cz>
23662
23663 PR fortran/70856
23664 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
23665 merged variables.
23666
23667 2016-05-18 Richard Biener <rguenther@suse.de>
23668
23669 * lto-streamer.h (LTO_major_version): Bump to 6.
23670
23671 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
23672
23673 * function.c (make_split_prologue_seq, make_prologue_seq,
23674 make_epilogue_seq): New functions, factored out from...
23675 (thread_prologue_and_epilogue_insns): Here.
23676
23677 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
23678
23679 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
23680 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
23681 of before. Add a comment.
23682
23683 2016-05-18 Bin Cheng <bin.cheng@arm.com>
23684
23685 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
23686 expression pointer, not pointer to the pointer.
23687
23688 2016-05-18 Jakub Jelinek <jakub@redhat.com>
23689
23690 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
23691 (avx2_pbroadcast<mode>): Add another alternative with v instead
23692 of x constraints in it, using <pbroadcast_evex_isa> isa.
23693 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
23694
23695 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
23696 constraint x instead of v in second alternative, add avx512bw
23697 alternative.
23698
23699 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
23700 constraint x instead of v in second alternative, add avx512bw
23701 alternative.
23702
23703 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
23704 constraint x instead of v in second alternative, add avx512bw
23705 alternative.
23706
23707 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
23708 avx512bw alternative.
23709
23710 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
23711
23712 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
23713 array to 128 chars.
23714 (define_insn "*andnottf3"): Ditto.
23715 (define_insn "*<code><mode>3"/any_logic): Ditto.
23716 (define_insn "*<code>tf3"/any_logic): Ditto.
23717 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
23718 operand to block AVX-512VL insn variant emit when it is not enabled.
23719
23720 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
23721
23722 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
23723 constraint fot SF mode.
23724
23725 2016-05-18 Petr Murzin <petr.murzin@intel.com>
23726 Kirill Yukhin <kirill.yukhin@intel.com>
23727
23728 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
23729 modifiers.
23730 (define_insn "rsqrt14<mode>"): Ditto.
23731 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
23732 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
23733 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
23734 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
23735 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
23736 Ditto.
23737 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
23738 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
23739 * config/i386/i386.c (ix86_print_operand): Expand check for size
23740 override codes for Intel syntax.
23741
23742 2016-05-18 Richard Biener <rguenther@suse.de>
23743
23744 PR tree-optimization/71168
23745 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
23746 initialization earlier.
23747
23748 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
23749
23750 * config/aarch64/aarch64-simd.md
23751 (aarch64_reduc_plus_internal<mode>): Rename to...
23752 (reduc_plus_scal): ...This, and remove previous implementation.
23753
23754 2016-05-18 Richard Biener <rguenther@suse.de>
23755
23756 * passes.def: Put late dse and cd_dce in canonical order.
23757
23758 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
23759
23760 * ipa-inline-transform.c (preserve_function_body_p): Look for
23761 first non-thunk clone.
23762 (save_function_body): Save into first non-thunk.
23763 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
23764 up call stmt id.
23765 (lto_output_node): Inline thunks don't need body in every
23766 partition.
23767 * lto-streamer-in.c: Do not fixup thunk clones.
23768 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
23769 thunks.
23770 * tree-inline.c (copy_bb): Be prepared for target node to be new after
23771 folding suceeds.
23772
23773 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
23774
23775 PR middle-end/63586
23776 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
23777 (reassociate_bb): Call transform_add_to_multiply.
23778
23779 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
23780
23781 * config/aarch64/aarch64.c (all_extensions): Removed unused
23782 static variable.
23783
23784 2016-05-17 Nathan Sidwell <nathan@acm.org>
23785
23786 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
23787 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
23788
23789 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
23790
23791 PR tree-optimization/54579
23792 PR middle-end/55299
23793 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
23794
23795 2016-05-17 Marek Polacek <polacek@redhat.com>
23796
23797 PR ipa/71146
23798 * tree-inline.c (expand_call_inline): Call
23799 maybe_remove_unused_call_args.
23800
23801 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
23802
23803 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
23804 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
23805 * doc/md.texi (fmin@var{m}3): Likewise.
23806
23807 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
23808
23809 * match.pd (X & C): New transformation.
23810
23811 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
23812
23813 * match.pd (~X & Y): New transformation.
23814
23815 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
23816
23817 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
23818 information for new SSA_NAME.
23819 (simplify_conversion_using_ranges): Get range through get_range_info
23820 instead of get_value_range.
23821
23822 2016-05-17 Jiong Wang <jiong.wang@arm.com>
23823
23824 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
23825 Remove inline assembly.
23826 (vmvn_s16): Likewise.
23827 (vmvn_s32): Likewise.
23828 (vmvn_u8): Likewise.
23829 (vmvn_u16): Likewise.
23830 (vmvn_u32): Likewise.
23831 (vmvnq_s8): Likewise.
23832 (vmvnq_s16): Likewise.
23833 (vmvnq_s32): Likewise.
23834 (vmvnq_u8): Likewise.
23835 (vmvnq_u16): Likewise.
23836 (vmvnq_u32): Likewise.
23837 (vmvn_p8): Likewise.
23838 (vmvnq_p16): Likewise.
23839
23840 2016-05-17 Jiong Wang <jiong.wang@arm.com>
23841
23842 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
23843 Use builtin.
23844 (vmul_n_s16): Likewise.
23845 (vmul_n_s32): Likewise.
23846 (vmul_n_u16): Likewise.
23847 (vmul_n_u32): Likewise.
23848 (vmulq_n_f32): Likewise.
23849 (vmulq_n_f64): Likewise.
23850 (vmulq_n_s16): Likewise.
23851 (vmulq_n_s32): Likewise.
23852 (vmulq_n_u16): Likewise.
23853 (vmulq_n_u32): Likewise.
23854
23855 2016-05-17 Jiong Wang <jiong.wang@arm.com>
23856
23857 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
23858 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
23859
23860 2016-05-17 Jiong Wang <jiong.wang@arm.com>
23861
23862 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
23863 to *aarch64_fma4_elt_from_dup<mode>.
23864 (*aarch64_fnma4_elt_to_128df): Rename to
23865 *aarch64_fnma4_elt_from_dup<mode>.
23866 * config/aarch64/arm_neon.h (vfma_n_f64): New.
23867 (vfms_n_f32): Likewise.
23868 (vfms_n_f64): Likewise.
23869 (vfmsq_n_f32): Likewise.
23870 (vfmsq_n_f64): Likewise.
23871
23872 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
23873
23874 * wide-int.h: Change fixed_wide_int_storage from class to struct.
23875
23876 2016-05-17 Richard Biener <rguenther@suse.de>
23877
23878 PR tree-optimization/71132
23879 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
23880 Only add control dependences for blocks in the loop.
23881 (build_rdg): Adjust.
23882 (generate_code_for_partition): Return whether loop should
23883 be destroyed and delay that.
23884 (distribute_loop): Likewise.
23885 (pass_loop_distribution::execute): Record loops to be destroyed
23886 and perform delayed destroying of loops.
23887
23888 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23889
23890 PR target/70809
23891 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
23892
23893 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
23894
23895 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
23896
23897 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
23898
23899 PR target/71114
23900 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
23901 insertion point for instructions generated by validize_mem.
23902
23903 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
23904
23905 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
23906 in brackets.
23907
23908 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
23909
23910 * config/aarch64/aarch64.c
23911 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
23912 rather than a macro.
23913
23914 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
23915
23916 * doc/invoke.texi (AArch64 Options): Various updates.
23917
23918 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23919
23920 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
23921 into instrumentation thunks.
23922 * cif-code.def (CIF_CHKP): New.
23923
23924 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
23925
23926 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
23927
23928 2016-05-16 Martin Jambor <mjambor@suse.cz>
23929
23930 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
23931 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
23932
23933 2016-05-16 Marek Polacek <polacek@redhat.com>
23934
23935 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
23936 commentary.
23937
23938 2016-05-16 Martin Jambor <mjambor@suse.cz>
23939
23940 PR hsa/70857
23941 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
23942 the outlined kernel function.
23943
23944 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
23945
23946 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
23947 (ISA_HAS_DLSA): Ditto.
23948
23949 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
23950
23951 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
23952
23953 2016-05-16 Nathan Sidwell <nathan@acm.org>
23954
23955 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
23956 (nvptx_name_replacement): Restore. Add comment.
23957 (write_fn_proto, write_fn_proto_from_insn,
23958 nvptx_output_call_insn): Restore
23959 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
23960
23961 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
23962
23963 * config/aarch64/aarch64.md
23964 (add<mode>3_compareC_cconly_imm): Remove use of %w.
23965 (add<mode>3_compareC_imm): Likewise.
23966 (<optab>si3_uxtw): Split into register and immediate variants.
23967 (andsi3_compare0_uxtw): Likewise.
23968 (and<mode>3_compare0): Likewise.
23969 (and<mode>3nr_compare0): Likewise.
23970 (stack_protect_test_<mode>): Don't use %x for memory operands.
23971
23972 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
23973
23974 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
23975
23976 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
23977
23978 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
23979 Split integer shifts into shift_reg and bfm.
23980 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
23981 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
23982 (ror<mode>3_insn): Likewise.
23983 (<optab>si3_insn_uxtw): Likewise.
23984 (<optab><mode>3_insn): Change to rotate_imm.
23985 (extr<mode>5_insn_alt): Likewise.
23986 (extrsi5_insn_uxtw): Likewise.
23987 (extrsi5_insn_uxtw_alt): Likewise.
23988
23989 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
23990
23991 * doc/tm.texi: Regenerate.
23992 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
23993 (TARGET_INVALID_RETURN_TYPE): Remove.
23994 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
23995 TARGET_INVALID_RETURN_TYPE.
23996 * target.def (invalid_parameter_type): Remove.
23997 (invalid_return_type): Remove.
23998
23999 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
24000
24001 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
24002 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
24003 calls from thunk.
24004 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
24005 gimple body.
24006 (preserve_function_body_p): No need to preserve function body
24007 * cif-codes.def (CIF_THUNK): Remove.
24008 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
24009
24010 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
24011
24012 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
24013
24014 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
24015
24016 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
24017 for thunks.
24018
24019 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
24020
24021 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
24022 (inline_small_functions): Do not look for function symbol when
24023 resetting caches.
24024
24025 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
24026
24027 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
24028 of inline thunks
24029
24030 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
24031 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24032 Jiong Wang <jiong.wang@arm.com>
24033
24034 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
24035 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
24036 Define __ARM_FP16_ARGS when appropriate.
24037 * config/arm/arm.c (arm_invalid_parameter_type): Remove
24038 declaration.
24039 (arm_invalid_return_type): Likewise.
24040 (TARGET_INVALID_PARAMETER_TYPE): Remove.
24041 (TARGET_INVALID_RETURN_TYPE): Remove.
24042 (aapcs_vfp_sub_candidate): Allow HFmode.
24043 (aapcs_vfp_allocate): Add comment. Support HFmode.
24044 (aapcs_vfp_allocate_return_reg): Likewise.
24045 (struct aapcs_cp_arg_layout): Slightly reword comments for
24046 is_return_candidate and allocate_return_reg.
24047 (output_mov_vfp): Update assert.
24048 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
24049 condition.
24050 (arm_invalid_parameter_type): Remove.
24051 (amr_invalid_return_type): Remove.
24052 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
24053 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
24054 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
24055
24056 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
24057
24058 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
24059 * config/aarch64/arch64-protos.h
24060 (aarch64_legitimize_reload_address): Remove.
24061 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
24062 Remove.
24063
24064 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
24065
24066 * configure.ac: Add ACX_NONCANONICAL_HOST.
24067 * configure: Regenerate.
24068 * Makefile.in: Set host_noncanonical.
24069
24070 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
24071
24072 PR target/71097
24073 * config/i386/i386.md (*movtf_internal): Before register allocation,
24074 do not allow FP constants for CM_MEDIUM memory model, allow only
24075 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
24076 (*movxf_internal): Ditto.
24077 (*movdf_internal): Ditto.
24078 (*movsf_internal): Ditto.
24079
24080 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
24081
24082 PR rtl-optimization/67483
24083 * combine.c (make_compound_operation): Don't call extract_left_shift
24084 with negative shift amounts.
24085
24086 2016-05-13 Jakub Jelinek <jakub@redhat.com>
24087
24088 PR bootstrap/71071
24089 * fold-const.c (fold_checksum_tree): Allow modification
24090 of TYPE_ALIAS_SET during folding.
24091
24092 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
24093 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
24094 (ix86_split_to_parts): Likewise. Fix up formatting.
24095
24096 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
24097
24098 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
24099 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
24100 printf format.
24101
24102 2016-05-13 Nathan Sidwell <nathan@acm.org>
24103
24104 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
24105 (nvptx_name_replacement): Delete.
24106 (write_fn_proto, write_fn_proto_from_insn,
24107 nvptx_output_call_insn): Remove nvptx_name_replacement call.
24108 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
24109 * langhooks.c (add_builtin_funcction_common): Call
24110 targetm.mangle_decl_assembler_name.
24111
24112 * config/nvptx/nvptx.c (write_fn_proto): Handle
24113 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
24114
24115 2016-05-13 Martin Liska <mliska@suse.cz>
24116
24117 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
24118 and PRIu64 in printf format.
24119
24120 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24121
24122 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
24123 comment.
24124
24125 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24126
24127 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
24128 Change --param max-completely-peeled-times to
24129 --param max-completely-peel-times in dump file printing.
24130
24131 2016-05-13 Richard Biener <rguenther@suse.de>
24132
24133 PR tree-optimization/42587
24134 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
24135 (find_bswap_or_nop_1): Likewise.
24136 (bswap_replace): Likewise.
24137
24138 2016-05-13 Martin Liska <mliska@suse.cz>
24139
24140 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
24141 Initialize a variable with default value.
24142
24143 2016-05-13 Martin Liska <mliska@suse.cz>
24144
24145 * doc/invoke.texi: Enhance explanation of error recovery
24146 of sanitizers.
24147
24148 2016-05-13 Martin Liska <mliska@suse.cz>
24149
24150 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
24151 (struct cost_pair): Change inv_expr_id (int) to inv_expr
24152 (iv_inv_expr_ent *).
24153 (struct iv_inv_expr_ent): Comment struct fields.
24154 (sort_iv_inv_expr_ent): New function.
24155 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
24156 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
24157 a hash_map between iv_inv_expr_ent and number of usages.
24158 (niter_for_exit): Fix coding style.
24159 (tree_ssa_iv_optimize_init): Use renamed variable.
24160 (determine_base_object): Fix coding style.
24161 (alloc_iv): Likewise.
24162 (find_interesting_uses_outside): Likewise.
24163 (add_candidate_1): Likewise.
24164 (add_standard_iv_candidates): Likewise.
24165 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
24166 (prepare_decl_rtl): Fix coding style.
24167 (get_address_cost): Likewise.
24168 (get_shiftadd_cost): Likewise.
24169 (force_expr_to_var_cost): Likewise.
24170 (compare_aff_trees): Likewise.
24171 (get_expr_id): Restructure the function.
24172 (get_loop_invariant_expr_id): Renamed to
24173 get_loop_invariant_expr.
24174 (get_computation_cost_at): Replace usage of inv_expr_id with
24175 inv_expr.
24176 (get_computation_cost): Likewise.
24177 (determine_group_iv_cost_generic): Likewise.
24178 (determine_group_iv_cost_address): Likewise.
24179 (iv_period): Fix coding style.
24180 (iv_elimination_compare_lt): Likewise.
24181 (may_eliminate_iv): Likewise.
24182 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
24183 inv_expr.
24184 (determine_group_iv_costs): Dump invariant expressions.
24185 (iv_ca_recount_cost): Use the newly added hash_map.
24186 (iv_ca_set_remove_invariants): Fix coding style.
24187 (iv_ca_set_add_invariants): Fix coding style.
24188 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
24189 invariants.
24190 (iv_ca_set_cp): Likewise.
24191 (iv_ca_new): Initialize the newly added hash_map and remove
24192 initialization of fields.
24193 (iv_ca_free): Delete the hash_map.
24194 (iv_ca_dump): Dump invariant expressions.
24195 (iv_ca_extend): Fix coding style.
24196 (try_add_cand_for): Likewise.
24197 (create_new_ivs): Dump information about # of avg iterations and
24198 # of used invariant expressions.
24199 (rewrite_use_compare): Fix coding style.
24200 (free_loop_data): Set default value for max_inv_expr_id.
24201
24202 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
24203
24204 * cse.c (rest_of_handle_cse): Use cleanup_cfg
24205 returned value cse_cfg_altered computation.
24206 (rest_of_handle_cse2): Likewise.
24207 (rest_of_handle_cse_after_global_opts): Likewise.
24208
24209 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24210
24211 PR target/53440
24212 * config/arm/arm.c (arm32_output_mi_thunk): New.
24213 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
24214 to split Thumb1 vs TARGET_32BIT functionality.
24215 (arm_thumb1_mi_thunk): New.
24216
24217 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24218
24219 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
24220 to true.
24221
24222 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24223
24224 PR target/71080
24225 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
24226
24227 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
24228
24229 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
24230 (expand_builtin_trap): Emit a regular call.
24231 (set_builtin_user_assembler_name): Remove obsolete cases.
24232 * dse.c (scan_insn): Adjust.
24233 * except.c: Include calls.h.
24234 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
24235 emit a regular call to setjmp.
24236 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
24237 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
24238 (emit_block_move_via_libcall): Delete.
24239 (block_move_fn): Delete.
24240 (init_block_move_fn): Likewise.
24241 (emit_block_move_libcall_fn): Likewise.
24242 (emit_block_op_via_libcall): New function.
24243 (set_storage_via_libcall): Tidy up and use memset builtin.
24244 (block_clear_fn): Delete.
24245 (init_block_clear_fn): Likewise.
24246 (clear_storage_libcall_fn): Likewise.
24247 (expand_assignment): Call emit_block_move_via_libcall.
24248 Do not include gt-expr.h.
24249 * expr.h (emit_block_op_via_libcall): Declare.
24250 (emit_block_copy_via_libcall): New inline function.
24251 (emit_block_move_via_libcall): Likewise.
24252 (emit_block_comp_via_libcall): Likewise.
24253 (block_clear_fn): Delete.
24254 (init_block_move_fn): Likewise.
24255 (init_block_clear_fn): Likewise.
24256 (emit_block_move_via_libcall): Likewise.
24257 (set_storage_via_libcall): Add default parameter value.
24258 * libfuncs.h (enum libfunc_index): Remove obsolete values.
24259 (abort_libfunc): Delete.
24260 (memcpy_libfunc): Likewise.
24261 (memmove_libfunc): Likewise.
24262 (memcmp_libfunc): Likewise.
24263 (memset_libfunc): Likewise.
24264 (setbits_libfunc): Likewise.
24265 (setjmp_libfunc): Likewise.
24266 (longjmp_libfunc): Likewise.
24267 (profile_function_entry_libfunc): Likewise.
24268 (profile_function_exit_libfunc): Likewise.
24269 (gcov_flush_libfunc): Likewise.
24270 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
24271 and DECL_VISIBILITY on the declaration.
24272 (init_optabs): Do not initialize obsolete libfuncs.
24273 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
24274 * tree-core.h (ECF_RET1): Define.
24275 (ECF_TM_PURE): Adjust.
24276 (ECF_TM_BUILTIN): Likewise.
24277 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
24278 (build_common_builtin_nodes): Initialize abort builtin.
24279 Add ECF_RET1 on memcpy, memmove and memset builtins.
24280 Pass final flags for alloca and alloca_with_align builtins.
24281 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
24282 obsolete builtins.
24283 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
24284 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
24285 set_storage_via_libcall and call emit_block_copy_via_libcall.
24286
24287 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
24288
24289 * config/i386/i386.md (*call_got_x32): Change operand 0 to
24290 DImode before it is passed to ix86_output_call_operand.
24291 (*call_value_got_x32): Ditto for operand 1.
24292
24293 2016-05-12 Jiong Wang <jiong.wang@arm.com>
24294
24295 PR rtl-optimization/70904
24296 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
24297 reload for wide mode.
24298
24299 2016-05-12 Marek Polacek <polacek@redhat.com>
24300
24301 PR c/70756
24302 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
24303 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
24304 * langhooks.h (incomplete_type_error): Likewise.
24305 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
24306 parameter, pass it down to incomplete_type_error.
24307 * tree.h (size_in_bytes): New inline overload.
24308 (size_in_bytes_loc): Renamed from size_in_bytes.
24309
24310 2016-05-12 Richard Biener <rguenther@suse.de>
24311
24312 PR tree-optimization/71059
24313 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
24314 nary before looking up or entering the expression into the VN
24315 hashes.
24316 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
24317 Make sure to re-use NARYs without result as inserted by
24318 phi-translation.
24319
24320 2016-05-12 Richard Biener <rguenther@suse.de>
24321
24322 PR tree-optimization/71062
24323 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
24324 field.
24325 * tree-ssa-structalias.c (set_uids_in_ptset): Set
24326 vars_contains_restrict if the var is a restrict tag.
24327 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
24328 do not disambiguate pointers against it.
24329 (dump_points_to_solution): Re-structure and adjust for new
24330 vars_contains_restrict flag.
24331 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
24332
24333 2016-05-12 Martin Liska <mliska@suse.cz>
24334
24335 * doc/invoke.texi: Explain connection between
24336 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
24337
24338 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
24339
24340 PR tree-optimization/71006
24341 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
24342 consider COND_EXPR as a mask producer.
24343
24344 2016-05-12 Marek Polacek <polacek@redhat.com>
24345
24346 PR driver/71063
24347 * opts.c (common_handle_option): Detect missing argument for --help^.
24348
24349 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24350
24351 PR target/70830
24352 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
24353 when popping the PC and within an interrupt handler routine.
24354 Add missing tab to output of "ldmfd".
24355 (output_return_instruction): Output LDMFD with SP update rather
24356 than POP when returning from interrupt handler.
24357
24358 2016-05-12 Jakub Jelinek <jakub@redhat.com>
24359
24360 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
24361 TARGET_64BIT && TARGET_AVX512DQ.
24362 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
24363 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
24364 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
24365 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
24366 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
24367 (*vec_extractv4si_zext): Add avx512dq alternative.
24368 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
24369 use v instead of x constraint in other alternatives where possible.
24370
24371 * config/i386/sse.md (sse2_loadld): Use v instead of x
24372 constraint in alternatives 0,1,4.
24373
24374 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
24375 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
24376 v constraints instead of x and <pinsr_evex_isa> isa attribute.
24377
24378 PR target/71019
24379 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
24380 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
24381 is not emitted unless TARGET_AVX512BW.
24382 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
24383 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
24384 for the result operand.
24385
24386 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
24387 constraint instead of x in avx alternatives. Use maybe_evex instead
24388 of vex prefix.
24389
24390 * config/i386/constraints.md (Yv): New constraint.
24391 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
24392 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
24393 * config/i386/i386.md (avx512fvecmode): New mode attr.
24394 (*pushtf): Use v constraint instead of x.
24395 (*movtf_internal): Likewise. For TARGET_AVX512VL and
24396 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
24397 (*absneg<mode>2): Use Yv constraint instead of x constraint.
24398 (*absnegtf2_sse): Likewise.
24399 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
24400 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
24401 avx512f alternatives.
24402 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
24403
24404 2016-05-12 Richard Biener <rguenther@suse.de>
24405
24406 PR tree-optimization/71060
24407 * tree-data-ref.c (initialize_data_dependence_relation): Do not
24408 require exact match of DR_BASE_OBJECT but only matching address and
24409 type.
24410
24411 2016-05-12 Richard Biener <rguenther@suse.de>
24412
24413 PR tree-optimization/70986
24414 * cfganal.c: Include cfgloop.h.
24415 (dfs_find_deadend): Prefer to take edges exiting loops.
24416
24417 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24418
24419 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
24420 compile and run time.
24421
24422 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
24423
24424 PR c/43651
24425 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
24426
24427 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
24428
24429 * config/i386/i386.c (legitimize_pic_address): Use
24430 copy_to_suggested_reg instead of gen_movsi.
24431
24432 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
24433
24434 * config/rs6000/predicates.md (quad_memory_operand): Move most of
24435 the code into quad_address_p and call it to share code with
24436 vsx_quad_dform_memory_operand.
24437 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
24438 d-form support.
24439 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
24440 bit instead of being a separate word. Split -mpower9-dform into
24441 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
24442 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
24443 for the register class supporting 128-bit quad word memory offsets.
24444 (mode_supports_vsx_dform_quad): Helper function to return if the
24445 register class uses quad word memory offsets.
24446 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
24447 (rs6000_debug_reg_global): Always print if we are using LRA or not.
24448 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
24449 instructions are enabled, set up the appropriate addr_masks for
24450 128-bit types.
24451 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
24452 -mpower9-dform-scalar, instead of -mpower9-dform.
24453 (rs6000_option_override_internal): Split -mpower9-dform into two
24454 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
24455 -mpower9-dform switch sets or clears both. If we are not using
24456 the LRA register allocator, do not enable -mpower9-dform-vector by
24457 default. If we are using LRA, enable -mpower9-dform-vector and
24458 -mvsx-timode if it is appropriate. Issue a warning if either
24459 -mpower9-dform-vector or -mvsx-timode are explicitly used without
24460 enabling LRA.
24461 (quad_address_offset_p): New helper function to return if the
24462 offset is legal for quad word memory instructions.
24463 (quad_address_p): New function to determin if GPR or vector
24464 register quad word memory addresses are legal.
24465 (mem_operand_gpr): Validate quad word address offsets.
24466 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
24467 d-form (register + offset) instructions.
24468 (offsettable_ok_by_alignment): Likewise.
24469 (rs6000_legitimate_offset_address_p): Likewise.
24470 (legitimate_lo_sum_address_p): Likewise.
24471 (rs6000_legitimize_address): Likewise.
24472 (rs6000_legitimize_reload_address): Add more debug statements for
24473 -mdebug=addr.
24474 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
24475 d-form instructions.
24476 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
24477 d-form instructions. Distinguish different cases in debug
24478 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
24479 d-form instructions.
24480 (rs6000_preferred_reload_class): Likewise.
24481 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
24482 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
24483 of the ISA 2.06 indexed memory instructions.
24484 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
24485 use them to save/restore the saved vector registers instead of
24486 using Altivec instructions.
24487 (rs6000_emit_epilogue): Likewise.
24488 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
24489 (rs6000_opt_masks): Split -mpower9-dform into
24490 -mpower9-dform-scalar and -mpower9-dform-vector.
24491 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
24492 was not selected.
24493 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
24494 ISA 3.0 vector indexed memory instructions, and fold the code into
24495 the normal mov<mode> patterns.
24496 (p9_vecstore_<mode>): Likewise.
24497 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
24498 instructions.
24499 (vsx_movti_64bit): Likewise.
24500 (vsx_movti_32bit): Likewise.
24501 * config/rs6000/constraints.md (wO constraint): New constraint for
24502 ISA 3.0 vector d-form support.
24503 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
24504 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
24505 include -mpower9-dform-vector until we switch over to LRA.
24506 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
24507 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
24508 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
24509 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
24510 for -mpower9-dform and -mlra.
24511 * doc/md.texi (wO constraint): Document wO constraint.
24512
24513 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
24514
24515 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
24516 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
24517 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
24518 Move handling of non-insn arguments inline into the sole user:
24519 (output_trans_func): ...here.
24520 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
24521 in emitted function prototype.
24522 (output_internal_insn_latency_func): Ditto. Simplify.
24523 (output_internal_maximal_insn_latency_func): Ditto. Delete
24524 always-unused argument.
24525 (output_insn_latency_func): Ditto.
24526 (output_maximal_insn_latency_func): Ditto.
24527
24528 2016-05-11 Richard Biener <rguenther@suse.de>
24529
24530 PR tree-optimization/71055
24531 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
24532 sth with precision not equal to access size verify we don't chop
24533 off bits.
24534
24535 2016-05-11 Richard Biener <rguenther@suse.de>
24536
24537 PR debug/71057
24538 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
24539 (dwarf2out_finish): Move retry_incomplete_types call ...
24540 (dwarf2out_early_finish): ... here.
24541
24542 2016-05-11 Richard Biener <rguenther@suse.de>
24543
24544 PR middle-end/71002
24545 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
24546 if the langhook insists on it.
24547 * fold-const.c (make_bit_field_ref): Add arg for the original
24548 reference and preserve its alias-set.
24549 (decode_field_reference): Take exp by reference and adjust it
24550 to the original memory reference.
24551 (optimize_bit_field_compare): Adjust callers.
24552 (fold_truth_andor_1): Likewise.
24553 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
24554
24555 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
24556
24557 PR middle-end/70807
24558 * cfgrtl.h (delete_insn_and_edges): Now return bool.
24559 * cfgrtl.c (delete_insn_and_edges): Likewise.
24560 * config/i386/i386.c (convert_scalars_to_vector): Remove
24561 redundant code.
24562 * cse.c (cse_insn): Compute cse_cfg_altered.
24563 (delete_trivially_dead_insns): Likewise.
24564 (cse_cc_succs): Likewise.
24565 (rest_of_handle_cse): Free dominance info if required.
24566 (rest_of_handle_cse2): Likewise.
24567 (rest_of_handle_cse_after_global_opts): Likewise.
24568
24569 2016-05-11 Alan Modra <amodra@gmail.com>
24570
24571 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
24572 abi_v4_pass_in_fpr): New functions.
24573 (rs6000_function_arg_boundary): Exclude complex IBM long double
24574 from 64-bit alignment when ABI_V4.
24575 (rs6000_function_arg, rs6000_function_arg_advance_1,
24576 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
24577
24578 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
24579
24580 PR rtl-optimization/71028
24581 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
24582 jump with just a return in the fallthrough block if the branch
24583 block contains just a return as well.
24584
24585 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
24586
24587 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
24588 * match.pd ((X & Y) ^ Y): ... this.
24589 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
24590 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
24591
24592 2016-05-10 David Malcolm <dmalcolm@redhat.com>
24593
24594 * read-md.c (require_char_ws): New function.
24595 (read_string): Simplify using require_char_ws.
24596 (handle_constants): Likewise.
24597 (handle_enum): Likewise.
24598 (handle_file): Likewise.
24599 * read-md.h (require_char_ws): New declaration.
24600 * read-rtl.c (read_conditions): Simplify using require_char_ws.
24601 (read_mapping): Likewise.
24602 (read_rtx_code): Likewise.
24603 (read_nested_rtx): Likewise.
24604
24605 2016-05-10 James Norris <jnorris@codesourcery.com>
24606
24607 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
24608 if offloading is enabled and -fopenacc or -fopenmp is specified.
24609 (CRTOFFLOADEND): Likewise.
24610 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
24611 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
24612
24613 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
24614
24615 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
24616 gotoff_operand code paths. Use copy_to_suggested_regs and
24617 expand_simple_binop where appropriate. Cleanup.
24618
24619 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
24620
24621 PR target/70799
24622 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
24623 integer constants.
24624 (dimode_scalar_chain::vector_const_cost): New.
24625 (dimode_scalar_chain::compute_convert_gain): Handle constants.
24626 (dimode_scalar_chain::convert_op): Likewise.
24627 (dimode_scalar_chain::convert_insn): Likewise.
24628
24629 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
24630
24631 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
24632 unary operation, not a binary one.
24633
24634 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
24635
24636 PR middle-end/70877
24637 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
24638 calls with type casted fndecl.
24639
24640 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
24641
24642 PR tree-optimization/70786
24643 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
24644 * calls.c (initialize_argument_information): Bind bounds
24645 with corresponding args passed by reference.
24646
24647 2016-05-10 Jakub Jelinek <jakub@redhat.com>
24648
24649 PR target/70927
24650 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
24651 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
24652 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
24653 accordingly.
24654
24655 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24656
24657 PR target/70963
24658 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
24659 code for a zero scale factor.
24660 (vsx_xvcvdpuxds_scale): Likewise.
24661
24662 2016-05-10 David Malcolm <dmalcolm@redhat.com>
24663
24664 * diagnostic-show-locus.c (layout::layout): Call show_ruler
24665 if show_ruler_p was set on the context.
24666 (layout::show_ruler): New method.
24667 * diagnostic.h (struct diagnostic_context): Add field
24668 "show_ruler_p".
24669
24670 2016-05-10 Richard Biener <rguenther@suse.de>
24671
24672 PR tree-optimization/71039
24673 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
24674 (chk_uses): New function.
24675 (propagate_with_phi): Verify we can safely replicate the lhs of an
24676 aggregate assignment on all incoming edges.
24677
24678 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
24679
24680 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
24681 Forward declare.
24682 (rx_atomic_sequence): New class.
24683 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
24684 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
24685 non-inline.
24686 (rx_atomic_sequence::rx_atomic_sequence,
24687 rx_atomic_sequence::~rx_atomic_sequence): New functions.
24688 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
24689 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
24690 CTRLREG_INTB): New constants.
24691 (FETCHOP): New code iterator.
24692 (fethcop_name, fetchop_name2): New iterator code attributes.
24693 (QIHI): New mode iterator.
24694 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
24695 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
24696 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
24697
24698 2016-05-10 Martin Liska <mliska@suse.cz>
24699
24700 * tree-inline.c (remap_dependence_clique): Do not remap
24701 debugging statements.
24702
24703 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24704
24705 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
24706 ("*fixuns_truncdfdi2_z13")
24707 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
24708 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
24709 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
24710
24711 2016-05-10 Richard Biener <rguenther@suse.de>
24712
24713 PR tree-optimization/70497
24714 PR tree-optimization/28367
24715 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
24716 split out from ...
24717 (visit_reference_op_load): ... here.
24718 (vn_reference_lookup_3): Use it to handle subreg-like accesses
24719 with simplified BIT_FIELD_REFs.
24720 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
24721 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
24722 correctly.
24723
24724 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
24725
24726 * dwarf2out.c (add_abstract_origin_attribute): Adjust
24727 documentation comment. For BLOCK nodes, add a
24728 DW_AT_abstract_origin attribute that points to the DIE generated
24729 for the origin BLOCK.
24730 (gen_lexical_block_die): Call add_abstract_origin_attribute for
24731 blocks from inlined functions.
24732
24733 2016-05-10 Alan Modra <amodra@gmail.com>
24734
24735 PR target/70947
24736 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
24737 regrename modifying insns saving lr before __morestack call.
24738 * config/rs6000/rs6000.md (split_stack_return): Similarly for
24739 insns restoring lr after __morestack call.
24740
24741 2016-05-09 Jakub Jelinek <jakub@redhat.com>
24742
24743 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
24744 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
24745 expanders.
24746 * config/i386/sse.md (vec_interleave_high<mode>,
24747 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
24748 <avx512>_vpermt2var<mode>3_maskz): Likewise.
24749
24750 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
24751
24752 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
24753 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
24754 parallel reassociation for power8 and forward.
24755
24756 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
24757
24758 * config/i386/i386.md (absneg splitters with general regs): Use
24759 general_reg_operand predicate.
24760 (btsq peephole2): Use x86_64_immediate_operand to check if new
24761 value is suitable for immediate operand. Generate emitted insn
24762 using RTL expressions.
24763 (btcq peephole2): Ditto.
24764 (btrq peephole2): Ditto. Generate correct immediate operand
24765 for AND masking.
24766
24767 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
24768
24769 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
24770 bitpos.
24771
24772 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
24773
24774 * tree-affine.c (wide_int_constant_multiple_p): Add missing
24775 pointer dereference.
24776
24777 2016-05-09 Richard Biener <rguenther@suse.de>
24778
24779 PR tree-optimization/70985
24780 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
24781 op0 isn't a gimple register.
24782
24783 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
24784
24785 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
24786 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
24787 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
24788 (i6400_fpu_mult): New cpu units.
24789 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
24790 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
24791 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
24792 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
24793 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
24794 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
24795 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
24796 (i6400_msa_long_float4, i6400_msa_long_float5)
24797 (i6400_msa_long_float8, i6400_msa_fdiv_df)
24798 (i6400_msa_fdiv_sf): New reservations.
24799 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
24800 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
24801 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
24802 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
24803 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
24804 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
24805 (msa_short_cmp, msa_short_float2, msa_short_logic3)
24806 (msa_short_store4, msa_long_load, msa_short_store)
24807 (msa_long_logic, msa_long_float2, msa_long_float4)
24808 (msa_long_float5, msa_long_float8, msa_long_mult)
24809 (msa_long_fdiv, msa_long_div): New reservations.
24810
24811 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
24812 Sameera Deshpande <sameera.deshpande@imgtec.com>
24813 Matthew Fortune <matthew.fortune@imgtec.com>
24814 Graham Stott <graham.stott@imgtec.com>
24815 Chao-ying Fu <chao-ying.fu@imgtec.com>
24816
24817 * config.gcc: Add MSA header file for mips*-*-* target.
24818 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
24819 (Ubv8i, Urv8): New constraints.
24820 * config/mips/mips-ftypes.def: Add function types for MSA
24821 builtins.
24822 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
24823 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
24824 * config/mips/mips-msa.md: New file.
24825 * config/mips/mips-protos.h
24826 (mips_split_128bit_const_insns): New prototype.
24827 (mips_msa_idiv_insns): Likewise.
24828 (mips_split_128bit_move): Likewise.
24829 (mips_split_128bit_move_p): Likewise.
24830 (mips_split_msa_copy_d): Likewise.
24831 (mips_split_msa_insert_d): Likewise.
24832 (mips_split_msa_fill_d): Likewise.
24833 (mips_expand_msa_branch): Likewise.
24834 (mips_const_vector_same_val_p): Likewise.
24835 (mips_const_vector_same_bytes_p): Likewise.
24836 (mips_const_vector_same_int_p): Likewise.
24837 (mips_const_vector_shuffle_set_p): Likewise.
24838 (mips_const_vector_bitimm_set_p): Likewise.
24839 (mips_const_vector_bitimm_clr_p): Likewise.
24840 (mips_msa_vec_parallel_const_half): Likewise.
24841 (mips_msa_output_division): Likewise.
24842 (mips_ldst_scaled_shift): Likewise.
24843 (mips_expand_vec_cond_expr): Likewise.
24844 * config/mips/mips.c (enum mips_builtin_type): Add
24845 MIPS_BUILTIN_MSA_TEST_BRANCH.
24846 (mips_gen_const_int_vector_shuffle): New prototype.
24847 (mips_const_vector_bitimm_set_p): New function.
24848 (mips_const_vector_bitimm_clr_p): Likewise.
24849 (mips_const_vector_same_val_p): Likewise.
24850 (mips_const_vector_same_bytes_p): Likewise.
24851 (mips_const_vector_same_int_p): Likewise.
24852 (mips_const_vector_shuffle_set_p): Likewise.
24853 (mips_symbol_insns): Forbid loading symbols via immediate for
24854 MSA.
24855 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
24856 stores.
24857 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
24858 MSA.
24859 (mips_lx_address_p): Add support load indexed address for MSA.
24860 (mips_address_insns): Add calculation of instructions needed for
24861 stores and loads for MSA.
24862 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
24863 CONST_VECTOR for MSA and let it fall through.
24864 (mips_ldst_scaled_shift): New function.
24865 (mips_subword_at_byte): Likewise.
24866 (mips_msa_idiv_insns): Likewise.
24867 (mips_legitimize_move): Validate MSA moves.
24868 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
24869 calculation of costs for MSA division.
24870 (mips_split_move_p): Check if MSA moves need splitting.
24871 (mips_split_move): Split MSA moves if necessary.
24872 (mips_split_128bit_move_p): New function.
24873 (mips_split_128bit_move): Likewise.
24874 (mips_split_msa_copy_d): Likewise.
24875 (mips_split_msa_insert_d): Likewise.
24876 (mips_split_msa_fill_d): Likewise.
24877 (mips_output_move): Handle MSA moves.
24878 (mips_expand_msa_branch): New function.
24879 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
24880 Reinstate 'y' modifier.
24881 (mips_file_start): Add MSA .gnu_attribute.
24882 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
24883 FPRs.
24884 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
24885 (mips_class_max_nregs): Add register size for MSA supported mode.
24886 (mips_cannot_change_mode_class): Allow conversion between MSA
24887 vector modes and TImode.
24888 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
24889 instruction.
24890 (mips_secondary_reload_class): Force MSA loads/stores via memory.
24891 (mips_preferred_simd_mode): Add preffered modes for MSA.
24892 (mips_vector_mode_supported_p): Add MSA supported modes.
24893 (mips_autovectorize_vector_sizes): New function.
24894 (mips_msa_output_division): Likewise.
24895 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
24896 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
24897 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
24898 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
24899 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
24900 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
24901 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
24902 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
24903 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
24904 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
24905 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
24906 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
24907 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
24908 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
24909 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
24910 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
24911 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
24912 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
24913 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
24914 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
24915 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
24916 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
24917 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
24918 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
24919 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
24920 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
24921 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
24922 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
24923 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
24924 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
24925 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
24926 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
24927 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
24928 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
24929 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
24930 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
24931 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
24932 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
24933 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
24934 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
24935 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
24936 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
24937 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
24938 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
24939 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
24940 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
24941 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
24942 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
24943 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
24944 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
24945 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
24946 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
24947 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
24948 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
24949 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
24950 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
24951 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
24952 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
24953 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
24954 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
24955 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
24956 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
24957 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
24958 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
24959 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
24960 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
24961 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
24962 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
24963 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
24964 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
24965 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
24966 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
24967 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
24968 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
24969 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
24970 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
24971 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
24972 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
24973 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
24974 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
24975 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
24976 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
24977 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
24978 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
24979 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
24980 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
24981 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
24982 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
24983 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
24984 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
24985 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
24986 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
24987 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
24988 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
24989 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
24990 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
24991 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
24992 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
24993 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
24994 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
24995 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
24996 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
24997 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
24998 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
24999 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
25000 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
25001 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
25002 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
25003 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
25004 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
25005 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
25006 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
25007 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
25008 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
25009 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
25010 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
25011 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
25012 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
25013 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
25014 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
25015 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
25016 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
25017 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
25018 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
25019 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
25020 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
25021 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
25022 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
25023 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
25024 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
25025 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
25026 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
25027 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
25028 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
25029 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
25030 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
25031 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
25032 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
25033 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
25034 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
25035 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
25036 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
25037 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
25038 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
25039 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
25040 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
25041 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
25042 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
25043 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
25044 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
25045 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
25046 move_v builtins.
25047 (mips_get_builtin_decl_index): New array.
25048 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
25049 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
25050 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
25051 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
25052 (mips_init_builtins): Initialize mips_get_builtin_decl_index
25053 array.
25054 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
25055 hook.
25056 (mips_expand_builtin_insn): Prepare operands for
25057 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
25058 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
25059 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
25060 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
25061 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
25062 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
25063 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
25064 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
25065 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
25066 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
25067 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
25068 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
25069 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
25070 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
25071 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
25072 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
25073 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
25074 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
25075 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
25076 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
25077 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
25078 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
25079 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
25080 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
25081 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
25082 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
25083 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
25084 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
25085 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
25086 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
25087 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
25088 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
25089 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
25090 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
25091 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
25092 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
25093 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
25094 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
25095 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
25096 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
25097 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
25098 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
25099 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
25100 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
25101 These are set implicitly and an error is reported if overridden.
25102 (mips_expand_builtin_msa_test_branch): New function.
25103 (mips_expand_msa_shuffle): Likewise.
25104 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
25105 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
25106 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
25107 (mips_expand_vec_unpack): Add support for MSA.
25108 (mips_expand_vector_init): Likewise.
25109 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
25110 instead of const0_rtx.
25111 (mips_msa_vec_parallel_const_half): New function.
25112 (mips_gen_const_int_vector): Likewise.
25113 (mips_gen_const_int_vector_shuffle): Likewise.
25114 (mips_expand_msa_cmp): Likewise.
25115 (mips_expand_vec_cond_expr): Likewise.
25116 * config/mips/mips.h
25117 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
25118 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
25119 specified.
25120 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
25121 (ISA_HAS_MSA): New macro.
25122 (UNITS_PER_MSA_REG): Likewise.
25123 (BITS_PER_MSA_REG): Likewise.
25124 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
25125 (MSA_REG_FIRST): New macro.
25126 (MSA_REG_LAST): Likewise.
25127 (MSA_REG_NUM): Likewise.
25128 (MSA_REG_P): Likewise.
25129 (MSA_REG_RTX_P): Likewise.
25130 (MSA_SUPPORTED_MODE_P): Likewise.
25131 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
25132 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
25133 * config/mips/mips.md: Include mips-msa.md.
25134 (alu_type): Add simd_add.
25135 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
25136 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
25137 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
25138 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
25139 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
25140 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
25141 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
25142 simd_move, simd_load, simd_store. Choose "multi" for moves
25143 for "qword_mode".
25144 (qword_mode): New attribute.
25145 (insn_count): Add instruction count for quad moves.
25146 Increase the count for MIPS SIMD division.
25147 (UNITMODE): Add UNITMODEs for vector types.
25148 (addsub): New code iterator.
25149 * config/mips/mips.opt (mmsa): New option.
25150 * config/mips/msa.h: New file.
25151 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
25152 specified.
25153 * config/mips/mti-linux.h: Likewise.
25154 * config/mips/predicates.md
25155 (const_msa_branch_operand): New constraint.
25156 (const_uimm3_operand): Likewise.
25157 (const_uimm4_operand): Likewise.
25158 (const_uimm5_operand): Likewise.
25159 (const_uimm8_operand): Likewise.
25160 (const_imm5_operand): Likewise.
25161 (aq10b_operand): Likewise.
25162 (aq10h_operand): Likewise.
25163 (aq10w_operand): Likewise.
25164 (aq10d_operand): Likewise.
25165 (const_m1_operand): Likewise.
25166 (reg_or_m1_operand): Likewise.
25167 (const_exp_2_operand): Likewise.
25168 (const_exp_4_operand): Likewise.
25169 (const_exp_8_operand): Likewise.
25170 (const_exp_16_operand): Likewise.
25171 (const_vector_same_val_operand): Likewise.
25172 (const_vector_same_simm5_operand): Likewise.
25173 (const_vector_same_uimm5_operand): Likewise.
25174 (const_vector_same_uimm6_operand): Likewise.
25175 (const_vector_same_uimm8_operand): Likewise.
25176 (par_const_vector_shf_set_operand): Likewise.
25177 (reg_or_vector_same_val_operand): Likewise.
25178 (reg_or_vector_same_simm5_operand): Likewise.
25179 (reg_or_vector_same_uimm6_operand): Likewise.
25180 * doc/extend.texi (MIPS SIMD Architecture Functions): New
25181 section.
25182 * doc/invoke.texi (-mmsa): Document new option.
25183
25184 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25185
25186 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
25187 * configure: Regenerate.
25188 * config.in: Regenerate.
25189 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
25190 on -fvtable-verify.
25191 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
25192 (ENDFILE_VTV_SPEC): Define.
25193
25194 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
25195
25196 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
25197 registers in all interrupt handlers if necessary.
25198 (rl78_option_override): Add warning.
25199 (MUST_SAVE_MDUC_REGISTERS): New macro.
25200 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
25201 * config/rl78/rl78.c (check_mduc_usage): New function.
25202 (mduc_regs): New structure to hold MDUC register data.
25203 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
25204 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
25205 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
25206 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
25207 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
25208 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
25209
25210 2016-05-09 Bin Cheng <bin.cheng@arm.com>
25211
25212 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
25213 (tree-ssa-loop-niter.h): Ditto.
25214 (idx_within_array_bound, ref_within_array_bound): New functions.
25215 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
25216 Factor out check on writable base object to ...
25217 (base_object_writable): ... here.
25218
25219 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25220
25221 * config/arm/arm.md (probe_stack): Add modes to set source
25222 and destination.
25223
25224 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
25225
25226 * regrename.c (base_reg_class_for_rename): New static function.
25227 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
25228
25229 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
25230
25231 * cgraph.c (thunk_adjust): Export.
25232 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
25233 * cgraphunit.c (thunk_adjust): Export.
25234 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
25235 thunks.
25236 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
25237 inlinable.
25238 * tree-inline.c (expand_call_inline): Expand thunks inline.
25239
25240 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
25241
25242 PR target/70998
25243 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
25244 (*sse2_vd_cvtss2sd): Ditto.
25245 * config/i386/i386.md
25246 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
25247 Generate *sse2_vd_cvtsd2ss pattern.
25248 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
25249 Generate *sse2_vd_cvtss2sd pattern.
25250
25251 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
25252
25253 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
25254 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
25255 users.
25256
25257 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
25258
25259 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
25260 * config/sh/sh.c: Define and declare variables on first use throughout
25261 the file.
25262 (current_function_interrupt): Change to bool type.
25263 (frame_insn): Rename to emit_frame_insn and update users.
25264 (push_regs): Use bool for 'interrupt_handler' argument.
25265 (save_schedule_s): Remove.
25266 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
25267 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
25268 targetm.asm_out.unaligned_op.di.
25269 (gen_far_branch): Remove redundant forward declaration.
25270 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
25271 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
25272 (sh_set_return_address, sh_function_ok_for_sibcall,
25273 scavenge_reg): Update comments.
25274 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
25275 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
25276 (sh_attr_renesas_p): Remove unnecessary parentheses.
25277 (branch_dest): Simplify.
25278 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
25279 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
25280 (CUMULATIVE_ARGS): Change macro to typedef.
25281 (current_function_interrupt): Change to bool type.
25282 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
25283 Surround with __cplusplus ifdef.
25284 (sh_compare_op0, sh_compare_op1): Remove.
25285 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
25286
25287 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
25288
25289 * config/arm/arm.md (arch): Add neon.
25290 (arch_enabled): Return yes for arch neon when TARGET_NEON.
25291 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
25292 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
25293 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
25294 attributes for alt renumbering. Mark alt 3 as non-predicable.
25295 (thumb2_movdf_vfp): Likewise.
25296
25297 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
25298
25299 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
25300 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
25301 (*andqi_1): Add preferred_for_speed attribute to disparage
25302 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
25303 (*<code>qi_1): Ditto.
25304 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
25305 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
25306 (*ashlqi3_1): Ditto.
25307 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
25308 Add preferred_for_size attribute to disparage alternative 0 and
25309 preferred_for_speed attribute to disparage alternative 1 for
25310 TARGET_PARTIAL_REG_STALL targets.
25311
25312 2016-05-07 Tom de Vries <tom@codesourcery.com>
25313
25314 PR tree-optimization/70956
25315 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
25316 def.
25317
25318 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
25319
25320 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
25321 * config/sh/sh.c (sh_cbranch_distance): Implement it.
25322 * config/sh/sh.md (branch_zero): Remove define_attr.
25323 (define_delay): Disable delay slot if branch distance is one insn.
25324
25325 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
25326
25327 * config/i386/i386.md (LEAMODE): New mode attribute.
25328 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
25329 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
25330 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
25331 operand 2 predicate.
25332 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
25333 (*lea<mode>_general_3): Ditto.
25334 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
25335
25336 2016-05-06 Jakub Jelinek <jakub@redhat.com>
25337
25338 * genmddump.c (main): Convert argv from char ** to const char **.
25339
25340 2016-05-06 David Malcolm <dmalcolm@redhat.com>
25341
25342 * coretypes.h (OVERRIDE): New macro.
25343 (FINAL): New macro.
25344
25345 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
25346
25347 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
25348 allow coalescing if the types are compatible.
25349
25350 2016-05-06 David Malcolm <dmalcolm@redhat.com>
25351
25352 * pass_manager.h (pass_manager::register_pass_name): New method.
25353 (pass_manager::get_pass_by_name): New method.
25354 (pass_manager::create_pass_tab): New method.
25355 (pass_manager::m_name_to_pass_map): New field.
25356 * passes.c (name_to_pass_map): Delete global in favor of field
25357 "m_name_to_pass_map" of pass_manager.
25358 (register_pass_name): Rename from a function to...
25359 (pass_manager::register_pass_name): ...this method, updating
25360 for renaming of global "name_to_pass_map" to field
25361 "m_name_to_pass_map".
25362 (create_pass_tab): Rename from a function to...
25363 (pass_manager::create_pass_tab): ...this method, updating
25364 for renaming of global "name_to_pass_map" to field.
25365 (get_pass_by_name): Rename from a function to...
25366 (pass_manager::get_pass_by_name): ...this method.
25367 (enable_disable_pass): Convert use of get_pass_by_name to
25368 a method call, locating the pass_manager singleton.
25369
25370 2016-05-06 David Malcolm <dmalcolm@redhat.com>
25371
25372 * genattr-common.c (main): Convert argv from char ** to const char **.
25373 * genattr.c (main): Likewise.
25374 * genattrtab.c (main): Likewise.
25375 * genautomata.c (initiate_automaton_gen): Likewise.
25376 (main): Likewise.
25377 * gencodes.c (main): Likewise.
25378 * genconditions.c (main): Likewise.
25379 * genconfig.c (main): Likewise.
25380 * genconstants.c (main): Likewise.
25381 * genemit.c (main): Likewise.
25382 * genenums.c (main): Likewise.
25383 * genextract.c (main): Likewise.
25384 * genflags.c (main): Likewise.
25385 * genmddeps.c (main): Likewise.
25386 * genopinit.c (main): Likewise.
25387 * genoutput.c (main): Likewise.
25388 * genpeep.c (main): Likewise.
25389 * genpreds.c (main): Likewise.
25390 * genrecog.c (main): Likewise.
25391 * gensupport.c (init_rtx_reader_args_cb): Likewise.
25392 (init_rtx_reader_args): Likewise.
25393 * gensupport.h (init_rtx_reader_args_cb): Likewise.
25394 (init_rtx_reader_args): Likewise.
25395 * gentarget-def.c (main): Likewise.
25396 * read-md.c (read_md_files): Likewise.
25397 * read-md.h (read_md_files): Likewise.
25398
25399 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
25400
25401 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
25402 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
25403 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
25404 Remove unused predicate.
25405 (register_and_not_fp_reg_operand): Ditto.
25406
25407 2016-05-06 Martin Liska <mliska@suse.cz>
25408
25409 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
25410 instead of vec as the vector is local to the function.
25411
25412 2016-05-06 Jakub Jelinek <jakub@redhat.com>
25413
25414 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
25415 avx512bw alternative.
25416
25417 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
25418 before the ashr<mode>3 pattern.
25419
25420 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
25421 v instead of x in vex or maybe_vex alternatives, use
25422 maybe_evex instead of vex in prefix.
25423
25424 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
25425 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
25426 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
25427 in vex or maybe_vex alternatives, use maybe_evex instead of vex
25428 in prefix.
25429
25430 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
25431 v instead of x in vex or maybe_vex alternatives, use
25432 maybe_evex instead of vex in prefix.
25433
25434 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
25435 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
25436 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
25437 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
25438 alternatives, use maybe_evex instead of vex in prefix.
25439
25440 * config/i386/sse.md (vec_interleave_lowv4sf,
25441 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
25442 v instead of x in vex or maybe_vex alternatives, use
25443 maybe_evex instead of vex in prefix.
25444
25445 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
25446 v instead of x in vex or maybe_vex alternatives, use
25447 maybe_evex instead of vex in prefix.
25448
25449 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
25450 v constraint instead of x.
25451
25452 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
25453
25454 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
25455 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
25456 equality first.
25457
25458 2016-05-06 Richard Biener <rguenther@suse.de>
25459
25460 PR tree-optimization/70948
25461 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
25462 Properly clobber all fields of va_list for __builtin_va_start.
25463
25464 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
25465
25466 PR debug/70935
25467 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
25468 loop latch destination.
25469
25470 2016-05-06 Martin Liska <mliska@suse.cz>
25471
25472 * tree-ssa-uninit.c: Apply manual changes
25473 to the GNU coding style.
25474 (prune_uninit_phi_opnds): Rename from
25475 prune_uninit_phi_opnds_in_unrealizable_paths.
25476
25477 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25478
25479 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
25480 mspace): Remove deprecated options.
25481 * doc/invoke.texi (SH options): Remove -mspace.
25482
25483 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25484
25485 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
25486
25487 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25488
25489 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
25490 corresponding combine split pattern.
25491
25492 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25493
25494 PR target/58219
25495 * config/sh/predicates.md (long_displacement_mem_operand): New.
25496 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
25497 Add movi20, movi20s alternatives. Adjust length attribute for
25498 alternatives.
25499 (movsi_ie): Allow for any FPU. Adjust length attribute for
25500 alternatives.
25501 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
25502 attribute for alternatives.
25503 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
25504 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
25505 length attribute for alternatives.
25506
25507 2016-05-06 Richard Biener <rguenther@suse.de>
25508
25509 PR tree-optimization/70960
25510 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
25511
25512 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25513
25514 PR target/52933
25515 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
25516 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
25517
25518 2016-05-06 Marek Polacek <polacek@redhat.com>
25519
25520 PR sanitizer/70875
25521 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
25522
25523 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25524
25525 PR target/54089
25526 * config/sh/sh.md (*rotcr): Add another variant.
25527
25528 2016-05-06 Richard Biener <rguenther@suse.de>
25529
25530 PR middle-end/70931
25531 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
25532
25533 2016-05-06 Richard Biener <rguenther@suse.de>
25534
25535 PR middle-end/70941
25536 * fold-const.c (split_tree): Always convert to the original type
25537 before negating.
25538
25539 2016-05-06 Richard Biener <rguenther@suse.de>
25540
25541 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
25542 (fwprop_addr): Likewise.
25543
25544 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
25545
25546 PR target/70873
25547 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
25548 New prototype.
25549 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
25550 * config/i386/i386.md (push mem splitter): Use find_constant_src in
25551 the splitter condition.
25552 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
25553 the splitter condition.
25554 (FP float_extend load splitter): Ditto.
25555
25556 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
25557
25558 * config/i386/i386.md (peehole2 patterns): Change true_regnum
25559 to REGNO in all peephole2 patterns.
25560 (post-reload splitters): Change true_regnum to REGNO in
25561 post-reload splitters.
25562 (zero_extend splitters): Use general_reg_operand and
25563 nonimmediate_gr_operand predicates.
25564
25565 2016-05-05 Jakub Jelinek <jakub@redhat.com>
25566
25567 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
25568 v constraint instead of x.
25569
25570 2016-05-05 Alan Modra <amodra@gmail.com>
25571
25572 PR target/68662
25573 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
25574 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
25575 TARGET_NO_FP_IN_TOC for -mrelocatable.
25576 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
25577 TARGET_RELOCATABLE test.
25578 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25579 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
25580 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
25581 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25582 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
25583 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
25584 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25585 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
25586 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
25587 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
25588 Likewise.
25589 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
25590 (rs6000_stack_info): Likewise.
25591 (rs6000_elf_asm_out_constructor): Likewise.
25592 (rs6000_elf_asm_out_destructor): Likewise.
25593 (rs6000_elf_declare_function_name): Likewise.
25594 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
25595 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
25596 Don't define.
25597
25598 2016-05-05 Alan Modra <amodra@gmail.com>
25599
25600 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
25601
25602 2016-05-05 Alan Modra <amodra@gmail.com>
25603
25604 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
25605 out-of-line gpr restore for one or two regs if that would add
25606 a save of lr.
25607
25608 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
25609
25610 PR target/70873
25611 * config/i386/i386.md
25612 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
25613 Change to post-epilogue_completed late splitter. Use sse_reg_operand
25614 as operand 0 predicate.
25615 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
25616 Ditto.
25617 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
25618 Ditto. Emit the pattern using RTX.
25619
25620 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
25621 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
25622 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
25623 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
25624 Ditto.
25625 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
25626 sse_reg_operand as operand 0 predicate.
25627
25628 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
25629 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
25630 instead of gen_rtx_REG.
25631 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
25632 Ditto.
25633
25634 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
25635
25636 * function.c (emit_use_return_register_into_block): Delete.
25637 (gen_return_pattern): Delete.
25638 (emit_return_into_block): Delete.
25639 (active_insn_between): Delete.
25640 (convert_jumps_to_returns): Delete.
25641 (emit_return_for_exit): Delete.
25642 (thread_prologue_and_epilogue_insns): Delete all code dealing with
25643 simple_return for shrink-wrapped blocks.
25644 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
25645 end of blocks that need one.
25646 (get_unconverted_simple_return): Delete.
25647 (convert_to_simple_return): Delete.
25648 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
25649 (convert_to_simple_return): Ditto.
25650
25651 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
25652
25653 * cfgcleanup.c (bb_is_just_return): New function.
25654 (try_optimize_cfg): Simplify jumps to return, branches to return,
25655 and branches around return.
25656
25657 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
25658
25659 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
25660 branch to a return.
25661
25662 2016-05-04 Jakub Jelinek <jakub@redhat.com>
25663
25664 PR c++/70906
25665 PR c++/70933
25666 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
25667 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
25668 assert flags & OEP_HASH_CHECK, instead of asserting it
25669 never happens. Handle TARGET_EXPR.
25670 * fold-const.c (operand_equal_p): For hash verification,
25671 or in OEP_HASH_CHECK into flags.
25672
25673 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
25674
25675 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
25676 comment.
25677 (compute_samebase_partition_bases): Fix typo.
25678
25679 2016-05-04 Jakub Jelinek <jakub@redhat.com>
25680
25681 * config/i386/sse.md (vec_interleave_highv8sf,
25682 vec_interleave_lowv8sf, vec_interleave_highv4df,
25683 vec_interleave_lowv4df): Remove constraints from expanders.
25684
25685 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
25686
25687 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
25688
25689 * tree-inline.c (expand_call_inline): Fix path dealing with
25690 making lhs of call statement undefined.
25691
25692 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
25693
25694 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
25695 Check availability on NODE, too.
25696 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
25697 (cgraph_node::call_for_symbol_and_aliases): Likewise.
25698 (varpool_node::call_for_symbol_and_aliase): Likewise.
25699 * ipa-pure-const.c (add_new_function): Analyze all bodies.
25700 (propagate_pure_const): Propagate across interposable functions, too.
25701 (skip_function_for_local_pure_const): Do not skip interposable bodies
25702 with aliases.
25703 (pass_local_pure_const::execute): Update.
25704
25705 2016-05-04 Marek Polacek <polacek@redhat.com>
25706
25707 * doc/invoke.texi: Document -Wdangling-else.
25708
25709 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
25710
25711 * config.gcc: Error out when conflicting multilib is detected. Do not
25712 loop over multilibs since no combination is legal.
25713
25714 2016-05-04 Alan Modra <amodra@gmail.com>
25715
25716 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
25717 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
25718 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
25719 Align .toc.
25720
25721 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
25722
25723 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
25724 Clean up p5600 comments.
25725
25726 2016-05-04 Richard Biener <rguenther@suse.de>
25727
25728 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
25729 constructor simplifications.
25730 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
25731
25732 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
25733
25734 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
25735 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
25736 result.set_rtx is null instead of aborting.
25737 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
25738 Always enable.
25739 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
25740 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
25741 *mov<mode>_store_postinc): New patterns.
25742
25743 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
25744
25745 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
25746 as commutative. Check both conversions are NOP.
25747 ((A & B) OP (C & B)): Remove.
25748
25749 2016-05-04 Alan Modra <amodra@gmail.com>
25750
25751 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
25752
25753 2016-05-04 Alan Modra <amodra@gmail.com>
25754
25755 PR target/70866
25756 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
25757 when cr2,3,4 are all fixed regs.
25758
25759 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
25760
25761 PR rtl-optimization/57193
25762 * opts.c (default_options_table): Revert OPT_frename_registers change.
25763 * doc/invoke.texi (-frename-registers, -O2): Likewise.
25764
25765 2016-05-03 Martin Sebor <msebor@redhat.com>
25766
25767 PR c++/66561
25768 * builtins.c (fold_builtin_FILE): New function.
25769 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
25770 (fold_builtin_0): Call them.
25771 * gimplify.c (gimplify_call_expr): Remove the handling of
25772 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
25773
25774 PR c++/66561
25775 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
25776 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
25777 constants.
25778
25779 PR c++/66639
25780 * doc/extend.texi (Function Names as Strings): Update __func__,
25781 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
25782 constants.
25783
25784 2016-05-03 Jakub Jelinek <jakub@redhat.com>
25785 Richard Biener <rguenther@suse.de>
25786
25787 PR tree-optimization/70916
25788 * tree-if-conv.c: Include cfganal.h.
25789 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
25790 and remove_fake_exit_edges around the optimization pass.
25791
25792 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
25793
25794 * cgraph.c (symbol_table::create_edge): Set inline_failed.
25795 (cgraph_edge::make_direct): Likewise.
25796 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
25797 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
25798 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
25799 (CIF_THUNK): New code.
25800 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
25801 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
25802 (compute_inline_parameters): Set inline_failed for thunks.
25803 (inline_analyze_function): Cleanup.
25804 * ipa-inline.c (can_inline_edge_p): Do not deal with
25805 call_stmt_cannot_inline_p.
25806 (can_early_inline_edge_p): Likewise.
25807 (early_inliner): Initialize inline_failed.
25808 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
25809
25810 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
25811
25812 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
25813 from nonimm_ssenomem_operand.
25814 (nonimm_ssenomem_operand): New predicate.
25815 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
25816 as operand 0 predicate.
25817 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
25818 Disable unsupported alternatives using "enabled" attribute.
25819 Use register_ssemem_operand as operand 0 predicate.
25820 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
25821
25822 2016-05-03 Marek Polacek <polacek@redhat.com>
25823
25824 PR c/70859
25825 * input.c (expansion_point_location): New function.
25826 * input.h (expansion_point_location): Declare.
25827
25828 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
25829
25830 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
25831 occurence with frame_offset_ ones.
25832
25833 2016-05-03 Alan Modra <amodra@gmail.com>
25834
25835 PR rtl-optimization/70890
25836 * ira.c (combine_and_move_insns): When moving def_insn, remove
25837 equivs on use_insn.
25838
25839 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
25840
25841 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
25842 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
25843 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
25844 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
25845
25846 2016-05-03 Alan Modra <amodra@gmail.com>
25847
25848 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
25849 for SAVE_MULTIPLE/STORE_MULTIPLE.
25850
25851 2016-05-03 Jakub Jelinek <jakub@redhat.com>
25852
25853 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
25854 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
25855
25856 2016-05-03 Richard Biener <rguenther@suse.de>
25857
25858 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
25859 default true.
25860 (gimplify_arg): Likewise.
25861 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
25862 re-writing the result to a decl if required.
25863 (internal_get_tmp_var): Add allow_ssa parameter
25864 and override into_ssa with it.
25865 (get_formal_tmp_var): Adjust.
25866 (get_initialized_tmp_var): Add allow_ssa parameter.
25867 (gimplify_arg): Add allow_ssa parameter and avoid generating
25868 SSA names for the result false.
25869 (gimplify_call_expr): If the call may return twice do not
25870 gimplify parameters into SSA.
25871 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
25872 (gimplify_modify_expr): Adjust assert. For noreturn calls
25873 with a SSA name LHS adjust its def.
25874 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
25875 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
25876 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
25877 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
25878 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
25879 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
25880 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
25881 (optimize_target_teams): Do not allow SSA names for clause operands.
25882 (gimplify_expr): Likewise for where we mark the result addressable.
25883 * passes.def (pass_init_datastructures): Remove.
25884 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
25885 (rewrite_stmt): Likewise.
25886 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
25887 (replace_locals_op): Replace SSA names.
25888 (copy_gimple_seq_and_replace_locals): Init src_cfun.
25889 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
25890 * cgraph.c (release_function_body): Free CFG annotations only
25891 when we have a CFG. Simplify.
25892 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
25893 force_gimple_operand instead of get_initialized_tmp_var.
25894 * tree-pass.h (make_pass_init_datastructures): Remove.
25895 * tree-ssa.c (execute_init_datastructures): Remove.
25896 (pass_data_init_datastructures): Likewise.
25897 (class pass_init_datastructures): Likewise.
25898 (make_pass_init_datastructures): Likewise.
25899 * omp-low.c (create_omp_child_function): Init SSA data structures.
25900 (grid_expand_target_grid_body): Likewise.
25901 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
25902 name before adding it to names_to_release.
25903 (remove_bb): Always release SSA defs.
25904 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
25905 before dereferencing it.
25906 * cgraphunit.c (init_lowered_empty_function): Always
25907 int SSA data structures.
25908 * tree-ssanames.c (release_defs): Remove assert that we are in
25909 SSA form.
25910 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
25911
25912 2016-05-03 Jakub Jelinek <jakub@redhat.com>
25913 Uros Bizjak <ubizjak@gmail.com>
25914
25915 PR rtl-optimization/70467
25916 * config/i386/predicates.md (x86_64_hilo_int_operand,
25917 x86_64_hilo_general_operand): New predicates.
25918 * config/i386/constraints.md (Wd): New constraint.
25919 * config/i386/i386.md (mode attr di): Use Wd instead of e.
25920 (general_hilo_operand): New mode attr.
25921 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
25922 instead of <general_operand>.
25923 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
25924 x86_64_hilo_general_operand instead of <general_operand>.
25925
25926 2016-05-03 Jakub Jelinek <jakub@redhat.com>
25927
25928 PR tree-optimization/70916
25929 * tree-if-conv.c (constant_or_ssa_name): Removed.
25930 (fold_build_cond_expr): Use is_gimple_val instead of
25931 constant_or_ssa_name.
25932
25933 PR tree-optimization/70916
25934 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
25935 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
25936
25937 PR target/49244
25938 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
25939 (optimize_atomic_bit_test_and): New function.
25940 (pass_fold_builtins::execute): Use it.
25941 * optabs.def (atomic_bit_test_and_set_optab,
25942 atomic_bit_test_and_complement_optab,
25943 atomic_bit_test_and_reset_optab): New optabs.
25944 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
25945 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
25946 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
25947 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
25948 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
25949 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
25950 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
25951 * doc/md.texi (atomic_bit_test_and_set@var{mode},
25952 atomic_bit_test_and_complement@var{mode},
25953 atomic_bit_test_and_reset@var{mode}): Document.
25954 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
25955 atomic_bit_test_and_complement<mode>,
25956 atomic_bit_test_and_reset<mode>): New expanders.
25957 (atomic_bit_test_and_set<mode>_1,
25958 atomic_bit_test_and_complement<mode>_1,
25959 atomic_bit_test_and_reset<mode>_1): New insns.
25960
25961 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
25962
25963 PR rtl-optimization/70687
25964 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
25965 instead of unsigned HOST_WIDE_INT.
25966
25967 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
25968
25969 PR rtl-optimization/44281
25970 * hard-reg-set.h (struct target_hard_regs): New field
25971 x_fixed_nonglobal_reg_set.
25972 (fixed_nonglobal_reg_set): New macro.
25973 * reginfo.c (init_reg_sets_1): Initialize it.
25974 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
25975 of fixed_reg_set.
25976 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
25977
25978 2016-05-03 Bin Cheng <bin.cheng@arm.com>
25979
25980 PR tree-optimization/56541
25981 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
25982 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
25983 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
25984 (any_complicated_phi): new static variable.
25985 (aggressive_if_conv): delete.
25986 (if_convertible_phi_p): support phis with more than two arguments.
25987 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
25988 critical pred edges.
25989 (ifcvt_split_critical_edges): support phis with more than two
25990 arguments by checking new parameter. only split critical edges
25991 if needed.
25992 (tree_if_conversion): handle simd pragma marked loop using new
25993 local variable aggressive_if_conv. check any_complicated_phi.
25994
25995 2016-05-03 Bin Cheng <bin.cheng@arm.com>
25996
25997 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
25998 before using it.
25999
26000 2016-05-03 Bin Cheng <bin.cheng@arm.com>
26001
26002 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
26003 cbase.
26004
26005 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
26006
26007 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
26008 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
26009 define_insn_and_split.
26010 (mulsi3_i): New define_insn_and_split.
26011 (mulsi3_call): Convert to define_insn.
26012 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
26013 Remove constraints.
26014
26015 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
26016
26017 * machmode.h (mode_complex): Add support to give the complex mode
26018 for a given mode.
26019 (GET_MODE_COMPLEX_MODE): Likewise.
26020 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
26021 stored by build_complex_type and gfc_build_complex_type instead of
26022 trying to figure out the appropriate mode based on the size. Raise
26023 an assertion error, if the type was not set.
26024 * genmodes.c (struct mode_data): Add field for the complex type of
26025 the given type.
26026 (blank_mode): Likewise.
26027 (make_complex_modes): Remember the complex mode created in the
26028 base type.
26029 (emit_mode_complex): Write out the mode_complex array to map a
26030 type mode to the complex version.
26031 (emit_insn_modes_c): Likewise.
26032 * tree.c (build_complex_type): Set the complex type to use before
26033 calling layout_type.
26034 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
26035 support for __float128 complex datatypes.
26036 (rs6000_hard_regno_mode_ok): Likewise.
26037 (rs6000_setup_reg_addr_masks): Likewise.
26038 (rs6000_complex_function_value): Likewise.
26039 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
26040 __float128 and __ibm128 complex.
26041 (FLOAT128_IBM_P): Likewise.
26042 (ALTIVEC_ARG_MAX_RETURN): Likewise.
26043 * doc/extend.texi (Additional Floating Types): Document that
26044 -mfloat128 must be used to enable __float128. Document complex
26045 __float128 and __ibm128 support.
26046
26047 2016-05-02 Jakub Jelinek <jakub@redhat.com>
26048
26049 PR target/49244
26050 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
26051 char/short arguments promoted to int because of promote_prototypes.
26052
26053 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
26054
26055 * config/i386/predicates.md (register_ssemem_operand): New predicate.
26056 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
26057 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
26058 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
26059 alternatives using "enabled" attribute. Use register_ssemem_operand
26060 as operand 1 predicate.
26061 (*cmpi<unord>xf_i387): Split XFmode pattern from
26062 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
26063 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
26064 *absneg<mode>2_i387. Disable unsupported alternatives using
26065 "enabled" attribute.
26066 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
26067
26068 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
26069
26070 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
26071 marker.
26072 (oacc_loop_process): Check mask for loop termination.
26073
26074 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
26075
26076 * cif-code.def (CIF_THUNK): Add.
26077 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
26078 accidental change.
26079
26080 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
26081
26082 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
26083 (dump_inline_summary): Dump it.
26084 (fp_expression_p): New predicate.
26085 (estimate_function_body_sizes): Use it.
26086 (inline_merge_summary): Merge fp_expressions.
26087 (inline_read_section): Read fp_expressions.
26088 (inline_write_summary): Write fp_expressions.
26089 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
26090 codegen boundary if either caller or callee is !fp_expressions.
26091 * ipa-inline.h (inline_summary): Add fp_expressions.
26092 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
26093 to fp_expressions be sure the fp generation flags are updated.
26094
26095 2016-05-02 Jakub Jelinek <jakub@redhat.com>
26096
26097 PR rtl-optimization/70467
26098 * cse.c (cse_insn): Handle no-op MEM moves after folding.
26099
26100 PR rtl-optimization/70467
26101 * ipa-pure-const.c (check_call): Handle internal calls even in
26102 ipa mode like in local mode.
26103
26104 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
26105
26106 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
26107
26108 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
26109
26110 * match.pd (X u< X, X u> X): New transformations.
26111
26112 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
26113
26114 * flag-types.h (enum warn_strict_overflow_code): Move ...
26115 * coretypes.h: ... here.
26116 * fold-const.h (fold_overflow_warning): Declare.
26117 * fold-const.c (fold_overflow_warning): Make non-static.
26118 (fold_comparison): Move the transformation of X +- C1 CMP C2
26119 into X CMP C2 -+ C1 ...
26120 * match.pd: ... here.
26121 * gimple-fold.c (fold_stmt_1): Protect with
26122 fold_defer_overflow_warnings.
26123
26124 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
26125
26126 * omp-low.c (struct oacc_loop): Add 'inner' field.
26127 (new_oacc_loop_raw): Initialize it to zero.
26128 (oacc_loop_fixed_partitions): Initialize it.
26129 (oacc_loop_auto_partitions): Partition outermost loop to outermost
26130 available partitioning.
26131
26132 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
26133
26134 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
26135 register_operand.
26136 (umulsidi3): Likewise.
26137 (indirect_jump): Fix jump instruction assembly patterns.
26138
26139 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
26140
26141 PR target/70860
26142 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
26143 (nvptx_function_value): Assert non-NULL cfun.
26144
26145 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
26146
26147 PR rtl-optimization/70886
26148 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
26149
26150 * cselib.h (rtx_equal_for_cselib_1): Declare.
26151 (rtx_equal_for_cselib_p: New inline function.
26152 * cselib.c (rtx_equal_for_cselib_p): Delete.
26153 (rtx_equal_for_cselib_1): Make public.
26154
26155 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
26156
26157 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
26158 (register_mixssei387nonimm_operand): Remove predicate.
26159 * config/i386/i386.md (*fop_<mode>_comm): Merge from
26160 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
26161 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
26162 for TARGET_MIX_SSE_I387 alternatives.
26163 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
26164 Disable unsupported alternatives using "enabled" attribute. Use
26165 nonimm_ssenomem_operand as operand 1 predicate. Also check
26166 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
26167
26168 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
26169
26170 * tree.c (cst_and_fits_in_hwi): Simplify.
26171
26172 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
26173
26174 * tree.h (wi::to_wide): New function.
26175 * expr.c (expand_expr_real_1): Use wi::to_wide.
26176 * fold-const.c (int_const_binop_1): Likewise.
26177 (extract_muldiv_1): Likewise.
26178
26179 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
26180
26181 * wide-int.h: Update offset_int and widest_int documentation.
26182 (WI_SIGNED_SHIFT_RESULT): New macro.
26183 (wi::binary_shift): Define signed_shift_result_type for
26184 shifts on offset_int- and widest_int-like types.
26185 (generic_wide_int): Support <<= and >>= if << and >> are supported.
26186 * tree.h (int_bit_position): Use shift operators instead of wi::
26187 shifts.
26188 * alias.c (adjust_offset_for_component_ref): Likewise.
26189 * expr.c (get_inner_reference): Likewise.
26190 * fold-const.c (fold_comparison): Likewise.
26191 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
26192 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
26193 * tree-dfa.c (get_ref_base_and_extent): Likewise.
26194 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
26195 (stmt_kills_ref_p): Likewise.
26196 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
26197 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
26198 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
26199 (ao_ref_init_from_vn_reference): Likewise.
26200
26201 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
26202
26203 * wide-int.h: Update offset_int and widest_int documentation.
26204 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
26205 (wi::binary_traits): Allow ordered comparisons between offset_int and
26206 offset_int, between widest_int and widest_int, and between either
26207 of these types and basic C types.
26208 (operator <, <=, >, >=): Define for the same combinations.
26209 * tree.h (tree_int_cst_lt): Use comparison operators instead
26210 of wi:: comparisons.
26211 (tree_int_cst_le): Likewise.
26212 * gimple-fold.c (fold_array_ctor_reference): Likewise.
26213 (fold_nonarray_ctor_reference): Likewise.
26214 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
26215 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
26216 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
26217 * tree-sra.c (completely_scalarize): Likewise.
26218 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
26219 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
26220 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
26221 (check_for_binary_op_overflow): Likewise.
26222 (search_for_addr_array): Likewise.
26223 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
26224
26225 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
26226
26227 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
26228 (arc_save_restore): Likewise.
26229 (arc_dwarf_register_span): Likewise.
26230 (arc_output_pic_addr_const): Initialize suffix variable.
26231
26232 2016-05-02 Martin Liska <mliska@suse.cz>
26233
26234 * symbol-summary.h (function_summary::function_summary):
26235 Remove checking assert for all cgraph nodes.
26236 (function_summary::get): Check summary_uid.
26237 (symtab_insertion): Check summary_uid.
26238
26239 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
26240
26241 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
26242 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
26243 bmaskn instruction.
26244 (arc_dwarf_register_span): Remove enum keyword.
26245 (compact_memory_operand_p): New function.
26246 * config/arc/arc.h (reg_class): Add code density register classes.
26247 (REG_CLASS_NAMES): Likewise.
26248 (REG_CLASS_CONTENTS): Likewise.
26249 * config/arc/arc.md (*movqi_insn): Add code density instructions.
26250 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
26251 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
26252 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
26253 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
26254 constraints.
26255 (h, Rcd, Rsd, Rzd): New register constraints.
26256 (T): Use compact_memory_operand_p function.
26257 * config/arc/predicates.md (compact_load_memory_operand): Remove.
26258
26259 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
26260
26261 * config/sh/sh.md (*negnegt, *movtt): Remove.
26262
26263 2016-05-02 Marek Polacek <polacek@redhat.com>
26264 Tom de Vries <tom@codesourcery.com>
26265
26266 PR tree-optimization/70700
26267 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
26268 bigger than FIRST_REF_NODE.
26269
26270 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
26271
26272 PR target/52898
26273 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
26274 TARGET_CMPEQDI_T.
26275 (prepare_cbranch_operands): Don't use scratch register. Assume that
26276 function is used when pseudos can be created.
26277 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
26278 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
26279 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
26280 define_expand. Allow it only when pseudos can be created.
26281 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
26282
26283 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
26284
26285 * config/i386/constraints.md (BC): Only allow -1 operands.
26286 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
26287 Add "enabled" attribute. Update XI mode attribute calculation.
26288 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
26289 (*movoi_internal_avx): Update XI mode attribute calculation.
26290 (*movti_internal): Ditto.
26291
26292 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
26293
26294 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
26295 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
26296
26297 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
26298
26299 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
26300 statement on instruction code. Remove trailing spaces.
26301 (altivec_expand_stv_builtin): Likewise.
26302
26303 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
26304
26305 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
26306 (TARGET_FPU_DOUBLE): Simplify.
26307 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
26308 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
26309 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
26310 with 'TARGET_FPU_DOUBLE'.
26311 * config/sh/sh.md: Likewise.
26312
26313 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
26314
26315 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
26316 SH_DIV_STR_FOR_SIZE): Remove.
26317 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
26318 SH_DIV_STR_FOR_SIZE): Remove.
26319
26320 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
26321
26322 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
26323 logical_reg_operand): Delete.
26324 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
26325 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
26326 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
26327 match_operand and match_test.
26328 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
26329 variables on their first use. Return bool values.
26330 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
26331 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
26332 arith_reg_operand for input operand. Remove empty constraints.
26333 (xorsi3): Delete.
26334 (*xorsi3_compact): Rename to xorsi3.
26335 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
26336 (*zero_extend<mode>si2_disp_mem): Update comment.
26337 (mov_nop): Delete.
26338
26339 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
26340
26341 * config/sh/t-sh: Remove SH5 support.
26342 * config.gcc: Likewise.
26343 * configure: Likewise.
26344
26345 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26346
26347 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
26348
26349 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
26350
26351 * config/sh/sh.c (register_sh_passes, sh_option_override,
26352 sh_print_operand, prepare_move_operands,
26353 sh_can_follow_jump): Remove TARGET_SH1 checks.
26354 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
26355 PROMOTE_MODE): Likewise.
26356 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
26357 movdi): Likewise.
26358
26359 2016-04-30 Alan Modra <amodra@gmail.com>
26360
26361 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
26362 restoring when fixed_reg_p, but allow out-of-line or stmw save.
26363 Check for user regs later to avoid unnecessary looping over regs.
26364 Merge user reg check with non-saved reg check. Don't force
26365 inline VR restore when static chain used.
26366 (rs6000_frame_related): Omit eh_frame info for user regs when
26367 saving.
26368 (fixed_regs_p): Delete.
26369
26370 2016-04-30 Alan Modra <amodra@gmail.com>
26371
26372 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
26373 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
26374 Update all uses.
26375
26376 2016-04-30 Alan Modra <amodra@gmail.com>
26377
26378 PR target/69645
26379 * config/rs6000/rs6000.c (fixed_reg_p): New function.
26380 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
26381 Update all uses.
26382
26383 2016-04-30 Alan Modra <amodra@gmail.com>
26384
26385 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
26386 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
26387 flag_pic test for Darwin.
26388
26389 2016-04-30 Alan Modra <amodra@gmail.com>
26390
26391 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
26392 throw_calls_crossed.
26393 (REG_FREQ_CALLS_CROSSED): Delete.
26394 (REG_N_THROWING_CALLS_CROSSED): Delete.
26395 * regstat.c (regstat_bb_compute_ri): Don't calculate
26396 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
26397 (dump_reg_info): Don't print call cross frequency.
26398 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
26399 and REG_N_THROWING_CALLS_CROSSED.
26400
26401 2016-04-30 Alan Modra <amodra@gmail.com>
26402
26403 * regs.h (struct reg_info_t): Delete live_length.
26404 (REG_LIVE_LENGTH): Delete macro.
26405 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
26406 local_live, local_processed and local_live_last_luid params.
26407 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
26408 Formatting fixes.
26409 (regstat_compute_ri): Adjust for above. Don't set
26410 REG_LIVE_LENGTH.
26411 (dump_reg_info): Don't print live length.
26412 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
26413 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
26414 Localize loop_depth var.
26415
26416 2016-04-30 Alan Modra <amodra@gmail.com>
26417
26418 * ira.c (enum valid_equiv): New.
26419 (validate_equiv_mem): Return enum.
26420 (update_equiv_mem): Create replacement in more cases.
26421 (add_store_equivs): Update validate_equiv_mem call.
26422
26423 2016-04-30 Alan Modra <amodra@gmail.com>
26424
26425 * ira.c (combine_and_move_insns): Rather than scanning insns,
26426 use DF infrastucture to find use and def insns.
26427
26428 2016-04-30 Alan Modra <amodra@gmail.com>
26429
26430 ira.c (combine_and_move_insns): Move invariant conditions..
26431 (ira.c): ..to here. Call combine_and_move_insns before
26432 add_store_equivs. Call grow_reg_equivs later. Allocate
26433 req_equiv later using max_reg_num() rather than global max_regno.
26434 (contains_replace_regs): Delete.
26435 (add_store_equivs): Remove contains_replace_regs test.
26436
26437 2016-04-30 Alan Modra <amodra@gmail.com>
26438
26439 * ira.c (struct equiv_mem_data): New.
26440 (equiv_mem, equiv_mem_modified): Delete static vars.
26441 (validate_equiv_mem_from_store): Use "data" param to communicate..
26442 (validate_equiv_mem): ..from here.
26443
26444 2016-04-30 Alan Modra <amodra@gmail.com>
26445
26446 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
26447 split out from..
26448 (update_reg_equivs): ..here. Move allocation and freeing of
26449 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
26450 end_alias_analysis to..
26451 (ira): ..here.
26452
26453 2016-04-30 Alan Modra <amodra@gmail.com>
26454
26455 * ira.c (pdx_subregs): Delete.
26456 (struct equivalence): Add pdx_subregs field.
26457 (set_paradoxical_subreg): Remove pdx_subregs param. Update
26458 pdx_subregs access.
26459 (update_equiv_regs): Don't create or free pdx_subregs. Update
26460 pdx_subregs access.
26461
26462 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26463
26464 * config/rs6000/altivec.h: Change definitions of vec_xl and
26465 vec_xst.
26466 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
26467 (LD_ELEMREV_V2DI): New.
26468 (LD_ELEMREV_V4SF): New.
26469 (LD_ELEMREV_V4SI): New.
26470 (LD_ELEMREV_V8HI): New.
26471 (LD_ELEMREV_V16QI): New.
26472 (ST_ELEMREV_V2DF): New.
26473 (ST_ELEMREV_V2DI): New.
26474 (ST_ELEMREV_V4SF): New.
26475 (ST_ELEMREV_V4SI): New.
26476 (ST_ELEMREV_V8HI): New.
26477 (ST_ELEMREV_V16QI): New.
26478 (XL): New.
26479 (XST): New.
26480 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
26481 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
26482 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
26483 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
26484 (altivec_expand_builtin): Add handling for
26485 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
26486 (rs6000_invalid_builtin): Add error-checking for
26487 RS6000_BTM_P9_VECTOR.
26488 (altivec_init_builtins): Define builtins used to implement vec_xl
26489 and vec_xst.
26490 (rs6000_builtin_mask_names): Define power9-vector.
26491 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
26492 (RS6000_BTM_P9_VECTOR): Define.
26493 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
26494 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
26495 (vsx_ld_elemrev_v2df): Likewise.
26496 (vsx_ld_elemrev_v4sf): Likewise.
26497 (vsx_ld_elemrev_v4si): Likewise.
26498 (vsx_ld_elemrev_v8hi): Likewise.
26499 (vsx_ld_elemrev_v16qi): Likewise.
26500 (vsx_st_elemrev_v2df): Likewise.
26501 (vsx_st_elemrev_v2di): Likewise.
26502 (vsx_st_elemrev_v4sf): Likewise.
26503 (vsx_st_elemrev_v4si): Likewise.
26504 (vsx_st_elemrev_v8hi): Likewise.
26505 (vsx_st_elemrev_v16qi): Likewise.
26506 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
26507 grammar.
26508
26509 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
26510
26511 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
26512 out into ...
26513 (simplify_control_stmt_condition_1): ... here. Recurse into
26514 BIT_AND_EXPRs and BIT_IOR_EXPRs.
26515
26516 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
26517
26518 PR target/69810
26519 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
26520 (zero_extendqi<mode>2_dot): Revert earlier conversion from
26521 define_insn_and_split to define_insn.
26522 (zero_extendqi<mode>2_dot2): Same.
26523 (extendqi<mode>2_dot): Same.
26524 (extendqi<mode>2_dot2): Same.
26525
26526 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
26527
26528 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
26529 (probe_stack): New expander.
26530 (probe_stack_<mode>): New insn pattern.
26531
26532 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
26533
26534 * config/i386/i386.md
26535 (operations with memory inputs setting flags peephole2):
26536 Remove uneeded REG_P checks. Cleanup pattern generation.
26537
26538 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
26539
26540 * tree-vect-loop.c (vect_transform_loop): Fix
26541 nb_iterations_upper_bound computation for vectorized loop.
26542
26543 2016-04-29 Marek Polacek <polacek@redhat.com>
26544 Jakub Jelinek <jakub@redhat.com>
26545
26546 PR sanitizer/70342
26547 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
26548 TARGET_EXPR_SLOT as a base.
26549
26550 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
26551
26552 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
26553 with 'rCm2' constraints to limit possible immediate size.
26554 (*load_zeroextendqisi_update): Likewise.
26555 (*load_signextendqisi_update): Likewise.
26556 (*loadhi_update): Likewise.
26557 (*load_zeroextendhisi_update): Likewise.
26558 (*load_signextendhisi_update): Likewise.
26559 (*loadsi_update): Likewise.
26560 (*loadsf_update): Likewise.
26561
26562 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
26563
26564 * config/i386/predicates.md (constm1_operand): Fix comparison.
26565
26566 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
26567
26568 * testsuite/gcc.target/arc/ieee_eq.c: New test.
26569
26570 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
26571
26572 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
26573 remaining SH5 related settings.
26574 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
26575 shmedia_prepare_call_address): Delete.
26576 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
26577 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
26578 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
26579 UNSUPPORTED_SH2A): Remove m5 checks.
26580 (sh_divide_strategy_e): Remove SH5 division strategies.
26581 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
26582 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
26583
26584 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
26585
26586 * config/s390/s390.c (s390_rtx_costs): Update documentation.
26587
26588 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26589
26590 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
26591 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
26592 Change lder to ldr.
26593 * config/s390/vector.md ("mov<mode>"): Likewise.
26594
26595 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
26596
26597 * config/s390/constraints.md ("U", "W"): Invoke
26598 s390_mem_constraint with "ZR" and "ZT".
26599 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
26600 addresses when using LRA. Accept also short displacements for S
26601 and T constraints. Do not check for long displacement target for
26602 S and T constraints.
26603 (s390_mem_constraint): Remove handling of U and W constraints.
26604 * config/s390/s390.md (various patterns): Remove the short
26605 displacement constraints (Q and R) if a long displacement
26606 constraint is present. Add longdisp as required CPU capability.
26607 * config/s390/vector.md: Likewise.
26608 * config/s390/vx-builtins.md: Likewise.
26609
26610 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
26611
26612 PR target/60040
26613 * reload1.c (reload): Call finish_spills before
26614 restarting reload loop. Skip select_reload_regs
26615 if update_eliminables_and_spill returns true.
26616
26617 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
26618
26619 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
26620 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
26621 (umulhisi3_imm): Update predicates and constraint letters.
26622 (umulhisi3_reg): Declare instruction as commutative.
26623 * config/arc/constraints.md (J12, J16): New constraints.
26624 * config/arc/predicates.md (short_unsigned_const_operand): New
26625 predicate.
26626 (arc_short_operand): Likewise.
26627 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
26628
26629 2016-04-29 Richard Biener <rguenther@suse.de>
26630
26631 PR tree-optimization/13962
26632 PR tree-optimization/65686
26633 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
26634 * tree-ssa-alias.c (ptrs_compare_unequal): New function
26635 using PTA to compare pointers.
26636 * match.pd: Add pattern for pointer equality compare simplification
26637 using ptrs_compare_unequal.
26638
26639 2016-04-29 Richard Biener <rguenther@suse.de>
26640
26641 * stor-layout.c (layout_type): Do not build a pointer-to-element
26642 type for arrays.
26643
26644 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
26645
26646 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
26647 Use SWI mode iterator. Use general_reg_operand predicate.
26648 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
26649 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
26650 predicates.
26651
26652 2016-04-29 Jakub Jelinek <jakub@redhat.com>
26653
26654 PR middle-end/70843
26655 * fold-const.c (operand_equal_p): Don't verify hash value equality
26656 if arg0 == arg1.
26657 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
26658 and OMP_CLAUSE.
26659
26660 2016-04-28 Jakub Jelinek <jakub@redhat.com>
26661
26662 PR target/70858
26663 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
26664 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
26665 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
26666 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
26667 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
26668
26669 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
26670
26671 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
26672 to info. Don't initialize separate fields to 0. Clean up
26673 formatting a bit.
26674
26675 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
26676
26677 * config/i386/i386.md (peephole2s for operations with memory inputs):
26678 Use SWI mode iterator.
26679 (peephole2s for operations with memory outputs): Ditto.
26680 Do not check for stack checking probe.
26681
26682 (probe_stack): Remove expander.
26683
26684 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
26685 Andrew Burgess <andrew.burgess@embecosm.com>
26686
26687 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
26688 operands as 32-bits.
26689
26690 2016-04-28 Jason Merrill <jason@redhat.com>
26691
26692 * gdbinit.in: Skip line-map.h.
26693
26694 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
26695 Andrew Burgess <andrew.burgess@embecosm.com>
26696
26697 * config/arc/arc.c (arc_conditional_register_usage): Take
26698 TARGET_RRQ_CLASS into account.
26699 (arc_print_operand): Support printing 'p' and 's' operands.
26700 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
26701 as 0.
26702 (TARGET_RRQ_CLASS): Define.
26703 (IS_POWEROF2_OR_0_P): Define.
26704 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
26705 alternatives.
26706 (*tst_movb): New define_insn.
26707 (*tst): Avoid recognition if it could prevent '*tst_movb'
26708 combination; replace c/CnL with c/Chs alternative.
26709 (*tst_bitfield_tst): New define_insn.
26710 (*tst_bitfield_asr): New define_insn.
26711 (*tst_bitfield): New define_insn.
26712 (andsi3_i): Add Rrq variant.
26713 (extzv): New define_expand.
26714 (insv): New define_expand.
26715 (*insv_i): New define_insn.
26716 (*movb): New define_insn.
26717 (*movb_signed): New define_insn.
26718 (*movb_high): New define_insn.
26719 (*movb_high_signed): New define_insn.
26720 (*movb_high_signed + 1): New define_split pattern.
26721 (*mrgb): New define_insn.
26722 (*mrgb + 1): New define_peephole2 pattern.
26723 (*mrgb + 2): New define_peephole2 pattern.
26724 * config/arc/arc.opt (mbitops): New option for nps400, uses
26725 TARGET_NPS_BITOPS_DEFAULT.
26726 * config/arc/constraints.md (q): Make register class conditional.
26727 (Rrq): New register constraint.
26728 (Chs): New constraint.
26729 (Clo): New constraint.
26730 (Chi): New constraint.
26731 (Cbf): New constraint.
26732 (Cbn): New constraint.
26733 (C18): New constraint.
26734 (Cbi): New constraint.
26735
26736 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
26737
26738 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
26739 dst->popcount.
26740 (bitmap_intersection_of_preds): Ditto.
26741 (bitmap_union_of_succs): Ditto.
26742 (bitmap_union_of_preds): Ditto.
26743 * sbitmap.c (do_popcount): Delete.
26744 (BITMAP_DEBUGGING): Delete.
26745 (sbitmap_verify_popcount): Delete.
26746 (sbitmap_alloc): Don't initialize the popcount field.
26747 (sbitmap_alloc_with_popcount): Delete.
26748 (sbitmap_resize): Don't resize the popcount array.
26749 (sbitmap_vector_alloc): Don't initialize the popcount field.
26750 (bitmap_copy): Don't copy the popcount array.
26751 (bitmap_clear): Don't clear the popcount array.
26752 (bitmap_clear): Delete the popcount array handling.
26753 (bitmap_ior_and_compl): Delete the popcount assert.
26754 (bitmap_not): Ditto.
26755 (bitmap_and_compl): Ditto.
26756 (bitmap_and): Delete the popcount array handling.
26757 (bitmap_xor): Ditto.
26758 (bitmap_ior): Ditto.
26759 (bitmap_or_and): Delete the popcount assert.
26760 (bitmap_and_or): Ditto.
26761 (popcount_table): Delete.
26762 (sbitmap_elt_popcount): Delete.
26763 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
26764 (bitmap_set_bit): Delete the popcount assert.
26765 (bitmap_clear_bit): Ditto.
26766 (sbitmap_free): Don't free the popcount array.
26767 (sbitmap_alloc_with_popcount): Delete declaration.
26768 (sbitmap_popcount): Ditto.
26769
26770 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
26771 Andrew Burgess <andrew.burgess@embecosm.com>
26772
26773 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
26774 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
26775 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
26776 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
26777 * config/arc/arc.opt (mcmem): New option.
26778 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
26779 supply length for r/m alternative.
26780 (*extendqisi2_ac): Likewise.
26781 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
26782 r/Uex alternative.
26783 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
26784 (movhi_insn): Likewise.
26785 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
26786 (*zero_extendqihi2_i): Add r/Ucm alternative.
26787 (*zero_extendqisi2_ac): Likewise.
26788 (*zero_extendhisi2_i): Likewise.
26789 * config/arc/constraints.md (Uex): New memory constraint.
26790 (Ucm): New define_constraint.
26791 * config/arc/predicates.md (long_immediate_loadstore_operand):
26792 Return 0 for MEM with cmem_address address.
26793 (cmem_address_0): New predicates.
26794 (cmem_address_1): Likewise.
26795 (cmem_address_2): Likewise.
26796 (cmem_address): Likewise.
26797
26798 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
26799
26800 * config/rs6000/rs6000.c (machine_function): Rename
26801 insn_chain_scanned_p to spe_insn_chain_scanned_p.
26802 (rs6000_stack_info): Adjust.
26803
26804 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
26805 Andrew Burgess <andrew.burgess@embecosm.com>
26806
26807 * config/arc/constraints.md (Usd): Convert to define_constraint.
26808 (Us<): Likewise.
26809 (Us>): Likewise.
26810
26811 2016-04-28 Jakub Jelinek <jakub@redhat.com>
26812
26813 PR target/70821
26814 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
26815 Add new peephole2 where the first insn is *mov<mode>_or instead of
26816 *mov<mode>_internal.
26817
26818 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
26819
26820 * tracer.c (bb_seen): Make static.
26821
26822 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
26823
26824 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
26825 support, setup defaults.
26826 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
26827 * config/arc/arc.c (arc_init): Add NPS400 support.
26828 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
26829 (TARGET_ARC700): NPS400 is also an ARC700.
26830 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
26831
26832 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
26833
26834 PR target/70668
26835 * config/nds32/nds32.md (casesi): Don't access the operands array
26836 out of bounds.
26837
26838 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
26839
26840 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
26841 (or $-1,reg peephole2): Ditto.
26842 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
26843
26844 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
26845
26846 * doc/extend.texi (Common Function Attributes) [optimize]:
26847 Discourage use of the optimize attribute.
26848
26849 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
26850
26851 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
26852 special case builtin.
26853 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
26854 ALTIVEC_BUILTIN_VEC_ADDE.
26855 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
26856 support for ALTIVEC_BUILTIN_VEC_ADDE.
26857 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
26858 for __builtin_vec_adde.
26859
26860 2016-04-28 Jakub Jelinek <jakub@redhat.com>
26861
26862 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
26863 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
26864
26865 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26866
26867 PR testsuite/70595
26868 * doc/sourcebuild.texi (Effective-Target Keywords, Other
26869 attributes): Document cilkplus_runtime.
26870
26871 2016-04-28 Martin Jambor <mjambor@suse.cz>
26872
26873 * tree-cfg.c (verify_expr): Verify that local declarations belong to
26874 this function. Call verify_expr on MEM_REFs and bases of other
26875 handled_components.
26876
26877 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26878
26879 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
26880 for WORD_REGISTER_OPERATIONS to runtime check.
26881
26882 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26883
26884 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
26885
26886 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26887
26888 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
26889 big-endian compilation.
26890 * config/arc/arc.md (addf3): Likewise.
26891 (subdf3): Likewise.
26892 (muldf3): Likewise.
26893
26894 2016-04-28 Richard Biener <rguenther@suse.de>
26895
26896 PR tree-optimization/70840
26897 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
26898 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
26899 Mark x * pow(x,c) -> pow(x,c+1) commutative.
26900 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
26901
26902 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26903
26904 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
26905 and explain why in a comment.
26906
26907 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26908
26909 * config/arc/arc.md (cpu_facility): Add fpx variant.
26910 (subdf3): Prohibit use reverse sub when assist operations option
26911 is enabled.
26912 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
26913 instructions only when FPX is enabled.
26914 * testsuite/gcc.target/arc/trsub.c: New test.
26915
26916 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
26917
26918 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
26919 mult_operator when calculating "type" attribute.
26920 (*fop_<mode>_1_i387): Ditto.
26921 (*fop_xf_1_i387): Ditto.
26922 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
26923 Use std::swap to swap operands. Use RTL expressions to generate
26924 converted pattern.
26925
26926 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26927 Joern Rennecke <joern.rennecke@embecosm.com>
26928
26929 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
26930 declaration.
26931 (emit_pic_move): Remove.
26932 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
26933 * config/arc/arc.c (emit_pic_move): Removed.
26934 (TARGET_HAVE_TLS): Define.
26935 (arc_conditional_register_usage): Test for arc_tp_regno.
26936 (arc_print_operand, arc_print_operand_address): Handle TLS
26937 unspecs.
26938 (arc_needs_pcl_p): New function.
26939 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
26940 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
26941 (arc_raw_symbolic_reference_mentioned_p): Likewise.
26942 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
26943 (arc_legitimize_tls_address): Likewise.
26944 (DTPOFF_ZERO_SYM): Define.
26945 (arc_legitimize_pic_address): Make it static, handle TLS cases.
26946 (arc_output_pic_addr_const): Print TLS unspecs.
26947 (prepare_pic_move): New function, replaces emit_pic_move.
26948 (arc_legitimate_constant_p): Handle TLS unspecs.
26949 (arc_legitimate_address_p): Likewise.
26950 (arc_rewrite_small_data_p): Use assert for TLS constants.
26951 (prepare_move_operands): Use prepare_pic_move.
26952 (arc_legitimize_address): Legitimize tls addresses.
26953 (arc_epilogue_uses): Check for arc_tp_regno.
26954 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
26955 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
26956 Define.
26957 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
26958 Likewise.
26959 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
26960 %(arc_tls_extra_start_spec).
26961 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
26962 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
26963 (EH_USES): Define.
26964 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
26965 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
26966 (UNSPEC_TLS_OFF): Add.
26967 (R10_REG): Define.
26968 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
26969 (get_thread_pointersi): New patterns.
26970 * config/arc/arc.opt (mtp-regno): New option.
26971 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
26972 (move_dest_operand): Likewise.
26973 * configure: Regenerate.
26974 * configure.ac: Add arc*-*-* case to test for tls.
26975 * doc/invoke.texi (ARC options): Document mtp-regno.
26976
26977 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26978
26979 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
26980 the new ARC HS SIMD instructions.
26981 (arc_preferred_simd_mode): New function.
26982 (arc_autovectorize_vector_sizes): Likewise.
26983 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
26984 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
26985 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
26986 (arc_init_builtins): Add new SIMD builtin types.
26987 (arc_split_move): Handle 64 bit vector moves.
26988 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
26989 (TARGET_PLUS_QMACW): Define.
26990 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
26991 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
26992 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
26993 (VSUBADD4H): New builtins.
26994 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
26995 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
26996
26997 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
26998 Matthias Klose <doko@debian.org>
26999
27000 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
27001
27002 2016-04-28 Richard Biener <rguenther@suse.de>
27003
27004 PR middle-end/70777
27005 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
27006 canonicalization.
27007
27008 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
27009
27010 * common/config/sh/sh-common.c: Remove SH5 support.
27011 * config/sh/constraints.md: Likewise.
27012 * config/sh/config/sh/elf.h: Likewise.
27013 * config/sh/linux.h: Likewise.
27014 * config/sh/netbsd-elf.h: Likewise.
27015 * config/sh/predicates.md: Likewise.
27016 * config/sh/sh-c.c: Likewise.
27017 * config/sh/sh-protos.h: Likewise.
27018 * config/sh/sh.c: Likewise.
27019 * config/sh/sh.h: Likewise.
27020 * config/sh/sh.md: Likewise.
27021 * config/sh/sh.opt: Likewise.
27022 * config/sh/sync.md: Likewise.
27023 * config/sh/sh64.h: Delete.
27024 * config/sh/shmedia.h: Likewise.
27025 * config/sh/shmedia.md: Likewise.
27026 * config/sh/sshmedia.h: Likewise.
27027 * config/sh/t-netbsd-sh5-64: Likewise.
27028 * config/sh/t-sh64: Likewise.
27029 * config/sh/ushmedia.h: Likewise.
27030
27031 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
27032
27033 * config/i386/i386.md (sign_extend to memory peephole2s): Use
27034 general_reg_operand instead of register_operand predicate.
27035
27036 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27037
27038 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
27039
27040 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
27041
27042 * match.pd (A - B > A, A + B < A): New transformations.
27043
27044 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
27045
27046 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
27047 which defaults to true. Emit an outer pair of parentheses only if
27048 EMIT_PARENS. When continuing a chain of && or || (or & or |),
27049 don't emit parentheses for the right-hand operand.
27050
27051 2016-04-27 Jeff Law <law@redhat.com>
27052
27053 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
27054
27055 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27056
27057 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
27058 (altivec_lvx_<mode>_internal): Document.
27059 (altivec_lvx_<mode>_2op): New define_insn.
27060 (altivec_lvx_<mode>_1op): Likewise.
27061 (altivec_lvx_<mode>_2op_si): Likewise.
27062 (altivec_lvx_<mode>_1op_si): Likewise.
27063 (altivec_stvx_<mode>): Remove.
27064 (altivec_stvx_<mode>_internal): Document.
27065 (altivec_stvx_<mode>_2op): New define_insn.
27066 (altivec_stvx_<mode>_1op): Likewise.
27067 (altivec_stvx_<mode>_2op_si): Likewise.
27068 (altivec_stvx_<mode>_1op_si): Likewise.
27069 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27070 Expand vec_ld and vec_st during parsing.
27071 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
27072 changes.
27073 (altivec_expand_stvx_be): Likewise.
27074 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
27075 address-masking behavior in RTL.
27076 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
27077 address-masking behavior in RTL.
27078 (altivec_expand_builtin): Change builtin code arguments for calls
27079 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
27080 (insn_is_swappable_p): Avoid incorrect swap optimization in the
27081 presence of lvx/stvx patterns.
27082 (alignment_with_canonical_addr): New function.
27083 (alignment_mask): Likewise.
27084 (find_alignment_op): Likewise.
27085 (recombine_lvx_pattern): Likewise.
27086 (recombine_stvx_pattern): Likewise.
27087 (recombine_lvx_stvx_patterns): Likewise.
27088 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
27089 stvx patterns from expand.
27090 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
27091 expansions.
27092 (vector_altivec_store_<mode>): Likewise.
27093
27094 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
27095
27096 * config/aarch64/aarch64.md
27097 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
27098 remove the "fp" attributes.
27099 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
27100 add the "simd" attributes.
27101 (*movdf_aarch64): Likewise.
27102 (*movtf_aarch64): Remove the "fp" attributes.
27103 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
27104 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
27105
27106 2016-04-27 David Malcolm <dmalcolm@redhat.com>
27107
27108 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
27109 rtx to rtx_code_label *.
27110 * rtl.h (maybe_set_first_label_num): Likewise.
27111
27112 2016-04-27 David Malcolm <dmalcolm@redhat.com>
27113
27114 * df-core.c (df_add_problem): Make the problem param be const.
27115 (df_remove_problem): Make local "problem" be const.
27116 * df-problems.c (problem_RD): Make const.
27117 (problem_LR): Likewise.
27118 (problem_LIVE): Likewise.
27119 (problem_MIR): Likewise.
27120 (problem_CHAIN): Likewise.
27121 (problem_WORD_LR): Likewise.
27122 (problem_NOTE): Likewise.
27123 (problem_MD): Likewise.
27124 * df-scan.c (problem_SCAN): Likewise.
27125 * df.h (struct df_problem): Make field "dependent_problem" be
27126 const.
27127 (struct dataflow): Likewise for field "problem".
27128 (df_add_problem): Make param const.
27129
27130 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
27131
27132 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
27133 inter-unit moves to/from vector registers are enabled. Do not disable
27134 for TARGET_MMX.
27135
27136 2016-04-27 David Malcolm <dmalcolm@redhat.com>
27137
27138 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
27139 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
27140 #define to...
27141 (enum df_problem_id): ...this new enum.
27142 (struct df_problem): Convert field "id" from "int" to
27143 enum df_problem_id.
27144
27145 2016-04-27 David Malcolm <dmalcolm@redhat.com>
27146
27147 * rtl.def: Update comment for "things in the instruction chain" to
27148 reflect the removal of the leading "i" field for INSN_UID in
27149 r210360. Fix bogus apostrophe.
27150
27151 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
27152
27153 * config/i386/i386.md
27154 (lea arith with mem operand + setcc peephole2): Set operator mode.
27155
27156 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
27157
27158 PR target/70155
27159 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
27160 (dimode_scalar_to_vector_candidate_p): This.
27161 (timode_scalar_to_vector_candidate_p): New function.
27162 (scalar_to_vector_candidate_p): Likewise.
27163 (timode_check_non_convertible_regs): Likewise.
27164 (timode_remove_non_convertible_regs): Likewise.
27165 (remove_non_convertible_regs): Likewise.
27166 (remove_non_convertible_regs): Renamed to ...
27167 (dimode_remove_non_convertible_regs): This.
27168 (scalar_chain::~scalar_chain): Make it virtual.
27169 (scalar_chain::compute_convert_gain): Make it pure virtual.
27170 (scalar_chain::mark_dual_mode_def): Likewise.
27171 (scalar_chain::convert_insn): Likewise.
27172 (scalar_chain::convert_registers): Likewise.
27173 (scalar_chain::add_to_queue): Make it protected.
27174 (scalar_chain::emit_conversion_insns): Likewise.
27175 (scalar_chain::replace_with_subreg): Likewise.
27176 (scalar_chain::replace_with_subreg_in_insn): Likewise.
27177 (scalar_chain::convert_op): Likewise.
27178 (scalar_chain::convert_reg): Likewise.
27179 (scalar_chain::make_vector_copies): Likewise.
27180 (scalar_chain::convert_registers): New pure virtual function.
27181 (class dimode_scalar_chain): New class.
27182 (class timode_scalar_chain): Likewise.
27183 (scalar_chain::mark_dual_mode_def): Renamed to ...
27184 (dimode_scalar_chain::mark_dual_mode_def): This.
27185 (timode_scalar_chain::mark_dual_mode_def): New function.
27186 (timode_scalar_chain::convert_insn): Likewise.
27187 (dimode_scalar_chain::convert_registers): Likewise.
27188 (scalar_chain::compute_convert_gain): Renamed to ...
27189 (dimode_scalar_chain::compute_convert_gain): This.
27190 (scalar_chain::replace_with_subreg): Renamed to ...
27191 (dimode_scalar_chain::replace_with_subreg): This.
27192 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
27193 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
27194 (scalar_chain::make_vector_copies): Renamed to ...
27195 (dimode_scalar_chain::make_vector_copies): This.
27196 (scalar_chain::convert_reg): Renamed to ...
27197 (dimode_scalar_chain::convert_reg ): This.
27198 (scalar_chain::convert_op): Renamed to ...
27199 (dimode_scalar_chain::convert_op): This.
27200 (scalar_chain::convert_insn): Renamed to ...
27201 (dimode_scalar_chain::convert_insn): This.
27202 (scalar_chain::convert): Call convert_registers.
27203 (convert_scalars_to_vector): Change to scalar_chain pointer to
27204 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
27205 in 32-bit mode. Delete scalar_chain pointer. Call
27206 free_dominance_info in 64-bit mode.
27207 (pass_stv::gate): Remove TARGET_64BIT check.
27208 (ix86_option_override): Put the 64-bit STV pass before the CSE
27209 pass.
27210
27211 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
27212
27213 * dwarf2out.h (struct dw_loc_descr_node): Remove the
27214 dw_loc_frame_offset field.
27215 * dwarf2out.c (new_loc_descr): Likewise.
27216 (resolve_args_picking_1): Turn the VISITED hash set into a
27217 FRAME_OFFSET hash map. Use it to associate a frame offset to
27218 visited nodes. Remove uses of the CHECKING_P macro.
27219 (resolve_args_picking): Update call to resolve_args_picking_1.
27220
27221 2016-04-27 Martin Liska <mliska@suse.cz>
27222
27223 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
27224 (free_loop_data): Release vuses of groups.
27225
27226 2016-04-27 Bin Cheng <bin.cheng@arm.com>
27227
27228 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
27229 instead of redundant use_id and boolean have_use_for.
27230 (struct iv_use): Change sub_id into group_id. Remove field next.
27231 Move fields: related_cands, n_map_members, cost_map and selected
27232 to ...
27233 (struct iv_group): ... here. New structure.
27234 (struct iv_common_cand): Use structure declaration directly.
27235 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
27236 (MAX_CONSIDERED_USES): Rename macro to ...
27237 (MAX_CONSIDERED_GROUPS): ... here.
27238 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
27239 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
27240 (dump_uses): Rename to ...
27241 (dump_groups): ... here. Update all uses.
27242 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
27243 (find_induction_variables): Refactor format of dump information.
27244 (record_sub_use): Delete.
27245 (record_use): Update all uses.
27246 (record_group): New function.
27247 (record_group_use, find_interesting_uses_op): Call above functions.
27248 Update all uses.
27249 (find_interesting_uses_cond): Ditto.
27250 (group_compare_offset): New function.
27251 (split_all_small_groups): Rename to ...
27252 (split_small_address_groups_p): ... here. Update all uses.
27253 (split_address_groups): Update all uses.
27254 (find_interesting_uses): Refactor format of dump information.
27255 (add_candidate_1): Update all uses. Remove redundant check on iv,
27256 base and step.
27257 (add_candidate, record_common_cand): Remove redundant assert.
27258 (add_iv_candidate_for_biv): Update use.
27259 (add_iv_candidate_derived_from_uses): Update all uses.
27260 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
27261 (alloc_use_cost_map): Ditto.
27262 (set_use_iv_cost, get_use_iv_cost): Rename to ...
27263 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
27264 (determine_use_iv_cost_generic): Ditto.
27265 (determine_group_iv_cost_generic): Ditto.
27266 (determine_use_iv_cost_address): Ditto.
27267 (determine_group_iv_cost_address): Ditto.
27268 (determine_use_iv_cost_condition): Ditto.
27269 (determine_group_iv_cost_cond): Ditto.
27270 (determine_use_iv_cost): Ditto.
27271 (determine_group_iv_cost): Ditto.
27272 (set_autoinc_for_original_candidates): Update all uses.
27273 (find_iv_candidates): Update all uses. Refactor dump information.
27274 (determine_use_iv_costs): Ditto.
27275 (determine_iv_costs): Ditto.
27276 (iv_ca_cand_for_use): Rename to ...
27277 (iv_ca_cand_for_group): ... here. Update all uses.
27278 (iv_ca_add_use, iv_ca_add_group): Ditto.
27279 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
27280 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
27281 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
27282 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
27283 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
27284 (create_new_iv, adjust_iv_update_pos): Ditto.
27285 (rewrite_use_address): Delete.
27286 (rewrite_use_address_1): Rename to ...
27287 (rewrite_use_address): ... here.
27288 (rewrite_use_compare): Update all uses.
27289 (rewrite_use): Delete.
27290 (rewrite_uses): Rename to ...
27291 (rewrite_groups): ... here. Update all uses.
27292 (remove_unused_ivs, free_loop_data): Update all uses.
27293 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
27294
27295 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27296
27297 * rtlanal.c (nonzero_bits1): Convert preprocessor check
27298 for WORD_REGISTER_OPERATIONS to runtime check.
27299
27300 2016-04-27 Richard Biener <rguenther@suse.de>
27301
27302 PR ipa/70760
27303 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
27304 aggregate_value_p to determine if a function result is
27305 returned by reference.
27306 (ipa_pta_execute): Functions having their address taken are
27307 not automatically nonlocal.
27308
27309 2016-04-27 Jakub Jelinek <jakub@redhat.com>
27310
27311 PR sanitizer/70683
27312 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
27313 * fold-const.c (operand_equal_p): If flag_checking and
27314 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
27315 and if it returns non-zero, assert iterative_hash_expr on both
27316 args is the same.
27317
27318 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
27319
27320 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
27321
27322 2016-04-27 Nick Clifton <nickc@redhat.com>
27323
27324 PR middle-end/49889
27325 * varasm.c (merge_weak): Generate an error if an attempt is made
27326 to convert a non-weak static function into a weak, public function.
27327
27328 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27329
27330 * params.def (MAX_PARTITION_SIZE): New param.
27331 * doc/invoke.texi: Document lto-max-partition.
27332
27333 2016-04-27 Richard Biener <rguenther@suse.de>
27334
27335 PR ipa/70785
27336 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
27337 function cummulating used_from_other_partition, externally_visible
27338 and force_output from aliases.
27339 (refered_from_nonlocal_var): Likewise.
27340 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
27341 node flags properly.
27342
27343 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
27344
27345 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
27346 (-Wmemset-elt-size): New item.
27347
27348 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
27349
27350 PR ada/70759
27351 * stor-layout.h (internal_reference_types): Delete.
27352 * stor-layout.c (reference_types_internal): Likewise.
27353 (internal_reference_types): Likewise.
27354 (layout_type) <REFERENCE_TYPE>: Adjust.
27355
27356 2016-04-27 Jakub Jelinek <jakub@redhat.com>
27357
27358 PR sanitizer/70683
27359 * tree.h (inchash::add_expr): Add FLAGS argument.
27360 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
27361 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
27362 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
27363 Formatting fix. Adjust recursive calls. For tcc_comparison,
27364 if swap_tree_comparison (code) is smaller than code, hash that
27365 and arguments in the other order. Hash CONVERT_EXPR the same
27366 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
27367 of ADDR_EXPR of decl as the decl itself. Add or remove
27368 OEP_ADDRESS_OF from recursive flags as needed. For
27369 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
27370 operands commutatively and only the third one normally.
27371 For internal CALL_EXPR hash in CALL_EXPR_IFN.
27372
27373 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
27374
27375 * config/rtems.h (LIB_SPEC): Add -latomic.
27376
27377 2016-04-27 Joel Sherrill <joel@rtems.org>
27378
27379 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
27380 xilink.ld and flags not relevant to RTEMS.
27381
27382 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
27383
27384 * toplev.c (backend_init_target): Avoid calling init_reload when using
27385 LRA.
27386
27387 2016-04-26 Jakub Jelinek <jakub@redhat.com>
27388
27389 * reorg.c (try_merge_delay_insns): Declare i and j inside the
27390 for loops rather than one for the whole function.
27391
27392 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
27393
27394 * match.pd (X + CST CMP X): New transformation.
27395
27396 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
27397
27398 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
27399 * fold-const.c (fold_binary_loc): Remove 2 transformations
27400 superseded by match.pd.
27401 * match.pd (x+x -> x*2): Generalize to integers.
27402
27403 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
27404
27405 * config/i386/i386.md (operation on memory peephole): Duplicate an
27406 existing peephole and adapt it to match lea rather than an operation
27407 that clobbers CC.
27408
27409 PR rtl-optimization/57193
27410 * opts.c (default_options_table): Add OPT_frename_registers at -O2
27411 and above.
27412 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
27413
27414 2016-04-26 Bin Cheng <bin.cheng@arm.com>
27415
27416 * tree-if-conv.c (any_pred_load_store): New static variable.
27417 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
27418 any_pred_load_store instead of and_mask_load_store.
27419 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
27420 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
27421 (combine_blocks, tree_if_conversion): Ditto.
27422
27423 2016-04-26 Bin Cheng <bin.cheng@arm.com>
27424
27425 PR tree-optimization/70771
27426 PR tree-optimization/70775
27427 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
27428 virtual PHI nodes. Delete parameter.
27429 (if_convertible_loop_p_1): Delete argument to above function.
27430 (predicate_all_scalar_phis): Delete code handling single-argument
27431 PHIs.
27432 (tree_if_conversion): Mark and update virtual SSA.
27433
27434 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27435
27436 PR target/61821
27437 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
27438 (x86_elf_aligned_common): Rename to ...
27439 (x86_elf_aligned_decl_common): ... this.
27440 Add decl arg. Switch to .lbss for largecomm object. Use
27441 LARGECOMM_SECTION_ASM_OP.
27442 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
27443 renaming.
27444 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
27445 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
27446 Pass new decl arg.
27447 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
27448 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
27449
27450 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27451
27452 PR target/59407
27453 * config/i386/i386.c (SECTION_LARGE): Define.
27454 (x86_64_elf_select_section): Set it for large data/bss sections.
27455 Only clear SECTION_WRITE for .lrodata.
27456 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
27457 data/bss sections.
27458 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
27459 * varasm.c (default_elf_asm_named_section): Grow flagchars.
27460 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
27461 SECTION_MACH_DEP.
27462 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
27463 * doc/tm.texi: Regenerate.
27464
27465 2016-04-26 Jakub Jelinek <jakub@redhat.com>
27466
27467 PR bootstrap/70704
27468 * configure.ac (--enable-checking): Document extra flag, for
27469 non-release builds default to --enable-checking=yes,extra.
27470 If misc checking and extra checking, define CHECKING_P to 2 instead
27471 of 1.
27472 * common.opt (fchecking=): Add.
27473 * doc/invoke.texi (-fchecking=): Document.
27474 * doc/install.texi: Document --enable-checking changes.
27475 * configure: Regenerated.
27476 * config.in: Regenerated.
27477
27478 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
27479
27480 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
27481 attribute instead of which_alternative.
27482 * config/i386/sse.md (*mov<mode>_internal): Ditto.
27483 Use EXT_REX_SSE_REG_P where appropriate.
27484
27485 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
27486
27487 * config/i386/predicates.md (const0_operand): Do not match
27488 const_wide_int code.
27489 (const1_operand): Ditto.
27490
27491 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
27492
27493 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
27494 for SSE constm1 operands and TARGET_AVX512VL.
27495 (*movti_internal): Ditto.
27496 (*mov<mode>_or): Use constm1_operand predicate.
27497 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
27498 for SSE vector_all_ones operands and TARGET_AVX512VL.
27499 * config/i386/predicates.md (constm1_operand): New predicate.
27500 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
27501 emission of constant -1 load.
27502
27503 2016-04-25 Jason Merrill <jason@redhat.com>
27504
27505 * gdbinit.in: Skip is-a.h.
27506
27507 * attribs.c (register_scoped_attributes): Fix logic.
27508 * attribs.h: Declare register_scoped_attributes.
27509
27510 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27511
27512 * config/rs6000/rs6000-builtin.def: Correct pasto error for
27513 stxvd2x and stxvw4x built-in functions.
27514
27515 2016-04-25 DJ Delorie <dj@redhat.com>
27516
27517 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
27518 (ashrhi3): Likewise.
27519 (lshrhi3): Likewise.
27520
27521 2016-04-25 Richard Biener <rguenther@suse.de>
27522
27523 PR tree-optimization/70780
27524 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
27525 wasn't visited yet.
27526 (compute_antic): Mark blocks with abnormal preds as visited as
27527 they have a final empty antic-in solution already.
27528
27529 2016-04-25 Michael Collison <michael.collison@linaro.org>
27530
27531 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
27532
27533 2016-04-25 Michael Collison <michael.collison@linaro.org>
27534
27535 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
27536 mode is VQI to improve mixed mode vectorization.
27537 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
27538 define_insn to match low half of signed vaddw.
27539 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
27540 define_insn to match high half of signed vaddw.
27541 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
27542 define_insn to match low half of unsigned vaddw.
27543 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
27544 define_insn to match high half of unsigned vaddw.
27545 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
27546 (arm_simd_check_vect_par_cnst_half_p): Likewise.
27547 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
27548 for new function.
27549 (arm_simd_check_vect_par_cnst_half_p): Likewise.
27550 * config/arm/predicates.md (vect_par_constant_high): Support
27551 big endian and simplify by calling
27552 arm_simd_check_vect_par_cnst_half
27553 (vect_par_constant_low): Likewise.
27554
27555 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
27556
27557 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
27558 predicate for operand 2.
27559
27560 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
27561 H.J. Lu <hongjiu.lu@intel.com>
27562
27563 * config/i386/i386-protos.h (standard_sse_constant_p): Add
27564 machine_mode argument.
27565 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
27566 constm1_rtx operands. For VOIDmode constants, get mode from
27567 pred_mode. Check mode size if the mode is supported by ABI.
27568 (standard_sse_constant_opcode): Do not use standard_constant_p.
27569 Strictly check ABI support for all-ones operands.
27570 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
27571 immediates. Update calls to standard_sse_constant_p.
27572 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
27573 (ix86_rtx_costs): Ditto.
27574 * config/i386/i386.md (*movxi_internal_avx512f): Use
27575 nonimmediate_or_sse_const_operand instead of vector_move_operand.
27576 Use (v,BC) alternative instead of (v,C). Use register_operand
27577 checks instead of MEM_P.
27578 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
27579 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
27580 isa attribute. Use register_operand checks instead of MEM_P.
27581 (*movti_internal): Use nonimmediate_or_sse_const_operand for
27582 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
27583 alternative and corresponding sse2 isa attribute.
27584 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
27585 to standard_sse_constant_p.
27586 (FP constant splitters): Ditto.
27587 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
27588 (C): Ditto.
27589 * config/i386/predicates.md (constm1_operand): Remove.
27590 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
27591 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
27592 vector_all_ones_operand instead of constm1_operand.
27593
27594 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27595
27596 * print-rtl.c (print_rtx_insn_vec): New function.
27597 * print-rtl.h: New prototype.
27598 * store-motion.c (struct st_expr): Make avail_stores a vector.
27599 (st_expr_entry): Adjust.
27600 (free_st_expr_entry): Likewise.
27601 (print_store_motion_mems): Likewise.
27602 (find_moveable_store): Likewise.
27603 (compute_store_table): Likewise.
27604 (delete_store): Likewise.
27605 (build_store_vectors): Likewise.
27606
27607 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27608
27609 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
27610
27611 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27612
27613 * vec.h (vec_safe_contains): New function.
27614 (vec::contains): Likewise.
27615 (vec::begin): Likewise.
27616 (vec::end): Likewise.
27617
27618 2016-04-23 Jakub Jelinek <jakub@redhat.com>
27619
27620 PR sanitizer/70712
27621 * cfgexpand.c (expand_stack_vars): Fix typo.
27622
27623 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
27624
27625 * system.h (list, map, set, vector): Include conditionally.
27626 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
27627 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
27628 * ipa-icf.c (INCLUDE_LIST): Define.
27629 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
27630 * config/sh/sh.c (INCLUDE_VECTOR): Define.
27631 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
27632 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
27633 * cp/logic.cc (INCLUDE_LIST): Define.
27634 * fortran/trans-common.c (INCLUDE_MAP): Define.
27635
27636 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
27637
27638 * auto-profile.c: Remove <string.h> include.
27639 * ipa-icf-gimple.c: Remove <list> include.
27640 * diagnostic.c: Remove <new> include.
27641 * genmatch.c: Likewise.
27642 * pretty-print.c: Likewise.
27643 * toplev.c: Likewise
27644 * c/c-objc-common.c: Likewise.
27645 * cp/error.c: Likewise.
27646 * fortran/error.c: Likewise.
27647
27648 2016-04-22 Richard Biener <rguenther@suse.de>
27649
27650 * lto-streamer-in.c (input_ssa_names): Do not allocate
27651 GIMPLE_NOP for all SSA names.
27652 * lto-streamer-out.c (output_ssa_names): Do not output
27653 SSA names that should have been released.
27654
27655 2016-04-22 Richard Biener <rguenther@suse.de>
27656
27657 PR tree-optimization/70740
27658 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
27659 VDEF.
27660
27661 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
27662
27663 PR target/70750
27664 * config/i386/predicates.md (call_insn_operand): Replace
27665 sibcall_memory_operand with memory_operand.
27666
27667 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
27668
27669 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
27670 has_single_use() tests.
27671 (register_edge_assert_for_1): Likewise.
27672 (find_assert_locations_1): Check the liveness bitmap instead of
27673 checking has_single_use().
27674
27675 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
27676
27677 PR target/70728
27678 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
27679 Extract AVX-512BW constraint from AVX.
27680
27681 2016-04-21 Richard Biener <rguenther@suse.de>
27682
27683 PR tree-optimization/70725
27684 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
27685 for phi_convertible_by_degenerating_args.
27686 (predicate_all_scalar_phis): Handle single-argument PHIs.
27687
27688 2016-04-21 Richard Biener <rguenther@suse.de>
27689
27690 PR middle-end/70747
27691 * fold-const.c (fold_comparison): Return properly typed
27692 constant boolean.
27693
27694 2016-04-21 Bin Cheng <bin.cheng@arm.com>
27695
27696 PR tree-optimization/70715
27697 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
27698 after expanding BASE using expand_simple_operations.
27699
27700 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
27701
27702 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
27703 New transformations.
27704
27705 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
27706
27707 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
27708
27709 2016-04-20 Jan Hubicka <jh@suse.cz>
27710
27711 * ipa-inline.c (can_inline_edge_p): Pass caller info to
27712 ultiimate_alias_target.
27713 (update_callee_keys): Likewise.
27714 (lookup_recursive_calls): Likewise.
27715 (speculation_useful_p): Likewise.
27716
27717 2016-04-20 Jan Hubicka <jh@suse.cz>
27718
27719 PR ipa/70018
27720 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
27721 (set_nothrow_flag_1): ... this; handle interposition correctly;
27722 recurse on aliases and thunks.
27723 (cgraph_node::set_nothrow_flag): New.
27724 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
27725 functions compiled with non-call exceptions that binds to current
27726 def.
27727 (propagate_nothrow): Be safe WRT interposition.
27728 * cgraph.h (set_nothrow_flag): Update prototype.
27729
27730 2016-04-18 Jan Hubicka <jh@suse.cz>
27731
27732 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
27733 max_loop_iterations_int.
27734 (tree_unswitch_outer_loop): Likewise.
27735
27736 2016-04-20 Bin Cheng <bin.cheng@arm.com>
27737
27738 PR tree-optimization/69489
27739 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
27740 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
27741 Revise dump message.
27742 (if_convertible_bb_p): Remove check on edge count of basic block's
27743 predecessors.
27744
27745 2016-04-20 Bin Cheng <bin.cheng@arm.com>
27746
27747 PR tree-optimization/56625
27748 PR tree-optimization/69489
27749 * tree-data-ref.h (DR_INNERMOST): New macro.
27750 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
27751 hashing struct innermost_loop_behavior.
27752 (ref_DR_map): Remove.
27753 (innermost_DR_map): New map.
27754 (baseref_DR_map): Revise comment.
27755 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
27756 to innermost_DR_map accroding to its innermost loop behavior.
27757 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
27758 to its innermost loop behavior.
27759 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
27760 Add initialization for innermost_DR_map. Record memory reference
27761 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
27762 have innermost loop behavior.
27763 (if_convertible_loop_p): Remove release for ref_DR_map. Release
27764 innermost_DR_map.
27765
27766 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
27767
27768 * config/i386/i386.md (*lea<mode>_general_1): Rename from
27769 *lea_general_1. Use explicit SWI12 mode interator.
27770 (*lea<mode>_general_2): Rename from *lea_general_2.
27771 Use explicit SWI12 mode interator.
27772 (*lea<mode>_general_3): Rename from *lea_general_3.
27773 Use explicit SWI12 mode interator.
27774 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
27775 Use explicit SWI12 mode interator.
27776 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
27777 Use explicit SWI48 mode interator.
27778
27779 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
27780
27781 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
27782 Short-cut unaligned load and store cases. Handle all integer
27783 vector modes.
27784 (ix86_expand_vector_move_misalign): Short-cut unaligned load
27785 and store cases. Call ix86_avx256_split_vector_move_misalign
27786 directly without checking mode class.
27787
27788 2016-04-20 Andrew Pinski <apinski@cavium.com>
27789 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27790
27791 PR target/64971
27792 * config/aarch64/aarch64.md (sibcall): Force call
27793 address to be DImode for ILP32.
27794 (sibcall_value): Likewise.
27795
27796 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
27797
27798 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
27799
27800 2016-04-20 Richard Biener <rguenther@suse.de>
27801
27802 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
27803 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
27804 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
27805 (maybe_push_res_to_seq): Adjust.
27806 * gimple-fold.c (maybe_build_generic_op): Likewise.
27807
27808 2016-04-20 Marek Polacek <polacek@redhat.com>
27809
27810 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
27811 rather than true.
27812
27813 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
27814
27815 * config/i386/sse.md (vec_unpacks_lo_hi): Always
27816 use kmovw to support AVX512F target.
27817
27818 2016-04-20 Bin Cheng <bin.cheng@arm.com>
27819
27820 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
27821
27822 2016-04-20 Marek Polacek <polacek@redhat.com>
27823
27824 PR tree-optimization/70725
27825 * tree-if-conv.c (is_false_predicate): New function.
27826 (predicate_mem_writes): Use it.
27827
27828 2016-04-20 Richard Biener <rguenther@suse.de>
27829
27830 PR tree-optimization/70726
27831 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
27832 shift amounts from a pattern stmt operand.
27833
27834 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27835
27836 PR target/70674
27837 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
27838 stack_restore_from_fpr pattern when restoring r15.
27839 (s390_optimize_prologue): Strip away the memory barrier in the
27840 parallel when trying to get rid of restore insns.
27841 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
27842 definition for loading the stack pointer from an FPR. Compared to
27843 the normal move insn this pattern includes a full memory barrier.
27844
27845 2016-04-19 Jakub Jelinek <jakub@redhat.com>
27846
27847 PR middle-end/70680
27848 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
27849 implicitly linear or lastprivate iterator on the outer context.
27850
27851 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
27852
27853 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
27854 alignment check.
27855 * config/i386/i386.md (ssememalign): Removed.
27856 * config/i386/sse.md: Remove ssememalign attribute from patterns.
27857
27858 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
27859
27860 PR target/69201
27861 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
27862 const short * to __builtin_ia32_loaddquhi512_mask.
27863 (_mm512_maskz_loadu_epi16): Likewise.
27864 (_mm512_mask_storeu_epi16): Pass short * to
27865 __builtin_ia32_storedquhi512_mask.
27866 (_mm512_mask_loadu_epi8): Pass const char * to
27867 __builtin_ia32_loaddquqi512_mask.
27868 (_mm512_maskz_loadu_epi8): Likewise.
27869 (_mm512_mask_storeu_epi8): Pass char * to
27870 __builtin_ia32_storedquqi512_mask.
27871 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
27872 const double * to __builtin_ia32_loadupd512_mask.
27873 (_mm512_mask_loadu_pd): Likewise.
27874 (_mm512_maskz_loadu_pd): Likewise.
27875 (_mm512_storeu_pd): Pass double * to
27876 __builtin_ia32_storeupd512_mask.
27877 (_mm512_mask_storeu_pd): Likewise.
27878 (_mm512_loadu_ps): Pass const float * to
27879 __builtin_ia32_loadups512_mask.
27880 (_mm512_mask_loadu_ps): Likewise.
27881 (_mm512_maskz_loadu_ps): Likewise.
27882 (_mm512_storeu_ps): Pass float * to
27883 __builtin_ia32_storeups512_mask.
27884 (_mm512_mask_storeu_ps): Likewise.
27885 (_mm512_mask_loadu_epi64): Pass const long long * to
27886 __builtin_ia32_loaddqudi512_mask.
27887 (_mm512_maskz_loadu_epi64): Likewise.
27888 (_mm512_mask_storeu_epi64): Pass long long *
27889 to __builtin_ia32_storedqudi512_mask.
27890 (_mm512_loadu_si512): Pass const int * to
27891 __builtin_ia32_loaddqusi512_mask.
27892 (_mm512_mask_loadu_epi32): Likewise.
27893 (_mm512_maskz_loadu_epi32): Likewise.
27894 (_mm512_storeu_si512): Pass int * to
27895 __builtin_ia32_storedqusi512_mask.
27896 (_mm512_mask_storeu_epi32): Likewise.
27897 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
27898 char * to __builtin_ia32_storedquqi256_mask.
27899 (_mm_mask_storeu_epi8): Likewise.
27900 (_mm256_mask_loadu_epi16): Pass const short * to
27901 __builtin_ia32_loaddquhi256_mask.
27902 (_mm256_maskz_loadu_epi16): Likewise.
27903 (_mm_mask_loadu_epi16): Pass const short * to
27904 __builtin_ia32_loaddquhi128_mask.
27905 (_mm_maskz_loadu_epi16): Likewise.
27906 (_mm256_mask_loadu_epi8): Pass const char * to
27907 __builtin_ia32_loaddquqi256_mask.
27908 (_mm256_maskz_loadu_epi8): Likewise.
27909 (_mm_mask_loadu_epi8): Pass const char * to
27910 __builtin_ia32_loaddquqi128_mask.
27911 (_mm_maskz_loadu_epi8): Likewise.
27912 (_mm256_mask_storeu_epi16): Pass short * to.
27913 __builtin_ia32_storedquhi256_mask.
27914 (_mm_mask_storeu_epi16): Pass short * to.
27915 __builtin_ia32_storedquhi128_mask.
27916 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
27917 const double * to __builtin_ia32_loadupd256_mask.
27918 (_mm256_maskz_loadu_pd): Likewise.
27919 (_mm_mask_loadu_pd): Pass onst double * to
27920 __builtin_ia32_loadupd128_mask.
27921 (_mm_maskz_loadu_pd): Likewise.
27922 (_mm256_mask_storeu_pd): Pass double * to
27923 __builtin_ia32_storeupd256_mask.
27924 (_mm_mask_storeu_pd): Pass double * to
27925 __builtin_ia32_storeupd128_mask.
27926 (_mm256_mask_loadu_ps): Pass const float * to
27927 __builtin_ia32_loadups256_mask.
27928 (_mm256_maskz_loadu_ps): Likewise.
27929 (_mm_mask_loadu_ps): Pass const float * to
27930 __builtin_ia32_loadups128_mask.
27931 (_mm_maskz_loadu_ps): Likewise.
27932 (_mm256_mask_storeu_ps): Pass float * to
27933 __builtin_ia32_storeups256_mask.
27934 (_mm_mask_storeu_ps): ass float * to
27935 __builtin_ia32_storeups128_mask.
27936 (_mm256_mask_loadu_epi64): Pass const long long * to
27937 __builtin_ia32_loaddqudi256_mask.
27938 (_mm256_maskz_loadu_epi64): Likewise.
27939 (_mm_mask_loadu_epi64): Pass const long long * to
27940 __builtin_ia32_loaddqudi128_mask.
27941 (_mm_maskz_loadu_epi64): Likewise.
27942 (_mm256_mask_storeu_epi64): Pass long long * to
27943 __builtin_ia32_storedqudi256_mask.
27944 (_mm_mask_storeu_epi64): Pass long long * to
27945 __builtin_ia32_storedqudi128_mask.
27946 (_mm256_mask_loadu_epi32): Pass const int * to
27947 __builtin_ia32_loaddqusi256_mask.
27948 (_mm256_maskz_loadu_epi32): Likewise.
27949 (_mm_mask_loadu_epi32): Pass const int * to
27950 __builtin_ia32_loaddqusi128_mask.
27951 (_mm_maskz_loadu_epi32): Likewise.
27952 (_mm256_mask_storeu_epi32): Pass int * to
27953 __builtin_ia32_storedqusi256_mask.
27954 (_mm_mask_storeu_epi32): Pass int * to
27955 __builtin_ia32_storedqusi128_mask.
27956 * config/i386/i386-builtin-types.def (PCSHORT): New.
27957 (PINT64): Likewise.
27958 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
27959 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
27960 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
27961 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
27962 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
27963 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
27964 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
27965 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
27966 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
27967 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
27968 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
27969 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
27970 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
27971 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
27972 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
27973 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
27974 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
27975 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
27976 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
27977 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
27978 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
27979 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
27980 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
27981 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
27982 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
27983 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
27984 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
27985 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
27986 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
27987 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
27988 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
27989 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
27990 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
27991 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
27992 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
27993 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
27994 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
27995 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
27996 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
27997 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
27998 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
27999 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
28000 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
28001 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
28002 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
28003 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
28004 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
28005 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
28006 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
28007 use UNSPEC_STOREU.
28008 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
28009 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
28010 load nor store.
28011 (ix86_expand_vector_move_misalign): Likewise.
28012 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
28013 to scalar function prototype for unaligned load/store builtins.
28014 (ix86_expand_special_args_builtin): Updated.
28015 * config/i386/sse.md (UNSPEC_LOADU): Removed.
28016 (UNSPEC_STOREU): Likewise.
28017 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
28018 (VI_ULOADSTORE_F_AVX512VL): Likewise.
28019 (ssescalarsize): Handle V4TI, V2TI and V1TI.
28020 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
28021 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
28022 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
28023 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
28024 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
28025 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
28026 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
28027 (<avx512>_storedqu<mode>_mask): Likewise.
28028 (*sse4_2_pcmpestr_unaligned): Likewise.
28029 (*sse4_2_pcmpistr_unaligned): Likewise.
28030 (*mov<mode>_internal): Renamed to ...
28031 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
28032 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
28033 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
28034 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
28035
28036 2016-04-19 Richard Biener <rguenther@suse.de>
28037
28038 PR tree-optimization/70171
28039 * tree-ssa-phiprop.c: Include stor-layout.h.
28040 (phiprop_insert_phi): Handle the aggregate copy case.
28041 (propagate_with_phi): Likewise.
28042
28043 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
28044
28045 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
28046 instead of simplify_gen_subreg (... , 0).
28047 (ix86_delegitimize_address): Ditto.
28048 (ix86_split_divmod): Ditto.
28049 (ix86_split_copysign_const): Ditto.
28050 (ix86_split_copysign_var): Ditto.
28051 (ix86_expand_args_builtin): Ditto.
28052 (ix86_expand_round_builtin): Ditto.
28053 (ix86_expand_special_args_builtin): Ditto.
28054 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
28055 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
28056 (udivmodqi4): Ditto.
28057 (absneg splitters): Ditto.
28058 (*jcc_bt<mode>_1): Ditto.
28059
28060 2016-04-19 Richard Biener <rguenther@suse.de>
28061
28062 PR tree-optimization/70724
28063 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
28064 restoring out from ...
28065 (free_scc_vn): ... here.
28066 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
28067 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
28068 tail merging.
28069 (pass_fre::execute): Restore SSA info.
28070
28071 2016-04-19 Richard Biener <rguenther@suse.de>
28072
28073 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
28074 * gimple-walk.c (walk_gimple_op): Initialize it.
28075 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
28076 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
28077 remapping SSA names of defs.
28078 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
28079 adjustment.
28080
28081 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
28082
28083 PR middle-end/70689
28084 * lra-constraints.c (equiv_substition_p): New.
28085 (process_alt_operands): Use it.
28086 (swap_operands): Swap it.
28087 (curr_insn_transform): Update it.
28088
28089 2016-04-18 Michael Matz <matz@suse.de>
28090
28091 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
28092 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
28093 * tree-core.h (tree_type_common.align): Use bit-field.
28094 (tree_type_common.spare): New.
28095 (tree_decl_common.off_align): Make smaller.
28096 (tree_decl_common.align): Use bit-field.
28097
28098 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
28099 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
28100 (scan_sharing_clauses): Ditto.
28101 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
28102 (omp_finish_file): Ditto.
28103 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
28104 (layout_decl): Ditto.
28105 (relayout_decl): Ditto.
28106 (finalize_record_size): Use SET_TYPE_ALIGN.
28107 (finalize_type_size): Ditto.
28108 (finish_builtin_struct): Ditto.
28109 (layout_type): Ditto.
28110 (initialize_sizetypes): Ditto.
28111 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
28112 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
28113 (lookup_field_for_decl): Use SET_DECL_ALIGN.
28114 (get_chain_field): Ditto.
28115 (get_trampoline_type): Ditto.
28116 (get_nl_goto_field): Ditto.
28117 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
28118 SET_DECL_ALIGN.
28119 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
28120 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
28121 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
28122 (build_qualified_type): Use SET_TYPE_ALIGN.
28123 (build_aligned_type, build_range_type_1): Ditto.
28124 (build_atomic_base): Ditto.
28125 (build_common_tree_nodes): Ditto.
28126 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
28127 (expand_one_stack_var_at): Ditto.
28128 * coverage.c (build_var): Use SET_DECL_ALIGN.
28129 * except.c (init_eh): Ditto.
28130 * function.c (assign_parm_setup_block): Ditto.
28131 * symtab.c (increase_alignment_1): Ditto.
28132 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
28133 * tree-vect-stmts.c (ensure_base_align): Ditto.
28134 * varasm.c (align_variable): Ditto.
28135 (assemble_variable): Ditto.
28136 (build_constant_desc): Ditto.
28137 (output_constant_def_contents): Ditto.
28138
28139 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
28140 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
28141 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
28142 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
28143 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
28144
28145 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
28146
28147 PR target/70708
28148 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
28149 replace %vmovsd with "%vmovq".
28150 (vec_concatv2df): Likewise.
28151
28152 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
28153
28154 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
28155 (*vec_extractv2si_0): Ditto.
28156 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
28157 (zero_extended_scalar_load_operand splitters): Ditto.
28158 (vec_extract splitters): Ditto.
28159 (*vec_extractv4si_0_zext): Ditto.
28160 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
28161 and lowpart_subreg.
28162 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
28163 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
28164 (*sse4_1_extractps): Use lowpart_subreg.
28165 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
28166
28167 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28168
28169 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
28170 gld requirements.
28171 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
28172 Mention Solaris 11 packaging changes.
28173 Update gas and gld requirements.
28174 Remove reference to pre-Solaris 10 bug.
28175 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
28176 systems and bugs.
28177 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
28178 with cc.
28179
28180 2016-04-17 Jan Hubicka <jh@suse.cz>
28181
28182 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
28183 max_loop_iterations_int.
28184
28185 2016-04-18 Richard Biener <rguenther@suse.de>
28186
28187 PR tree-optimization/43434
28188 * tree-ssa-structalias.c (struct vls_data): New.
28189 (visit_loadstore): Handle all pointer-based accesses.
28190 (compute_dependence_clique): Compute a bitmap of restrict tags
28191 assigned bases and pass it to visit_loadstore.
28192
28193 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
28194
28195 PR target/70711
28196 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
28197 armv8.1-a and armv8.1-a+crc.
28198
28199 2016-04-18 Richard Biener <rguenther@suse.de>
28200
28201 PR tree-optimization/70701
28202 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
28203 references after translating through a memcpy.
28204
28205 2016-04-18 Richard Biener <rguenther@suse.de>
28206
28207 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
28208 (compute_antic): ... here. For partial antic use regular
28209 postorder and scrap iteration.
28210 (compute_partial_antic_aux): Remove unused return value.
28211 (init_pre): Do not allocate postorder.
28212 (fini_pre): Do not free postorder.
28213
28214 2016-04-18 Richard Biener <rguenther@suse.de>
28215
28216 PR middle-end/37870
28217 * expmed.c (extract_bit_field_1): Remove broken case
28218 using a wider MODE_INT mode.
28219
28220 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
28221
28222 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
28223 unless compiling with at least GCC-4.8.
28224
28225 2016-04-17 Jan Hubicka <jh@suse.cz>
28226
28227 PR bootstrap/70706
28228 * graphite.c (graphite_finalize): Update call to
28229 tree_estimate_probability.
28230 * predict.h (tree_estimate_probability): Update prototype.
28231
28232 2016-04-17 Jan Hubicka <jh@suse.cz>
28233
28234 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
28235 (tree_estimate_probability): Likewise.
28236 (pass_profile::execute): Update.
28237 (report_predictor_hitrates): New function.
28238 * profile.c (compute_branch_probabilities): Use it.
28239 * predict.h (report_predictor_hitrates): Declare.
28240
28241 2016-04-17 Jan Hubicka <jh@suse.cz>
28242
28243 PR ipa/70018
28244 * cgraph.h (cgraph_node::set_const_flag,
28245 cgraph_node::set_pure_flag): Update prototype to return bool;
28246 update comment.
28247 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
28248 of interposable symbol are interposable, too.
28249 (cgraph_set_const_flag_1): Rename to ...
28250 (set_const_flag_1): ... this one; change to self recursive function
28251 instead of call_for_symbol_thunks_and_aliases. Handle correctly
28252 clearnig the flag in all variants and also virtual thunks of const
28253 functions are pure; track if any change was done.
28254 (cgraph_node::set_const_flag): Update.
28255 (struct set_pure_flag_info): New struct.
28256 (cgraph_set_pure_flag_1): Rename to ...
28257 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
28258 rather than pointer encoded flags; track if any changes was done;
28259 handle correctly clearning flag and setting flag of aliases already
28260 declared const.
28261 (cgraph_node::set_pure_flag): Update.
28262 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
28263
28264 2016-04-17 Tom de Vries <tom@codesourcery.com>
28265
28266 PR other/70433
28267 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
28268 backslash in label.
28269
28270 2016-04-17 Tom de Vries <tom@codesourcery.com>
28271
28272 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
28273 '{}<> ' as escape-for-record.
28274
28275 2016-04-17 Tom de Vries <tom@codesourcery.com>
28276
28277 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
28278 structure.
28279
28280 2016-04-17 Tom de Vries <tom@codesourcery.com>
28281
28282 PR other/70185
28283 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
28284 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
28285 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
28286 * passes.c (finish_optimization_passes): Only call
28287 finish_graph_dump_file if dfi->graph_dump_initialized.
28288 (execute_function_dump, pass_init_dump_file): Use
28289 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
28290
28291 2016-04-17 Tom de Vries <tom@codesourcery.com>
28292
28293 PR tree-optimization/70256
28294 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
28295 (debug_varmap): New function.
28296
28297 2016-04-17 Tom de Vries <tom@codesourcery.com>
28298
28299 PR other/70183
28300 * passes.c (pass_manager::register_pass): Propagate pflags.
28301
28302 2016-04-17 Tom de Vries <tom@codesourcery.com>
28303
28304 PR other/68875
28305 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
28306 * passes.c (pass_manager::pass_manager): Declare and init p_start in
28307 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
28308 check if it's equal to p_start.
28309 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
28310
28311 2016-04-15 Jan Hubicka <jh@suse.cz>
28312
28313 PR ipa/70018
28314 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
28315 function does not bind to current def.
28316 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
28317 handle conservatively calls to functions that does not need to bind
28318 to current def.
28319 (check_call): Update call of worse_state.
28320 (ignore_edge_for_nothrow): Update.
28321 (ignore_edge_for_pure_const): Likewise.
28322 (propagate_pure_const): Update calls to worse_state.
28323 (skip_function_for_local_pure_const): Reformat comments.
28324
28325 2016-04-15 Jan Hubicka <jh@suse.cz>
28326
28327 PR ipa/70018
28328 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
28329 (cgraph_node::function_symbol): Likewise.
28330 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
28331 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
28332 (symtab_node::ultimate_alias_target): Add REF parameter.
28333 (symtab_node::binds_to_current_def_p): Declare.
28334 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
28335 (cgraph_node::function_symbol): Likewise.
28336 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
28337 (cgraph_node::get_availability): Likewise.
28338 (cgraph_edge::binds_to_current_def_p): New inline function.
28339 (varpool_node::get_availability): Add REF parameter.
28340 (varpool_node::ultimate_alias_target): Likewise.
28341 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
28342 (symtab_node::binds_to_current_def_p): Likewise.
28343 * varpool.c (varpool_node::get_availability): Likewise.
28344
28345 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
28346
28347 PR target/70662
28348 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
28349 Fix mode size check.
28350
28351 2016-04-15 Jakub Jelinek <jakub@redhat.com>
28352
28353 * BASE-VER: Set to 7.0.0.
28354
28355 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
28356
28357 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
28358
28359 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28360
28361 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
28362 architecture revisions.
28363
28364 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
28365
28366 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
28367 * config/i386/i386.c (ix86_using_red_zone): No longer static.
28368 * config/i386/i386.md (stack decrement to push peepholes): Guard
28369 with !x86_using_red_zone ().
28370
28371 2016-04-15 Jakub Jelinek <jakub@redhat.com>
28372
28373 PR c++/70675
28374 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
28375 to dump_generic_node.
28376 (NIY): Pass also flags to do_niy.
28377
28378 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
28379
28380 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
28381 (simd_clone_vector_of_formal_parm_types)
28382 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
28383 (simd_clone_mangle, simd_clone_create)
28384 (simd_clone_adjust_return_type, create_tmp_simd_array)
28385 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
28386 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
28387 (ipa_simd_modify_function_body, simd_clone_linear_addend)
28388 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
28389 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
28390 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
28391 * omp-simd-clone.c: ... this new file.
28392 (simd_clone_vector_of_formal_parm_types): Make it static.
28393 * Makefile.in (OBJS): Add omp-simd-clone.o.
28394
28395 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
28396
28397 PR target/70662
28398 * config/i386/sse.md: Use proper memory operand modifiers.
28399
28400
28401 2016-04-15 Richard Biener <rguenther@suse.de>
28402 Alan Modra <amodra@gmail.com>
28403
28404 PR tree-optimization/70130
28405 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
28406 when alignment stays not the same and no not use the realign
28407 scheme then.
28408
28409 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
28410
28411 PR target/70669
28412 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
28413 direct move handlers for KFmode. Change TFmode handlers test from
28414 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
28415
28416 2016-04-14 Jakub Jelinek <jakub@redhat.com>
28417
28418 PR c++/70594
28419 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
28420 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
28421 (inlined_polymorphic_ctor_dtor_block_p): Use it.
28422 * tree-ssa-live.c (remove_unused_scope_block_p): When
28423 in_ctor_dtor_block, avoid discarding not just BLOCKs with
28424 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
28425 block_ultimate_origin is FUNCTION_DECL.
28426 (remove_unused_locals): If current_function_decl is
28427 polymorphic_ctor_dtor_p, pass initial true to
28428 remove_unused_scope_block_p' is_ctor_dtor_block.
28429
28430 2016-04-14 Martin Sebor <msebor@redhat.com>
28431
28432 PR c++/69517
28433 PR c++/70019
28434 PR c++/70588
28435 * doc/extend.texi (Variable Length): Revert.
28436
28437 2016-04-14 Marek Polacek <polacek@redhat.com>
28438 Jan Hubicka <hubicka@ucw.cz>
28439
28440 PR c++/70029
28441 * tree.c (verify_type): Disable the canonical type of main variant
28442 check.
28443
28444 2016-04-14 Jason Merrill <jason@redhat.com>
28445
28446 * cfgexpand.c, expr.c: Revert previous change.
28447
28448 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
28449
28450 PR middle-end/70643
28451 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
28452 when building a mem ref for the incoming reduction variable.
28453
28454 2016-04-14 Richard Biener <rguenther@suse.de>
28455
28456 PR tree-optimization/70614
28457 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
28458 loop if the evolution dropped to chrec_dont_know.
28459 (interpret_condition_phi): Likewise.
28460
28461 2016-04-14 Richard Biener <rguenther@suse.de>
28462
28463 PR tree-optimization/70623
28464 * tree-ssa-pre.c (changed_blocks): Make global ...
28465 (compute_antic): ... local here. Move and fix worklist
28466 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
28467 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
28468 worklist handling, dump when ANTIC_IN changed.
28469 (compute_partial_antic_aux): Remove worklist handling.
28470 (init_pre): Do not compute post dominators. Add a comment about
28471 the CFG order chosen.
28472 (fini_pre): Do not free post dominators.
28473
28474 2016-04-13 Martin Sebor <msebor@redhat.com>
28475
28476 PR c++/69517
28477 PR c++/70019
28478 PR c++/70588
28479 * doc/extend.texi (Variable Length): Document C++ specifics.
28480
28481 2016-04-13 Jakub Jelinek <jakub@redhat.com>
28482
28483 PR c++/70641
28484 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
28485 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
28486 eh edges have been purged.
28487
28488 PR c++/70594
28489 * tree-sra.c (create_access_replacement,
28490 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
28491 gets fancy name.
28492 * tree-pretty-print.c (dump_fancy_name): New function.
28493 (dump_decl_name, dump_generic_node): Use it.
28494
28495 2016-04-13 Jason Merrill <jason@redhat.com>
28496
28497 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
28498 * expr.c (expand_expr_real_1): Likewise.
28499
28500 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
28501
28502 * config/i386/i386.md (kunpckhi): Swap operands.
28503 (kunpcksi): Likewise.
28504 (kunpckdi): Likewise.
28505 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
28506 (vec_pack_trunc_<mode>): Likewise.
28507
28508 2016-04-13 Jakub Jelinek <jakub@redhat.com>
28509
28510 PR debug/70628
28511 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
28512
28513 PR middle-end/70633
28514 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
28515 gimplification turns some element into non-constant.
28516
28517 PR debug/70628
28518 * rtl.h (convert_memory_address_addr_space_1): New prototype.
28519 * explow.c (convert_memory_address_addr_space_1): No longer static,
28520 add NO_EMIT argument and don't call convert_modes if true, pass
28521 it down recursively, remove break after return.
28522 (convert_memory_address_addr_space): Adjust caller.
28523 * simplify-rtx.c (simplify_unary_operation_1): Call
28524 convert_memory_address_addr_space_1 instead of convert_memory_address,
28525 if it returns NULL, don't simplify.
28526
28527 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
28528
28529 PR target/70630
28530 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
28531
28532 2016-04-12 Jakub Jelinek <jakub@redhat.com>
28533
28534 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
28535 Bump the upper SIMDLEN limits, so that if the return type or
28536 characteristic type if the return type is void can be passed in
28537 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
28538 allowed.
28539
28540 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
28541
28542 PR target/70640
28543 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
28544 Do not use "=" constraint on an input constraint.
28545 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
28546 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
28547 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
28548 generates (neg (abs ...)) instead of (abs ...).
28549
28550 2016-04-12 Jakub Jelinek <jakub@redhat.com>
28551
28552 PR rtl-optimization/70596
28553 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
28554 just invalidate LRA data and reset them. Adjust dump wording.
28555
28556 2016-04-12 Martin Liska <mliska@suse.cz>
28557
28558 Revert
28559 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
28560
28561 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
28562 estimates here.
28563 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
28564 max_loop_iterations_int.
28565 (tree_unswitch_outer_loop): Likewise.
28566 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
28567 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
28568
28569 2016-04-12 Tom de Vries <tom@codesourcery.com>
28570
28571 PR tree-optimization/68756
28572 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
28573 instead of new_name.
28574
28575 2016-04-12 Jakub Jelinek <jakub@redhat.com>
28576
28577 PR tree-optimization/70602
28578 * tree-sra.c (generate_subtree_copies): Don't write anything into
28579 constant pool decls.
28580
28581 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
28582 regardless whether there are depend clauses or not.
28583
28584 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
28585
28586 PR target/70381
28587 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
28588 target attribute and pragma from changing the -mfloat128
28589 and -mfloat128-hardware options.
28590
28591 * doc/extend.texi (Additional Floating Types): Document PowerPC
28592 __float128 restrictions.
28593
28594 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
28595
28596 PR target/70133
28597 * config/aarch64/driver-aarch64.c
28598 (aarch64_get_extension_string_for_isa_flags): New.
28599 (arch_extension): Rename to...
28600 (aarch64_arch_extension): ...This.
28601 (ext_to_feat_string): Rename to...
28602 (aarch64_extensions): ...This.
28603 (aarch64_core_data): Keep track of architecture extension flags.
28604 (cpu_data): Rename to...
28605 (aarch64_cpu_data): ...This.
28606 (aarch64_arch_driver_info): Keep track of architecture extension
28607 flags.
28608 (get_arch_name_from_id): Rename to...
28609 (get_arch_from_id): ...This, change return type.
28610 (host_detect_local_cpu): Update and reformat for renames, handle
28611 extensions through common infrastructure.
28612
28613 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
28614
28615 PR target/70133
28616 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
28617 track of a canonical flag name.
28618 (all_extensions): Likewise.
28619 (arch_to_arch_name): Also track extension flags enabled by the arch.
28620 (all_architectures): Likewise.
28621 (aarch64_parse_extension): Move to here.
28622 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
28623 rework.
28624 (aarch64_rewrite_selected_cpu): Update for above change.
28625 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
28626 are handled, such that the single explicit value enabled by an
28627 extension is kept seperate from the implicit values it also enables.
28628 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
28629 to here.
28630 (aarch64_parse_extension): New.
28631 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
28632 here to config/aarch64/aarch64-protos.h.
28633 (aarch64_parse_extension): Move from here to
28634 common/config/aarch64/aarch64-common.c.
28635 (aarch64_option_print): Update.
28636 (aarch64_declare_function_name): Likewise.
28637 (aarch64_start_file): Likewise.
28638 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
28639 the canonical flag for extensions.
28640 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
28641 flags.
28642
28643 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
28644
28645 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
28646 AARCH64_FL_CRC.
28647
28648 2016-04-09 Tom de Vries <tom@codesourcery.com>
28649
28650 PR tree-optimization/68953
28651 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
28652 first to last subscript.
28653
28654 2016-04-09 Jakub Jelinek <jakub@redhat.com>
28655
28656 PR tree-optimization/70586
28657 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
28658 for any calls.
28659
28660 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
28661
28662 PR lto/70289
28663 PR ipa/70348
28664 PR tree-optimization/70373
28665 PR middle-end/70533
28666 PR middle-end/70534
28667 PR middle-end/70535
28668 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
28669 clauses for acc parallel reductions as necessary. Error on those
28670 that are private.
28671 * omp-low.c (scan_sharing_clauses): Don't install variables which
28672 are used in acc parallel reductions.
28673 (lower_rec_input_clauses): Remove dead code.
28674 (lower_oacc_reductions): Add support for reference reductions.
28675 (lower_reduction_clauses): Remove dead code.
28676 (lower_omp_target): Don't remap variables appearing in acc parallel
28677 reductions.
28678 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
28679
28680 2016-04-08 Jakub Jelinek <jakub@redhat.com>
28681
28682 PR middle-end/70593
28683 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
28684 with multiple SSA_NAME defs, force the outputs other than first
28685 to be live before calling live_track_process_def on each output.
28686
28687 PR rtl-optimization/70574
28688 * fwprop.c (forward_propagate_and_simplify): Don't add
28689 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
28690 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
28691 paradoxical subregs within *loc.
28692
28693 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
28694
28695 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
28696 -ftree-parallelize-loops={0,1}.
28697 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
28698 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
28699 * config/ia64/hpux.h (LIB_SPEC): Likewise.
28700 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
28701 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
28702
28703 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
28704
28705 PR sanitizer/70541
28706 * asan.c (instrument_derefs): If we get unknown location, extract it
28707 with EXPR_LOCATION.
28708 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
28709
28710 2016-04-08 Tom de Vries <tom@codesourcery.com>
28711
28712 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
28713 implicit firstprivate clause.
28714
28715 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28716
28717 PR target/70566
28718 * config/arm/thumb2.md (tst + branch-> lsls + branch
28719 peephole below *orsi_not_shiftsi_si): Require that condition
28720 register is dead after the peephole.
28721 (second peephole after the above): Likewise.
28722
28723 2016-04-08 Alan Modra <amodra@gmail.com>
28724
28725 PR target/70117
28726 * builtins.c (fold_builtin_classify): For IBM extended precision,
28727 look at just the high-order double to test for NaN.
28728 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
28729 test just the high double for Inf but both doubles for subnormal
28730 limit.
28731
28732 2016-04-07 Jakub Jelinek <jakub@redhat.com>
28733
28734 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
28735 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
28736 node->simdclone->mask_mode != VOIDmode masks.
28737 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
28738 earlier, use it instead of node->simdclone.
28739 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
28740 Set clonei->mask_mode.
28741
28742 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
28743
28744 PR c/70436
28745 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
28746 Pass it through to cp_parser_already_scoped_statement.
28747 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
28748 it through to cp_parser_statement.
28749 (cp_parser_statement): Pass IF_P through to
28750 cp_parser_iteration_statement.
28751 (cp_parser_pragma): Adjust call to
28752 cp_parser_iteration_statement.
28753
28754 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
28755
28756 PR c/70436
28757 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
28758 resolve a future -Wparentheses warning.
28759 * omp-low.c (scan_sharing_clauses): Likewise.
28760 * tree-parloops.c (eliminate_local_variables): Likewise.
28761
28762 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
28763
28764 PR rtl-optimization/70398
28765 * lra-constraints.c (process_address_1): Check zero scale and code
28766 for reloading with zero scale.
28767
28768 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
28769
28770 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
28771 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
28772
28773 2016-04-06 Jakub Jelinek <jakub@redhat.com>
28774
28775 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
28776 Add support for AVX512F clones, include them by default for
28777 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
28778 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
28779 up to 128.
28780
28781 PR middle-end/70550
28782 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
28783 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
28784 firstprivate clauses.
28785 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
28786 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
28787 (lower_omp_target): Set TREE_NO_WARNING for
28788 non-addressable possibly uninitialized vars which are copied into
28789 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
28790
28791 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
28792
28793 * config/pa/predicates.md (integer_store_memory_operand): Accept
28794 REG+D operands with a large offset when reload_in_progress is true.
28795 (floating_point_store_memory_operand): Likewise.
28796
28797 2016-04-05 Jakub Jelinek <jakub@redhat.com>
28798
28799 PR c++/70336
28800 * match.pd (nested int casts): Limit to GIMPLE.
28801
28802 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
28803
28804 PR ipa/66223
28805 * ipa-devirt.c (maybe_record_node): Fix comment; use
28806 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
28807
28808 2016-04-05 Jakub Jelinek <jakub@redhat.com>
28809
28810 PR rtl-optimization/70542
28811 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
28812 if there are any uses other than insn or debug insns.
28813
28814 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
28815 Jakub Jelinek <jakub@redhat.com>
28816
28817 PR tree-optimization/70509
28818 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
28819 Shift HOST_WIDE_INT_1U instead of 1.
28820
28821 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
28822
28823 PR tree-optimization/70509
28824 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
28825 of the vector base type for index.
28826
28827 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
28828
28829 PR target/70510
28830 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
28831
28832 2016-04-05 Richard Biener <rguenther@suse.de>
28833
28834 PR tree-optimization/70526
28835 * tree-sra.c (build_ref_for_offset): Use prev_base to
28836 extract the alias pointer type.
28837
28838 2016-04-05 Richard Biener <rguenther@suse.de>
28839
28840 * dse.c (struct store_info): Remove alias_set member.
28841 (struct read_info_type): Likewise.
28842 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
28843 spill_deleted, clear_alias_set_lookup): Remove.
28844 (get_group_info): Remove dead base == NULL_RTX case.
28845 (dse_step0): Remove initialization of removed variables.
28846 (delete_dead_store_insn): Reomve alias set dumping.
28847 (free_read_records): Remove alias_set handling.
28848 (canon_address): Remove alias_set_out parameter.
28849 (record_store): Remove spill_alias_set, it's always zero.
28850 (check_mem_read_rtx): Likewise.
28851 (dse_step2): Rename from ...
28852 (dse_step2_nospill): ... this. Adjust.
28853 (scan_stores): Rename from ...
28854 (scan_stores_nospill): ... this.
28855 (scan_reads): Rename from ...
28856 (scan_reads_nospill): ... this.
28857 (scan_stores_spill, scan_reads_spill): Remove.
28858 (dse_step3_scan): Remove for_spills argument which is always false.
28859 (dse_step3): Likewise.
28860 (dse_step5): Rename from ...
28861 (dse_step5_nospill): ... this. Remove alias_set handling.
28862 (rest_of_handle_dse): Adjust.
28863
28864 2016-04-05 Jakub Jelinek <jakub@redhat.com>
28865
28866 PR target/70525
28867 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
28868 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
28869 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
28870 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
28871
28872 2016-04-05 Richard Biener <rguenther@suse.de>
28873
28874 PR middle-end/70499
28875 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
28876 non-register type temporaries into SSA.
28877
28878 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
28879
28880 PR ipa/66223
28881 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
28882 calls when sanitizing.
28883 (possible_polymorphic_call_target_p): Fix formatting.
28884
28885 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28886 Jakub Jelinek <jakub@redhat.com>
28887
28888 PR middle-end/70457
28889 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
28890 to ensure a call statement is compatible with a built-in's
28891 prototype.
28892 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
28893 Likewise.
28894
28895 2016-04-04 Richard Biener <rguenther@suse.de>
28896
28897 PR rtl-optimization/70484
28898 * rtl.h (canon_output_dependence): Declare.
28899 * alias.c (canon_output_dependence): New function.
28900 * dse.c (record_store): Use canon_output_dependence rather
28901 than canon_true_dependence.
28902
28903 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
28904
28905 PR ipa/68881
28906 * cgraph.h (symtab_node::copy_visibility_from): New function.
28907 * symtab.c (symtab_node::copy_visibility_from): New function.
28908 * ipa-visibility.c (optimize_weakref): New function.
28909 (function_and_variable_visibility): Use it.
28910
28911 2016-04-04 Martin Liska <mliska@suse.cz>
28912
28913 PR hsa/70402
28914 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
28915 value that is really in range handled by SBR instruction.
28916 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
28917 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
28918 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
28919
28920 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
28921
28922 PR target/70416
28923 PR target/67391
28924 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
28925 set, but not for SP_REG operands.
28926
28927 2016-04-02 Martin Sebor <msebor@redhat.com>
28928
28929 PR c++/67376
28930 * fold-const.c (maybe_nonzero_address): New function.
28931 (fold_comparison): Call it. Fold equality and relational
28932 expressions involving null pointers.
28933 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
28934
28935 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
28936
28937 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
28938 the "Y" constraint (scalar FP 0.0 immediate).
28939
28940 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
28941 Add the "const_double" to the list of operand constraints.
28942
28943 2016-04-01 Jakub Jelinek <jakub@redhat.com>
28944
28945 PR rtl-optimization/70467
28946 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
28947 If low word of the last operand is 0, just emit addition/subtraction
28948 for the high word.
28949
28950 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28951
28952 PR target/70404
28953 * config/s390/s390.c (s390_expand_insv): Check for everything
28954 constant instead of just VOIDmode stuff.
28955
28956 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28957
28958 PR target/70496
28959 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
28960
28961 2016-04-01 Nathan Sidwell <nathan@acm.org>
28962
28963 * tree.def (TRY_CATCH_EXPR): Correct documentation.
28964
28965 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
28966
28967 PR rtl-optimization/70461
28968 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
28969 is necessary.
28970
28971 2016-03-31 Martin Liska <mliska@suse.cz>
28972
28973 PR hsa/70399
28974 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
28975 a tree value or an immediate integer value to a buffer
28976 that is eventually copied to a BRIG section.
28977 (emit_immediate_operand): Call the function here.
28978 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
28979 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
28980 of class' fields that are removed.
28981 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
28982 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
28983 m_brig_repr_size fields.
28984
28985 2016-03-31 Martin Liska <mliska@suse.cz>
28986
28987 PR hsa/70391
28988 * hsa-gen.c (hsa_function_representation::update_dominance): New
28989 function.
28990 (convert_addr_to_flat_segment): Likewise.
28991 (gen_hsa_memory_set): New alignment argument.
28992 (gen_hsa_ctor_assignment): Likewise.
28993 (gen_hsa_insns_for_single_assignment): Provide alignment
28994 to gen_hsa_ctor_assignment.
28995 (gen_hsa_insns_for_direct_call): Add new argument.
28996 (expand_lhs_of_string_op): New function.
28997 (expand_string_operation_builtin): Likewise.
28998 (expand_memory_copy): New function.
28999 (expand_memory_set): New function.
29000 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
29001 (convert_switch_statements): Change signature.
29002 (generate_hsa): Use a return value of the function.
29003 (pass_gen_hsail::execute): Do not call
29004 convert_switch_statements here.
29005 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
29006 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
29007 (hsa_function_representation::update_dominance): New function.
29008
29009 2016-03-31 Martin Liska <mliska@suse.cz>
29010
29011 PR hsa/70391
29012 * hsa-brig.c (emit_directive_variable): Emit alignment
29013 according to hsa_symbol::m_align.
29014 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
29015 (dump_hsa_symbol): Dump alignment of HSA symbols.
29016 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
29017 (gen_hsa_addr_with_align): New function.
29018 (hsa_bitmemref_alignment): Use newly added function.
29019 (gen_hsa_insns_for_load): Likewise.
29020 (gen_hsa_insns_for_store): Likewise.
29021 (gen_hsa_memory_copy): New argument added.
29022 (gen_hsa_insns_for_single_assignment): Respect
29023 alignment for assignments processed via gen_hsa_memory_copy.
29024 (gen_hsa_insns_for_direct_call): Likewise.
29025 (gen_hsa_insns_for_return): Likewise.
29026 (gen_function_def_parameters): Set default alignment.
29027 * hsa.c (hsa_object_alignment): New function.
29028 (hsa_byte_alignment): Pasted function.
29029 * hsa.h (hsa_symbol::m_align): New field.
29030
29031 2016-03-31 Bin Cheng <bin.cheng@arm.com>
29032
29033 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
29034 scratch field for goto case.
29035
29036 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
29037
29038 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
29039
29040 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
29041
29042 PR target/70442
29043 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
29044 (scalar_chain::convert_insn): Call convert_op for reg
29045 moves to handle undefined registers.
29046
29047 2016-03-31 Nathan Sidwell <nathan@acm.org>
29048
29049 PR c++/70393
29050 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
29051 Assert we don't want to move backwards.
29052
29053 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
29054
29055 PR target/70453
29056 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
29057
29058 2016-03-31 Jakub Jelinek <jakub@redhat.com>
29059
29060 PR rtl-optimization/70460
29061 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
29062 with operand from REG_LABEL_OPERAND, instead substitute
29063 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
29064 Don't do anything for REG_NON_LOCAL_GOTO jumps.
29065
29066 2016-03-31 Martin Liska <mliska@suse.cz>
29067
29068 * passes.c (execute_one_pass): Do not call
29069 todo_after for a discarded function.
29070
29071 2016-03-31 Bin Cheng <bin.cheng@arm.com>
29072
29073 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
29074 (no_cost, infinite_cost): Initialize the new field.
29075 (get_computation_cost_at): Record setup cost.
29076 (determine_use_iv_cost_address): Skip cost computation for sub
29077 uses if we can estimate it without losing accuracy.
29078
29079 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
29080
29081 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
29082 estimates here.
29083 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
29084 max_loop_iterations_int.
29085 (tree_unswitch_outer_loop): Likewise.
29086 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
29087 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
29088
29089 2016-03-30 Richard Biener <rguenther@suse.de>
29090
29091 PR middle-end/70450
29092 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
29093
29094 2016-03-30 Jakub Jelinek <jakub@redhat.com>
29095
29096 PR target/70421
29097 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
29098 in gen_blendm expander.
29099
29100 2016-03-30 Nick Clifton <nickc@redhat.com>
29101
29102 PR target/62254
29103 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
29104 case where we are already provided with an SImode SUBREG.
29105
29106 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
29107
29108 PR target/70439
29109 * config/i386/i386.c (ix86_expand_epilogue): Properly check
29110 conflict between DRAP register and __builtin_eh_return.
29111
29112 2016-03-30 Michael Matz <matz@suse.de>
29113 Richard Biener <rguenther@suse.de>
29114
29115 PR ipa/12392
29116 * ipa-polymorphic-call.c (struct type_change_info): Change
29117 speculative to an unsigned allowing to limit the work we do.
29118 (csftc_abort_walking_p): New inline function..
29119 (check_stmt_for_type_change): Limit the number of may-defs
29120 skipped for speculative devirtualization to
29121 max-speculative-devirt-maydefs.
29122 * params.def (max-speculative-devirt-maydefs): New param.
29123 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
29124
29125 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
29126
29127 PR target/63890
29128 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
29129 and TARGET_MACHO.
29130
29131 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
29132
29133 PR tree-optimization/59124
29134 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
29135 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
29136
29137 2016-03-29 Jeff Law <law@redhat.com>
29138
29139 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
29140
29141 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
29142
29143 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
29144 to HOST_WIDE_INT.
29145
29146 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
29147
29148 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
29149 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
29150 gcrt0.o if linking dynamically.
29151
29152 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
29153
29154 PR ipa/70283
29155 * ipa-devirt.c (methods_equal_p): New function.
29156 (compare_virtual_tables): Use it.
29157 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
29158 * cgraphclones.c (clone_function_name_1): Use
29159 symbol_table::symbol_suffix_separator.
29160 * coverage.c (build_var): Likewise.
29161 * symtab.c (symbol_table::symbol_suffix_separator): New.
29162
29163 2016-03-29 Jakub Jelinek <jakub@redhat.com>
29164
29165 PR rtl-optimization/70429
29166 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
29167 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
29168 mode != result_mode.
29169
29170 PR c++/70353
29171 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
29172
29173 PR tree-optimization/70405
29174 * ssa-iterators.h (num_imm_uses): Add missing braces.
29175
29176 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
29177
29178 PR rtl-optimization/68695
29179 * ira-color.c (allocno_copy_cost_saving): New.
29180 (improve_allocation): Use it.
29181
29182 2016-03-29 Richard Henderson <rth@redhat.com>
29183
29184 PR middle-end/70355
29185 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
29186
29187 2016-03-29 Richard Biener <rguenther@suse.de>
29188
29189 PR middle-end/70424
29190 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
29191 use alignment returned by get_pointer_alignment_1 if it is
29192 bigger than BITS_PER_UNIT.
29193 * builtins.c (get_pointer_alignment_1): Do not return true
29194 for alignment extracted from SSA info.
29195
29196 2016-03-28 James Bowman <james.bowman@ftdichip.com>
29197
29198 * config/ft32/ft32.opt (mnodiv): New.
29199 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
29200 * doc/invoke.texi (FT32 Options -mnodiv): New.
29201
29202 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
29203
29204 PR target/70406
29205 * config/i386/i386.md (define_split, andn): Fix modes.
29206
29207 2016-03-26 Richard Biener <rguenther@suse.de>
29208 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
29209
29210 PR ipa/70366
29211 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
29212 instead of
29213 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
29214 as 2nd argument to cl_optimization_restore().
29215
29216 2016-03-25 Richard Henderson <rth@redhat.com>
29217
29218 PR target/70120
29219 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
29220 * config/aarch64/aarch64-protos.h: Declare it.
29221 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
29222
29223 2016-03-25 Alan Modra <amodra@gmail.com>
29224
29225 PR target/70052
29226 * config/rs6000/constraints.md (j): Simplify.
29227 * config/rs6000/predicates.md (easy_fp_constant): Exclude
29228 decimal float 0.D.
29229 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
29230 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
29231 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
29232 in all constraint alternatives.
29233 (movtd_64bit_nodm): Delete "j" constraint alternative.
29234
29235 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
29236
29237 * tree-ssa-propagate.c: Enhance docs for
29238 SSA_PROP_NOT_INTERESTING.
29239
29240 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
29241
29242 * doc/extend.texi: Fix typo in documentation to pure attribute.
29243
29244 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
29245
29246 PR target/70319
29247 * config/pa/pa.md (bswapdi2): Use a scratch register.
29248
29249 2016-03-24 Richard Henderson <rth@redhat.com>
29250
29251 PR middle-end/69845
29252 * fold-const.c (extract_muldiv_1): Correct test for multiplication
29253 overflow.
29254
29255 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
29256
29257 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
29258 using ix86_expand_binary_operator instead of gen_andsi3.
29259
29260 2016-03-24 Richard Biener <rguenther@suse.de>
29261
29262 PR tree-optimization/70396
29263 * tree-vect-stmts.c (vectorizable_comparison): Use
29264 get_vectype_for_scalar_type.
29265
29266 2016-03-24 Richard Biener <rguenther@suse.de>
29267
29268 PR middle-end/70370
29269 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
29270 with register bases.
29271
29272 2016-03-24 Richard Biener <rguenther@suse.de>
29273
29274 PR tree-optimization/70372
29275 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
29276 build_all_ones_cst to also handle vector types correctly.
29277
29278 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
29279
29280 PR target/70381
29281 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
29282 -mfloat128 here.
29283
29284 2016-03-23 Marek Polacek <polacek@redhat.com>
29285
29286 PR c++/69884
29287 * doc/invoke.texi: Document -Wignored-attributes.
29288
29289 2016-03-23 Bin Cheng <bin.cheng@arm.com>
29290
29291 PR tree-optimization/69042
29292 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
29293 parameter from 30 to 40.
29294
29295 2016-03-23 Bin Cheng <bin.cheng@arm.com>
29296
29297 PR tree-optimization/69042
29298 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
29299 for use with constant offset stripped in base.
29300
29301 2016-03-23 Richard Biener <rguenther@suse.de>
29302
29303 PR middle-end/70251
29304 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
29305 mode compatibility check.
29306 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
29307
29308 2016-03-23 Jeff Law <law@redhat.com>
29309
29310 PR tree-optimization/64058
29311 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
29312 CONFLICT_COUNT.
29313 (struct ssa_conflicts): Move up earlier in the file.
29314 (conflicts_, var_map_): New static variables.
29315 (initialize_conflict_count): New function to initialize the
29316 CONFLICT_COUNT field for each conflict pair.
29317 (compare_pairs): Lazily initialize the conflict count and use it
29318 as the first tie-breaker.
29319 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
29320 and wipe conflicts_ and map_ around the call to qsort. Remove
29321 special case for 2 coalesce pairs.
29322 * bitmap.c (bitmap_count_unique_bits): New function.
29323 (bitmap_count_bits_in_word): New function, extracted from
29324 bitmap_count_bits.
29325 (bitmap_count_bits): Use bitmap_count_bits_in_word.
29326 * bitmap.h (bitmap_count_unique_bits): Declare it.
29327
29328 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
29329
29330 PR target/69917
29331 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
29332 transparent alias chain for decl assembler name.
29333 * config/sol2.c (solaris_assemble_visibility): Likewise.
29334
29335 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29336
29337 * config/arm/arm1020e.md (1020call_op): Reduce reservation
29338 duration.
29339 (v10_fdivs): Likewise.
29340 (v10_fdivd): Likewise.
29341
29342 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29343
29344 PR driver/70132
29345 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
29346 to not call fclose twice on file.
29347
29348 2016-03-23 Jakub Jelinek <jakub@redhat.com>
29349
29350 PR tree-optimization/70354
29351 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
29352 oprnd0 is wider than oprnd1 and there is a cast from the wider
29353 type to oprnd1, mask it with the mask of the narrower type.
29354
29355 PR target/70321
29356 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
29357 Optimize TARGET_STV splitters, if high or low word of last argument
29358 is 0 or -1.
29359
29360 2016-03-22 Jeff Law <law@redhat.com>
29361
29362 PR target/70232
29363 tree-ssa-threadbackward.c
29364 (fsm_find_control_statement_thread_paths): Correctly distinguish
29365 between old style jump threads vs FSM jump threads.
29366
29367 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
29368
29369 PR target/70302
29370 * config/i386/i386.c (scalar_chain::convert_op): Support
29371 uninitialized register usage case.
29372
29373 2016-03-22 Richard Biener <rguenther@suse.de>
29374
29375 PR middle-end/70251
29376 * genmatch.c (gen_transform): Adjust last parameter to a three-state
29377 int...
29378 (capture::gen_transform): ... to change behavior when substituting
29379 a condition into cond or not-cond expr context.
29380 (dt_simplify::gen_1): Adjust.
29381 * gimple-match-head.c: Include gimplify.h for unshare_expr.
29382 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
29383 last change and instead change to
29384 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
29385 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
29386
29387 2016-03-22 Anthony Green <green@moxielogic.com>
29388
29389 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
29390 issue for moxiebox targets.
29391 (CC1PLUS_SPEC): Ditto.
29392
29393 2016-03-22 Richard Biener <rguenther@suse.de>
29394
29395 PR middle-end/70333
29396 * fold-const.c (extract_muldiv_1): Properly perform multiplication
29397 in the wide type.
29398
29399 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
29400
29401 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
29402
29403 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
29404
29405 PR target/70325
29406 * config/i386/i386.c (def_builtin): Handle
29407 OPTION_MASK_ISA_AVX512VL to be and-ed with other
29408 bits.
29409 (const struct builtin_description bdesc_special_args[]):
29410 Remove duplicate ISA bits.
29411
29412 2016-03-22 Jakub Jelinek <jakub@redhat.com>
29413
29414 PR target/70329
29415 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
29416 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
29417 in a way that works also for AVX512BW.
29418
29419 PR target/70300
29420 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
29421 instead of source if operands[1] is xmm16 and above and
29422 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
29423 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
29424
29425 PR c++/70295
29426 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
29427 on assign if (*from_p) is a comparison, set it to
29428 TREE_NO_WARNING (*from_p).
29429
29430 2016-03-21 Jakub Jelinek <jakub@redhat.com>
29431
29432 PR middle-end/70326
29433 * lra.c (restore_scratches): Ignore deleted insns.
29434
29435 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
29436 Jakub Jelinek <jakub@redhat.com>
29437
29438 PR tree-optimization/70317
29439 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
29440 to HONOR_NANS.
29441
29442 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
29443
29444 PR target/70327
29445 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
29446 of ix86_expand_move.
29447 (movoi): Ditto.
29448 (movti): Use general_operand for operand 1 predicate.
29449
29450 2016-03-21 Martin Liska <mliska@suse.cz>
29451
29452 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
29453 insns.
29454 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
29455
29456 2016-03-21 Martin Liska <mliska@suse.cz>
29457
29458 PR ipa/70306
29459 * ipa-icf.c (sem_function::parse): Skip static
29460 constructors and destructors.
29461
29462 2016-03-21 Jakub Jelinek <jakub@redhat.com>
29463
29464 PR target/70296
29465 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
29466 function-like macro, peek following token(s) if it is followed
29467 by CPP_OPEN_PAREN token with optional padding in between, and
29468 if not, don't treat it like a macro.
29469
29470 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
29471 Alexander Monakov <amonakov@ispras.ru>
29472
29473 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
29474 for the stabs debug format.
29475
29476 2016-03-21 Richard Biener <rguenther@suse.de>
29477
29478 PR tree-optimization/70310
29479 * tree-vect-generic.c (expand_vector_condition): Fold the built
29480 condition.
29481
29482 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
29483
29484 PR target/70293
29485 * config/i386/sse.md (define_insn "*vec_dup<mode>"/AVX2):
29486 Block third alternative for AVX-512VL target,
29487
29488 2016-03-21 Martin Liska <mliska@suse.cz>
29489
29490 PR hsa/70234
29491 * hsa-brig.c (emit_function_directives): Mark unemitted
29492 global variables for emission.
29493 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
29494 (get_symbol_for_decl): Likewise.
29495 * hsa.h (struct hsa_symbol): New flag.
29496
29497 2016-03-21 Richard Biener <rguenther@suse.de>
29498
29499 PR tree-optimization/70288
29500 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
29501 we do not estimate unsimplified all-constant conditionals or
29502 switches as optimized away.
29503
29504 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
29505
29506 PR rtl-optimization/69102
29507 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
29508 when we have a readonly dependency context.
29509
29510 2016-03-18 Jeff Law <law@redhat.com>
29511
29512 PR rtl-optimization/70263
29513 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
29514 (update_equiv_regs): When trying to move a store to after the insn
29515 that sets the source of the store, make sure the store occurs after
29516 the insn that sets the source of the store. When successful note
29517 the REG_EQUIV note created in the dump file.
29518
29519 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
29520 Bernd Schmidt <bschmidt@redhat.com>
29521
29522 * doc/extend.texi: Document more potential problems with basic asms.
29523
29524 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
29525
29526 PR rtl-optimization/70278
29527 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
29528 VOIDmode.
29529
29530 2016-03-18 Jason Merrill <jason@redhat.com>
29531
29532 * calls.c (load_register_parameters): Fix zero size sibcall logic.
29533
29534 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
29535
29536 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
29537 values to 128b regs.
29538
29539 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
29540
29541 PR tree-optimization/70252
29542 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
29543 boolean vector has a proper number of elements.
29544 (supportable_narrowing_operation): Likewise.
29545
29546 2016-03-18 Tom de Vries <tom@codesourcery.com>
29547
29548 PR ipa/70269
29549 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
29550
29551 2016-03-18 Jakub Jelinek <jakub@redhat.com>
29552
29553 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
29554 instead of replace_rtx for DEBUG_INSNs.
29555
29556 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
29557
29558 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
29559 load type reservations.
29560
29561 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
29562
29563 PR target/70188
29564 * config/pa/constraints.md: Revert 2015-02-13 change. Use
29565 define_constraint for "Q" and "T" constraints.
29566
29567 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
29568
29569 Tweak the pipeline model for Exynos M1
29570
29571 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
29572 model.
29573
29574 2016-03-17 David Malcolm <dmalcolm@redhat.com>
29575
29576 PR c/70264
29577 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
29578 where one or both locations aren't within a line_map.
29579
29580 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
29581
29582 PR driver/70192
29583 * opts.c (finish_options): Don't set flag_pie to the default if
29584 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
29585 if it is -1.
29586
29587 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
29588
29589 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
29590 true as ALL_REGS argument to replace_rtx.
29591
29592 2016-03-17 Richard Biener <rguenther@suse.de>
29593
29594 PR debug/70271
29595 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
29596 last.
29597
29598 2016-03-17 Jakub Jelinek <jakub@redhat.com>
29599
29600 PR target/70245
29601 * rtl.h (replace_rtx): Add ALL_REGS argument.
29602 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
29603 equality and assert mode is the same, instead of just rtx pointer
29604 equality.
29605 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
29606 true as ALL_REGS argument to replace_rtx.
29607
29608 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
29609
29610 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
29611 for boolean vector with vector mode only.
29612 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
29613
29614 2016-03-17 Nick Clifton <nickc@redhat.com>
29615
29616 PR target/70162
29617 * config/rx/rx.c (rx_print_integer): Print negative constants in
29618 decimal.
29619
29620 2016-03-17 Jakub Jelinek <jakub@redhat.com>
29621
29622 PR target/70261
29623 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
29624
29625 2016-03-16 Richard Henderson <rth@redhat.com>
29626 Richard Biener <rguenth@suse.de>
29627
29628 PR middle-end/70240
29629 PR middle-end/68215
29630 PR tree-opt/68714
29631 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
29632 first operand as is_gimple_condexpr.
29633
29634 PR middle-end/70240
29635 PR middle-end/68215
29636 Revert r231575
29637 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
29638 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
29639 Do not gimplify the result.
29640 (do_unop): Adjust call to tree_vec_extract.
29641 (do_binop): Likewise.
29642 (do_compare): Likewise.
29643 (do_plus_minus): Likewise.
29644 (do_negate): Likewise.
29645 (expand_vector_condition): Likewise.
29646 (do_cond): Likewise.
29647
29648 2016-03-16 Richard Henderson <rth@redhat.com>
29649
29650 PR target/70048
29651 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
29652 (aarch64_classify_address): Use it.
29653 (aarch64_legitimize_address): Force all subexpressions of PLUS
29654 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
29655
29656 2016-03-16 Jakub Jelinek <jakub@redhat.com>
29657 Richard Biener <rguenth@suse.de>
29658
29659 PR target/70245
29660 * rtlanal.c (replace_rtx): For REG, if from is a REG,
29661 return to even if only REGNO is equal, and assert
29662 mode is the same.
29663
29664 2016-03-11 Jeff Law <law@redhat.com>
29665
29666 PR rtl-optimization/70224
29667 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
29668
29669 2016-03-16 Richard Henderson <rth@redhat.com>
29670
29671 PR middle-end/70199
29672 * function.h (struct function): Add has_forced_label_in_static.
29673 * gimplify.c (force_labels_r): Set it.
29674 * lto-streamer-in.c (input_struct_function_base): Read it.
29675 * lto-streamer-out.c (output_struct_function_base): Write it.
29676 * tree-inline.c (has_label_address_in_static_1): Remove.
29677 (copy_forbidden): Remove fndecl parameter; test
29678 has_forced_label_in_static.
29679 (inline_forbidden_p): Update call to copy_forbidden.
29680 (tree_versionable_function_p): Likewise.
29681 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
29682 (chkp_versioning): Likewise.
29683 * tree-inline.h (copy_forbidden): Update decl.
29684
29685 2016-03-16 Marek Polacek <polacek@redhat.com>
29686
29687 PR c/70093
29688 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
29689 function being thunked if the result type doesn't have fixed size.
29690 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
29691 doesn't have fixed size.
29692
29693 2016-03-16 Bin Cheng <bin.cheng@arm.com>
29694
29695 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
29696 reporting malformed loop nest.
29697
29698 2016-03-16 Tom de Vries <tom@codesourcery.com>
29699
29700 PR lto/70187
29701 * ipa-devirt.c (possible_polymorphic_call_targets): Move
29702 nodes.length () == 1 test to before first nodes[0] access.
29703
29704 2016-03-16 Tom de Vries <tom@codesourcery.com>
29705
29706 PR tree-optimization/68715
29707 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
29708 single_pred_p test.
29709
29710 2016-03-16 Tom de Vries <tom@codesourcery.com>
29711
29712 PR tree-optimization/68809
29713 * graphite-scop-detection.c (same_close_phi_node): Test if result types
29714 are the same.
29715
29716 2016-03-16 Carlos O'Donell <carlos@redhat.com>
29717 Sandra Loosemore <sandra@codesourcery.com>
29718
29719 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
29720 on leaf attribute. Mention ELF interposition problems.
29721
29722 2016-03-16 Alan Modra <amodra@gmail.com>
29723
29724 PR rtl-optimization/69195
29725 PR rtl-optimization/47992
29726 * ira.c (indirect_jump_optimize): Ignore artificial defs.
29727 Add comments.
29728
29729 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
29730
29731 PR bootstrap/69513
29732 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
29733
29734 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
29735
29736 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
29737
29738 2016-03-15 Jakub Jelinek <jakub@redhat.com>
29739
29740 PR rtl-optimization/70222
29741 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
29742 optimization if mode is different from result_mode, queue up masking
29743 of the result in outer_op. Formatting fix.
29744
29745 PR middle-end/70239
29746 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
29747 of safe_grow.
29748
29749 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
29750
29751 PR rtl-optimization/69032
29752 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
29753 looping backwards over basic block insns.
29754
29755 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
29756
29757 PR target/66660
29758 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
29759 to non-speculative when propagating trap bits.
29760
29761 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
29762
29763 PR rtl-optimization/63384
29764 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
29765 DEBUG_INSN_P insns.
29766
29767 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
29768
29769 PR target/64411
29770 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
29771 factored out from ...
29772 (sched_analyze_insn): ... here.
29773 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
29774 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
29775 get_implicit_reg_pending_clobbers in it.
29776 (setup_id_reg_sets): Use setup_id_implicit_regs.
29777 (deps_init_id): Ditto.
29778
29779 2016-03-15 Tom de Vries <tom@codesourcery.com>
29780
29781 PR ipa/70161
29782 * cgraph.c (cgraph_node::get_body): Save, reset and restore
29783 dump_file_name.
29784 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
29785 execute_function_dump.
29786 (execute_one_pass): Don't dump function if it will be dumped after ipa
29787 transform.
29788
29789 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
29790
29791 * genrecog.c (match_pattern_2): If pred is NULL don't call
29792 safe_predicate_mode on it.
29793
29794 2016-03-14 Jakub Jelinek <jakub@redhat.com>
29795
29796 PR middle-end/70219
29797 * lra-constraints.c (delete_move_and_clobber): Change assertion
29798 to also allow dregno == 0.
29799
29800 2016-03-14 Richard Henderson <rth@redhat.com>
29801
29802 PR tree-opt/68714
29803 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
29804 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
29805 (reassociate_bb): Use optimize_vec_cond_expr; avoid
29806 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
29807 on vectors.
29808
29809 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
29810
29811 PR target/70083
29812 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
29813 regs.
29814 (lra_create_live_ranges_1): initialize hard register biggest_mode to
29815 VOIDmode.
29816 * lra-constraints.c (split_reg): For hard regs, try to find the
29817 biggest single-register mode used in the function.
29818
29819 2016-03-14 Richard Biener <rguenther@suse.de>
29820
29821 PR tree-optimization/56365
29822 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
29823 constants to compare against.
29824
29825 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
29826
29827 PR target/70098
29828 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
29829 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
29830 (define_split for the GPR case): Use int_reg_operand instead of
29831 gpc_reg_operand for the output.
29832
29833 2016-03-14 Tom de Vries <tom@codesourcery.com>
29834
29835 PR tree-optimization/70045
29836 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
29837 create_empty_if_region_on_edge argument.
29838
29839 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
29840
29841 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
29842 (STACK_CHECK_PROTECT): Likewise.
29843 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
29844 (STACK_CHECK_PROTECT): Likewise.
29845 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
29846 (STACK_CHECK_PROTECT): Likewise.
29847 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
29848 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
29849 (STACK_CHECK_PROTECT): Likewise.
29850
29851 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
29852
29853 PR rtl-optimization/69307
29854 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
29855 registers in modes that span more than one register.
29856
29857 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
29858
29859 PR target/69614
29860 * lra-constraints.c (delete_move_and_clobber): New.
29861 (remove_inheritance_pseudos): Use it.
29862
29863 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
29864
29865 PR ada/70017
29866 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
29867 the libcall is LCT_THROW.
29868 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
29869 for the checking routine.
29870
29871 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
29872
29873 PR target/70131
29874 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
29875 optimization if we have direct move.
29876 (roundu32<mode>2_fprs): Likewise.
29877
29878 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
29879
29880 PR target/70123
29881 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
29882 be rematerialized.
29883 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
29884 Arguments swapped. All callers changed. Take reg_renumber into
29885 account, and Calculate and compare register ranges for hard regs.
29886
29887 2016-03-11 Jeff Law <law@redhat.com>
29888
29889 PR tree-optimization/70190
29890 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
29891 Handle cases where we can not extract the taken edge, even though we
29892 found a constant value.
29893
29894 PR tree-optimization/64058
29895 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
29896 (num_coalesce_pairs): Move up earlier in file.
29897 (find_coalesce_pair): Initialize the INDEX field for each pair
29898 discovered.
29899 (compare_pairs): No longer sort on the elements in each pair.
29900 Instead break ties with the index of the coalesce pair.
29901
29902 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29903
29904 PR target/70002
29905 * config/aarch64/aarch64-protos.h
29906 (aarch64_save_restore_target_globals): New prototype.
29907 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
29908 Call the above when popping pragma.
29909 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
29910 New function.
29911 (aarch64_set_current_function): Rewrite using the above.
29912
29913 2016-03-11 Jakub Jelinek <jakub@redhat.com>
29914
29915 PR tree-optimization/70177
29916 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
29917 (extract_ops_from_tree): ... this. In the 2 argument
29918 overload remove _1 suffix.
29919 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
29920 (extract_ops_from_tree): ... this.
29921 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
29922 Adjust callers.
29923 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
29924 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
29925 extract_ops_from_tree instead of 2 operand one.
29926
29927 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
29928
29929 PR tree-optimization/70013
29930 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
29931 for constant-pool entries.
29932
29933 2016-03-11 Jakub Jelinek <jakub@redhat.com>
29934
29935 PR rtl-optimization/70174
29936 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
29937 followed by gen_lowpart on force_reg instead of just gen_lowpart.
29938
29939 PR tree-optimization/70169
29940 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
29941 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
29942 for unknown codes.
29943
29944 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
29945 Jakub Jelinek <jakub@redhat.com>
29946
29947 PR target/70160
29948 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
29949 of uninitialized values.
29950
29951 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29952
29953 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
29954 define_expand.
29955 ("*trunctddd2"): New pattern definition.
29956 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
29957 TD->DD truncation.
29958
29959 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29960
29961 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
29962 definitions for BFP and DFP rounding modes.
29963 ("fixuns_truncdddi2", "fixuns_trunctddi2")
29964 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
29965 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
29966 ("fix_trunctf<mode>2"): Use the new constants instead of magic
29967 numbers.
29968
29969 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29970
29971 * config/s390/constraints.md: Adjust comment.
29972 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
29973 s390_decompose_addrstyle_without_index.
29974 * config/s390/predicates.md (shift_count_or_setmem_operand):
29975 Rename to setmem_operand.
29976 * config/s390/s390-protos.h
29977 (s390_decompose_shift_count): Rename to
29978 s390_decompose_addrstyle_without_index.
29979 * config/s390/s390.c (s390_decompose_shift_count)
29980 (s390_mem_constraint, print_shift_count_operand)
29981 (print_operand_address, print_operand): Rename
29982 s390_decompose_shift_count to
29983 s390_decompose_addrstyle_without_index and rename
29984 print_shift_count_operand to print_addrstyle_operand troughout the
29985 file.
29986 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
29987 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
29988 Rename shift_count_or_setmem_operand to setmem_operand.
29989 * config/s390/vx-builtins.md ("vec_insert<mode>")
29990 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
29991 nonmemory_operand.
29992
29993 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29994
29995 PR target/70168
29996 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
29997 Handle overlapping retval and newval.
29998
29999 2016-03-10 Nick Clifton <nickc@redhat.com>
30000
30001 PR target/7044
30002 * config/aarch64/aarch64.c
30003 (aarch64_override_options_after_change_1): When forcing
30004 flag_omit_frame_pointer to be true, use a special value that can
30005 be detected if this function is called again, thus preventing
30006 flag_omit_leaf_frame_pointer from being forced to be false.
30007
30008 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30009
30010 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
30011 Set x_flag_omit_leaf_frame_pointer when handling
30012 -momit-leaf-frame-pointer.
30013
30014 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
30015
30016 PR lto/69589
30017 * cgraph.c (cgraph_node::dump): Dump split_part and
30018 indirect_call_target.
30019 * cgraph.h (cgraph_node): Add indirect_call_target flag.
30020 * ipa.c (has_addr_references_p): Cleanup.
30021 (is_indirect_call_target_p): New.
30022 (walk_polymorphic_call_targets): Do not mark virtuals that may be
30023 called indirectly as local.
30024 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
30025
30026 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
30027
30028 PR ipa/69630
30029 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
30030 on cxa_pure_virtual.
30031
30032 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
30033
30034 PR lto/69589
30035 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
30036
30037 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
30038
30039 PR lto/69589
30040 * tree.c (need_assembler_name_p): Only record main variant type names.
30041
30042 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
30043
30044 PR target/70113.
30045 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
30046 Always define to 0 or 1.
30047 (TARGET_FIX_ERR_A53_843419): New macro.
30048 * config/aarch64/aarch64-elf-raw.h
30049 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
30050 * config/aarch64/aarch64-linux.h: Likewise.
30051 * config/aarch64/aarch64.c
30052 (aarch64_override_options_after_change_1): Do not default
30053 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
30054 843419 is on.
30055 (aarch64_attributes): Handle fix-cortex-a53-843419.
30056 (aarch64_can_inline_p): Likewise.
30057 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
30058
30059 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
30060 Jakub Jelinek <jakub@redhat.com>
30061
30062 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
30063 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
30064 DECL_COMMONS if flag_unconstrained_commons is set.
30065 * tree-dfa.c (get_ref_base_and_extent): Likewise.
30066 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
30067 (funconstrained-commons): Document.
30068
30069 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
30070
30071 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
30072 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
30073
30074 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
30075
30076 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
30077 has a proper number of elements.
30078
30079 2016-03-10 Alan Modra <amodra@gmail.com>
30080
30081 PR rtl-optimization/69195
30082 PR rtl-optimization/47992
30083 * ira.c (recorded_label_ref): Delete.
30084 (update_equiv_regs): Return void.
30085 (indirect_jump_optimize): New function.
30086 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
30087 before regstat_compute_ri. Don't rebuild_jump_labels here.
30088 Delete update_regstat.
30089
30090 2016-03-10 Richard Biener <rguenther@suse.de>
30091
30092 PR tree-optimization/70128
30093 * tree-ssa-structalias.c (set_uids_in_ptset): Set
30094 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
30095
30096 2016-03-09 Jakub Jelinek <jakub@redhat.com>
30097
30098 PR tree-optimization/70152
30099 * tree-sra.c (replace_removed_params_ssa_names): Copy over
30100 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
30101
30102 PR target/70086
30103 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
30104 instead of gen_sse2_loadlpd.
30105 * config/i386/sse.md (*vec_concatv2df): Rename to...
30106 (vec_concatv2df): ... this.
30107
30108 PR tree-optimization/70127
30109 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
30110
30111 2016-03-09 David Malcolm <dmalcolm@redhat.com>
30112
30113 PR c/68473
30114 PR c++/70105
30115 * diagnostic-show-locus.c (compatible_locations_p): New function.
30116 (layout::layout): Sanitize ranges using compatible_locations_p.
30117
30118 2016-03-09 David Malcolm <dmalcolm@redhat.com>
30119
30120 PR c/68473
30121 PR c++/70105
30122 * diagnostic-show-locus.c (layout_range::layout_range): Replace
30123 location_range param with three const expanded_locations * and a
30124 bool.
30125 (layout::layout): Replace call to
30126 rich_location::lazily_expand_location with get_expanded_location.
30127 Extract the range and perform location expansion here, passing
30128 the results to the layout_range ctor.
30129 * diagnostic.c (source_range::debug): Delete.
30130 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
30131 of rich_location::get_expanded_location.
30132 * gcc-rich-location.c (get_range_for_expr): Delete.
30133 (gcc_rich_location::add_expr): Reimplement to avoid the
30134 rich_location::add_range overload that took a location_range,
30135 passing a location_t instead.
30136
30137 2016-03-09 Richard Biener <rguenther@suse.de>
30138 Jakub Jelinek <jakub@redhat.com>
30139
30140 PR tree-optimization/70138
30141 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
30142 Also skip vect_double_reduction_def.
30143
30144 2016-03-09 Jakub Jelinek <jakub@redhat.com>
30145
30146 PR target/70049
30147 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
30148 if the operand is "m".
30149
30150 2016-03-09 Nathan Sidwell <nathan@acm.org>
30151
30152 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
30153
30154 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
30155
30156 * config/i386/i386.c (processor_target_table): Fix cost table
30157 intialization order for znver1.
30158
30159 2016-03-08 Jakub Jelinek <jakub@redhat.com>
30160
30161 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
30162 - becuase -> because.
30163 * ipa-reference.c (ignore_module_statics): Likewise.
30164 * cgraph.c (cgraph_node::get_body): Likewise.
30165 * ipa-inline.c (early_inliner): Likewise.
30166 * ipa-devirt.c (types_same_for_odr): Likewise.
30167 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
30168 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
30169
30170 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30171
30172 * tree-ssa-math-opts.c: Fix typo in comment.
30173
30174 2016-03-08 Jakub Jelinek <jakub@redhat.com>
30175
30176 PR target/70110
30177 * config/i386/i386.c (scalar_chain::make_vector_copies,
30178 scalar_chain::convert_reg): Call end_sequence in between
30179 get_insns and emit_conversion_insns rather than after both
30180 calls.
30181
30182 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
30183
30184 PR target/70064
30185 * config/i386/i386.h (machine_function): Add
30186 pc_thunk_call_expanded flag.
30187 (ix86_pc_thunk_call_expanded): New define.
30188 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
30189 (*set_got): Rename insn pattern from set_got.
30190 (*set_got_labelled): Rename inst pattern from set_got_labelled.
30191 * config/i386/i386.c (ix86_compute_frame_layout): Use
30192 ix86_pc_thunk_call_expanded to prevent red-zone.
30193
30194 2016-03-07 Martin Jambor <mjambor@suse.cz>
30195
30196 * hsa.h (hsa_get_ctor_statements): Declare.
30197 (hsa_get_dtor_statements): Likewise.
30198 (hsa_get_kernel_dispatch_type): Likewise.
30199 * hsa.c (hsa_get_ctor_statements): New function.
30200 (hsa_get_dtor_statements): Likewise.
30201 (hsa_get_kernel_dispatch_type): Likewise.
30202 * hsa-brig.c (hsa_cdtor_statements): Removed.
30203 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
30204 hsa_get_dtor_statements.
30205 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
30206 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
30207
30208 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
30209
30210 * config/arm/arm-cores.def (cortex-r8): New.
30211 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
30212 * config/arm/arm-tune.md: Likewise.
30213 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
30214
30215 2016-03-07 Martin Sebor <msebor@redhat.com>
30216
30217 PR rtl-optimization/19705
30218 * doc/invoke.texi (Options That Control Optimization): Clarify
30219 -fno-branch-count-reg.
30220
30221 2016-02-26 Richard Biener <rguenther@suse.de>
30222 Jeff Law <law@redhat.com>
30223
30224 PR tree-optimization/69740
30225 * cfghooks.c (remove_edge): Request loop fixups if we delete
30226 an edge that might turn an irreducible loop into a natural
30227 loop.
30228 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
30229 Move after definition of loops_state_clear.
30230
30231 2016-03-07 Bin Cheng <bin.cheng@arm.com>
30232
30233 PR rtl-optimization/69052
30234 * rtlanal.c (commutative_operand_precedence): Set higher precedence
30235 to CONST_WIDE_INT.
30236
30237 2016-03-07 Tom de Vries <tom@codesourcery.com>
30238
30239 PR tree-optimization/70116
30240 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
30241 is_tm_ending stmts and ubsan/asan internal functions.
30242 (find_duplicate): Use it. Don't test is_tm_ending here.
30243
30244 2016-03-07 Richard Biener <rguenther@suse.de>
30245
30246 PR tree-optimization/70115
30247 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
30248 (propagate_constants_for_unrolling): Use replace_uses_by.
30249
30250 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
30251
30252 PR middle-end/69916
30253 * omp-low.c (struct oacc_loop): Add ifns.
30254 (new_oacc_loop_raw): Initialize it.
30255 (finish_oacc_loop): Clear mask & flags if no ifns.
30256 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
30257 (oacc_loop_xform_loop): Add ifns arg & adjust.
30258 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
30259
30260 2016-03-07 Richard Henderson <rth@redhat.com>
30261
30262 PR rtl-opt/70061
30263 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
30264 (insert_value_copy_on_edge): Likewise.
30265
30266 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30267
30268 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
30269
30270 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30271
30272 PR target/62281
30273 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
30274
30275 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
30276
30277 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
30278
30279 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
30280
30281 Fix sseimul type attribute.
30282 * config/i386/znver1.md
30283 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
30284 znver1_sseimul_avx256_load) : Fix the type attribute.
30285 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
30286 pipe usage and latency.
30287
30288 2016-03-05 Jakub Jelinek <jakub@redhat.com>
30289
30290 PR c++/70084
30291 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
30292 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
30293 to the right type.
30294
30295 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
30296
30297 PR c/69973
30298 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
30299
30300 PR rtl-optimization/69941
30301 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
30302 the reg share its mode.
30303
30304 2016-03-04 Jeff Law <law@redhat.com>
30305
30306 PR tree-optimization/69196
30307 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
30308 If the both SSA_NAMEs are anonymous, then consider them unassociated
30309 and include the PHI in the statement count.
30310
30311 2016-03-05 Tom de Vries <tom@codesourcery.com>
30312
30313 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
30314 construct in oacc routine. Check for oacc region in oacc routine.
30315
30316 2016-03-04 Jakub Jelinek <jakub@redhat.com>
30317
30318 PR target/70062
30319 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
30320 2016-02-22 changes, instead don't recurse if RECUR is already true.
30321 Don't change *dynamic_check if RECUR. Adjust recursive caller
30322 to pass true to the new argument.
30323 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
30324
30325 PR target/70059
30326 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
30327 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
30328 fixes.
30329 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
30330
30331 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
30332
30333 PR rtl-optimization/57676
30334 * lra-assigns.c (lra_assign): Guard test for maximum iterations
30335 with flag_checking.
30336
30337 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
30338
30339 * tree-vect-patterns.c (search_type_for_mask): Handle
30340 comparison of booleans.
30341
30342 2016-03-04 Jakub Jelinek <jakub@redhat.com>
30343
30344 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
30345 Fix @xref usage.
30346
30347 PR debug/69947
30348 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
30349 all other ops that have dw_val_class_die_ref operands,
30350 and DW_OP_GNU_entry_value.
30351
30352 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30353
30354 PR rtl-optimization/69904
30355 * config/arm/arm.c (arm_cannot_copy_insn_p):
30356 Return true for load-exclusive instructions.
30357
30358 2016-03-03 Jakub Jelinek <jakub@redhat.com>
30359
30360 PR target/70021
30361 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
30362 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
30363 the pattern no matter if it is used just by non-pattern, pattern
30364 or mix thereof.
30365 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
30366 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
30367 oprnd1 def_stmt is in pattern, don't look through it.
30368
30369 2016-03-03 Marek Polacek <polacek@redhat.com>
30370
30371 PR middle-end/70050
30372 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
30373
30374 2016-03-03 Martin Liska <mliska@suse.cz>
30375
30376 PR tree-optimization/70043
30377 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
30378 previous statement if we see a debug statement.
30379
30380 2016-03-03 Richard Biener <rguenther@suse.de>
30381
30382 PR tree-optimization/55936
30383 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
30384 parameter and guard unsafe equivalence use.
30385 (vrp_evaluate_conditional_warnv_with_ops): Always use
30386 safe equivalences but not via the quadratic compare_names
30387 helper.
30388
30389 2016-03-03 Michael Collison <michael.collison@linaro.org>
30390
30391 PR target/70014
30392 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
30393 for operand 1 to s_register_operand. Change predicate for operand
30394 2 to arm_not_immediate_operand.
30395
30396 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
30397
30398 * doc/tm.texi: Regenerated.
30399
30400 2016-03-02 Richard Henderson <rth@redhat.com>
30401
30402 PR rtl-opt/67145
30403 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
30404 simplification when all args are positive non-fixed registers.
30405
30406 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
30407
30408 * target.def (lra_p): Specify that new ports should use LRA.
30409
30410 2016-03-02 Jakub Jelinek <jakub@redhat.com>
30411
30412 PR libgomp/69555
30413 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
30414 gimplify_type_sizes the type they refer to.
30415 (omp_notice_variable): Handle reference vars to VLAs.
30416 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
30417 reference to VLA decls in the second pass instead of first pass.
30418
30419 2016-03-02 Tom de Vries <tom@codesourcery.com>
30420
30421 PR tree-optimization/68659
30422 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
30423 new_expr == NULL_TREE.
30424 (get_new_name): Handle ADDR_EXPR.
30425
30426 2016-03-02 Bin Cheng <bin.cheng@arm.com>
30427
30428 PR rtl-optimization/69052
30429 * loop-invariant.c (canonicalize_address): New function.
30430 (inv_can_prop_to_addr_use): Check validity of address expression
30431 which is canonicalized by above function.
30432
30433 2016-03-02 Alan Modra <amodra@gmail.com>
30434
30435 PR ipa/69990
30436 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
30437 larger alignment.
30438
30439 2016-03-02 Jakub Jelinek <jakub@redhat.com>
30440
30441 PR target/70028
30442 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
30443 (*movhi_internal): Put mask moves from and to memory separately
30444 from moves from/to GPRs.
30445
30446 2016-03-02 Richard Biener <rguenther@suse.de>
30447
30448 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
30449 GENERIC expressions in GIMPLE.
30450
30451 2016-03-02 Richard Biener <rguenther@suse.de>
30452
30453 * config/i386/i386.c (type_natural_mode): Fix typo.
30454
30455 2016-03-02 Nick Clifton <nickc@redhat.com>
30456
30457 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
30458
30459 2016-03-02 Richard Biener <rguenther@suse.de>
30460 Uros Bizjak <ubizjak@gmail.com>
30461
30462 PR target/67278
30463 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
30464
30465 2016-03-02 Richard Biener <rguenther@suse.de>
30466
30467 PR middle-end/67278
30468 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
30469
30470 2016-03-02 Marek Polacek <polacek@redhat.com>
30471
30472 PR c/67854
30473 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
30474 "is promoted to" warning.
30475
30476 2016-03-01 DJ Delorie <dj@redhat.com>
30477
30478 * config.gcc: Deprecate mep-*.
30479
30480 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
30481
30482 PR middle-end/70025
30483 * lra-constraints.c (regno_val_use_in): New.
30484 (match_reload): Use it instead of regno_use_in.
30485
30486 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
30487
30488 PR rtl-optimization/70007
30489 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
30490 references present in REG_EQUAL notes attached to non-SET patterns.
30491
30492 2016-03-01 Jeff Law <law@redhat.com>
30493
30494 PR tree-optimization/69196
30495 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
30496 Appropriately clamp the number of statements to copy when the
30497 thread path does not traverse a loop backedge.
30498
30499 PR tree-optimization/69196
30500 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
30501 Do count some PHIs in the thread path against the insn count. Decrease
30502 final statement count by one as the control statement in the last
30503 block will get removed. Remove special cased code for handling PHIs
30504 in the last block.
30505
30506 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
30507
30508 PR target/70027
30509 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
30510 asm dialect alternatives to explicit GOTPCREL calls.
30511
30512 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
30513
30514 PR ada/70017
30515 * ira.c (do_reload): Issue warning for generic stack checking here...
30516 * reload1.c (reload): ...instead of here and streamline it.
30517
30518 2016-03-01 Nick Clifton <nickc@redhat.com>
30519
30520 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
30521
30522 2016-03-01 Richard Biener <rguenther@suse.de>
30523
30524 PR tree-optimization/69983
30525 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
30526 types and fall back to operand_equal_p.
30527
30528 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30529
30530 Revert
30531 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30532
30533 * config/s390/constraints.md ("jm8"): New constraint.
30534 * config/s390/predicates.md ("const_int_8bitset_operand"): New
30535 predicate.
30536 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
30537 into ...
30538 ("*setmem_long<setmem_and>"): New pattern.
30539 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
30540 into ...
30541 ("*setmem_long_31z<setmem_and>"): New pattern.
30542 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
30543 New substitution rules with the required attributes.
30544
30545
30546 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30547
30548 Revert
30549 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30550
30551 * gensupport.c (process_substs_on_one_elem): Split loop to
30552 complete mark_operands_used_in_match_dup on all expressions in the
30553 vector first.
30554 (adjust_operands_numbers): Inline into process_substs_on_one_elem
30555 and remove function.
30556
30557 2016-03-01 Richard Biener <rguenther@suse.de>
30558
30559 PR middle-end/70022
30560 * fold-const.c (fold_indirect_ref_1): Fix range checking for
30561 vector BIT_FIELD_REF extract.
30562
30563 2016-03-01 Richard Biener <rguenther@suse.de>
30564
30565 PR tree-optimization/69994
30566 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
30567
30568 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
30569
30570 PR tree-optimization/69956
30571 * tree-vect-stmts.c (supportable_widening_operation): Support
30572 multi-step conversion of boolean vectors.
30573 (supportable_narrowing_operation): Likewise.
30574
30575 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30576
30577 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
30578 anymore.
30579
30580 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30581
30582 * config/s390/subst.md (DSI_VI): New mode iterator.
30583 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
30584 * config/s390/vector.md ("vec_set<mode>"): Move expander before
30585 the insn definition.
30586 ("*vec_set<mode>"): Change predicate and add alternative to
30587 support only either register or const_int operands as element
30588 selector.
30589 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
30590 operands.
30591 ("vec_extract<mode>"): New expander.
30592 ("*vec_extract<mode>"): New insn definition supporting reg and
30593 const_int element selectors.
30594 ("*vec_extract<mode>_plus"): New insn definition supporting
30595 reg+const_int element selectors.
30596 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
30597 following expander+insn definition.
30598 ("<vec_shifts_name><mode>3"): New expander.
30599 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
30600
30601 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30602
30603 * config/s390/s390.md ("*tabort_1"): Change predicate to
30604 nonmemory_operand. Add a second alternative to cover
30605 register as well as const int operands.
30606 ("*tabort_1_plus"): New pattern definition.
30607
30608 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30609
30610 * config/s390/s390.md ("*ashrdi3_cc_31")
30611 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
30612 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
30613 Merge insn definitions into ...
30614 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
30615 New pattern definition.
30616 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
30617 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
30618 ("*ashr<mode>3_and"): Merge insn definitions into ...
30619 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
30620 New pattern definition.
30621 * config/s390/subst.md ("addr_style_op_cc_subst")
30622 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
30623 substitutions patterns plus attributes.
30624 Add ashiftrt to SUBST iterator.
30625
30626 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30627
30628 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
30629 op2 to nonmemory_operand.
30630 ("*<shift>di3_31", "*<shift>di3_31_and"):
30631 Merge into single pattern definition ...
30632 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
30633 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
30634 pattern definition ...
30635 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
30636 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
30637 iterator.
30638
30639 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30640
30641 * config/s390/predicates.md (const_int_6bitset_operand): New
30642 predicate.
30643 * config/s390/s390.md: Include subst.md.
30644 ("rotl<mode>3"): New expander.
30645 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
30646 ...
30647 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
30648 * config/s390/subst.md: New file.
30649
30650 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30651
30652 * config/s390/s390.md ("op_type", "atype", "length" attributes):
30653 Remove RRR type. It doesn't really exist.
30654 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
30655 attributes.
30656 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
30657 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
30658 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
30659 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
30660 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
30661 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
30662 `enabled' attribute.
30663
30664 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30665
30666 * gensupport.c (process_substs_on_one_elem): Split loop to
30667 complete mark_operands_used_in_match_dup on all expressions in the
30668 vector first.
30669 (adjust_operands_numbers): Inline into process_substs_on_one_elem
30670 and remove function.
30671
30672 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
30673
30674 PR target/69706
30675 * config/sparc/sparc.c (NWORDS_UP): Rename to...
30676 (CEIL_NWORDS): ...this. Use CEIL macro.
30677 (compute_fp_layout): Adjust to above renaming.
30678 (function_arg_union_value): Likewise.
30679 (sparc_arg_partial_bytes): Likewise.
30680 (sparc_function_arg_advance): Likewise.
30681
30682 2016-02-29 Jeff Law <law@redhat.com>
30683
30684 PR tree-optimization/70005
30685 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
30686 where an object with a boolean range is compared against a value
30687 outside [0..1].
30688
30689 PR tree-optimization/69999
30690 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
30691 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
30692 loop cleanups.
30693
30694 2016-02-29 Richard Biener <rguenther@suse.de>
30695
30696 PR tree-optimization/69994
30697 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
30698 (get_unary_op): Look through nop conversions.
30699 (ops_equal_values_p): New function, look for equality diregarding
30700 nop conversions.
30701 (eliminate_plus_minus_pair): Use ops_equal_values_p
30702 (repropagate_negates): Do not use get_unary_op here.
30703
30704 2016-02-29 Martin Liska <mliska@suse.cz>
30705
30706 * system.h: Poison ENABLE_CHECKING macro.
30707
30708 2016-02-29 Martin Liska <mliska@suse.cz>
30709
30710 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
30711 is presented in dump flags.
30712 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
30713 (hsa_regalloc): Likewise.
30714
30715 2016-02-19 Richard Biener <rguenther@suse.de>
30716
30717 PR tree-optimization/69980
30718 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
30719 permutation of those we need to keep.
30720
30721 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
30722
30723 PR target/69706
30724 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
30725 (NWORDS_UP): ...this
30726 (init_cumulative_args): Minor tweaks.
30727 (sparc_promote_function_mode): Likewise.
30728 (scan_record_type): Delete.
30729 (traverse_record_type): New function template.
30730 (classify_data_t): New structure type.
30731 (classify_registers): New inline function.
30732 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
30733 exhausted. Instantiate traverse_record_type on classify_registers and
30734 deal with the case of a structure passed in slot #15 with no FP field
30735 in the first word.
30736 (assign_data_t): New structure type.
30737 (compute_int_layout): New static function.
30738 (compute_fp_layout): Likewise.
30739 (count_registers): New inline function.
30740 (assign_int_registers): New static function.
30741 (assign_fp_registers): Likewise.
30742 (assign_registers): New inline function.
30743 (function_arg_record_value_1): Delete.
30744 (function_arg_record_value_2): Likewise.
30745 (function_arg_record_value_3): Likewise.
30746 (function_arg_record_value): Adjust to above changes. Instantiate
30747 traverse_record_type on count_registers to first count the number of
30748 registers to be used and then on assign_registers to assign them.
30749 (function_arg_union_value): Adjust to above renaming.
30750 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
30751 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
30752 case of a structure passed in slot #15
30753 (sparc_function_arg_advance): Likewise.
30754 (function_arg_padding): Minor tweak.
30755
30756 2016-02-29 Richard Biener <rguenther@suse.de>
30757
30758 PR tree-optimization/69720
30759 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
30760 the adjustment_def path for possibly vectorized defs.
30761 (vect_create_epilog_for_reduction): Handle vectorized initial
30762 defs properly.
30763
30764 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
30765
30766 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
30767
30768 2016-02-27 Jeff Law <law@redhat.com>
30769
30770 Revert
30771 2016-02-26 Richard Biener <rguenther@suse.de>
30772 Jeff Law <law@redhat.com>
30773
30774 PR tree-optimization/69740
30775 * cfghooks.c (remove_edge): Request loop fixups if we delete
30776 an edge that might turn an irreducible loop into a natural
30777 loop.
30778
30779 2016-02-27 Jakub Jelinek <jakub@redhat.com>
30780
30781 PR rtl-optimization/69896
30782 * tree-vect-generic.c (get_compute_type): Avoid single element
30783 vector types.
30784
30785 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
30786
30787 Rename the AArch64 tuning option and related functions to enable the
30788 Newton series for the reciprocal square root to reflect its
30789 approximative characteristic.
30790
30791 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
30792 function to "aarch64_emit_approx_rsqrt".
30793 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
30794 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
30795 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
30796 (xgene1_tunings): Likewise.
30797 (use_rsqrt_p): Likewise.
30798 (aarch64_emit_swrsqrt): Use new function name.
30799 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
30800 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
30801 text explaining this option.
30802 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
30803
30804 2016-02-26 Jakub Jelinek <jakub@redhat.com>
30805
30806 PR target/69969
30807 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
30808 complain about -mallow-movmisalign without -mvsx if
30809 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
30810
30811 2016-02-26 Joel Sherrill <joel@rtems.org>
30812
30813 * config.gcc: Add x86_64-*-rtems*.
30814 * config/i386/rtems-64.h: New file.
30815
30816 2016-02-26 Joel Sherrill <joel@rtems.org>
30817
30818 * config.gcc: Add aarch64-*-rtems*.
30819 * config/aarch64/rtems.h: New file.
30820
30821 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
30822
30823 PR target/69946
30824 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
30825 shift amount using %h. Add comment.
30826
30827 2016-02-26 Richard Biener <rguenther@suse.de>
30828 Jeff Law <law@redhat.com>
30829
30830 PR tree-optimization/69740
30831 * cfghooks.c (remove_edge): Request loop fixups if we delete
30832 an edge that might turn an irreducible loop into a natural
30833 loop.
30834
30835 2016-02-26 Martin Jambor <mjambor@suse.cz>
30836
30837 PR middle-end/69920
30838 * tree-sra.c (sra_modify_assign): Do not remove loads of
30839 uninitialized aggregates to SSA_NAMEs.
30840
30841 2016-02-26 Richard Henderson <rth@redhat.com>
30842
30843 PR target/69709
30844 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
30845 pseudo in case the target rtx matches the source of the left
30846 shift.
30847
30848 2016-02-26 Martin Jambor <mjambor@suse.cz>
30849
30850 PR hsa/69568
30851 * hsa.h (hsa_type_packed_p): Declare.
30852 * hsa.c (hsa_type_packed_p): New function.
30853 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
30854 loads.
30855 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
30856 * hsa-brig.c (emit_basic_insn): Likewise.
30857
30858 2016-02-26 Martin Jambor <mjambor@suse.cz>
30859
30860 pr hsa/69674
30861 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
30862 pointers.
30863 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
30864
30865 2016-02-26 Martin Jambor <mjambor@suse.cz>
30866
30867 * hsa.h (is_a_helper): New overload for hsa_op_immed for
30868 hsa_op_with_type operands.
30869 (hsa_unsigned_type_for_type): Declare.
30870 * hsa.c (hsa_unsigned_type_for_type): New function.
30871 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
30872 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
30873 the finalizer. Do not emit extra move.
30874
30875 2016-02-26 Martin Jambor <mjambor@suse.cz>
30876
30877 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
30878 atomic operations in private segment.
30879
30880 2016-02-26 Martin Jambor <mjambor@suse.cz>
30881
30882 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
30883 statements to wi->info. Also disallow omp simd constructs.
30884 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
30885 for not gridifying. Dump special string for omp_for.
30886
30887 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30888
30889 PR target/69245
30890 * config/aarch64/aarch64.c (aarch64_set_current_function):
30891 Save/restore target globals when switching to
30892 target_option_default_node.
30893
30894 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30895
30896 PR target/69613
30897 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
30898 Return 0 if !SHIFT_COUNT_TRUNCATED.
30899
30900 2016-02-26 Jakub Jelinek <jakub@redhat.com>
30901 Eric Botcazou <ebotcazou@adacore.com>
30902
30903 PR rtl-optimization/69891
30904 * dse.c (scan_insn): If we can't figure out memset arguments
30905 or they are non-constant, call clear_rhs_from_active_local_stores.
30906
30907 2016-02-26 Martin Liska <mliska@suse.cz>
30908
30909 * doc/extend.texi: Mention clog10, clog10f an clog10l
30910 in Builtins section.
30911
30912 2016-02-26 Martin Liska <mliska@suse.cz>
30913
30914 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
30915 CHECKING_P.
30916 (resolve_args_picking_1): Likewise.
30917 * dwarf2out.h (struct GTY): Likewise.
30918
30919 2016-02-26 Martin Liska <mliska@suse.cz>
30920
30921 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
30922 with flag_checking.
30923 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
30924
30925 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
30926 Martin Liska <mliska@suse.cz>
30927
30928 * doc/install.texi: Mention --enable-valgrind-annotations.
30929
30930 2016-02-26 Richard Biener <rguenther@suse.de>
30931
30932 PR tree-optimization/69551
30933 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
30934 looking through aliases adjust DECL_PT_UID to refer to the
30935 ultimate alias target.
30936
30937 2016-02-25 Martin Liska <mliska@suse.cz>
30938
30939 PR middle-end/69919
30940 * alloc-pool.c (after_memory_report): New variable.
30941 * alloc-pool.h (base_pool_allocator ::release): Do not use
30942 the infrastructure if after_memory_report.
30943 * toplev.c (toplev::main): Mark after memory report.
30944
30945 2016-02-25 Richard Biener <rguenther@suse.de>
30946
30947 PR tree-optimization/48795
30948 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
30949
30950 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
30951
30952 PR driver/68463
30953 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
30954 offloading is enabled and -fopenacc or -fopenmp is specified.
30955 (CRTOFFLOADEND): Likewise.
30956 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
30957 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
30958 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
30959 (offload_objects_file_name): New static var.
30960 (tool_cleanup): Remove offload_objects_file_name file.
30961 (find_offloadbeginend): Replace with ...
30962 (find_crtoffloadtable): ... this.
30963 (run_gcc): Remove offload_argc and offload_argv.
30964 Get offload_objects_file_name from -foffload-objects=... option.
30965 Read names of object files with offload from this file, pass them to
30966 compile_images_for_offload_targets. Don't call find_offloadbeginend and
30967 don't pass offloadbegin and offloadend to the linker. Don't pass
30968 offload non-LTO files to the linker, because now they're not claimed.
30969
30970 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
30971
30972 PR ipa/69630
30973 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
30974 on builtin_unreachable.
30975
30976 2016-02-25 Jakub Jelinek <jakub@redhat.com>
30977
30978 PR rtl-optimization/69896
30979 * regcprop.c: Include cfgrtl.h.
30980 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
30981 than remembered mode, either delete it (if noop_move_p), or
30982 treat like copy_p but not noop_p instruction.
30983
30984 2016-02-24 Jakub Jelinek <jakub@redhat.com>
30985
30986 PR debug/69705
30987 * dwarf2out.c (gen_variable_die): Work around buggy LTO
30988 - allow NULL decl for Fortran DW_TAG_common_block variables.
30989
30990 2016-02-24 Jason Merrill <jason@redhat.com>
30991
30992 * common.opt (flifetime-dse): Add -flifetime-dse=1.
30993
30994 2016-02-24 Richard Biener <rguenther@suse.de>
30995 Jakub Jelinek <jakub@redhat.com>
30996
30997 PR middle-end/69760
30998 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
30999 conditionally executed ops to well-defined overflow behavior.
31000
31001 2016-02-24 Jakub Jelinek <jakub@redhat.com>
31002
31003 PR middle-end/69915
31004 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
31005 elements.
31006
31007 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31008
31009 PR rtl-optimization/69886
31010 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
31011 argument. Use it when checking validity of set instructions.
31012 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
31013 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
31014 callsite.
31015 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
31016 * store-motion.c (find_moveable_store): Update
31017 can_assign_to_reg_without_clobbers_p callsite.
31018
31019 2016-02-24 Richard Biener <rguenther@suse.de>
31020
31021 PR middle-end/68963
31022 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
31023 bogus check.
31024 (record_nonwrapping_iv): Do not fall back to the low/high bound
31025 for non-constant IV bases if the stmt is not always executed.
31026
31027 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31028
31029 * config/arm/arm-cores.def (cortex-a32): New entry.
31030 * config/arm/arm-tables.opt: Regenerate.
31031 * config/arm/arm-tune.md: Regenerate.
31032 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
31033 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
31034 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
31035 for -mcpu and -mtune.
31036
31037 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31038
31039 PR target/69875
31040 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
31041 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
31042 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
31043 (atomic_loaddi_1): Delete.
31044 (atomic_loaddi): Rewrite expander using the above changes.
31045
31046 2016-02-24 Jakub Jelinek <jakub@redhat.com>
31047
31048 PR c/69918
31049 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
31050 2 to 3.
31051
31052 2016-02-24 Jakub Jelinek <jakub@redhat.com>
31053 Richard Biener <rguenth@suse.de>
31054
31055 PR middle-end/69909
31056 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
31057 set_mem_attributes if tem is SSA_NAME which got expanded
31058 as a MEM.
31059
31060 2016-02-24 Richard Biener <rguenther@suse.de>
31061
31062 PR tree-optimization/69907
31063 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
31064 end of permutations for BB vectorization.
31065
31066 2016-02-24 Christian Bruel <christian.bruel@st.com>
31067
31068 * config/arm/arm-c.c (arm_option_override): Initialize
31069 target_option_current_node.
31070 * config/arm/arm.c (arm_pragma_target_parse): Replace
31071 build_target_option_node call by target_option_current_node.
31072 Set target_option_current_node.
31073 Fix comments.
31074
31075 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
31076
31077 PR target/69810
31078 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
31079 define_insn_and_split to define_insn.
31080 (zero_extendqi<mode>2_dot2): Same.
31081 (extendqi<mode>2_dot): Same.
31082 (extendqi<mode>2_dot2): Same.
31083
31084 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
31085
31086 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
31087 and add bypass for AES{D,E} and AESMC pairs.
31088 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
31089 and AESMC pairs.
31090
31091 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
31092
31093 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
31094 series for reciprocal square root in Exynos M1.
31095
31096 2016-02-23 Martin Sebor <msebor@redhat.com>
31097
31098 PR c/69759
31099 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
31100 __builtin_alloca_with_align.
31101
31102 2016-02-23 Richard Henderson <rth@redhat.com>
31103
31104 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
31105 (ix86_register_pragmas): Remove __seg_tls.
31106 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
31107 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
31108 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
31109 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
31110 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
31111 * doc/extend.texi (__seg_tls): Remove item.
31112
31113 2016-02-23 Richard Biener <rguenther@suse.de>
31114
31115 * alloc-pool.h (struct allocation_object): Make id member
31116 conditional on CHECKING_P again.
31117 (get_instance): Adjust.
31118 (base_pool_allocator): Likewise.
31119
31120 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
31121
31122 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
31123 (parallelize_loops): In OpenACC kernels mode, set n_threads to
31124 zero.
31125 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
31126 flag_openacc.
31127 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
31128
31129 2016-02-23 Richard Biener <rguenther@suse.de>
31130
31131 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
31132 * bitmap.h (struct bitmap_usage): Likewise.
31133 (bitmap_move): Declare.
31134 * bitmap.c (register_overhead): Take size_t argument.
31135 (bitmap_move): New function.
31136 * df-problems.c (df_rd_transfer_function): Use bitmap_move
31137 to properly account overhead.
31138 * tree.c (free_node): Use tree_size.
31139
31140 2016-02-23 Jakub Jelinek <jakub@redhat.com>
31141
31142 PR c++/69902
31143 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
31144 when inverting comparison.
31145
31146 PR c/69900
31147 * common.opt (Wunreachable-code): Add Warning flag.
31148
31149 2016-02-23 Mark Wielaard <mjw@redhat.com>
31150 Jakub Jelinek <jakub@redhat.com>
31151
31152 PR c/69911
31153 * cgraphunit.c (check_global_declaration): Check main_input_filename
31154 and DECL_SOURCE_FILE are not NULL.
31155
31156 2016-02-23 Martin Jambor <mjambor@suse.cz>
31157
31158 PR tree-optimization/69666
31159 * tree-sra.c (sra_modify_assign): Do not attempt to create
31160 default_def replacements for unscalarizable regions.
31161
31162 2016-02-20 Mark Wielaard <mjw@redhat.com>
31163
31164 PR c/28901
31165 * cgraphunit.c (check_global_declaration): Check level of
31166 warn_unused_const_variable and main_input_filename.
31167 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
31168 (-Wunused-variable): For C implies -Wunused-const-variable=1.
31169 (-Wunused-const-variable): Explain levels 1 and 2.
31170
31171 2016-02-22 Jakub Jelinek <jakub@redhat.com>
31172
31173 PR target/69888
31174 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
31175 identical arguments. Formatting and spelling fixes.
31176
31177 PR target/69885
31178 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
31179 be specified.
31180
31181 PR target/69894
31182 PR target/69895
31183 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
31184 and m68k-devices.def.
31185 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
31186 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
31187
31188 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
31189
31190 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
31191 and HImode registers.
31192
31193 2016-02-22 Richard Biener <rguenther@suse.de>
31194
31195 PR tree-optimization/69882
31196 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
31197 preserve permutations present because of gaps.
31198 (vect_supported_load_permutation_p): Always continue checking
31199 permutations after vect_attempt_slp_rearrange_stmts.
31200
31201 2016-02-22 Bin Cheng <bin.cheng@arm.com>
31202
31203 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
31204 min_profitable_estimate, rather than min_profitable_iters.
31205
31206 2016-02-22 Jakub Jelinek <jakub@redhat.com>
31207
31208 PR target/69885
31209 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
31210 SImode for last match_operand.
31211
31212 2016-02-22 Martin Liska <mliska@suse.cz>
31213
31214 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
31215 return bitsize - 1 as the return value.
31216
31217 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
31218
31219 PR target/69806
31220 PR target/54089
31221 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
31222 Handle negative shift counts.
31223 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
31224 force_reg on the shift constant.
31225 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
31226 (lshrsi3_d): Handle negative shift counts.
31227
31228 2016-02-22 Richard Biener <rguenther@suse.de>
31229 Tom de Vries <tom@codesourcery.com>
31230
31231 * graph.c: Include dumpfile.h.
31232 (print_graph_cfg): Split into three overloads.
31233 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
31234
31235 2016-02-22 Tom de Vries <tom@codesourcery.com>
31236
31237 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
31238 dump-fn.
31239
31240 2016-02-22 Richard Biener <rguenther@suse.de>
31241
31242 PR ipa/37448
31243 * ipa-inline-transform.c (inline_call): When not updating
31244 overall summaries adjust self size by the growth estimate.
31245 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
31246 hash-set, do not update overall summaries here. Renamed from ...
31247 (inline_to_all_callers): ... this which is now wrapping the
31248 above and performing delayed overall summary update.
31249 (early_inline_small_functions): Delay updating of the overall
31250 summary.
31251
31252 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
31253
31254 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
31255 variable.
31256
31257 2016-02-19 Jakub Jelinek <jakub@redhat.com>
31258
31259 PR driver/69805
31260 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
31261 :%* in %:gt() argument.
31262 (greater_than_spec_func): Adjust for expecting only numbers,
31263 if there are more than two numbers, compare the last two.
31264
31265 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
31266
31267 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
31268 -Wnarrowing with -std.
31269
31270 2016-02-19 Jakub Jelinek <jakub@redhat.com>
31271
31272 PR c++/69851
31273 * expr.c (store_field): Don't use bit-field path if exp is
31274 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
31275 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
31276 and the assignment can be performed by bitwise copy. Formatting
31277 fix.
31278
31279 PR middle-end/69838
31280 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
31281 call copy_reg_eh_region_note_forward on before and/or after sequences
31282 and remove note from insn if it no longer can throw.
31283
31284 PR target/69820
31285 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
31286 if TARGET_AVX512BW.
31287
31288 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31289
31290 * config/s390/vector.md: Add missing commutative operand markers
31291 to the patterns which qualify for one.
31292 * config/s390/vx-builtins.md: Likewise.
31293
31294 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31295
31296 * config/s390/vector.md (VI, VI_QHS): Add single element vector
31297 types to mode iterators.
31298 (vec_double): ... and mode attribute.
31299 * config/s390/vx-builtins.md (non_vec_int): Likewise.
31300
31301 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31302
31303 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
31304 Change the predicate of op2 from nonimmediate to general and let
31305 reload fix it if necessary.
31306
31307 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31308
31309 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
31310
31311 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31312
31313 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
31314 mode.
31315
31316 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31317
31318 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
31319 * config/s390/s390.c (s390_expand_vec_movstr): New function.
31320 * config/s390/s390.md ("movstr<P:mode>"): Call
31321 s390_expand_vec_movstr.
31322
31323 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31324
31325 * config/s390/s390.md: Add missing output modifier for operand 1
31326 to print it as address properly.
31327
31328 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31329
31330 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
31331 * config/s390/2964.md: New file.
31332 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
31333 of insn grouping attributes depending on the CPU level.
31334 (s390_get_unit_mask): New function.
31335 (s390_sched_score): Remove the OOO from the scheduling macros.
31336 Add loop to calculate a score for the instruction mix.
31337 (s390_sched_reorder): Likewise plus improve debug output.
31338 (s390_sched_variable_issue): Rename macros as above. Calculate
31339 the unit distances after actually scheduling an insn. Improve
31340 debug output.
31341 (s390_sched_init): Clear last_scheduled_unit_distance array.
31342 * config/s390/s390.md: Include 2964.md.
31343
31344 2016-02-18 Jakub Jelinek <jakub@redhat.com>
31345
31346 PR target/69671
31347 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
31348 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
31349 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
31350 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
31351 *avx512f_<code>v8div16qi2_mask_1): New insns.
31352
31353 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
31354
31355 PR target/68404
31356 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
31357 2016-02-09 change.
31358
31359 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
31360 earlyclobber from target. Use wF constraint for fused memory
31361 address.
31362 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
31363
31364 2016-02-18 Jakub Jelinek <jakub@redhat.com>
31365 Martin Liska <mliska@suse.cz>
31366
31367 PR sanitizer/69863
31368 * cfgexpand.c (asan_sanitize_stack_p): New function.
31369 (partition_stack_vars): Use the function.
31370 (expand_stack_vars): Likewise.
31371 (defer_stack_allocation): Likewise.
31372 (expand_used_vars): Likewise.
31373
31374 2016-02-18 Richard Biener <rguenther@suse.de>
31375
31376 PR middle-end/69553
31377 * fold-const.c (operand_equal_p): Properly compare offsets for
31378 IMAGPART_EXPR and ARRAY_REF.
31379
31380 2016-02-18 Nick Clifton <nickc@redhat.com>
31381
31382 PR target/62254
31383 PR target/69610
31384 * config/arm/arm.c (arm_option_override_internal): Disable
31385 interworking if the target does not support thumb instructions.
31386 (arm_reload_in_hi): Handle the case where a register to register
31387 move needs reloading because there is no simple pattern to handle
31388 it.
31389 (arm_reload_out_hi): Likewise.
31390
31391 2016-02-18 Richard Biener <rguenther@suse.de>
31392
31393 PR middle-end/69854
31394 * match.pd: Don't use fold_binary or fold_unary for folding
31395 constants.
31396
31397 2016-02-17 Jakub Jelinek <jakub@redhat.com>
31398
31399 PR c++/69850
31400 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
31401 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
31402 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
31403 warn on gimple_no_warning_p statements.
31404
31405 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
31406
31407 * doc/extend.texi (C++ Attributes): Correct description of
31408 warn_unused type attribute.
31409
31410 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31411
31412 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
31413 correct instruction.
31414
31415 2016-02-17 Richard Biener <rguenther@suse.de>
31416
31417 PR rtl-optimization/69609
31418 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
31419 (find_traces_1_round): When ending a trace update cached priority
31420 of successors.
31421 (bb_to_key): Use cached priority when available.
31422 (copy_bb): Initialize cached priority.
31423 (reorder_basic_blocks_software_trace_cache): Likewise.
31424
31425 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31426
31427 PR target/69161
31428 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
31429 New predicate.
31430 (aarch64_comparison_operator): Break overly long line into two.
31431 (aarch64_comparison_operation): Likewise.
31432 * config/aarch64/aarch64.md (cstorecc4): Use
31433 aarch64_comparison_operator_mode instead of
31434 aarch64_comparison_operator.
31435 (cstore<mode>4): Likewise.
31436 (aarch64_cstore<mode>): Likewise.
31437 (*cstoresi_insn_uxtw): Likewise.
31438 (cstore<mode>_neg): Likewise.
31439 (*cstoresi_neg_uxtw): Likewise.
31440
31441 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31442
31443 PR target/69161
31444 * config/arm/predicates.md (arm_comparison_operator_mode):
31445 New predicate.
31446 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
31447 instead of arm_comparison_operator.
31448 (*mov_negscc): Likewise.
31449 (*mov_notscc): Likewise.
31450 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
31451 (*thumb2_mov_negscc): Likewise.
31452 (*thumb2_mov_negscc_strict_it): Likewise.
31453 (*thumb2_mov_notscc): Likewise.
31454 (*thumb2_mov_notscc_strict_it): Likewise.
31455
31456 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
31457
31458 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
31459 Add missing return.
31460
31461 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
31462
31463 * config/visium/visium.c (machine_libfunc_index): New enum.
31464 (machine_libfuncs): New structure.
31465 (visium_libfuncs): New static variable.
31466 (TARGET_INIT_LIBFUNCS): Define to...
31467 (visium_init_libfuncs): ...this. New function.
31468 (expand_block_move_4): Use the appropriate libfunc.
31469 (expand_block_move_2): Likewise.
31470 (expand_block_move_1): Likewise.
31471 (expand_block_set_4): Likewise.
31472 (expand_block_set_2): Likewise.
31473 (expand_block_set_1): Likewise.
31474 (visium_trampoline_init): Likewise.
31475
31476 2016-02-17 Nick Clifton <nickc@redhat.com>
31477
31478 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
31479 TI's devices.csv file as of March 2016.
31480
31481 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
31482
31483 PR Target/48344
31484 * opts-global.c (handle_common_deferred_options): Introduce and
31485 initialize two global variables to remember command-line options
31486 specifying a stack-limiting register.
31487 * opts.h: Add extern declarations of the two new global variables.
31488 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
31489 variable based on the values of the two new global variables.
31490
31491 2016-02-16 Jakub Jelinek <jakub@redhat.com>
31492
31493 PR c/69835
31494 * common.opt (Wnonnull-compare): New warning.
31495 * doc/invoke.texi (-Wnonnull): Remove text about comparison
31496 of arguments against NULL.
31497 (-Wnonnull-compare): Document.
31498 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
31499 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
31500 * passes.def (pass_warn_nonnull_compare): Add.
31501 * gimple-ssa-nonnull-compare.c: New file.
31502
31503 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
31504
31505 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
31506 AARCH64_EXTRA_TUNE_RECIP_SQRT.
31507
31508 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
31509
31510 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
31511 reciprocal sqrt for -mlow-precision-recip-sqrt.
31512
31513 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
31514 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31515
31516 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
31517 always use lane loads to construct non-constant vectors.
31518
31519 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
31520
31521 * config/aarch64/aarch64.md
31522 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
31523 constraints for operand 3.
31524 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
31525
31526 2016-02-16 Jakub Jelinek <jakub@redhat.com>
31527 Richard Biener <rguenther@suse.de>
31528
31529 PR tree-optimization/69820
31530 * tree-vect-patterns.c (type_conversion_p): Return false if
31531 *orig_type is unsigned single precision or boolean.
31532 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
31533 Formatting fix.
31534
31535 2016-02-16 Jakub Jelinek <jakub@redhat.com>
31536
31537 PR rtl-optimization/69764
31538 PR rtl-optimization/69771
31539 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
31540 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
31541
31542 2016-02-16 Richard Biener <rguenther@suse.de>
31543
31544 PR tree-optimization/69776
31545 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
31546 sets from caller.
31547 (indirect_refs_may_alias_p): Likewise.
31548 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
31549 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
31550 according to tbaa_p.
31551 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
31552 (optimize_stmt): For redundant store discovery do not allow tbaa.
31553
31554 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
31555
31556 PR tree-optimization/69714
31557 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
31558 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
31559
31560 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
31561
31562 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
31563 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
31564 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
31565 * config/arc/arc.c (arc_init): Check FPU options.
31566 (get_arc_condition_code): Handle new CC_FPU* modes.
31567 (arc_select_cc_mode): Likewise.
31568 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
31569 register pair only. Allow access for ARCv2 accumulator.
31570 (gen_compare_reg): Whenever we have FPU support use FPU compare
31571 instructions.
31572 (arc_reorg): Don't generate brcc insns when FPU compare
31573 instructions are involved.
31574 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
31575 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
31576 floating point emulation.
31577 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
31578 (REVERSE_CONDITION): Add new CC_FPU* modes.
31579 (TARGET_FP_SP_BASE): Define.
31580 (TARGET_FP_DP_BASE): Likewise.
31581 (TARGET_FP_SP_FUSED): Likewise.
31582 (TARGET_FP_DP_FUSED): Likewise.
31583 (TARGET_FP_SP_CONV): Likewise.
31584 (TARGET_FP_DP_CONV): Likewise.
31585 (TARGET_FP_SP_SQRT): Likewise.
31586 (TARGET_FP_DP_SQRT): Likewise.
31587 (TARGET_FP_DP_AX): Likewise.
31588 * config/arc/arc.md (ARCV2_ACC): New constant.
31589 (type): New fpu type attribute.
31590 (SDF): Conditional iterator.
31591 (cstore<mode>, cbranch<mode>): Change expand condition.
31592 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
31593 handles FPU/FPX cases as well.
31594 * config/arc/arc.opt (mfpu): New option.
31595 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
31596 Renamed.
31597 (adddf3, muldf3, subdf3): Removed.
31598 * config/arc/predicates.md (proper_comparison_operator): Recognize
31599 CC_FPU* modes.
31600 * config/arc/fpu.md: New file.
31601 * doc/invoke.texi (ARC Options): Document mfpu option.
31602
31603 2016-02-16 Richard Biener <rguenther@suse.de>
31604
31605 PR rtl-optimization/69291
31606 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
31607 noce_operand_ok check.
31608
31609 2016-02-16 Tom de Vries <tom@codesourcery.com>
31610
31611 PR lto/67709
31612 * omp-low.c (simd_clone_create): Remove call to
31613 symtab->call_cgraph_insertion_hooks.
31614
31615 2016-02-16 Jakub Jelinek <jakub@redhat.com>
31616
31617 PR tree-optimization/69802
31618 * tree-ssa-reassoc.c (update_range_test): If op is
31619 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
31620 op == 1 test of precision 1 integral op, otherwise handle
31621 that case as op itself. Fix up formatting.
31622 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
31623 up formatting.
31624
31625 2016-02-16 Richard Biener <rguenther@suse.de>
31626
31627 PR tree-optimization/69586
31628 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
31629 types for conversion sources.
31630
31631 2016-02-16 Richard Biener <rguenther@suse.de>
31632
31633 PR middle-end/69801
31634 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
31635 mask OEP_ADDRESS_OF.
31636
31637 2016-02-16 Alan Modra <amodra@gmail.com>
31638
31639 PR target/68973
31640 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
31641 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
31642 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
31643 (p8_mtvsrwz): New.
31644 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
31645 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
31646 (p8_fmrgow_<mode>): Likewise.
31647 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
31648 changes.
31649 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
31650 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
31651 to use movdi_internal64. Remove op0_di.
31652 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
31653
31654 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
31655
31656 Add support for the FCCMP insn types
31657
31658 * config/aarch64/aarch64.md (fccmp): Change insn type.
31659 (fccmpe): Likewise.
31660 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
31661 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
31662 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
31663 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
31664 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
31665 * config/arm/types.md (fccmps): Add new insn type.
31666 (fccmpd): Likewise.
31667
31668 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
31669
31670 * alias.c (get_alias_set): Fix a typo in comment.
31671
31672 2016-02-15 Richard Biener <rguenther@suse.de>
31673
31674 PR tree-optimization/69595
31675 * match.pd: Complete range test simplification to true.
31676
31677 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
31678
31679 PR rtl-optimization/69648
31680 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
31681 pic_offset_table_rtx.
31682
31683 PR rtl-optimization/69752
31684 * ira.c (update_equiv_regs): When looking for more than a single SET,
31685 also take other side effects into account.
31686
31687 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
31688
31689 * config/s390/s390.c (s390_function_profiler): Add a new sequence
31690 for z900+ CPUs in 31-bit mode.
31691
31692 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
31693
31694 * common/config/s390/s390-common.c (s390_supports_split_stack):
31695 New function.
31696 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
31697 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
31698 * config/s390/s390.c (struct machine_function): New field
31699 split_stack_varargs_pointer.
31700 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
31701 in s390_emit_prologue.
31702 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
31703 vararg pointer.
31704 (morestack_ref): New global.
31705 (SPLIT_STACK_AVAILABLE): New macro.
31706 (s390_expand_split_stack_prologue): New function.
31707 (s390_live_on_entry): New function.
31708 (s390_va_start): Use split-stack vararg pointer if appropriate.
31709 (s390_asm_file_end): Emit the split-stack note sections.
31710 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
31711 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
31712 (UNSPECV_SPLIT_STACK_CALL): New unspec.
31713 (UNSPECV_SPLIT_STACK_DATA): New unspec.
31714 (split_stack_prologue): New expand.
31715 (split_stack_space_check): New expand.
31716 (split_stack_data): New insn.
31717 (split_stack_call): New expand.
31718 (split_stack_call_*): New insn.
31719 (split_stack_cond_call): New expand.
31720 (split_stack_cond_call_*): New insn.
31721
31722 2016-02-15 Richard Biener <rguenther@suse.de>
31723
31724 PR tree-optimization/69783
31725 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
31726 Add trivially correct cases.
31727
31728 2016-02-15 Tom de Vries <tom@codesourcery.com>
31729
31730 PR lto/69655
31731 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
31732 do_force_output.
31733 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
31734
31735 2016-02-15 Richard Biener <rguenther@suse.de>
31736
31737 PR tree-optimization/69776
31738 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
31739 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
31740 indicate whether we can use TBAA to disambiguate against stores.
31741 Use alias-set zero if not.
31742 (visit_reference_op_store): Do not use TBAA when looking up
31743 redundant stores.
31744 * tree-ssa-pre.c (compute_avail): Use TBAA here.
31745 (eliminate_dom_walker::before_dom_children): But not when looking
31746 up redundant stores.
31747
31748 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
31749
31750 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
31751
31752 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
31753
31754 * config/i386/znver1.md
31755 (znver1_pop, znver1_pop_mem,
31756 znver1_load_imov_double_store,
31757 znver1_load_imov_direct_store,
31758 znver1_load_imov_direct_load,
31759 znver1_load_imov_double_load): Add new.
31760 (znver1_insn, znver1_insn_load): Add icmov type.
31761 (znver1_sseavx_fma,
31762 znver1_sseavx_fma_load,
31763 znver1_avx256_fma,
31764 znver1_avx256_fma_load): Fix pipe usage.
31765
31766 2016-02-14 Alan Modra <amodra@gmail.com>
31767
31768 PR target/68973
31769 * reload.c (find_reloads_address_1): For pre/post-inc/dec
31770 with an invalid hard reg, reload just the reg not the entire
31771 pre/post-inc/dec address expression.
31772
31773 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
31774
31775 PR target/67260
31776 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
31777 fixed R1_REG scratch reg.
31778 (sibcall_value_pcrel_fdpic): Likewise.
31779
31780 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
31781
31782 PR target/67636
31783 PR target/64345
31784 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
31785
31786 2016-02-12 Walter Lee <walt@tilera.com>
31787
31788 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
31789 * config/tilegx/t-tilegx: Likewise.
31790
31791 2016-02-12 David Malcolm <dmalcolm@redhat.com>
31792
31793 PR other/69554
31794 * diagnostic-show-locus.c (struct line_span): New struct.
31795 (layout::get_first_line): Delete.
31796 (layout::get_last_line): Delete.
31797 (layout::get_num_line_spans): New member function.
31798 (layout::get_line_span): Likewise.
31799 (layout::print_heading_for_line_span_index_p): Likewise.
31800 (layout::get_expanded_location): Likewise.
31801 (layout::calculate_line_spans): Likewise.
31802 (layout::m_first_line): Delete.
31803 (layout::m_last_line): Delete.
31804 (layout::m_line_spans): New field.
31805 (layout::layout): Update comment. Replace m_first_line and
31806 m_last_line with m_line_spans, replacing their initialization
31807 with a call to calculate_line_spans.
31808 (diagnostic_show_locus): When printing source lines and
31809 annotations, rather than looping over a single span
31810 of lines, instead loop over each line_span within
31811 the layout, with an inner loop over the lines within them.
31812 Call the context's start_span callback when changing line spans.
31813 * diagnostic.c (diagnostic_initialize): Initialize start_span.
31814 (diagnostic_build_prefix): Break out the building of the location
31815 part of the string into...
31816 (diagnostic_get_location_text): ...this new function, rewriting
31817 it from nested ternary expressions to a sequence of "if"
31818 statements.
31819 (default_diagnostic_start_span_fn): New function.
31820 * diagnostic.h (diagnostic_start_span_fn): New typedef.
31821 (diagnostic_context::start_span): New field.
31822 (default_diagnostic_start_span_fn): New prototype.
31823
31824 2016-02-12 David Malcolm <dmalcolm@redhat.com>
31825
31826 PR driver/69779
31827 * gcc.c (driver::finalize): Fix cleanup of "specs".
31828
31829 2016-02-12 David Malcolm <dmalcolm@redhat.com>
31830
31831 PR driver/69265
31832 PR driver/69453
31833 * gcc.c (driver::driver): Initialize m_option_suggestions.
31834 (driver::~driver): Clean up m_option_suggestions.
31835 (suggest_option): Convert to...
31836 (driver::suggest_option): ...this, and split out into
31837 driver::build_option_suggestions and find_closest_string.
31838 (driver::build_option_suggestions): New function, from
31839 first half of suggest_option. Special-case
31840 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
31841 the sanitizer_opts array. For options of enum types, add the
31842 various enum values to the candidate strings.
31843 (driver::handle_unrecognized_options): Remove "const".
31844 * gcc.h (driver::handle_unrecognized_options): Likewise.
31845 (driver::build_option_suggestions): New decl.
31846 (driver::suggest_option): New decl.
31847 (driver::m_option_suggestions): New field.
31848 * opts-common.c (add_misspelling_candidates): New function.
31849 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
31850 and make non-static.
31851 * opts.h (sanitizer_opts): New array decl.
31852 (add_misspelling_candidates): New function decl.
31853 * spellcheck.c (find_closest_string): New function.
31854 * spellcheck.h (find_closest_string): New function decl.
31855
31856 2016-02-12 Jakub Jelinek <jakub@redhat.com>
31857
31858 PR rtl-optimization/69764
31859 PR rtl-optimization/69771
31860 * optabs.c (expand_binop_directly): For shift_optab_p, force
31861 convert_modes with VOIDmode if xop1 has VOIDmode.
31862
31863 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
31864
31865 PR target/69729
31866 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
31867 to correctly determine instrumentation thunks.
31868
31869 2016-02-12 Jakub Jelinek <jakub@redhat.com>
31870
31871 PR ipa/69241
31872 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
31873 type by reference, force lhs on the call.
31874
31875 PR ipa/68672
31876 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
31877 Compute retval and retbnd early in all cases if split_part_return_p
31878 and return_bb is not EXIT. Remove all clobber stmts and reset
31879 all debug stmts that refer to SSA_NAMEs defined in split part,
31880 except if it is retval, in that case replace the old retval with the
31881 lhs of the call to the split part.
31882
31883 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
31884
31885 revert:
31886 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
31887
31888 PR middle-end/66726
31889 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
31890 whose result is used in PHI.
31891 (maybe_optimize_range_tests): Likewise.
31892 (final_range_test_p): Likweise.
31893
31894 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
31895
31896 PR middle-end/66726
31897 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
31898 whose result is used in PHI.
31899 (maybe_optimize_range_tests): Likewise.
31900 (final_range_test_p): Likweise.
31901
31902 2016-02-12 Jakub Jelinek <jakub@redhat.com>
31903
31904 * cgraph.c: Spelling fixes - behaviour -> behavior and
31905 neighbour -> neighbor.
31906 * target.def: Likewise.
31907 * sel-sched.c: Likewise.
31908 * config/mips/mips.c: Likewise.
31909 * config/arc/arc.md: Likewise.
31910 * config/arm/cortex-a57.md: Likewise.
31911 * config/arm/arm.c: Likewise.
31912 * config/arm/neon.md: Likewise.
31913 * config/arm/arm-c.c: Likewise.
31914 * config/vms/vms-c.c: Likewise.
31915 * config/s390/s390.c: Likewise.
31916 * config/i386/znver1.md: Likewise.
31917 * config/i386/i386.c: Likewise.
31918 * config/ia64/hpux-unix2003.h: Likewise.
31919 * config/msp430/msp430.md: Likewise.
31920 * config/rx/rx.c: Likewise.
31921 * config/rx/rx.md: Likewise.
31922 * config/aarch64/aarch64-simd.md: Likewise.
31923 * config/aarch64/aarch64.c: Likewise.
31924 * config/nvptx/nvptx.c: Likewise.
31925 * config/bfin/bfin.c: Likewise.
31926 * config/cris/cris.opt: Likewise.
31927 * config/rs6000/rs6000.c: Likewise.
31928 * target.h: Likewise.
31929 * spellcheck.c: Likewise.
31930 * ira-build.c: Likewise.
31931 * tree-inline.c: Likewise.
31932 * builtins.c: Likewise.
31933 * lra-constraints.c: Likewise.
31934 * explow.c: Likewise.
31935 * hwint.h: Likewise.
31936 * targhooks.c: Likewise.
31937 * tree-vect-data-refs.c: Likewise.
31938 * expr.c: Likewise.
31939 * doc/tm.texi: Likewise.
31940 * doc/extend.texi: Likewise.
31941 * doc/install.texi: Likewise.
31942 * doc/md.texi: Likewise.
31943 * tree-ssa-tail-merge.c: Likewise.
31944 * sched-int.h: Likewise.
31945 * match.pd: Likewise.
31946 * sched-ebb.c: Likewise.
31947 * target.def (omit_struct_return_reg): Likewise.
31948 * gimple-ssa-isolate-paths.c: Likewise.
31949 (find_implicit_erroneous_behaviour): Renamed to...
31950 (find_implicit_erroneous_behavior): ... this.
31951 (find_explicit_erroneous_behaviour): Renamed to...
31952 (find_explicit_erroneous_behavior): ... this.
31953 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
31954
31955 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
31956
31957 PR rtl-optimization/64682
31958 PR rtl-optimization/69567
31959 PR rtl-optimization/69737
31960 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
31961 in I2 as well, just lose it.
31962
31963 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31964
31965 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
31966 New variable.
31967 (aarch64_last_printed_tune_string): Likewise.
31968 (aarch64_declare_function_name): Only output .arch assembler
31969 directive if it will be different from the previously output
31970 directive. Same for .tune comment but only if -dA is set.
31971 (aarch64_start_file): New function.
31972 (TARGET_ASM_FILE_START): Define.
31973
31974 2016-02-11 David Malcolm <dmalcolm@redhat.com>
31975
31976 PR plugins/69758
31977 * Makefile.in (PLUGIN_HEADERS): Add params.list.
31978
31979 2016-02-11 Jakub Jelinek <jakub@redhat.com>
31980
31981 PR target/65313
31982 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
31983 -Wmaybe-uninitialized warning.
31984
31985 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
31986
31987 PR target/69713
31988 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
31989
31990 2016-02-11 Richard Biener <rguenther@suse.de>
31991
31992 PR rtl-optimization/69291
31993 * ifcvt.c (noce_try_store_flag_constants): Do not allow
31994 subexpressions affected by changing the result.
31995
31996 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
31997
31998 PR target/69148
31999 * lra-constraints.c (curr_insn_transform): Find in/out operands
32000 for secondary memory moves. Update dups.
32001
32002 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
32003
32004 PR tree-optimization/69652
32005 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
32006 to nested loop, did source re-formatting, skip debug statements,
32007 add check on statement with volatile operand, remove dead scalar
32008 statements.
32009
32010 2016-02-10 Jakub Jelinek <jakub@redhat.com>
32011 Patrick Palka <ppalka@gcc.gnu.org>
32012
32013 PR ipa/69241
32014 PR c++/69649
32015 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
32016 calls if the return type is TREE_ADDRESSABLE.
32017 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
32018 * ipa-split.c (split_function): Fix doubled "we" in comment.
32019 Use void return type for the split part even if
32020 !split_point->split_part_set_retval.
32021
32022 2016-02-10 Bin Cheng <bin.cheng@arm.com>
32023
32024 PR tree-optimization/68021
32025 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
32026 when computing the value of biv cand by itself.
32027
32028 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
32029
32030 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
32031 (cortexa57_tunings): Likewise.
32032 (cortexa72_tunings): Likewise.
32033 (arch_macro_fusion_pair_p): Add support for AES fusion.
32034 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
32035 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
32036 Allow virtual registers before reload so early scheduling works.
32037 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
32038 correct latency and pipeline.
32039 (cortex_a57_crypto_complex): Likewise.
32040 (cortex_a57_crypto_xor): Likewise.
32041 (define_bypass): Add AES bypass.
32042
32043 2016-02-10 Richard Biener <rguenther@suse.de>
32044
32045 PR tree-optimization/69726
32046 * passes.def: Add DCE pass before late uninit.
32047 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
32048 really fixup if-conversions job.
32049
32050 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
32051
32052 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
32053 (arm_cortex_a57_tune): Likewise.
32054 (aarch_macro_fusion_pair_p): Add support for AES fusion.
32055 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
32056
32057 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
32058
32059 * timevar.def (TV_PHASE_DBGINFO): Delete.
32060 (TV_PHASE_CHECK_DBGINFO): Likewise.
32061 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
32062
32063 2016-02-10 Richard Biener <rguenther@suse.de>
32064
32065 PR tree-optimization/69719
32066 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
32067 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
32068
32069 2016-02-09 Andrew Pinski <apinski@cavium.com>
32070
32071 PR tree-opt/69282
32072 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
32073 get_vcond_mask_icode returns false.
32074
32075 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
32076
32077 PR target/68404
32078 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
32079 an ADDIS that adds a pointer to a large constant that sets the
32080 upper16 bits with a load operation.
32081
32082 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
32083
32084 PR target/68532
32085 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
32086 order.
32087 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
32088 endian.
32089 (vzipq_s16): Likewise.
32090 (vzipq_s32): Likewise.
32091 (vzipq_f32): Likewise.
32092 (vzipq_u8): Likewise.
32093 (vzipq_u16): Likewise.
32094 (vzipq_u32): Likewise.
32095 (vzipq_p8): Likewise.
32096 (vzipq_p16): Likewise.
32097
32098 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
32099
32100 PR target/68532
32101 * config/arm/arm.c (neon_endian_lane_map): New function.
32102 (neon_vector_pair_endian_lane_map): New function.
32103 (arm_evpc_neon_vuzp): Allow for big endian lane order.
32104 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
32105 endian.
32106 (vuzpq_s16): Likewise.
32107 (vuzpq_s32): Likewise.
32108 (vuzpq_f32): Likewise.
32109 (vuzpq_u8): Likewise.
32110 (vuzpq_u16): Likewise.
32111 (vuzpq_u32): Likewise.
32112 (vuzpq_p8): Likewise.
32113 (vuzpq_p16): Likewise.
32114
32115 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
32116
32117 PR target/69634
32118 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
32119 debug insns.
32120
32121 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
32122
32123 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
32124 truncate const_int operand 1 to QImode.
32125
32126 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
32127
32128 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
32129 corresponding to an abnormal edge.
32130
32131 2016-02-09 Tom de Vries <tom@codesourcery.com>
32132
32133 PR tree-optimization/69599
32134 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
32135 function.
32136 (find_func_aliases_for_builtin_call, find_func_clobbers)
32137 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
32138 partition.
32139
32140 2016-02-09 Richard Biener <rguenther@suse.de>
32141
32142 PR tree-optimization/69715
32143 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
32144 LHS on calls as non-rewritable.
32145
32146 2016-02-09 Tom de Vries <tom@codesourcery.com>
32147
32148 PR lto/69707
32149 * lto-wrapper.c (append_diag_options): New function.
32150 (compile_offload_image): Call append_diag_options.
32151
32152 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
32153
32154 PR other/69722
32155 * doc/extend.texi (Flag Output Operands): Correct sectioning.
32156 Minor copy-edit to fix verb tenses.
32157
32158 2016-02-08 Jakub Jelinek <jakub@redhat.com>
32159
32160 PR tree-optimization/69209
32161 * ipa-split.c (split_function): If split part is not
32162 returning retval, retval has gimple type but is not
32163 gimple value, force it into a SSA_NAME first.
32164
32165 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
32166
32167 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
32168 outdated section.
32169
32170 2016-02-08 Jason Merrill <jason@redhat.com>
32171
32172 PR c++/69631
32173 * convert.c (convert_to_integer_1): Check dofold on truncation
32174 distribution.
32175 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
32176 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
32177 Rename from *_nofold.
32178 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
32179 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
32180
32181 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
32182
32183 PR target/60410
32184 * tree.c (build_common_tree_nodes): Remove short_double argument.
32185 All callers changed.
32186 * tree.h (build_common_tree_nodes): Adjust declaration.
32187 * doc/invoke.texi (-fshort-double): Remove documentation.
32188 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
32189 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
32190 * lto-wrapper.c (merge_and_complain, append_compiler_options)
32191 (append_linker_options): Don't handle OPT_fshort_double.
32192
32193 PR rtl-optimization/68730
32194 * lra-remat.c (insn_to_cand_activation): New static variable.
32195 (lra_remat): Allocate and free it.
32196 (create_cand): New arg activation. Initialize a field in
32197 insn_to_cand_activation if it is nonnull.
32198 (create_cands): Pass the activation insn to create_cand when making
32199 a candidate involving an output reload. Reorganize code a little.
32200 (do_remat): Keep track of active status of candidates in a separate
32201 bitmap.
32202
32203 2016-02-08 Richard Biener <rguenther@suse.de>
32204
32205 PR tree-optimization/69719
32206 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
32207 Properly use absolute of the difference of the two offsets to
32208 compare or adjust the segment length.
32209
32210 2016-02-08 Richard Biener <rguenther@suse.de>
32211 Jeff Law <law@redhat.com>
32212
32213 PR target/68273
32214 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
32215 types for anonymous SSA names.
32216
32217 2016-02-08 Richard Biener <rguenther@suse.de>
32218
32219 PR rtl-optimization/69274
32220 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
32221
32222 2016-02-08 Jeff Law <law@redhat.com>
32223
32224 PR tree-optimization/65917
32225 * tree-ssa-dom.c (record_temporary_equivalences): Record both
32226 equivalences from if (x == y) style conditionals.
32227 (loop_depth_of_name): Remove.
32228 (record_equality): Remove loop depth check.
32229 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
32230 (const_and_copies::record_const_or_copy_raw): New member function.
32231 * tree-ssa-scopedtables.c
32232 (const_and_copies::record_const_or_copy_raw): New, factored out of
32233 (const_and_copies::record_const_or_copy): Call new member function.
32234
32235 2016-02-05 Jeff Law <law@redhat.com>
32236
32237 PR tree-optimization/68541
32238 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
32239 (count_stmts_in_block): New function.
32240 (poor_ifcvt_candidate_code): Likewise.
32241 (is_feasible_trace): Add some heuristics to determine when path
32242 splitting is profitable.
32243 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
32244 is a diamond with a single exit.
32245
32246 2016-02-05 Martin Sebor <msebor@redhat.com>
32247
32248 PR c++/69662
32249 * doc/invoke.texi: Update -Wplacement-new to take an optional
32250 argument.
32251
32252 2016-02-06 Richard Henderson <rth@redhat.com>
32253
32254 PR c/69643
32255 * tree.c (tree_nop_conversion_p): Do not strip casts into or
32256 out of non-standard address spaces.
32257
32258 2016-02-05 Jakub Jelinek <jakub@redhat.com>
32259
32260 PR rtl-optimization/69691
32261 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
32262
32263 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
32264
32265 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
32266 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
32267 (*ieee128_mfvsrd_64bit): Likewise.
32268 (*ieee128_mfvsrd_32bit): Likewise.
32269
32270 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
32271
32272 PR target/69369
32273 Revert r232560:
32274 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
32275
32276 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
32277 instrumented_version.
32278
32279 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
32280
32281 * doc/invoke.texi (Optimize Options): In table of --param options
32282 rename second occurrence of tracer-min-branch-ratio to
32283 tracer-min-branch-probability, rename
32284 tracer-min-branch-ratio-feedback to
32285 tracer-min-branch-probability-feedback and clarify description,
32286 rename sched-spec-state-edge-prob-cutoff to
32287 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
32288 to selsched-insns-to-rename, rename lto-minpartition to
32289 lto-min-partition, delete reorder-blocks-duplicate and
32290 reorder-blocks-duplicate-feedback.
32291
32292 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32293
32294 * config/s390/s390.c (s390_register_info_set_ranges): Remove
32295 superfluous loops.
32296
32297 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
32298
32299 * doc/extend.texi: S/390: Correct some typos.
32300
32301 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32302
32303 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
32304
32305 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32306
32307 PR target/69625
32308 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
32309 (s390_register_info_gprtofpr): Use new macros above.
32310 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
32311 its name.
32312 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
32313 its name. Adjust restore and save gpr ranges.
32314 (s390_register_info_set_ranges): New function.
32315 (s390_register_info): Use new macros above. Call
32316 s390_register_info_set_ranges.
32317 (s390_optimize_register_info): Likewise.
32318 (s390_hard_regno_rename_ok): Use new macros.
32319 (s390_hard_regno_scratch_ok): Likewise.
32320 (s390_emit_epilogue): Likewise.
32321 (s390_can_use_return_insn): Likewise.
32322 (s390_optimize_prologue): Likewise.
32323 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
32324
32325 2016-02-05 Jakub Jelinek <jakub@redhat.com>
32326
32327 PR bootstrap/69677
32328 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
32329 alignment fixes.
32330 (ix86_option_override_internal): Disable TARGET_STV even for
32331 -m{incoming,preferred}-stack-boundary=3.
32332
32333 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32334
32335 * config.gcc: Mark deprecated rtems targets as obsolete.
32336
32337 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
32338
32339 PR rtl-optimization/64682
32340 PR rtl-optimization/69567
32341 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
32342 before I2 only if the register is both used and set in I2.
32343
32344 2016-02-04 DJ Delorie <dj@redhat.com>
32345
32346 * config/msp430/msp430.c (msp430_start_function): Add function type.
32347
32348 2016-02-04 Jakub Jelinek <jakub@redhat.com>
32349
32350 PR fortran/69368
32351 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
32352
32353 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
32354
32355 PR rtl-optimization/69577
32356 Revert:
32357 2015-10-29 Richard Henderson <rth@redhat.com>
32358
32359 PR target/68124
32360 PR rtl-opt/67609
32361 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
32362 sse check to the exact conditions of PR 67609.
32363
32364 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
32365
32366 PR target/69667
32367 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
32368 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
32369 not allowed into the traditional Altivec registers.
32370 (movtd_64bit_nodm): Likewise.
32371 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
32372
32373 2016-02-04 David Malcolm <dmalcolm@redhat.com>
32374
32375 * config/aarch64/cortex-a57-fma-steering.c
32376 (aarch64_register_fma_steering): Remove "static" from arguments
32377 to register_pass.
32378
32379 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
32380
32381 PR target/69619
32382 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
32383 twice when complex.
32384
32385 2016-02-04 Mike Frysinger <vapier@gentoo.org>
32386
32387 * doc/invoke.texi: Delete -mno-fma4.
32388
32389 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
32390
32391 PR rtl-optimization/69577
32392 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
32393 (find_subregs_of_mode): Update accordingly. Iterate over partial
32394 definitions.
32395
32396 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
32397
32398 * config/arm/arm-protos.h (neon_reinterpret): Remove.
32399 * config/arm/arm.c (neon_reinterpret): Remove.
32400 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
32401 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
32402 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
32403 vreinterpretti): Remove.
32404 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
32405 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
32406 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
32407 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
32408 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
32409 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
32410 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
32411 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
32412 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
32413 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
32414 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
32415 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
32416 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
32417 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
32418 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
32419 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
32420 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
32421 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
32422 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
32423 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
32424 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
32425 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
32426 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
32427 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
32428 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
32429 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
32430 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
32431 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
32432 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
32433 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
32434 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
32435 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
32436 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
32437 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
32438 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
32439 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
32440 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
32441 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
32442 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
32443 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
32444 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
32445 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
32446 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
32447 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
32448 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
32449 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
32450 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
32451 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
32452 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
32453 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
32454 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
32455 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
32456 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
32457 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
32458 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
32459 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
32460 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
32461 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
32462 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
32463 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
32464 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
32465 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
32466 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
32467 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
32468 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
32469 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
32470 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
32471 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
32472 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
32473 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
32474 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
32475 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
32476 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
32477 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
32478 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
32479 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
32480 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
32481 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
32482 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
32483 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
32484 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
32485 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
32486 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
32487 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
32488 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
32489 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
32490 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
32491 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
32492 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
32493 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
32494 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
32495 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
32496 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
32497 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
32498 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
32499 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
32500 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
32501 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
32502 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
32503 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
32504 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
32505 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
32506 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
32507
32508 2016-02-04 Martin Liska <mliska@suse.cz>
32509
32510 PR sanitizer/69276
32511 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
32512 that are gimple_store_p.
32513 (maybe_instrument_call): Likewise.
32514
32515 2016-02-04 Bin Cheng <bin.cheng@arm.com>
32516
32517 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
32518 register scaling out of memory reference and comment why.
32519
32520 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32521
32522 PR target/65932
32523 PR target/67714
32524 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
32525 folding the source of a SET.
32526
32527 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32528
32529 PR target/65932
32530 PR target/67714
32531 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
32532 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
32533
32534 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
32535
32536 PR target/65932
32537 PR target/67714
32538 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
32539 HImode.
32540
32541 2016-02-04 Christian Bruel <christian.bruel@st.com>
32542
32543 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
32544 * config/arm/arm.c (arm_set_current_function): Likewise.
32545
32546 2016-02-04 Jakub Jelinek <jakub@redhat.com>
32547 Ilya Enkovich <enkovich.gnu@gmail.com>
32548 H.J. Lu <hongjiu.lu@intel.com>
32549
32550 PR target/69454
32551 * config/i386/i386.c (convert_scalars_to_vector): Remove
32552 stack alignment fixes.
32553 (ix86_option_override_internal): Disable TARGET_STV if stack
32554 might not be aligned enough.
32555 (ix86_minimum_alignment): Assert that TARGET_STV is false.
32556
32557 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
32558
32559 * config/i386/x86-tune.def: Disable default prefetching
32560 for -march=znver1.
32561
32562 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
32563 Vladimir Makarov <vmakarov@redhat.com>
32564
32565 PR target/69461
32566 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
32567 in validating fused toc addresses.
32568
32569 2016-02-03 Jakub Jelinek <jakub@redhat.com>
32570
32571 PR c/69627
32572 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
32573 range->m_caret fields if range->m_show_caret_p is false.
32574
32575 PR target/69644
32576 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
32577 Force oldval into register if it does not satisfy reg_or_short_operand
32578 predicate. Fix up formatting.
32579
32580 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
32581 Alexandre Oliva <aoliva@redhat.com>
32582
32583 PR target/69461
32584 * lra-constraints.c (simplify_operand_subreg): Check additionally
32585 address validity after potential reloading.
32586 (process_address_1): Check insns validity. In case of failure do
32587 nothing.
32588
32589 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
32590
32591 PR target/69118
32592 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
32593 Fix target.
32594
32595 2016-02-02 Jakub Jelinek <jakub@redhat.com>
32596
32597 * wide-int.cc (canonize_uhwi): New function.
32598 (wi::divmod_internal): Use it.
32599
32600 2016-02-02 James Norris <jnorris@codesourcery.com>
32601
32602 * gimplify.c (omp_notice_variable): Add usage check.
32603
32604 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
32605
32606 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
32607 like LE, GE, LT, GT when emitting relational operator.
32608
32609 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
32610
32611 * ira-costs.c (find_costs_and_classes): Add extra argument.
32612 * target.def (ira_change_pseudo_allocno_class): Add parameter.
32613 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
32614 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
32615 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
32616 Add best_class parameter, and return it if not ALL_REGS.
32617 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
32618 Add parameter.
32619 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
32620 Update target hook.
32621
32622 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
32623
32624 * config/aarch64/aarch64.c
32625 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
32626 (aarch64_ira_change_pseudo_allocno_class): New function.
32627
32628 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
32629
32630 PR target/67032
32631 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
32632
32633 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
32634
32635 * config/avr/avr.c (avr_option_override): Set
32636 PARAM_ALLOW_STORE_DATA_RACES to 1.
32637
32638 2016-02-02 Richard Biener <rguenther@suse.de>
32639
32640 PR tree-optimization/69595
32641 * match.pd: Add range test simplifications to true/false.
32642
32643 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
32644
32645 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
32646 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
32647 instead.
32648
32649 2016-02-02 Richard Biener <rguenther@suse.de>
32650
32651 PR tree-optimization/69606
32652 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
32653 info on the result before moving a stmt.
32654
32655 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
32656
32657 PR middle-end/68542
32658 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
32659 branch with vector comparison.
32660 * config/i386/sse.md (VI48_AVX): New mode iterator.
32661 (define_expand "cbranch<mode>4): Add support for conditional branch
32662 with vector comparison.
32663 * tree-vect-loop.c (optimize_mask_stores): New function.
32664 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
32665 has_mask_store field of vect_info.
32666 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
32667 vectorized loops having masked stores after vec_info destroy.
32668 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
32669 correspondent macros.
32670 (optimize_mask_stores): Add prototype.
32671
32672 2016-02-02 Alan Modra <amodra@gmail.com>
32673
32674 PR target/69548
32675 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
32676 allow subregs.
32677
32678 2016-02-02 Alan Modra <amodra@gmail.com>
32679
32680 PR target/68662
32681 * config/rs6000/rs6000.c (need_toc_init): New var, set it
32682 whenever toc_label_name used.
32683 (rs6000_file_start): Don't set up toc section here,
32684 (rs6000_output_function_epilogue): do so here instead,
32685 (rs6000_xcoff_file_start): and here.
32686 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
32687 (load_toc_aix_di): Likewise.
32688
32689 2016-02-01 Jakub Jelinek <jakub@redhat.com>
32690
32691 PR rtl-optimization/69592
32692 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
32693 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
32694 (num_sign_bit_copies_binary_arith_p): New inline function.
32695 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
32696
32697 2016-02-01 Jeff Law <law@redhat.com>
32698
32699 PR tree-optimization/69580
32700 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
32701 * tree-ssa-threadbackward.c
32702 (fsm_find_control_statement_thread_paths): Do not try to walk
32703 through large PHI nodes.
32704
32705 2016-02-01 Jakub Jelinek <jakub@redhat.com>
32706
32707 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
32708 when count is incremented above limit, don't analyze further
32709 insns afterwards.
32710
32711 * omp-low.c (oacc_parse_default_dims): Avoid
32712 -Wsign-compare warning, make sure value fits into int
32713 rather than just unsigned int.
32714
32715 2016-02-01 Bin Cheng <bin.cheng@arm.com>
32716
32717 PR tree-optimization/67921
32718 * fold-const.c (split_tree): New parameters. Convert pointer
32719 type variable part to proper type before negating.
32720 (fold_binary_loc): Pass new arguments to split_tree.
32721
32722 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
32723
32724 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
32725 (nvptx_goacc_validate_dims): Extend to handle global defaults.
32726 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
32727 * doc/tm.texti: Rebuilt.
32728 * doc/invoke.texi (fopenacc-dim): Document.
32729 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
32730 (append_compiler_options): Likewise.
32731 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
32732 (oacc_parse_default_dims): New.
32733 (oacc_validate_dims): Add USED arg. Select non-unity default when
32734 possible.
32735 (oacc_loop_fixed_partitions): Return mask of used partitions.
32736 (oacc_loop_auto_partitions): Emit dump info.
32737 (oacc_loop_partition): Return mask of used partitions.
32738 (execute_oacc_device_lower): Parse default dimension arg. Adjust
32739 loop partitioning and validation calls.
32740
32741 2016-02-01 Richard Biener <rguenther@suse.de>
32742
32743 PR middle-end/69556
32744 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
32745
32746 2016-02-01 Richard Biener <rguenther@suse.de>
32747
32748 PR tree-optimization/69574
32749 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
32750 of asserting return chrec_dont_know.
32751
32752 2016-02-01 Martin Liska <mliska@suse.cz>
32753
32754 * mem-stats-traits.h: Add copyright header.
32755 * mem-stats.h: Likewise.
32756
32757 2016-02-01 Richard Biener <rguenther@suse.de>
32758
32759 PR tree-optimization/69579
32760 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
32761 Do not propagate through abnormal PHI results.
32762
32763 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
32764
32765 * postreload.c (reload_cse_simplify): Remove dead code.
32766
32767 2016-02-01 Jakub Jelinek <jakub@redhat.com>
32768
32769 PR rtl-optimization/69570
32770 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
32771 if there is more than one set, not if there is a single set.
32772
32773 2016-02-01 Richard Henderson <rth@redhat.com>
32774
32775 PR rtl-opt/69535
32776 * combine.c (make_compound_operation): When looking through a
32777 subreg, make sure to re-extend to the width of the outer mode.
32778
32779 2016-01-30 Jakub Jelinek <jakub@redhat.com>
32780
32781 PR tree-optimization/69546
32782 * wide-int.cc (wi::divmod_internal): For unsigned division
32783 where both operands fit into uhwi, if o1 is 1 and o0 has
32784 msb set, if divident_prec is larger than bits per hwi,
32785 clear another quotient word and return 2 instead of 1.
32786 Similarly for remainder with msb in HWI set, if dividend_prec
32787 is larger than bits per hwi.
32788
32789 2016-01-29 Martin Jambor <mjambor@suse.cz>
32790
32791 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
32792 Use short lowercase names.
32793 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
32794 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
32795 acq_rel one. Protect warning agains segfaults if
32796 get_memory_order_name returns NULL.
32797 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
32798 with release semantics. Do not warn if get_memory_order already did.
32799 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
32800 semantics. Fix check for relaxed or acquire semantics. Do not warn
32801 if get_memory_order already did.
32802
32803 2016-01-29 Sebastian Pop <s.pop@samsung.com>
32804
32805 * doc/install.texi: Document that isl-0.16 is supported.
32806
32807 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
32808
32809 PR target/69299
32810 * config/i386/constraints.md (Bm): Describe as special memory
32811 constraint.
32812 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
32813 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
32814 * genpreds.c (struct constraint_data): Add is_special_memory.
32815 (have_special_memory_constraints, special_memory_start): New
32816 static vars.
32817 (special_memory_end): Ditto.
32818 (add_constraint): Add new arg is_special_memory. Add code to
32819 process its true value. Update have_special_memory_constraints.
32820 (process_define_constraint): Pass the new arg.
32821 (process_define_register_constraint): Ditto.
32822 (choose_enum_order): Process special memory.
32823 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
32824 function insn_extra_special_memory_constraint.
32825 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
32826 * gensupport.c (process_rtx): Process
32827 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
32828 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
32829 * ira-lives.c (single_reg_class): Use
32830 insn_extra_special_memory_constraint.
32831 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
32832 * lra-constraints.c (process_alt_operands): Ditto.
32833 (curr_insn_transform): Use insn_extra_special_memory_constraint.
32834 * recog.c (asm_operand_ok, preprocess_constraints): Process
32835 CT_SPECIAL_MEMORY.
32836 * reload.c (find_reloads): Ditto.
32837 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
32838 * stmt.c (parse_input_constraint): Use
32839 insn_extra_special_memory_constraint.
32840
32841 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
32842
32843 PR target/69530
32844 * lra-splill.c (lra_final_code_change): Revert r229087 by
32845 removing all sub-registers.
32846
32847 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
32848
32849 PR target/65604
32850 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
32851
32852 2016-01-29 Jakub Jelinek <jakub@redhat.com>
32853
32854 PR target/69551
32855 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
32856 SSE1, copy target into the temporary reg first before recursing
32857 on it.
32858
32859 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
32860
32861 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
32862 with vm.
32863
32864 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
32865
32866 * ginclude/stdarg.h: Test __cplusplus instead of
32867 __GXX_EXPERIMENTAL_CXX0X__.
32868
32869 2016-01-29 Richard Biener <rguenther@suse.de>
32870
32871 PR tree-optimization/69547
32872 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
32873 Do not mark clobbers necessary.
32874 (mark_all_reaching_defs_necessary_1): Likewise.
32875
32876 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
32877
32878 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
32879 declaration name with %qs and print it in both error messages.
32880 Also fix indentation.
32881
32882 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
32883
32884 PR other/69006
32885 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
32886 trailing blank line from error message.
32887
32888 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
32889
32890 PR c++/69462
32891 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
32892 for C++-11.
32893
32894 2016-01-29 Richard Biener <rguenther@suse.de>
32895
32896 PR middle-end/69537
32897 * match.pd: Allow all integral types when simplifying a
32898 widening or sign-changing conversion.
32899
32900 2016-01-28 Sebastian Pop <s.pop@samsung.com>
32901
32902 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
32903 back to setting codegen_error to fail codegen.
32904
32905 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
32906
32907 PR target/69459
32908 * config/i386/constraints.md (C): Only accept constant zero operand.
32909 (BC): New constraint.
32910 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
32911 instead of C constraint.
32912 * doc/md.texi (Machine Constraints): Update description
32913 of C constraint.
32914
32915 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
32916
32917 PR target/68400
32918 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
32919
32920 2016-01-28 Jakub Jelinek <jakub@redhat.com>
32921
32922 PR middle-end/69542
32923 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
32924 non-debug insns.
32925
32926 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
32927
32928 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
32929 branches if using guessed profile.
32930
32931 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
32932
32933 * graphite-optimize-isl.c (optimize_isl): Fix dump.
32934
32935 2016-01-28 Richard Henderson <rth@redhat.com>
32936
32937 PR target/69305
32938 * config/aarch64/aarch64-modes.def (CC_Cmode): New
32939 * config/aarch64/aarch64-protos.h: Update.
32940 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
32941 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
32942 (aarch64_get_condition_code_1): Handle CC_Cmode.
32943 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
32944 (*add<mode>3_compareC_cconly_imm): New.
32945 (*add<mode>3_compareC_cconly): New.
32946 (*add<mode>3_compareC_imm): New.
32947 (add<mode>3_compareC): New.
32948 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
32949 to be first. Use aarch64_carry_operation.
32950 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
32951 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
32952 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
32953 (subti3): Use subdi3_compare1.
32954 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
32955 (sub<mode>3_compare1): New.
32956 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
32957 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
32958 (*subsi3_carryin_uxtw): Likewise.
32959 (*ngc<mode>, *ngcsi_uxtw): Likewise.
32960 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
32961 * config/aarch64/iterators.md (DWI): New.
32962 * config/aarch64/predicates.md (aarch64_carry_operation): New.
32963 (aarch64_borrow_operation): New.
32964
32965 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
32966
32967 * graphite-optimize-isl.c (optimize_isl): Print a different debug
32968 message when isl does not return a valid schedule.
32969
32970 2016-01-28 Sebastian Pop <s.pop@samsung.com>
32971
32972 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
32973 Remove comments from class declarations: they are already in the code
32974 close by the defs.
32975
32976 2016-01-28 Sebastian Pop <s.pop@samsung.com>
32977
32978 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
32979 codegen_error_p.
32980 (ternary_op_to_tree): Same.
32981 (unary_op_to_tree): Same.
32982 (nary_op_to_tree): Same.
32983 (gcc_expression_from_isl_expr_op): Same.
32984 (gcc_expression_from_isl_expression): Same.
32985 (graphite_create_new_loop): Same.
32986 (graphite_create_new_loop_guard): Same.
32987 (build_iv_mapping): Same.
32988 (graphite_create_new_guard): Same.
32989 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
32990 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
32991
32992 2016-01-28 Sebastian Pop <s.pop@samsung.com>
32993
32994 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
32995 instead of setting codegen_error to fail codegen.
32996
32997 2016-01-28 Jason Merrill <jason@redhat.com>
32998
32999 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
33000
33001 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
33002
33003 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
33004 Remove CONST_INT_P check in CCMP cost calculation.
33005
33006 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
33007
33008 * config/aarch64/aarch64.c (generic_vector_cost):
33009 Set vec_permute_cost.
33010 (cortexa57_vector_cost): Likewise.
33011 (exynosm1_vector_cost): Likewise.
33012 (xgene1_vector_cost): Likewise.
33013 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
33014 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
33015 Add vec_permute_cost entry.
33016
33017 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
33018
33019 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
33020 immediate as %1.
33021 (add<mode>3_compare0): Likewise.
33022 (addsi3_compare0_uxtw): Likewise.
33023 (add<mode>3nr_compare0): Likewise.
33024 (compare_neg<mode>): Likewise.
33025 (<optab><mode>3): Likewise.
33026
33027 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
33028
33029 * tree-vect-stmts.c (vectorizable_comparison): Add
33030 NULL check for vectype.
33031
33032 2016-01-28 Richard Biener <rguenther@suse.de>
33033
33034 PR tree-optimization/69466
33035 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
33036 Account for PHIs we couldn't duplicate.
33037
33038 2016-01-28 Martin Liska <mliska@suse.cz>
33039
33040 PR pch/68758
33041 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
33042 instead of ENABLE_VALGRIND_CHECKING.
33043
33044 2016-01-27 Richard Henderson <rth@redhat.com>
33045
33046 PR rtl-opt/69447
33047 * lra-remat.c (subreg_regs): New.
33048 (dump_candidates_and_remat_bb_data): Dump it.
33049 (operand_to_remat): Reject if operand in subreg_regs.
33050 (set_bb_regs): Collect subreg_regs.
33051 (lra_remat): Init and free subreg_regs. Compute
33052 calculate_local_reg_remat_bb_data before create_cands.
33053
33054 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
33055
33056 PR target/68986
33057 * config/i386/i386.c (ix86_update_stack_boundary): Don't
33058 change stack_alignment_needed for __tls_get_addr call.
33059
33060 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
33061
33062 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
33063
33064 2016-01-27 Jeff Law <law@redhat.com>
33065
33066 PR tree-optimization/68398
33067 PR tree-optimization/69196
33068 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
33069 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
33070 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
33071 Only count PHIs in the last block in the path. The others will
33072 const/copy propagate away. Add heuristic to allow more irreducible
33073 subloops to be created when it is likely profitable to do so.
33074
33075 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
33076 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
33077 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
33078
33079 2016-01-27 Jakub Jelinek <jakub@redhat.com>
33080
33081 PR lto/69254
33082 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
33083 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
33084 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
33085 * tree-streamer-in.c: Include asan.h.
33086 (streamer_get_builtin_tree): For builtins in sanitizer
33087 range call initialize_sanitizer_builtins and retry.
33088
33089 2016-01-27 Ian Lance Taylor <iant@google.com>
33090
33091 * common.opt (fkeep-gc-roots-live): New undocumented option.
33092 * tree-ssa-loop-ivopts.c (add_candidate_1): If
33093 -fkeep-gc-roots-live, skip pointers.
33094 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
33095 NULL.
33096
33097 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
33098
33099 PR target/69512
33100 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
33101 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
33102
33103 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
33104
33105 PR target/68380
33106 * configure.ac: NetBSD provides SSP in its C library.
33107 * configure: Updated.
33108
33109 2016-01-27 Richard Biener <rguenther@suse.de>
33110
33111 PR tree-optimization/69166
33112 * tree-vect-loop.c (vect_is_simple_reduction): Always check
33113 reduction code for commutativity / associativity.
33114
33115 2016-01-27 Martin Jambor <mjambor@suse.cz>
33116
33117 PR tree-optimization/69355
33118 * tree-sra.c (analyze_access_subtree): Correct hole detection when
33119 total_scalarization fails.
33120
33121 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
33122
33123 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
33124 power9.
33125
33126 2016-01-27 Christian Bruel <christian.bruel@st.com>
33127
33128 PR target/69245
33129 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
33130 Move arm_reset_previous_fndecl and set_target_option_current_node in
33131 the conditional part. Call save_restore_target_globals.
33132 * config/arm/arm.c (arm_set_current_function):
33133 Refactor to better support #pragma target and attribute mix.
33134 Call save_restore_target_globals.
33135 * config/arm/arm-protos.h (save_restore_target_globals): New function.
33136
33137 2016-01-27 Martin Liska <mliska@suse.cz>
33138
33139 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
33140 reference for an HSA kernel and its host function.
33141
33142 2016-01-27 Jakub Jelinek <jakub@redhat.com>
33143
33144 PR tree-optimization/69399
33145 * wide-int.h (wi::lrshift): For larger precisions, only
33146 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
33147
33148 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
33149
33150 * config/arc/predicates.md (proper_comparison_operator): Reject
33151 constant-constant comparison.
33152
33153 2016-01-26 Tom de Vries <tom@codesourcery.com>
33154
33155 PR tree-optimization/69110
33156 * tree-data-ref.c (initialize_data_dependence_relation): Handle
33157 DR_NUM_DIMENSIONS == 0.
33158
33159 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
33160 Sebastian Pop <s.pop@samsung.com>
33161
33162 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
33163 isl_ast_op_cond and isl_ast_op_select.
33164 (gcc_expression_from_isl_expr_op): Same.
33165
33166 2016-01-26 Jason Merrill <jason@redhat.com>
33167
33168 PR c++/68782
33169 * tree.c (recompute_constructor_flags): Split out from
33170 build_constructor.
33171 (verify_constructor_flags): New.
33172 * tree.h: Declare them.
33173
33174 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
33175
33176 PR rtl-optimization/69217
33177 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
33178 are no TYPE_FIELDS set for the record type.
33179
33180 2016-01-26 Jakub Jelinek <jakub@redhat.com>
33181
33182 PR target/68662
33183 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
33184 toc_label_name unconditionally.
33185 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
33186 SYMBOL_REF string. Use toc_label_name instead of constructing
33187 LCTOC1.
33188 (rs6000_elf_declare_function_name): Use toc_label_name instead of
33189 constructing LCTOC1.
33190
33191 2016-01-26 Martin Sebor <msebor@redhat.com>
33192
33193 PR other/69477
33194 * doc/extend.texi (Common Type Attributes): Move text that talks about
33195 attribute packed from attribute aligned to the section discussing
33196 the former attribute for clarity.
33197
33198 2016-01-26 Richard Henderson <rth@redhat.com>
33199
33200 PR middle-end/60908
33201 * trans-mem.c (tm_region_init): Mark entry block as visited.
33202
33203 2016-01-26 David Malcolm <dmalcolm@redhat.com>
33204
33205 PR other/69006
33206 * diagnostic-show-locus.c (layout::print_source_line): Replace
33207 call to pp_newline with call to layout::print_newline.
33208 (layout::print_annotation_line): Likewise.
33209 (layout::move_to_column): Likewise.
33210 (layout::print_any_fixits): After printing any fixits, print a
33211 trailing newline, if necessary.
33212 (layout::print_newline): New method, resetting any colorization
33213 before a newline.
33214 (diagnostic_show_locus): Move the pp_newline to before the
33215 early bailout. Remove dummy block enclosing the layout instance.
33216 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
33217 of pp_newline_and_flush with pp_flush.
33218 (diagnostic_append_note): Delete use of pp_newline.
33219 (diagnostic_append_note_at_rich_loc): Delete.
33220 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
33221 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
33222 when newline characters are added to the buffer.
33223
33224 2016-01-26 Michael Matz <matz@suse.de>
33225
33226 * configure.ac (ac_cv_std_swap_in_utility): New test.
33227 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
33228 * configure: Regenerate.
33229 * config.in: Regenerate.
33230
33231 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
33232
33233 * config/arc/arc.md (cstoresi4): Force operand into register.
33234 (arcset<code>): Fix predicate.
33235 (arcsetltu): Likewise.
33236 (arcsetgeu): Likewise.
33237 (arcsethi): Likewise.
33238 (arcsetls): Likewise.
33239
33240 2016-01-26 Jakub Jelinek <jakub@redhat.com>
33241
33242 PR tree-optimization/69483
33243 * gimple-fold.c (canonicalize_constructor_val): Return NULL
33244 if base has error_mark_node type.
33245
33246 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
33247
33248 PR target/68620
33249 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
33250 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
33251 New helper macros.
33252 (vget_lane_f16): Handle big-endian.
33253 (vgetq_lane_f16): Likewise.
33254 (vset_lane_f16): Likewise.
33255 (vsetq_lane_f16): Likewise.
33256 * config/arm/iterators.md (VQXMOV): Add V8HF.
33257 (VDQ): Add V4HF and V8HF.
33258 (V_reg): Handle V4HF and V8HF.
33259 (Is_float_mode): Likewise.
33260 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
33261 neon_vdup_nv8hf): New patterns.
33262 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
33263 Use VD_LANE iterator.
33264 (neon_vld1_dup<mode>): Use VQ2 iterator.
33265
33266 2016-01-26 Nathan Sidwell <nathan@acm.org>
33267
33268 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
33269 (set_oacc_fn_attrib): Add IS_KERNEL arg.
33270 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
33271 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
33272 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
33273 (oacc_validate_dims): Add LEVEL arg, don't return level.
33274 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
33275 oacc_validate_dims.
33276 (execute_oacc_device_lower): Adjust, add more dump output.
33277 * tree-ssa-loop.c (gate_oacc_kernels): Use
33278 oacc_fn_attrib_kernels_p.
33279 * tree-parloops.c (create_parallel_loop): Adjust
33280 set_oacc_fn_attrib call.
33281
33282 2016-01-26 Jakub Jelinek <jakub@redhat.com>
33283
33284 PR lto/69254
33285 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
33286 (append_compiler_options): Handle -fcilkplus.
33287 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
33288
33289 2016-01-26 Nick Clifton <nickc@redhat.com>
33290
33291 PR target/66655
33292 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
33293 been marked as DECL_ONE_ONLY but we do not the means to make it
33294 so, then do not allow it to bind locally.
33295
33296 2016-01-26 Jakub Jelinek <jakub@redhat.com>
33297
33298 PR lto/69254
33299 * opts.h (parse_sanitizer_options): New prototype.
33300 * opts.c (sanitizer_opts): New array.
33301 (parse_sanitizer_options): New function.
33302 (common_handle_option): Use parse_sanitizer_options.
33303
33304 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
33305
33306 PR target/68986
33307 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
33308 alignment adjustment to ...
33309 (ix86_update_stack_boundary): Here. Don't over-align stack for
33310 __tls_get_addr.
33311 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
33312 if __tls_get_addr is called.
33313
33314 2016-01-26 Christian Bruel <christian.bruel@st.com>
33315
33316 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
33317
33318 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
33319
33320 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
33321
33322 2016-01-26 Richard Biener <rguenther@suse.de>
33323
33324 PR middle-end/69467
33325 * match.pd: Guard X * CST CMP 0 pattern with single_use.
33326
33327 2016-01-26 Richard Biener <rguenther@suse.de>
33328
33329 PR tree-optimization/69452
33330 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
33331 (move_computations_dom_walker::before_dom_children): Rename
33332 to ...
33333 (move_computations_worker): This.
33334 (move_computations): Perform an RPO rather than a DOM walk.
33335
33336 2016-01-26 Jakub Jelinek <jakub@redhat.com>
33337
33338 PR target/69442
33339 * combine.c (combine_instructions): For REG_EQUAL note with
33340 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
33341 to the underlying register.
33342 * doc/rtl.texi (REG_EQUAL): Document the behavior of
33343 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
33344
33345 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
33346
33347 PR target/67896
33348 * config/aarch64/aarch64-builtins.c
33349 (aarch64_init_simd_builtin_types): Do not set structural
33350 equality to __Poly{8,16,64,128}_t types.
33351
33352 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
33353
33354 PR tree-optimization/69400
33355 * wide-int.cc (wi_pack): Take the precision as argument and
33356 perform canonicalization here rather than in the callers.
33357 Use the main loop to handle all full-width HWIs. Add a
33358 zero HWI if in_len isn't a full result.
33359 (wi::divmod_internal): Update accordingly.
33360 (wi::mul_internal): Likewise. Simplify.
33361
33362 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
33363 Sebastian Pop <s.pop@samsung.com>
33364
33365 * graphite-poly.c (apply_poly_transforms): Simplify.
33366 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
33367 (print_isl_map): Same.
33368 (print_isl_union_map): Same.
33369 (print_isl_schedule): New.
33370 (debug_isl_schedule): New.
33371 * graphite-dependences.c (scop_get_reads): Do not call
33372 isl_union_map_add_map that is undocumented isl functionality.
33373 (scop_get_must_writes): Same.
33374 (scop_get_may_writes): Same.
33375 (scop_get_original_schedule): Remove.
33376 (scop_get_dependences): Do not call isl_union_map_compute_flow that
33377 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
33378 (compute_deps): Remove.
33379 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
33380 (debug_schedule_ast): New.
33381 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
33382 set_separate_option.
33383 (graphite_regenerate_ast_isl): Add dump.
33384 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
33385 from scop->transformed_schedule.
33386 (graphite_regenerate_ast_isl): Add more dump.
33387 * graphite-optimize-isl.c (optimize_isl): Set
33388 scop->transformed_schedule. Check whether schedules are equal.
33389 (apply_poly_transforms): Move here.
33390 * graphite-poly.c (apply_poly_transforms): ... from here.
33391 (free_poly_bb): Static.
33392 (free_scop): Static.
33393 (pbb_number_of_iterations_at_time): Remove.
33394 (print_isl_ast): New.
33395 (debug_isl_ast): New.
33396 (debug_scop_pbb): New.
33397 * graphite-scop-detection.c (print_edge): Move.
33398 (print_sese): Move.
33399 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
33400 (build_scop_scattering): Remove.
33401 (create_pw_aff_from_tree): Assert instead of bailing out.
33402 (add_condition_to_pbb): Remove unused code, do not fail.
33403 (add_conditions_to_domain): Same.
33404 (add_conditions_to_constraints): Remove.
33405 (build_scop_context): New.
33406 (add_iter_domain_dimension): New.
33407 (build_iteration_domains): Initialize pbb->iterators.
33408 Call add_conditions_to_domain.
33409 (nested_in): New.
33410 (loop_at): New.
33411 (index_outermost_in_loop): New.
33412 (index_pbb_in_loop): New.
33413 (outermost_pbb_in): New.
33414 (add_in_sequence): New.
33415 (add_outer_projection): New.
33416 (outer_projection_mupa): New.
33417 (add_loop_schedule): New.
33418 (build_schedule_pbb): New.
33419 (build_schedule_loop): New.
33420 (embed_in_surrounding_loops): New.
33421 (build_schedule_loop_nest): New.
33422 (build_original_schedule): New.
33423 (build_poly_scop): Call build_original_schedule.
33424 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
33425 (free_poly_dr): Remove.
33426 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
33427 (free_poly_bb): Remove.
33428 (debug_loop_vec): Remove.
33429 (print_isl_ast): Declare.
33430 (debug_isl_ast): Declare.
33431 (scop_do_interchange): Remove.
33432 (scop_do_strip_mine): Remove.
33433 (scop_do_block): Remove.
33434 (flatten_all_loops): Remove.
33435 (optimize_isl): Remove.
33436 (pbb_number_of_iterations_at_time): Remove.
33437 (debug_scop_pbb): Declare.
33438 (print_schedule_ast): Declare.
33439 (debug_schedule_ast): Declare.
33440 (struct scop): Remove schedule. Add original_schedule,
33441 transformed_schedule.
33442 (free_gimple_poly_bb): Remove.
33443 (print_generated_program): Remove.
33444 (debug_generated_program): Remove.
33445 (unify_scattering_dimensions): Remove.
33446 * sese.c (print_edge): ... here.
33447 (print_sese): ... here.
33448 (debug_edge): ... here.
33449 (debug_sese): ... here.
33450 * sese.h (print_edge): Declare.
33451 (print_sese): Declare.
33452 (dump_edge): Declare.
33453 (dump_sese): Declare.
33454
33455 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
33456 Sebastian Pop <s.pop@samsung.com>
33457
33458 * Makefile.in: Set ISLVER in site.exp.
33459
33460 2016-01-25 Jakub Jelinek <jakub@redhat.com>
33461
33462 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
33463 DECL_VALUE_EXPR of new_var even for the non-array case. Look
33464 through DECL_VALUE_EXPR for expansion.
33465
33466 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
33467
33468 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
33469 the frame info after reload completed.
33470
33471 2016-01-25 Jeff Law <law@redhat.com>
33472
33473 PR tree-optimization/69196
33474 PR tree-optimization/68398
33475 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
33476 tree-ssa-threadupdate.c.
33477 (determine_bb_domination_status): Prototype
33478 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
33479 (determine_bb_domination_status): No longer static.
33480 (valid_jump_thread_path): Remove code to detect characteristics
33481 of the jump thread path not associated with correctness.
33482 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
33483 Correct test for thread path length. Count PHIs for real operands as
33484 statements that need to be copied. Do not count ASSERT_EXPRs.
33485 Look at all the blocks in the thread path. Compute and selectively
33486 filter thread paths based on threading through the latch, threading
33487 a multiway branch or crossing a multiway branch.
33488
33489 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33490
33491 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
33492 decl with __attribute__ ((unused)) annotation.
33493
33494 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
33495
33496 PR target/69421
33497 * tree-vect-stmts.c (vectorizable_condition): Check vectype
33498 of operands is compatible with a statement vectype.
33499
33500 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
33501
33502 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
33503 improve wording for mixed storage order support.
33504
33505 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
33506
33507 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
33508 (vcvt_u64_f64): Likewise.
33509 (vcvta_s64_f64): Likewise.
33510 (vcvta_u64_f64): Likewise.
33511 (vcvtm_s64_f64): Likewise.
33512 (vcvtm_u64_f64): Likewise.
33513 (vcvtn_s64_f64): Likewise.
33514 (vcvtn_u64_f64): Likewise.
33515 (vcvtp_s64_f64): Likewise.
33516 (vcvtp_u64_f64): Likewise.
33517
33518 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
33519
33520 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
33521 (arc_init): Check validity mll64 option.
33522 (arc_save_restore): Use double load/store instruction.
33523 (arc_expand_movmem): Likewise.
33524 (arc_split_move): Don't split if we have double load/store
33525 instructions. Returns a boolean.
33526 (arc_process_double_reg_moves): Change function to return boolean
33527 instead of a sequence of instructions.
33528 (arc_dwarf_register_span): New function.
33529 * config/arc/arc-protos.h (arc_split_move): Change prototype.
33530 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
33531 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
33532 (*movdf_insn): Likewise.
33533 * config/arc/arc.opt (mll64): New option.
33534 * config/arc/predicates.md (even_register_operand): New predicate.
33535 * doc/invoke.texi (ARC Options): Add mll64 documentation.
33536
33537 2016-01-25 Richard Biener <rguenther@suse.de>
33538
33539 PR lto/69393
33540 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
33541 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
33542 DECL_NAMELESS.
33543 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
33544
33545 2016-01-25 Richard Biener <rguenther@suse.de>
33546
33547 PR tree-optimization/69376
33548 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
33549 flag.
33550 (VN_INFO_ANTI_RANGE_P): New inline.
33551 (VN_INFO_RANGE_TYPE): Likewise.
33552 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
33553 SSA_NAME_ANTI_RANGE_P.
33554 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
33555 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
33556 Properly query VN_INFO_RANGE_TYPE.
33557
33558 2016-01-25 Nick Clifton <nickc@redhat.com>
33559
33560 PR target/66655
33561 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
33562
33563 2016-01-23 Tom de Vries <tom@codesourcery.com>
33564
33565 PR tree-optimization/69426
33566 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
33567 removed clobber.
33568
33569 2016-01-23 Jakub Jelinek <jakub@redhat.com>
33570
33571 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
33572 "the the" with "the" in the comments.
33573 * ipa-devirt.c (build_type_inheritance_graph,
33574 update_type_inheritance_graph): Likewise.
33575 * tree.c (build_function_type_list_1): Likewise.
33576 * cfgloopmanip.c (scale_loop_profile): Likewise.
33577 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
33578 * gimple-ssa-split-paths.c
33579 (find_block_to_duplicate_for_splitting_paths): Likewise.
33580 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
33581 * expr.c (convert_move): Likewise.
33582 * var-tracking.c (vt_stack_adjustments): Likewise.
33583 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
33584 * tree-vrp.c (test_for_singularity): Likewise.
33585
33586 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
33587 directly instead of building a temporary tree.
33588
33589 PR bootstrap/69434
33590 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
33591 remove <algorithm> include.
33592
33593 2016-01-22 Jakub Jelinek <jakub@redhat.com>
33594
33595 PR target/69432
33596 * config/i386/i386.c: Include dojump.h.
33597 (expand_small_movmem_or_setmem,
33598 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
33599 fixes.
33600 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
33601 if dynamic_check != -1.
33602
33603 2016-01-21 Jeff Law <law@redhat.com>
33604
33605 PR middle-end/69347
33606 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
33607 record_temporary_equivalences. Rewritten to avoid unnecessary calls
33608 into dominated_by_p.
33609 (cprop_into_successor_phis): Avoid unnecessary tests.
33610
33611 2016-01-22 Richard Henderson <rth@redhat.com>
33612
33613 PR target/69416
33614 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
33615 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
33616
33617 2016-01-22 Michael Matz <matz@suse.de>
33618
33619 * system.h (string, algorithm): Include only conditionally.
33620 (new): Include always under C++.
33621 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
33622 * final.c (toplevel): Ditto.
33623 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
33624 * genconditions.c (write_header): Make gencondmd.c define
33625 INCLUDE_STRING.
33626 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
33627
33628 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
33629 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
33630
33631 2016-01-22 Christian Bruel <christian.bruel@st.com>
33632
33633 PR target/68674
33634 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
33635
33636 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33637
33638 PR target/69403
33639 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
33640 define_insn_and_split. Ensure operands[1] and operands[0] do not
33641 get assigned the same register.
33642
33643 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
33644
33645 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
33646
33647 2016-01-22 Christian Bruel <christian.bruel@st.com>
33648
33649 * config/arm/arm-c.c (arm_pragma_target_parse):
33650 Remove warn_builtin_macro_redefined overwrite.
33651
33652 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
33653
33654 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
33655 flag_non_call_exceptions compatibility.
33656
33657 2016-01-22 Jakub Jelinek <jakub@redhat.com>
33658
33659 PR debug/66668
33660 * dwarf2out.c (add_child_die_after): New function.
33661 (dwarf_qual_info_t): New type.
33662 (dwarf_qual_info): New variable.
33663 (qualified_die_p): New function.
33664 (modified_type_die): For -fdebug-types-section, ensure
33665 canonical order of qualifiers. Put qualified DIEs adjacent
33666 to the corresponding non-qualified type DIE and search there
33667 for existing qualified DIEs.
33668
33669 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
33670
33671 * doc/extend.texi (scalar_storage_order type attribute): Document
33672 restriction on type punning and aliasing, and remove future tense.
33673
33674 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
33675
33676 PR target/69252
33677 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
33678 first stage.
33679
33680 2016-01-21 Jeff Law <law@redhat.com>
33681
33682 PR middle-end/69347
33683 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
33684 useless call to record_temporary_equivalences.
33685 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
33686 allocate 10 slots in the bb_path vector and let it grow as needed.
33687 (fsm_find_control_statement_thread_paths): Similarly for the next_path
33688 vector.
33689
33690 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
33691
33692 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
33693 Detangle.
33694 * configure: Regenerate.
33695
33696 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
33697
33698 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
33699 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
33700
33701 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
33702
33703 PR middle-end/66178
33704 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
33705 drop EXPAND_INITIALIZER.
33706 * rtl.h (contains_symbolic_reference_p): Declare.
33707 * rtlanal.c (contains_symbolic_reference_p): New function.
33708 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
33709 a subtraction into a NOT if symbolic constants are involved.
33710
33711 2016-01-21 Anton Blanchard <anton@samba.org>
33712 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33713
33714 PR target/63354
33715 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
33716 #define.
33717 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
33718 function.
33719
33720 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
33721
33722 * config/microblaze/microblaze.c
33723 (get_branch_target): New.
33724 (insert_wic_for_ilb_runout): New.
33725 (insert_wic): New.
33726 (microblaze_machine_dependent_reorg): New.
33727 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
33728 * config/microblaze/microblaze.md
33729 (UNSPEC_IPREFETCH): Define.
33730 (iprefetch): New pattern
33731 * config/microblaze/microblaze.opt
33732 (mxl-prefetch): New flag.
33733
33734 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
33735
33736 * config/microblaze/microblaze.h
33737 (FIXED_REGISTERS): Update in macro.
33738 (CALL_USED_REGISTERS): Update in macro.
33739
33740 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
33741
33742 PR rtl-optimization/68920
33743 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
33744 moves.
33745
33746 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
33747
33748 PR rtl-optimization/68990
33749 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
33750 pseudo instead of inheritance ones.
33751
33752 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
33753 Nick Clifton <nickc@redhat.com>
33754
33755 PR target/69129
33756 PR target/69012
33757 * config/mips/mips.c (mips_compute_frame_info): Initialise
33758 args_size and hard_frame_pointer_offset fields of the frame
33759 structure before calling mips_global_pointer.
33760
33761 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
33762
33763 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
33764 label reference.
33765 * configure: Regenerate.
33766
33767 2016-01-21 Richard Biener <rguenther@suse.de>
33768
33769 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
33770
33771 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
33772
33773 * config/s390/s390.c (s390_asm_declare_function_size): Add code
33774 to actually emit the .size directive.
33775
33776 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
33777 Jakub Jelinek <jakub@redhat.com>
33778
33779 PR target/69187
33780 PR target/65624
33781 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
33782 args array size by one to avoid buffer overflow.
33783
33784 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
33785
33786 * config/s390/s390.md (pool_section_start): Use switch_to_section
33787 to select proper read-only data section instead of hardcoding
33788 .rodata.
33789 (pool_section_end): Use switch_to_section to match the above.
33790
33791 2016-01-21 Richard Biener <rguenther@suse.de>
33792
33793 PR tree-optimization/69378
33794 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
33795 (set_ssa_val_to): Use it for dominance checks taking into
33796 account not executable edges.
33797
33798 2016-01-21 Jakub Jelinek <jakub@redhat.com>
33799
33800 PR c++/69355
33801 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
33802 for bitsize instead of GET_MODE_PRECISION (mode).
33803
33804 2016-01-20 Martin Sebor <msebor@redhat.com>
33805
33806 PR c/52291
33807 * extend.texi (__sync Builtins): Clarify the semantics of
33808 __sync_fetch_and_OP built-ins on pointers.
33809 (__atomic Builtins): Same.
33810
33811 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33812 Sebastian Pop <s.pop@samsung.com>
33813
33814 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
33815 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
33816 (is_valid_rename): Same.
33817 (translate_isl_ast_to_gimple::get_rename): Same.
33818 (translate_isl_ast_to_gimple::rename_all_uses): Same.
33819 (translate_isl_ast_to_gimple::rename_uses): Same.
33820 (get_new_name): Check for close_phi nodes.
33821 (copy_loop_phi_args): Use phi_node_kind.
33822 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
33823 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
33824
33825 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33826 Sebastian Pop <s.pop@samsung.com>
33827
33828 Revert commit r229783.
33829 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
33830 Remove use of parameter_rename_map.
33831 (copy_def): Remove.
33832 (copy_internal_parameters): Remove.
33833 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
33834 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
33835 (free_sese_info): Do not free parameter_rename_map.
33836 (set_rename): Do not use parameter_rename_map.
33837 (rename_uses): Update call to set_rename.
33838 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
33839 * sese.h (parameter_rename_map_t): Remove.
33840 (struct sese_info_t): Remove field parameter_rename_map.
33841
33842 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33843 Sebastian Pop <s.pop@samsung.com>
33844
33845 * graphite-isl-ast-to-gimple.c: Fix comment.
33846 * graphite-scop-detection.c (defined_in_loop_p): New.
33847 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
33848 names defined in loop.
33849
33850 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33851 Sebastian Pop <s.pop@samsung.com>
33852
33853 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
33854 Discard unstructured if-then-else regions.
33855
33856 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33857 Sebastian Pop <s.pop@samsung.com>
33858
33859 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
33860 (cleanup_loop_iter_dom): Remove.
33861 (build_loop_iteration_domains): Remove.
33862 (build_scop_context): Remove.
33863 (build_scop_iteration_domain): Remove.
33864 (add_loop_constraints): New.
33865 (build_iteration_domains): New.
33866 (build_poly_scop): Call build_iteration_domains.
33867
33868 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33869 Sebastian Pop <s.pop@samsung.com>
33870
33871 * graphite-scop-detection.c
33872 (scop_detection::harmful_loop_in_region): Free dom and loops.
33873 (scop_detection::loop_body_is_valid_scop): Free bbs.
33874
33875 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33876 Sebastian Pop <s.pop@samsung.com>
33877
33878 * graphite-scop-detection.c (record_loop_in_sese): New.
33879 (gather_bbs::before_dom_children): Call record_loop_in_sese.
33880 (build_scops): Remove call to build_sese_loop_nests.
33881 * sese.c (sese_record_loop): Remove.
33882 (build_sese_loop_nests): Remove.
33883 (new_sese_info): Remove region->loops.
33884 (free_sese_info): Same.
33885 * sese.h (sese_contains_loop): Same.
33886 (build_sese_loop_nests): Remove.
33887 (sese_contains_loop): Remove.
33888
33889 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33890 Sebastian Pop <s.pop@samsung.com>
33891
33892 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
33893 loop_is_valid_in_scop.
33894 (scop_detection::harmful_stmt_in_region): Renamed
33895 harmful_loop_in_region.
33896 Call loop_is_valid_in_scop.
33897
33898 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33899 Sebastian Pop <s.pop@samsung.com>
33900
33901 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
33902 isl_ast_node_mark.
33903
33904 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33905 Sebastian Pop <s.pop@samsung.com>
33906
33907 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
33908 * graphite.h (struct poly_bb): Remove field is_reduction.
33909 (PBB_IS_REDUCTION): Remove.
33910
33911 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33912 Sebastian Pop <s.pop@samsung.com>
33913
33914 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
33915 (add_pdr_constraints): Same.
33916 (scop_get_reads): Same.
33917 (scop_get_must_writes): Same.
33918 (scop_get_may_writes): Same.
33919 (scop_get_original_schedule): Same.
33920 (extend_schedule): Same.
33921 (apply_schedule_on_deps): Same.
33922 (carries_deps): Same.
33923 (compute_deps): Same.
33924 (scop_get_dependences): Same.
33925 * graphite-isl-ast-to-gimple.c
33926 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
33927 * graphite-optimize-isl.c (get_schedule_for_band): Same.
33928 (get_schedule_for_band_list): Same.
33929 (get_schedule_map): Same.
33930 (apply_schedule_map_to_scop): Same.
33931 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
33932 (build_loop_iteration_domains): Same.
33933 (add_condition_to_pbb): Same.
33934 (add_param_constraints): Same.
33935 (pdr_add_memory_accesses): Same.
33936 (pdr_add_data_dimensions): Same.
33937
33938 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
33939
33940 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
33941 requirements.
33942
33943 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
33944
33945 * common.opt (feliminate-dwarf2-dups): Replace references to
33946 "DWARF 2" with just "DWARF".
33947 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
33948 * doc/extend.texi: Likewise.
33949 * doc/cpp.texi: Likewise.
33950 * doc/invoke.texi: Likewise.
33951 (Option Summary): Add -gdwarf to list of Debugging Options.
33952 (Debugging Options): Document -gdwarf.
33953 * doc/contrib.texi: Spell "DWARF" like that.
33954
33955 2016-01-21 Jakub Jelinek <jakub@redhat.com>
33956
33957 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
33958 warning. Fix up formatting.
33959
33960 PR middle-end/67653
33961 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
33962 attempt to mark memory input operand addressable and
33963 call prepare_gimple_addressable in that case. Don't adjust
33964 input_location for diagnostics, use error_at instead.
33965
33966 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
33967
33968 * config/rs6000/ppc-auxv.h: New file.
33969 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
33970 (cpu_is): Likewise.
33971 (cpu_supports): Likewise.
33972 * config/rs6000/rs6000.c: include "ppc-auxv.h".
33973 (cpu_is_info): New variable.
33974 (cpu_supports_info): Likewise.
33975 (tcb_verification_symbol): Likewise.
33976 (cpu_builtin_p): Likewise.
33977 (cpu_expand_builtin): New function.
33978 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
33979 (rs6000_init_builtins): Likewise.
33980 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
33981 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
33982 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
33983 * configure: Regenerate.
33984 * config.in: Likewise.
33985 * doc/extend.texi (PowerPC Built-in Functions): Document
33986 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
33987
33988 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
33989
33990 PR target/68609
33991 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
33992 domain check.
33993 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
33994 for V4SFmode.
33995
33996 2016-01-20 Richard Henderson <rth@redhat.com>
33997
33998 PR bootstrap/69343
33999 PR bootstrap/69339
34000 PR tree-opt/68964
34001 Revert:
34002 * tree.c (tm_define_builtin): New.
34003 (find_tm_vector_type): New.
34004 (build_tm_vector_builtins): New.
34005 (build_common_builtin_nodes): Call it.
34006
34007 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
34008
34009 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
34010 (arm_fp_ok): Likewise.
34011 (arm_fp): Likewise.
34012 (arm_crypto): Likewise.
34013
34014 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
34015 Richard Biener <rguenther@suse.de>
34016
34017 PR tree-optimization/69328
34018 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
34019 vectors have same number of elements.
34020 (vectorizable_condition): Fix masked version recognition.
34021
34022 2016-01-20 Richard Biener <rguenther@suse.de>
34023
34024 PR tree-optimization/69345
34025 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
34026 (VN_INFO_PTR_INFO): Likewise.
34027 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
34028 info when it is equal between non-dominating SSA names.
34029 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
34030 Make sure to look at original SSA infos.
34031
34032 2016-01-20 Jeff Law <law@redhat.com>
34033
34034 PR target/25114
34035 * config/m68k/predicates.md (pow2_m1_operand): New predicate
34036 extracted from ...
34037 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
34038 (pc_or_label_operand): New predicate.
34039 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
34040 tests for small integers that are 2^n - 1.
34041
34042 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
34043
34044 * doc/invoke.texi (Options Summary): Add '.' after @xref.
34045
34046 2016-01-19 Jeff Law <law@redhat.com>
34047
34048 PR middle-end/69347
34049 * tree-ssa-threadbackwards.c
34050 (fsm_find_control_statement_thread_paths): Do not try to lookup
34051 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
34052
34053 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
34054
34055 * doc/lto.texi: Remove text that says only Gold has linker plugin
34056 support.
34057
34058 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
34059
34060 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
34061 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
34062 the DIE accordingly.
34063 (modified_type_die): Add REVERSE parameter and pass it recursively,
34064 as well as to base_type_die. Adjust presence check accordingly.
34065 (base_type_for_mode): Adjust call to modified_type_die.
34066 (add_type_attribute): Add REVERSE parameter and pass it to
34067 modified_type_die.
34068 (generic_parameter_die): Adjust call to add_type_attribute.
34069 (add_scalar_info): Likewise.
34070 (add_subscript_info): Likewise.
34071 (gen_array_type_die): Likewise.
34072 (gen_descr_array_type_die): Likewise.
34073 (gen_entry_point_die): Likewise.
34074 (gen_enumeration_type_die): Likewise.
34075 (gen_formal_parameter_die): Likewise.
34076 (gen_subprogram_die): Likewise.
34077 (gen_variable_die ): Likewise.
34078 (gen_const_die): Likewise.
34079 (gen_field_die): Likewise.
34080 (gen_pointer_type_die): Likewise.
34081 (gen_reference_type_die): Likewise.
34082 (gen_ptr_to_mbr_type_die): Likewise.
34083 (gen_inheritance_die): Likewise.
34084 (gen_subroutine_type_die): Likewise.
34085 (gen_typedef_die): Likewise.
34086 (force_type_die): Adjust call to modified_type_die.
34087
34088 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
34089
34090 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
34091 flow throughout the file. Fix broken link to Objective-C 2.0
34092 documentation.
34093 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
34094 errors.
34095
34096 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
34097
34098 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
34099
34100 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
34101
34102 PR ipa/66223
34103 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
34104 (maybe_record_node): Record cxa_pure_virtual as the only possible
34105 target if there are not ohter candidates.
34106 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
34107
34108 2016-01-19 Richard Biener <rguenther@suse.de>
34109
34110 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
34111 (get_memory_order): Likewise.
34112
34113 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
34114
34115 * tree-vect-stmts.c (vectorizable_store): Check
34116 rhs vectype.
34117
34118 2016-01-19 David Malcolm <dmalcolm@redhat.com>
34119
34120 PR jit/68446
34121 * gcc.c (driver::decode_argv): Add call to
34122 init_opts_obstack before init_options_struct.
34123 * opts.c (init_opts_obstack): Remove idempotency.
34124 (init_options_struct): Replace call to init_opts_obstack
34125 with a gcc_assert to verify that it has already been called.
34126 * toplev.c (toplev::main): Add call to init_opts_obstack before
34127 calls to init_options_struct.
34128 (toplev::finalize): Move cleanup of opts_obstack next to
34129 cleanup of save_decoded_options, clearing the latter, and
34130 save_decoded_options_count.
34131
34132 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34133
34134 PR target/69135
34135 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
34136 attribute to unconditional. Remove %? from output template.
34137
34138 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
34139 Jiong Wang <jiong.wang@arm.com>
34140
34141 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
34142 generated from different expand order.
34143
34144 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
34145
34146 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
34147 Add support for CCMP costing.
34148
34149 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
34150
34151 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
34152 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
34153 (fccmpe<mode>): Likewise.
34154 (fcmp): Rename to fcmp and globalize pattern.
34155 (fcmpe): Likewise.
34156 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
34157 (aarch64_gen_ccmp_next): Add FP support.
34158
34159 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
34160
34161 * target.def (gen_ccmp_first): Update documentation.
34162 (gen_ccmp_next): Likewise.
34163 * doc/tm.texi (gen_ccmp_first): Update documentation.
34164 (gen_ccmp_next): Likewise.
34165 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
34166 expand_ccmp_expr_1. Improve comments.
34167 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
34168 (ccmp_ior<mode>): Remove pattern.
34169 (cmp<mode>): Remove expand.
34170 (cmp): Globalize pattern.
34171 (cstorecc4): Use cc_register.
34172 (mov<mode>cc): Remove ccmp_cc_register check.
34173 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
34174 Simplify after removal of CC_DNE/* modes.
34175 (aarch64_ccmp_mode_to_code): Remove.
34176 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
34177 In 'k' case use integer as condition.
34178 (aarch64_nzcv_codes): Remove inverted cases.
34179 (aarch64_code_to_ccmode): Remove.
34180 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
34181 comparison with CC register to be used in folowing CCMP/branch/CSEL.
34182 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
34183 pattern. Return the comparison with CC register. Invert conditions
34184 when bitcode is OR.
34185 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
34186 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
34187
34188 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
34189
34190 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
34191 instrumented_version.
34192
34193 2016-01-19 Richard Biener <rguenther@suse.de>
34194
34195 PR tree-optimization/69336
34196 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
34197 handled components with get_ref_base_and_extent.
34198 (equal_mem_array_ref_p): Adjust.
34199
34200 2016-01-19 Jakub Jelinek <jakub@redhat.com>
34201
34202 PR debug/65779
34203 * shrink-wrap.c: Include valtrack.h.
34204 (move_insn_for_shrink_wrap): Add DEBUG argument. If
34205 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
34206 in between insn and where it will be moved to. Call
34207 dead_debug_insert_temp.
34208 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
34209 first and dead_debug_local_finish at the end.
34210 For uses and defs bitmap, handle all regs in between REGNO and
34211 END_REGNO, not just the first one.
34212
34213 2016-01-19 Richard Biener <rguenther@suse.de>
34214
34215 PR tree-optimization/69352
34216 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
34217 (equal_mem_array_ref_p): Constrain size and max size properly.
34218 Compare the reverse flag.
34219
34220 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
34221
34222 * ira.c (ira): Update regstat data if we deleted insns.
34223
34224 2016-01-19 Jakub Jelinek <jakub@redhat.com>
34225
34226 PR rtl-optimization/68955
34227 PR rtl-optimization/64557
34228 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
34229 here. Fix up formatting.
34230 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
34231
34232 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
34233
34234 PR lto/69133
34235 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
34236 assume that the node has body.
34237 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
34238 check.
34239
34240 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
34241
34242 * lto-streamer-out.c (lto_output): Do not stream instrumentation
34243 thunks.
34244
34245 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
34246
34247 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
34248 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
34249
34250 2016-01-19 Martin Jambor <mjambor@suse.cz>
34251 Martin Liska <mliska@suse.cz>
34252 Michael Matz <matz@suse.de>
34253
34254 * Makefile.in (OBJS): Add new source files.
34255 (GTFILES): Add hsa.c.
34256 * common.opt (disable_hsa): New variable.
34257 (-Whsa): New warning.
34258 * config.in (ENABLE_HSA): New.
34259 * configure.ac: Treat hsa differently from other accelerators.
34260 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
34261 $enable_offloading.
34262 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
34263 * doc/install.texi (Configuration): Document --with-hsa-runtime,
34264 --with-hsa-runtime-include, --with-hsa-runtime-lib and
34265 --with-hsa-kmt-lib.
34266 * doc/invoke.texi (-Whsa): Document.
34267 (hsa-gen-debug-stores): Likewise.
34268 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
34269 to invoke offload compiler for hsa acclerator.
34270 * opts.c (common_handle_option): Determine whether HSA offloading
34271 should be performed.
34272 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
34273 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
34274 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
34275 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
34276 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
34277 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
34278 GF_OMP_FOR_KIND_GRID_LOOP.
34279 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
34280 (pp_gimple_stmt_1): Likewise.
34281 * gimple-walk.c (walk_gimple_stmt): Likewise.
34282 * gimple.c (gimple_build_omp_grid_body): New function.
34283 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
34284 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
34285 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
34286 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
34287 GF_OMP_TEAMS_GRID_PHONY.
34288 (gimple_statement_omp_single_layout): Updated comments.
34289 (gimple_build_omp_grid_body): New function.
34290 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
34291 (gimple_omp_for_grid_phony): New function.
34292 (gimple_omp_for_set_grid_phony): Likewise.
34293 (gimple_omp_parallel_grid_phony): Likewise.
34294 (gimple_omp_parallel_set_grid_phony): Likewise.
34295 (gimple_omp_teams_grid_phony): Likewise.
34296 (gimple_omp_teams_set_grid_phony): Likewise.
34297 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
34298 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
34299 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
34300 (BUILT_IN_GOMP_TARGET): Updated type.
34301 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
34302 (adjust_for_condition): New function.
34303 (get_omp_for_step_from_incr): Likewise.
34304 (extract_omp_for_data): Moved parts to adjust_for_condition and
34305 get_omp_for_step_from_incr.
34306 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
34307 (fixup_child_record_type): Bail out if receiver_decl is NULL.
34308 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
34309 (scan_omp_parallel): Do not create child functions for phony
34310 constructs.
34311 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
34312 (scan_omp_1_op): Checking assert we are not remapping to
34313 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
34314 (parallel_needs_hsa_kernel_p): New function.
34315 (expand_parallel_call): Register apprpriate parallel child
34316 functions as HSA kernels.
34317 (grid_launch_attributes_trees): New type.
34318 (grid_attr_trees): New variable.
34319 (grid_create_kernel_launch_attr_types): New function.
34320 (grid_insert_store_range_dim): Likewise.
34321 (grid_get_kernel_launch_attributes): Likewise.
34322 (get_target_argument_identifier_1): Likewise.
34323 (get_target_argument_identifier): Likewise.
34324 (get_target_argument_value): Likewise.
34325 (push_target_argument_according_to_value): Likewise.
34326 (get_target_arguments): Likewise.
34327 (expand_omp_target): Call get_target_arguments instead of looking
34328 up for teams and thread limit.
34329 (grid_expand_omp_for_loop): New function.
34330 (grid_arg_decl_map): New type.
34331 (grid_remap_kernel_arg_accesses): New function.
34332 (grid_expand_target_kernel_body): New function.
34333 (expand_omp): Call it.
34334 (lower_omp_for): Do not emit phony constructs.
34335 (lower_omp_taskreg): Do not emit phony constructs but create for them
34336 a temporary variable receiver_decl.
34337 (lower_omp_taskreg): Do not emit phony constructs.
34338 (lower_omp_teams): Likewise.
34339 (lower_omp_grid_body): New function.
34340 (lower_omp_1): Call it.
34341 (grid_reg_assignment_to_local_var_p): New function.
34342 (grid_seq_only_contains_local_assignments): Likewise.
34343 (grid_find_single_omp_among_assignments_1): Likewise.
34344 (grid_find_single_omp_among_assignments): Likewise.
34345 (grid_find_ungridifiable_statement): Likewise.
34346 (grid_target_follows_gridifiable_pattern): Likewise.
34347 (grid_remap_prebody_decls): Likewise.
34348 (grid_copy_leading_local_assignments): Likewise.
34349 (grid_process_kernel_body_copy): Likewise.
34350 (grid_attempt_target_gridification): Likewise.
34351 (grid_gridify_all_targets_stmt): Likewise.
34352 (grid_gridify_all_targets): Likewise.
34353 (execute_lower_omp): Call grid_gridify_all_targets.
34354 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
34355 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
34356 (tree_omp_clause): Added union field dimension.
34357 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
34358 * tree.c (omp_clause_num_ops): Added number of arguments of
34359 OMP_CLAUSE__GRIDDIM_.
34360 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
34361 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
34362 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
34363 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
34364 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
34365 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
34366 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
34367 * tree-pass.h (make_pass_gen_hsail): Declare.
34368 (make_pass_ipa_hsa): Likewise.
34369 * ipa-hsa.c: New file.
34370 * lto-section-in.c (lto_section_name): Add hsa section name.
34371 * lto-streamer.h (lto_section_type): Add hsa section.
34372 * timevar.def (TV_IPA_HSA): New.
34373 * hsa-brig-format.h: New file.
34374 * hsa-brig.c: New file.
34375 * hsa-dump.c: Likewise.
34376 * hsa-gen.c: Likewise.
34377 * hsa.c: Likewise.
34378 * hsa.h: Likewise.
34379 * toplev.c (compile_file): Call hsa_output_brig.
34380 * hsa-regalloc.c: New file.
34381
34382 2016-01-18 Jeff Law <law@redhat.com>
34383
34384 PR tree-optimization/69320
34385 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
34386 ranged object, do nothing if the RHS constant is not [0..1].
34387 (optimize_stmt): Comparing a boolean ranged object against a
34388 constant outside [0..1] results in a compile-time constant.
34389
34390 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
34391 test.
34392
34393 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
34394
34395 * doc/invoke.texi (Invoking GCC): Add new section to menu.
34396 (Option Summary): Update to reflect new section and moved options.
34397 (C++ Dialect Options): Move -fstats to new section.
34398 (Debugging Options): Move all dump, statistics, and other GCC
34399 developer options to new section. Rewrite section introduction
34400 and re-order remaining options to put the more basic ones first.
34401 (Optimization Options): Move -fira-verbose and -flto-report* to
34402 new section.
34403 (Developer Options): New section incorporating moved options.
34404 * doc/cppopts.texi (-dM): Update cross-reference.
34405
34406 2016-01-18 Richard Henderson <rth@redhat.com>
34407
34408 PR target/69176
34409 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
34410 operands to pseudo only if CSE is expected. Split long immediate
34411 operands only after reload, and for the stack pointer.
34412 (*add<GPI>3_pluslong): Remove.
34413 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
34414 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
34415 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
34416 (*add<GPI>3 peepholes): New.
34417 (*add<GPI>3 splitters): New.
34418 * config/aarch64/constraints.md (Upl): New.
34419 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
34420
34421 2016-01-18 Richard Biener <rguenther@suse.de>
34422
34423 PR tree-optimization/69297
34424 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
34425 stmt at most once.
34426 (vect_bb_vectorization_profitable_p): Clear visited flag again.
34427
34428 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
34429
34430 PR middle-end/68542
34431 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
34432 of mixind vector and scalar types.
34433 (fold_relational_const): Add handling of vector
34434 comparison with boolean result.
34435 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
34436 comparison of vector operands with boolean result for EQ/NE only.
34437 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
34438 (verify_gimple_cond): Likewise.
34439 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
34440 valid type of VAL.
34441
34442 2016-01-18 Joseph Myers <joseph@codesourcery.com>
34443
34444 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
34445 !TARGET_OCTEON.
34446
34447 2016-01-18 Richard Biener <rguenther@suse.de>
34448
34449 PR middle-end/69308
34450 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
34451
34452 2016-01-18 Tom de Vries <tom@codesourcery.com>
34453
34454 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
34455
34456 2016-01-18 Tom de Vries <tom@codesourcery.com>
34457
34458 * omp-low.c (set_oacc_fn_attrib): Make extern.
34459 * omp-low.h (set_oacc_fn_attrib): Declare.
34460 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
34461 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
34462 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
34463 Add and handle function parameter oacc_kernels_p.
34464 (find_reduc_addr, get_omp_data_i_param): New function.
34465 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
34466 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
34467 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
34468 Calculate dominance info. Skip loops that are not in a kernels region
34469 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
34470 (pass_parallelize_loops::execute): Call parallelize_loops with
34471 oacc_kernels_p argument.
34472 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
34473 New member function.
34474 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
34475 * passes.def: Add argument to pass_parallelize_loops instantation.
34476
34477 2016-01-18 Tom de Vries <tom@codesourcery.com>
34478
34479 * tree-parloops.c (pass_parallelize_loops::execute): Allow
34480 pass_parallelize_loops to be run outside the loop pipeline.
34481
34482 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
34483
34484 * tree-scalar-evolution.c (follow_copies_to_constant): New.
34485 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
34486
34487 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
34488
34489 PR target/63679
34490 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
34491 using get_ref_base_and_extent.
34492 (equal_mem_array_ref_p): New.
34493 (hashable_expr_equal_p): Add call to previous.
34494
34495 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
34496
34497 PR target/63679
34498 * tree-sra.c (disqualified_constants, constant_decl_p): New.
34499 (sra_initialize): Allocate disqualified_constants.
34500 (sra_deinitialize): Free disqualified_constants.
34501 (disqualify_candidate): Update disqualified_constants when appropriate.
34502 (create_access): Scan for constant-pool entries as we go along.
34503 (scalarizable_type_p): Add check against type_contains_placeholder_p.
34504 (maybe_add_sra_candidate): Allow constant-pool entries.
34505 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
34506 (initialize_constant_pool_replacements): New.
34507 (sra_modify_assign): Avoid mangling assignments created by previous,
34508 and don't generate writes into constant pool.
34509 (sra_modify_function_body): Call initialize_constant_pool_replacements.
34510
34511 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
34512
34513 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
34514 andnot instruction.
34515 (scalar_chain::convert_op): Likewise.
34516 * config/i386/i386.md (*andndi3_doubleword): New.
34517
34518 2016-01-18 Richard Biener <rguenther@suse.de>
34519
34520 PR tree-optimization/69170
34521 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
34522 building a vector from scalar results of a pattern stmt.
34523
34524 2016-01-18 Jakub Jelinek <jakub@redhat.com>
34525
34526 * haifa-sched.c (autopref_multipass_init): Work around
34527 -Wmaybe-uninitialized warning.
34528
34529 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
34530
34531 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
34532 against the constant 0.
34533
34534 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34535
34536 PR tree-optimization/68799
34537 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
34538 look up phi candidates in the statement-candidate map.
34539 (phi_add_costs): Likewise.
34540 (record_phi_increments): Likewise.
34541 (phi_incr_cost): Likewise.
34542 (ncd_with_phi): Likewise.
34543 (all_phi_incrs_profitable): Likewise.
34544
34545 2016-01-17 Jakub Jelinek <jakub@redhat.com>
34546
34547 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
34548 -Wmaybe-uninitialized warning.
34549
34550 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
34551
34552 * doc/invoke.texi (Invoking GCC): Add new section to menu.
34553 (Option Summary): Update to reflect new section and moved options.
34554 (C++ Dialect Options): Move -fvtable-verify and related options.
34555 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
34556 and profiling-related options.
34557 (Optimization Options): Move profile generation options and
34558 -fstack-protector and related options.
34559 (Instrumentation Options): New section incorporating moved options.
34560 (Code Generation Options): Move -finstrument-functions and
34561 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
34562
34563 2016-01-16 Tom de Vries <tom@codesourcery.com>
34564
34565 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
34566
34567 2016-01-16 Tom de Vries <tom@codesourcery.com>
34568
34569 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
34570
34571 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
34572
34573 * hash-table.h (hash_table::empty): Turn into an inline wrapper
34574 that checks whether the table is already empty. Rename the
34575 original implementation to...
34576 (hash_table::empty_slot): ...this new private function.
34577
34578 2016-01-15 David Malcolm <dmalcolm@redhat.com>
34579
34580 PR diagnostic/68899
34581 * diagnostic-show-locus.c (layout::print_source_line): Move x
34582 offset of line until after call to
34583 get_line_width_without_trailing_whitespace.
34584
34585 2016-01-15 Jeff Law <law@redhat.com>
34586
34587 PR tree-optimization/69270
34588 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
34589 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
34590 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
34591 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
34592 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
34593 ssa_name_has_boolean_range and constant_boolean_node.
34594
34595 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
34596
34597 PR rtl-optimization/69030
34598 * lra-spills.c (remove_pseudos): Check nrefs and make the function
34599 returning bool.
34600 (spill_pseudos): Delete debug insn for dead pseudo.
34601 (lra_spill): Initiate spill_hard_reg and slots memory separately.
34602
34603 2016-01-15 Jiong Wang <jiong.wang@arm.com>
34604
34605 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
34606 New.
34607 (TYPES_UNOPUS): Likewise.
34608 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
34609 builtin type, from UNOP to UNOPUS.
34610 (lbtruncuv4sf): Likewise.
34611 (lbtruncuv2df): Likewise.
34612 (lrounduv2sf): Likewise.
34613 (lrounduv4sf): Likewise.
34614 (lrounduv2df): Likewise.
34615 (lroundusf): Likewise.
34616 (lroundusf): Likewise.
34617 (lceiluv2sf): Likewise.
34618 (lceiluv4sf): Likewise.
34619 (lceiluv2df): Likewise.
34620 (lceilusf): Likewise.
34621 (lceiludf): Likewise.
34622 (lflooruv2sf): Likewise.
34623 (lflooruv4sf): Likewise.
34624 (lflooruv2df): Likewise.
34625 (lfloorusf): Likewise.
34626 (lfloorudf): Likewise.
34627 (lfrintnuv2sf): Likewise.
34628 (lfrintnuv4sf): Likewise.
34629 (lfrintnuv2df): Likewise.
34630 (lfrintnusf): Likewise.
34631 (lfrintnudf): Likewise.
34632 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
34633 conversion.
34634 (vcvtq_u32_f32): Likewise.
34635 (vcvtq_u64_f64): Likewise.
34636 (vcvta_u32_f32): Likewise.
34637 (vcvtaq_u32_f32): Likewise.
34638 (vcvtaq_u64_f64): Likewise.
34639 (vcvtm_u32_f32): Likewise.
34640 (vcvtmq_u32_f32): Likewise.
34641 (vcvtmq_u64_f64): Likewise.
34642 (vcvtn_u32_f32): Likwise.
34643 (vcvtnq_u32_f32): Likewise.
34644 (vcvtnq_u64_f64): Likewise.
34645 (vcvtp_u32_f32): Likewise.
34646 (vcvtpq_u32_f32): Likewise.
34647 (vcvtpq_u64_f64): Likewise.
34648 (vcvtmd_u64_f64): Likewise.
34649 (vcvtms_u32_f32): Likewise.
34650 (vcvtad_u64_f64): Likewise.
34651 (vcvtas_u32_f32): Likewise.
34652 (vcvtnd_u64_f64): Likewise.
34653 (vcvtns_u32_f32): Likewise.
34654 (vcvtpd_u64_f64): Likewise.
34655 (vcvtps_u32_f32): Likewise.
34656
34657 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34658
34659 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
34660 CSEL of zero_extended registers.
34661
34662 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34663
34664 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
34665 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
34666
34667 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34668
34669 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
34670 false when argument string is not found in the attributes table
34671 at all.
34672
34673 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
34674
34675 PR target/68609
34676 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
34677 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
34678 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
34679 precision estimate.
34680
34681 2016-01-15 Richard Biener <rguenther@suse.de>
34682
34683 PR tree-optimization/66856
34684 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
34685 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
34686 (vect_create_new_slp_node): Increment stmt reference count.
34687 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
34688 an SLP tree before swapping operands.
34689 (vect_build_slp_tree): Likewise.
34690 (destroy_bb_vec_info): Free stmt info after SLP instances.
34691 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
34692 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
34693 (STMT_VINFO_NUM_SLP_USES): New macro.
34694
34695 2016-01-15 Richard Biener <rguenther@suse.de>
34696
34697 PR debug/69137
34698 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
34699 (add_linkage_name): ... here.
34700 (gen_typedef_die): Use add_linkage_name_raw instead of
34701 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
34702 if necessary.
34703
34704 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
34705
34706 * gimplify.c (oacc_default_clause): Decode reference and pointer
34707 types for both kernels and parallel regions.
34708
34709 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
34710
34711 PR middle-end/69246
34712 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
34713
34714 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
34715
34716 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
34717 (convert_scalars_to_vector): Likewise.
34718
34719 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
34720
34721 * doc/extend.texi (Type Traits): Fix grammar.
34722
34723 2016-01-15 Martin Jambor <mjambor@suse.cz>
34724
34725 * tree-inline.c (remap_decl): Use existing dclarations if
34726 remapping a type and prevent_decl_creation_for_types.
34727 (replace_locals_stmt): Do an initial remapping of non-VLA typed
34728 decls first. Do real remapping with
34729 prevent_decl_creation_for_types set.
34730 * tree-inline.h (copy_body_data): New field
34731 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
34732 padding.
34733
34734 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
34735
34736 * config/s390/s390.opt (mmvcle): More verbose help text.
34737
34738 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
34739
34740 * config/s390/s390.opt: Add period to -mzvector option text.
34741
34742 2016-01-15 Richard Biener <rguenther@suse.de>
34743
34744 PR tree-optimization/68961
34745 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
34746 of invariants in stores again.
34747
34748 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
34749
34750 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
34751
34752 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
34753
34754 * config/i386/i386.c (ix86_expand_branch): Don't split
34755 DI mode xor instruction to SI mode.
34756
34757 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
34758
34759 PR ipa/68148
34760 * ipa-icf.c (sem_function::merge): Virtual functions may become
34761 reachable even if they address is not taken and there are no
34762 idrect calls.
34763
34764 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
34765
34766 * lto-streamer-out.c (subtract_estimated_size): New function.
34767 (get_symbol_initial_value): Use it.
34768
34769 2016-01-15 Christian Bruel <christian.bruel@st.com>
34770
34771 PR target/65837
34772 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
34773 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
34774 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
34775 use add_builtin_function_ext_scope instead of add_builtin_function.
34776 (neon_set_p, neon_crypto_set_p): Remove.
34777 (arm_init_builtins): Always call arm_init_neon_builtins and
34778 arm_init_crypto_builtins.
34779 (arm_expand_builtin): Check that builtins are allowed for the arch.
34780 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
34781 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
34782 arm_init_neon_builtins call.
34783
34784 2016-01-15 Richard Biener <rguenther@suse.de>
34785
34786 PR tree-optimization/69117
34787 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
34788 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
34789 of the leader conservatively.
34790 (free_scc_vn): Restore original SSA name infos.
34791
34792 2016-01-14 Jeff Law <law@redhat.com>
34793
34794 PR tree-optimization/69270
34795 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
34796 single bit of precision, verify it's also unsigned.
34797 (record_edge_info): Use constant_boolean_node rather than fold_convert
34798 to convert boolean_true/boolean_false to the right type.
34799
34800 2016-01-14 Richard Henderson <rth@redhat.com>
34801
34802 PR rtl-opt/69014
34803 * loop-doloop.c (record_reg_sets): New.
34804 (doloop_optimize): Reject the transform if the sequence
34805 clobbers registers live at the end of the loop block.
34806 (doloop_optimize_loops): Enable df_live if needed.
34807
34808 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
34809
34810 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
34811 * config/rs6000/rs6000.c: Likewise.
34812 * config/rs6000/rs6000.h: Likewise.
34813 * config/rs6000/rs6000.md: Likewise.
34814 * doc/extend.texi: Likewsie.
34815
34816 2016-01-14 Jeff Law <law@redhat.com>
34817
34818 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
34819 typo.
34820
34821 2016-01-14 Richard Henderson <rth@redhat.com>
34822
34823 PR c/69272
34824 PR tree-opt/68964
34825 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
34826 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
34827 instead of builtin_decl_declared_p to test for declaration.
34828
34829 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
34830
34831 * doc/loop.texi (Loop Analysis and Representation): Document
34832 loop_depth function.
34833
34834 2016-01-14 Tom de Vries <tom@codesourcery.com>
34835
34836 PR tree-optimization/68773
34837 * omp-low.c (expand_omp_target): Don't set force_output.
34838 * varpool.c (varpool_node::get_create): Same.
34839 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
34840 offload_funcs with force_output.
34841
34842 2016-01-14 Jakub Jelinek <jakub@redhat.com>
34843
34844 PR debug/69244
34845 * lra-eliminations.c (move_plus_up): Don't change anything if either
34846 the outer or inner subreg mode is not MODE_INT.
34847 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
34848 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
34849
34850 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
34851
34852 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
34853 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
34854 reduc_uplus_@var{m}): Remove.
34855 * expr.c (expand_expr_real_2): Remove expansion path for
34856 reduc_[us](min|max|plus) optabs.
34857 * optabs-tree.c (scalar_reduc_to_vector): Remove.
34858 * optabs-tree.h (scalar_reduc_to_vector): Remove.
34859 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
34860 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
34861 * tree-vect-loop.c (vectorizable_reduction): Remove test for
34862 reduc_[us](min|max|plus) optabs.
34863
34864 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
34865
34866 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
34867 (reduc_plus_scal_v2sf): New.
34868 (reduc_smax_v2sf): Rename to...
34869 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
34870 (reduc_smin_v2sf): Rename to...
34871 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
34872
34873 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
34874
34875 * alias.c (compare_base_symbol_refs): New function.
34876 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
34877 it.
34878
34879 2016-01-14 Jakub Jelinek <jakub@redhat.com>
34880
34881 PR middle-end/68146
34882 PR tree-optimization/69155
34883 * tree-complex.c: Include cfganal.h.
34884 (phis_to_revisit): New variable.
34885 (extract_component): Add phiarg_p argument. Assert that returned
34886 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
34887 (update_phi_components): Partly rewrite to use loop over real/imag
34888 components instead of code duplication. If extract_component returns
34889 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
34890 create_tmp_reg into the PHI node instead, and mention the phi triplet
34891 in phis_to_revisit.
34892 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
34893 in phis_to_revisit at the end.
34894
34895 2016-01-14 Richard Biener <rguenther@suse.de>
34896
34897 PR tree-optimization/68060
34898 * tree-vect-loop.c (vect_is_simple_reduction): Check the
34899 outer loop reduction is only used in the inner loop before
34900 detecting a double reduction.
34901
34902 2016-01-14 Jakub Jelinek <jakub@redhat.com>
34903
34904 PR target/68269
34905 * combine.c (expand_field_assignment): Punt if compute_mode is
34906 unsupported scalar mode.
34907
34908 2016-01-14 Richard Biener <rguenther@suse.de>
34909
34910 PR tree-optimization/66856
34911 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
34912 SLP node only if it built successfully.
34913 (vect_analyze_slp_instance): Adjust.
34914
34915 2016-01-14 Jeff Law <law@redhat.com>
34916
34917 PR tree-optimization/69270
34918 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
34919 (record_edge_info): Use it. Convert boolean_{true,false}_node
34920 to the type of op0.
34921
34922 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
34923
34924 PR ipa/66487
34925 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
34926 use block_ultimate_origin
34927 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
34928
34929 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
34930
34931 * doc/invoke.texi (Submodel Options): Rename section to
34932 "Machine-Dependent Options" to better reflect its content.
34933 Rewrite introductory text to remove archaic CPU names.
34934 Update references.
34935
34936 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
34937
34938 * doc/invoke.texi (Code Gen Options): Move section up in file,
34939 before target-specific options. Update menu and option summary
34940 to reflect the new section ordering.
34941
34942 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
34943
34944 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
34945 (C++ Dialect Options): Add cross-reference to -std option.
34946 * doc/standards.texi (C++ Language): Document C++14 support.
34947
34948 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
34949
34950 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
34951 for pack/unpack functions for __ibm128.
34952 (PACK_IF): Likewise.
34953 (UNPACK_IF): Likewise.
34954
34955 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
34956 support for __ibm128 pack/unpack functions.
34957 (rs6000_invalid_builtin): Likewise.
34958 (rs6000_init_builtins): Likewise.
34959 (rs6000_opt_masks): Likewise.
34960
34961 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
34962 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
34963 functions
34964 (RS6000_BTM_COMMON): Likewise.
34965
34966 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
34967 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
34968 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
34969 128-bit floating point. Add support for the double values to be
34970 in Altivec registers for TF/IF packing and unpacking, but restrict
34971 TD packing sub-fields to be FPR registers. Don't allow overlapped
34972 register support for packing. Allow pack inputs to be memory
34973 locations. Don't build generator functions for unpack<mode>_dm
34974 and unpack<mode>_nodm.
34975 (unpack<mode>_dm): Likewise.
34976 (unpack<mode>_nodm): Likewise.
34977 (pack<mode>): Likewise.
34978
34979 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
34980 built-in functions to pack/unpack explicit __ibm128 values.
34981 (__builtin_unpack_ibm128): Likewise.
34982
34983 * doc/extend.texi (PowerPC Built-in Functions): Document
34984 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
34985
34986 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
34987
34988 PR c/66208
34989 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
34990 Add new arg loc and pass it down as context.
34991 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
34992 to the location to use for the warning.
34993 (check_function_arguments): New arg loc. All callers changed. Pass
34994 it to check_function_nonnull.
34995 * c-common.h (check_function_arguments): Adjust declaration.
34996
34997 2016-01-13 Jakub Jelinek <jakub@redhat.com>
34998
34999 PR tree-optimization/69156
35000 * gimple.c (validate_type): Removed.
35001 (gimple_builtin_call_types_compatible_p): Use
35002 useless_type_conversion_p instead of validate_type.
35003 * value-prof.c (gimple_stringop_fixed_value): Fold
35004 icall_size to correct type.
35005
35006 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
35007
35008 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
35009 effects.
35010
35011 2016-01-13 Richard Henderson <rth@redhat.com>
35012
35013 PR tree-opt/68964
35014 * target.def (builtin_tm_load, builtin_tm_store): Remove.
35015 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
35016 (ix86_builtin_tm_store): Remove.
35017 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
35018 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
35019 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
35020 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
35021 * doc/tm.texi: Rebuild.
35022
35023 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
35024 (BUILT_IN_TM_MEMCPY_RTWN): New.
35025 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
35026 fallback from vector to integer helpers.
35027 (build_tm_load): Handle vector types directly, instead of
35028 via target hook.
35029 (build_tm_store): Likewise.
35030 (expand_assign_tm): Prepare for register types not handled by
35031 the above. Copy them to memory and use memcpy.
35032 * tree.c (tm_define_builtin): New.
35033 (find_tm_vector_type): New.
35034 (build_tm_vector_builtins): New.
35035 (build_common_builtin_nodes): Call it.
35036
35037 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
35038
35039 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
35040 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
35041
35042 2016-01-13 Tom de Vries <tom@codesourcery.com>
35043
35044 PR tree-optimization/69169
35045 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
35046 handled_struct_type param.
35047 (create_variable_info_for, intra_create_variable_infos): Call
35048 create_variable_info_for_1 with extra arg.
35049
35050 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
35051
35052 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
35053 and "armv8.1-a+crc" entries.
35054
35055 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
35056
35057 PR target/69228
35058 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
35059 Change first operand predicate from register_or_constm1_operand
35060 to register_operand.
35061 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
35062 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
35063 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
35064 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
35065 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
35066 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
35067 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
35068 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
35069 comparison with constm1_rtx from vec_prefetch_gen part.
35070
35071 2016-01-13 Richard Biener <rguenther@suse.de>
35072
35073 PR tree-optimization/69013
35074 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
35075 Exchange assert for a test.
35076
35077 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
35078
35079 PR target/69247
35080 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
35081
35082 2016-01-13 Richard Biener <rguenther@suse.de>
35083
35084 PR tree-optimization/69242
35085 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
35086 assert with a check.
35087
35088 2016-01-13 Richard Biener <rguenther@suse.de>
35089
35090 PR tree-optimization/69186
35091 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
35092 Properly guard vect_update_misalignment_for_peel call.
35093
35094 2016-01-12 Jeff Law <law@redhat.com>
35095
35096 PR tree-optimization/pr67755
35097 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
35098 "need_profile_correction".
35099 (thread_block_1): Initialize new field to false by default. If we
35100 have multiple thread paths through a common joiner to different
35101 final targets, then set new field to true.
35102 (compute_path_counts): Only do count adjustment when it's really
35103 needed.
35104
35105 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
35106
35107 * doc/invoke.texi (Spec Files): Move section down in file, past
35108 all command-line option descriptions.
35109
35110 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35111
35112 PR middle-end/54809
35113 * doc/gty.texi: Remove documentation of mark_hook.
35114 * gengtype.c (struct write_types_data): Remove code to support
35115 mark_hook attribute.
35116 (walk_type): Likewise.
35117 (write_func_for_structure): Likewise.
35118
35119 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
35120
35121 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
35122 Directory Options, and -specs= to Overall Options.
35123 (Overall Options): Adjust similarly. Reorder to group related
35124 options together. Make -specs= cross-reference the spec file details.
35125 (Directory Options): Adjust similarly.
35126
35127 2016-01-12 Jeff Law <law@redhat.com>
35128
35129 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
35130
35131 2016-01-12 Olivier Hainque <hainque@adacore.com>
35132
35133 * gcc.c (spec_undefvar_allowed): New global.
35134 (process_command): Set to true when running for --version or --help,
35135 alone or together.
35136 (getenv_spec_function): When the variable is not defined, use the
35137 variable name as the variable value if we're allowed not to issue
35138 a fatal error.
35139
35140 2016-01-12 Bin Cheng <bin.cheng@arm.com>
35141
35142 PR tree-optimization/68911
35143 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
35144 information computed for expression "init + nit * step".
35145
35146 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
35147
35148 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
35149 about name of GCC executable. Remove deleted node from menu.
35150 (Directory Options) <-B>: Remove cross-reference to deleted node.
35151 (Target Options): Delete section.
35152
35153 2016-01-12 Christian Bruel <christian.bruel@st.com>
35154
35155 PR target/69180
35156 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
35157 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
35158
35159 2016-01-12 Jakub Jelinek <jakub@redhat.com>
35160
35161 PR target/69198
35162 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
35163 aligned_mem is properly set for AVX512-VL floating point masked
35164 stores.
35165
35166 PR target/69175
35167 * ifcvt.c (cond_exec_process_if_block): When removing the last
35168 insn from then_bb, remove also any possible barriers that follow it.
35169
35170 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
35171
35172 PR target/68456
35173 PR target/69226
35174 * config/i386/iamcu.h (SIZE_TYPE): New macro.
35175 (PTRDIFF_TYPE): Likewise.
35176 (WCHAR_TYPE): Likewise.
35177 (WCHAR_TYPE_SIZE): Likewise.
35178 (STDINT_LONG32): Likewise.
35179
35180 2016-01-12 Richard Biener <rguenther@suse.de>
35181
35182 PR tree-optimization/69053
35183 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
35184 convert initial value for cond reductions.
35185
35186 2016-01-12 Richard Biener <rguenther@suse.de>
35187
35188 PR tree-optimization/69007
35189 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
35190 widen_sum after dot_prod and sad.
35191
35192 2016-01-12 Richard Biener <rguenther@suse.de>
35193
35194 PR tree-optimization/69168
35195 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
35196 pattern stmt SLP type.
35197 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
35198 end up unused so cope with that case.
35199
35200 2016-01-12 Richard Biener <rguenther@suse.de>
35201
35202 PR tree-optimization/69157
35203 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
35204 stmts def type only during analyze phase.
35205 (vectorizable_call): Likewise.
35206 (vectorizable_simd_clone_call): Likewise.
35207 (vectorizable_conversion): Likewise.
35208 (vectorizable_assignment): Likewise.
35209 (vectorizable_shift): Likewise.
35210 (vectorizable_operation): Likewise.
35211 (vectorizable_store): Likewise.
35212 (vectorizable_load): Likewise.
35213
35214 2016-01-12 Richard Biener <rguenther@suse.de>
35215
35216 PR tree-optimization/69174
35217 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
35218 space.
35219 (vectorizable_load): Properly compute the number of loads needed
35220 for permuted strided SLP loads and do not spuriously assign
35221 to SLP_TREE_VEC_STMTS.
35222
35223 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
35224
35225 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
35226 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
35227 (MD_EXEC_PREFIX): Remove.
35228 (MD_STARTFILE_PREFIX) Removee.
35229 (FILE_NAME_ABSOLUTE_P): Remove.
35230 (CPP_SPEC): Do not read macros from sys/version.h.
35231 (LINK_COMMAND_SPEC): Remove.
35232 (LOCAL_INCLUDE_DIR): Remove.
35233 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
35234 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
35235 (POST_LINK_SPEC): Define to invoke stubify after linker
35236 (LIBSTDCXX): Remove define
35237 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
35238 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
35239 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
35240 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
35241 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
35242 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
35243 (i386_djgpp_asm_named_section): Add propotype of new procedure
35244
35245 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
35246 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
35247 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
35248 in config/i386/djgpp.h).
35249 (STANDARD_STARTFILE_PREFIX_2): Define identical to
35250 STANDARD_STARTFILE_PREFIX_1.
35251 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
35252 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
35253 installation errors.
35254 (MAX_OFILE_ALIGNMENT): Define to 128.
35255 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
35256
35257 * config/i386/djgpp.c: New file. Add implementation of
35258 i386_djgpp_asm_named_section.
35259
35260 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
35261
35262 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
35263 Add rule for building djgpp.o.
35264
35265 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35266
35267 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
35268 (rtx_is_swappable_p): Reductions are swappable.
35269 (insn_is_swappable_p): V2DF reductions are swappable.
35270
35271 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
35272
35273 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
35274 reloads for other unsupported memory operands.
35275
35276 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
35277 Jim Wilson <jim.wilson@linaro.org>
35278
35279 PR target/69194
35280 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
35281 copy_to_mode_reg instead of force_reg.
35282
35283 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
35284
35285 PR target/69225
35286 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
35287 TARGET_80387 is true.
35288
35289 2016-01-11 Jakub Jelinek <jakub@redhat.com>
35290
35291 PR target/69071
35292 * lra-eliminations.c (move_plus_up): Only move plus up
35293 if subreg of the constant can be simplified into constant
35294 and use the simplified subreg of the constant instead of
35295 the original constant.
35296
35297 * fold-const.c (fold_convertible_p): Don't return true
35298 for conversion of VECTOR_TYPE to same sized integral type.
35299 (fold_convert_loc): Fix up formatting. Fold conversion of
35300 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
35301 instead of NOP_EXPR.
35302
35303 PR tree-optimization/69214
35304 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
35305 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
35306 Formatting fix.
35307
35308 PR tree-optimization/69207
35309 * tree-vect-slp.c (vect_get_constant_vectors): For
35310 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
35311 fold_convertible_p to vector_type's element type, and always
35312 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
35313
35314 2016-01-11 Richard Biener <rguenther@suse.de>
35315
35316 PR tree-optimization/69173
35317 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
35318 fixup the cycle if all stmts are in a pattern.
35319
35320 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
35321
35322 PR middle-end/68999
35323 * alias.c (base_alias_check): Move check for addresses with
35324 alignment ANDs before the call for compare_base_decls.
35325 (memrefs_conflict_p): Return -1 for different decls
35326 that went through alignment adjustments.
35327
35328 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35329
35330 PR rtl-optimization/68796
35331 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
35332 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
35333 and QImode comparisons against zero with CC_NZmode.
35334 * config/aarch64/iterators.md (short_mask): New mode_attr.
35335
35336 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
35337
35338 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
35339 (<avx512>_store<mode>_mask): Likewise.
35340
35341 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
35342 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35343
35344 PR rtl-optimization/68841
35345 * ifcvt.c (struct noce_if_info): Add orig_x field.
35346 (bbs_ok_for_cmove_arith): Add to_rename parameter.
35347 Don't record conflicts on to_rename if it's present.
35348 Allow memory destinations in sets.
35349 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
35350 blocks, passing orig_x to the checks.
35351 (noce_process_if_block): Set if_info->orig_x appropriately.
35352
35353 2016-01-11 Tom de Vries <tom@codesourcery.com>
35354
35355 PR tree-optimization/69069
35356 * tree-parloops.c (create_parallel_loop): Add missing phi args.
35357
35358 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
35359
35360 PR rtl-optimization/68920
35361 * config/i386/i386.c (ix86_option_override_internal): Restrict number
35362 of conditional moves for RTL if-conversion to 1 for
35363 TARGET_ONE_IF_CONV_INSN.
35364 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
35365 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
35366 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
35367 parameter to restirct number of conditional moves for
35368 RTL if-conversion.
35369 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
35370 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
35371 conditionl moves.
35372
35373 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
35374
35375 PR bootstrap/69123
35376 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
35377 onepart vars. Fix typo in comment. Fix reversed condition in
35378 unshare test.
35379 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
35380
35381 PR bootstrap/69123
35382 * var-tracking.c (dump_onepart_variable_differences): New.
35383 (dataflow_set_different): If a detailed dump is requested,
35384 delay early returns and dump differences between onepart
35385 variables present before and after, and added variables.
35386
35387 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
35388
35389 PR target/69010
35390 * expr.c (expand_expr_real_1): For boolean vector constants
35391 with a scalar mode use const_scalar_mask_from_tree.
35392 (const_scalar_mask_from_tree): New.
35393 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
35394 assigned to a mask type to handle constants.
35395
35396 2016-01-11 Martin Jambor <mjambor@suse.cz>
35397
35398 PR ipa/69044
35399 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
35400 useless parameters if we cannot change function signature.
35401
35402 2016-01-11 Martin Jambor <mjambor@suse.cz>
35403
35404 PR ipa/66616
35405 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
35406 flag.
35407
35408 2016-01-11 Tom de Vries <tom@codesourcery.com>
35409
35410 PR tree-optimization/69109
35411 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
35412 latch with phi.
35413
35414 2016-01-11 Tom de Vries <tom@codesourcery.com>
35415
35416 PR tree-optimization/69108
35417 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
35418 res is not used in a phi.
35419
35420 2016-01-11 Yury Gribov <y.gribov@samsung.com>
35421
35422 PR 67425
35423 * common.opt (frandom-seed): Fix parameter name.
35424 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
35425
35426 2016-01-11 Tom de Vries <tom@codesourcery.com>
35427
35428 PR tree-optimization/69058
35429 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
35430 not supported.
35431
35432 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
35433
35434 * config/arc/arc.opt (mdiv-rem): Add period to the end.
35435 (mcode-density): Likewise.
35436
35437 2016-01-10 Tom de Vries <tom@codesourcery.com>
35438
35439 PR tree-optimization/69062
35440 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
35441 (parallelize_loops): Don't paralelize loop that has phi with address
35442 arg.
35443
35444 2016-01-10 Tom de Vries <tom@codesourcery.com>
35445
35446 PR tree-optimization/69039
35447 * tree-parloops.c (try_create_reduction_list): Only allow single exit
35448 phi for reduction.
35449
35450 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
35451
35452 PR middle-end/68743
35453 * match.pd: Require target has function_c99_misc before doing
35454 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
35455
35456 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
35457
35458 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
35459 use GMPINC.
35460 * configure: Regenerate.
35461
35462 2016-01-09 Jakub Jelinek <jakub@redhat.com>
35463
35464 PR middle-end/50865
35465 PR tree-optimization/69097
35466 * fold-const.h (expr_not_equal_to): New prototype.
35467 * fold-const.c: Include stringpool.h and tree-ssanames.h.
35468 (expr_not_equal_to): New function.
35469 * match.pd (X % -Y is the same as X % Y): Don't optimize
35470 unless X is known not to be equal to minimum or Y is known
35471 not to be equal to -1.
35472 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
35473 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
35474 (simplify_stmt_using_ranges): Adjust caller.
35475 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
35476 substitute_and_fold.
35477
35478 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
35479
35480 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
35481 w/o DECL_NAME.
35482
35483 2016-01-08 Jakub Jelinek <jakub@redhat.com>
35484
35485 PR tree-optimization/69167
35486 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
35487 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
35488 ops[0] comparison.
35489 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
35490
35491 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
35492 Richard Biener <rguenther@suse.de>
35493
35494 PR tree-optimization/68707
35495 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
35496 instances that can be handled via vect_load_lanes.
35497
35498 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
35499
35500 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
35501 if we can't determine address equivalence.
35502 * alias.c (compare_base_decl): Update for changed return value of
35503 symtab_node::equal_address_to.
35504
35505 2016-01-08 Jason Merrill <jason@redhat.com>
35506
35507 PR c++/68983
35508 PR c++/67557
35509 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
35510 * expr.c (store_field): Not here.
35511 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
35512 call with TREE_ADDRESSABLE type.
35513 * tree-cfg.c (verify_gimple_call): Adjust.
35514
35515 2016-01-08 Olivier Hainque <hainque@adacore.com>
35516
35517 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
35518 libc_internal.
35519
35520 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
35521
35522 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
35523 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
35524 (reduc_smin_v2sf): Rename to...
35525 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
35526 (reduc_splus_v2sf): Rename to...
35527 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
35528
35529 2016-01-08 Jakub Jelinek <jakub@redhat.com>
35530
35531 PR tree-optimization/69162
35532 * gimplify.c (gimplify_va_arg_expr): Encode original type of
35533 valist argument in another argument.
35534 (gimplify_modify_expr): Adjust for the above change. Cleanup.
35535 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
35536 to determine the va_list type, build a MEM_REF instead of
35537 build_fold_indirect_ref.
35538
35539 PR tree-optimization/69172
35540 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
35541 gimple_build.
35542
35543 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
35544
35545 PR tree-optimization/67781
35546 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
35547 and cmpnop in two steps: first the ones not accessed in original
35548 gimple expression in a endian independent way and then the ones not
35549 accessed in the final result in an endian-specific way.
35550
35551 2016-01-08 Jakub Jelinek <jakub@redhat.com>
35552
35553 PR tree-optimization/69083
35554 * tree-vect-slp.c (vect_get_constant_vectors): For
35555 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
35556 element type. If op is fold_convertible_p to vector_type's element
35557 type, use NOP_EXPR instead of VCE.
35558
35559 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
35560
35561 PR rtl-optimization/67778
35562 PR rtl-optimization/68634
35563 PR rtl-optimization/68909
35564 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
35565 block from the stack until done with it. Remove a superfluous
35566 bitmap set. Remove a superfluous bitmap test.
35567
35568 2016-01-07 Martin Sebor <msebor@redhat.com>
35569
35570 PR c/68966
35571 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
35572 constraint on the type of arguments.
35573
35574 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
35575
35576 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
35577 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
35578 unaligned_access on the gcc_options set.
35579 * config/arm/arm.c (arm_option_override_internal): Use
35580 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
35581
35582 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
35583
35584 PR target/69140
35585 * config/i386/i386.c (ix86_frame_pointer_required): Enable
35586 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
35587
35588 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
35589
35590 Revert
35591 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
35592
35593 PR target/69140
35594 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
35595 depending on frame_pointer_needed before remaining integer and SSE
35596 registers are saved.
35597
35598 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
35599
35600 PR 1078
35601 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
35602
35603 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
35604
35605 PR target/69171
35606 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
35607 Use the "xBm" constraint.
35608 (float<sseintvecmodelower><mode>2<mask_name><round_name):
35609 Likewise.
35610 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
35611 (sse_cvtsi2ssq<round_name>): Likewise.
35612 (sse_cvtss2si<round_name>): Likewise.
35613 (sse_cvtss2siq<round_name>): Likewise.
35614 (sse2_cvtsi2sdq<round_name>): Likewise.
35615 (sse2_cvtsd2si<round_name>): Likewise.
35616 (sse2_cvtsd2siq<round_name>): Likewise.
35617 * config/i386/subst.md (round_nimm_scalar_predicate): New
35618 predicate.
35619
35620 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
35621
35622 PR middle-end/67639
35623 * varasm.c (make_decl_rtl): Mark invalid register vars as
35624 DECL_EXTERNAL.
35625
35626 PR rtl-optimization/66206
35627 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
35628 All callers changed.
35629
35630 2016-01-07 Jakub Jelinek <jakub@redhat.com>
35631
35632 PR tree-optimization/69141
35633 * tree-ssa-pre.c: Include langhooks.h.
35634 (eliminate_dom_walker::before_dom_children): Use
35635 lang_hooks.decl_printable_name instead of
35636 cgraph_node::get ()->name ().
35637
35638 PR middle-end/68960
35639 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
35640 it and DECL_ALIGN too.
35641
35642 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
35643
35644 * config/mips/mips-ftypes.def: Sort to lexicographical order.
35645
35646 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
35647
35648 PR target/69140
35649 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
35650 depending on frame_pointer_needed before remaining integer and SSE
35651 registers are saved.
35652
35653 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35654
35655 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
35656 mode iterator with VSX_M2.
35657 (*p9_vecstore_<mode>): Likewise.
35658 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
35659 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
35660 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
35661 (define_split for VSX_LE128 stores): Likewise.
35662 (define_peephole2 for TImode LE swaps): Likewise.
35663 (define_split for VSX_LE128 post-reload stores): Likewise.
35664
35665 2016-01-06 Marek Polacek <polacek@redhat.com>
35666
35667 PR sanitizer/69099
35668 * convert.c (convert_to_integer_1): Adjust call to
35669 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
35670 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
35671 EXPR instead of ARG.
35672 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
35673
35674 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
35675
35676 PR 1078
35677 * doc/extend.texi (RL78 Variable Attributes): New section.
35678
35679 2016-01-05 Marek Polacek <polacek@redhat.com>
35680
35681 PR c/69104
35682 * builtins.c (get_memmodel): Use expansion point location rather than
35683 the input location. Call warning_at rather than warning.
35684 (expand_builtin_atomic_compare_exchange): Likewise.
35685 (expand_builtin_atomic_load): Likewise.
35686 (expand_builtin_atomic_store): Likewise.
35687 (expand_builtin_atomic_clear): Likewise.
35688
35689 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
35690
35691 PR target/68991
35692 * config/i386/i386.c (ix86_expand_vector_logical_operator):
35693 Replace nonimmediate_operand with vector_operand.
35694 * config/i386/predicates.md (vector_operand): New predicate.
35695 (general_vector_operand): Replace nonimmediate_operand with
35696 vector_operand.
35697 * config/i386/sse.md: Replace nonimmediate_operand with
35698 vector_operand and m constraint with Bm constraint on SSE
35699 patterns with 16-byte memory operand.
35700 * config/i386/subst.md (round_nimm_predicate): Replace
35701 nonimmediate_operand with vector_operand.
35702 (round_saeonly_nimm_predicate): Likewise.
35703 (round_saeonly_nimm_scalar_predicate): New.
35704
35705 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
35706
35707 PR target/68991
35708 * config/i386/constraints.md (Bm): New constraint.
35709 * config/i386/predicates.md (vector_memory_operand): New
35710 predicate.
35711 * config/i386/sse.md: Replace xm with xBm in plusminus and
35712 any_logic patterns.
35713
35714 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
35715
35716 PR 1078
35717 * doc/extend.texi (V850 Function Attributes): New section.
35718 (V850 Variable Attributes): New section.
35719
35720 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
35721
35722 PR 1078
35723 * doc/extend.texi (MicroBlaze Function Attributes): Document
35724 interrupt_handler and fast_interrupt attributes.
35725
35726 2016-01-05 Sergei Trofimovich <siarheit@google.com>
35727
35728 PR other/60465
35729 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
35730 for local symbolic operands.
35731 * config/ia64/predicates.md (local_symbolic_operand64): New
35732 predicate.
35733
35734 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35735
35736 PR rtl-optimization/68651
35737 * combine.c (combine_simplify_rtx): Canonicalize x + x into
35738 x << 1.
35739
35740 2016-01-05 Nathan Sidwell <nathan@acm.org>
35741
35742 * alias.c (compare_base_decls): Use symtab_node::get.
35743
35744 2016-01-05 Nick Clifton <nickc@redhat.com>
35745
35746 PR target/68770
35747 * ira-costs.c (copy_cost): Initialise the t_icode field of the
35748 secondary_reload_info structure.
35749
35750 PR target/66655
35751 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
35752 decls if weak support is available.
35753
35754 2016-01-04 Martin Sebor <msebor@redhat.com>
35755
35756 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
35757
35758 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
35759
35760 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
35761 OPTION_MASK_P9_DFORM.
35762
35763 * config/rs6000/constraints.md (wo constraint): New constraint for
35764 ISA 3.0 (power9).
35765
35766 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
35767 for wo constraint.
35768 (rs6000_init_hard_regno_mode_ok): Likewise.
35769
35770 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
35771 wo constraint.
35772
35773 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
35774 expanders not to have constraints. Add support for ISA 3.0 xxperm
35775 instruction. Add support for fusing xxlor with xxperm.
35776 (altivec_vperm_<mode>_internal): Likewise.
35777 (altivec_vperm_v8hiv16qi): Likewise.
35778 (altivec_vperm_<mode>v16q): Likewise.
35779 (altivec_vperm_<mode>_uns): Likewise.
35780 (vperm_v8hiv4si): Likewise.
35781 (vperm_v16qiv8hi): Likewise.
35782
35783 * doc/md.texi (RS/6000 constraints): Document wo constraint.
35784
35785 2016-01-04 Jakub Jelinek <jakub@redhat.com>
35786
35787 Update copyright years.
35788
35789 * gcc.c (process_command): Update copyright notice dates.
35790 * gcov-dump.c (print_version): Ditto.
35791 * gcov.c (print_version): Ditto.
35792 * gcov-tool.c (print_version): Ditto.
35793 * gengtype.c (create_file): Ditto.
35794 * doc/cpp.texi: Bump @copying's copyright year.
35795 * doc/cppinternals.texi: Ditto.
35796 * doc/gcc.texi: Ditto.
35797 * doc/gccint.texi: Ditto.
35798 * doc/gcov.texi: Ditto.
35799 * doc/install.texi: Ditto.
35800 * doc/invoke.texi: Ditto.
35801
35802 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
35803
35804 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
35805 modes larger than TImode as TImode if NEON is not enabled.
35806
35807 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
35808
35809 PR target/69100
35810 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
35811 mode for %f0-%f31 only if TARGET_FPU.
35812
35813 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
35814
35815 PR target/69072
35816 * config/sparc/sparc.c (scan_record_type): Take into account subfields
35817 to compute the PACKED_P predicate.
35818 (function_arg_record_value): Minor tweaks.
35819
35820 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
35821
35822 * doc/install.texi (--with-multilib-list): Describe the meaning of the
35823 option for arm*-*-* targets.
35824
35825 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
35826
35827 * doc/extend.texi (Common Function Attributes): Move docs for
35828 MSP430-specific attributes to....
35829 (MSP430 Function Attributes): ...here. Delete the redundant
35830 entries and copy-edit the remaining text.
35831 (MSP430 Variable Attributes): Use uniform format for index
35832 entries and add a cross-reference to the corresponding function
35833 attribute docs.
35834
35835 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
35836
35837 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
35838 -finite-math typo.
35839 (x86 Options): Likewise.
35840
35841 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
35842
35843 PR 1078
35844
35845 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
35846 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
35847 to corresponding attribute.
35848
35849 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
35850
35851 * doc/extend.texi (Common Function Attributes) <noplt>: Move
35852 to correct alphabetization of table. Copy-edit and correct
35853 markup.
35854 <stack_protect>: Likewise.
35855 <target_clones>: Likewise.
35856 <simd>: Likewise.
35857 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
35858 Correct punctuation.
35859 (Code Gen Options) <-fno-plt>: Copy-edit.
35860
35861 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
35862
35863 PR target/68917
35864 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
35865 SI values. Explicitly convert SI to DI and vice-versa.
35866
35867 2016-01-01 Jakub Jelinek <jakub@redhat.com>
35868
35869 PR tree-optimization/69070
35870 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
35871 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
35872
35873 PR sanitizer/69055
35874 * ubsan.c (ubsan_instrument_float_cast): Call
35875 initialize_sanitizer_builtins.
35876
35877 PR target/69015
35878 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
35879 \f
35880 Copyright (C) 2016 Free Software Foundation, Inc.
35881
35882 Copying and distribution of this file, with or without modification,
35883 are permitted in any medium without royalty provided the copyright
35884 notice and this notice are preserved.