print-rtl.c: use '<' and '>' rather than % for pseudos in compact mode
[gcc.git] / gcc / ChangeLog
1 2016-12-19 David Malcolm <dmalcolm@redhat.com>
2
3 * print-rtl.c (rtx_writer::print_rtx_operand_code_r): For
4 non-virtual pseudos in compact mode, wrap the regno in '<' and '>'
5 rather than using a '%' prefix.
6 * rtl-tests.c (selftest::test_dumping_regs): Update for above change.
7
8 2016-12-19 Dominik Vogt <vogt@linux.vnet.ibm.com>
9
10 PR target/78748
11 * config/s390/s390.md ("*andc_split_<mode>"): Allow memory destination
12 only if it coincides with operand 2.
13
14 2016-12-19 Dominik Vogt <vogt@linux.vnet.ibm.com>
15
16 * combine.c (change_zero_ext): Skip generation of redundant AND.
17
18 2016-12-19 Krister Walfridsson <krister.walfridsson@gmail.com>
19
20 * config/netbsd.h (LINK_EH_SPEC): Define.
21
22 2016-12-18 Eric Botcazou <ebotcazou@adacore.com>
23
24 * lra-constraints.c (process_address): Add forward declaration.
25 (simplify_operand_subreg): In the MEM case, if the adjusted memory
26 reference is not sufficient aligned and the address was invalid,
27 reload the address before reloading the original memory reference.
28 Fix long lines and add a final return for the sake of clarity.
29
30 2016-12-17 Jakub Jelinek <jakub@redhat.com>
31
32 PR sanitizer/78832
33 * sanopt.c (sanitize_asan_mark_unpoison): Remove next variable, use
34 continue if gsi_next should be skipped.
35 (sanitize_asan_mark_poison): Remove prev variable, use continue if
36 gsi_prev should be skipped. When removing ASAN_MARK, do gsi_prev
37 first and gsi_remove on a previously made copy of the iterator.
38
39 2016-12-17 Andrew Senkevich <andrew.senkevich@intel.com>
40
41 * config/i386/avx512bwintrin.h: Add new k-mask intrinsics.
42 * config/i386/avx512dqintrin.h: Ditto.
43 * config/i386/avx512fintrin.h: Ditto.
44 * config/i386/i386-builtin.def (__builtin_ia32_kaddqi,
45 __builtin_ia32_kaddhi, __builtin_ia32_kaddsi,
46 __builtin_ia32_kadddi): New.
47 * config/i386/sse.md (kadd<mode>): New.
48
49 2016-12-17 Uros Bizjak <ubizjak@gmail.com>
50
51 * config/i386/i386.md (*tzcnt<mode>_1): Merge *tzcnt<mode>_1_falsedep_1
52 and *tzcnt<mode>_1 to define_insn_and_split pattern. Adjust split
53 condition to split after epilogue_completed.
54 (ctz<mode>2): Remove expander.
55 (ctz<mode>2): Merge *ctz<mode>2_falsedep_1 and *ctz<mode>2 to
56 define_insn_and_split pattern. Adjust split condition to split
57 after epilogue_completed.
58 (clz<mode>2_lznct): Remove expander.
59 (clz<mode>2_lzcnt): Merge *clz<mode>2_lzcnt_falsedep_1 and
60 *clz<mode>2 to define_insn_and_split pattern. Adjust split
61 condition to split after epilogue_completed.
62 (<lt_zcnt>_<mode>): Remove expander.
63 (<lt_zcnt>_<mode>): Merge *<lt_zcnt>_<mode>_falsedep_1 and
64 *<lt_zcnt>_<mode> to define_insn_and_split pattern. Adjust split
65 condition to split after epilogue_completed.
66 (<lt_zcnt>_hi): New insn pattern.
67 (popcount<mode>2): Remove expander.
68 (popcount<mode>2): Merge *popcount<mode>2_falsedep_1 and
69 *popcount<mode>2 to define_insn_and_split pattern. Adjust split
70 condition to split after epilogue_completed.
71 (popcounthi2): New insn pattern.
72
73 2016-12-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
74
75 * config/rs6000/altivec.md (UNSPEC_CMPRB): New unspec value.
76 (UNSPEC_CMPRB2): New unspec value.
77 (UNSPEC_CMPEQB): New unspec value.
78 (cmprb): New expansion.
79 (*cmprb_internal): New insn.
80 (*setb_internal): New insn.
81 (cmprb2): New expansion.
82 (*cmprb2_internal): New insn.
83 (cmpeqb): New expansion.
84 (*cmpeqb_internal): New insn.
85 * config/rs6000/rs6000-builtin.def (BU_P9_2): New macro.
86 (BU_P9_64BIT_2): Likewise.
87 (BU_P9_OVERLOAD_2): Likewise.
88 (CMPRB): Add byte-in-range built-in function.
89 (CMBRB2): Add byte-in-either-range built-in function.
90 (CMPEQB): Add byte-in-set built-in function.
91 (CMPRB): Add overload support for byte-in-range function.
92 (CMPRB2): Add overload support for byte-in-either-range function.
93 (CMPEQB): Add overload support for byte-in-set built-in function.
94 * config/rs6000/rs6000-c.c (P9_BUILTIN_CMPRB): Macro expansion to
95 define argument types for new builtin.
96 (P9_BUILTIN_CMPRB2): Likewise.
97 (P9_BUILTIN_CMPEQB): Likewise.
98 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Rearrange
99 the order of presentation for certain built-in functions
100 (scalar_extract_exp, scalar_extract_sig, scalar_insert_exp)
101 (scalar_cmp_exp_gt, scalar_cmp_exp_lt, scalar_cmp_exp_eq)
102 (scalar_cmp_exp_unordered, scalar_test_data_class)
103 (scalar_test_neg) to improve locality and flow. Document
104 the new __builtin_scalar_byte_in_set,
105 __builtin_scalar_byte_in_range, and
106 __builtin_scalar_byte_in_either_range functions.
107
108 2016-12-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
109
110 * config/aarch64/aarch64.md: New define_split above bswap<mode>2.
111
112 2016-12-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
113
114 * config/aarch64/aarch64.md: New define_split above insv<mode>.
115
116 2016-12-16 Jakub Jelinek <jakub@redhat.com>
117
118 PR c/78408
119 * tree-ssa-ccp.c: Include tree-dfa.h.
120 (optimize_memcpy): New function.
121 (pass_fold_builtins::execute): Use it. Remove useless conditional
122 break after BUILT_IN_VA_*.
123
124 2016-12-16 Marek Polacek <polacek@redhat.com>
125
126 PR tree-optimization/78819
127 * tree-vrp.c (find_switch_asserts): Return if the insertion limit is 0.
128 Don't register an assertion if the default case shares a label with
129 another case.
130
131 2016-12-16 Wilco Dijkstra <wdijkstr@arm.com>
132
133 * config/arm/arm.md (subsi3_carryin): Add Thumb-2 RSC #0.
134 (arm_negdi2) Rename to negdi2_insn, allow on Thumb-2.
135 * config/arm/thumb2.md (thumb2_negdi2): Remove pattern.
136
137 2016-12-16 Wilco Dijkstra <wdijkstr@arm.com>
138
139 * config/arm/arm.c (thumb_core_reg_alloc_order): Swap R12 and R14.
140
141 2016-12-16 Claudiu Zissulescu <claziss@synopsys.com>
142
143 * config/arc/arc.md (call_prof): Remove.
144 (call_value_prof): Likewise.
145 (sibcall_prof): Likewise.
146 (sibcall_value_prof): Likewise.
147
148 2016-12-16 Claudiu Zissulescu <claziss@synopsys.com>
149
150 * config/arc/arc.h (LINK_SPEC): Tidy up.
151 (ENDFILE_SPEC): Likewise.
152 (LIB_SPEC): Likewise.
153 (STARTFILE_SPEC): Include gcrt0 when profiling.
154 (FUNCTION_PROFILER): Use __mcount.
155 * config/arc/arc.opt (mucb-mcount): Remove.
156 * doc/invoke.texi (ARC): Remove mucb-mcount doc.
157 * arc/arc-protos.h (arc_profile_call): Remove.
158 * config/arc/arc.c (write_profile_sections): Likewise.
159 (arc_profile_call): Likewise.
160 (unspec_prof_hash): Likewise.
161 (unspec_prof_htab_eq): Likewise.
162 (arc_legitimate_constant_p): Remove UNSPEC_PROF.
163 (arc_reorg): Remove call to write_profile_sections.
164 * config/arc/arc.md (call): Remove call to arc_profile_call.
165 (call_value): Likewise.
166 (sibcall): Likewise.
167 (sibcall_value): Likewise.
168 (define_constants): Remove UNSPEC_PROF.
169
170 2016-12-16 Claudiu Zissulescu <claziss@synopsys.com>
171
172 * config/arc/arc.md (mulsidi_600): Change to insn_and_split,
173 generate new mul64 insn for core multiplication work.
174 (umulsidi_600): Likewise, but use mulu64 insn.
175 (mul64): New pattern, content taken from old mulsidi_600 insn
176 pattern.
177 (mulu64): Likewise, but using umulsidi_600.
178 (mulsidi3): Remove move to destination, this is now handled by
179 mulsidi_600 insn_and_split.
180 (umulsidi3): Likewise, but using umulsidi_600.
181
182 2016-12-16 Richard Biener <rguenther@suse.de>
183
184 PR c++/71694
185 * langhooks-def.h (lhd_unit_size_without_reusable_padding): Declare.
186 (LANG_HOOKS_UNIT_SIZE_WITHOUT_REUSABLE_PADDING): Define.
187 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Adjust.
188 * langhooks.h (struct lang_hooks_for_types): Add
189 unit_size_without_reusable_padding.
190 * langhooks.c (lhd_unit_size_without_reusable_padding): New.
191 * stor-layout.c (finish_bitfield_representative): Use
192 unit_size_without_reusable_padding langhook to decide on the
193 last representatives size.
194
195 2016-12-16 Richard Biener <rguenther@suse.de>
196
197 PR middle-end/71632
198 * expr.c (expand_cond_expr_using_cmove): Bail out early if
199 we end up recursing via TER.
200
201 2016-12-15 Martin Sebor <msebor@redhat.com>
202
203 PR bootstrap/78817
204 * vec.h (vec<T, va_heap, vl_ptr>::safe_grow_cleared): Assert
205 a pointer is non-null.
206
207 2016-12-15 Andrew Senkevich <andrew.senkevich@intel.com>
208
209 * config/i386/avx512bwintrin.h: Add new k-mask intrinsics.
210 * config/i386/avx512dqintrin.h: Ditto.
211 * config/i386/avx512fintrin.h: Ditto.
212 * config/i386/i386-builtin.def (__builtin_ia32_kmovb,
213 __builtin_ia32_kmovd, __builtin_ia32_kmovq): New.
214 (__builtin_ia32_kmov16): Rename to __builtin_ia32_kmovw.
215 * config/i386/sse.md (kmov<mskmodesuffix>): New.
216
217 2016-12-15 Uros Bizjak <ubizjak@gmail.com>
218
219 * config/i386/i386.md (ffs<mode>2): Generate CCCmode flags register
220 for TARGET_BMI.
221 (ffssi2_no_cmove): Ditto.
222 (*tzcnt<mode>_1_falsedep_1): New insn_and_split pattern.
223 (*tzcnt<mode>_1_falsedep): New insn pattern.
224
225 (LT_ZCNT): New mode iterator.
226 (lt_zcnt): New mode attribute.
227 (lt_zcnt_type): New mode attribute.
228 (<lt_zcnt>_<mode>): Macroize expander from bmi_tzcnt_<mode> and
229 lzcnt_<mode> using LT_ZCNT mode iterator.
230 (*<lt_zcnt>_<mode>_falsedep_1): Macroize insn from
231 *bmi_tzcnt_<mode>_falsedep_1 and *lzcnt_<mode>_falsedep_1
232 using LT_ZCNT mode iterator.
233 (*<lt_zcnt>_<mode>_falsedep): Macroize insn from
234 *bmi_tzcnt_<mode>_falsedep and *lzcnt_<mode>_falsedep
235 using LT_ZCNT mode iterator.
236 (*<lt_zcnt>_<mode>): Macroize insn from *bmi_tzcnt_<mode>
237 and *lzcnt_<mode> using LT_ZCNT mode iterator.
238 * config/i386/i386-builtin.def (__builtin_ia32_tzcnt_u16)
239 (__builtin_ia32_tzcnt_u32, __builtin_ia32_tzcnt_u64, __builtin_ctzs):
240 Update for rename.
241
242 2016-12-15 Jakub Jelinek <jakub@redhat.com>
243
244 * ipa-cp.c (class ipcp_bits_lattice): Formatting fixes.
245 (print_ipcp_constant_value): Likewise.
246 (ipcp_cloning_candidate_p): Likewise.
247 (ipcp_bits_lattice::get_value_and_mask): Likewise.
248 (ipcp_bits_lattice::meet_with_1): Likewise.
249 (ipcp_bits_lattice::meet_with): Likewise.
250 (initialize_node_lattices): Likewise.
251 (ipcp_lattice::add_value): Likewise.
252 (propagate_vals_accross_pass_through): Renamed to ...
253 (propagate_vals_across_pass_through): ... this function.
254 (propagate_vals_accross_ancestor): Renamed to ...
255 (propagate_vals_across_ancestor): ... this.
256 (propagate_scalar_accross_jump_function): Renamed to ...
257 (propagate_scalar_across_jump_function): ... this.
258 Adjust calls to above functions.
259 (propagate_context_accross_jump_function): Renamed to ...
260 (propagate_context_across_jump_function): ... this.
261 (propagate_bits_accross_jump_function): Renamed to ...
262 (propagate_bits_accross_jump_function): ... this. Formatting fixes.
263 (propagate_vr_accross_jump_function): Renamed to ...
264 (propagate_vr_across_jump_function): ... this.
265 (merge_agg_lats_step): Formatting fixes.
266 (propagate_constants_accross_call): Renamed to ...
267 (propagate_constants_across_call): ... this. Adjust calls to above
268 functions.
269 (ipa_get_indirect_edge_target_1): Formatting fixes.
270 (gather_context_independent_values): Likewise.
271 (estimate_local_effects): Likewise.
272 (add_all_node_vals_to_toposort): Likewise.
273 (propagate_constants_topo): Adjust calls to above functions.
274 (get_replacement_map): Formatting fixes.
275 (dump_profile_updates): Likewise.
276 (update_profiling_info): Likewise.
277 (update_specialized_profile): Likewise.
278 (create_specialized_node): Likewise.
279 (find_more_contexts_for_caller_subset): Likewise.
280 (decide_whether_version_node): Likewise.
281 (identify_dead_nodes): Likewise.
282 (ipcp_decision_stage): Likewise.
283 (ipcp_store_bits_results): Likewise.
284 (ipcp_store_vr_results): Likewise.
285 (ipcp_driver): Likewise.
286
287 2016-12-15 David Malcolm <dmalcolm@redhat.com>
288
289 PR preprocessor/78680
290 PR preprocessor/78811
291 * input.c (struct selftest::lexer_test): Add field
292 m_implicitly_expect_EOF.
293 (selftest::lexer_error_sink): New class.
294 (selftest::lexer_error_sink::s_singleton): New global.
295 (selftest::lexer_test::lexer_test): Initialize new field
296 "m_implicitly_expect_EOF".
297 (selftest::lexer_test::~lexer_test): Conditionalize the
298 check for the EOF token on the new field.
299 (selftest::test_lexer_string_locations_raw_string_unterminated):
300 New function.
301 (selftest::input_c_tests): Call the new test.
302
303 2016-12-15 Wilco Dijkstra <wdijkstr@arm.com>
304
305 * config/arm/arm.h (TARGET_BACKTRACE): Use crtl->is_leaf.
306 * config/arm/arm.c (arm_option_check_internal): Improve comment.
307 (thumb_force_lr_save): Use crtl->is_leaf.
308 (arm_get_frame_offsets): Remove comment. Use crtl->is_leaf.
309 (thumb_far_jump_used_p): Remove comment.
310 (arm_frame_pointer_required): Use crtl->is_leaf.
311
312 2016-12-15 Jakub Jelinek <jakub@redhat.com>
313
314 * doc/extend.texi: Clean up @xref{...} uses.
315 * doc/invoke.texi: Likewise.
316
317 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
318
319 * arm-fpus.def: Add CNAME field to all FPU definitions.
320 * genopt.sh: Use explicit enumeration tags for FPU entries.
321 * arm-tables.opt: Regenerated.
322 * arm.opt (mfpu): Provide initial value.
323 * arm-opts.h (enum fpu_type): Build the enumeration from the list of
324 available FPUs. Add 'auto' entry on the end.
325 * arm.c (arm_configure_build_target): Only do explicit configuration
326 of the FPU features if the selected FPU is not 'auto'.
327 (arm_option_override): Adjust initialization of arm_fpu_index.
328 Emit an error if we have a hard float ABI request, but the processor
329 does not support floating-point.
330 (arm_option_print): Handle -mfpu=auto.
331 (arm_valid_target_attribute_rec): Don't permit fpu=auto in pragmas
332 or function attributes.
333 (arm_identify_fpu_from_isa): Handle effective soft-float when
334 the FPU is automatically detected.
335 * arm-cores.def (arm1136jf-s): Add feature ISA_FP_DBL.
336 (arm1176jzf-s): Likewise.
337 (mpcore): Likewise.
338 (arm1156t2f-s): Likewise.
339
340 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
341
342 * arm-fpus.def (ARM_FPU): Remove features field from all definitions.
343 * arm.h (arm_fpu_feature_set): Delete typedef.
344 (FPU_FL_NONE): Delete.
345 (FPU_FL_NEON): Delete.
346 (FPU_FL_FP16): Delete.
347 (FPU_FL_CRYPTO): Delete.
348 (FPU_FL_DBL): Delete.
349 (FPU_FL_D32): Delete.
350 (FPU_FL_VFPv2): Delete.
351 (FPU_FL_VFPv3): Delete.
352 (FPU_FL_VFPv4): Delete.
353 (FPU_FL_VFPv5): Delete.
354 (FPU_FL_AMRv8): Delete.
355 (FPU_VFPv2): Delete.
356 (FPU_VFPv3): Delete.
357 (FPU_VFPv4): Delete.
358 (FPU_VFPv5): Delete.
359 (FPU_ARMv8): Delete.
360 (FPU_DBL): Delete.
361 (FPU_D32): Delete.
362 (FPU_NEON): Delete.
363 (FPU_CRYPTO): Delete.
364 (FPU_FP16): Delete.
365 (arm_fpu_desc): Delete features field.
366 * arm.c (all_fpus): Don't initialize feature field.
367
368 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
369
370 * arm.c (arm_can_inline_p): Use ISA features for determining
371 inlinability.
372
373 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
374
375 * arm-protos.h (arm_configure_build_target): Change second argument
376 to cl_target_options.
377 * arm.c (arm_configure_build_target): Likewise.
378 (arm_option_restore): Update accordingly.
379 (arm_option_override): Create the target_option_default_node before
380 calling arm_configure_build_target. Use it in call of latter.
381 Resynchronize after all other overrides have been calculated.
382 (arm_valid_target_attribute_tree): Use the target options for
383 reconfiguration. Resynchronize after performing override checks.
384 * arm-c.c (arm_pragma_target_parse): Use target optiosn from cur_tree
385 to reconfigure the build target.
386
387 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
388
389 * arm.h (TARGET_VFPD32): Use arm_active_target.
390 (TARGET_VFP3): Likewise.
391 (TARGET_VFP5): Likewise.
392 (TARGET_VFP_SINGLE): Likewise.
393 (TARGET_VFP_DOUBLE): Likewise.
394 (TARGET_NEON_FP16): Likewise.
395 (TARGET_FP16): Likewise.
396 (TARGET_FMA): Likewise.
397 (TARGET_FPU_ARMV8): Likewise.
398 (TARGET_CRYPTO): Likewise.
399 (TARGET_NEON): Likewise.
400 (TARGET_FPU_FEATURES): Delete.
401 * arm.c (arm_option_check_internal): Check for iwmmxt conflict with
402 Neon using arm_active_target.
403
404 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
405
406 * arm.h (TARGET_FPU_NAME): Delete.
407 * arm.c (arm_identify_fpu_from_isa): New function.
408 (arm_declare_function_name): Use it to get the name for the FPU.
409
410 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
411
412 * arm-protos.h: Include sbitmap.h
413 (arm_configure_build_target): Make public.
414 * arm.c (arm_configure_build_target): Now not static.
415 (arm_valid_target_attribute_rec): Move internal option check to...
416 (arm_valid_target_attribute_tree0: ... here. Also reconfingure the
417 active target.
418 (arm_override_options_after_change): Call arm_configure_build_target.
419 (isa_all_fpubits): Renamed from isa_fpubits.
420 (arm_option_restore): New function.
421 (TARGET_OPTION_RESTORE): Register it.
422 (arm_configure_build_target): Initialize the FPU capability bits in
423 the isa.
424 (arm_option_override): Move the code that forces the setting of the
425 FPU option before the call to arm_configure_build_target.
426 * arm.opt (march): Mark as Save.
427 (mcpu, mtune): Likewise.
428 * arm-c.c (arm_pragma_target_parse): Reconfigure the build target
429 after pragmas change the target options.
430
431 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
432
433 * arm-isa.h (isa_feature): Add bits for VFPv4, FPv5, fp16conv,
434 fP_dbl, fp_d32 and fp_crypto.
435 (ISA_ALL_FPU): Add all the new bits.
436 (ISA_VFPv2, ISA_VFPv3, ISA_VFPv4, ISA_FPv5): New macros.
437 (ISA_FP_ARMv8, ISA_FP_DBL, ISA_FP_D32, ISA_NEON, ISA_CRYPTO): Likewise.
438 * arm-fpus.def: Add ISA features to all FPUs.
439 * arm.h: (arm_fpu_desc): Add new field for ISA bits.
440 * arm.c (all_fpus): Initialize it.
441 * arm-tables.opt: Regenerated.
442
443 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
444
445 * arm.h (FPU_FL_VFPv2) New feature bit.
446 (FPU_FL_VFPv3, FPU_FL_VFPv4, FPU_FL_VFPv5, FPU_FL_ARMv8): Likewise.
447 (FPU_VFPv2, FPU_VFPv3, FPU_VFPv4, FPU_VFPv5, FPU_ARMv8): New helper
448 macros.
449 (FPU_DBL, FPU_D32, FPU_NEON, FPU_CRYPTO, FPU_FP16): Likewise.
450 (TARGET_FPU_REV): Delete.
451 (TARGET_VFP3): Use feature bits.
452 (TARGET_VFP5): Likewise.
453 (TARGET_FMA): Likewise.
454 (TARGET_FPU_ARMV8): Likewise.
455 (struct arm_fpu_desc): Delete rev field.
456 * arm-fpus.def: Delete REV entry, use new feature bits and macros.
457 * arm.c (all_fpus): Delete rev field.
458
459 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
460
461 * arm.h (vfp_reg_type): Delete.
462 (TARGET_FPU_REGS): Delete.
463 (arm_fpu_desc): Delete regs field.
464 (FPU_FL_NONE, FPU_FL_NEON, FPU_FL_FP16, FPU_FL_CRYPTO): Use unsigned
465 values.
466 (FPU_FL_DBL, FPU_FL_D32): Define.
467 (TARGET_VFPD32): Use feature test.
468 (TARGET_VFP_SINGLE): Likewise.
469 (TARGET_VFP_DOUBLE): Likewise.
470 * arm-fpus.def: Update all entries for new feature bits.
471 * arm.c (all_fpus): Update initializer macro.
472 (arm_can_inline_p): Remove test on fpu regs.
473
474 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
475
476 * arm.h (arm_fp_model): Delete.
477
478 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
479
480 * arm-cores.def: Remove FLAGS field from all core definitions.
481 * arm-arches.def: Likewise.
482 * arm-opts.h (enum processor_type): Remove FLAGS parameter from
483 ARM_CORES macro.
484 (arm_arch_core_flags): Likewise, plus ARM_ARCH macro.
485 * arm-protos.h (FL_*): Delete.
486 (arm_feature_set): Delete.
487 (ARM_FSET_*): Delete.
488 * arm.c (struct processors): Delete flags field.
489 (all_cores): Delete FLAGS parameter from macro, don't initialize flags.
490 (all architectures): Likewise.
491
492 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
493
494 * arm-opts.h (struct arm_arch_core_flag): Add new field ISA.
495 Initialize it.
496 (arm_arch_core_flag): Delete flags field.
497 (arm_arch_core_flags): Don't initialize flags field.
498 * common/config/arm/arm-common.c (check_isa_bits_for): New function.
499 (arm_target_thumb_only): Use new isa bits arrays.
500
501 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
502
503 * arm-protos.h (insn_flags): Delete declaration.
504 (arm_arch7ve): Declare.
505 * arm.c (insn_flags): Delete.
506 (arm_arch7ve): New variable.
507 (arm_selected_cpu): Delete.
508 (arm_option_check_internal): Use new ISA bitmap.
509 (arm_option_override_internal): Likewise.
510 (arm_configure_build_target): Declare arm_selected_cpu locally.
511 (arm_option_override): Use new ISA bitmap. Initialize arm_arch7ve.
512 Rearrange variable intialization by general function.
513 * arm.h (TARGET_HAVE_LPAE): Use arm_arch7ve.
514
515 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
516
517 * arm-builtins.c: Include sbitmap.h.
518 (def_mbuiltin): Change first parameter to a flag bit. Use it to test
519 available features in the current target.
520 (struct builtin_description): Change type of feature field.
521 (IWMMXT_BUILTIN): Use the isa_features types.
522 (IWMMXT2_BUILTIN): Likewise.
523 (IWMMXT_BUILTIN2): Likewise.
524 (IWMMXT2_BUILTIN2): Likewise.
525 (CRC32_BUILTIN): Likewise.
526 (CRYPTO_BUILTIN): Likewise.
527 (iwmmx_builtin): Likewise.
528 (iwmmx2_builtin): Likewise.
529 (arm_iwmmxt_builtin): Check for specific feature bits.
530
531 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
532
533 * arm-isa.h (enum isa_feature): Add isa_quirk_cm3_ldrd.
534 (ISA_ALL_QUIRKS): New macro.
535 * arm-cores.def (cortex-m3): Add isa_quirk_cm3_ldrd to isa feature list.
536 * arm.c (isa_quirkbits): New feature-list bitmap.
537 (arm_configure_build_target): Ignore quirk bits when comparing an
538 architecture feature list with a CPU feature list.
539 (arm_option_override): Initialize_isa_quirkbits. If the user has
540 not specified -m[no-]fix-cortex-m3-ldrd, automatically enable the
541 feature if isa_quirk_cm3_ldrd appears in the isa feature list.
542
543 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
544
545 * arm.c (arm_option_override): Use arm_active_target as source of
546 information for arm_base_arch and arm_arch_name.
547 * (arm_file_start): Use arm_active_target for core name.
548
549 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
550
551 * arm.c (arm_selected_tune): Delete static variable.
552 (arm_selected_arch): Likewise.
553 (arm_configure_build_target): Declare local versions of arm_selected
554 target and arm_selected_arch. Initialize more fields in target
555 data structure.
556 (arm_option_override): Use arm_active_target instead of
557 arm_selected_tune and arm_selected_arch.
558 (asm_file_start): Use arm_active_target.
559
560 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
561
562 * arm-protos.h (arm_build_target): New structure.
563 (arm_active_target): Declare it.
564 * arm.c (arm_active_target): New variable.
565 (bitmap_popcount): New function.
566 (feature_count): Delete.
567 (arm_initialize_isa): New function.
568 isa_fpubits): New variable.
569 (arm_configure_build_target): New function.
570 (arm_option_override): Initialize isa_fpubits and arm_active_target.isa.
571 Use arm_configure_build_target.
572
573 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
574
575 * arm-isa.h: New file.
576 * arm-protos.h: Include it.
577 * arm-arches.def: Add new ISA field to all entries. Drop bogus
578 armv8.1-a+crc architecture.
579 * arm-cores.def: Similarly. Group ARMv8 cores by profile.
580 * arm-opts.h (enum processor_type): Adjust for new field.
581 * arm.c (struct processors): New field 'isa_bits'.
582 (all_cores, all_architectures): Initialize new field.
583 * arm-tables.opt: Regenerated.
584 * arm-tune.md: Regenerated.
585
586 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
587
588 * arm-arches.def (ARM_ARCH): Add extra field TUNE_FLAGS, move
589 tuning properties from architectural FLAGS field.
590 * arm-cores.def (ARM_CORE): Likewise.
591 * arm-protos.h (TF_LDSCHED, TF_WBUF, TF_CO_PROC): New macros.
592 (TF_SMALLMUL, TF_STRONG, TF_SCALE, TF_NOMODE32): New macros.
593 (FL_LDSCHED, FL_STRONG, FL_WBUF, FL_SMALLMUL): Delete.
594 (FL_TUNE): Remove deleted elements.
595 (tune_flags): Convert type to unsigned int.
596 * arm.c (struct processors): Add new field tune_flags.
597 (all_cores, all_arches): Initialize it.
598 (arm_option_override): Adapt uses of tune_flags. Use tune_flags
599 for deciding when we should have slow multiply operations.
600
601 2016-12-14 Martin Sebor <msebor@redhat.com>
602
603 PR middle-end/78519
604 * gimple-ssa-sprintf.c (format_string): Handle null pointers.
605 (format_directive): Diagnose null pointer arguments.
606 (pass_sprintf_length::handle_gimple_call): Diagnose null destination
607 pointers. Correct location of null format string in diagnostics.
608
609 2016-12-14 David Malcolm <dmalcolm@redhat.com>
610
611 * Makefile.in (SELFTEST_FLAGS): Add path argument to -fself-test.
612 (s-selftest): Add dependency on the selftests data directory.
613 * common.opt (fself-test): Rename to...
614 (fself-test=): ...this, documenting the meaning of the argument.
615 * selftest-run-tests.c (along): Likewise.
616 * selftest-run-tests.c: Include "options.h".
617 (selftest::run_tests): Initialize selftest::path_to_selftest_files
618 from flag_self_test.
619 * selftest.c (selftest::path_to_selftest_files): New global.
620 (selftest::locate_file): New function.
621 (selftest::test_locate_file): New function.
622 (selftest_c_tests): Likewise.
623 (selftest::selftest_c_tests): Call test_locate_file.
624 * selftest.h (selftest::locate_file): New decl.
625 (selftest::path_to_selftest_files): New decl.
626
627 2016-12-14 Andrew Pinski <apinski@cavium.com>
628
629 * config/aarch64/aarch64-cores.def: Add -1 as the variant to all
630 of the cores.
631 (thunderx): Update to include LSE by default.
632 (thunderxt88p1): New core.
633 (thunderxt88): New core.
634 (thunderxt81): New core.
635 (thunderxt83): New core.
636 * config/aarch64/driver-aarch64.c (struct aarch64_core_data):
637 Add variant field.
638 (ALL_VARIANTS): New define.
639 (AARCH64_CORE): Support VARIANT operand.
640 (cpu_data): Likewise.
641 (host_detect_local_cpu): Parse variant field of /proc/cpuinfo.
642 Combine the arch and single core case and support variant searching.
643 * common/config/aarch64/aarch64-common.c (AARCH64_CORE):
644 Add VARIANT operand.
645 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Likewise.
646 * config/aarch64/aarch64.c (AARCH64_CORE): Likewise.
647 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
648 * config/aarch64/aarch64-tune.md: Regenerate.
649 * doc/invoke.texi (AARCH64/mtune): Document thunderxt88,
650 thunderxt88p1, thunderxt81, thunderxt83 as available options.
651
652 2016-12-14 Martin Jambor <mjambor@suse.cz>
653
654 * omp-offload.c: Fix coding style.
655 * omp-expand.c: Likewise.
656 * omp-general.c: Likewise.
657 * omp-grid.c: Likewise.
658 * omp-low.c: Fix coding style of parts touched by the
659 previous splitting patch.
660
661 2016-12-14 Martin Jambor <mjambor@suse.cz>
662
663 * omp-general.h: New file.
664 * omp-general.c: New file.
665 * omp-expand.h: Likewise.
666 * omp-expand.c: Likewise.
667 * omp-offload.h: Likewise.
668 * omp-offload.c: Likewise.
669 * omp-grid.c: Likewise.
670 * omp-grid.c: Likewise.
671 * omp-low.h: Include omp-general.h and omp-grid.h. Removed includes
672 of params.h, symbol-summary.h, lto-section-names.h, cilk.h, tree-eh.h,
673 ipa-prop.h, tree-cfgcleanup.h, cfgloop.h, except.h, expr.h, stmt.h,
674 varasm.h, calls.h, explow.h, dojump.h, flags.h, tree-into-ssa.h,
675 tree-cfg.h, cfganal.h, alias.h, emit-rtl.h, optabs.h, expmed.h,
676 alloc-pool.h, cfghooks.h, rtl.h and memmodel.h.
677 (omp_find_combined_for): Declare.
678 (find_omp_clause): Renamed to omp_find_clause and moved to
679 omp-general.h.
680 (free_omp_regions): Renamed to omp_free_regions and moved to
681 omp-expand.h.
682 (replace_oacc_fn_attrib): Renamed to oacc_replace_fn_attrib and moved
683 to omp-general.h.
684 (set_oacc_fn_attrib): Renamed to oacc_set_fn_attrib and moved to
685 omp-general.h.
686 (build_oacc_routine_dims): Renamed to oacc_build_routine_dims and
687 moved to omp-general.h.
688 (get_oacc_fn_attrib): Renamed to oacc_get_fn_attrib and moved to
689 omp-general.h.
690 (oacc_fn_attrib_kernels_p): Moved to omp-general.h.
691 (get_oacc_fn_dim_size): Renamed to oacc_get_fn_dim_size and moved to
692 omp-general.c.
693 (omp_expand_local): Moved to omp-expand.h.
694 (make_gimple_omp_edges): Renamed to omp_make_gimple_edges and moved to
695 omp-expand.h.
696 (omp_finish_file): Moved to omp-offload.h.
697 (default_goacc_validate_dims): Renamed to
698 oacc_default_goacc_validate_dims and moved to omp-offload.h.
699 (offload_funcs, offload_vars): Moved to omp-offload.h.
700 * omp-low.c: Include omp-general.h, omp-offload.h and omp-grid.h.
701 (omp_region): Moved to omp-expand.c.
702 (omp_for_data_loop): Moved to omp-general.h.
703 (omp_for_data): Likewise.
704 (oacc_loop): Moved to omp-offload.c.
705 (oacc_loop_flags): Moved to omp-general.h.
706 (offload_funcs, offload_vars): Moved to omp-offload.c.
707 (root_omp_region): Moved to omp-expand.c.
708 (omp_any_child_fn_dumped): Likewise.
709 (find_omp_clause): Renamed to omp_find_clause and moved to
710 omp-general.c.
711 (is_combined_parallel): Moved to omp-expand.c.
712 (is_reference): Renamed to omp_is_reference and and moved to
713 omp-general.c.
714 (adjust_for_condition): Renamed to omp_adjust_for_condition and moved
715 to omp-general.c.
716 (get_omp_for_step_from_incr): Renamed to omp_get_for_step_from_incr
717 and moved to omp-general.c.
718 (extract_omp_for_data): Renamed to omp_extract_for_data and moved to
719 omp-general.c.
720 (workshare_safe_to_combine_p): Moved to omp-expand.c.
721 (omp_adjust_chunk_size): Likewise.
722 (get_ws_args_for): Likewise.
723 (get_base_type): Removed.
724 (dump_omp_region): Moved to omp-expand.c.
725 (debug_omp_region): Likewise.
726 (debug_all_omp_regions): Likewise.
727 (new_omp_region): Likewise.
728 (free_omp_region_1): Likewise.
729 (free_omp_regions): Renamed to omp_free_regions and moved to
730 omp-expand.c.
731 (find_combined_for): Renamed to omp_find_combined_for, made global.
732 (build_omp_barrier): Renamed to omp_build_barrier and moved to
733 omp-general.c.
734 (omp_max_vf): Moved to omp-general.c.
735 (omp_max_simt_vf): Likewise.
736 (gimple_build_cond_empty): Moved to omp-expand.c.
737 (parallel_needs_hsa_kernel_p): Likewise.
738 (expand_omp_build_assign): Moved declaration to omp-expand.c.
739 (expand_parallel_call): Moved to omp-expand.c.
740 (expand_cilk_for_call): Likewise.
741 (expand_task_call): Likewise.
742 (vec2chain): Likewise.
743 (remove_exit_barrier): Likewise.
744 (remove_exit_barriers): Likewise.
745 (optimize_omp_library_calls): Likewise.
746 (expand_omp_regimplify_p): Likewise.
747 (expand_omp_build_assign): Likewise.
748 (expand_omp_taskreg): Likewise.
749 (oacc_collapse): Likewise.
750 (expand_oacc_collapse_init): Likewise.
751 (expand_oacc_collapse_vars): Likewise.
752 (expand_omp_for_init_counts): Likewise.
753 (expand_omp_for_init_vars): Likewise.
754 (extract_omp_for_update_vars): Likewise.
755 (expand_omp_ordered_source): Likewise.
756 (expand_omp_ordered_sink): Likewise.
757 (expand_omp_ordered_source_sink): Likewise.
758 (expand_omp_for_ordered_loops): Likewise.
759 (expand_omp_for_generic): Likewise.
760 (expand_omp_for_static_nochunk): Likewise.
761 (find_phi_with_arg_on_edge): Likewise.
762 (expand_omp_for_static_chunk): Likewise.
763 (expand_cilk_for): Likewise.
764 (expand_omp_simd): Likewise.
765 (expand_omp_taskloop_for_outer): Likewise.
766 (expand_omp_taskloop_for_inner): Likewise.
767 (expand_oacc_for): Likewise.
768 (expand_omp_for): Likewise.
769 (expand_omp_sections): Likewise.
770 (expand_omp_single): Likewise.
771 (expand_omp_synch): Likewise.
772 (expand_omp_atomic_load): Likewise.
773 (expand_omp_atomic_store): Likewise.
774 (expand_omp_atomic_fetch_op): Likewise.
775 (expand_omp_atomic_pipeline): Likewise.
776 (expand_omp_atomic_mutex): Likewise.
777 (expand_omp_atomic): Likewise.
778 (oacc_launch_pack): and moved to omp-general.c, made public.
779 (OACC_FN_ATTRIB): Likewise.
780 (replace_oacc_fn_attrib): Renamed to oacc_replace_fn_attrib and moved
781 to omp-general.c.
782 (set_oacc_fn_attrib): Renamed to oacc_set_fn_attrib and moved to
783 omp-general.c.
784 (build_oacc_routine_dims): Renamed to oacc_build_routine_dims and
785 moved to omp-general.c.
786 (get_oacc_fn_attrib): Renamed to oacc_get_fn_attrib and moved to
787 omp-general.c.
788 (oacc_fn_attrib_kernels_p): Moved to omp-general.c.
789 (oacc_fn_attrib_level): Moved to omp-offload.c.
790 (get_oacc_fn_dim_size): Renamed to oacc_get_fn_dim_size and moved to
791 omp-general.c.
792 (get_oacc_ifn_dim_arg): Renamed to oacc_get_ifn_dim_arg and moved to
793 omp-general.c.
794 (mark_loops_in_oacc_kernels_region): Moved to omp-expand.c.
795 (grid_launch_attributes_trees): Likewise.
796 (grid_attr_trees): Likewise.
797 (grid_create_kernel_launch_attr_types): Likewise.
798 (grid_insert_store_range_dim): Likewise.
799 (grid_get_kernel_launch_attributes): Likewise.
800 (get_target_argument_identifier_1): Likewise.
801 (get_target_argument_identifier): Likewise.
802 (get_target_argument_value): Likewise.
803 (push_target_argument_according_to_value): Likewise.
804 (get_target_arguments): Likewise.
805 (expand_omp_target): Likewise.
806 (grid_expand_omp_for_loop): Moved to omp-grid.c.
807 (grid_arg_decl_map): Likewise.
808 (grid_remap_kernel_arg_accesses): Likewise.
809 (grid_expand_target_grid_body): Likewise.
810 (expand_omp): Renamed to omp_expand and moved to omp-expand.c.
811 (build_omp_regions_1): Moved to omp-expand.c.
812 (build_omp_regions_root): Likewise.
813 (omp_expand_local): Likewise.
814 (build_omp_regions): Likewise.
815 (execute_expand_omp): Likewise.
816 (pass_data_expand_omp): Likewise.
817 (pass_expand_omp): Likewise.
818 (make_pass_expand_omp): Likewise.
819 (pass_data_expand_omp_ssa): Likewise.
820 (pass_expand_omp_ssa): Likewise.
821 (make_pass_expand_omp_ssa): Likewise.
822 (grid_lastprivate_predicate): Renamed to
823 omp_grid_lastprivate_predicate and moved to omp-grid.c, made public.
824 (grid_prop): Moved to omp-grid.c.
825 (GRID_MISSED_MSG_PREFIX): Likewise.
826 (grid_safe_assignment_p): Likewise.
827 (grid_seq_only_contains_local_assignments): Likewise.
828 (grid_find_single_omp_among_assignments_1): Likewise.
829 (grid_find_single_omp_among_assignments): Likewise.
830 (grid_find_ungridifiable_statement): Likewise.
831 (grid_parallel_clauses_gridifiable): Likewise.
832 (grid_inner_loop_gridifiable_p): Likewise.
833 (grid_dist_follows_simple_pattern): Likewise.
834 (grid_gfor_follows_tiling_pattern): Likewise.
835 (grid_call_permissible_in_distribute_p): Likewise.
836 (grid_handle_call_in_distribute): Likewise.
837 (grid_dist_follows_tiling_pattern): Likewise.
838 (grid_target_follows_gridifiable_pattern): Likewise.
839 (grid_remap_prebody_decls): Likewise.
840 (grid_var_segment): Likewise.
841 (grid_mark_variable_segment): Likewise.
842 (grid_copy_leading_local_assignments): Likewise.
843 (grid_process_grid_body): Likewise.
844 (grid_eliminate_combined_simd_part): Likewise.
845 (grid_mark_tiling_loops): Likewise.
846 (grid_mark_tiling_parallels_and_loops): Likewise.
847 (grid_process_kernel_body_copy): Likewise.
848 (grid_attempt_target_gridification): Likewise.
849 (grid_gridify_all_targets_stmt): Likewise.
850 (grid_gridify_all_targets): Renamed to omp_grid_gridify_all_targets
851 and moved to omp-grid.c, made public.
852 (make_gimple_omp_edges): Renamed to omp_make_gimple_edges and moved to
853 omp-expand.c.
854 (add_decls_addresses_to_decl_constructor): Moved to omp-offload.c.
855 (omp_finish_file): Likewise.
856 (oacc_thread_numbers): Likewise.
857 (oacc_xform_loop): Likewise.
858 (oacc_default_dims, oacc_min_dims): Likewise.
859 (oacc_parse_default_dims): Likewise.
860 (oacc_validate_dims): Likewise.
861 (new_oacc_loop_raw): Likewise.
862 (new_oacc_loop_outer): Likewise.
863 (new_oacc_loop): Likewise.
864 (new_oacc_loop_routine): Likewise.
865 (finish_oacc_loop): Likewise.
866 (free_oacc_loop): Likewise.
867 (dump_oacc_loop_part): Likewise.
868 (dump_oacc_loop): Likewise.
869 (debug_oacc_loop): Likewise.
870 (oacc_loop_discover_walk): Likewise.
871 (oacc_loop_sibling_nreverse): Likewise.
872 (oacc_loop_discovery): Likewise.
873 (oacc_loop_xform_head_tail): Likewise.
874 (oacc_loop_xform_loop): Likewise.
875 (oacc_loop_process): Likewise.
876 (oacc_loop_fixed_partitions): Likewise.
877 (oacc_loop_auto_partitions): Likewise.
878 (oacc_loop_partition): Likewise.
879 (default_goacc_fork_join): Likewise.
880 (default_goacc_reduction): Likewise.
881 (execute_oacc_device_lower): Likewise.
882 (default_goacc_validate_dims): Likewise.
883 (default_goacc_dim_limit): Likewise.
884 (pass_data_oacc_device_lower): Likewise.
885 (pass_oacc_device_lower): Likewise.
886 (make_pass_oacc_device_lower): Likewise.
887 (execute_omp_device_lower): Likewise.
888 (pass_data_omp_device_lower): Likewise.
889 (pass_omp_device_lower): Likewise.
890 (make_pass_omp_device_lower): Likewise.
891 (pass_data_omp_target_link): Likewise.
892 (pass_omp_target_link): Likewise.
893 (find_link_var_op): Likewise.
894 (pass_omp_target_link::execute): Likewise.
895 (make_pass_omp_target_link): Likewise.
896 * Makefile.in (OBJS): Added omp-offload.o, omp-expand.o, omp-general.o
897 and omp-grid.o.
898 (GTFILES): Added omp-offload.h, omp-offload.c and omp-expand.c, removed
899 omp-low.h.
900 * gimple-fold.c: Include omp-general.h instead of omp-low.h.
901 (fold_internal_goacc_dim): Adjusted calls to
902 get_oacc_ifn_dim_arg and get_oacc_fn_dim_size to use their new names.
903 * gimplify.c: Include omp-low.h.
904 (omp_notice_variable): Adjust the call to get_oacc_fn_attrib to use
905 its new name.
906 (gimplify_omp_task): Adjusted calls to find_omp_clause to use its new
907 name.
908 (gimplify_omp_for): Likewise.
909 * lto-cgraph.c: Include omp-offload.h instead of omp-low.h.
910 * toplev.c: Include omp-offload.h instead of omp-low.h.
911 * tree-cfg.c: Include omp-general.h instead of omp-low.h. Also
912 include omp-expand.h.
913 (make_edges_bb): Adjusted the call to make_gimple_omp_edges to use its
914 new name.
915 (make_edges): Adjust the call to free_omp_regions to use its new name.
916 * tree-parloops.c: Include omp-general.h.
917 (create_parallel_loop): Adjusted the call to set_oacc_fn_attrib to use
918 its new name.
919 (parallelize_loops): Adjusted the call to get_oacc_fn_attrib to use
920 its new name.
921 * tree-ssa-loop.c: Include omp-general.h instead of omp-low.h.
922 (gate_oacc_kernels): Adjusted the call to get_oacc_fn_attrib to use
923 its new name.
924 * tree-vrp.c: Include omp-general.h instead of omp-low.h.
925 (extract_range_basic): Adjusted calls to get_oacc_ifn_dim_arg and
926 get_oacc_fn_dim_size to use their new names.
927 * varpool.c: Include omp-offload.h instead of omp-low.h.
928 * gengtype.c (open_base_files): Replace omp-low.h with omp-offload.h in
929 ifiles.
930 * config/nvptx/nvptx.c: Include omp-general.c.
931 (nvptx_expand_call): Adjusted the call to get_oacc_fn_attrib to use
932 its new name.
933 (nvptx_reorg): Likewise.
934 (nvptx_record_offload_symbol): Likewise.
935
936 2016-12-14 Martin Sebor <msebor@redhat.com>
937
938 PR middle-end/78786
939 * gimple-ssa-sprintf.c (target_dir_max): New macro.
940 (get_mpfr_format_length): New function.
941 (format_integer): Use HOST_WIDE_INT instead of int.
942 (format_floating_max): Same.
943 (format_floating): Call get_mpfr_format_length.
944 (format_directive): Use target_dir_max.
945
946 2016-12-14 Jakub Jelinek <jakub@redhat.com>
947
948 PR target/78791
949 * config/i386/i386.h (enum ix86_stack_slot): Add SLOT_STV_TEMP.
950 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies,
951 dimode_scalar_chain::convert_reg): Use SLOT_STV_TEMP instead of
952 SLOT_TEMP.
953
954 2016-12-14 Uros Bizjak <ubizjak@gmail.com>
955
956 PR target/59874
957 * config/i386/i386-builtin.def: Add __builtin_clzs and __builtin_ctzs.
958 (ix86_fold_builtin): Handle IX86_BUILTIN_CTZS and IX86_BUILTIN_CLZS.
959 * config/i386/i386.md (*ctzhi2): New insn_and_split pattern.
960 (*clzhi2): Ditto.
961
962 2016-12-14 Jakub Jelinek <jakub@redhat.com>
963
964 PR debug/77844
965 * valtrack.c: Include rtl-iter.h.
966 (struct rtx_subst_pair): Add insn field.
967 (propagate_for_debug_subst): If pair->to contains at least 2
968 regs, create a DEBUG_INSN with a debug temp before pair->insn
969 and replace from with the debug temp instead of pair->to.
970 (propagate_for_debug): Initialize p.insn.
971 * combine.c (insn_uid_check): New inline function.
972 (INSN_COST, LOG_LINKS): Use it instead of INSN_UID.
973 (find_single_use, combine_instructions,
974 cant_combine_insn_p, try_combine): Use NONDEBUG_INSN_P instead of
975 INSN_P.
976
977 2016-12-14 Martin Sebor <msebor@redhat.com>
978
979 PR c/17308
980 * builtin-attrs.def (ATTR_NONNULL_1_1, ATTR_NONNULL_1_2): Defined.
981 (ATTR_NONNULL_1_3, ATTR_NONNULL_1_4, ATTR_NONNULL_1_5): Same.
982 (ATTR_NOTHROW_NONNULL_1_1, ATTR_NOTHROW_NONNULL_1_2): Same.
983 (ATTR_NOTHROW_NONNULL_1_3, ATTR_NOTHROW_NONNULL_1_4): Same.
984 (ATTR_NOTHROW_NONNULL_1_5): Same.
985 (ATTR_NONNULL_1_FORMAT_PRINTF_1_2): Same.
986 (ATTR_NONNULL_1_FORMAT_PRINTF_2_0): Same.
987 (ATTR_NONNULL_1_FORMAT_PRINTF_2_3): Same.
988 (ATTR_NONNULL_1_FORMAT_PRINTF_3_0): Same.
989 (ATTR_NONNULL_1_FORMAT_PRINTF_3_4): Same.
990 (ATTR_NONNULL_1_FORMAT_PRINTF_4_0): Same.
991 (ATTR_NONNULL_1_FORMAT_PRINTF_4_5): Same.
992 * builtins.c (validate_arg): Add argument. Treat null pointers
993 passed to nonnull arguments as invalid.
994 (validate_arglist): Same.
995 * builtins.def (fprintf, fprintf_unlocked): Add nonnull attribute.
996 (printf, printf_unlocked, sprintf. vfprintf, vsprintf): Same.
997 (__sprintf_chk, __vsprintf_chk, __fprintf_chk, __vfprintf_chk): Same.
998 * calls.c (get_nonnull_ags, maybe_warn_null_arg): New functions.
999 (initialize_argument_information): Diagnose null pointers passed to
1000 arguments declared nonnull.
1001 * calls.h (get_nonnull_args): Declared.
1002
1003 2016-12-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1004
1005 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): On ISA
1006 3.0/power9, add support to use the VEXTU{B,H,W}{L,R}X extract
1007 instructions.
1008 * config/rs6000/vsx.md (VSr2): Add IEEE 128-bit floating point
1009 type constraint registers.
1010 (VSr3): Likewise.
1011 (FL_CONV): New mode iterator for binary floating types that have a
1012 direct conversion from 64-bit integer to floating point.
1013 (vsx_extract_<mode>_p9): Add support for the ISA 3.0/power9
1014 VEXTU{B,H,W}{L,R}X extract instructions.
1015 (vsx_extract_<mode>_p9 splitter): Add splitter to load up the
1016 extract byte position into the GPR if we are using the
1017 VEXTU{B,H,W}{L,R}X extract instructions.
1018 (vsx_extract_<mode>_di_p9): Support extracts to GPRs.
1019 (vsx_extract_<mode>_store_p9): Support extracting to GPRs so that
1020 we can use reg+offset address instructions.
1021 (vsx_extract_<mode>_var): Support extracts to GPRs.
1022 (vsx_extract_<VSX_EXTRACT_I:mode>_<SDI:mode>_var): New combiner
1023 insn to combine vector extracts with zero_extend.
1024 (vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>): Optimize
1025 extracting a small integer vector element and converting it to a
1026 floating point type.
1027 (vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Likewise.
1028 (UNSPEC_XXEXTRACTUW): New unspec.
1029 (UNSPEC_XXINSERTW): Likewise.
1030 (vextract4b): Add support for the vec_vextract4b built-in
1031 function.
1032 (vextract4b_internal): Likewise.
1033 (vinsert4b): Add support for the vec_insert4b built-in function.
1034 Include both a version that inserts element 1 from a V4SI object
1035 and one that inserts a DI object.
1036 (vinsert4b_internal): Likewise.
1037 (vinsert4b_di): Likewise.
1038 (vinsert4b_di_internal): Likewise.
1039 * config/rs6000/predicates.md (const_0_to_11_operand): New
1040 predicate, match 0..11.
1041 * config/rs6000/rs6000-builtin.def (BU_P9V_VSX_3): Set built-in
1042 type to ternary, not binary.
1043 (BU_P9V_64BIT_VSX_3): Likewise.
1044 (P9V_BUILTIN_VEXTRACT4B): Add support for vec_vinsert4b and
1045 vec_extract4b non-overloaded built-in functions.
1046 (P9V_BUILTIN_VINSERT4B): Likewise.
1047 (P9V_BUILTIN_VINSERT4B_DI): Likewise.
1048 (P9V_BUILTIN_VEC_VEXTULX): Move to section that adds 2 operand ISA
1049 3.0 built-in functions.
1050 (P9V_BUILTIN_VEC_VEXTURX): Likewise.
1051 (P9V_BUILTIN_VEC_VEXTRACT4B): Add support for overloaded
1052 vec_insert4b and vec_extract4 built-in functions.
1053 (P9V_BUILTIN_VEC_VINSERT4B): Likewise.
1054 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1055 overloaded support for vec_vinsert4b and vec_extract4b.
1056 * config/rs6000/rs6000.c (altivec_expand_builtin): Add checks for
1057 the vec_insert4b and vec_extract4b byte number being a constant in
1058 the range 0..11.
1059 * config/rs6000/altivec.h (vec_vinsert4b): Support vec_vinsert4b
1060 and vec_extract4b built-in functions.
1061 * doc/extend.doc (PowerPC VSX built-in functions): Document
1062 vec_insert4b and vec_extract4b.
1063
1064 2016-12-14 Martin Liska <mliska@suse.cz>
1065
1066 * gimple-pretty-print.c (dump_probability): New function.
1067 (dump_edge_probability): Use the function.
1068 (dump_gimple_label): Likewise.
1069 (dump_gimple_bb_header): Likewise.
1070
1071 2016-12-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1072 Jakub Jelinek <jakub@redhat.com>
1073
1074 * tree-ssa-strlen.c (fold_strstr_to_memcmp): New function.
1075 (strlen_optimize_stmt): Call fold_strstr_to_memcmp.
1076
1077 2016-12-14 Eric Botcazou <ebotcazou@adacore.com>
1078
1079 * lra-constraints.c (process_address_1): Do not attempt to decompose
1080 addresses for MEMs that satisfy fixed-form constraints.
1081
1082 2016-12-14 Richard Biener <rguenther@suse.de>
1083
1084 PR tree-optimization/78788
1085 * tree-vrp.c (set_value_range): Allow [-INF(OVF), +INF(OVF)].
1086 (set_and_canonicalize_value_range): Do not drop the above to
1087 VARYING.
1088
1089 2016-12-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1090
1091 * config/rs6000/rs600.c (rs6000_builtin_vectorization_cost):
1092 Adjust unaligned load cost.
1093
1094 2016-12-13 Uros Bizjak <ubizjak@gmail.com>
1095
1096 PR target/78794
1097 * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain):
1098 Calculate additional gain for andnot for targets without BMI.
1099
1100 2016-12-13 Carl Love <cel@us.ibm.com>
1101
1102 * config/rs6000/rs6000-c.c: Add built-in support for
1103 vector float vec_pack (vector double, vector double)
1104 vector double vec_sld (vector double, vector double)
1105 * config/rs6000/rs6000.c: Add icode check for vsldoi_v2df to allow
1106 4-bit unsigned literal.
1107 * config/rs6000/rs6000-builtin.def: Add definition for VSLDOI_2DF
1108 * doc/extend.texi: Update the built-in documentation file for the
1109 new powerpc vec_pack and vec_sld built-ins.
1110
1111 2016-12-13 Martin Liska <mliska@suse.cz>
1112
1113 * sanopt.c (sanopt_optimize_walker): Set contains_asan_mark.
1114 (sanopt_optimize): Add new argument.
1115 (sanitize_asan_mark_unpoison): New function.
1116 (maybe_contains_asan_check): Likewise.
1117 (sanitize_asan_mark_poison): Likewise.
1118 (pass_sanopt::execute): Call the new functions.
1119
1120 2016-12-13 Martin Liska <mliska@suse.cz>
1121
1122 PR tree-optimization/78428
1123 * expr.c (store_constructor_field): Add new arguments to the function.
1124 (store_constructor): Set up bitregion_end and add gcc_unreachable to
1125 fields that have either non-constant size or (and) offset.
1126
1127 2016-12-13 Marek Polacek <polacek@redhat.com>
1128
1129 * tree-data-ref.c (compute_overlap_steps_for_affine_univar): Change
1130 parameters' type from int to HOST_WIDE_INT.
1131 (compute_overlap_steps_for_affine_1_2): Change parameters' type from
1132 int to HOST_WIDE_INT.
1133 (build_classic_dist_vector_1): Likewise.
1134 (add_multivariate_self_dist): Likewise.
1135
1136 2016-12-13 Michael Matz <matz@suse.de>
1137
1138 PR tree-optimization/78725
1139 * tree-ssa-loop-split.c (split_at_bb_p): Check for overflow and
1140 at correct use point.
1141
1142 2016-12-13 Martin Liska <mliska@suse.cz>
1143
1144 * asan.c (asan_expand_mark_ifn): Use renamed
1145 BUILT_IN_ASAN_{UN}CLOBBER_N to BUILT_IN_ASAN_{UN}POISON_STACK_MEMORY.
1146 * sanitizer.def: Likewise.
1147
1148 2016-12-13 James Greenhalgh <james.greenhalgh@arm.com>
1149
1150 * doc/extend.texi (Half-Precision): Update to document current
1151 compiler behaviour.
1152
1153 2016-12-13 James Greenhalgh <james.greenhalgh@arm.com>
1154
1155 * doc/extend.texi (Floating Types): Document availability of
1156 _Float16 on ARM/AArch64.
1157
1158 2016-12-13 Richard Biener <rguenther@suse.de>
1159
1160 PR tree-optimization/78699
1161 * tree-vect-data-refs.c (vect_analyze_group_access_1): Limit
1162 group size.
1163
1164 2016-12-13 Richard Biener <rguenther@suse.de>
1165
1166 PR middle-end/78742
1167 * tree.c (cst_and_fits_in_hwi): Look if the actual value fits.
1168 * tree-object-size.c (compute_builtin_object_size): Use
1169 tree_fits_shwi_p.
1170 * tree-data-ref.c (initialize_matrix_A): Remove excess assert.
1171
1172 2016-12-13 Martin Liska <mliska@suse.cz>
1173
1174 * asan.c (asan_mark_poison_p): Remove.
1175 (asan_mark_p): New function.
1176 (transform_statements): Use the function.
1177 (asan_expand_mark_ifn): Do not use masked enum.
1178 * asan.h (enum asan_mark_flags): Declare it via a macro.
1179 * gimple-pretty-print.c (dump_gimple_call_args): Dump first
1180 argument of ASAN_MARK.
1181 * gimplify.c (build_asan_poison_call_expr): Use new enum values.
1182 (asan_poison_variable): Likewise.
1183
1184 2016-12-13 Jakub Jelinek <jakub@redhat.com>
1185
1186 PR ipa/77905
1187 * ipa-pure-const.c (cdtor_p): Return true for
1188 DECL_STATIC_{CON,DE}STRUCTOR even when it is
1189 DECL_LOOPING_CONST_OR_PURE_P.
1190
1191 2016-12-12 Jakub Jelinek <jakub@redhat.com>
1192
1193 PR tree-optimization/78777
1194 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge,
1195 insert_initializers): Use stmt_ends_bb_p instead of is_ctrl_stmt.
1196
1197 PR other/78766
1198 * opt-functions.awk (opt_args): Use [{] instead of { in regexps.
1199 Formatting fix.
1200
1201 2016-12-12 Martin Sebor <msebor@redhat.com>
1202
1203 PR middle-end/78622
1204 PR middle-end78606
1205 * gimple-ssa-sprintf.c (min_bytes_remaining): Use res.knownrange
1206 rather than res.bounded.
1207 (get_width_and_precision): Set precision to -1 when negative.
1208 (adjust_range_for_overflow): New function.
1209 (format_integer): Correct the handling of the space, plus, and pound
1210 flags, and the special case of zero precision.
1211 Always set res.bounded to true unless either precision or width
1212 is specified and unknown.
1213 Call adjust_range_for_overflow.
1214 Avoid use zero as the shortest value when precision is specified
1215 but unknown.
1216 (format_directive): Remove vestigial quoting. Always inform of
1217 argument value or range when it's available.
1218 (add_bytes): Correct the computation of boundrange used to
1219 decide whether a warning is of a "maybe" or "defnitely" kind.
1220
1221 2016-12-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
1222
1223 * combine.c (change_zero_ext): Handle mode expanding zero_extracts.
1224
1225 2016-12-12 Uros Bizjak <ubizjak@gmail.com>
1226
1227 PR target/78738
1228 * config/i386/i386.h (X87_ENABLE_ARITH): Also enable for
1229 flag_unsafe_math_optimizations.
1230 (X87_ENABLE_FLOAT): Ditto.
1231
1232 2016-12-12 Marek Polacek <polacek@redhat.com>
1233
1234 PR middle-end/78716
1235 * gimplify.c (gimplify_va_arg_expr): Don't require ADDR_EXPR for
1236 Case 1; check POINTER_TYPE_P instead.
1237
1238 2016-12-12 Bernd Schmidt <bschmidt@redhat.com>
1239
1240 PR rtl-optimization/78669
1241 * ira.c (combine_and_move_insns): When deleting an insn, clear the
1242 replace flag for all used regs in that insn.
1243
1244 2016-12-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
1245
1246 * config/arm/arm-opts.h: Move struct arm_arch_core_flag and
1247 arm_arch_core_flags to ...
1248 * common/config/arm/arm-common.c: There.
1249
1250 2016-12-12 Eric Botcazou <ebotcazou@adacore.com>
1251
1252 * config/sparc/constraints.md (T): Use special memory constraint.
1253 (U): Minor tweak.
1254 (W): Add TARGET_ARCH64 test.
1255 * config/sparc/sparc.md (*movdi_insn_sp32): Replace 'W' with 'T'.
1256 (*movdf_insn_sp32): Likewise.
1257 (*mov<VM64:mode>_insn_sp32): Likewise. Replace 'e' with 'f' in
1258 conjunction with offsettable memory references.
1259
1260 2016-12-11 Sandra Loosemore <sandra@codesourcery.com>
1261
1262 * config/nios2/nios2.c (nios2_emit_move_sequence): Call copy_rtx
1263 to avoid shared structure error.
1264
1265 2016-12-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1266
1267 PR target/78695
1268 * config/rs6000/rs6000.c (find_alignment_op): Discard from
1269 consideration any artificial definition.
1270
1271 2016-12-11 Iain Sandoe <iain@codesourcery.com>
1272
1273 * configure.ac (CROSS directory tests): Remove the assumption that
1274 Darwin hosts contain suitable target sysroots in "/".
1275 * configure: Regenerate.
1276
1277 2016-12-11 Iain Sandoe <iain@codesourcery.com>
1278
1279 PR rtl-optimization/71496
1280 * config/rs6000/darwin.md (load_macho_picbase_si): Mark as non-
1281 copyable. (load_macho_picbase_di, reload_macho_picbase_si,
1282 reload_macho_picbase_di): Likewise.
1283
1284 2012-12-11 John David Anglin <danglin@gcc.gnu.org>
1285
1286 * config/pa/pa.c (pa_callee_copies): New function.
1287 * config/pa/pa.opt (mcaller-copies): New option.
1288 * doc/invoke.texi (mcaller-copies): Document option.
1289
1290 2016-12-11 Uros Bizjak <ubizjak@gmail.com>
1291
1292 PR target/70799
1293 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p)
1294 <case ASHIFT, case LSHIFTRT>: Consider all constant shifts.
1295 Add FIXME comment.
1296 (dimode_scalar_chain::compute_convert_gain): Reduce gain for
1297 constant shifts larger or equal than 32.
1298
1299 2016-12-11 Roger Pau Monné <roger.pau@citrix.com>
1300
1301 * config/i386/x86-64.h: Append --32 to the assembler options when
1302 -m16 is used on non-glibc systems as well.
1303
1304 2016-12-10 Allan Sandfeld Jensen <allan.jensen@qt.io>
1305
1306 PR target/70118
1307 * config/i386/mmintrin.h (__m64_u): New type
1308 * config/i386/emmintrin.h (_mm_loadl_epi64, _mm_storel_epi64):
1309 Make the allowed unaligned memory access explicit.
1310
1311 2016-12-10 Krister Walfridsson <krister.walfridsson@gmail.com>
1312
1313 * config.gcc (i386-*-netbsd*): Make i486 the default arch on NetBSD.
1314 Generally use cpu generic.
1315
1316 2016-12-10 Jakub Jelinek <jakub@redhat.com>
1317 Marc Glisse <marc.glisse@inria.fr>
1318
1319 PR tree-optimization/78720
1320 * match.pd (A < 0 ? C : 0): Only optimize for signed A. If shift
1321 is negative, sign extend to @1's type and than AND with C.
1322
1323 2016-12-10 Jakub Jelinek <jakub@redhat.com>
1324
1325 PR fortran/78758
1326 * tree-object-size.c (compute_object_offset) <case ARRAY_REF>: Handle
1327 non-zero low bound or non-standard element sizes.
1328
1329 PR sanitizer/78708
1330 * lto-streamer-in.c (input_function): In addition to debug stmts
1331 without -g, remove IFN_*SAN_* calls if corresponding flag_sanitize
1332 bit is not enabled.
1333
1334 2016-12-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1335
1336 * config/rs6000/rs6000-passes.def: New file.
1337 * config/rs6000/rs6000-protos.h: Declare make_pass_analyze_swaps.
1338 * config/rs6000/rs6000.c (rs6000_option_override): Remove
1339 registration of machine-specific passes.
1340 (pass_analyze_swaps::clone): New function.
1341 * config/rs6000/t-rs6000: Define PASSES_EXTRA.
1342
1343 2016-12-09 Kugan Vivekanandarajah <kuganv@linaro.org>
1344
1345 PR ipa/78721
1346 * ipa-cp.c (propagate_vr_accross_jump_function): Call
1347 drop_tree_overflow after fold_convert.
1348
1349 2016-12-09 Jakub Jelinek <jakub@redhat.com>
1350
1351 PR target/72742
1352 * config/rs6000/rs6000.md (*and<mode>3_imm_mask_dot,
1353 *and<mode>3_imm_mask_dot2): Add rs6000_is_valid_and_mask to insn
1354 condition.
1355
1356 2016-12-09 Segher Boessenkool <segher@kernel.crashing.org>
1357
1358 PR target/78683
1359 * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Use
1360 GET_MODE_BITSIZE. Return 2.
1361 (CTZ_DEFINED_VALUE_AT_ZERO): Use GET_MODE_BITSIZE. Return 2. Handle
1362 TARGET_POPCNTD the same as TARGET_CTZ.
1363 * config/rs6000/rs6000.md (ctz<mode>2): Reimplement.
1364 (ffs<mode>2): Reimplement.
1365
1366 2016-12-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
1367
1368 PR rtl-optimization/78255
1369 * gcc/postreload.c (reload_cse_simplify): Do not CSE a function if
1370 NO_FUNCTION_CSE is true.
1371
1372 2016-12-09 Cesar Philippidis <cesar@codesourcery.com>
1373
1374 PR ipa/78027
1375 * ipa-icf.c (sem_function::parse): Don't process functions with
1376 oacc decl attributes, as they may be OpenACC routines.
1377
1378 2016-12-09 David Malcolm <dmalcolm@redhat.com>
1379
1380 * rtl.h (get_mem_attrs): Add "const" qualifier to returned
1381 pointer.
1382
1383 2016-12-09 Nathan Sidwell <nathan@acm.org>
1384
1385 PR C++/78550
1386 * convert.c (convert_to_integer_1): Maybe fold conversions to
1387 integral types with fewer bits than its mode.
1388
1389 2016-12-09 Martin Liska <mliska@suse.cz>
1390
1391 * tree-pretty-print.c (pretty_print_string): Escape non-printable
1392 chars in strings.
1393
1394 2016-12-09 Jakub Jelinek <jakub@redhat.com>
1395
1396 PR tree-optimization/78726
1397 * tree-ssa-reassoc.c (make_new_ssa_for_def): Add OPCODE and OP
1398 argument. For lhs uses in debug stmts, don't replace lhs with
1399 new_lhs, but with a debug temp set to new_lhs opcode op.
1400 (make_new_ssa_for_all_defs): Add OPCODE argument, pass OPCODE and
1401 OP down to make_new_ssa_for_def.
1402 (zero_one_operation): Call make_new_ssa_for_all_defs even when
1403 stmts_to_fix is empty, if *def has not changed yet. Pass
1404 OPCODE to make_new_ssa_for_all_defs.
1405
1406 2016-12-08 Martin Sebor <msebor@redhat.com>
1407
1408 PR c/78284
1409 * builtin-attrs.def (ATTR_ALLOC_SIZE, ATTR_RETURNS_NONNULL): New
1410 identifier tree nodes.
1411 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): New attribute list.
1412 (ATTR_MALLOC_SIZE_1_NOTHROW_LIST): Same.
1413 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Same.
1414 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Same.
1415 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Same.
1416 * builtins.c (expand_builtin_alloca): Call
1417 maybe_warn_alloc_args_overflow.
1418 * builtins.def (aligned_alloc, calloc, malloc, realloc):
1419 Add attribute alloc_size.
1420 (alloca): Add attribute alloc_size and returns_nonnull.
1421 * calls.h (maybe_warn_alloc_args_overflow): Declare.
1422 * calls.c (alloc_max_size, operand_signed_p): New functions.
1423 (maybe_warn_alloc_args_overflow): Define.
1424 (initialize_argument_information): Diagnose overflow in functions
1425 declared with attaribute alloc_size.
1426 * doc/invoke.texi (Warning Options): Document -Walloc-zero and
1427 -Walloc-size-larger-than.
1428
1429 2016-12-08 Vladimir Makarov <vmakarov@redhat.com>
1430
1431 PR rtl-optimization/78671
1432 * lra-assign.c (find_hard_regno_for_1): Check prohibited regs for an
1433 allocno class.
1434
1435 2016-12-08 Uros Bizjak <ubizjak@gmail.com>
1436
1437 * config/i386/i386.h (HARD_REGNO_NREGS): Use GENERAL_REGNO_P.
1438 (HARD_REGNO_NREGS_HAS_PADDING): Ditto. Simplify macro.
1439
1440 2015-12-08 Wilco Dijkstra <wdijkstr@arm.com>
1441
1442 PR target/78733
1443 * config/aarch64/aarch64.c (aarch64_classify_address):
1444 Set load_store_pair_p for TImode and TFmode.
1445
1446 2016-12-08 David Malcolm <dmalcolm@redhat.com>
1447
1448 * emit-rtl.c (gen_reg_rtx): Move regno_pointer_align and
1449 regno_reg_rtx resizing logic to...
1450 (emit_status::ensure_regno_capacity): ...this new method,
1451 and ensure that the buffers are large enough.
1452 (init_emit): Allocate regno_reg_rtx using ggc_cleared_vec_alloc
1453 rather than ggc_vec_alloc.
1454 * function.h (emit_status::ensure_regno_capacity): New method.
1455
1456 2016-12-08 Dmitry Vyukov <dvyukov@google.com>
1457
1458 * opts.c (finish_options): Enable -fsanitize-address-use-after-scope
1459 only if -fsanitize=address is enabled (not -fsanitize=kernel-address).
1460 * doc/invoke.texi (-fsanitize=kernel-address):
1461 Don't say that it enables -fsanitize-address-use-after-scope.
1462
1463 2016-12-08 Bin Cheng <bin.cheng@arm.com>
1464
1465 PR middle-end/78684
1466 * tree-vect-loop-manip.c (create_intersect_range_checks_index): Check
1467 sign bit for index step of data reference.
1468
1469 2016-12-08 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
1470
1471 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1472 Handle SYMBOL_SMALL_TLSGD for ILP32.
1473 * config/aarch64/aarch64.md : tlsgd_small modified into
1474 tlsgd_small_<mode> to support SImode and DImode.
1475 *tlsgd_small modified into *tlsgd_small_<mode> to support SImode and
1476 DImode.
1477
1478 2016-12-08 Andrew Pinski <apinski@cavium.com>
1479
1480 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1481 Access the lower part of RTX appropriately.
1482
1483 2016-12-07 David Malcolm <dmalcolm@redhat.com>
1484
1485 * genpreds.c (write_tm_constrs_h): Update for renaming of
1486 rtx_reader_ptr to md_reader_ptr.
1487 (write_tm_preds_h): Likewise.
1488 (write_insn_preds_c): Likewise.
1489 * read-md.c (rtx_reader_ptr): Rename to...
1490 (md_reader_ptr): ...this, and convert from an
1491 rtx_reader * to a md_reader *.
1492 (rtx_reader::set_md_ptr_loc): Rename to...
1493 (md_reader::set_md_ptr_loc): ...this.
1494 (rtx_reader::get_md_ptr_loc): Rename to...
1495 (md_reader::get_md_ptr_loc): ...this.
1496 (rtx_reader::copy_md_ptr_loc): Rename to...
1497 (md_reader::copy_md_ptr_loc): ...this.
1498 (rtx_reader::fprint_md_ptr_loc): Rename to...
1499 (md_reader::fprint_md_ptr_loc): ...this.
1500 (rtx_reader::print_md_ptr_loc): Rename to...
1501 (md_reader::print_md_ptr_loc): ...this.
1502 (rtx_reader::join_c_conditions): Rename to...
1503 (md_reader::join_c_conditions): ...this.
1504 (rtx_reader::fprint_c_condition): ...this.
1505 (rtx_reader::print_c_condition): Rename to...
1506 (md_reader::print_c_condition): ...this.
1507 (fatal_with_file_and_line): Update for renaming of
1508 rtx_reader_ptr to md_reader_ptr.
1509 (rtx_reader::require_char): Rename to...
1510 (md_reader::require_char): ...this.
1511 (rtx_reader::require_char_ws): Rename to...
1512 (md_reader::require_char_ws): ...this.
1513 (rtx_reader::require_word_ws): Rename to...
1514 (md_reader::require_word_ws): ...this.
1515 (rtx_reader::read_char): Rename to...
1516 (md_reader::read_char): ...this.
1517 (rtx_reader::unread_char): Rename to...
1518 (md_reader::unread_char): ...this.
1519 (rtx_reader::peek_char): Rename to...
1520 (md_reader::peek_char): ...this.
1521 (rtx_reader::read_name): Rename to...
1522 (md_reader::read_name): ...this.
1523 (rtx_reader::read_escape): Rename to...
1524 (md_reader::read_escape): ...this.
1525 (rtx_reader::read_quoted_string): Rename to...
1526 (md_reader::read_quoted_string): ...this.
1527 (rtx_reader::read_braced_string): Rename to...
1528 (md_reader::read_braced_string): ...this.
1529 (rtx_reader::read_string): Rename to...
1530 (md_reader::read_string): ...this.
1531 (rtx_reader::read_skip_construct): Rename to...
1532 (md_reader::read_skip_construct): ...this.
1533 (rtx_reader::handle_constants): Rename to...
1534 (md_reader::handle_constants): ...this.
1535 (rtx_reader::traverse_md_constants): Rename to...
1536 (md_reader::traverse_md_constants): ...this.
1537 (rtx_reader::handle_enum): Rename to...
1538 (md_reader::handle_enum): ...this.
1539 (rtx_reader::lookup_enum_type): Rename to...
1540 (md_reader::lookup_enum_type): ...this.
1541 (rtx_reader::traverse_enum_types): Rename to...
1542 (md_reader::traverse_enum_types): ...this.
1543 (rtx_reader::rtx_reader): Rename to...
1544 (md_reader::md_reader): ...this, and update for renaming of
1545 rtx_reader_ptr to md_reader_ptr.
1546 (rtx_reader::~rtx_reader): Rename to...
1547 (md_reader::~md_reader): ...this, and update for renaming of
1548 rtx_reader_ptr to md_reader_ptr.
1549 (rtx_reader::handle_include): Rename to...
1550 (md_reader::handle_include): ...this.
1551 (rtx_reader::handle_file): Rename to...
1552 (md_reader::handle_file): ...this.
1553 (rtx_reader::handle_toplevel_file): Rename to...
1554 (md_reader::handle_toplevel_file): ...this.
1555 (rtx_reader::get_current_location): Rename to...
1556 (md_reader::get_current_location): ...this.
1557 (rtx_reader::add_include_path): Rename to...
1558 (md_reader::add_include_path): ...this.
1559 (rtx_reader::read_md_files): Rename to...
1560 (md_reader::read_md_files): ...this.
1561 * read-md.h (class rtx_reader): Split into...
1562 (class md_reader): ...new class.
1563 (rtx_reader_ptr): Rename to...
1564 (md_reader_ptr): ...this, and convert to a md_reader *.
1565 (class noop_reader): Update base class to be md_reader.
1566 (class rtx_reader): Reintroduce as a subclass of md_reader.
1567 (rtx_reader_ptr): Reintroduce as a rtx_reader *.
1568 (read_char): Update for renaming of rtx_reader_ptr to
1569 md_reader_ptr.
1570 (unread_char): Likewise.
1571 * read-rtl.c (rtx_reader_ptr): New global.
1572 (rtx_reader::apply_iterator_to_string): Rename to...
1573 (md_reader::apply_iterator_to_string): ...this.
1574 (rtx_reader::copy_rtx_for_iterators): Rename to...
1575 (md_reader::copy_rtx_for_iterators): ...this.
1576 (rtx_reader::read_conditions): Rename to...
1577 (md_reader::read_conditions): ...this.
1578 (rtx_reader::record_potential_iterator_use): Rename to...
1579 (md_reader::record_potential_iterator_use): ...this.
1580 (rtx_reader::read_mapping): Rename to...
1581 (md_reader::read_mapping): ...this.
1582 (rtx_reader::read_rtx): Use rtx_reader_ptr when calling
1583 read_rtx_code.
1584 (rtx_reader::read_rtx_operand): Use get_string_obstack rather
1585 than directly accessing m_string_obstack.
1586 (rtx_reader::rtx_reader): New ctor.
1587 (rtx_reader::~rtx_reader): New dtor.
1588
1589 2016-12-07 Martin Sebor <msebor@redhat.com>
1590
1591 PR middle-end/77784
1592 PR middle-end/78149
1593 PR middle-end/78138
1594
1595 * builtins.c (expand_builtin_strcat, expand_builtin_strncat): New
1596 functions.
1597 (compute_dest_size, get_size_range, check_sizes, check_strncat_sizes)
1598 (check_memop_sizes): Same.
1599 (expand_builtin_memcpy): Call check memop_sizes.
1600 (expand_builtin_mempcpy): Same.
1601 (expand_builtin_memset): Same,
1602 (expand_builtin_bzero): Same.
1603 (expand_builtin_memory_chk): Call check_sizes.
1604 (expand_builtin_strcpy): Same.
1605 (expand_builtin_strncpy): Same.
1606 (maybe_emit_sprintf_chk_warning): Same.
1607 (expand_builtin): Handle strcat and strncat.
1608 (fini_object_sizes): Reset pointers.
1609 (compute_object_size): New function.
1610 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
1611 Avoid issuing warnings also issued during built-in expansion.
1612 * doc/invoke.texi (Warning Options): Document -Wstringop-overflow.
1613
1614 2016-12-07 Michael Meissner <meissner@linux.vnet.ibm.com>
1615
1616 PR target/72717
1617 * config/rs6000/rs6000.c (rs6000_expand_vector_init): If the
1618 V2DImode elements are SUBREG's convert the result into DImode
1619 rather than failing in emit_move_insn.
1620
1621 2016-12-07 Jakub Jelinek <jakub@redhat.com>
1622
1623 * builtins.c (fold_builtin_strstr): Removed.
1624 (fold_builtin_2): Don't call fold_builtin_strstr.
1625 * gimple-fold.c (gimple_fold_builtin_strchr): Check is_strrchr
1626 earlier in the strrchr (x, 0) -> strchr (x, 0) optimization.
1627 (gimple_fold_builtin_strstr): New function.
1628 (gimple_fold_builtin): Call it.
1629 * fold-const-call.c (fold_const_call): Handle CFN_BUILT_IN_STRSTR.
1630
1631 PR c++/78692
1632 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Set lhs
1633 var to lhs of new_stmt right before noreturn handling rather than to
1634 lhs of e->call_stmt early.
1635
1636 2016-12-07 David Malcolm <dmalcolm@redhat.com>
1637
1638 * read-md.c (rtx_reader::require_char): New method.
1639 (require_char_ws): Convert from function to...
1640 (rtx_reader::require_char_ws): ...method.
1641 (rtx_reader::require_word_ws): New method.
1642 * read-md.h (rtx_reader::require_char): New method decl.
1643 (require_char_ws): Remove global decl in favor of...
1644 (rtx_reader::require_char_ws): ...new method decl.
1645 (rtx_reader::require_word_ws): New method decl.
1646 (rtx_reader::peek_char): New method decl.
1647
1648 2016-12-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
1649
1650 PR rtl-optimization/78617
1651 * lra-remat.c (do_remat): Initialize live_hard_regs from live in
1652 registers, also setting hard registers mapped to pseudo registers.
1653
1654 2016-12-07 David Malcolm <dmalcolm@redhat.com>
1655
1656 * cfgexpand.c (pass_expand::execute): Move stack initializations
1657 to rtl_data::init_stack_alignment and call it.
1658 * emit-rtl.c (rtl_data::init_stack_alignment): New method.
1659 * emit-rtl.h (rtl_data::init_stack_alignment): New method.
1660
1661 2016-12-07 Wilco Dijkstra <wdijkstr@arm.com>
1662
1663 * gcc/ira.c (ira_setup_eliminable_regset): Initialize crtl->is_leaf.
1664 (ira): Move initialization of crtl->is_leaf earlier.
1665
1666 2016-12-07 Wilco Dijkstra <wdijkstr@arm.com>
1667
1668 * config/aarch64/aarch64.md (movti_aarch64): Change Ump to m.
1669 (movtf_aarch64): Likewise.
1670 * config/aarch64/aarch64.c (aarch64_classify_address):
1671 Use correct intersection of offsets.
1672 (aarch64_legitimize_address_displacement): Use 9-bit signed offsets.
1673 (aarch64_legitimize_address): Use 9-bit signed offsets for TI/TF mode.
1674 Use 7-bit signed scaled mode for modes > 16 bytes.
1675
1676 2016-12-07 James Greenhalgh <james.greenhalgh@arm.com>
1677
1678 PR rtl-optimization/78561
1679 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p) Use
1680 constant_pool_empty_p in place of get_pool_size_upper_bound.
1681 (rs6000_stack_info): Likewise.
1682 (rs6000_emit_prologue): Likewise.
1683 (rs6000_elf_declare_function_name): Likewise.
1684 (rs6000_set_up_by_prologue): Likewise.
1685 (rs6000_can_eliminate): Likewise.
1686 * output.h (get_pool_size_upper_bound): Delete.
1687 (constant_pool_empty_p): New.
1688 * varasm.c (get_pool_size_upper_bound): Delete
1689 (constant_pool_empty_p): New.
1690
1691 2016-12-07 Bin Cheng <bin.cheng@arm.com>
1692
1693 PR tree-optimization/78691
1694 * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
1695 Require integral type for the outer expression.
1696
1697 2016-12-07 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
1698
1699 * config/aarch64/aarch64.c
1700 (aarch64_builtin_support_vector_misalignment): New.
1701 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): Define.
1702
1703 2016-12-06 David Malcolm <dmalcolm@redhat.com>
1704
1705 PR bootstrap/78705
1706 * config/i386/i386.c (ix86_test_dumping_memory_blockage):
1707 Conditionalize the string comparison on Pmode == DImode.
1708
1709 2016-12-06 Tom de Vries <tom@codesourcery.com>
1710
1711 PR tree-optimization/67955
1712 * tree-ssa-alias.c (same_addr_size_stores_p): New function.
1713 (stmt_kills_ref_p): Use it.
1714
1715 2016-12-06 Eric Botcazou <ebotcazou@adacore.com>
1716
1717 PR middle-end/78700
1718 * calls.c (expand_call): Move back call to prepare_call_address.
1719
1720 2016-12-06 Michael Meissner <meissner@linux.vnet.ibm.com>
1721
1722 PR target/78658
1723 * config/rs6000/rs6000.md (zero_extendqi<mode>2): Use ^ instead of
1724 ?* constraints for the ISA 3.0 patterns, so the register allocator
1725 is more likely to allocate QImode/HImode to vector registers for
1726 conversion to floating point unless a reload is needed.
1727 (zero_extendhi<mode>2): Likewise.
1728 (float<QHI:mode><FP_ISA3:mode>2_internal): Properly deal with the
1729 first alternative which is converting QImode/HImode to floating
1730 point and the QImode/HImode value is in a vector register, and
1731 does not allocate the second pseudo register. Remove zero
1732 extending into traditional floating point registers, since the
1733 instruction used only works on traditional altivec registers.
1734 (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
1735
1736 2016-12-06 David Malcolm <dmalcolm@redhat.com>
1737
1738 * config/i386/i386.c: Include print-rtl.h.
1739 (selftest::ix86_test_dumping_memory_blockage): New function.
1740 (selftest::ix86_run_selftests): Call it.
1741 * print-rtl-function.c (print_rtx_function): Create an
1742 rtx_reuse_manager and use it.
1743 * print-rtl.c: Include "rtl-iter.h".
1744 (rtx_writer::rtx_writer): Add reuse_manager param.
1745 (rtx_reuse_manager::rtx_reuse_manager): New ctor.
1746 (uses_rtx_reuse_p): New function.
1747 (rtx_reuse_manager::preprocess): New function.
1748 (rtx_reuse_manager::has_reuse_id): New function.
1749 (rtx_reuse_manager::seen_def_p): New function.
1750 (rtx_reuse_manager::set_seen_def): New function.
1751 (rtx_writer::print_rtx): If "in_rtx" has a reuse ID, print it as a
1752 prefix the first time in_rtx is seen, and print reuse_rtx
1753 subsequently.
1754 (print_inline_rtx): Supply NULL for new reuse_manager param.
1755 (debug_rtx): Likewise.
1756 (print_rtl): Likewise.
1757 (print_rtl_single): Likewise.
1758 (rtx_writer::print_rtl_single_with_indent): Likewise.
1759 * print-rtl.h: Include bitmap.h when building for host.
1760 (rtx_writer::rtx_writer): Add reuse_manager param.
1761 (rtx_writer::m_rtx_reuse_manager): New field.
1762 (class rtx_reuse_manager): New class.
1763 * rtl-tests.c (selftest::assert_rtl_dump_eq): Add reuse_manager
1764 param and use it when constructing rtx_writer.
1765 (selftest::test_dumping_rtx_reuse): New function.
1766 (selftest::rtl_tests_c_tests): Call it.
1767 * selftest-rtl.h (class rtx_reuse_manager): New forward decl.
1768 (selftest::assert_rtl_dump_eq): Add reuse_manager param.
1769 (ASSERT_RTL_DUMP_EQ): Supply NULL for reuse_manager param.
1770 (ASSERT_RTL_DUMP_EQ_WITH_REUSE): New macro.
1771
1772 2016-12-06 Vladimir Makarov <vmakarov@redhat.com>
1773
1774 PR target/77761
1775 * lra-lives.c (process_bb_lives): Update biggest mode for
1776 implicitly used hard reg.
1777
1778 2016-12-06 Uros Bizjak <ubizjak@gmail.com>
1779
1780 * config/i386/predicates.md (general_gr_operand): New predicate.
1781 * config/i386/i386.md (TImode and DImode push_operand splitter):
1782 Use general_gr_operand. Macroize using DWI mode macro.
1783 (TImode and DImode nonimmediate_operand splitter): Use
1784 nonimmediate_gr_operand and general_gr_operand. Macroize using
1785 DWI mode macro.
1786 (TF/XF/DFmode push_operand splitter): Use general_gr_operand.
1787 (TFmode nonimmediate_operand splitter): Use nonimmediate_gr_operand
1788 and general_gr_operand.
1789 (XFmode nonimmediate_operand splitter): Ditto.
1790 (DFmode nonimmediate_operand splitter): Ditto.
1791 * config/i386/mmx.md (MMXMODE nonimmediate_operand splitter): Ditto.
1792
1793 2016-12-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1794
1795 * config/arm/arm-cores.def (cortex-m23, cortex-m33): Move into
1796 alphabetical order with respect to other ARMv8 processors.
1797 * config/arm/arm-tables.opt: Regenerate.
1798 * config/arm/arm-tune.md: Likewise.
1799
1800 2016-12-06 Robert Suchanek <robert.suchanek@imgtec.com>
1801
1802 * config/mips/mips.c (mips_expand_builtin_insn): Check input
1803 ranges of literal integer arguments.
1804
1805 2016-12-06 Aldy Hernandez <aldyh@redhat.com>
1806
1807 PR middle-end/78548
1808 * tree-ssa-uninit.c (simplify_preds_4): Call release() instead of
1809 destroy_predicate_vecs.
1810 (uninit_uses_cannot_happen): Make uninit_preds a scalar.
1811
1812 2016-12-06 Aldy Hernandez <aldyh@redhat.com>
1813
1814 PR middle-end/78566
1815 * tree-ssa-uninit.c (can_one_predicate_be_invalidated_p): Change
1816 argument type to a pred_chain.
1817 (can_chain_union_be_invalidated_p): Use pred_chain instead of a
1818 worklist.
1819 (flatten_out_predicate_chains): Remove.
1820 (uninit_uses_cannot_happen): Rename from
1821 uninit_ops_invalidate_phi_use.
1822 Change logic so that we are checking that the PHI use will
1823 invalidate _ALL_ possibly uninitialized operands.
1824 (is_use_properly_guarded): Rename call to
1825 uninit_ops_invalidate_phi_use into uninit_uses_cannot_happen.
1826
1827 2016-12-06 Tamar Christina <tamar.christina@arm.com>
1828
1829 * gcc/config/aarch64/arm_neon.h
1830 (vreinterpretq_p8_p128, vreinterpretq_p16_p128): Added.
1831 (vreinterpret_p64_p16, vreinterpretq_p64_p128): Likewise.
1832 (vreinterpretq_p64_p16, vreinterpretq_p128_p8): Likewise.
1833 (vreinterpretq_p128_p16, vreinterpretq_p128_f16): Likewise.
1834 (vreinterpretq_p128_f32, vreinterpretq_p128_p64): Likewise.
1835 (vreinterpretq_p128_s64, vreinterpretq_p128_u64): Likewise.
1836 (vreinterpretq_p128_s8, vreinterpretq_p128_s16): Likewise.
1837 (vreinterpretq_p128_s32, vreinterpretq_p128_u8): Likewise.
1838 (vreinterpretq_p128_u16, vreinterpretq_p128_u32): Likewise.
1839 (vreinterpretq_f16_p128, vreinterpretq_f32_p128): Likewise.
1840 (vreinterpretq_s64_p128, vreinterpretq_u64_p128): Likewise.
1841 (vreinterpretq_s8_p128, vreinterpretq_s16_p128): Likewise.
1842 (vreinterpretq_s32_p128, vreinterpretq_u8_p128): Likewise.
1843 (vreinterpretq_u16_p128, vreinterpretq_u32_p128): Likewise.
1844
1845 2016-12-06 Jakub Jelinek <jakub@redhat.com>
1846
1847 PR c++/71537
1848 * fold-const.c (fold_comparison): Assume CONSTANT_CLASS_P (base0)
1849 plus offset is non-zero. For maybe_nonzero_address decl base0,
1850 require indirect_base0.
1851
1852 PR c++/71537
1853 * fold-const-call.c (fold_const_call_1): Remove memchr handling here.
1854 (fold_const_call) <case CFN_BUILT_IN_STRNCMP,
1855 case CFN_BUILT_IN_STRNCASECMP>: Formatting improvements.
1856 (fold_const_call) <case CFN_BUILT_IN_MEMCMP>: Likewise. If s2 is 0
1857 and arguments have no side-effects, return 0.
1858 (fold_const_call): Handle CFN_BUILT_IN_MEMCHR.
1859
1860 PR c++/71537
1861 * fold-const-call.c (fold_const_call): Handle
1862 CFN_BUILT_IN_{INDEX,STRCHR,RINDEX,STRRCHR}.
1863
1864 PR tree-optimization/78675
1865 * tree-vect-loop.c (vectorizable_live_operation): For
1866 VECTOR_BOOLEAN_TYPE_P vectype use integral type with bitsize precision
1867 instead of TREE_TYPE (vectype) for the BIT_FIELD_REF.
1868
1869 2016-12-06 Eric Botcazou <ebotcazou@adacore.com>
1870
1871 PR middle-end/78642
1872 * emit-rtl.c (verify_rtx_sharing) <CLOBBER>: Relax condition.
1873 (copy_rtx_if_shared_1) <CLOBBER>: Likewise.
1874 (copy_insn_1) <CLOBBER>: Likewise.
1875
1876 2016-12-05 Michael Meissner <meissner@linux.vnet.ibm.com>
1877
1878 PR target/78688
1879 * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Use IN_RANGE
1880 instead of ((N) >= (X) && (N) <= (Y-X)) to silence warnings about
1881 comparing signed to unsigned values.
1882 (FUNCTION_ARG_REGNO_P): Likewise.
1883
1884 2016-12-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1885 Stefan Freudenberger <stefan@reservoir.com>
1886
1887 PR tree-optimization/78646
1888 * gimple-ssa-strength-reduction.c (replace_ref): The pointer
1889 addition used for the memory base expression should have the type
1890 of the candidate.
1891
1892 2016-12-05 Waldemar Brodkorb <wbx@openadk.org>
1893
1894 PR target/71721
1895 * config.gcc (*-*-uclinux*): Enable posix threads.
1896
1897 2016-12-05 Andrew Senkevich <andrew.senkevich@intel.com>
1898
1899 * config/i386/avx512bwintrin.h: Add new k-mask intrinsics.
1900 * config/i386/avx512dqintrin.h: Ditto.
1901 * config/i386/avx512fintrin.h: Ditto.
1902 * config/i386/i386-builtin-types.def (UCHAR_FTYPE_UQI_UQI_PUCHAR,
1903 UCHAR_FTYPE_UHI_UHI_PUCHAR, UCHAR_FTYPE_USI_USI_PUCHAR,
1904 UCHAR_FTYPE_UDI_UDI_PUCHAR, UCHAR_FTYPE_UQI_UQI, UCHAR_FTYPE_UHI_UHI,
1905 UCHAR_FTYPE_USI_USI, UCHAR_FTYPE_UDI_UDI, UQI_FTYPE_UQI_INT,
1906 UHI_FTYPE_UHI_INT, USI_FTYPE_USI_INT, UDI_FTYPE_UDI_INT,
1907 UQI_FTYPE_UQI, USI_FTYPE_USI, UDI_FTYPE_UDI, UQI_FTYPE_UQI_UQI): New
1908 function types.
1909 * config/i386/i386-builtin.def (__builtin_ia32_knotqi,
1910 __builtin_ia32_knotsi, __builtin_ia32_knotdi,
1911 __builtin_ia32_korqi, __builtin_ia32_korsi, __builtin_ia32_kordi,
1912 __builtin_ia32_kxnorqi, __builtin_ia32_kxnorsi,
1913 __builtin_ia32_kxnordi, __builtin_ia32_kxorqi, __builtin_ia32_kxorsi,
1914 __builtin_ia32_kxordi, __builtin_ia32_kandqi,
1915 __builtin_ia32_kandsi, __builtin_ia32_kanddi, __builtin_ia32_kandnqi,
1916 __builtin_ia32_kandnsi, __builtin_ia32_kandndi): New.
1917 * config/i386/i386.c (ix86_expand_args_builtin): Handle new types.
1918
1919 2016-12-05 Segher Boessenkool <segher@kernel.crashing.org>
1920
1921 * combine.c: Revert r243162.
1922
1923 2016-12-05 Paolo Bonzini <bonzini@gnu.org>
1924
1925 * match.pd: Simplify X ? C : 0 where C is a power of 2 and
1926 X tests a single bit.
1927
1928 2016-12-05 Nathan Sidwell <nathan@acm.org>
1929
1930 * diagnostic.c (diagnostic_check_max_errors): New, broken out of ...
1931 (diagnostic_action_after_output): ... here.
1932 (diagnostic_report_diagnostic): Call it for non-notes.
1933 * diagnostic.h (struct diagnostic_context): Make max_errors signed int.
1934 (diagnostic_check_max_errors): Declare.
1935
1936 2016-12-05 Cupertino Miranda <cmiranda@synopsys.com>
1937
1938 * config/arc/arc.h (STARTFILE_SPEC): Use default linux specs.
1939 (ENDFILE_SPEC): Likewise.
1940
1941 2016-12-05 Claudiu Zissulescu <claziss@synopsys.com>
1942
1943 * config/arc/arc-protos.h (insn_is_tls_gd_dispatch): Remove.
1944 * config/arc/arc.c (arc_unspec_offset): New function.
1945 (arc_finalize_pic): Change.
1946 (arc_emit_call_tls_get_addr): Likewise.
1947 (arc_legitimize_tls_address): Likewise.
1948 (arc_legitimize_pic_address): Likewise.
1949 (insn_is_tls_gd_dispatch): Remove.
1950 * config/arc/arc.h (INSN_REFERENCES_ARE_DELAYED): Change.
1951 * config/arc/arc.md (ls_gd_load): Remove unused pattern.
1952 (tls_gd_dispatch): Likewise.
1953
1954 2016-12-05 Andre Vieira <andre.simoesdiasvieira@arm.com>
1955
1956 * config/arm/arm.c (TARGET_ASM_INIT_SECTIONS): Fix wrong undef
1957 location.
1958
1959 2016-12-05 Eric Botcazou <ebotcazou@adacore.com>
1960
1961 * config/sparc/sparc-protos.h (sparc_splitdi_legitimate): Rename to...
1962 (sparc_split_reg_mem_legitimate): ...this.
1963 (sparc_split_reg_mem): Declare.
1964 (sparc_split_mem_reg): Likewise.
1965 (sparc_split_regreg_legitimate): Rename to...
1966 (sparc_split_reg_reg_legitimate): ...this.
1967 * config/sparc/sparc.c (sparc_splitdi_legitimate): Rename to...
1968 (sparc_split_reg_mem_legitimate): ...this.
1969 (sparc_split_reg_mem): New function.
1970 (sparc_split_mem_reg): Likewise.
1971 (sparc_split_regreg_legitimate): Rename to...
1972 (sparc_split_reg_reg_legitimate): ...this.
1973 (sparc_split_reg_reg): New function.
1974 * config/sparc/sparc.md (lra): Remove "none" value.
1975 (enabled): Adjust to above change.
1976 (*movdi_insn_sp32): Remove new (r,T) alternative and reorder others.
1977 (DImode splitters): Adjust to above renamings and use new functions.
1978 (*movdf_insn_sp32): Remove new (r,T) alternative and reorder others.
1979 (DFmode splitters): Adjust to above renamings and use new functions.
1980 (*mov<VM64:mode>_insn_sp64): Replace C with Z constraint and use W
1981 constraint in conjunction with e.
1982 (*mov<VM64:mode>_insn_sp32): Remove new (r,T) alternative, add (o,Y)
1983 alternative and reorder others.
1984 (VM64:mode splitters): Adjust to above renamings and use new functions.
1985
1986 2016-12-04 Martin Sebor <msebor@redhat.com>
1987
1988 PR c/78668
1989 * builtin-attrs.def (ATTR_ALLOC_SIZE, ATTR_RETURNS_NONNULL): New
1990 identifier tree nodes.
1991 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): New attribute list.
1992 (ATTR_MALLOC_SIZE_1_NOTHROW_LIST): Same.
1993 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Same.
1994 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Same.
1995 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Same.
1996 * builtins.def (aligned_alloc, calloc, malloc, realloc):
1997 Add attribute alloc_size.
1998 (alloca): Add attribute alloc_size and returns_nonnull.
1999
2000 2016-12-04 Uros Bizjak <ubizjak@gmail.com>
2001
2002 PR target/70322
2003 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Handle NEG.
2004 (dimode_scalar_chain::compute_convert_gain): Ditto.
2005 (dimode_scalar_chain::convert_insn): Ditto.
2006
2007 2016-12-03 Eric Botcazou <ebotcazou@adacore.com>
2008
2009 * lra-constraints.c (emit_spill_move): Use gen_lowpart_SUBREG in all
2010 cases to build a lowpart SUBREG.
2011
2012 2016-12-03 Eric Botcazou <ebotcazou@adacore.com>
2013 David S. Miller <davem@davemloft.net>
2014
2015 * config/sparc/constraints.md (U): Adjust comment.
2016 * config/sparc/sparc.md (lra): New attribute.
2017 (enabled): For base instructions, if the lra attribute is set,
2018 return 1 if it is in keeping with TARGET_LRA.
2019 (*movdi_insn_sp32): Add lra attribute for alternatives mentioning U
2020 constraint and duplicate them with U replaced by r.
2021 (*movdf_insn_sp32): Likewise.
2022 (*mov<VM64:mode>_insn_sp32): Likewise.
2023 (*movtf_insn_sp32): Remove alternatives mentioning U constraint.
2024
2025 2016-12-02 Jeff Law <law@redhat.com>
2026
2027 * config/arm/arm.c (arm_handle_cmse_nonsecure_call): Remove unused
2028 variable main_variant.
2029
2030 2016-12-02 Michael Meissner <meissner@linux.vnet.ibm.com>
2031
2032 * config.gcc (powerpc*-*-linux*): Set gnu-indirect-function by
2033 default on PowerPC linux systems.
2034
2035 2016-12-02 Segher Boessenkool <segher@kernel.crashing.org>
2036
2037 PR rtl-optimization/78638
2038 * simplify-rtx.c (simplify_truncation): M2 is not mode, it is
2039 GET_MODE (op). Fix this.
2040
2041 2016-12-02 David Malcolm <dmalcolm@redhat.com>
2042
2043 PR bootstrap/78616
2044 * selftest.c (selftest::assert_strndup_eq): Rename to...
2045 (selftest::assert_xstrndup_eq): ...this, and remove call to
2046 strndup.
2047 (selftest::test_strndup): Rename to...
2048 (selftest::test_xstrndup): ...this, updating for above renaming.
2049 (selftest::test_libiberty): Update for renaming.
2050
2051 2016-12-02 Michael Meissner <meissner@linux.vnet.ibm.com>
2052
2053 PR target/78639
2054 * config/rs6000/rs6000.md (movdi_internal64): Fix typo in
2055 subversion id 242679 that causes the wrong store instruction to be
2056 generated if a DImode is in an Altivec register using REG+REG
2057 addressing.
2058
2059 2016-12-02 Uros Bizjak <ubizjak@gmail.com>
2060
2061 PR target/70322
2062 * config/i386/i386.md (*andndi3_doubleword): Add non-BMI alternative
2063 and corresponding post-reload splitter.
2064
2065 2016-12-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2066
2067 * config/aarch64/aarch64.h (machine_function): Add
2068 reg_is_wrapped_separately field.
2069 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Define new constant.
2070 * config/aarch64/aarch64.c (emit_set_insn): Change return type to
2071 rtx_insn *.
2072 (aarch64_save_callee_saves): Don't save registers that are wrapped
2073 separately.
2074 (aarch64_restore_callee_saves): Don't restore registers that are
2075 wrapped separately.
2076 (offset_9bit_signed_unscaled_p, offset_12bit_unsigned_scaled_p,
2077 aarch64_offset_7bit_signed_scaled_p): Move earlier in the file.
2078 (aarch64_get_separate_components): New function.
2079 (aarch64_get_next_set_bit): Likewise.
2080 (aarch64_components_for_bb): Likewise.
2081 (aarch64_disqualify_components): Likewise.
2082 (aarch64_emit_prologue_components): Likewise.
2083 (aarch64_emit_epilogue_components): Likewise.
2084 (aarch64_set_handled_components): Likewise.
2085 (aarch64_process_components): Likewise.
2086 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
2087 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
2088 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
2089 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
2090 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
2091 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
2092
2093 2016-12-02 Martin Jambor <mjambor@suse.cz>
2094
2095 * passes.def: Move pass_rebuild_cgraph_edges to the end of
2096 pass_build_ssa_passes.
2097
2098 2016-12-02 Uros Bizjak <ubizjak@gmail.com>
2099
2100 * config/alpha/alpha.md (exception_receiver): Copy
2101 alpha_gp_ave_rtx return value.
2102
2103 2016-12-02 Tadek Kijkowski <tkijkowski@gmail.com>
2104
2105 * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
2106 for several include directories that may be relative to sysroot.
2107 * config/i386/x-mingw32 (gplus_includedir): Define.
2108 (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
2109 (native_system_includedir): Likewise.
2110 * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
2111 override if TARGET_SYSTEM_ROOT is defined.
2112 (NATIVE_SYSTEM_HEADER_DIR): Likewise.
2113
2114 2016-12-02 Jakub Jelinek <jakub@redhat.com>
2115
2116 PR target/70322
2117 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Handle NOT.
2118 (dimode_scalar_chain::compute_convert_gain): Likewise.
2119 (dimode_scalar_chain::convert_insn): Likewise.
2120 * config/i386/i386.md (*one_cmpldi2_doubleword): New
2121 define_insn_and_split.
2122 (one_cmpl<mode>2): Use SWIM1248x iterator instead of SWIM.
2123
2124 PR target/78614
2125 * rtl.c (copy_rtx): Don't clear used flag here.
2126 (shallow_copy_rtx_stat): Clear used flag here unless code the rtx
2127 is shareable.
2128 * simplify-rtx.c (simplify_replace_fn_rtx): When copying rtx with
2129 'E' in format, copy all vectors.
2130 * emit-rtl.c (copy_insn_1): Don't clear used flag here.
2131 * valtrack.c (cleanup_auto_inc_dec): Likewise.
2132 * config/rs6000/rs6000.c (rs6000_frame_related): Likewise.
2133
2134 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2135 Thomas Preud'homme <thomas.preudhomme@arm.com>
2136
2137 * config/arm/arm-builtins.c (arm_builtins): Define
2138 ARM_BUILTIN_CMSE_NONSECURE_CALLER.
2139 (bdesc_2arg): Add line for cmse_nonsecure_caller.
2140 (arm_init_builtins): Handle cmse_nonsecure_caller.
2141 (arm_expand_builtin): Likewise.
2142 * config/arm/arm_cmse.h (cmse_nonsecure_caller): New.
2143
2144 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2145 Thomas Preud'homme <thomas.preudhomme@arm.com>
2146
2147 * config/arm/arm.c (detect_cmse_nonsecure_call): New.
2148 (cmse_nonsecure_call_clear_caller_saved): New.
2149 (arm_reorg): Use cmse_nonsecure_call_clear_caller_saved.
2150 (arm_function_ok_for_sibcall): Disable sibcalls for
2151 cmse_nonsecure_call.
2152 * config/arm/arm-protos.h (detect_cmse_nonsecure_call): New.
2153 * config/arm/arm.md (call): Handle cmse_nonsecure_entry.
2154 (call_value): Likewise.
2155 (nonsecure_call_internal): New.
2156 (nonsecure_call_value_internal): New.
2157 * config/arm/thumb1.md (*nonsecure_call_reg_thumb1_v5): New.
2158 (*nonsecure_call_value_reg_thumb1_v5): New.
2159 * config/arm/thumb2.md (*nonsecure_call_reg_thumb2): New.
2160 (*nonsecure_call_value_reg_thumb2): New.
2161 * config/arm/unspecs.md (UNSPEC_NONSECURE_MEM): New.
2162
2163 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2164 Thomas Preud'homme <thomas.preudhomme@arm.com>
2165
2166 * config/arm/arm.c (gimplify.h): New include.
2167 (arm_handle_cmse_nonsecure_call): New.
2168 (arm_attribute_table): Added cmse_nonsecure_call.
2169 (arm_comp_type_attributes): Deny compatibility of function types
2170 with without the cmse_nonsecure_call attribute.
2171 * doc/extend.texi (ARM ARMv8-M Security Extensions): New attribute.
2172
2173 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2174 Thomas Preud'homme <thomas.preudhomme@arm.com>
2175
2176 * config/arm/arm.c (output_return_instruction): Clear
2177 registers.
2178 (thumb2_expand_return): Likewise.
2179 (thumb1_expand_epilogue): Likewise.
2180 (thumb_exit): Likewise.
2181 (arm_expand_epilogue): Likewise.
2182 (cmse_nonsecure_entry_clear_before_return): New.
2183 (comp_not_to_clear_mask_str_un): New.
2184 (compute_not_to_clear_mask): New.
2185 * config/arm/thumb1.md (*epilogue_insns): Change length attribute.
2186 * config/arm/thumb2.md (*thumb2_return): Disable for
2187 cmse_nonsecure_entry functions.
2188 (*thumb2_cmse_entry_return): Duplicate thumb2_return pattern for
2189 cmse_nonsecure_entry functions.
2190
2191 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2192 Thomas Preud'homme <thomas.preudhomme@arm.com>
2193
2194 * config/arm/arm.c (use_return_insn): Change to return with bxns
2195 when cmse_nonsecure_entry.
2196 (output_return_instruction): Likewise.
2197 (arm_output_function_prologue): Likewise.
2198 (thumb_pop): Likewise.
2199 (thumb_exit): Likewise.
2200 (thumb2_expand_return): Assert that entry functions always have simple
2201 returns.
2202 (arm_expand_epilogue): Handle entry functions.
2203 (arm_function_ok_for_sibcall): Disable sibcall for entry functions.
2204 (arm_asm_declare_function_name): New.
2205 * config/arm/arm-protos.h (arm_asm_declare_function_name): New.
2206 * config/arm/elf.h (ASM_DECLARE_FUNCTION_NAME): Redefine to
2207 use arm_asm_declare_function_name.
2208
2209 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2210 Thomas Preud'homme <thomas.preudhomme@arm.com>
2211
2212 * config/arm/arm.c (arm_handle_cmse_nonsecure_entry): New.
2213 (arm_attribute_table): Added cmse_nonsecure_entry
2214 (arm_compute_func_type): Handle cmse_nonsecure_entry.
2215 (cmse_func_args_or_return_in_stack): New.
2216 (arm_handle_cmse_nonsecure_entry): New.
2217 * config/arm/arm.h (ARM_FT_CMSE_ENTRY): New macro define.
2218 (IS_CMSE_ENTRY): Likewise.
2219 * doc/extend.texi (ARM ARMv8-M Security Extensions): New attribute.
2220
2221 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2222 Thomas Preud'homme <thomas.preudhomme@arm.com>
2223
2224 * config.gcc (extra_headers): Added arm_cmse.h.
2225 * config/arm/arm-arches.def (ARM_ARCH):
2226 (armv8-m): Add FL2_CMSE.
2227 (armv8-m.main): Likewise.
2228 (armv8-m.main+dsp): Likewise.
2229 * config/arm/arm-c.c
2230 (arm_cpu_builtins): Added __ARM_FEATURE_CMSE macro.
2231 * config/arm/arm-flags.h: Define FL2_CMSE.
2232 * config/arm.c (arm_arch_cmse): New.
2233 (arm_option_override): New error for unsupported cmse target.
2234 * config/arm/arm.h (arm_arch_cmse): New.
2235 * config/arm/arm.opt (mcmse): New.
2236 * config/arm/arm_cmse.h: New file.
2237 * doc/invoke.texi (ARM Options): Add -mcmse.
2238 * doc/sourcebuild.texi (arm_cmse_ok): Add new effective target.
2239 * doc/extend.texi: Add ARMv8-M Security Extensions entry.
2240
2241 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
2242
2243 * config/avr/avr.c: Fix coding rule glitches.
2244
2245 2016-12-02 Martin Jambor <mjambor@suse.cz>
2246
2247 * hsa.c (hsa_callable_function_p): Return false for artificial
2248 functions.
2249
2250 2016-12-02 James Greenhalgh <james.greenhalgh@arm.com>
2251
2252 PR rtl-optimization/78561
2253 * varasm.c (recompute_pool_offsets): New.
2254 (output_constant_pool): Call it.
2255
2256 2016-12-02 James Greenhalgh <james.greenhalgh@arm.com>
2257
2258 PR rtl-optimization/78561
2259 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p) Rename
2260 get_pool_size to get_pool_size_upper_bound.
2261 (rs6000_stack_info): Likewise.
2262 (rs6000_emit_prologue): Likewise.
2263 (rs6000_elf_declare_function_name): Likewise.
2264 (rs6000_set_up_by_prologue): Likewise.
2265 (rs6000_can_eliminate): Likewise, reformat spaces to tabs.
2266 * output.h (get_pool_size): Rename to...
2267 (get_pool_size_upper_bound): ...This.
2268 * varasm.c (get_pool_size): Rename to...
2269 (get_pool_size_upper_bound): ...This.
2270
2271 2016-12-02 Bin Cheng <bin.cheng@arm.com>
2272
2273 * match.pd: Add new pattern:
2274 (cond (cmp (convert? x) c1) (op x c2) c3) -> (op (minmax x c1) c2).
2275
2276 2016-12-02 Nathan Sidwell <nathan@acm.org>
2277
2278 * diagnostic.c (diagnostic_report_diagnostic): Remove extraneous
2279 braces.
2280
2281 2016-12-02 Aldy Hernandez <aldyh@redhat.com>
2282
2283 PR middle-end/78328
2284 * gimple-ssa-warn-alloca.c (alloca_call_type): Handle
2285 VR_ANTI_RANGE.
2286
2287 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2288
2289 * config/s390/s390.c (s390_save_gprs_to_fprs): Fix RTL sharing
2290 problem.
2291
2292 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
2293
2294 * config/avr/avr-arch.h (avr_mcu_t) [n_flash]: Remove field.
2295 * config/avr/avr-devices.c (AVR_MCU): Remove N_FLASH macro argument.
2296 * config/avr/avr-mcus.def (AVR_MCU): Remove initializer for n_flash.
2297 * config/avr/avr.c (avr_set_core_architecture) [avr_n_flash]: Use
2298 avr_mcu_types.flash_size to compute default value.
2299 * config/avr/gen-avr-mmcu-specs.c (print_mcu) [cc1_n_flash]: Use
2300 mcu->flash_size to compute value for spec.
2301
2302 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
2303
2304 * doc/invoke.texi (AVR Options) [-mabsdata]: Point to absdata.
2305 * doc/extend.texi (AVR Variable Attributes) [progmem]: Hint
2306 about linker description to avoid progmem altogether.
2307 [absdata]: Point to -mabsdata option.
2308
2309 2016-12-02 Jakub Jelinek <jakub@redhat.com>
2310
2311 PR rtl-optimization/78547
2312 * emit-rtl.c (unshare_all_rtl): Make sure DECL_RTL and
2313 DECL_INCOMING_RTL is not shared.
2314 * config/i386/i386.c (convert_scalars_to_vectors): If any
2315 insns have been converted, adjust all parameter's DEC_RTL and
2316 DECL_INCOMING_RTL back from V1TImode to TImode if the parameters have
2317 TImode.
2318
2319 PR rtl-optimization/78575
2320 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses): Use
2321 DF infrastructure to wrap all V1TImode reg uses into TImode subreg
2322 if not already wrapped in a subreg. Make sure df_insn_rescan does not
2323 affect further iterations.
2324
2325 2016-12-02 Martin Liska <mliska@suse.cz>
2326
2327 PR ipa/78555
2328 * sreal.c (sreal::to_int): Make absolute value before shifting.
2329 (sreal::operator/): Likewise.
2330 (sreal_verify_negative_division): New test.
2331 (void sreal_c_tests): Call the new test.
2332 * sreal.h (sreal::normalize_up): Use new SREAL_ABS and
2333 SREAL_SIGN macros.
2334 (sreal::normalize_down): Likewise.
2335
2336 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
2337
2338 * combine.c (combine_simplify_rtx): Suppress replacement of
2339 "(and (reg) (const_int bit))" with "if_then_else".
2340
2341 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
2342
2343 PR target/77822
2344 * config/s390/s390.md ("extzv")
2345 ("*extzv<mode><clobbercc_or_nocc>")
2346 ("*extzvdi<clobbercc_or_nocc>_lshiftrt")
2347 ("*<risbg_n>_ior_and_sr_ze")
2348 ("*extract1bitdi<clobbercc_or_nocc>")
2349 ("*insv<mode><clobbercc_or_nocc>", "*insv_rnsbg_noshift")
2350 ("*insv_rnsbg_srl", "*insv<mode>_mem_reg")
2351 ("*insvdi_mem_reghigh", "*insvdi_reg_imm"): Use EXTRACT_ARGS_IN_RANGE
2352 to validate the arguments of zero_extract and sign_extract.
2353
2354 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
2355
2356 PR target/77822
2357 * rtl.h (EXTRACT_ARGS_IN_RANGE): New.
2358
2359 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2360
2361 * gcc/config/s390/s390.c (s390_builtin_vectorization_cost): New
2362 function.
2363 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Define target
2364 macro.
2365
2366 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2367
2368 * config/s390/vector.md (vec_halfhalf): New mode iterator.
2369 ("vec_pack_trunc_<mode>", "vec_pack_ssat_<mode>")
2370 ("vec_pack_usat_<mode>", "vec_unpacks_hi_v16qi")
2371 ("vec_unpacks_low_v16qi", "vec_unpacku_hi_v16qi")
2372 ("vec_unpacku_low_v16qi", "vec_unpacks_hi_v8hi")
2373 ("vec_unpacks_lo_v8hi", "vec_unpacku_hi_v8hi")
2374 ("vec_unpacku_lo_v8hi", "vec_unpacks_hi_v4si")
2375 ("vec_unpacks_lo_v4si", "vec_unpacku_hi_v4si")
2376 ("vec_unpacku_lo_v4si"): New pattern definitions.
2377 * config/s390/vx-builtins.md: Move VI_HW_HSD mode iterator to
2378 vector.md.
2379
2380 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2381
2382 * config/s390/s390-protos.h (s390_reverse_condition): New
2383 prototype.
2384 * config/s390/s390.c (s390_canonicalize_comparison): Fold compares
2385 of CC mode values.
2386 (s390_reverse_condition): New function.
2387 * config/s390/s390.h (REVERSE_CC_MODE, REVERSE_CONDITION): Define
2388 target macros.
2389
2390 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2391
2392 * config/s390/s390-modes.def (CCVEQANY, CCVH, CCVHANY, CCVHU)
2393 (CCVHUANY): Remove modes.
2394 (CCVIH, CCVIHU, CCVIALL, CCVIANY, CCVFALL, CCVFANY): Add modes and
2395 documentation.
2396 * config/s390/s390.c (s390_match_ccmode_set): Rename cc modes.
2397 (s390_expand_vec_compare_scalar): Pick one of the cc consumer
2398 modes.
2399 (s390_branch_condition_mask): Adjust to use the new cc consumer
2400 modes. The new modes allow for proper reversal in the middle-end.
2401 (s390_expand_vec_compare_cc): Determine the proper cc producer and
2402 consumer modes for a comparison.
2403 * config/s390/s390.md: Rename CCVH to CCVIH and CCVHU to CCVIHU
2404 throughout the file.
2405 * config/s390/vx-builtins.md: Likewise.
2406
2407 2016-12-02 Maxim Ostapenko <m.ostapenko@samsung.com>
2408
2409 * asan.c (asan_global_struct): Refactor.
2410 (create_odr_indicator): New function.
2411 (asan_needs_odr_indicator_p): Likewise.
2412 (is_odr_indicator): Likewise.
2413 (asan_add_global): Introduce odr_indicator_ptr. Pass it into global's
2414 constructor.
2415 (asan_protect_global): Do not protect odr indicators.
2416
2417 2016-12-01 Jeff Law <law@redhat.com>
2418
2419 * tree-ssa-threadedge.c
2420 (record_temporary_equivalences_from_stmts_at_dest): Avoid temporary
2421 propagation of operands if there are no operands.
2422
2423 2016-12-02 Jakub Jelinek <jakub@redhat.com>
2424
2425 PR tree-optimization/78586
2426 * gimple-ssa-sprintf.c (format_integer): Don't handle NOP_EXPR,
2427 CONVERT_EXPR or COMPONENT_REF here. Formatting fix. For
2428 SSA_NAME_DEF_STMT with NOP_EXPR only change argtype if the rhs1's
2429 type is INTEGER_TYPE or POINTER_TYPE.
2430
2431 2016-12-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
2432
2433 PR target/78577
2434 * config/rs6000/vsx.md (vextuhlx): Revise mode of operand 2.
2435 (vextuhrx): Likewise.
2436 (vextuwlx): Likewise.
2437 (vextuwrx): Likewise.
2438
2439 2016-12-01 David Malcolm <dmalcolm@redhat.com>
2440
2441 * dwarf2out.c (dwarf2out_c_finalize): Reset early_dwarf and
2442 early_dwarf_finished.
2443
2444 2016-12-01 Eric Botcazou <ebotcazou@adacore.com>
2445 David S. Miller <davem@davemloft.net>
2446
2447 * config/sparc/sparc.opt (mlra): New target option.
2448 * config/sparc/sparc.c (TARGET_LRA_P): Define to...
2449 (sparc_lra_p): ...this. New function.
2450 (D_MODES, DF_MODES): Add missing cast.
2451 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
2452 provide these insns when flag_pic.
2453 (sethi_di_medlow, losum_di_medlow, seth44, setm44, setl44, sethh,
2454 setlm, sethm, setlo, embmedany_sethi, embmedany_losum,
2455 embmedany_brsum, embmedany_textuhi, embmedany_texthi,
2456 embmedany_textulo, embmedany_textlo): Likewise.
2457 (sethi_di_medlow_embmedany_pic): Provide it only with flag_pic.
2458
2459 2016-12-01 David Edelsohn <dje.gcc@gmail.com>
2460
2461 PR debug/66419
2462 PR c++/78235
2463 * dbxout.c (dbxout_type_fields): Skip TEMPLATE_DECLs.
2464
2465 2016-12-01 Richard Biener <rguenther@suse.de>
2466 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2467
2468 * vec.h (vec<T, A, vl_embed>::quick_grow_cleared): Guard call to
2469 memset if len-oldlen != 0.
2470 (vec<T, va_heap, vl_ptr>::safe_grow_cleared): Likewise.
2471
2472 2016-12-01 Uros Bizjak <ubizjak@gmail.com>
2473
2474 * config/i386/i386.md (*andndi3_doubleword): Depend on TARGET_SSE2.
2475
2476 2016-12-01 Georg-Johann Lay <avr@gjlay.de>
2477
2478 * config/avr/avr.c: Fix coding rule glitches.
2479
2480 2016-12-01 Markus Trippelsdorf <markus@trippelsdorf.de>
2481
2482 PR tree-optimization/78598
2483 * tree-ssa-loop-prefetch.c (ddown): Cast to signed to avoid
2484 overflows.
2485
2486 2016-12-01 Markus Trippelsdorf <markus@trippelsdorf.de>
2487
2488 PR rtl-optimization/78596
2489 * combine.c (simplify_comparison): Cast to unsigned to avoid
2490 left shifting of negative value.
2491
2492 2016-12-01 Matthias Klose <doko@ubuntu.com>
2493
2494 * doc/install.texi: Don't use pkg-config to check for bdw-gc.
2495
2496 2016-12-01 Richard Biener <rguenther@suse.de>
2497
2498 * tree-ssa-alias.c (indirect_refs_may_alias_p): Do not
2499 treat arrays with same type as objects that cannot overlap.
2500
2501 2016-12-01 Georg-Johann Lay <avr@gjlay.de>
2502
2503 * config/avr/avr.c (avr_print_operand): Use SYMBOL_REF_P if possible.
2504 (avr_handle_addr_attribute, avr_asm_output_aligned_decl_common)
2505 (avr_asm_asm_output_aligned_bss, avr_addr_space_convert): Dito.
2506
2507 2016-12-01 Jakub Jelinek <jakub@redhat.com>
2508
2509 PR debug/78587
2510 * dwarf2out.c (loc_descr_plus_const): For negative offset use
2511 uint_loc_descriptor instead of int_loc_descriptor and perform negation
2512 in unsigned HOST_WIDE_INT type.
2513 (scompare_loc_descriptor): Shift UINTVAL left instead of INTVAL.
2514
2515 PR target/78614
2516 * config/rs6000/rs6000.c (rs6000_frame_related): Call
2517 set_used_flags (pat) before any simplifications. Clear used flag on
2518 PARALLEL copy. Don't guard add_reg_note call. Call
2519 copy_rtx_if_shared on pat before storing it into
2520 REG_FRAME_RELATED_EXPR.
2521
2522 2016-12-01 Alan Modra <amodra@gmail.com>
2523
2524 * gcc/config/rs6000/rs6000.c (insn_is_swappable_p): Properly
2525 look inside UNSPEC_VSX_XXSPLTW vec.
2526
2527 2016-12-01 Segher Boessenkool <segher@kernel.crashing.org>
2528
2529 PR rtl-optimization/78607
2530 * combine.c (try_combine): Emit a barrier after a unconditional trap.
2531
2532 2016-11-30 Michael Meissner <meissner@linux.vnet.ibm.com>
2533
2534 PR target/78602
2535 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): If the
2536 element is not a constant or in a register, force it to a
2537 register.
2538
2539 PR target/78560
2540 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Force value
2541 that will be set to a vector element to be in a register.
2542 * config/rs6000/vsx.md (vsx_set_<mode>_p9): Fix thinko that used
2543 the wrong multiplier to convert the element number to a byte
2544 offset.
2545
2546 2016-11-30 Vladimir Makarov <vmakarov@redhat.com>
2547
2548 PR tree-optimization/77856
2549 * lra-constraints.c (inherit_in_ebb): Check original regno for
2550 invalid invariant regs too. Set only clobbered hard regs for the
2551 invalid invariant regs.
2552
2553 2016-11-30 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
2554
2555 Commit files forgotten in r242966.
2556
2557 * config/avr/avr-arch.h (avr_mcu_t) [flash_size]: New member.
2558 * config/avr/avr-devices.c (avr_mcu_types): Add flash size info.
2559 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Remove hard-coded
2560 prefix check to find wrap-around value, instead use MCU flash size.
2561 For 8k flash devices, update link_pmem_wrap spec string to
2562 add --pmem-wrap-around=8k.
2563 * config/avr/specs.h (LINK_RELAX_SPEC): Move link_pmem_wrap from
2564 here...
2565 (LINK_SPEC): ...to here.
2566
2567 2016-11-30 David Malcolm <dmalcolm@redhat.com>
2568
2569 PR c/78498
2570 * selftest.c (selftest::assert_strndup_eq): New function.
2571 (selftest::test_strndup): New function.
2572 (selftest::test_libiberty): New function.
2573 (selftest::selftest_c_tests): Call test_libiberty.
2574
2575 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
2576
2577 PR rtl-optimization/78610
2578 * ira.c (combine_and_move_insns): Don't substitute into TRAP_IF
2579 instructions.
2580
2581 2016-11-30 Bin Cheng <bin.cheng@arm.com>
2582
2583 PR tree-optimization/78574
2584 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Skip loop
2585 header PHI that doesn't define biv.
2586
2587 2016-11-30 Jakub Jelinek <jakub@redhat.com>
2588
2589 * emit-rtl.c (verify_insn_sharing): Call verify_rtx_sharing instead of
2590 reset_used_flags.
2591
2592 * config/i386/i386.c (dimode_scalar_chain::convert_op): Avoid
2593 sharing the SUBREG rtx between move and following insn.
2594
2595 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use copy_rtx
2596 for REG_EQUIV argument.
2597
2598 2016-11-30 Thomas Preud'homme <thomas.preudhomme@arm.com>
2599
2600 * config/arm/t-rmprofile: Add mappings for Cortex-M23 and Cortex-M33.
2601
2602 2016-11-30 Markus Trippelsdorf <markus@trippelsdorf.de>
2603
2604 PR ipa/78555
2605 * real.c (real_hash): Add cast to avoid left
2606 shifting of negative values.
2607
2608 2016-11-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2609
2610 PR target/78362
2611 * config/aarch64/aarch64.md (add<mode>3): Extract inner expression
2612 from a subreg in operands[1] and don't call REGNO on a non-reg
2613 expression when deciding to force operands[2] into a reg.
2614
2615 2016-11-30 Claudiu Zissulescu <claziss@synopsys.com>
2616 Andrew Burgess <andrew.burgess@embecosm.com>
2617
2618 * config/arc/arc-protos.h (arc_store_addr_hazard_p): Declare.
2619 * config/arc/arc.c (arc_store_addr_hazard_p): New function.
2620 (workaround_arc_anomaly): Call arc_store_addr_hazard_p for ARC700.
2621 * config/arc/arc700.md: Add define_bypass for store/load.
2622
2623 2016-11-30 Martin Liska <mliska@suse.cz>
2624
2625 * cgraph.c (symbol_table::initialize): Initialize
2626 ipa_clones_dump_file.
2627 (cgraph_node::remove): Report to ipa_clones_dump_file.
2628 * cgraph.h: Add new argument (suffix) to cloning methods.
2629 * cgraphclones.c (dump_callgraph_transformation): New function.
2630 (cgraph_node::create_clone): New argument.
2631 (cgraph_node::create_virtual_clone): Likewise.
2632 (cgraph_node::create_version_clone): Likewise.
2633 * dumpfile.c: Add .ipa-clones dump file.
2634 * dumpfile.h (enum tree_dump_index): Add TDI_clones
2635 * ipa-inline-transform.c (clone_inlined_nodes): Report operation
2636 to dump_callgraph_transformation.
2637
2638 2016-11-30 Martin Liska <mliska@suse.cz>
2639
2640 PR sanitizer/78541
2641 * asan.c (asan_expand_mark_ifn): Properly
2642 select a VAR_DECL from FRAME.* component reference.
2643
2644 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
2645
2646 PR rtl-optimization/78583
2647 * simplify-rtx.c (simplify_truncation): Add check missing from the
2648 previous commit.
2649
2650 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
2651
2652 PR rtl-optimization/78590
2653 * combine.c (change_zero_ext): Transform zero_extend of subregs only
2654 if the subreg_reg is a scalar integer mode.
2655
2656 2016-11-30 Jakub Jelinek <jakub@redhat.com>
2657
2658 PR tree-optimization/78586
2659 * gimple-ssa-sprintf.c (format_integer): Use TYPE_MAX_VALUE or
2660 TYPE_MIN_VALUE or build_all_ones_cst instead of folding LSHIFT_EXPR.
2661 Don't build_int_cst min/max twice. Formatting fix.
2662
2663 2016-11-30 Markus Trippelsdorf <markus@trippelsdorf.de>
2664
2665 PR rtl-optimization/78588
2666 * combine.c (if_then_else_cond): Also guard against BLKmode.
2667 * rtlanal.c (num_sign_bit_copies1): Add assert.
2668
2669 2016-11-29 Jeff Law <law@redhat.com>
2670
2671 * common/config/arc/arc-common.c (arc_handle_option): Remove unused
2672 variables.
2673
2674 * lra-constraints.c (check_and_process_move): Constrain the
2675 range of DCLASS and SCLASS to avoid false positive out of bounds
2676 array index warning.
2677
2678 2016-11-29 David Malcolm <dmalcolm@redhat.com>
2679
2680 * doc/install.texi (--with-target-bdw-gc): Remove stray '@'.
2681
2682 2016-11-29 David Malcolm <dmalcolm@redhat.com>
2683
2684 PR preprocessor/78569
2685 * input.c (get_substring_ranges_for_loc): Fail gracefully if
2686 line directives were present.
2687
2688 2016-11-30 Matthias Klose <doko@ubuntu.com>
2689
2690 * doc/install.texi: Document configure options --enable-objc-gc
2691 and --with-target-bdw-gc.
2692
2693 2016-11-29 Michael Meissner <meissner@linux.vnet.ibm.com>
2694
2695 PR target/78594
2696 * config/rs6000/rs6000.md (mov<mode>_internal, QHI iterator): Add
2697 'x' to stxsi<wd>x print pattern, so that QImode and HImode values
2698 residing in traditional altivec registers can be stored
2699 correctly.
2700
2701 2016-11-29 Max Filippov <jcmvbkbc@gmail.com>
2702
2703 PR target/78603
2704 * config/xtensa/xtensa.c (hwloop_optimize): Don't emit zero
2705 overhead loop start between a call and its CALL_ARG_LOCATION
2706 note.
2707
2708 2016-11-29 Waldemar Brodkorb <wbx@openadk.org>
2709
2710 * config/bfin/linux.h (CPP_SPEC): Define.
2711
2712 2016-11-29 Martin Sebor <msebor@redhat.com>
2713
2714 PR tree-optimization/78512
2715 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Remove.
2716 * config/rs6000/linux.h: Same.
2717 * config/rs6000/linux64.h: Same.
2718 * config/sol2.h: Same.
2719 * config/sol2.c (solaris_printf_pointer_format): Remove.
2720 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Remove.
2721 * doc/tm.texi: Regenerate.
2722 * gimple-ssa-sprintf.c (format_pointer): Rempove.
2723 (pass_sprintf_length::compute_format_length): Return bool.
2724 (pass_sprintf_length::handle_gimple_call): Adjust.
2725 * target.def (printf_pointer_format): Remove.
2726 * targhooks.c (default_printf_pointer_format): Remove.
2727 (linux_printf_pointer_format): Same.
2728 * targhooks.h (default_printf_pointer_format): Remove.
2729 (linux_printf_pointer_format, solaris_printf_pointer_format): Same.
2730
2731 2016-11-29 Uros Bizjak <ubizjak@gmail.com>
2732
2733 * config/i386/sse.md (UNSPEC_MASKOP): Move from i386.md.
2734 (mshift): Ditto.
2735 (SWI1248_AVX512BWDQ): Ditto.
2736 (SWI1248_AVX512BW): Ditto.
2737 (k<any_logic:code><mode>): Ditto.
2738 (kandn<mode>): Ditto.
2739 (kxnor<mode>): Ditto.
2740 (knot<mode>): Ditto.
2741 (*k<any_lshift:code><mode>): Ditto.
2742 (kortestzhi, kortestchi): Ditto.
2743 (kunpckhi, kunpcksi, kunpckdi): Ditto.
2744
2745 2016-11-29 Andrew Pinski <apinski@cavium.com>
2746
2747 * tree-vrp.c (simplify_stmt_using_ranges): Use boolean_type_node
2748 for the EQ_EXPR.
2749
2750 2016-11-29 Chen Gang <gang.chen.5i5j@gmail.com>
2751
2752 PR target/71331
2753 * config/tilegx/tilegx.c (tilegx_function_profiler): Save r10
2754 to stack before call mcount.
2755 (tilegx_can_use_return_insn_p): Clean up code.
2756
2757 2016-11-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
2758
2759 * config/avr/avr-mcu.def: (avr_mcu_types): Add flash size info.
2760
2761 2016-11-29 David Malcolm <dmalcolm@redhat.com>
2762
2763 PR c++/72774
2764 PR c++/72786
2765 PR c++/77922
2766 PR c++/78313
2767 * spellcheck.c (selftest::test_find_closest_string): Verify that
2768 we don't offer the goal string as a suggestion.
2769 * spellcheck.h (best_match::get_best_meaningful_candidate): Don't
2770 offer the goal string as a suggestion.
2771
2772
2773 2016-11-29 Claudiu Zissulescu <claziss@synopsys.com>
2774
2775 * config/arc/arc.c (arc_override_options): Avoid selection of
2776 compact casesi for ARCv2.
2777
2778 2016-11-29 Richard Biener <rguenther@suse.de>
2779
2780 * tree-cfg.c (lower_phi_internal_fn): Do not look for further
2781 PHIs after a regular stmt.
2782 (stmt_starts_bb_p): PHIs not preceeded by a PHI or a label
2783 start a new BB.
2784
2785 2016-11-29 Martin Liska <mliska@suse.cz>
2786
2787 PR gcov-profile/78582
2788 * tree-profile.c (gimple_gen_time_profiler): Make one extra BB
2789 to prevent PHI argument clash.
2790
2791 2016-11-29 Claudiu Zissulescu <claziss@synopsys.com>
2792
2793 * config/arc/arc.opt (marclinux): Fix typo.
2794 (marclinux_prof): Likewise.
2795
2796 2016-11-29 Jiong Wang <jiong.wang@arm.com>
2797
2798 * target.def (stack_protect_runtime_enabled_p): New.
2799 * function.c (expand_function_end): Guard stack_protect_epilogue with
2800 targetm.stack_protect_runtime_enabled_p.
2801 * cfgexpand.c (pass_expand::execute): Likewise.
2802 * calls.c (expand_call): Likewise.
2803 * doc/tm.texi.in (TARGET_STACK_PROTECT_RUNTIME_ENABLED_P): Add it.
2804 * doc/tm.texi: Regenerate.
2805
2806 2016-11-29 Richard Biener <rguenther@suse.de>
2807
2808 PR middle-end/78546
2809 * match.pd: Add CST1 - (CST2 - A) -> CST3 + A missing case.
2810
2811 2016-11-29 Janus Weil <janus@gcc.gnu.org>
2812
2813 * doc/contrib.texi: Add a few missing gfortran contributors.
2814
2815 2016-11-29 Segher Boessenkool <segher@kernel.crashing.org>
2816
2817 * combine.c (change_zero_ext): Also handle extends from a subreg
2818 to a mode bigger than that of the operand of the subreg.
2819
2820 2016-11-29 Segher Boessenkool <segher@kernel.crashing.org>
2821
2822 PR target/77687
2823 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Emit the
2824 stack_restore_tie insn instead of stack_tie, for the SVR4 and
2825 SPE ABIs.
2826 * config/rs6000/rs6000.md (stack_restore_tie): New define_insn.
2827
2828 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
2829
2830 * shrink-wrap.c (init_separate_shrink_wrap): Do not clear
2831 head_components and tail_components.
2832 (spread_components): New algorithm.
2833 (emit_common_tails_for_components): Clear head_components and
2834 tail_components.
2835 (insert_prologue_epilogue_for_components): Write extra output to the
2836 dump file for sibcalls and abnormal exits.
2837
2838 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
2839
2840 PR rtl-optimization/78342
2841 * combine.c: Include "cfghooks.h".
2842 (try_combine): If we create an unconditional trap, break the basic
2843 block in two just after it, and remove the edge between; also, set
2844 the *new_direct_jump_p flag so that cleanup_cfg is run.
2845
2846 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
2847
2848 * simplify-rtx.c (simplify_truncation): Handle truncate of zero_extract
2849 and sign_extract.
2850
2851 2016-11-28 Uros Bizjak <ubizjak@gmail.com>
2852
2853 * config/i386/i386.md (*and<mode>_1): Merge insn pattern from
2854 *andsi_1 and *andhi_1 using SWI24 mode iterator. Use multi-line
2855 output template string.
2856 (*anddi_1): Use multi-line output template string.
2857 (*andqi_1): Ditto.
2858
2859 2016-11-28 Jakub Jelinek <jakub@redhat.com>
2860
2861 PR middle-end/78540
2862 * rtl.h (remove_reg_equal_equiv_notes): Return bool instead of void.
2863 * rtlanal.c (remove_reg_equal_equiv_notes): Return true if any
2864 note has been removed.
2865 * postreload.c (reload_combine_recognize_pattern): If
2866 remove_reg_equal_equiv_notes returns true, call df_notes_rescan.
2867
2868 2016-11-28 Martin Sebor <msebor@redhat.com>
2869
2870 PR middle-end/78520
2871 * gimple-ssa-sprintf.c (target_max_value): Remove.
2872 (target_int_max, target_size_max): Use TYPE_MAX_VALUE.
2873 (get_width_and_precision): New function.
2874 (format_integer, format_floating, get_string_length, format_string):
2875 Correct handling of width and precision with unknown value.
2876 (format_directive): Add warning.
2877 (pass_sprintf_length::compute_format_length): Allow for precision
2878 to consist of a sole period with no asterisk or digits after it.
2879
2880 2016-11-28 Jakub Jelinek <jakub@redhat.com>
2881
2882 PR rtl-optimization/78546
2883 * simplify-rtx.c (neg_const_int): When negating most negative
2884 number in mode wider than HOST_BITS_PER_WIDE_INT, use
2885 simplify_const_unary_operation to produce CONST_DOUBLE or
2886 CONST_WIDE_INT.
2887 (simplify_plus_minus): Handle the case where neg_const_int
2888 doesn't return a CONST_INT.
2889
2890 2016-11-28 Markus Trippelsdorf <markus@trippelsdorf.de>
2891
2892 PR target/78556
2893 * config/rs6000/rs6000.c (vspltis_constant): Add casts to avoid
2894 left shifting of negative values.
2895
2896 2016-11-28 Jakub Jelinek <jakub@redhat.com>
2897
2898 PR fortran/78298
2899 * tree-nested.c (convert_local_reference_stmt): After adding
2900 shared (FRAME.NN) clause to omp parallel, task or target,
2901 add it also to all outer omp parallel, task or target constructs.
2902
2903 2016-11-28 Uros Bizjak <ubizjak@gmail.com>
2904
2905 * config/i386/i386.md (UNSPEC_KMASKOP): New.
2906 (UNSPEC_KMOV): Remove.
2907 (kmovw): Expand to plain HImode move.
2908 (k<any_logic:code><mode>): Rename from *k<logic><mode>. Use
2909 register_operand predicates. Tag pattern with UNSPEC_KMASKOP.
2910 Remove corresponding clobber-removing splitter.
2911 (*anddi_1): Remove mask register alternatives.
2912 (*andsi_1): Ditto.
2913 (*andhi_1): Ditto.
2914 (*andqi_1): Ditto.
2915 (*<any_or:code><mode>_1): Ditto.
2916 (*<any_or:code>qi_1): Ditto.
2917 (kandn<mode>): Use SWI1248_AVX512BW mode iterator. Remove
2918 general register alternatives. Tag pattern with UNSPEC_KMASKOP.
2919 Remove corresponding splitter to operation with general registers.
2920 (*andn<SWI38:mode>): Rename from *bmi_andn_<mode>.
2921 (*andn<SWI12:mode>): New pattern.
2922 (*kxnor<mode>): Remove general register alternatives. Tag pattern
2923 with UNSPEC_KMASKOP. Remove corresponding splitter to operation
2924 with general registers.
2925 (knot<mode>): New insn pattern.
2926 (*one_cmpl<mode>2_1): Remove mask register alternatives.
2927 (one_cmplqi2_1): Ditto.
2928 (*k<any_lshift:code><mode>): Rename from *k<mshift><mode>3.
2929 Tag pattern with UNSPEC_KMASKOP. Add mode attribute.
2930 * config/i386/predicates.md (mask_reg_operand): Remove predicate.
2931 * config/i386/sse.md (vec_unpacks_hi_hi): Update pattern
2932 to generate kmaskop shift.
2933 (vec_unpacks_hi_<mode>): Ditto.
2934 * config/i386/i386-builtin.def (__builtin_ia32_kandhi):
2935 Use CODE_FOR_kandhi.
2936 (__builtin_ia32_knothi): Use CODE_FOR_knothi.
2937 (__builtin_ia32_korhi): Use CODE_FOR_kiorhi.
2938 (__builtin_ia32_kxorhi): Use CODE_FOR_kxorhi.
2939
2940 2016-11-28 Richard Biener <rguenther@suse.de>
2941
2942 * tree-vrp.c (vrp_visit_assignment_or_call): Handle simplifications
2943 to SSA names via extract_range_from_ssa_name if allowed.
2944
2945 2016-11-28 Richard Biener <rguenther@suse.de>
2946
2947 PR tree-optimization/78542
2948 * tree-ssa-ccp.c (evaluate_stmt): Only valueize simplification
2949 if allowed.
2950
2951 2016-11-28 Paolo Bonzini <bonzini@gnu.org>
2952
2953 * combine.c (simplify_if_then_else): Simplify IF_THEN_ELSE that
2954 isolates a single bit, even if the condition involves subregs.
2955
2956 2016-11-28 Tamar Christina <tamar.christina@arm.com>
2957
2958 * config/aarch64/aarch64-simd-builtins.def
2959 (BSL_P): Added di and v2di mode.
2960 * config/aarch64/arm_neon.h
2961 (vsriq_n_p64, vsri_n_p64): Added poly type.
2962 (vextq_p64, vext_p64): Likewise.
2963 (vceq_p64, vbslq_p64, vbsl_p64): Likewise.
2964
2965 2016-11-28 Tamar Christina <tamar.christina@arm.com>
2966
2967 * config/aarch64/aarch64-builtins.c (TYPES_SETREGP): Added poly type.
2968 (TYPES_GETREGP): Likewise.
2969 (TYPES_SHIFTINSERTP): Likewise.
2970 (TYPES_COMBINEP): Likewise.
2971 (TYPES_STORE1P): Likewise.
2972 * config/aarch64/aarch64-simd-builtins.def
2973 (combine): Added poly generator.
2974 (get_dregoi): Likewise.
2975 (get_dregci): Likewise.
2976 (get_dregxi): Likewise.
2977 (ssli_n): Likewise.
2978 (ld1): Likewise.
2979 (st1): Likewise.
2980 * config/aarch64/arm_neon.h
2981 (poly64x1x2_t, poly64x1x3_t): New.
2982 (poly64x1x4_t, poly64x2x2_t): Likewise.
2983 (poly64x2x3_t, poly64x2x4_t): Likewise.
2984 (poly64x1_t): Likewise.
2985 (vcreate_p64, vcombine_p64): Likewise.
2986 (vdup_n_p64, vdupq_n_p64): Likewise.
2987 (vld2_p64, vld2q_p64): Likewise.
2988 (vld3_p64, vld3q_p64): Likewise.
2989 (vld4_p64, vld4q_p64): Likewise.
2990 (vld2_dup_p64, vld3_dup_p64): Likewise.
2991 (vld4_dup_p64, vsli_n_p64): Likewise.
2992 (vsliq_n_p64, vst1_p64): Likewise.
2993 (vst1q_p64, vst2_p64): Likewise.
2994 (vst3_p64, vst4_p64): Likewise.
2995 (__aarch64_vdup_lane_p64, __aarch64_vdup_laneq_p64): Likewise.
2996 (__aarch64_vdupq_lane_p64, __aarch64_vdupq_laneq_p64): Likewise.
2997 (vget_lane_p64, vgetq_lane_p64): Likewise.
2998 (vreinterpret_p8_p64, vreinterpretq_p8_p64): Likewise.
2999 (vreinterpret_p16_p64, vreinterpretq_p16_p64): Likewise.
3000 (vreinterpret_p64_f16, vreinterpret_p64_f64): Likewise.
3001 (vreinterpret_p64_s8, vreinterpret_p64_s16): Likewise.
3002 (vreinterpret_p64_s32, vreinterpret_p64_s64): Likewise.
3003 (vreinterpret_p64_f32, vreinterpret_p64_u8): Likewise.
3004 (vreinterpret_p64_u16, vreinterpret_p64_u32): Likewise.
3005 (vreinterpret_p64_u64, vreinterpret_p64_p8): Likewise.
3006 (vreinterpretq_p64_f64, vreinterpretq_p64_s8): Likewise.
3007 (vreinterpretq_p64_s16, vreinterpretq_p64_s32): Likewise.
3008 (vreinterpretq_p64_s64, vreinterpretq_p64_f16): Likewise.
3009 (vreinterpretq_p64_f32, vreinterpretq_p64_u8): Likewise.
3010 (vreinterpretq_p64_u16, vreinterpretq_p64_u32): Likewise.
3011 (vreinterpretq_p64_u64, vreinterpretq_p64_p8): Likewise.
3012 (vreinterpret_f16_p64, vreinterpretq_f16_p64): Likewise.
3013 (vreinterpret_f32_p64, vreinterpretq_f32_p64): Likewise.
3014 (vreinterpret_f64_p64, vreinterpretq_f64_p64): Likewise.
3015 (vreinterpret_s64_p64, vreinterpretq_s64_p64): Likewise.
3016 (vreinterpret_u64_p64, vreinterpretq_u64_p64): Likewise.
3017 (vreinterpret_s8_p64, vreinterpretq_s8_p64): Likewise.
3018 (vreinterpret_s16_p64, vreinterpret_s32_p64): Likewise.
3019 (vreinterpretq_s32_p64, vreinterpret_u8_p64): Likewise.
3020 (vreinterpret_u16_p64, vreinterpretq_u16_p64): Likewise.
3021 (vreinterpret_u32_p64, vreinterpretq_u32_p64): Likewise.
3022 (vset_lane_p64, vsetq_lane_p64): Likewise.
3023 (vget_low_p64, vget_high_p64): Likewise.
3024 (vcombine_p64, vst2_lane_p64): Likewise.
3025 (vst3_lane_p64, vst4_lane_p64): Likewise.
3026 (vst2q_lane_p64, vst3q_lane_p64): Likewise.
3027 (vst4q_lane_p64, vget_lane_p64): Likewise.
3028 (vget_laneq_p64, vset_lane_p64): Likewise.
3029 (vset_laneq_p64, vcopy_lane_p64): Likewise.
3030 (vcopy_laneq_p64, vdup_n_p64): Likewise.
3031 (vdupq_n_p64, vdup_lane_p64): Likewise.
3032 (vdup_laneq_p64, vld1_p64): Likewise.
3033 (vld1q_p64, vld1_dup_p64): Likewise.
3034 (vld1q_dup_p64, vld1q_dup_p64): Likewise.
3035 (vmov_n_p64, vmovq_n_p64): Likewise.
3036 (vst3q_p64, vst4q_p64): Likewise.
3037 (vld1_lane_p64, vld1q_lane_p64): Likewise.
3038 (vst1_lane_p64, vst1q_lane_p64): Likewise.
3039 (vcopy_laneq_p64, vcopyq_laneq_p64): Likewise.
3040 (vdupq_laneq_p64): Likewise.
3041
3042 2016-11-28 Tamar Christina <tamar.christina@arm.com>
3043
3044 * config/arm/arm_neon.h (vget_lane_p64): New.
3045
3046 2016-11-28 Iain Sandoe <iain@codesourcery.com>
3047
3048 PR target/71767
3049 * configure.ac (with_ld64): Use portable method to extract the
3050 major part of the version number.
3051 * configure: Regenerated.
3052
3053 2016-11-28 Jakub Jelinek <jakub@redhat.com>
3054
3055 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Look at
3056 UINTMAX_TYPE rather than SIZE_TYPE. Add gcc_unreachable if
3057 intmax_t couldn't be determined.
3058 (format_integer): Make {,u}intmax_type_node no longer static,
3059 initialize them only when needed. For z and t use
3060 signed_or_unsigned_type_for instead of assuming size_t and
3061 ptrdiff_t have the same precision.
3062
3063 PR lto/78211
3064 * ipa-icf.h (sem_item_optimizer): Add m_classes_vec member.
3065 * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Initialize it.
3066 (sem_item_optimizer::~sem_item_optimizer): Traverse m_classes_vec
3067 vector instead of traversing m_classes hash table. Release
3068 m_classes_vec.
3069 (sem_item_optimizer::read_section, sem_item_optimizer::add_class):
3070 Formatting fixes.
3071 (sem_item_optimizer::get_group_by_hash): When inserting a new group,
3072 add it also to m_classes_vec vector.
3073 (sem_item_optimizer::remove_symtab_node,
3074 sem_item_optimizer::build_hash_based_classes,
3075 sem_item_optimizer::parse_nonsingleton_classes): Formatting fixes.
3076 (sem_item_optimizer::subdivide_classes_by_equality,
3077 sem_item_optimizer::subdivide_classes_by_sensitive_refs,
3078 sem_item_optimizer::verify_classes): Traverse m_classes_vec vector
3079 instead of traversing m_classes hash table. Formatting fixes.
3080 (sem_item_optimizer::traverse_congruence_split,
3081 sem_item_optimizer::do_congruence_step_for_index,
3082 sem_item_optimizer::do_congruence_step): Formatting fixes.
3083 (sem_item_optimizer::process_cong_reduction): Traverse m_classes_vec
3084 vector instead of traversing m_classes hash table.
3085 (sem_item_optimizer::dump_cong_classes): Likewise. Formatting fixes.
3086 (sem_item_optimizer::merge_classes): Traverse m_classes_vec vector
3087 instead of traversing m_classes hash table.
3088
3089 2016-11-28 Georg-Johann Lay <avr@gjlay.de>
3090
3091 * config/avr/avr.c (out_movhi_r_mr) [REG_X + PLUS]: Only SBIW if
3092 X is not unused after.
3093
3094 2016-11-28 Bernd Schmidt <bschmidt@redhat.com>
3095
3096 PR rtl-optimization/78120
3097 * rtlanal.c (insn_rtx_cost): Revert previous change.
3098
3099 2016-11-28 Georg-Johann Lay <avr@gjlay.de>
3100
3101 PR 41076
3102 * config/avr/avr.md (SPLIT34): New mode iterator.
3103 (bitop): New code iterator.
3104 (*iorhi3.ashift8-*). New insn-and-split patterns.
3105 (*movhi): Post-reload split reg = 0.
3106 [!MOVW]: Post-reload split reg = reg.
3107 (*mov<mode>) [SI,SF,PSI,SQ,USQ,SA,USA]: Post-reload split reg = reg.
3108 (andhi3, andpsi3, andsi3): Post-reload split reg-reg operations.
3109 (iorhi3, iorpsi3, iorsi3): Same.
3110 (xorhi3, xorpsi3, xorsi3): Same.
3111 * config/avr/avr.c (avr_rtx_costs_1) [IOR && HImode]: Adjust rtx
3112 costs to *iorhi3.ashift8-* patterns.
3113
3114 2016-11-27 Iain Sandoe <iain@codesourcery.com>
3115 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3116
3117 PR target/67710
3118 * config.in: Regenerate
3119 * config/darwin-driver.c (darwin_driver_init): Emit a version string
3120 for the assembler.
3121 * config/darwin.h(ASM_MMACOSX_VERSION_MIN_SPEC): New, new tests.
3122 * config/darwin.opt(asm_macosx_version_min): New.
3123 * config/i386/darwin.h: Handle ASM_MMACOSX_VERSION_MIN_SPEC.
3124 * configure: Regenerate
3125 * configure.ac: Check for mmacosx-version-min handling.
3126
3127 2016-11-27 Iain Sandoe <iain@codesourcery.com>
3128
3129 PR target/57438
3130 * config/i386/i386.c (ix86_code_end): Note that we emitted code
3131 where the function might otherwise appear empty for picbase thunks.
3132 (ix86_output_function_epilogue): If we find a zero-sized function
3133 assume that reaching it is UB and trap. If we find a trailing label
3134 append a nop.
3135 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): If we
3136 find a zero-sized function assume that reaching it is UB and trap.
3137 If we find a trailing label, append a nop.
3138
3139 2016-11-27 Iain Sandoe <iain@codesourcery.com>
3140
3141 PR target/71767
3142 * config/darwin-sections.def (picbase_thunk_section): New.
3143 * config/darwin.c (darwin_init_sections): Set up picbase thunk
3144 section. (darwin_rodata_section, darwin_objc2_section,
3145 machopic_select_section, darwin_asm_declare_constant_name,
3146 darwin_emit_weak_or_comdat, darwin_function_section): Don’t use
3147 coalesced with newer linkers.
3148 (darwin_override_options): Decide on usage of coalesed sections
3149 on the basis of the target linker version.
3150 * config/darwin.h (MIN_LD64_NO_COAL_SECTS): New.
3151 * config/darwin.opt (mtarget-linker): New.
3152 * config/i386/i386.c (ix86_code_end): Do not force the thunks into
3153 a coalesced section, instead use a thunks section.
3154
3155 2016-11-27 Iain Sandoe <iain@codesourcery.com>
3156
3157 PR target/71767
3158 * configure.ac (with-ld64): New var, set for Darwin, set on
3159 detection of ld64, gcc_cv_ld64_export_dynamic: New, New test.
3160 * config/darwin.h: Use LD64_HAS_DYNAMIC export. DEF_LD64: New, define.
3161 * config/darwin10.h(DEF_LD64): Update for this target version.
3162 * config/darwin12.h(LINK_GCC_C_SEQUENCE_SPEC): Remove rdynamic test.
3163 (DEF_LD64): Update for this target version.
3164 * configure: Regenerated.
3165 * config.in: Regenerated.
3166
3167 2016-11-27 Iain Sandoe <iain@codesourcery.com>
3168
3169 PR target/71767
3170 * config/darwin.c (imachopic_indirection_name): Make data
3171 section indirections linker-visible.
3172 * config/darwin.h (ASM_GENERATE_INTERNAL_LABEL): Make local
3173 constant labels linker-visible.
3174
3175 2016-11-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3176
3177 * tree.c (build_common_tree_nodes): Initialize ptrdiff_type_node.
3178 (free_lang_data): Remove assignment to ptrdiff_type_node.
3179
3180 2016-11-25 Jakub Jelinek <jakub@redhat.com>
3181
3182 PR rtl-optimization/78526
3183 * simplify-rtx.c (simplify_immed_subreg): Don't use wi::extract_uhwi
3184 beyond val's precision.
3185
3186 PR rtl-optimization/78527
3187 * combine.c (make_compound_operation_int): Ignore LSHIFTRT with
3188 out of bounds shift count.
3189
3190 2016-11-25 Martin Liska <mliska@suse.cz>
3191
3192 PR web/71666
3193 * doc/invoke.texi (-fprofile-use): Fix reference to a section
3194 where -fprofile-generate is documented.
3195
3196 2016-11-25 Martin Liska <mliska@suse.cz>
3197
3198 PR gcov-profile/78086
3199 * coverage.c (build_init_ctor): Don't use priority {cd}tors if
3200 not supported by a target. Set priority to 100 if possible.
3201 (build_gcov_exit_decl): Likewise.
3202
3203 2016-11-25 Richard Biener <rguenther@suse.de>
3204
3205 PR ipa/78515
3206 * ipa-prop.c (compute_complex_assign_jump_func): Properly identify
3207 unary, binary and single RHSs.
3208 * tree.def (BIT_INSERT_EXPR): Adjust tree code name.
3209
3210 2016-11-25 Bin Cheng <bin.cheng@arm.com>
3211
3212 PR middle-end/78507
3213 PR middle-end/78510
3214 PR middle-end/78517
3215 * match.pd ((cond (cmp (convert1? @1) @3) (convert2? @1) @2)): Use
3216 cmp directly, rather than cmp_code. Initialize code to ERROR_MARK
3217 and set it to result code if transformation is valid. Use code EQ
3218 directly in last simplification case.
3219
3220 2016-11-25 Richard Biener <rguenther@suse.de>
3221
3222 * gimple-fold.c (fold_stmt_1): Check may_propagate_copy
3223 before valueizing return stmts.
3224
3225 2016-11-24 Richard Biener <rguenther@suse.de>
3226
3227 PR tree-optimization/78343
3228 * passes.def: Add CD-DCE pass after loop splitting.
3229 * tree-ssa-dce.c (find_obviously_necessary_stmts): Move
3230 SCEV init/finalize ...
3231 (perform_tree_ssa_dce): ... here. Deal with being
3232 executed inside the loop pipeline in aggressive mode.
3233
3234 2016-11-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
3235
3236 * tree-ssa-math-opts.c (struct symbolic_number): Improve comment.
3237
3238 2016-11-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
3239
3240 PR tree-optimization/77673
3241 * tree-ssa-math-opts.c (struct symbolic_number): Add new src field.
3242 (init_symbolic_number): Initialize src field from src parameter.
3243 (perform_symbolic_merge): Select most dominated statement as the
3244 source statement. Set src field of resulting n structure from the
3245 input src with the lowest address.
3246 (find_bswap_or_nop): Rename source_stmt into ins_stmt.
3247 (bswap_replace): Rename src_stmt into ins_stmt. Initially get source
3248 of load from src field rather than insertion statement. Cancel
3249 optimization if statement analyzed is not dominated by the insertion
3250 statement.
3251 (pass_optimize_bswap::execute): Rename src_stmt to ins_stmt. Compute
3252 dominance information.
3253
3254 2016-11-25 Eric Botcazou <ebotcazou@adacore.com>
3255
3256 PR ada/67205
3257 * config/mips/mips.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
3258
3259 2016-11-25 Martin Jambor <mjambor@suse.cz>
3260
3261 PR tree-optimization/70965
3262 * passes.def (pass_build_ssa_passes): Add pass_rebuild_cgraph_edges.
3263
3264 2016-11-24 James Greenahlgh <james.greenhalgh@arm.com>
3265
3266 PR target/78509
3267 * config/i386/i386.c (i386_excess_precision): Do not return
3268 FLT_EVAL_METHOD_UNPREDICTABLE when "type" is
3269 EXCESS_PRECISION_TYPE_STANDARD.
3270 * target.def (excess_precision): Document that targets should
3271 not return FLT_EVAL_METHOD_UNPREDICTABLE when "type" is
3272 EXCESS_PRECISION_TYPE_STANDARD or EXCESS_PRECISION_TYPE_FAST.
3273 Fix typo in first sentence.
3274 * doc/tm.texi: Regenerate.
3275
3276 2016-11-25 Richard Biener <rguenther@suse.de>
3277
3278 PR tree-optimization/78396
3279 * tree-vectorizer.c (vectorize_loops): When the if-converted
3280 body contains masked loads or stores do not attempt to
3281 basic-block-vectorize it.
3282
3283 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
3284 Alan Hayward <alan.hayward@arm.com>
3285 David Sherwood <david.sherwood@arm.com>
3286
3287 * function.h (spill_slot_alignment): Declare.
3288 * function.c (spill_slot_alignment): New function.
3289 * lra-spills.c (slot): Add align and size fields.
3290 (assign_mem_slot): Use them in the call to assign_stack_local.
3291 (add_pseudo_to_slot): Update the fields.
3292 (assign_stack_slot_num_and_sort_pseudos): Initialise the fields.
3293
3294 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
3295 Alan Hayward <alan.hayward@arm.com>
3296 David Sherwood <david.sherwood@arm.com>
3297
3298 * stor-layout.c (layout_type): Allow the caller to set the mode of
3299 a float type. Only choose one here if the mode is still VOIDmode.
3300 * tree.c (build_common_tree_nodes): Set the type mode of decimal
3301 floats before calling layout_type.
3302 * config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
3303
3304 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
3305
3306 * tree-tailcall.c (find_tail_calls): Allow calls to reference
3307 local variables if all references are known to be direct.
3308
3309 2016-11-25 Jakub Jelinek <jakub@redhat.com>
3310 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3311
3312 PR middle-end/78501
3313 * tree-vrp.c (extract_range_basic): Check for ptrdiff_type_node to be
3314 non null and it's precision matches precision of lhs's type.
3315
3316 2016-11-24 Martin Sebor <msebor@redhat.com>
3317
3318 PR tree-optimization/78476
3319 * gimple-ssa-sprintf.c (struct pass_sprintf_length::call_info):
3320 Add a member.
3321 (handle_gimple_call): Adjust signature.
3322 (try_substitute_return_value): Remove calls to bounded functions
3323 with zero buffer size whose result is known.
3324 (pass_sprintf_length::execute): Adjust call to handle_gimple_call.
3325
3326 2016-11-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3327
3328 * varasm.c (assemble_start_function): Wrap align_log definition in
3329 ASM_OUTPUT_MAX_SKIP_ALIGN.
3330
3331 2016-11-24 Uros Bizjak <ubizjak@gmail.com>
3332
3333 * config/i386/i386.md (wide AND insn to QImode splitter): Use
3334 explicit mode macros.
3335 (wide OR insn to QImode splitter): Ditto.
3336
3337 2016-11-24 Vladimir Makarov <vmakarov@redhat.com>
3338
3339 PR rtl-optimization/77541
3340 * lra-constraints.c (struct input_reload): Add field match_p.
3341 (get_reload_reg): Check modes of input reloads to generate unique
3342 value reload pseudo.
3343 (match_reload): Add input reload pseudo for the current insn.
3344
3345 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
3346
3347 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Update
3348 __FLT_EVAL_METHOD__ and __FLT_EVAL_METHOD_C99__ when we switch
3349 architecture levels.
3350 * config/aarch64/aarch64.c (aarch64_promoted_type): Only promote
3351 the aarch64_fp16_type_node, not all HFmode types.
3352 (aarch64_libgcc_floating_mode_supported_p): Support HFmode.
3353 (aarch64_scalar_mode_supported_p): Likewise.
3354 (aarch64_excess_precision): New.
3355 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
3356 (TARGET_SCALAR_MODE_SUPPORTED_P): Likewise.
3357 (TARGET_C_EXCESS_PRECISION): Likewise.
3358
3359 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
3360
3361 * config/aarch64/aarch64-c.c (aarch64_scalar_mode_supported_p): New.
3362 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
3363
3364 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
3365
3366 * config/aarch64/aarch64.md (<optab>sihf2): Convert to expand.
3367 (<optab>dihf2): Likewise.
3368 (aarch64_fp16_<optab><mode>hf2): New.
3369
3370 2016-11-24 Alexander Monakov <amonakov@ispras.ru>
3371
3372 PR target/67822
3373 * config/nvptx/mkoffload.c (main): Allow -fopenmp.
3374
3375 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
3376
3377 * common/config/sparc/sparc-common.c (sparc_option_optimization_table):
3378 Enable REE at -O2 and higher.
3379 * config/sparc/sparc.c (sparc_option_override): Disable it by default
3380 in 32-bit mode.
3381
3382 2016-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3383
3384 PR target/48863
3385 PR inline-asm/70184
3386 * tree-ssa-ter.c (temp_expr_table): Add reg_vars_cnt field.
3387 (new_temp_expr_table): Initialise reg_vars_cnt.
3388 (free_temp_expr_table): Release reg_vars_cnt.
3389 (process_replaceable): Add reg_vars_cnt argument, set reg_vars_cnt
3390 field of TAB.
3391 (find_replaceable_in_bb): Use the above to record register variable
3392 write occurrences and cancel replacement across them.
3393
3394 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
3395
3396 PR rtl-optimization/78437
3397 * ree.c (get_uses): New function.
3398 (combine_reaching_defs): When a copy is needed, return false if any
3399 reaching use of the source register reads it in a mode larger than
3400 the mode it is set in and WORD_REGISTER_OPERATIONS is true.
3401
3402 2016-11-24 Martin Liska <mliska@suse.cz>
3403
3404 * gimple-pretty-print.c (dump_edge_probability): New function.
3405 (dump_gimple_switch): Dump label edge probabilities.
3406 (dump_gimple_cond): Likewise.
3407 (dump_gimple_label): Dump
3408 (dump_gimple_bb_header): Dump basic block frequency.
3409 (pp_cfg_jump): Replace e->dest argument with e.
3410 (dump_implicit_edges): Likewise.
3411 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at):
3412 Use gimple_bb (at) instead of at->bb.
3413
3414 2016-11-24 Bernd Schmidt <bschmidt@redhat.com>
3415
3416 * common.opt (flimit-function-alignment): New.
3417 * doc/invoke.texi (-flimit-function-alignment): Document.
3418 * emit-rtl.h (struct rtl_data): Add max_insn_address field.
3419 * final.c (shorten_branches): Set it.
3420 * varasm.c (assemble_start_function): Limit alignment if
3421 requested.
3422
3423 2016-11-24 Richard Biener <rguenther@suse.de>
3424
3425 PR tree-optimization/71595
3426 * cfgloopmanip.h (remove_path): Add irred_invalidated and
3427 loop_closed_ssa_invalidated parameters, defaulted to NULL.
3428 * cfgloopmanip.c (remove_path): Likewise, pass them along to
3429 called functions. Only fix irred flags if the caller didn't
3430 request state.
3431 * tree-ssa-loop-ivcanon.c (unloop_loops): Use add_bb_to_loop.
3432 (unloop_loops): Pass irred_invalidated and loop_closed_ssa_invalidated
3433 to remove_path.
3434
3435 2016-11-24 Bernd Schmidt <bschmidt@redhat.com>
3436
3437 PR rtl-optimization/78120
3438 * ifcvt.c (noce_conversion_profitable_p): Check original cost in all
3439 cases, and additionally test against max_seq_cost for speed
3440 optimization.
3441 (noce_process_if_block): Compute an estimate for the original cost when
3442 optimizing for speed, using the minimum of then and else block costs.
3443
3444 PR rtl-optimization/78120
3445 * rtlanal.c (insn_rtx_cost): Use set_rtx_cost.
3446
3447 PR rtl-optimization/78120
3448 * config/i386/i386.c (ix86_rtx_costs): Fully handle SETs.
3449
3450 2016-11-24 Bin Cheng <bin.cheng@arm.com>
3451
3452 * match.pd: Refine type conversion in result expr for below pattern:
3453 (cond (cmp (convert1? x) c1) (convert2? x) c2) -> (minmax (x c)).
3454
3455 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
3456
3457 PR middle-end/78429
3458 * tree.h (wi::fits_to_boolean_p): New predicate.
3459 (wi::fits_to_tree_p): Use it for boolean types.
3460 * tree.c (int_fits_type_p): Likewise.
3461
3462 2016-11-24 Martin Liska <mliska@suse.cz>
3463
3464 * print-tree.c (struct bucket): Remove.
3465 (print_node): Add new argument which drives whether a tree node
3466 is printed briefly or not.
3467 (debug_tree): Replace a custom hash table with hash_set<T>.
3468 * print-tree.h (print_node): Add the argument.
3469
3470 2016-11-24 Chung-Lin Tang <cltang@codesourcery.com>
3471
3472 * config/nios2/nios2.c (nios2_init_libfuncs): Add ATTRIBUTE_UNUSED.
3473
3474 2016-11-23 Peter Bergner <bergner@vnet.ibm.com>
3475
3476 PR target/78458
3477 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return MODE
3478 if it is at least NREGS wide.
3479
3480 2016-11-23 Joseph Myers <joseph@codesourcery.com>
3481
3482 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p): For
3483 TARGET_E500_DOUBLE. handle TDmode, TImode and PTImode the same as
3484 TFmode, IFmode and KFmode.
3485
3486 2016-11-23 Joseph Myers <joseph@codesourcery.com>
3487
3488 * config/rs6000/spe.md (*frob_<SPE64:mode>_ti_8): New insn
3489 pattern.
3490
3491 2016-11-23 Segher Boessenkool <segher@kernel.crashing.org>
3492
3493 * combine.c (change_zero_ext): Only change the mode of a hard register
3494 destination if can_change_dest_mode holds for that.
3495
3496 2016-11-23 Jeff Law <law@redhat.com>
3497
3498 * varasm.c (assemble_name): Increase buffer size for name.
3499
3500 * config/spu/spu.md (floatunsdidf2): Remove unused local variable.
3501
3502 2016-11-23 Jakub Kicinski <jakub.kicinski@netronome.com>
3503
3504 * doc/extend.texi: Constify first argument to __builtin_object_size.
3505
3506 2016-11-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
3507
3508 * opth-gen.awk: Use unsigned shifts for bit masks. Allow all bits
3509 to be used. Add brackets around macro argument.
3510
3511 2016-11-23 Uros Bizjak <ubizjak@gmail.com>
3512
3513 * config/i386/i386.md (*<any_or:code>hi_1): Fix operand 2 constraints.
3514
3515 2016-11-23 Jakub Jelinek <jakub@redhat.com>
3516
3517 PR sanitizer/69278
3518 * opts.c (parse_sanitizer_options): For -fsanitize=undefined,
3519 restore enabling also SANITIZE_UNREACHABLE and SANITIZE_RETURN.
3520
3521 2016-11-23 Jakub Jelinek <jakub@redhat.com>
3522
3523 PR middle-end/69183
3524 * omp-low.c (build_outer_var_ref): Change lastprivate argument
3525 to code, pass it recursively, adjust uses. For OMP_CLAUSE_PRIVATE
3526 on worksharing constructs, treat it like clauses on simd construct.
3527 Formatting fix.
3528 (lower_rec_input_clauses): For OMP_CLAUSE_PRIVATE_OUTER_REF pass
3529 OMP_CLAUSE_PRIVATE as last argument to build_outer_var_ref.
3530 (lower_lastprivate_clauses): Pass OMP_CLAUSE_LASTPRIVATE instead
3531 of true as last argument to build_outer_var_ref.
3532
3533 2016-11-23 Uros Bizjak <ubizjak@gmail.com>
3534
3535 * config/i386/i386.md (*movqi_internal): Calculate mode
3536 attribute of alternatives 7,8,9 depending on TARGET_AVX512DQ.
3537 <TYPE_MSKMOV>: Emit kmovw for MODE_HI insn mode attribute.
3538 (*k<logic><mode>): Calculate mode attribute depending on
3539 TARGET_AVX512DQ. Emit k<logic>w for MODE_HI insn mode attribute.
3540 (*andqi_1): Calculate mode attribute of alternative 3 depending
3541 on TARGET_AVX512DQ. Emit kandw for MODE_HI insn mode attribute.
3542 (kandn<mode>): Calculate mode attribute of alternative 2 depending
3543 on TARGET_AVX512DQ. Emit kandnw for MODE_HI insn mode attribute.
3544 (kxnor<mode>): Merge insn patterns using SWI1248_AVX512BW mode
3545 iterator. Calculate mode attribute of alternative 1 depending
3546 on TARGET_AVX512DQ. Emit kxnorw for MODE_HI insn mode attribute.
3547 (*one_cmplqi2_1): Calculate mode attribute of alternative 2 depending
3548 on TARGET_AVX512DQ. Emit knotw for MODE_HI insn mode attribute.
3549
3550 2016-11-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3551
3552 PR middle-end/78153
3553 * gimple-fold.c (fold_stmt_1): Handle case for GIMPLE_RETURN.
3554 * tree-vrp.c (extract_range_basic): Handle case for
3555 CFN_BUILT_IN_STRLEN.
3556
3557 2016-11-23 Jeff Law <law@redhat.com>
3558
3559 * config/mcore/mcore.c (emit_new_cond_insn): Fix prototype.
3560
3561 * config/iq2000/iq2000.c (iq2000_rtx_costs): Avoid multiplication
3562 in boolean context warning.
3563
3564 * config/ia64/ia64.c (ia64_emit_insn_before): Fix prototype.
3565
3566 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3567
3568 PR target/63250
3569 * config/arm/arm-builtins.c (arm_simd_floatHF_type_node): Rename to...
3570 (arm_fp16_type_node): ...This, make visibile.
3571 (arm_simd_builtin_std_type): Rename arm_simd_floatHF_type_node to
3572 arm_fp16_type_node.
3573 (arm_init_simd_builtin_types): Likewise.
3574 (arm_init_fp16_builtins): Likewise.
3575 * config/arm/arm.c (arm_excess_precision): New.
3576 (arm_floatn_mode): Likewise.
3577 (TARGET_C_EXCESS_PRECISION): Likewise.
3578 (TARGET_FLOATN_MODE): Likewise.
3579 (arm_promoted_type): Only promote arm_fp16_type_node.
3580 * config/arm/arm.h (arm_fp16_type_node): Declare.
3581
3582 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3583
3584 * config/arm/arm.c (arm_convert_to_type): Delete.
3585 (TARGET_CONVERT_TO_TYPE): Delete.
3586 (arm_init_libfuncs): Enable trunc_optab from DFmode to HFmode.
3587 (arm_libcall_uses_aapcs_base): Add trunc_optab from DF- to HFmode.
3588 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): New.
3589 * config/arm/arm.md (truncdfhf2): Only convert through SFmode if we
3590 are in fast math mode, and have no single step hardware instruction.
3591 (extendhfdf2): Only expand through SFmode if we don't have a
3592 single-step hardware instruction.
3593 * config/arm/vfp.md (*truncdfhf2): New.
3594 (extendhfdf2): Likewise.
3595
3596 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3597
3598 * targhooks.c (default_floatn_mode): Enable _Float16 if a target
3599 provides HFmode.
3600
3601 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3602
3603 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Delete.
3604 * config/m68k/m68k.h (TARGET_FLT_EVAL_METHOD): Delete.
3605 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Delete.
3606 * defaults.h (TARGET_FLT_EVAL_METHOD): Delete.
3607 * doc/tm.texi.in (TARGET_FLT_EVAL_METHOD): Delete.
3608 * doc/tm.texi: Regenerate.
3609 * system.h (TARGET_FLT_EVAL_METHOD): Poison.
3610
3611 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3612
3613 * toplev.c (init_excess_precision): Delete most logic.
3614 * tree.c (excess_precision_type): Rewrite to use
3615 TARGET_EXCESS_PRECISION.
3616 * doc/invoke.texi (-fexcess-precision): Document behaviour in a
3617 more generic fashion.
3618 * ginclude/float.h: Wrap definition of FLT_EVAL_METHOD in
3619 __STDC_WANT_IEC_60559_TYPES_EXT__.
3620
3621 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3622
3623 * common.opt (fpermitted-flt-eval-methods): New.
3624 * doc/invoke.texi (-fpermitted-flt-eval-methods): Document it.
3625 * flag_types.h (permitted_flt_eval_methods): New.
3626
3627 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3628
3629 * config/m68k/m68k.c (m68k_excess_precision): New.
3630 (TARGET_C_EXCESS_PRECISION): Define.
3631
3632 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3633
3634 * config/s390/s390.c (s390_excess_precision): New.
3635 (TARGET_C_EXCESS_PRECISION): Define.
3636
3637 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3638
3639 * config/i386/i386.c (ix86_excess_precision): New.
3640 (TARGET_C_EXCESS_PRECISION): Define.
3641
3642 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3643
3644 * target.def (excess_precision): New hook.
3645 * target.h (flt_eval_method): New.
3646 (excess_precision_type): Likewise.
3647 * targhooks.c (default_excess_precision): New.
3648 * targhooks.h (default_excess_precision): New.
3649 * doc/tm.texi.in (TARGET_C_EXCESS_PRECISION): New.
3650 * doc/tm.texi: Regenerate.
3651
3652 2016-11-23 Martin Sebor <msebor@redhat.com>
3653
3654 PR middle-end/78461
3655 * gimple-ssa-sprintf.c (format_string): Correct the maxima and
3656 set the minimum number of bytes for an unknown string to zero.
3657
3658 2016-11-23 Martin Jambor <mjambor@suse.cz>
3659 Martin Liska <mliska@suse.cz>
3660
3661 * hsa-builtins.def: New file.
3662 * Makefile.in (BUILTINS_DEF): Add hsa-builtins.def dependency.
3663 * builtins.def: Include hsa-builtins.def.
3664 (DEF_HSA_BUILTIN): New macro.
3665 * dumpfile.h (OPTGROUP_OPENMP): Define.
3666 * dumpfile.c (optgroup_options): Added OPTGROUP_OPENMP.
3667 * gimple.h (gf_mask): Added elements GF_OMP_FOR_GRID_INTRA_GROUP and
3668 GF_OMP_FOR_GRID_GROUP_ITER.
3669 (gimple_omp_for_grid_phony): Added checking assert.
3670 (gimple_omp_for_set_grid_phony): Likewise.
3671 (gimple_omp_for_grid_intra_group): New function.
3672 (gimple_omp_for_set_grid_intra_group): Likewise.
3673 (gimple_omp_for_grid_group_iter): Likewise.
3674 (gimple_omp_for_set_grid_group_iter): Likewise.
3675 * omp-low.c (check_omp_nesting_restrictions): Allow GRID loop where
3676 previosuly only distribute loop was permitted.
3677 (lower_lastprivate_clauses): Allow non tcc_comparison predicates.
3678 (grid_get_kernel_launch_attributes): Support multiple HSA grid
3679 dimensions.
3680 (grid_expand_omp_for_loop): Likewise and also support standalone
3681 distribute constructs. New parameter INTRA_GROUP, updated both users.
3682 (grid_expand_target_grid_body): Support standalone distribute
3683 constructs.
3684 (pass_data_expand_omp): Changed optinfo_flags to OPTGROUP_OPENMP.
3685 (pass_data_expand_omp_ssa): Likewise.
3686 (pass_data_omp_device_lower): Likewsie.
3687 (pass_data_lower_omp): Likewise.
3688 (pass_data_diagnose_omp_blocks): Likewise.
3689 (pass_data_oacc_device_lower): Likewise.
3690 (pass_data_omp_target_link): Likewise.
3691 (grid_lastprivate_predicate): New function.
3692 (lower_omp_for_lastprivate): Call grid_lastprivate_predicate for
3693 gridified loops.
3694 (lower_omp_for): Support standalone distribute constructs.
3695 (grid_prop): New type.
3696 (grid_safe_assignment_p): Check for assignments to group_sizes, new
3697 parameter GRID.
3698 (grid_seq_only_contains_local_assignments): New parameter GRID, pass
3699 it to callee.
3700 (grid_find_single_omp_among_assignments_1): Likewise, improve missed
3701 optimization info messages.
3702 (grid_find_single_omp_among_assignments): Likewise.
3703 (grid_find_ungridifiable_statement): Do not bail out for SIMDs.
3704 (grid_parallel_clauses_gridifiable): New function.
3705 (grid_inner_loop_gridifiable_p): Likewise.
3706 (grid_dist_follows_simple_pattern): Likewise.
3707 (grid_gfor_follows_tiling_pattern): Likewise.
3708 (grid_call_permissible_in_distribute_p): Likewise.
3709 (grid_handle_call_in_distribute): Likewise.
3710 (grid_dist_follows_tiling_pattern): Likewise.
3711 (grid_target_follows_gridifiable_pattern): Support standalone
3712 distribute constructs.
3713 (grid_var_segment): New enum.
3714 (grid_mark_variable_segment): New function.
3715 (grid_copy_leading_local_assignments): Call grid_mark_variable_segment
3716 if a new argument says so.
3717 (grid_process_grid_body): New function.
3718 (grid_eliminate_combined_simd_part): Likewise.
3719 (grid_mark_tiling_loops): Likewise.
3720 (grid_mark_tiling_parallels_and_loops): Likewise.
3721 (grid_process_kernel_body_copy): Support standalone distribute
3722 constructs.
3723 (grid_attempt_target_gridification): New grid variable holding overall
3724 gridification state. Support standalone distribute constructs and
3725 collapse clauses.
3726 * doc/optinfo.texi (Optimization groups): Document OPTGROUP_OPENMP.
3727 * hsa.h (hsa_bb): Add method method append_phi.
3728 (hsa_insn_br): Renamed to hsa_insn_cbr, renamed all
3729 occurences in all files too.
3730 (hsa_insn_br): New class, now the ancestor of hsa_incn_cbr.
3731 (is_a_helper <hsa_insn_br *>::test): New function.
3732 (is_a_helper <hsa_insn_cbr *>::test): Adjust to only cover conditional
3733 branch instructions.
3734 (hsa_insn_signal): Make a direct descendant of
3735 hsa_insn_basic. Add memorder constructor parameter and
3736 m_memory_order and m_signalop member variables.
3737 (hsa_insn_queue): Changed constructor parameters to common form.
3738 Added m_segment and m_memory_order member variables.
3739 (hsa_summary_t): Add private member function
3740 process_gpu_implementation_attributes.
3741 (hsa_function_summary): Rename m_binded_function to
3742 m_bound_function.
3743 (hsa_insn_basic_p): Remove typedef.
3744 (hsa_op_with_type): Change hsa_insn_basic_p into plain pointers.
3745 (hsa_op_reg_p): Remove typedef.
3746 (hsa_function_representation): Change hsa_op_reg_p into plain
3747 pointers.
3748 (hsa_insn_phi): Removed new and delete operators.
3749 (hsa_insn_br): Likewise.
3750 (hsa_insn_cbr): Likewise.
3751 (hsa_insn_sbr): Likewise.
3752 (hsa_insn_cmp): Likewise.
3753 (hsa_insn_mem): Likewise.
3754 (hsa_insn_atomic): Likewise.
3755 (hsa_insn_signal): Likewise.
3756 (hsa_insn_seg): Likewise.
3757 (hsa_insn_call): Likewise.
3758 (hsa_insn_arg_block): Likewise.
3759 (hsa_insn_comment): Likewise.
3760 (hsa_insn_srctype): Likewise.
3761 (hsa_insn_packed): Likewise.
3762 (hsa_insn_cvt): Likewise.
3763 (hsa_insn_alloca): Likewise.
3764 * hsa.c (hsa_destroy_insn): Also handle instances of hsa_insn_br.
3765 (process_gpu_implementation_attributes): New function.
3766 (link_functions): Move some functionality into it. Adjust after
3767 renaming m_binded_functions to m_bound_functions.
3768 (hsa_insn_basic::op_output_p): Add BRIG_OPCODE_DEBUGTRAP
3769 to the list of instructions with no output registers.
3770 (get_in_type): Return this if it is a register of
3771 matching size.
3772 (hsa_get_declaration_name): Moved to...
3773 * hsa-gen.c (hsa_get_declaration_name): ...here. Allocate
3774 temporary string on an obstack instead from ggc.
3775 (query_hsa_grid): Renamed to query_hsa_grid_dim, reimplemented, cut
3776 down to two overloads.
3777 (hsa_allocp_operand_address): Removed.
3778 (hsa_allocp_operand_immed): Likewise.
3779 (hsa_allocp_operand_reg): Likewise.
3780 (hsa_allocp_operand_code_list): Likewise.
3781 (hsa_allocp_operand_operand_list): Likewise.
3782 (hsa_allocp_inst_basic): Likewise.
3783 (hsa_allocp_inst_phi): Likewise.
3784 (hsa_allocp_inst_mem): Likewise.
3785 (hsa_allocp_inst_atomic): Likewise.
3786 (hsa_allocp_inst_signal): Likewise.
3787 (hsa_allocp_inst_seg): Likewise.
3788 (hsa_allocp_inst_cmp): Likewise.
3789 (hsa_allocp_inst_br): Likewise.
3790 (hsa_allocp_inst_sbr): Likewise.
3791 (hsa_allocp_inst_call): Likewise.
3792 (hsa_allocp_inst_arg_block): Likewise.
3793 (hsa_allocp_inst_comment): Likewise.
3794 (hsa_allocp_inst_queue): Likewise.
3795 (hsa_allocp_inst_srctype): Likewise.
3796 (hsa_allocp_inst_packed): Likewise.
3797 (hsa_allocp_inst_cvt): Likewise.
3798 (hsa_allocp_inst_alloca): Likewise.
3799 (hsa_allocp_bb): Likewise.
3800 (hsa_obstack): New.
3801 (hsa_init_data_for_cfun): Initialize obstack.
3802 (hsa_deinit_data_for_cfun): Release memory of the obstack.
3803 (hsa_op_immed::operator new): Use obstack instead of object_allocator.
3804 (hsa_op_reg::operator new): Likewise.
3805 (hsa_op_address::operator new): Likewise.
3806 (hsa_op_code_list::operator new): Likewise.
3807 (hsa_op_operand_list::operator new): Likewise.
3808 (hsa_insn_basic::operator new): Likewise.
3809 (hsa_insn_phi::operator new): Likewise.
3810 (hsa_insn_br::operator new): Likewise.
3811 (hsa_insn_sbr::operator new): Likewise.
3812 (hsa_insn_cmp::operator new): Likewise.
3813 (hsa_insn_mem::operator new): Likewise.
3814 (hsa_insn_atomic::operator new): Likewise.
3815 (hsa_insn_signal::operator new): Likewise.
3816 (hsa_insn_seg::operator new): Likewise.
3817 (hsa_insn_call::operator new): Likewise.
3818 (hsa_insn_arg_block::operator new): Likewise.
3819 (hsa_insn_comment::operator new): Likewise.
3820 (hsa_insn_srctype::operator new): Likewise.
3821 (hsa_insn_packed::operator new): Likewise.
3822 (hsa_insn_cvt::operator new): Likewise.
3823 (hsa_insn_alloca::operator new): Likewise.
3824 (hsa_init_new_bb): Likewise.
3825 (hsa_bb::append_phi): New function.
3826 (gen_hsa_phi_from_gimple_phi): Use it.
3827 (get_symbol_for_decl): Fix dinstinguishing between
3828 global and local functions. Put local variables into a segment
3829 according to their attribute or static flag, if there is one.
3830 (hsa_insn_br::hsa_insn_br): New.
3831 (hsa_insn_br::operator new): Likewise.
3832 (hsa_insn_cbr::hsa_insn_cbr): Set width via ancestor constructor.
3833 (query_hsa_grid_nodim): New function.
3834 (multiply_grid_dim_characteristics): Likewise.
3835 (gen_get_num_threads): Likewise.
3836 (gen_get_num_teams): Reimplemented.
3837 (gen_get_team_num): Likewise.
3838 (gen_hsa_insns_for_known_library_call): Updated calls to the above
3839 helper functions.
3840 (get_memory_order_name): Removed.
3841 (get_memory_order): Likewise.
3842 (hsa_memorder_from_tree): New function.
3843 (gen_hsa_ternary_atomic_for_builtin): Renamed to
3844 gen_hsa_atomic_for_builtin, can also create signals.
3845 (gen_hsa_insns_for_call): Handle many new builtins. Adjust to use
3846 hsa_memory_order_from_tree and gen_hsa_atomic_for_builtin.
3847 (hsa_insn_atomic): Fix function comment.
3848 (hsa_insn_signal::hsa_insn_signal): Fix comment. Update call to
3849 ancestor constructor and initialization of new member variables.
3850 (hsa_insn_queue::hsa_insn_queue): Added initialization of new
3851 member variables.
3852 (hsa_get_host_function): Handle functions with no bound CPU
3853 implementation. Fix binded to bound.
3854 (get_brig_function_name): Likewise.
3855 (HSA_SORRY_ATV): Remove semicolon after macro.
3856 (HSA_SORRY_AT): Likewise.
3857 (omp_simple_builtin::generate): Add missing semicolons.
3858 (hsa_insn_phi::operator new): Removed.
3859 (hsa_insn_br::operator new): Likewise.
3860 (hsa_insn_cbr::operator new): Likewise.
3861 (hsa_insn_sbr::operator new): Likewise.
3862 (hsa_insn_cmp::operator new): Likewise.
3863 (hsa_insn_mem::operator new): Likewise.
3864 (hsa_insn_atomic::operator new): Likewise.
3865 (hsa_insn_signal::operator new): Likewise.
3866 (hsa_insn_seg::operator new): Likewise.
3867 (hsa_insn_call::operator new): Likewise.
3868 (hsa_insn_arg_block::operator new): Likewise.
3869 (hsa_insn_comment::operator new): Likewise.
3870 (hsa_insn_srctype::operator new): Likewise.
3871 (hsa_insn_packed::operator new): Likewise.
3872 (hsa_insn_cvt::operator new): Likewise.
3873 (hsa_insn_alloca::operator new): Likewise.
3874 (get_symbol_for_decl): Accept CONST_DECLs, put them to
3875 readonly segment.
3876 (gen_hsa_addr): Also process CONST_DECLs.
3877 (gen_hsa_addr_insns): Process CONST_DECLs by creating private
3878 copies.
3879 (gen_hsa_unary_operation): Make sure the function does
3880 not use bittype source type for firstbit and lastbit operations.
3881 (gen_hsa_popcount_to_dest): Make sure the function uses a bittype
3882 source type.
3883 * hsa-brig.c (emit_insn_operands): Cope with zero operands in an
3884 instruction.
3885 (emit_branch_insn): Renamed to emit_cond_branch_insn.
3886 Emit the width stored in the class.
3887 (emit_generic_branch_insn): New function.
3888 (emit_insn): Call emit_generic_branch_insn.
3889 (emit_signal_insn): Remove obsolete comment. Update
3890 member variable name, pick a type according to profile.
3891 (emit_alloca_insn): Remove obsolete comment.
3892 (emit_atomic_insn): Likewise.
3893 (emit_queue_insn): Get segment and memory order from the IR object.
3894 (hsa_brig_section): Make allocate_new_chunk, chunks
3895 and cur_chunk provate, add a default NULL parameter to add method.
3896 (hsa_brig_section::add): Added a new parameter, store pointer to
3897 output data there if it is non-NULL.
3898 (emit_function_directives): Use this new parameter instead of
3899 calculating the pointer itself, fix function comment.
3900 (hsa_brig_emit_function): Add forgotten endian conversion.
3901 (hsa_output_kernels): Remove unnecessary building of
3902 kernel_dependencies_vector_type.
3903 (emit_immediate_operand): Declare.
3904 (emit_directive_variable): Also emit initializers of CONST_DECLs.
3905 (gen_hsa_insn_for_internal_fn_call): Also handle IFN_RSQRT.
3906 (verify_function_arguments): Properly detect variadic
3907 arguments.
3908 * hsa-dump.c (hsa_width_specifier_name): New function.
3909 (dump_hsa_insn_1): Dump generic branch instructions, update signal
3910 member variable name. Special dumping for queue objects.
3911 * ipa-hsa.c (process_hsa_functions): Adjust after renaming
3912 m_binded_functions to m_bound_functions. Copy externally visible flag
3913 to the node.
3914 (ipa_hsa_write_summary): Likewise.
3915 (ipa_hsa_read_section): Likewise.
3916
3917 2016-11-23 Richard Biener <rguenther@suse.de>
3918
3919 PR tree-optimization/78396
3920 * tree-vectorizer.c (vectorize_loops): If an innermost loop didn't
3921 vectorize try vectorizing an if-converted body using BB vectorization.
3922
3923 2016-11-23 Richard Sandiford <richard.sandiford@arm.com>
3924 Alan Hayward <alan.hayward@arm.com>
3925 David Sherwood <david.sherwood@arm.com>
3926
3927 * rtlanal.c (subreg_get_info): Use more local variables.
3928 Remark that for HARD_REGNO_NREGS_HAS_PADDING, each scalar unit
3929 occupies at least one register. Assume that full hard registers
3930 have consistent endianness. Share previously-duplicated if block.
3931 Rework the main handling so that it operates on independently-
3932 addressable YMODE-sized blocks. Use subreg_size_lowpart_offset
3933 to check lowpart offsets, without trying to find an equivalent
3934 integer mode first. Handle WORDS_BIG_ENDIAN != REG_WORDS_BIG_ENDIAN
3935 as a final register-endianness correction.
3936
3937 2016-11-23 Segher Boessenkool <segher@kernel.crashing.org>
3938
3939 PR target/77881
3940 PR bootstrap/78390
3941 PR target/78438
3942 PR bootstrap/78477
3943 * combine.c (make_compound_operation_int): Do not convert a subreg of
3944 a non-constant logical shift right to a zero_extract. Handle the case
3945 where some zero bits have been shifted into the range covered by that
3946 subreg.
3947
3948 2016-11-23 Richard Sandiford <richard.sandiford@arm.com>
3949 Alan Hayward <alan.hayward@arm.com>
3950 David Sherwood <david.sherwood@arm.com>
3951
3952 * rtl.h (subreg_size_offset_from_lsb): Declare.
3953 (subreg_offset_from_lsb): New function.
3954 (subreg_size_lowpart_offset): Declare.
3955 (subreg_lowpart_offset): Turn into an inline function.
3956 (subreg_size_highpart_offset): Declare.
3957 (subreg_highpart_offset): Turn into an inline function.
3958 * emit-rtl.c (subreg_size_lowpart_offset): New function.
3959 (subreg_size_highpart_offset): Likewise
3960 * rtlanal.c (subreg_size_offset_from_lsb): Likewise.
3961
3962 2016-11-23 Richard Biener <rguenther@suse.de>
3963
3964 PR tree-optimization/78482
3965 * tree-cfgcleanup.c: Include tree-ssa-loop-niter.h.
3966 (remove_forwarder_block_with_phi): When merging with a loop
3967 header creates a new latch reset number of iteration information
3968 of the loop.
3969
3970 2016-11-23 Eric Botcazou <ebotcazou@adacore.com>
3971
3972 * config/sparc/sparc.md (*ashrsi3_extend): Rename to...
3973 (*ashrsi3_extend0): ...this. Accept constant integers.
3974 (*ashrsi3_extend2): Rename to...
3975 (*ashrsi3_extend1): ...this.
3976 (*ashrsi3_extend2): New pattern.
3977 (*lshrsi3_extend1): Accept constant integers.
3978 (*lshrsi3_extend2): Fix condition on operand 2.
3979
3980 2016-11-23 Martin Liska <mliska@suse.cz>
3981
3982 * config/i386/i386.c: Initialize function pointer to NULL.
3983
3984 2016-11-23 Bin Cheng <bin.cheng@arm.com>
3985
3986 * fold-const.c (fold_cond_expr_with_comparison): Move simplification
3987 for A == C1 ? A : C2 to below.
3988 * match.pd: Move from above to here:
3989 (cond (eq (convert1? x) c1) (convert2? x) c2)
3990 -> (cond (eq x c1) c1 c2).
3991
3992 2016-11-23 Bin Cheng <bin.cheng@arm.com>
3993
3994 * fold-const.c (fold_cond_expr_with_comparison): Move simplification
3995 for A cmp C1 ? A : C2 to below, also simplify remaining code.
3996 * match.pd: Move and extend simplification from above to here:
3997 (cond (cmp (convert1? x) c1) (convert2? x) c2) -> (minmax (x c)).
3998 * tree-if-conv.c (ifcvt_follow_ssa_use_edges): New func.
3999 (predicate_scalar_phi): Call fold_stmt using the new valueize func.
4000
4001 2016-11-23 Martin Liska <mliska@suse.cz>
4002 Martin Jambor <mjambor@suse.cz>
4003
4004 * doc/install.texi: Remove entry about --with-hsa-kmt-lib.
4005
4006 2016-11-23 Aldy Hernandez <aldyh@redhat.com>
4007
4008 PR target/78213
4009 * opts.c (finish_options): Set -fsyntax-only if running self tests.
4010
4011 2016-11-23 Richard Biener <rguenther@suse.de>
4012
4013 PR middle-end/71762
4014 * match.pd ((~X & Y) -> X < Y, (X & ~Y) -> Y < X,
4015 (~X | Y) -> X <= Y, (X | ~Y) -> Y <= X): Remove.
4016
4017 2016-11-23 Richard Biener <rguenther@suse.de>
4018
4019 PR lto/78472
4020 * tree.c (gimple_canonical_types_compatible_p): Ignore zero-sized
4021 fields.
4022
4023 2016-11-23 Richard Biener <rguenther@suse.de>
4024 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.rog>
4025
4026 PR tree-optimization/78154
4027 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Return true if function
4028 returns it's argument and the argument is nonnull.
4029 * builtin-attrs.def: Define ATTR_RETURNS_NONNULL,
4030 ATT_RETNONNULL_NOTHROW_LEAF.
4031 * builtins.def (BUILT_IN_MEMPCPY): Change attribute to
4032 ATTR_RETNONNULL_NOTHROW_LEAF.
4033 (BUILT_IN_STPCPY): Likewise.
4034 (BUILT_IN_STPNCPY): Likewise.
4035 (BUILT_IN_MEMPCPY_CHK): Likewise.
4036 (BUILT_IN_STPCPY_CHK): Likewise.
4037 (BUILT_IN_STPNCPY_CHK): Likewise.
4038 (BUILT_IN_STRCAT): Change attribute to ATTR_RET1_NOTHROW_NONNULL_LEAF.
4039 (BUILT_IN_STRNCAT): Likewise.
4040 (BUILT_IN_STRNCPY): Likewise.
4041 (BUILT_IN_MEMSET_CHK): Likewise.
4042 (BUILT_IN_STRCAT_CHK): Likewise.
4043 (BUILT_IN_STRCPY_CHK): Likewise.
4044 (BUILT_IN_STRNCAT_CHK): Likewise.
4045 (BUILT_IN_STRNCPY_CHK): Likewise.
4046
4047 2016-11-23 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4048
4049 * fold-const.c (tree_expr_nonzero_p) : Make non-static.
4050 * fold-const.h (tree_expr_nonzero_p) : Declare.
4051 * match.pd (cmp (mult:c @0 @1) (mult:c @2 @1) : New Pattern.
4052
4053 2016-11-23 Paolo Bonzini <bonzini@gnu.org>
4054
4055 * system.h (HAVE_DESIGNATED_INITIALIZERS,
4056 HAVE_DESIGNATED_UNION_INITIALIZERS): Do not use
4057 "defined" in macros.
4058 * doc/cpp.texi (Defined): Mention -Wexpansion-to-defined.
4059 * doc/cppopts.texi (Invocation): Document -Wexpansion-to-defined.
4060 * doc/invoke.texi (Warning Options): Document -Wexpansion-to-defined.
4061
4062 2016-11-23 Georg-Johann Lay <avr@gjlay.de>
4063
4064 PR target/60300
4065 * config/avr/constraints.md (Csp): Widen range to [-11..6].
4066 * config/avr/avr.c (avr_prologue_setup_frame): Limit number
4067 of RCALLs in prologue to 3.
4068
4069 2016-11-22 Michael Collison <michael.collison@arm.com>
4070
4071 * config/aarch64/aarch64-protos.h
4072 (aarch64_and_split_imm1, aarch64_and_split_imm2)
4073 (aarch64_and_bitmask_imm): New prototypes
4074 * config/aarch64/aarch64.c (aarch64_and_split_imm1):
4075 New overloaded function to create bit mask covering the
4076 lowest to highest bits set.
4077 (aarch64_and_split_imm2): New overloaded functions to create bit
4078 mask of zeros between first and last bit set.
4079 (aarch64_and_bitmask_imm): New function to determine if a integer
4080 is a valid two instruction "and" operation.
4081 * config/aarch64/aarch64.md:(and<mode>3): New define_insn and _split
4082 allowing wider range of constants with "and" operations.
4083 * (ior<mode>3, xor<mode>3): Use new LOGICAL2 iterator to prevent
4084 "and" operator from matching restricted constant range used for
4085 ior and xor operators.
4086 * config/aarch64/constraints.md (UsO constraint): New SImode constraint
4087 for constants in "and" operantions.
4088 (UsP constraint): New DImode constraint for constants
4089 in "and" operations.
4090 * config/aarch64/iterators.md (lconst2): New mode iterator.
4091 (LOGICAL2): New code iterator.
4092 * config/aarch64/predicates.md (aarch64_logical_and_immediate): New
4093 predicate.
4094 (aarch64_logical_and_operand): New predicate allowing extended
4095 constants for "and" operations.
4096
4097 2016-11-22 Walter Lee <walt@tilera.com>
4098
4099 * config/tilegx/tilegx.md (trap): New pattern.
4100 * config/tilepro/tilepro.md (trap): Likewise.
4101
4102 2016-11-22 Walter Lee <walt@tilera.com>
4103
4104 * config/tilegx/tilegx.md (*zero_extract): Use
4105 define_insn_and_split instead of define_insn; Handle pos + size >
4106 64.
4107 (*sign_extract): Likewise.
4108
4109 2016-11-22 Marek Polacek <polacek@redhat.com>
4110
4111 PR tree-optimization/78455
4112 * tree-ssa-uninit.c (can_chain_union_be_invalidated_p): Fix typo.
4113
4114 2016-11-22 Ian Lance Taylor <iant@golang.org>
4115
4116 PR go/78431
4117 PR go/78432
4118 * godump.c (go_format_type): Always pass alignment as 1 when
4119 calling go_append_padding at end of struct/union.
4120
4121 2016-11-22 Jakub Jelinek <jakub@redhat.com>
4122
4123 PR target/78451
4124 * config/i386/avx512bwintrin.h (_mm512_setzero_qi,
4125 _mm512_setzero_hi): Removed.
4126 (_mm512_maskz_mov_epi16, _mm512_maskz_loadu_epi16,
4127 _mm512_maskz_mov_epi8, _mm512_maskz_loadu_epi8,
4128 _mm512_maskz_broadcastb_epi8, _mm512_maskz_set1_epi8,
4129 _mm512_maskz_broadcastw_epi16, _mm512_maskz_set1_epi16,
4130 _mm512_mulhrs_epi16, _mm512_maskz_mulhrs_epi16, _mm512_mulhi_epi16,
4131 _mm512_maskz_mulhi_epi16, _mm512_mulhi_epu16,
4132 _mm512_maskz_mulhi_epu16, _mm512_maskz_mullo_epi16,
4133 _mm512_cvtepi8_epi16, _mm512_maskz_cvtepi8_epi16, _mm512_cvtepu8_epi16,
4134 _mm512_maskz_cvtepu8_epi16, _mm512_permutexvar_epi16,
4135 _mm512_maskz_permutexvar_epi16, _mm512_avg_epu8, _mm512_maskz_avg_epu8,
4136 _mm512_maskz_add_epi8, _mm512_maskz_sub_epi8, _mm512_avg_epu16,
4137 _mm512_maskz_avg_epu16, _mm512_subs_epi8, _mm512_maskz_subs_epi8,
4138 _mm512_subs_epu8, _mm512_maskz_subs_epu8, _mm512_adds_epi8,
4139 _mm512_maskz_adds_epi8, _mm512_adds_epu8, _mm512_maskz_adds_epu8,
4140 _mm512_maskz_sub_epi16, _mm512_subs_epi16, _mm512_maskz_subs_epi16,
4141 _mm512_subs_epu16, _mm512_maskz_subs_epu16, _mm512_maskz_add_epi16,
4142 _mm512_adds_epi16, _mm512_maskz_adds_epi16, _mm512_adds_epu16,
4143 _mm512_maskz_adds_epu16, _mm512_srl_epi16, _mm512_maskz_srl_epi16,
4144 _mm512_packs_epi16, _mm512_sll_epi16, _mm512_maskz_sll_epi16,
4145 _mm512_maddubs_epi16, _mm512_maskz_maddubs_epi16, _mm512_unpackhi_epi8,
4146 _mm512_maskz_unpackhi_epi8, _mm512_unpackhi_epi16,
4147 _mm512_maskz_unpackhi_epi16, _mm512_unpacklo_epi8,
4148 _mm512_maskz_unpacklo_epi8, _mm512_unpacklo_epi16,
4149 _mm512_maskz_unpacklo_epi16, _mm512_shuffle_epi8,
4150 _mm512_maskz_shuffle_epi8, _mm512_min_epu16, _mm512_maskz_min_epu16,
4151 _mm512_min_epi16, _mm512_maskz_min_epi16, _mm512_max_epu8,
4152 _mm512_maskz_max_epu8, _mm512_max_epi8, _mm512_maskz_max_epi8,
4153 _mm512_min_epu8, _mm512_maskz_min_epu8, _mm512_min_epi8,
4154 _mm512_maskz_min_epi8, _mm512_max_epi16, _mm512_maskz_max_epi16,
4155 _mm512_max_epu16, _mm512_maskz_max_epu16, _mm512_sra_epi16,
4156 _mm512_maskz_sra_epi16, _mm512_srav_epi16, _mm512_maskz_srav_epi16,
4157 _mm512_srlv_epi16, _mm512_maskz_srlv_epi16, _mm512_sllv_epi16,
4158 _mm512_maskz_sllv_epi16, _mm512_maskz_packs_epi16, _mm512_packus_epi16,
4159 _mm512_maskz_packus_epi16, _mm512_abs_epi8, _mm512_maskz_abs_epi8,
4160 _mm512_abs_epi16, _mm512_maskz_abs_epi16, _mm512_dbsad_epu8,
4161 _mm512_maskz_dbsad_epu8, _mm512_srli_epi16, _mm512_maskz_srli_epi16,
4162 _mm512_slli_epi16, _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
4163 _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
4164 _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
4165 _mm512_maskz_srai_epi16, _mm512_packs_epi32,
4166 _mm512_maskz_packs_epi32, _mm512_packus_epi32,
4167 _mm512_maskz_packus_epi32): Use _mm512_setzero_si512 instead of
4168 _mm512_setzero_qi or _mm512_setzero_hi.
4169 (_mm512_maskz_alignr_epi8, _mm512_dbsad_epu8,
4170 _mm512_maskz_dbsad_epu8): Formatting fixes.
4171 (_mm512_srli_epi16, _mm512_maskz_srli_epi16, _mm512_slli_epi16,
4172 _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
4173 _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
4174 _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
4175 _mm512_maskz_srai_epi16): Use _mm512_setzero_si512 instead of
4176 _mm512_setzero_qi or _mm512_setzero_hi.
4177
4178 2016-11-22 Nathan Sidwell <nathan@acm.org>
4179
4180 * gcc-ar.c (main): Fix indentation.
4181 * gcov-io.c (gcov_write_summary): Remove extraneous {...}
4182 * ggc-page.c (move_ptes_to_front): Fix formatting.
4183 * hsa-dump.c (dump_has_cfun): Fix indentation.
4184 * sel-sched-ir.h: Remove trailing blank lines.
4185
4186 2016-11-22 Jakub Jelinek <jakub@redhat.com>
4187 Alexander Monakov <amonakov@ispras.ru>
4188
4189 * internal-fn.c (expand_GOMP_USE_SIMT): New function.
4190 * tree.c (omp_clause_num_ops): OMP_CLAUSE__SIMT_ has 0 operands.
4191 (omp_clause_code_name): Add _simt_ name.
4192 (walk_tree_1): Handle OMP_CLAUSE__SIMT_.
4193 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SIMT_.
4194 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__SIMT_.
4195 (scan_omp_simd): New function.
4196 (scan_omp_1_stmt): Use it in target regions if needed.
4197 (omp_max_vf): Don't max with omp_max_simt_vf.
4198 (lower_rec_simd_input_clauses): Use omp_max_simt_vf if
4199 OMP_CLAUSE__SIMT_ is present.
4200 (lower_rec_input_clauses): Compute maybe_simt from presence of
4201 OMP_CLAUSE__SIMT_.
4202 (lower_lastprivate_clauses): Likewise.
4203 (expand_omp_simd): Likewise. Remove explicit offloaded region check.
4204 (execute_omp_device_lower): Lower IFN_GOMP_USE_SIMT.
4205 * internal-fn.def (GOMP_USE_SIMT): New internal function.
4206 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__SIMT_.
4207
4208 2016-11-22 Alexander Monakov <amonakov@ispras.ru>
4209
4210 * internal-fn.c (expand_GOMP_SIMT_LANE): New.
4211 (expand_GOMP_SIMT_VF): New.
4212 (expand_GOMP_SIMT_LAST_LANE): New.
4213 (expand_GOMP_SIMT_ORDERED_PRED): New.
4214 (expand_GOMP_SIMT_VOTE_ANY): New.
4215 (expand_GOMP_SIMT_XCHG_BFLY): New.
4216 (expand_GOMP_SIMT_XCHG_IDX): New.
4217 * internal-fn.def (GOMP_SIMT_LANE): New.
4218 (GOMP_SIMT_VF): New.
4219 (GOMP_SIMT_LAST_LANE): New.
4220 (GOMP_SIMT_ORDERED_PRED): New.
4221 (GOMP_SIMT_VOTE_ANY): New.
4222 (GOMP_SIMT_XCHG_BFLY): New.
4223 (GOMP_SIMT_XCHG_IDX): New.
4224 * omp-low.c (omp_maybe_offloaded_ctx): New, outlined from...
4225 (create_omp_child_function): ...here. Set "omp target entrypoint"
4226 or "omp declare target" attribute based on is_gimple_omp_offloaded.
4227 (omp_max_simt_vf): New. Use it...
4228 (omp_max_vf): ...here.
4229 (lower_rec_input_clauses): Add reduction lowering for SIMT execution.
4230 (lower_lastprivate_clauses): Likewise, for "lastprivate" lowering.
4231 (lower_omp_ordered): Likewise, for "ordered" lowering.
4232 (expand_omp_simd): Add SIMT transforms.
4233 (pass_data_lower_omp): Add PROP_gimple_lomp_dev.
4234 (execute_omp_device_lower): New.
4235 (pass_data_omp_device_lower): New.
4236 (pass_omp_device_lower): New pass.
4237 (make_pass_omp_device_lower): New.
4238 * passes.def (pass_omp_device_lower): Position new pass.
4239 * tree-pass.h (PROP_gimple_lomp_dev): Define.
4240 (make_pass_omp_device_lower): Declare.
4241
4242 2016-11-22 Jakub Jelinek <jakub@redhat.com>
4243
4244 PR target/78451
4245 * config/i386/avx512vlintrin.h (_mm_setzero_di): Removed.
4246 (_mm_maskz_mov_epi64): Use _mm_setzero_si128 instead of
4247 _mm_setzero_di.
4248 (_mm_maskz_load_epi64): Likewise.
4249 (_mm_setzero_hi): Removed.
4250 (_mm_maskz_loadu_epi64): Use _mm_setzero_si128 instead of
4251 _mm_setzero_di.
4252 (_mm_abs_epi64, _mm_maskz_abs_epi64, _mm_maskz_srl_epi64,
4253 _mm_maskz_unpackhi_epi64, _mm_maskz_unpacklo_epi64,
4254 _mm_maskz_compress_epi64, _mm_srav_epi64, _mm_maskz_srav_epi64,
4255 _mm_maskz_sllv_epi64, _mm_maskz_srlv_epi64, _mm_rolv_epi64,
4256 _mm_maskz_rolv_epi64, _mm_rorv_epi64, _mm_maskz_rorv_epi64,
4257 _mm_min_epi64, _mm_max_epi64, _mm_max_epu64, _mm_min_epu64,
4258 _mm_lzcnt_epi64, _mm_maskz_lzcnt_epi64, _mm_conflict_epi64,
4259 _mm_maskz_conflict_epi64, _mm_sra_epi64, _mm_maskz_sra_epi64,
4260 _mm_maskz_sll_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
4261 _mm_ror_epi64, _mm_maskz_ror_epi64, _mm_alignr_epi64,
4262 _mm_maskz_alignr_epi64, _mm_srai_epi64, _mm_maskz_slli_epi64):
4263 Likewise.
4264 (_mm_cvtepi32_epi8, _mm256_cvtepi32_epi8, _mm_cvtsepi32_epi8,
4265 _mm256_cvtsepi32_epi8, _mm_cvtusepi32_epi8, _mm256_cvtusepi32_epi8,
4266 _mm_cvtepi32_epi16, _mm256_cvtepi32_epi16, _mm_cvtsepi32_epi16,
4267 _mm256_cvtsepi32_epi16, _mm_cvtusepi32_epi16, _mm256_cvtusepi32_epi16,
4268 _mm_cvtepi64_epi8, _mm256_cvtepi64_epi8, _mm_cvtsepi64_epi8,
4269 _mm256_cvtsepi64_epi8, _mm_cvtusepi64_epi8, _mm256_cvtusepi64_epi8,
4270 _mm_cvtepi64_epi16, _mm256_cvtepi64_epi16, _mm_cvtsepi64_epi16,
4271 _mm256_cvtsepi64_epi16, _mm_cvtusepi64_epi16, _mm256_cvtusepi64_epi16,
4272 _mm_cvtepi64_epi32, _mm256_cvtepi64_epi32, _mm_cvtsepi64_epi32,
4273 _mm256_cvtsepi64_epi32, _mm_cvtusepi64_epi32, _mm256_cvtusepi64_epi32,
4274 _mm_maskz_set1_epi32, _mm_maskz_set1_epi64): Formatting fixes.
4275 (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
4276 instead of _mm_setzero_hi.
4277 (_mm256_permutex_pd, _mm256_maskz_permutex_epi64, _mm256_insertf32x4,
4278 _mm256_maskz_insertf32x4, _mm256_inserti32x4, _mm256_maskz_inserti32x4,
4279 _mm256_extractf32x4_ps, _mm256_maskz_extractf32x4_ps,
4280 _mm256_shuffle_i32x4, _mm256_maskz_shuffle_i32x4, _mm256_shuffle_f64x2,
4281 _mm256_maskz_shuffle_f64x2, _mm256_shuffle_f32x4,
4282 _mm256_maskz_shuffle_f32x4, _mm256_maskz_shuffle_pd,
4283 _mm_maskz_shuffle_pd, _mm256_maskz_shuffle_ps, _mm_maskz_shuffle_ps,
4284 _mm256_maskz_srli_epi32, _mm_maskz_srli_epi32, _mm_maskz_srli_epi64,
4285 _mm256_mask_slli_epi32, _mm256_maskz_slli_epi32, _mm256_mask_slli_epi64,
4286 _mm256_maskz_slli_epi64, _mm256_roundscale_ps,
4287 _mm256_maskz_roundscale_ps, _mm256_roundscale_pd,
4288 _mm256_maskz_roundscale_pd, _mm_roundscale_ps, _mm_maskz_roundscale_ps,
4289 _mm_roundscale_pd, _mm_maskz_roundscale_pd, _mm256_getmant_ps,
4290 _mm256_maskz_getmant_ps, _mm_getmant_ps, _mm_maskz_getmant_ps,
4291 _mm256_getmant_pd, _mm256_maskz_getmant_pd, _mm_getmant_pd,
4292 _mm_maskz_getmant_pd, _mm256_maskz_shuffle_epi32,
4293 _mm_maskz_shuffle_epi32, _mm256_rol_epi32, _mm256_maskz_rol_epi32,
4294 _mm_rol_epi32, _mm_maskz_rol_epi32, _mm256_ror_epi32,
4295 _mm256_maskz_ror_epi32, _mm_ror_epi32, _mm_maskz_ror_epi32,
4296 _mm_maskz_alignr_epi32, _mm_maskz_alignr_epi64,
4297 _mm256_maskz_srai_epi32, _mm_maskz_srai_epi32, _mm_srai_epi64,
4298 _mm_maskz_srai_epi64, _mm256_maskz_permutex_pd,
4299 _mm256_maskz_permute_pd, _mm256_maskz_permute_ps, _mm_maskz_permute_pd,
4300 _mm_maskz_permute_ps, _mm256_permutexvar_ps): Formatting fixes.
4301 (_mm_maskz_slli_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
4302 _mm_ror_epi64, _mm_maskz_ror_epi64): Use _mm_setzero_si128 instead of
4303 _mm_setzero_di.
4304 (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
4305 instead of _mm_setzero_hi.
4306 * config/i386/avx512dqintrin.h (_mm512_broadcast_f64x2,
4307 _mm512_broadcast_i64x2, _mm512_broadcast_f32x2, _mm512_broadcast_i32x2,
4308 _mm512_broadcast_f32x8, _mm512_broadcast_i32x8): Formatting fixes.
4309 (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
4310 _mm_setzero_si128 instead of _mm_setzero_di.
4311 (_mm512_cvtt_roundpd_epi64, _mm512_mask_cvtt_roundpd_epi64,
4312 _mm512_maskz_cvtt_roundpd_epi64, _mm512_cvtt_roundpd_epu64,
4313 _mm512_mask_cvtt_roundpd_epu64, _mm512_maskz_cvtt_roundpd_epu64,
4314 _mm512_cvtt_roundps_epi64, _mm512_mask_cvtt_roundps_epi64,
4315 _mm512_maskz_cvtt_roundps_epi64, _mm512_cvtt_roundps_epu64,
4316 _mm512_mask_cvtt_roundps_epu64, _mm512_maskz_cvtt_roundps_epu64,
4317 _mm512_cvt_roundpd_epi64, _mm512_mask_cvt_roundpd_epi64,
4318 _mm512_maskz_cvt_roundpd_epi64, _mm512_cvt_roundpd_epu64,
4319 _mm512_mask_cvt_roundpd_epu64, _mm512_maskz_cvt_roundpd_epu64,
4320 _mm512_cvt_roundps_epi64, _mm512_mask_cvt_roundps_epi64,
4321 _mm512_maskz_cvt_roundps_epi64, _mm512_cvt_roundps_epu64,
4322 _mm512_mask_cvt_roundps_epu64, _mm512_maskz_cvt_roundps_epu64,
4323 _mm512_cvt_roundepi64_ps, _mm512_mask_cvt_roundepi64_ps,
4324 _mm512_maskz_cvt_roundepi64_ps, _mm512_cvt_roundepu64_ps,
4325 _mm512_mask_cvt_roundepu64_ps, _mm512_maskz_cvt_roundepu64_ps,
4326 _mm512_cvt_roundepi64_pd, _mm512_mask_cvt_roundepi64_pd,
4327 _mm512_maskz_cvt_roundepi64_pd, _mm512_cvt_roundepu64_pd,
4328 _mm512_mask_cvt_roundepu64_pd, _mm512_maskz_cvt_roundepu64_pd,
4329 _mm512_reduce_pd, _mm512_maskz_reduce_pd, _mm512_reduce_ps,
4330 _mm512_maskz_reduce_ps, _mm512_extractf32x8_ps,
4331 _mm512_maskz_extractf32x8_ps, _mm512_extractf64x2_pd,
4332 _mm512_maskz_extractf64x2_pd, _mm512_extracti32x8_epi32,
4333 _mm512_maskz_extracti32x8_epi32, _mm512_range_pd,
4334 _mm512_maskz_range_pd, _mm512_range_ps, _mm512_maskz_range_ps,
4335 _mm512_range_round_pd, _mm512_maskz_range_round_pd,
4336 _mm512_range_round_ps, _mm512_maskz_range_round_ps,
4337 _mm512_maskz_insertf64x2, _mm512_insertf32x8,
4338 _mm512_maskz_insertf32x8): Formatting fixes.
4339 (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
4340 _mm_setzero_si128 instead of _mm_setzero_di.
4341 * config/i386/avx512vldqintrin.h (_mm_cvttpd_epi64,
4342 _mm_cvttpd_epu64, _mm_cvtpd_epi64, _mm_cvtpd_epu64,
4343 _mm_cvttps_epi64, _mm_maskz_cvttps_epi64, _mm_cvttps_epu64,
4344 _mm_maskz_cvttps_epu64, _mm_maskz_mullo_epi64, _mm_cvtps_epi64,
4345 _mm_maskz_cvtps_epi64, _mm_cvtps_epu64, _mm_maskz_cvtps_epu64,
4346 _mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64): Use
4347 _mm_setzero_si128 instead of _mm_setzero_di.
4348 (_mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64):
4349 Likewise in macros.
4350 * config/i386/avx512vlbwintrin.h (_mm_maskz_mov_epi8,
4351 _mm_maskz_loadu_epi16, _mm_maskz_mov_epi16, _mm_maskz_loadu_epi8,
4352 _mm_permutexvar_epi16, _mm_maskz_maddubs_epi16): Use
4353 _mm_setzero_si128 instead of _mm_setzero_hi.
4354 (_mm_maskz_min_epu16, _mm_maskz_max_epu8, _mm_maskz_max_epi8,
4355 _mm_maskz_min_epu8, _mm_maskz_min_epi8, _mm_maskz_max_epi16,
4356 _mm_maskz_max_epu16, _mm_maskz_min_epi16): Use _mm_setzero_si128
4357 instead of _mm_setzero_di.
4358 (_mm_dbsad_epu8, _mm_maskz_shufflehi_epi16,
4359 _mm_maskz_shufflelo_epi16): Use _mm_setzero_si128 instead of
4360 _mm_setzero_hi.
4361 (_mm_maskz_shufflehi_epi16, _mm_maskz_shufflelo_epi16,
4362 _mm_maskz_slli_epi16): Use _mm_setzero_si128 instead of
4363 _mm_setzero_hi.
4364 (_mm_maskz_alignr_epi8): Use _mm_setzero_si128 instead of
4365 _mm_setzero_di.
4366 (_mm_maskz_mulhi_epi16, _mm_maskz_mulhi_epu16, _mm_maskz_mulhrs_epi16,
4367 _mm_maskz_mullo_epi16, _mm_srav_epi16, _mm_srlv_epi16,
4368 _mm_sllv_epi16): Use _mm_setzero_si128 instead of _mm_setzero_hi.
4369
4370 2016-11-22 Carl Love <cel@us.ibm.com>
4371
4372 * config/rs6000/rs6000-c.c: Add built-in support for vector compare
4373 equal and vector compare not equal. The vector compares take two
4374 arguments of type vector bool char, vector bool short, vector bool int,
4375 vector bool long long with the same return type.
4376 * doc/extend.texi: Update built-in documentation file for the new
4377 powerpc built-ins.
4378
4379 2016-11-22 Uros Bizjak <ubizjak@gmail.com>
4380
4381 * Makefile.in ($(lang_checks_parallelized)): Fix detection
4382 of -j argument.
4383
4384 2016-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
4385
4386 * config.gcc: Allow new rmprofile value for configure option
4387 --with-multilib-list.
4388 * config/arm/t-rmprofile: New file.
4389 * doc/install.texi (--with-multilib-list): Document new rmprofile value
4390 for ARM.
4391
4392 2016-11-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4393
4394 PR target/78439
4395 * config/arm/vfp.md (*movdi_vfp_cortexa8): Use 'q' constraints for the
4396 register operand in alternatives 4,5,6.
4397
4398 2016-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
4399
4400 PR target/77904
4401 * config/arm/arm.c (thumb1_compute_save_reg_mask): Mark frame pointer
4402 in save register mask if it is needed.
4403
4404 2016-11-22 Jakub Jelinek <jakub@redhat.com>
4405
4406 PR tree-optimization/78436
4407 * gimple-ssa-store-merging.c (zero_char_buf): Removed.
4408 (shift_bytes_in_array, shift_bytes_in_array_right,
4409 merged_store_group::apply_stores): Formatting fixes.
4410 (clear_bit_region): Likewise. Use memset.
4411 (encode_tree_to_bitpos): Formatting fixes. Fix comment typos - EPXR
4412 instead of EXPR and inerted instead of inserted. Use memset instead
4413 of zero_char_buf. For !BYTES_BIG_ENDIAN decrease byte_size by 1
4414 if shift_amnt is 0.
4415
4416 PR middle-end/78416
4417 * expmed.c (expand_divmod): Use wide_int for computation of
4418 op1_is_pow2. Don't set it if op1 is 0. Formatting fixes.
4419 Use size <= HOST_BITS_PER_WIDE_INT instead of
4420 HOST_BITS_PER_WIDE_INT >= size.
4421
4422 PR tree-optimization/78445
4423 * tree-if-conv.c (tree_if_conversion): If any_pred_load_store or
4424 any_complicated_phi, version loop even if flag_tree_loop_if_convert
4425 is 1. Formatting fix.
4426
4427 2016-11-22 Martin Liska <mliska@suse.cz>
4428
4429 PR ipa/78309
4430 * ipa-icf.c (void sem_item::set_hash): Update m_hash_set.
4431 (sem_function::get_hash): Use the new field.
4432 (sem_function::parse): Remove an argument from ctor.
4433 (sem_variable::parse): Likewise.
4434 (sem_variable::get_hash): Use the new field.
4435 (sem_item_optimizer::read_section): Use new ctor and set hash.
4436 * ipa-icf.h: _hash is removed from sem_item::sem_item,
4437 sem_variable::sem_variable, sem_function::sem_function.
4438
4439 2016-11-21 Jeff Law <law@redhat.com>
4440
4441 PR target/68538
4442 * config/cris/cris.md: Don't call copy_to_mode_reg unless
4443 can_create_pseudo_p is true.
4444
4445 2016-11-21 Segher Boessenkool <segher@kernel.crashing.org>
4446
4447 PR target/68803
4448 * config/rs6000/rs6000.md (*rotlsi3_insert_5, *rotldi3_insert_6,
4449 *rotldi3_insert_7): New define_insns.
4450
4451 2016-11-21 Michael Meissner <meissner@linux.vnet.ibm.com>
4452
4453 * config/rs6000/rs6000.md (movdi_internal32): Change constraints
4454 so that DImode can be allocated to FP/vector registers in more
4455 cases, and we can avoid direct move operations. If the register
4456 needs reloading, prefer GPRs over FP/vector registers. In the
4457 case of FPR vs. Altivec registers, prefer FPR registers unless we
4458 have the ISA 3.0 reg+offset scalar instructions.
4459 (movdi_internal64): Likewise.
4460
4461 2016-11-21 Jakub Jelinek <jakub@redhat.com>
4462
4463 PR middle-end/67335
4464 * omp-simd-clone.c (simd_clone_adjust_argument_types): Use NULL prefix
4465 for tmp simd array if DECL_NAME (parm) is NULL.
4466
4467 2016-11-20 Jeff Law <law@redhat.com>
4468
4469 PR target/25128
4470 * config/m68k/predicates.md (swap_peephole_relational_operator): New
4471 predicate.
4472 * config/m68k/m68k.md (relational tests against 65535/65536): New
4473 peephole2.
4474
4475 2016-11-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4476
4477 * tree-ssa-loop-prefetch.c: Delete FIXME after the includes.
4478
4479 2016-11-21 Martin Sebor <msebor@redhat.com>
4480
4481 * doc/invoke.texi (-fprintf-return-value): Document that option
4482 is enabled by default.
4483
4484 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
4485
4486 * config/avr/avr-c.c (avr_register_target_pragmas): Use C++
4487 for-loop declaration of loop variable.
4488 (avr_register_target_pragmas, avr_cpu_cpp_builtins): Same.
4489 * config/avr/avr.c (avr_popcount_each_byte)
4490 (avr_init_expanders, avr_regs_to_save, sequent_regs_live)
4491 (get_sequence_length, avr_prologue_setup_frame, avr_map_metric)
4492 (avr_expand_epilogue, avr_function_arg_advance)
4493 (avr_out_compare, avr_out_plus_1, avr_out_bitop, avr_out_fract)
4494 (avr_rotate_bytes, _reg_unused_after, avr_assemble_integer)
4495 (avr_adjust_reg_alloc_order, output_reload_in_const)
4496 (avr_conditional_register_usage, avr_find_unused_d_reg)
4497 (avr_map_decompose, avr_fold_builtin): Same.
4498
4499 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
4500
4501 * config/avr/avr.c (avr_popcount): Remove static function.
4502 (avr_popcount_each_byte, avr_out_bitop): Use popcount_hwi instead.
4503
4504 2016-11-21 Richard Earnshaw <rearnsha@arm.com>
4505
4506 * arm.opt (mapcs-float): Delete option.
4507 * arm.c (arm_option_override): Remove hunk relating to
4508 TARGET_APCS_FLOAT.
4509 * doc/invoke.texi (arm options): Remove documentation for -mapcs-float.
4510
4511 2016-11-21 Richard Sandiford <richard.sandiford@arm.com>
4512
4513 * tree-tailcall.c (process_assignment): Simplify the check for
4514 a valid copy, allowing the source to be a local variable as
4515 well as an SSA name.
4516 (find_tail_calls): Allow copies between local variables to follow
4517 the call. Allow the result to be stored in any local variable,
4518 even if it's an aggregate.
4519 (eliminate_tail_call): Check whether the result is an SSA name
4520 before updating its SSA_NAME_DEF_STMT.
4521
4522 2016-11-21 David Malcolm <dmalcolm@redhat.com>
4523
4524 PR preprocessor/78324
4525 * input.c (get_substring_ranges_for_loc): Fail gracefully if
4526 -ftrack-macro-expansion has a value other than 2.
4527
4528 2016-11-21 Segher Boessenkool <segher@kernel.crashing.org>
4529
4530 PR rtl-optimization/78400
4531 * shrink-wrap.c (try_shrink_wrapping_separate): Call
4532 df_update_entry_exit_and_calls instead of df_update_entry_block_defs
4533 and df_update_exit_block_uses.
4534
4535 2016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
4536
4537 PR c++/71973
4538 * doc/invoke.texi (-Wno-builtin-declaration-mismatch): Document the
4539 new default-enabled warning..
4540 * builtin-types.def (BT_CONST_TM_PTR): New primitive type.
4541 (BT_PTR_CONST_STRING): Updated.
4542 (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR): Removed.
4543 (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_TM_PTR): New function type.
4544 * builtins.def (DEF_TM_BUILTIN): Disable BOTH_P for TM builtins.
4545 (strftime): Update builtin function.
4546 * tree-core.h (TI_CONST_TM_PTR_TYPE): New enum value.
4547 * tree.h (const_tm_ptr_type_node): New type node.
4548 * tree.c (free_lang_data, build_common_tree_nodes): Initialize
4549 const_tm_ptr_type_node.
4550
4551 2016-11-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4552
4553 PR tree-optimization/78413
4554 * tree-if-conv.c (versionable_outer_loop_p): Require that both
4555 inner and outer loop latches have single predecessors.
4556
4557 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
4558
4559 PR target/78093
4560 * config/avr/avr.c (avr_decl_maybe_lds_p): New static function.
4561 (avr_encode_section_info) [TARGET_ABSDATA && AVR_TINY]: Use it.
4562
4563 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4564
4565 * rtl.h: Adjust prototype.
4566 * rtlanal.c (dead_or_set_p): Change argument type to rtx_insn *.
4567 (dead_or_set_regno_p): Likewise.
4568
4569 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4570
4571 * rtl.h: Adjust prototype.
4572 * rtlanal.c (add_int_reg_note): Change argument type to rtx_insn *.
4573
4574 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4575
4576 * function.c (contains): Change argument type to rtx_insn *.
4577 (prologue_contains): Likewise.
4578 (epilogue_contains): Likewise.
4579 (prologue_epilogue_contains): Likewise.
4580 * function.h: Adjust prototype.
4581
4582 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4583
4584 * optabs.c (emit_libcall_block): Change argument type to
4585 rtx_insn *.
4586 * optabs.h: Adjust prototype.
4587
4588 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4589
4590 * cfgrtl.c (delete_insn): Change argument type to rtx_insn *.
4591 (fixup_reorder_chain): Adjust.
4592 * cfgrtl.h: Adjust prototype.
4593
4594 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4595
4596 * rtl.h: Adjust prototype.
4597 * rtlanal.c (replace_label_in_insn): Change argument type to
4598 rtx_insn *.
4599
4600 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4601
4602 * config/v850/v850.c (expand_prologue): Adjust.
4603 (expand_epilogue): Likewise.
4604 * expr.c (init_expr_target): Likewise.
4605 * genrecog.c (print_subroutine): Always make the argument type
4606 rtx_insn *.
4607 * recog.h: Adjust prototype.
4608
4609 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4610
4611 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): split
4612 up variables to make some rtx_insn *.
4613 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
4614 * config/arc/arc.c: Likewise.
4615 * config/arm/arm.c: Likewise.
4616 * config/mn10300/mn10300.c (mn10300_legitimize_pic_address): Likewise.
4617 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue):
4618 Likewise.
4619 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
4620
4621 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4622
4623 * config/arm/arm.c (legitimize_pic_address): Change to use
4624 rtx_insn * as the type of variables.
4625 (arm_pic_static_addr): Likewise.
4626 (arm_emit_movpair): Likewise.
4627 * config/c6x/c6x.c (reorg_split_calls): Likewise.
4628 * config/darwin.c (machopic_legitimize_pic_address): Likewise.
4629 * config/frv/frv.c (frv_optimize_membar_local): Likewise.
4630 * config/frv/frv.md: Likewise.
4631 * config/i386/i386-protos.h: Likewise.
4632 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
4633 (ix86_split_fp_branch): Likewise.
4634 (predict_jump): Likewise.
4635 * config/ia64/ia64.c: Likewise.
4636 * config/mcore/mcore.c: Likewise.
4637 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
4638 * config/s390/s390.c: Likewise.
4639 * config/s390/s390.md: Likewise.
4640 * config/spu/spu.md: Likewise.
4641 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise.
4642 * lower-subreg.c (resolve_simple_move): Likewise.
4643
4644 2016-11-20 Jeff Law <law@redhat.com>
4645
4646 PR target/48551
4647 * reload.h (struct target_reload): Make x_double_reg_address_ok
4648 be per-mode rather.
4649 * reload.c (find_reloads_address): Check if double_reg_address_ok
4650 is true for the mode of the memory reference.
4651 * reload1.c (init_reload): Initialize double_reg_address_ok for
4652 each mode.
4653
4654 2016-11-20 Aldy Hernandez <aldyh@redhat.com>
4655
4656 PR middle-end/61409
4657 * tree-ssa-uninit.c: Define new global max_phi_args.
4658 (compute_uninit_opnds_pos): Use max_phi_args.
4659 (prune_uninit_phi_opnds): Same.
4660 (use_pred_not_overlap_with_undef_path_pred): Remove reference to
4661 missing NUM_PREDS in function comment.
4662 (can_one_predicate_be_invalidated_p): New.
4663 (can_chain_union_be_invalidated_p): New.
4664 (flatten_out_predicate_chains): New.
4665 (uninit_ops_invalidate_phi_use): New.
4666 (is_use_properly_guarded): Call uninit_ops_invalidate_phi_use.
4667
4668 2016-11-20 Marc Glisse <marc.glisse@inria.fr>
4669
4670 * fold-const.c (fold_comparison): Ignore EXACT_DIV_EXPR.
4671 * match.pd (A /[ex] B CMP C): New simplifications.
4672
4673 2016-11-20 Marc Glisse <marc.glisse@inria.fr>
4674
4675 * match.pd (0 / X, X / X, X % X): New simplifications.
4676
4677 2016-11-19 Jakub Jelinek <jakub@redhat.com>
4678
4679 * config/i386/i386.c (ix86_can_inline_p): Use || instead of &
4680 when checking if callee's isa flags are subset of caller's isa flags.
4681 Fix comment wording.
4682
4683 * config/i386/i386.c (ix86_valid_target_attribute_tree): Don't
4684 clear opts->x_ix86_isa_flags, clear opts->x_ix86_isa_flags2
4685 instead and using = 0 instead of &= 0.
4686
4687 * config/i386/i386.c (def_builtin, def_builtin2, def_builtin_const2,
4688 ix86_add_new_builtins): Formatting fixes.
4689 (ix86_expand_builtin): Use || instead of && for isa vs. isa2.
4690 (ix86_get_builtin): Likewise.
4691
4692 * config/i386/i386.c (ix86_expand_builtin): Remove msk_mov variable,
4693 don't initialize it, don't use it for the case where it isn't
4694 provable %{z} nor using the same argument, instead move merge
4695 argument into a new pseudo and use that as target. Formatting fixes.
4696
4697 2016-11-19 Jeff Law <law@redhat.com>
4698
4699 PR target/25111
4700 * config/m68k/m68k.md (bsetdreg): New pattern.
4701 (bchgdreg, bclrdreg): Likewise.
4702
4703 2016-11-19 Kaz Kojima <kkojima@gcc.gnu.org>
4704
4705 PR target/78426
4706 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Use copy_to_mode_reg
4707 instead of force_reg.
4708 (sh_expand_setmem): Likewise.
4709
4710 2016-11-19 Krister Walfridsson <krister.walfridsson@gmail.com>
4711
4712 * config.gcc (*-*-netbsd): Set use_gcc_stdint=wrap.
4713
4714 2016-11-18 Walter Lee <walt@tilera.com>
4715
4716 * config/tilegx/tilegx.c (tilegx_gen_bundles): Preserve
4717 end-of-bundle marker for consecutive barriers.
4718
4719 2016-11-18 Walter Lee <walt@tilera.com>
4720
4721 * config/tilegx/tilegx.md (clzsi2): Fix for big-endian.
4722
4723 2016-11-18 Jakub Jelinek <jakub@redhat.com>
4724
4725 PR middle-end/78419
4726 * multiple_target.c (get_attr_len): Start with argnum and increment
4727 argnum on every arg. Use strchr in a loop instead of counting commas
4728 manually.
4729 (get_attr_str): Increment argnum for every comma in the string.
4730 (separate_attrs): Use for instead of while loop, simplify.
4731 (expand_target_clones): Rename defenition argument to definition.
4732 Free attrs and attr_str even when diagnosing errors. Temporarily
4733 change input_location around targetm.target_option.valid_attribute_p
4734 calls. Don't emit warning or errors if that function fails.
4735
4736 * dwarf2out.c (size_of_discr_list): Fix typo in function comment.
4737
4738 PR debug/78191
4739 * dwarf2out.c (abbrev_opt_base_type_end): New variable.
4740 (die_abbrev_cmp): Sort dies with die_abbrev smaller than
4741 abbrev_opt_base_type_end only by increasing die_abbrev, before
4742 any other dies.
4743 (optimize_abbrev_table): Don't change abbrev numbers of
4744 base types and CU or optimize implicit consts in them if
4745 calc_base_type_die_sizes has been called during build_abbrev_table.
4746 (calc_base_type_die_sizes): If abbrev_opt_start, set
4747 abbrev_opt_base_type_end to one plus largest base type's die_abbrev.
4748
4749 2016-11-18 Jeff Law <law@redhat.com>
4750
4751 PR target/25112
4752 * config/m68k/m68k.c (moveq feeding equality comparison): New
4753 peepholes.
4754 * config/m68k/predicates.md (addq_subq_operand): New predicate.
4755 (equality_comparison_operator): Likewise.
4756
4757 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
4758
4759 * rtlanal.c (load_extend_op): Move to...
4760 * rtl.h: ...here and make inline.
4761
4762 2016-11-18 Terry Guo <terry.guo@arm.com>
4763 Thomas Preud'homme <thomas.preudhomme@arm.com>
4764
4765 * common/config/arm/arm-common.c (arm_target_thumb_only): New function.
4766 * config/arm/arm-opts.h: Include arm-flags.h.
4767 (struct arm_arch_core_flag): Define.
4768 (arm_arch_core_flags): Define.
4769 * config/arm/arm-protos.h: Include arm-flags.h
4770 (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M, FL_MODE26, FL_MODE32,
4771 FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED, FL_STRONG, FL_ARCH5E,
4772 FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF, FL_ARCH6K, FL_THUMB2, FL_NOTM,
4773 FL_THUMB_DIV, FL_VFPV3, FL_NEON, FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV,
4774 FL_ARCH8, FL_CRC32, FL_SMALLMUL, FL_NO_VOLATILE_CE, FL_IWMMXT,
4775 FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1, FL2_ARCH8_2, FL2_FP16INST,
4776 FL_TUNE, FL_FOR_ARCH2, FL_FOR_ARCH3, FL_FOR_ARCH3M, FL_FOR_ARCH4,
4777 FL_FOR_ARCH4T, FL_FOR_ARCH5, FL_FOR_ARCH5T, FL_FOR_ARCH5E,
4778 FL_FOR_ARCH5TE, FL_FOR_ARCH5TEJ, FL_FOR_ARCH6, FL_FOR_ARCH6J,
4779 FL_FOR_ARCH6K, FL_FOR_ARCH6Z, FL_FOR_ARCH6ZK, FL_FOR_ARCH6KZ,
4780 FL_FOR_ARCH6T2, FL_FOR_ARCH6M, FL_FOR_ARCH7, FL_FOR_ARCH7A,
4781 FL_FOR_ARCH7VE, FL_FOR_ARCH7R, FL_FOR_ARCH7M, FL_FOR_ARCH7EM,
4782 FL_FOR_ARCH8A, FL2_FOR_ARCH8_1A, FL2_FOR_ARCH8_2A, FL_FOR_ARCH8M_BASE,
4783 FL_FOR_ARCH8M_MAIN, arm_feature_set, ARM_FSET_MAKE,
4784 ARM_FSET_MAKE_CPU1, ARM_FSET_MAKE_CPU2, ARM_FSET_CPU1, ARM_FSET_CPU2,
4785 ARM_FSET_EMPTY, ARM_FSET_ANY, ARM_FSET_HAS_CPU1, ARM_FSET_HAS_CPU2,
4786 ARM_FSET_HAS_CPU, ARM_FSET_ADD_CPU1, ARM_FSET_ADD_CPU2,
4787 ARM_FSET_DEL_CPU1, ARM_FSET_DEL_CPU2, ARM_FSET_UNION, ARM_FSET_INTER,
4788 ARM_FSET_XOR, ARM_FSET_EXCLUDE, ARM_FSET_IS_EMPTY,
4789 ARM_FSET_CPU_SUBSET): Move to ...
4790 * config/arm/arm-flags.h: This new file.
4791 * config/arm/arm.h (TARGET_MODE_SPEC_FUNCTIONS): Define.
4792 (EXTRA_SPEC_FUNCTIONS): Add TARGET_MODE_SPEC_FUNCTIONS to its value.
4793 (TARGET_MODE_SPECS): Define.
4794 (DRIVER_SELF_SPECS): Add TARGET_MODE_SPECS to its value.
4795
4796 2016-11-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
4797
4798 * config/arm/arm-protos.h (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M,
4799 FL_MODE26, FL_MODE32, FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED,
4800 FL_STRONG, FL_ARCH5E, FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF,
4801 FL_ARCH6K, FL_THUMB2, FL_NOTM, FL_THUMB_DIV, FL_VFPV3, FL_NEON,
4802 FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV, FL_ARCH8, FL_CRC32, FL_SMALLMUL,
4803 FL_NO_VOLATILE_CE, FL_IWMMXT, FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1,
4804 FL2_ARCH8_2, FL2_FP16INST): Reindent comment, add final dot when
4805 missing and make value unsigned.
4806 (arm_feature_set): Use unsigned entries instead of unsigned long.
4807
4808 2016-11-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
4809
4810 Re-apply after PR bootstrap/77359 is fixed:
4811 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
4812
4813 * explow.c (get_dynamic_stack_size): Take known alignment of stack
4814 pointer + STACK_DYNAMIC_OFFSET into account when calculating the
4815 size needed.
4816
4817 2016-11-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
4818
4819 PR bootstrap/77359
4820 * config/rs6000/rs6000.c (rs6000_stack_info): Properly align local
4821 variables in functions calling alloca. Also update the ASCII
4822 drawings.
4823 * config/rs6000/rs6000.h (STARTING_FRAME_OFFSET)
4824 (STACK_DYNAMIC_OFFSET): Likewise.
4825 * config/rs6000/aix.h (STARTING_FRAME_OFFSET)
4826 (STACK_DYNAMIC_OFFSET): Copy AIX specific versions of the rs6000.h
4827 macros to aix.h.
4828
4829 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
4830 Alan Hayward <alan.hayward@arm.com>
4831 David Sherwood <david.sherwood@arm.com>
4832
4833 * combine.c (try_combine): Use rtx_mode_t instead of std::make_pair.
4834 * dwarf2out.c (mem_loc_descriptor, loc_descriptor): Likewise.
4835 (add_const_value_attribute): Likewise.
4836 * explow.c (plus_constant): Likewise.
4837 * expmed.c (expand_mult, make_tree): Likewise.
4838 * expr.c (convert_modes): Likewise.
4839 * loop-doloop.c (doloop_optimize): Likewise.
4840 * postreload.c (reload_cse_simplify_set): Likewise.
4841 * simplify-rtx.c (simplify_const_unary_operation): Likewise
4842 (simplify_binary_operation_1, simplify_const_binary_operation):
4843 Likewise.
4844 (simplify_const_relational_operation, simplify_immed_subreg): Likewise.
4845 * wide-int.h: Update documentation to recommend rtx_mode_t
4846 instead of std::make_pair.
4847
4848 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
4849 Alan Hayward <alan.hayward@arm.com>
4850 David Sherwood <david.sherwood@arm.com>
4851
4852 * tree.h (SET_DECL_MODE): New macro.
4853 * cfgexpand.c (avoid_deep_ter_for_debug): Use SET_DECL_MODE.
4854 (expand_gimple_basic_block): Likewise.
4855 * function.c (split_complex_args): Likeise.
4856 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
4857 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Likewise.
4858 * stor-layout.c (layout_decl, relayout_decl): Likewise.
4859 (finish_bitfield_representative): Likewise.
4860 * tree.c (make_node_stat): Likewise.
4861 * tree-inline.c (remap_ssa_name): Likewise.
4862 (tree_function_versioning): Likewise.
4863 * tree-into-ssa.c (rewrite_debug_stmt_uses): Likewise.
4864 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
4865 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
4866 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Likewise.
4867 * tree-ssa.c (insert_debug_temp_for_var_def): Likewise.
4868 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
4869 * varasm.c (make_debug_expr_from_rtl): Likewise.
4870
4871 2016-11-18 Segher Boessenkool <segher@kernel.crashing.org>
4872
4873 PR rtl-optimization/71785
4874 * bb-reorder.c (maybe_duplicate_computed_goto): New function.
4875 (duplicate_computed_gotos): New function.
4876 (pass_duplicate_computed_gotos::execute): Rewrite.
4877
4878 2016-11-17 Jeff Law <law@redhat.com>
4879
4880 PR target/47192
4881 * config/m68k/m68k.c (m68k_expand_epilogue): Emit a scheduling
4882 barrier prior to deallocating the stack.
4883
4884 2016-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
4885
4886 * config/arc/arc.md (cmem bit/sign-extend peephole2): New peephole
4887 to make better use of cmem loads in the case where a single bit is
4888 being accessed.
4889 * config/arc/predicates.md (ge_lt_comparison_operator): New predicate.
4890
4891 2016-11-17 Andrew Senkevich <andrew.senkevich@intel.com>
4892
4893 * config/i386/i386.c (processor_features): Add F_AVX5124VNNIW,
4894 F_AVX5124FMAPS.
4895 (isa_names_table): Handle new features.
4896
4897 2016-11-17 Kirill Yukhin <kirill.yukhin@gmail.com>
4898 Andrew Senkevich <andrew.senkevich@intel.com>
4899
4900 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX5124FMAPS_SET,
4901 OPTION_MASK_ISA_AVX5124FMAPS_UNSET, OPTION_MASK_ISA_AVX5124VNNIW_SET,
4902 OPTION_MASK_ISA_AVX5124VNNIW_UNSET): New.
4903 (ix86_handle_option): Handle OPT_mavx5124fmaps, OPT_mavx5124vnniw.
4904 * config.gcc: Add avx5124fmapsintrin.h, avx5124vnniwintrin.h.
4905 * config/i386/avx5124fmapsintrin.h: New file.
4906 * config/i386/avx5124vnniwintrin.h: Ditto.
4907 * config/i386/constraints.md (h): New constraint.
4908 * config/i386/cpuid.h (bit_AVX5124VNNIW, bit_AVX5124FMAPS): New.
4909 * config/i386/driver-i386.c (host_detect_local_cpu):
4910 Detect avx5124fmaps, avx5124vnniw.
4911 * config/i386/i386-builtin-types.def: Add types
4912 V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF_V16SF_UHI,
4913 V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF,
4914 V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF,
4915 V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF_V4SF_UQI,
4916 V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI,
4917 V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI_V16SI_UHI.
4918 * config/i386/i386-builtin.def (__builtin_ia32_4fmaddps_mask,
4919 __builtin_ia32_4fmaddps, __builtin_ia32_4fmaddss,
4920 __builtin_ia32_4fmaddss_mask, __builtin_ia32_4fnmaddps_mask,
4921 __builtin_ia32_4fnmaddps, __builtin_ia32_4fnmaddss,
4922 __builtin_ia32_4fnmaddss_mask, __builtin_ia32_vp4dpwssd,
4923 __builtin_ia32_vp4dpwssd_mask, __builtin_ia32_vp4dpwssds,
4924 __builtin_ia32_vp4dpwssds_mask): New.
4925 * config/i386/i386-c.c (ix86_target_macros_internal):
4926 Define __AVX5124FMAPS__, __AVX5124VNNIW__.
4927 * config/i386/i386-modes.def: Fixed comment typos, added new
4928 modes (VECTOR_MODES (FLOAT, 256), VECTOR_MODE (INT, SI, 64)).
4929 * config/i386/i386.c (ix86_target_string): Add -mavx5124fmaps,
4930 -mavx5124vnniw.
4931 (PTA_AVX5124FMAPS, PTA_AVX5124VNNIW): Define.
4932 (ix86_option_override_internal): Handle new options.
4933 (ix86_valid_target_attribute_inner_p): Add avx5124fmaps,
4934 avx5124vnniw.
4935 (ix86_expand_builtin): Handle new builtins.
4936 (ix86_additional_allocno_class_p): New.
4937 * config/i386/i386.h (TARGET_AVX5124FMAPS, TARGET_AVX5124FMAPS_P,
4938 TARGET_AVX5124VNNIW, TARGET_AVX5124VNNIW_P): Define.
4939 (reg_class): Add MOD4_SSE_REGS.
4940 (MOD4_SSE_REG_P, MOD4_SSE_REGNO_P): New.
4941 * config/i386/i386.opt: Add mavx5124fmaps, mavx5124vnniw.
4942 * config/i386/immintrin.h: Include avx5124fmapsintrin.h,
4943 avx5124vnniwintrin.h.
4944 * config/i386/sse.md (unspec): Add UNSPEC_VP4FMADD, UNSPEC_VP4FNMADD,
4945 UNSPEC_VP4DPWSSD, UNSPEC_VP4DPWSSDS.
4946 (define_mode_iterator IMOD4): New.
4947 (define_mode_attr imod4_narrow): Ditto.
4948 (define_insn "mov<mode>"): Ditto.
4949 (define_insn "avx5124fmaddps_4fmaddps"): Ditto.
4950 (define_insn "avx5124fmaddps_4fmaddps_mask"): Ditto.
4951 (define_insn "avx5124fmaddps_4fmaddps_maskz"): Ditto.
4952 (define_insn "avx5124fmaddps_4fmaddss"): Ditto.
4953 (define_insn "avx5124fmaddps_4fmaddss_mask"): Ditto.
4954 (define_insn "avx5124fmaddps_4fmaddss_maskz"): Ditto.
4955 (define_insn "avx5124fmaddps_4fnmaddps"): Ditto.
4956 (define_insn "avx5124fmaddps_4fnmaddps_mask"): Ditto.
4957 (define_insn "avx5124fmaddps_4fnmaddps_maskz"): Ditto.
4958 (define_insn "avx5124fmaddps_4fnmaddss"): Ditto.
4959 (define_insn "avx5124fmaddps_4fnmaddss_mask"): Ditto.
4960 (define_insn "avx5124fmaddps_4fnmaddss_maskz"): Ditto.
4961 (define_insn "avx5124vnniw_vp4dpwssd"): Ditto.
4962 (define_insn "avx5124vnniw_vp4dpwssd_mask"): Ditto.
4963 (define_insn "avx5124vnniw_vp4dpwssd_maskz"): Ditto.
4964 (define_insn "avx5124vnniw_vp4dpwssds"): Ditto.
4965 (define_insn "avx5124vnniw_vp4dpwssds_mask"): Ditto.
4966 (define_insn "avx5124vnniw_vp4dpwssds_maskz"): Ditto.
4967 * init-regs.c (initialize_uninitialized_regs): Add emit_clobber call.
4968 * genmodes.c (mode_size_inline): Extend return type.
4969 * machmode.h (mode_size, mode_base_align): Extend type.
4970
4971 2016-11-17 Michael Meissner <meissner@linux.vnet.ibm.com>
4972
4973 PR target/78101
4974 * config/rs6000/predicates.md (fusion_addis_mem_combo_load): Add
4975 the appropriate checks for SFmode/DFmode load/stores in GPR
4976 registers.
4977 (fusion_addis_mem_combo_store): Likewise.
4978 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Rename
4979 fusion_fpr_* to fusion_vsx_* and add in support for ISA 3.0 scalar
4980 d-form instructions for traditional Altivec registers.
4981 (emit_fusion_p9_load): Likewise.
4982 (emit_fusion_p9_store): Likewise.
4983 * config/rs6000/rs6000.md (p9 fusion store peephole2): Remove
4984 early clobber from scratch register. Do not match if the register
4985 being stored is the scratch register.
4986 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_load): Rename fusion_fpr_*
4987 to fusion_vsx_* and add in support for ISA 3.0 scalar d-form
4988 instructions for traditional Altivec registers.
4989 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
4990 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
4991 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
4992
4993 2016-11-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
4994
4995 PR target/77933
4996 * config/arm/arm.c (thumb1_expand_prologue): Distinguish between lr
4997 being live in the function and lr needing to be saved. Distinguish
4998 between already saved pushable registers and registers to push.
4999 Check for LR being an available pushable register.
5000
5001 2016-11-17 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
5002
5003 * config/i386/i386.md (cmpstrnsi): New test to bail out if neither
5004 string input is a string constant.
5005 * builtins.c (expand_builtin_strncmp): Attempt expansion of strncmp
5006 via cmpstrnsi even if neither string is constant.
5007
5008 2016-11-17 Jakub Jelinek <jakub@redhat.com>
5009
5010 PR middle-end/78201
5011 * varasm.c (default_use_anchors_for_symbol_p): Fix a comment typo.
5012 Don't test decl != NULL. Don't look at DECL_SIZE, but DECL_SIZE_UNIT
5013 instead, return false if it is NULL, or doesn't fit into uhwi, or
5014 is larger or equal to targetm.max_anchor_offset.
5015
5016 2016-11-17 Pip Cet <pipcet@gmail.com>
5017 Eric Botcazou <ebotcazou@adacore.com>
5018
5019 PR rtl-optimization/78355
5020 * doc/tm.texi.in (SLOW_UNALIGNED_ACCESS): Document that the macro only
5021 needs to deal with unaligned accesses.
5022 * doc/tm.texi: Regenerate.
5023 * lra-constraints.c (simplify_operand_subreg): Only invoke
5024 SLOW_UNALIGNED_ACCESS on innermode if the MEM is not aligned enough.
5025
5026 2016-11-17 David Malcolm <dmalcolm@redhat.com>
5027
5028 * input.c (selftest::test_lexer_string_locations_long_line): New
5029 function.
5030 (selftest::test_lexer_string_locations_raw_string_multiline): New
5031 function.
5032 (selftest::input_c_tests): Call the new functions, via
5033 for_each_line_table_case.
5034
5035 2016-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5036
5037 * config/aarch64/aarch64.md (mov<mode>): Call
5038 aarch64_split_dimode_const_store on DImode constant stores.
5039 * config/aarch64/aarch64-protos.h (aarch64_split_dimode_const_store):
5040 New prototype.
5041 * config/aarch64/aarch64.c (aarch64_split_dimode_const_store): New
5042 function.
5043
5044 2016-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5045 Richard Biener <rguenther@suse.de>
5046
5047 PR tree-optimization/77848
5048 * tree-if-conv.c (tree_if_conversion): Always version loops unless
5049 the user specified -ftree-loop-if-convert.
5050
5051 2016-11-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
5052
5053 PR target/77308
5054 * config/arm/arm.md (*thumb2_ldrd, *thumb2_ldrd_base,
5055 *thumb2_ldrd_base_neg, *thumb2_strd, *thumb2_strd_base,
5056 *thumb2_strd_base_neg): Recognize insn regardless of
5057 current_tune->prefer_ldrd_strd.
5058 * config/arm/ldrdstrd.md: Enable all ldrd/strd peephole rules
5059 whenever possible.
5060
5061 2016-11-17 Claudiu Zissulescu <claziss@synopsys.com>
5062
5063 * config/arc/arc.c (arc_ccfsm_post_advance): Handle return
5064 instruction type.
5065
5066 2016-11-17 Claudiu Zissulescu <claziss@synopsys.com>
5067
5068 * config/arc/arc-arches.def: Add FPX quarkse instruction as valid
5069 for arcem.
5070 * config/arc/arc-c.def (__ARC_FPX_QUARK__): Define.
5071 * config/arc/arc-cpus.def (quarkse_em): Add.
5072 * config/arc/arc-options.def (FL_FPX_QUARK, FL_QUARK): Likewise.
5073 * config/arc/arc-opts.h (FPX_QK): Define.
5074 * config/arc/arc-tables.opt: Regenerate.
5075 * config/arc/arc.c (gen_compare_reg): Change.
5076 (arc_register_move_cost): Avoid Dy,Dx moves.
5077 * config/arc/arc.h (TARGET_HARD_FLOAT): Change.
5078 (TARGET_FPX_QUARK, TARGET_FP_ASSIST): Define.
5079 * config/arc/arc.md (divsf3, sqrtsf2, fix_truncsfsi2, floatsisf2):
5080 New expands.
5081 * config/arc/fpu.md (divsf3_fpu, sqrtsf2_fpu, floatsisf2_fpu)
5082 (fix_truncsfsi2_fpu): Rename.
5083 * config/arc/fpx.md (cmp_quark, cmpsf_quark_, cmpsf_quark_ord)
5084 (cmpsf_quark_uneq, cmpsf_quark_eq, divsf3_quark, sqrtsf2_quark)
5085 (fix_truncsfsi2_quark, floatsisf2_quark): New patterns.
5086 * config/arc/t-multilib: Regenerate.
5087
5088 2016-11-17 Georg-Johann Lay <avr@gjlay.de>
5089
5090 * config/avr/avr.c (avr_print_operand_address): Use CONST_INT_P if
5091 appropriate.
5092 (ashlqi3_out, ashlsi3_out, ashrqi3_out, ashrhi3_out): Same.
5093 (ashrsi3_out, lshrqi3_out, lshrhi3_out, lshrsi3_out): Same.
5094 (avr_rtx_costs_1, extra_constraint_Q): Same.
5095 (avr_address_cost): Use SUBREG_P if possible.
5096
5097 2016-11-17 Richard Biener <rguenther@suse.de>
5098
5099 PR middle-end/78383
5100 * tree-cfgcleanup.c (cleanup_control_flow_bb): Do not turn
5101 non-local goto into CFG.
5102
5103 2016-11-17 Richard Biener <rguenther@suse.de>
5104
5105 * common.opt (ftree-loop-if-convert-stores): Mark as preserved for
5106 backward compatibility.
5107 * doc/invoke.texi (ftree-loop-if-convert-stores): Remove.
5108 * tree-if-conv.c (pass_if_conversion::gate): Do not test
5109 flag_tree_loop_if_convert_stores.
5110 (pass_if_conversion::execute): Likewise.
5111
5112 2016-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5113
5114 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): Check for
5115 const_double code before calling aarch64_float_const_zero_rtx_p.
5116
5117 2016-11-17 Richard Biener <rguenther@suse.de>
5118
5119 PR tree-optimization/78306
5120 * ipa-inline-analysis.c (initialize_inline_failed): Do not
5121 inhibit inlining if function calls cilk_spawn.
5122 (can_inline_edge_p): Likewise.
5123
5124 2016-11-17 Richard Biener <rguenther@suse.de>
5125
5126 PR middle-end/78305
5127 * fold-const.c (negate_expr_p): Fix multiplication case.
5128
5129 2016-11-17 Chung-Lin Tang <cltang@codesourcery.com>
5130
5131 PR target/78357
5132 * config/nios2/nios2.c (nios2_init_libfuncs): Remove TARGET_LINUX_ABI
5133 condition.
5134 (TARGET_INIT_LIBFUNCS): Delete definition and...
5135 * config/nios2/linux.h (TARGET_INIT_LIBFUNCS): ...move to here, add
5136 comments.
5137
5138 2016-11-17 Krister Walfridsson <krister.walfridsson@gmail.com>
5139
5140 * config/netbsd-stdint.h: New.
5141 * config.gcc (i[34567]86-*-netbsd): Add netbsd-stdint.h to tm_file.
5142 (x86_64-*-netbsd*): Likewise.
5143
5144 2016-11-16 Andrew PInski <apinski@cavium.com>
5145
5146 * config/aarch64/aarch64.opt (mverbose-cost-dump): New option.
5147 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
5148 flag_aarch64_verbose_cost instead of checking for details dump.
5149 (aarch64_rtx_costs_wrapper): Likewise.
5150
5151 2016-11-16 Jakub Jelinek <jakub@redhat.com>
5152
5153 PR rtl-optimization/78378
5154 * combine.c (make_extraction): Use force_to_mode for non-{REG,MEM}
5155 inner only if pos is 0. Fix up formatting.
5156
5157 2016-11-17 Alan Modra <amodra@gmail.com>
5158
5159 PR rtl-optimization/78325
5160 PR rtl-optimization/70890
5161 * ira.c (combine_and_move_insns): Only remove REG_EQUIV notes
5162 for dead regno.
5163
5164 2016-11-16 Jason Merrill <jason@redhat.com>
5165
5166 * rtl.h: Declare gt_ggc_mx and gt_pch_nx.
5167
5168 2016-11-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5169 Richard Biener <rguenther@suse.de>
5170
5171 PR tree-optimization/77848
5172 * tree-if-conv.c (version_loop_for_if_conversion): When versioning
5173 an outer loop, only save basic block aux information for the inner
5174 loop.
5175 (versionable_outer_loop_p): New function.
5176 (tree_if_conversion): Version the outer loop instead of the inner
5177 one if the pattern will be recognized for outer-loop
5178 vectorization.
5179
5180 2016-11-16 Andrew Burgess <andrew.burgess@embecosm.com>
5181
5182 * gcc/bb-reorder.c: Remove 'toplev.h' include.
5183 (pass_partition_blocks::gate): No longer check
5184 user_defined_section_attribute, instead check the function decl
5185 for a section attribute.
5186 * gcc/c-family/c-attribs.c (handle_section_attribute): No longer
5187 set user_defined_section_attribute.
5188 * gcc/final.c (rest_of_handle_final): Likewise.
5189 * gcc/toplev.c: Remove definition of user_defined_section_attribute.
5190 * gcc/toplev.h: Remove declaration of
5191 user_defined_section_attribute.
5192
5193 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
5194
5195 * config/mips/mips.md (casesi_internal_mips16_<mode>):
5196 Explicitly switch between JR and JRC for the table jump. Adjust
5197 instruction count.
5198
5199 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
5200
5201 * config/mips/mips.md (casesi_internal_mips16_<mode>): Set
5202 `insn_count' to 11 rather than 16.
5203
5204 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
5205
5206 * config/mips/mips.md (casesi_internal_mips16_<mode>): Use the
5207 `ltu' rather than `leu' operation in the RTL pattern
5208
5209 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
5210
5211 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add
5212 missing <d> instruction prefixes throughout. Correct
5213 formatting.
5214
5215 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
5216
5217 * config/mips/mips.c (mips_output_jump): Output R_MICROMIPS_JALR
5218 rather than R_MIPS_JALR relocation in microMIPS code. Do not
5219 cancel short delay slots in PIC call relaxation.
5220
5221 2016-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
5222
5223 * config/arm/arm.md (arm_addsi3): Add alternative for addition of
5224 general register with general register or ARM constant into SP
5225 register.
5226
5227 2016-11-16 Jakub Jelinek <jakub@redhat.com>
5228
5229 PR fortran/78299
5230 * omp-low.c (expand_omp_for_static_nochunk): Don't assert
5231 that loop->header == body_bb if broken_loop.
5232
5233 2015-11-16 Wilco Dijkstra <wdijkstr@arm.com>
5234
5235 * tree-ssa-math-opts.c (bswap_replace): Remove test
5236 of SLOW_UNALIGNED_ACCESS.
5237
5238 2016-11-16 Alexander Monakov <amonakov@ispras.ru>
5239
5240 * config/nvptx/mkoffload.c (main): Check that either OpenACC or OpenMP
5241 is selected. Pass -mgomp to offload compiler in OpenMP case.
5242 * config/nvptx/nvptx-protos.h (nvptx_shuffle_kind): Move enum
5243 declaration from nvptx.c.
5244 (nvptx_gen_shuffle): Declare.
5245 (nvptx_output_set_softstack): Declare.
5246 * config/nvptx/nvptx.c (nvptx_shuffle_kind): Move to nvptx-protos.h.
5247 (need_softstack_decl): New variable.
5248 (need_unisimt_decl): New variable.
5249 (diagnose_openacc_conflict): New. Use it...
5250 (nvptx_option_override): ...here. Handle TARGET_GOMP.
5251 (nvptx_encode_section_info): Handle "shared" attribute.
5252 (write_as_kernel): Restrict to OpenACC target regions.
5253 (init_softstack_frame): New.
5254 (nvptx_init_unisimt_predicate): New.
5255 (write_omp_entry): New. Use it...
5256 (nvptx_declare_function_name): ...here to emit OpenMP target region
5257 entrypoints. Handle TARGET_SOFT_STACK. Call
5258 nvptx_init_unisimt_predicate.
5259 (nvptx_output_set_softstack): New.
5260 (nvptx_get_drap_rtx): Return %argp as the DRAP if needed.
5261 (nvptx_gen_shuffle): Export.
5262 (nvptx_output_call_insn): Handle COND_EXEC patterns. Emit instruction
5263 predicate.
5264 (nvptx_print_operand): Fix handling of instruction predicates.
5265 (nvptx_get_unisimt_master): New helper function.
5266 (nvptx_get_unisimt_predicate): Ditto.
5267 (nvptx_call_insn_is_syscall_p): Ditto.
5268 (nvptx_unisimt_handle_set): Ditto.
5269 (nvptx_reorg_uniform_simt): New. Transform code for -muniform-simt.
5270 (nvptx_reorg): Call nvptx_reorg_uniform_simt.
5271 (nvptx_handle_shared_attribute): New. Use it...
5272 (nvptx_attribute_table): ... here (new entry).
5273 (nvptx_record_offload_symbol): Handle NULL attributes.
5274 (nvptx_file_end): Handle need_softstack_decl and need_unisimt_decl.
5275 (nvptx_simt_vf): New.
5276 (TARGET_SIMT_VF): Define.
5277 * config/nvptx/nvptx.h (TARGET_CPU_CPP_BUILTINS): Define
5278 __nvptx_softstack or __nvptx_unisimt__ when -msoft-stack, or resp.
5279 -muniform-simt option is active.
5280 (STACK_SIZE_MODE): Define.
5281 (FIXED_REGISTERS): Adjust.
5282 (SOFTSTACK_SLOT_REGNUM): New.
5283 (SOFTSTACK_PREV_REGNUM): New.
5284 (REGISTER_NAMES): Adjust.
5285 (struct machine_function): New fields.
5286 * config/nvptx/nvptx.md (UNSPEC_SET_SOFTSTACK): New.
5287 (UNSPEC_VOTE_BALLOT): Ditto.
5288 (UNSPEC_LANEID): Ditto.
5289 (UNSPECV_NOUNROLL): Ditto.
5290 (atomic): New attribute.
5291 (predicable): New attribute. Generate predicated forms via
5292 define_cond_exec.
5293 (br_true): Mark as not predicable.
5294 (br_false): Ditto.
5295 (br_true_uni): Ditto.
5296 (br_false_uni): Ditto.
5297 (return): Ditto.
5298 (trap_if_true): Ditto.
5299 (trap_if_false): Ditto.
5300 (nvptx_fork): Ditto.
5301 (nvptx_forked): Ditto.
5302 (nvptx_joining): Ditto.
5303 (nvptx_join): Ditto.
5304 (nvptx_barsync): Ditto.
5305 (epilogue): Emit stack restore if TARGET_SOFT_STACK.
5306 (allocate_stack): Implement for TARGET_SOFT_STACK. Remove unused code.
5307 (allocate_stack_<mode>): Remove unused pattern.
5308 (set_softstack_insn): New pattern.
5309 (restore_stack_block): Handle for TARGET_SOFT_STACK.
5310 (nvptx_vote_ballot): New pattern.
5311 (omp_simt_lane): Ditto.
5312 (omp_simt_last_lane): Ditto.
5313 (omp_simt_ordered): Ditto.
5314 (omp_simt_vote_any): Ditto.
5315 (omp_simt_xchg_bfly): Ditto.
5316 (omp_simt_xchg_idx): Ditto.
5317 (nvptx_nounroll): Ditto.
5318 (atomic_compare_and_swap<mode>_1): Mark with atomic attribute.
5319 (atomic_exchange<mode>): Ditto.
5320 (atomic_fetch_add<mode>): Ditto.
5321 (atomic_fetch_addsf): Ditto.
5322 (atomic_fetch_<logic><mode>): Ditto.
5323 * config/nvptx/nvptx.opt (msoft-stack): New option.
5324 (muniform-simt): Ditto.
5325 (mgomp): Ditto.
5326 * config/nvptx/t-nvptx (MULTILIB_OPTIONS): New.
5327 * doc/extend.texi (Nvidia PTX Variable Attributes): New section.
5328 * doc/invoke.texi (msoft-stack): Document.
5329 (muniform-simt): Document
5330 (mgomp): Document.
5331 * doc/tm.texi: Regenerate.
5332 * doc/tm.texi.in (TARGET_SIMT_VF): New hook.
5333 * target.def: Define it.
5334 * target-insns.def (omp_simt_lane): New.
5335 (omp_simt_last_lane): New.
5336 (omp_simt_ordered): New.
5337 (omp_simt_vote_any): New.
5338 (omp_simt_xchg_bfly): New.
5339 (omp_simt_xchg_idx): New.
5340
5341 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
5342
5343 * config/mips/mips-protos.h (mips_set_text_contents_type): New
5344 prototype.
5345 * config/mips/mips.h (ASM_OUTPUT_BEFORE_CASE_LABEL): New macro.
5346 (ASM_OUTPUT_CASE_END): Likewise.
5347 * config/mips/mips.c (mips_set_text_contents_type): New function.
5348 (mips16_emit_constants): Record the pool's initial label number
5349 with the `consttable' insn. Emit a `consttable_end' insn at the end.
5350 (mips_final_prescan_insn): Call `mips_set_text_contents_type'
5351 for `consttable' insns.
5352 (mips_final_postscan_insn): Call `mips_set_text_contents_type'
5353 for `consttable_end' insns.
5354 * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE_END enum value.
5355 (consttable): Add operand.
5356 (consttable_end): New insn.
5357
5358 2016-11-16 Yuri Rumyantsev <ysrumyan@gmail.com>
5359
5360 * params.def (PARAM_VECT_EPILOGUES_NOMASK): New.
5361 * tree-if-conv.c (tree_if_conversion): Make public.
5362 * * tree-if-conv.h: New file.
5363 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences) Avoid
5364 dynamic alias checks for epilogues.
5365 * tree-vect-loop-manip.c (vect_do_peeling): Return created epilog.
5366 * tree-vect-loop.c: include tree-if-conv.h.
5367 (new_loop_vec_info): Add zeroing orig_loop_info field.
5368 (vect_analyze_loop_2): Don't try to enhance alignment for epilogues.
5369 (vect_analyze_loop): Add argument ORIG_LOOP_INFO which is not NULL
5370 if epilogue is vectorized, set up orig_loop_info field of loop_vinfo
5371 using passed argument.
5372 (vect_transform_loop): Check if created epilogue should be returned
5373 for further vectorization with less vf. If-convert epilogue if
5374 required. Print vectorization success for epilogue.
5375 * tree-vectorizer.c (vectorize_loops): Add epilogue vectorization
5376 if it is required, pass loop_vinfo produced during vectorization of
5377 loop body to vect_analyze_loop.
5378 * tree-vectorizer.h (struct _loop_vec_info): Add new field
5379 orig_loop_info.
5380 (LOOP_VINFO_ORIG_LOOP_INFO): New.
5381 (LOOP_VINFO_EPILOGUE_P): New.
5382 (LOOP_VINFO_ORIG_VECT_FACTOR): New.
5383 (vect_do_peeling): Change prototype to return epilogue.
5384 (vect_analyze_loop): Add argument of loop_vec_info type.
5385 (vect_transform_loop): Return created loop.
5386
5387 2016-11-16 Segher Boessenkool <segher@kernel.crashing.org>
5388
5389 * config/rs6000/rs6000.c (rs6000_components_for_bb): Mark the LR
5390 component as used also if LR_REGNO is a live input to the bb.
5391 * df-scan.c (df_get_entry_block_def_set): Return immediately after
5392 clearing the set if DF_SCAN_EMPTY_ENTRY_EXIT is set.
5393 (df_get_exit_block_use_set): Ditto.
5394 * df.h (df_scan_flags): New enum.
5395 * shrink-wrap.c (try_shrink_wrapping_separate): Set
5396 DF_SCAN_EMPTY_ENTRY_EXIT in df_scan->local_flags, and call
5397 df_update_entry_block_defs and df_update_exit_block_uses
5398 at the start; clear the flag and call those functions at the end.
5399
5400 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5401 Alan Hayward <alan.hayward@arm.com>
5402 David Sherwood <david.sherwood@arm.com>
5403
5404 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Set
5405 nb_iterations to the number of latch iterations rather than the
5406 number of loop iterations.
5407
5408 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5409 Alan Hayward <alan.hayward@arm.com>
5410 David Sherwood <david.sherwood@arm.com>
5411
5412 * combine.c (maybe_swap_commutative_operands): New function.
5413 (combine_simplify_rtx): Use it.
5414 (change_zero_ext): Likewise.
5415 (make_compound_operation_int): New function, split out of...
5416 (make_compound_operation): ...here. Use
5417 maybe_swap_commutative_operands for both.
5418
5419 2016-11-16 Richard Earnshaw <rearnsha@arm.com>
5420
5421 * arm/arm-fpus.def (vfpv2): New FPU, currently an alias for 'vfp'.
5422 (neon-vfpv3): New FPU, currently an alias for 'neon'.
5423 * arm/arm-tables.opt: Regenerated.
5424 * arm/t-aprofile (MULTILIB_REUSE): Add reuse rules for vfpv2 and
5425 neon-vfpv3.
5426 * doc/invoke.texi (ARM: -mfpu): Document new options. Note that 'vfp'
5427 and 'neon' are aliases for specific implementations.
5428
5429 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5430 Alan Hayward <alan.hayward@arm.com>
5431 David Sherwood <david.sherwood@arm.com>
5432
5433 * optabs.c (vector_compare_rtx): Add a cmp_mode parameter
5434 and use it in the final call to gen_rtx_fmt_ee.
5435 (expand_vec_cond_expr): Update accordingly.
5436 (expand_vec_cmp_expr): Likewise.
5437
5438 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5439 Alan Hayward <alan.hayward@arm.com>
5440 David Sherwood <david.sherwood@arm.com>
5441
5442 * cprop.c (local_cprop_find_used_regs): Use df_read_modify_subreg_p.
5443
5444 2016-11-16 Richard Biener <rguenther@suse.de>
5445
5446 PR middle-end/78333
5447 * gimplify.c (gimplify_function_tree): Do not instrument
5448 GNU extern inline functions.
5449
5450 2016-11-16 Martin Liska <mliska@suse.cz>
5451
5452 PR sanitizer/78270
5453 * gimplify.c (gimplify_switch_expr): Always save previous
5454 gimplify_ctxp->live_switch_vars.
5455
5456 2016-11-16 Andrew Burgess <andrew.burgess@embecosm.com>
5457
5458 * config/arc/arc.md (movb peephole2): New peephole2 to merge two
5459 zero_extract operations to allow a movb to occur.
5460 * testsuite/gcc.target/arc/movb-1.c: Update little endian arc results.
5461 * testsuite/gcc.target/arc/movb-2.c: Likewise.
5462 * testsuite/gcc.target/arc/movb-5.c: Likewise.
5463 * testsuite/gcc.target/arc/movh_cl-1.c: Extend test to cover
5464 little endian arc.
5465
5466 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5467 Alan Hayward <alan.hayward@arm.com>
5468 David Sherwood <david.sherwood@arm.com>
5469
5470 * expr.c (emit_group_load_1): Tighten check for whether an
5471 access involves only one operand of a CONCAT. Use extract_bit_field
5472 for constants if the bit range does span the whole operand.
5473
5474 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5475 Alan Hayward <alan.hayward@arm.com>
5476 David Sherwood <david.sherwood@arm.com>
5477
5478 * rtlanal.c (rtx_addr_can_trap_p_1): Handle unknown sizes.
5479
5480 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5481 Alan Hayward <alan.hayward@arm.com>
5482 David Sherwood <david.sherwood@arm.com>
5483
5484 * tree-vect-loop.c (vect_transform_loop): Protect the updates of
5485 all three iteration counts with an any_* test. Use a single update
5486 for each count. Fix the calculation of nb_iterations_estimate.
5487
5488 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5489
5490 * config/pdp11/pdp11.c: Include dbxout.h.
5491
5492 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5493
5494 * config/arc/arc.c (arc_loop_hazard): Add missing brackets.
5495
5496 2016-11-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5497
5498 PR target/78364
5499 * config/arm/arm.md (*extv_reg): Restrict operands 2 and 3 to the
5500 proper ranges for an SBFX instruction.
5501 (extzv_t2): Likewise for UBFX.
5502
5503 2016-11-16 Richard Biener <rguenther@suse.de>
5504
5505 PR tree-optimization/78348
5506 * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMMOVE.
5507 (generate_memcpy_builtin): Honor PKIND_MEMCPY on the partition.
5508 (classify_partition): Set PKIND_MEMCPY if dependence analysis
5509 revealed no dependency, PKIND_MEMMOVE otherwise.
5510
5511 2016-11-16 Jakub Jelinek <jakub@redhat.com>
5512
5513 PR sanitizer/77823
5514 * ubsan.c (ubsan_build_overflow_builtin): Add DATAP argument, if
5515 it points to non-NULL tree, use it instead of ubsan_create_data.
5516 (instrument_si_overflow): Handle vector signed integer overflow
5517 checking.
5518 * ubsan.h (ubsan_build_overflow_builtin): Add DATAP argument.
5519 * tree-vrp.c (simplify_internal_call_using_ranges): Punt for
5520 vector IFN_UBSAN_CHECK_*.
5521 * internal-fn.c (expand_addsub_overflow): Add DATAP argument,
5522 pass it through to ubsan_build_overflow_builtin.
5523 (expand_neg_overflow, expand_mul_overflow): Likewise.
5524 (expand_vector_ubsan_overflow): New function.
5525 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB,
5526 expand_UBSAN_CHECK_MUL): Use tit for vector arithmetics.
5527 (expand_arith_overflow): Adjust expand_*_overflow callers.
5528
5529 2016-11-16 Matthias Klose <doko@ubuntu.com>
5530
5531 * doc/install.texi: Remove references to java/libjava.
5532
5533 2016-11-16 Kugan Vivekanandarajah <kuganv@linaro.org>
5534
5535 * tree-ssa-coalesce.c (register_default_def): Remove
5536 register_ssa_partition.
5537 (create_outofssa_var_map): Likewise.
5538 * tree-ssa-live.c (register_ssa_partition_check): Remove.
5539 * tree-ssa-live.h (register_ssa_partition): Likewise.
5540
5541 2016-11-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
5542
5543 * genattrtab.c (attr_rtx_1): Avoid allocating new rtx objects.
5544 Clear ATTR_CURR_SIMPLIFIED_P for re-used binary rtx objects.
5545 Use DEF_ATTR_STRING for string arguments. Use RTL_HASH for
5546 integer arguments. Only set ATTR_PERMANENT_P on newly hashed
5547 rtx when all sub-rtx are also permanent.
5548 (attr_eq): Simplify.
5549 (attr_copy_rtx): Remove.
5550 (make_canonical, get_attr_value): Use attr_equal_p.
5551 (copy_boolean): Rehash NOT.
5552 (simplify_test_exp_in_temp,
5553 optimize_attrs): Remove call to attr_copy_rtx.
5554 (attr_alt_intersection, attr_alt_union,
5555 attr_alt_complement, mk_attr_alt): Rehash EQ_ATTR_ALT.
5556 (make_automaton_attrs): Use attr_eq.
5557
5558 2016-11-15 Matthias Klose <doko@ubuntu.com>
5559
5560 * doc/install.texi: Remove references to java/libjava.
5561 * doc/sourcebuild.texi: Likewise.
5562 * doc/invoke.texi: Likewise.
5563 * doc/standards.texi: Likewise.
5564
5565 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5566 Alan Hayward <alan.hayward@arm.com>
5567 David Sherwood <david.sherwood@arm.com>
5568
5569 * config/i386/i386.h (INCOMING_RETURN_ADDR_RTX): Use Pmode instead
5570 of VOIDmode.
5571 * config/ia64/ia64.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5572 * config/iq2000/iq2000.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5573 * config/m68k/m68k.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5574 * config/microblaze/microblaze.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5575 * config/mips/mips.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5576 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5577 * config/nios2/nios2.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5578
5579 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5580 Alan Hayward <alan.hayward@arm.com>
5581 David Sherwood <david.sherwood@arm.com>
5582
5583 * dce.c (check_argument_store): Pass the size instead of
5584 the memory reference.
5585 (find_call_stack_args): Pass MEM_SIZE to check_argument_store.
5586
5587 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5588 Alan Hayward <alan.hayward@arm.com>
5589 David Sherwood <david.sherwood@arm.com>
5590
5591 * alias.c (canon_rtx): Use simplify_gen_binary.
5592
5593 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5594 Alan Hayward <alan.hayward@arm.com>
5595 David Sherwood <david.sherwood@arm.com>
5596
5597 * rtl.h (load_extend_op): Declare.
5598 * rtlanal.c (load_extend_op): New function.
5599 (nonzero_bits1): Use it.
5600 (num_sign_bit_copies1): Likewise.
5601 * cse.c (cse_insn): Likewise.
5602 * fold-const.c (fold_single_bit_test): Likewise.
5603 (fold_unary_loc): Likewise.
5604 * fwprop.c (free_load_extend): Likewise.
5605 * postreload.c (reload_cse_simplify_set): Likewise.
5606 (reload_cse_simplify_operands): Likewise.
5607 * combine.c (try_combine): Likewise.
5608 (simplify_set): Likewise. Remove redundant SUBREG_BYTE and
5609 subreg_lowpart_p checks.
5610
5611 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5612 Alan Hayward <alan.hayward@arm.com>
5613 David Sherwood <david.sherwood@arm.com>
5614
5615 * combine.c (simplify_shift_const_1): Use the number of bits
5616 in the inner mode to determine the range of the shift.
5617 When handling shifts of vectors, skip any rules that apply
5618 only to scalars.
5619
5620 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5621 Alan Hayward <alan.hayward@arm.com>
5622 David Sherwood <david.sherwood@arm.com>
5623
5624 * rtlanal.c (num_sign_bit_copies1): Calculate bitwidth after
5625 handling VOIDmode.
5626
5627 2016-11-15 Matthias Klose <doko@ubuntu.com>
5628
5629 * doc/install.texi: Remove references to gcj/libjava.
5630 * doc/invoke.texi: Likewise.
5631
5632 2016-11-15 Jeff Law <law@redhat.com>
5633
5634 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove unneeded
5635 parameter. Callers changed.
5636 (check-subpath_and_update_thread_path): Extracted from
5637 fsm_find_control_statement_thread_paths.
5638 (handle_phi, handle_assignment, handle_assignment_p): Likewise.
5639 (handle_phi, handle_assignment): Allow any constant node, not
5640 just INTEGER_CST.
5641
5642 2016-11-15 Claudiu Zissulescu <claziss@synopsys.com>
5643
5644 * config/arc/arc-arch.h: New file.
5645 * config/arc/arc-arches.def: Likewise.
5646 * config/arc/arc-cpus.def: Likewise.
5647 * config/arc/arc-options.def: Likewise.
5648 * config/arc/t-multilib: Likewise.
5649 * config/arc/genmultilib.awk: Likewise.
5650 * config/arc/genoptions.awk: Likewise.
5651 * config/arc/arc-tables.opt: Likewise.
5652 * config/arc/driver-arc.c: Likewise.
5653 * testsuite/gcc.target/arc/nps400-cpu-flag.c: Likewise.
5654 * common/config/arc/arc-common.c (arc_handle_option): Trace
5655 toggled options.
5656 * config.gcc (arc*-*-*): Add arc-tables.opt to arc's extra
5657 options; check for supported cpu against arc-cpus.def file.
5658 (arc*-*-elf*, arc*-*-linux-uclibc*): Use new make fragment; define
5659 TARGET_CPU_BUILD macro; add driver-arc.o as an extra object.
5660 * config/arc/arc-c.def: Add emacs local variables.
5661 * config/arc/arc-opts.h (processor_type): Use arc-cpus.def file.
5662 (FPU_FPUS, FPU_FPUD, FPU_FPUDA, FPU_FPUDA_DIV, FPU_FPUDA_FMA)
5663 (FPU_FPUDA_ALL, FPU_FPUS_DIV, FPU_FPUS_FMA, FPU_FPUS_ALL)
5664 (FPU_FPUD_DIV, FPU_FPUD_FMA, FPU_FPUD_ALL): New defines.
5665 (DEFAULT_arc_fpu_build): Define.
5666 (DEFAULT_arc_mpy_option): Define.
5667 * config/arc/arc-protos.h (arc_init): Delete.
5668 * config/arc/arc.c (arc_cpu_name): New variable.
5669 (arc_selected_cpu, arc_selected_arch, arc_arcem, arc_archs)
5670 (arc_arc700, arc_arc600, arc_arc601): New variable.
5671 (arc_init): Add static; remove selection of default tune value,
5672 cleanup obsolete error messages.
5673 (arc_override_options): Make use of .def files for selecting the
5674 right cpu and option configurations.
5675 * config/arc/arc.h (stdbool.h): Include.
5676 (TARGET_CPU_DEFAULT): Define.
5677 (CPP_SPEC): Remove mcpu=NPS400 handling.
5678 (arc_cpu_to_as): Declare.
5679 (EXTRA_SPEC_FUNCTIONS): Define.
5680 (OPTION_DEFAULT_SPECS): Likewise.
5681 (ASM_DEFAULT): Remove.
5682 (ASM_SPEC): Use arc_cpu_to_as.
5683 (DRIVER_SELF_SPECS): Remove deprecated options.
5684 (arc_base_cpu): Declare.
5685 (TARGET_ARC600, TARGET_ARC601, TARGET_ARC700, TARGET_EM)
5686 (TARGET_HS, TARGET_V2, TARGET_ARC600): Make them use arc_base_cpu
5687 variable.
5688 (MULTILIB_DEFAULTS): Use ARC_MULTILIB_CPU_DEFAULT.
5689 * config/arc/arc.md (attr_cpu): Remove.
5690 * config/arc/arc.opt (mno-mpy): Deprecate.
5691 (mcpu=ARC600, mcpu=ARC601, mcpu=ARC700, mcpu=NPS400, mcpu=ARCEM)
5692 (mcpu=ARCHS): Remove.
5693 (mcrc, mdsp-packa, mdvbf, mmac-d16, mmac-24, mtelephony, mrtsc):
5694 Deprecate.
5695 (mbarrel_shifte, mspfp_, mdpfp_, mdsp_pack, mmac_): Remove.
5696 (arc_fpu): Use new defines.
5697 (mpy-option): Change to use numeric or string like inputs.
5698 * config/arc/t-arc (driver-arc.o): New target.
5699 (arc-cpus, t-multilib, arc-tables.opt): Likewise.
5700 * config/arc/t-arc-newlib: Delete.
5701 * config/arc/t-arc-uClibc: Renamed to t-uClibc.
5702 * doc/invoke.texi (ARC): Update arc options.
5703
5704 2016-11-15 Maciej W. Rozycki <macro@imgtec.com>
5705
5706 * config/mips/mips.c (mips16_emit_constants): Emit `consttable'
5707 insn at the beginning of the constant pool.
5708 (mips_insert_insn_pseudos): New function.
5709 (mips_machine_reorg2): Call it.
5710 * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE and
5711 UNSPEC_INSN_PSEUDO enum values.
5712 (insn_pseudo, consttable): New insns.
5713
5714 2016-11-15 Michael Matz <matz@suse.de>
5715
5716 PR missed-optimization/77881
5717 * combine.c (simplify_comparison): Remove useless subregs
5718 also inside the loop, not just after it.
5719 (make_compound_operation): Recognize some subregs as being
5720 masking as well.
5721
5722 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5723 Alan Hayward <alan.hayward@arm.com>
5724 David Sherwood <david.sherwood@arm.com>
5725
5726 * dwarf2out.c (mem_loc_descriptor): Fix GET_MODE_CLASS/
5727 GET_MODE_SIZE typo.
5728
5729 2016-11-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5730
5731 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Add support
5732 for using xxinsertw and vinsert{b,h} on ISA 3.0.
5733
5734 * config/rs6000/vsx.md (vsx_extract_<mode>): Update comment.
5735 (vsx_set_<mode>_p9): New insn to generate xxinsertw and
5736 vinsert{b,h} on ISA 3.0.
5737
5738 2016-11-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
5739
5740 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
5741 and cmpnop in two steps: first the ones not accessed in original gimple
5742 expression in a endian independent way and then the ones not accessed
5743 in the final result in an endian-specific way.
5744 (bswap_replace): Stop doing big endian adjustment.
5745
5746 2016-11-14 Uros Bizjak <ubizjak@gmail.com>
5747
5748 * config/i386/i386.md (*andndi3_doubleword): Merge operand constraints.
5749 (*ashl<mode>3_doubleword): Ditto.
5750
5751 2016-11-14 Martin Liska <mliska@suse.cz>
5752
5753 * tree-ssa-dse.c (dse_optimize_stmt): Remove quotes and extra new line.
5754
5755 2016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
5756 Richard Biener <rguenther@suse.de>
5757
5758 * doc/invoke.texi (fgimple): Document.
5759 * dumpfile.h (TDF_GIMPLE): Add.
5760 * dumpfile.c (dump_options): Add gimple.
5761 * gimple-pretty-print.c (dump_gimple_switch): Adjust dump
5762 for TDF_GIMPLE.
5763 (dump_gimple_label): Likewise.
5764 (dump_gimple_phi): Likewise.
5765 (dump_gimple_bb_header): Likewise.
5766 (dump_phi_nodes): Likewise.
5767 (pp_cfg_jump): Likewise. Pass in dump flags.
5768 (dump_implicit_edges): Adjust.
5769 * passes.c (pass_init_dump_file): Do not dump function header
5770 for TDF_GIMPLE.
5771 * tree-cfg.c (dump_function_to_file): Dump function return type
5772 and __GIMPLE keyword for TDF_GIMPLE. Change guard for dumping
5773 GIMPLE stmts.
5774 * tree-pretty-print.c (dump_decl_name): Adjust dump for TDF_GIMPLE.
5775 (dump_generic_node): Likewise.
5776 * function.h (struct function): Add pass_startwith member.
5777 * passes.c (execute_one_pass): Implement startwith.
5778 * tree-ssanames.c (make_ssa_name_fn): New argument, check for version
5779 and assign proper version for parsed ssa names.
5780 * tree-ssanames.h (make_ssa_name_fn): Add new argument to the function.
5781 * internal-fn.c (expand_PHI): New function.
5782 * internal-fn.h (expand_PHI): Declared here.
5783 * internal-fn.def: New defination for PHI.
5784 * tree-cfg.c (lower_phi_internal_fn): New function.
5785 (build_gimple_cfg): Call it.
5786 (verify_gimple_call): Condition for passing label as arg in internal
5787 function PHI.
5788 * tree-into-ssa.c (rewrite_add_phi_arguments): Handle already
5789 present PHIs with arguments.
5790
5791 2016-11-14 Martin Liska <mliska@suse.cz>
5792
5793 PR bootstrap/78069
5794 * common.opt: Add prefer-atomic as a new enum value for
5795 -fprofile-update.
5796 * coretypes.h: Likewise.
5797 * doc/invoke.texi: Document the new option value.
5798 * gcc.c: Replace atomic with prefer-atomic. Remove warning.
5799 * tree-profile.c (tree_profiling): Select default value
5800 of -fprofile-update when 'prefer-atomic' is selected.
5801
5802 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
5803
5804 * config/arm/cortex-a57.md (cortex_a57_alu): Move extend here, bfm...
5805 (cortex_a57_alu_shift): ...here.
5806
5807 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
5808
5809 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3)
5810 Use bfx attribute.
5811 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
5812 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
5813 (<optab>si3_insn_uxtw): Likewise.
5814 (<optab><mode>3_insn): Likewise.
5815 (<ANY_EXTEND:optab><GPI:mode>_ashl<SHORT:mode>): Likewise.
5816 (zero_extend<GPI:mode>_lshr<SHORT:mode>): Likewise.
5817 (extend<GPI:mode>_ashr<SHORT:mode>): Likewise.
5818 (<optab><mode>): Likewise.
5819 (insv<mode>): Likewise.
5820 (andim_ashift<mode>_bfiz): Likewise.
5821 * config/aarch64/thunderx.md (thunderx_shift): Add bfx.
5822 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
5823 * config/arm/cortex-a57.md (cortex_a57_alu): Add bfx.
5824 * config/arm/exynos-m1.md (exynos_m1_alu): Add bfx.
5825 (exynos_m1_alu_p): Likewise.
5826 * config/arm/types.md: Add bfx.
5827 * config/arm/xgene1.md (xgene1_bfm): Add bfx.
5828
5829 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
5830
5831 * config/aarch64/aarch64.c (cortexa57_vector_cost):
5832 Change vec_stmt_cost, vec_align_load_cost and vec_unalign_load_cost.
5833
5834 2016-11-14 Richard Biener <rguenther@suse.de>
5835
5836 PR tree-optimization/78312
5837 * gimple-ssa-backprop.c (backprop::prepare_change): Reset
5838 flow-sensitive info.
5839
5840 2016-11-14 Georg-Johann Lay <avr@gjlay.de>
5841
5842 PR target/78093
5843 * doc/invoke.texi (AVR Options) [-mabsdata]: Document new option.
5844 * config/avr/avr.opt (-mabsdata): New option.
5845 * config/avr/avr-arch.h (avr_device_specific_features): Add AVR_ISA_LDS.
5846 * config/avr/avr.c (avr_encode_section_info) [AVR_TINY]: If
5847 -mabsdata & symbol is not progmem, tag as AVR_SYMBOL_FLAG_TINY_ABSDATA.
5848 * config/avr/avr-mcus.def (attiny4/5/9/10/20): Use AVR_ISA_LDS.
5849 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Print cc1_absdata
5850 spec depending on AVR_ISA_LDS.
5851 * config/avr/specs.h (CC1_SPEC): Enhanced by cc1_absdata spec.
5852
5853 2016-11-13 Jakub Jelinek <jakub@redhat.com>
5854
5855 * match.pd: Don't try to compare addresses of variables with
5856 DECL_VALUE_EXPR.
5857
5858 2016-11-13 Kugan Vivekanandarajah <kuganv@linaro.org>
5859
5860 * ipa-cp.c (ipa_get_jf_pass_through_result): Skip unary expressions.
5861 (propagate_vr_accross_jump_function): Handle unary expressions.
5862 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
5863 (load_from_param_1): New.
5864 (load_from_unmodified_param): Factor common part into load_from_param_1.
5865 (load_from_param): New.
5866 (compute_complex_assign_jump_func): Handle unary expressions.
5867 (update_jump_functions_after_inlining): Likewise.
5868 (ipa_write_jump_function): Likewise.
5869 (ipa_read_jump_function): Likewise.
5870
5871 2016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5872
5873 PR c/35503
5874 * doc/invoke.texi: Document Wrestrict.
5875 * pretty-print.c (pp_format): Add case for "Z" specifier.
5876 (test_pp_format): Test "Z" specifier.
5877
5878 2016-11-13 Eric Botcazou <ebotcazou@adacore.com>
5879
5880 * ipa-icf.c (sem_function::merge): Do not create a wrapper also if the
5881 original function needs a static chain.
5882
5883 2016-11-13 David Edelsohn <dje.gcc@gmail.com>
5884
5885 PR target/78336
5886 * config/rs6000/rs6000.c (rs6000_asm_weaken_decl): Protect
5887 ASM_OUTPUT_DEF.
5888
5889 2016-11-12 Segher Boessenkool <segher@kernel.crashing.org>
5890
5891 PR target/77957
5892 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
5893 return early if !optional_tbtab.
5894
5895 2016-11-11 Eric Botcazou <ebotcazou@adacore.com>
5896
5897 PR rtl-optimization/59461
5898 * doc/rtl.texi (paradoxical subregs): Add missing word.
5899 * combine.c (reg_nonzero_bits_for_combine): Do not discard results
5900 in modes with precision larger than that of last_set_mode.
5901 * rtlanal.c (nonzero_bits1) <SUBREG>: If WORD_REGISTER_OPERATIONS is
5902 set and LOAD_EXTEND_OP is appropriate, propagate results from inner
5903 REGs to paradoxical SUBREGs.
5904 (num_sign_bit_copies1) <SUBREG>: Likewise. Check that the mode is not
5905 larger than a word before invoking LOAD_EXTEND_OP on it.
5906
5907 2016-11-11 Michael Meissner <meissner@linux.vnet.ibm.com>
5908
5909 PR target/78243
5910 * config/rs6000/vsx.md (vsx_extract_<mode>_p9): Correct the
5911 element order for little endian ordering.
5912
5913 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Use
5914 VECTOR_ELT_ORDER_BIG and not BYTES_BIG_ENDIAN to adjust element
5915 number.
5916
5917 2016-11-11 Uros Bizjak <ubizjak@gmail.com>
5918
5919 PR target/78310
5920 * config/i386/i386.md (rotate to rotatex splitter): Avoid overflow
5921 when calculating operand 2.
5922 (rotate to rotatex zext splitter): Ditto.
5923
5924 2016-11-11 Jeff Law <law@redhat.com>
5925
5926 * gimple-ssa-isolate-paths.c (is_divmod_with_given_divisor): New
5927 function.
5928 (stmt_uses_name_in_undefined_way): New function, extracted from
5929 find_implicit_erroneous_behavior and extended for div/mod case.
5930 (stmt_uses_0_or_null_in_undefined_way): New function, extracted from
5931 find_explicit_erroneous_behavior and extended for div/mod case.
5932 (find_implicit_erroneous_behavior): Use new helper function.
5933 (find_explicit_erroneous_behavior): Use new helper function.
5934
5935 2016-11-11 Richard Biener <rguenther@suse.de>
5936
5937 PR tree-optimization/71575
5938 * graphite-isl-ast-to-gimple.c (copy_cond_phi_nodes): Remove
5939 bogus assert.
5940
5941 2016-11-11 Richard Biener <rguenther@suse.de>
5942
5943 PR middle-end/78295
5944 * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
5945 about uninitialized destination arg of BIT_INSERT_EXPR.
5946
5947 2016-11-10 Sandra Loosemore <sandra@codesourcery.com>
5948
5949 PR c/37998
5950 * doc/invoke.texi (Code Gen Options) [-fno-common]: Use correct
5951 terminology. Expand to remove ambiguity.
5952
5953 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
5954
5955 PR rtl-optimization/78232
5956 * combine.c (try_combine): Add a big comment about why reusing i2dest
5957 is undesirable.
5958 (change_zero_ext): Do not call simplify_gen_binary, do the
5959 simplifications manually.
5960
5961 2016-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
5962
5963 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If ISA 3.0,
5964 enable HImode and QImode to go in vector registers by default if
5965 the -mvsx-small-integer option is enabled.
5966 (rs6000_secondary_reload_simple_move): Likewise.
5967 (rs6000_preferred_reload_class): Don't force integer constants to
5968 be loaded into vector registers that we can easily make into
5969 memory (or being created in the GPRs and moved over with direct move).
5970 * config/rs6000/vsx.md (UNSPEC_P9_MEMORY): Delete, no longer used.
5971 (vsx_extract_<mode>): Rework V4SImode, V8HImode, and V16QImode
5972 vector extraction on ISA 3.0 when the scalar integer can be
5973 allocated in vector registers. Generate the VEC_SELECT directy,
5974 and don't use UNSPEC's to avoid having the scalar type in a vector
5975 register. Make the expander target registers, and let the
5976 combiner fold in results storing to memory, if the machine
5977 supports stores.
5978 (vsx_extract_<mode>_di): Likewise.
5979 (vsx_extract_<mode>_p9): Likewise.
5980 (vsx_extract_<mode>_di_p9): Likewise.
5981 (vsx_extract_<mode>_store_p9): Likewise.
5982 (vsx_extract_si): Likewise.
5983 (vsx_extract_<mode>_p8): Likewise.
5984 (p9_lxsi<wd>zx): Delete, no longer used.
5985 (p9_stxsi<wd>x): Likewise.
5986 * config/rs6000/rs6000.md (INT_ISA3): New mode iterator for
5987 integers in vector registers for ISA 3.0.
5988 (QHI): Update comment.
5989 (zero_extendqi<mode>2): Add support for ISA 3.0 scalar load or
5990 vector extract instructions in sign/zero extend.
5991 (zero_extendhi<mode>): Likewise.
5992 (extendqi<mode>): Likewise.
5993 (extendhi<mode>2): Likewise.
5994 (HImode splitter for load/sign extend in vector register): Likewise.
5995 (float<QHI:mode><FP_ISA3:mode>2): Eliminate old method of
5996 optimizing floating point conversions to/from small data types and
5997 rewrite it to support QImode/HImode being allowed in vector
5998 registers on ISA 3.0.
5999 (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
6000 (floatuns<QHI:mode><FP_ISA3:mode>2): Likewise.
6001 (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
6002 (fix_trunc<SFDF:mode><QHI:mode>2): Likewise.
6003 (fix_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
6004 (fixuns_trunc<SFDF:mode><QHI:mode>2): Likewise.
6005 (fixuns_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
6006 VSPLITISW on ISA 2.07.
6007 (movhi_internal): Combine movhi_internal and movqi_internal into
6008 one mov<mode>_internal with an iterator. Add support for QImode
6009 and HImode being allowed in vector registers. Make large number
6010 of attributes and constraints easier to read.
6011 (movqi_internal): Likewise.
6012 (mov<mode>_internal): Likewise.
6013 (movdi_internal64): Fix constraint to allow loading -16..15 with
6014 VSPLITISW on ISA 2.07.
6015 (integer XXSPLTIB splitter): Add support for QI, HI, and SImode as
6016 well as DImode.
6017
6018 2016-11-10 Pat Haugen <pthaugen@us.ibm.com>
6019
6020 PR rtl-optimization/78241
6021 * loop-unroll.c (unroll_loop_runtime_iterations): Don't adjust 'niter',
6022 but emit initial peel copy if niter expr is not reliable.
6023
6024 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
6025
6026 * dwarf2cfi.c (dump_cfi_row): Add forward declaration.
6027 (maybe_record_trace_start): If the CFI is different on the new and
6028 old paths, print out both to the dump file before ICEing.
6029
6030 2016-11-10 Vladimir Makarov <vmakarov@redhat.com>
6031
6032 * target.def (additional_allocno_class_p): New.
6033 * hooks.h (hook_bool_reg_class_t_false): New prototype.
6034 * hooks.c (hook_bool_reg_class_t_false): New.
6035 * ira.c (setup_allocno_and_important_classes): Use the new hook.
6036 * doc/tm.texi.in (TARGET_ADDITIONAL_ALLOCNO_CLASS_P): Add it.
6037 * doc/tm.texi: Update.
6038
6039 2016-11-10 Jason Merrill <jason@redhat.com>
6040
6041 * gengtype.c (new_structure): Append to structures list.
6042 (find_structure): Likewise.
6043
6044 2016-11-10 Jim Wilson <jim.wilson@linaro.org>
6045
6046 * tree-loop-distribution.c (pg_add_dependence_edges): Return 2 if
6047 this_dir is 2. Check for this_dir non-zero before dir != this_dir
6048 check.
6049
6050 2016-11-10 Jakub Jelinek <jakub@redhat.com>
6051
6052 * omp-low.c (lower_omp_target): Fix up argument to is_reference.
6053 (expand_omp_ordered_sink): Handle TREE_PURPOSE of deps being
6054 TRUNC_DIV_EXPR.
6055 * gimplify.c (gimplify_scan_omp_clauses): Likewise. Set
6056 ctx->target_map_scalars_firstprivate on OMP_TARGET even for Fortran.
6057 Remove omp_no_lastprivate callers. Propagate lastprivate on combined
6058 teams distribute parallel for simd even to distribute and teams
6059 construct. For OMP_CLAUSE_DEPEND add missing break at the end of
6060 OMP_CLAUSE_DEPEND_SINK case.
6061 (omp_notice_variable): Use lang_hooks.decls.omp_scalar_p.
6062 (omp_no_lastprivate): Removed.
6063 (gimplify_adjust_omp_clauses): Remove omp_no_lastprivate callers.
6064 (gimplify_omp_for): Likewise.
6065 (computable_teams_clause): Fail for automatic vars from current
6066 function not yet seen in bind expr.
6067 * langhooks.c (lhd_omp_scalar_p): New function.
6068 * langhooks.h (struct lang_hooks_for_decls): Add omp_scalar_p.
6069 * varpool.c (varpool_node::get_create): Set node->offloading
6070 even for DECL_EXTERNAL decls.
6071 * langhooks-def.h (lhd_omp_scalar_p): New prototype.
6072 (LANG_HOOKS_OMP_SCALAR_P): Define.
6073 (LANG_HOOKS_DECLS): Use it.
6074
6075 2016-11-10 Martin Liska <mliska@suse.cz>
6076
6077 PR sanitizer/78270
6078 * gimplify.c (gimplify_switch_expr): Create live_switch_vars
6079 only when SWITCH_BODY is a BIND_EXPR.
6080
6081 2016-11-10 Pierre-Marie de Rodat <derodat@adacore.com>
6082
6083 PR debug/78112
6084 * dwarf2out.c (dwarf2out_early_global_decl): Call dwarf2out_decl
6085 on the context only when it has no DIE yet.
6086
6087 2016-11-10 Richard Earnshaw <rearnsha@arm.com>
6088
6089 * arm.h (target_cpus): Delete.
6090 * arm-opts.h (enum processor_type): Prefix entires with TARGET_CPU_.
6091 * arm.c (all_cores): Prefix IDENT with TARGET_CPU_.
6092 (all_architectures): Likewise.
6093 (arm_option_override): Adjust use of CPU enums.
6094 (arm_sched_reorder): Likewise.
6095 * vfp.md (movdi_vfp, movdi_vfp_cortexa8): Likewise.
6096 * arm.opt (mcpu, mtune): Adjust use of CPU enums.
6097 * arm/genopt.sh (processor_type): Prefix enumeration entries with
6098 TARGET_CPU_.
6099 * arm-tables.opt: Regenerated.
6100
6101 2016-11-10 Siddhesh Poyarekar <siddhesh.poyarekar@linaro.org>
6102
6103 * config/aarch64/aarch64-cores.def (qdf24xx): Update part number.
6104 (falkor): New core.
6105 * config/aarch64/aarch64-tune.md: Regenerated.
6106 * config/arm/arm-cores.def (falkor): New core.
6107 * config/arm/arm-tables.opt: Regenerated.
6108 * config/arm/arm-tune.md: Regenerated.
6109 * config/arm/bpabi.h (BE8_LINK_SPEC): Add falkor support.
6110 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
6111 * doc/invoke.texi (AArch64 Options/-mtune): Document it.
6112 (ARM Options/-mtune): Likewise.
6113
6114 2016-11-10 Kugan Vivekanandarajah <kuganv@linaro.org>
6115
6116 Revert
6117 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
6118
6119 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
6120 (propagate_vr_accross_jump_function): Likewise.
6121 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
6122 (load_from_param_1): New.
6123 (load_from_unmodified_param): Factor common part into load_from_param_1.
6124 (load_from_param): New.
6125 (compute_complex_assign_jump_func): Handle unary expressions.
6126 (ipa_write_jump_function): Likewise.
6127 (ipa_read_jump_function): Likewise.
6128
6129 2016-11-09 Segher Boessenkool <segher@kernel.crashing.org>
6130
6131 * simplify-rtx.c (simplify_binary_operation_1): Simplify
6132 (xor (and (xor A B) C) B) to (ior (and A C) (and B ~C)) and
6133 (xor (and (xor A B) C) A) to (ior (and A ~C) (and B C)) if C
6134 is a const_int.
6135
6136 2016-11-09 David Malcolm <dmalcolm@redhat.com>
6137
6138 * print-rtl-function.c: Include varasm.h.
6139 (print_any_param_name): New function.
6140 (print_param): New function.
6141 (print_rtx_function): Call print_param for each argument.
6142 * print-rtl.c (rtx_writer::finish_directive): New function.
6143 * print-rtl.h (rtx_writer::finish_directive): New decl.
6144
6145 2016-11-09 Uros Bizjak <ubizjak@gmail.com>
6146
6147 PR target/78262
6148 * config/i386/i386.md (*<shift_insn><mode>3_doubleword): Mark
6149 operand 0 as earlyclobber.
6150 (*ashl<mode>3_doubleword): Ditto for all operand 0 alternatives.
6151
6152 2016-11-09 Martin Liska <mliska@suse.cz>
6153
6154 * fold-const-call.c (fold_const_call): Fix up type of s0 and s1.
6155
6156 2016-11-09 Jakub Jelinek <jakub@redhat.com>
6157
6158 PR target/77718
6159 * builtins.c (expand_builtin_memcmp): Formatting fix.
6160
6161 * flag-types.h (enum sanitize_code): Add SANITIZE_SHIFT_BASE
6162 and SANITIZE_SHIFT_EXPONENT, change SANITIZE_SHIFT to bitwise
6163 or of them, renumber other enumerators.
6164 * opts.c (sanitizer_opts): Add shift-base and shift-exponent.
6165 * doc/invoke.texi: Document -fsanitize=shift-base and
6166 -fsanitize-shift-exponent, document -fsanitize=shift as
6167 having those 2 suboptions.
6168
6169 2016-11-09 Richard Biener <rguenther@suse.de>
6170
6171 * fold-const.c (tree_swap_operands_p): Remove unused arg.
6172 * fold-const.c (tree_swap_operands_p): Likewise.
6173 (fold_binary_loc): Adjust.
6174 (fold_ternary_loc): Likewise.
6175 * genmatch.c (dt_operand::gen_gimple_exp): Likewise.
6176 * gimple-fold.c (fold_stmt_1): Likewise.
6177 * gimple-match-head.c (gimple_resimplify2): Likewise.
6178 (gimple_resimplify3): Likewise.
6179 (gimple_simplify): Likewise.
6180 * tree-ssa-dom.c (record_equality): Likewise.
6181 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Likewise.
6182 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
6183 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): Likewise.
6184
6185 2016-11-09 Richard Biener <rguenther@suse.de>
6186
6187 * tree-ssa-dom.c (canonicalize_comparison): Remove.
6188 (optimize_stmt): Remove redundant pre-propagation canonicalization
6189 of comparison operand order.
6190
6191 2016-11-09 Martin Liska <mliska@suse.cz>
6192
6193 * fold-const-call.c (fold_const_call): Fix the folding.
6194
6195 2016-11-09 Richard Biener <rguenther@suse.de>
6196
6197 * common.opt (flag_evaluation_order): Remove.
6198 * expr.c (expand_operands): Remove code guarded by
6199 flag_evaluation_order.
6200 * fold-const.c (reorder_operands_p): Remove, it always returns
6201 true.
6202 (negate_expr_p): Remove calls to reorder_operands_p.
6203 (fold_negate_expr): Likewise.
6204 (tree_swap_operands_p): Likewise.
6205 (fold_binary_loc): Likewise.
6206
6207 2016-11-09 Andreas Schwab <schwab@suse.de>
6208
6209 PR target/78254
6210 * config/m68k/m68k.md: Reject out-of-range bit pos in bit-fields
6211 insns operating on a register.
6212
6213 2016-11-09 Richard Biener <rguenther@suse.de>
6214
6215 PR tree-optimization/78007
6216 * tree-vect-stmts.c (vectorizable_bswap): New function.
6217 (vectorizable_call): Call vectorizable_bswap for
6218 BUILT_IN_BSWAP{16,32,64} if arguments are not promoted.
6219
6220 2016-11-09 Richard Biener <rguenther@suse.de>
6221
6222 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
6223 Look at the DR_BASE_ADDRESS object for forcing alignment.
6224
6225 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
6226
6227 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
6228 (propagate_vr_accross_jump_function): Likewise.
6229 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
6230 (load_from_param_1): New.
6231 (load_from_unmodified_param): Factor common part into load_from_param_1.
6232 (load_from_param): New.
6233 (compute_complex_assign_jump_func): Handle unary expressions.
6234 (ipa_write_jump_function): Likewise.
6235 (ipa_read_jump_function): Likewise.
6236
6237 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
6238
6239 PR ipa/78121
6240 * ipa-cp.c (propagate_vr_accross_jump_function): Pass param type.
6241 Also fold constant passed as argument while computing value range.
6242 (propagate_constants_accross_call): Pass param type.
6243 * ipa-prop.c: export ipa_get_callee_param_type.
6244 * ipa-prop.h: export ipa_get_callee_param_type.
6245
6246 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
6247
6248 * asan.h (asan_intercepted_p): Handle BUILT_IN_STRCSPN,
6249 BUILT_IN_STRPBRK, BUILT_IN_STRSPN and BUILT_IN_STRSTR.
6250
6251 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
6252
6253 * asan.h (ASAN_STACK_MAGIC_PARTIAL): Remove.
6254 * asan.c (ASAN_STACK_MAGIC_PARTIAL): Replace with
6255 ASAN_STACK_MAGIC_MIDDLE.
6256 (asan_global_struct): Increase the size of fields.
6257 (asan_add_global): Add new field constructor.
6258 * sanitizer.def (__asan_version_mismatch_check_v6): Replace with
6259 __asan_version_mismatch_check_v8.
6260
6261 2016-11-08 David Edelsohn <dje.gcc@gmail.com>
6262
6263 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Test XCOFF_DEBUGGING_INFO
6264 at runtime.
6265
6266 2016-11-08 Uros Bizjak <ubizjak@gmail.com>
6267
6268 PR target/70799
6269 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
6270 Handle ASHIFT and LSHIFTRT.
6271 (dimode_scalar_chain::compute_convert_gain): Ditto.
6272 (dimode_scalar_chain::convert_insn): Ditto.
6273
6274 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6275
6276 * gimple-ssa-store-merging.c: Include selftest.h
6277 (verify_array_eq): New function.
6278 (verify_shift_bytes_in_array): Likewise.
6279 (verify_shift_bytes_in_array_right): Likewise.
6280 (verify_clear_bit_region): Likewise.
6281 (verify_clear_bit_region_be): Likewise.
6282 (store_merging_c_tests): Likewise.
6283 * selftest.h (store_merging_c_tests): Declare prototype.
6284 * selftest-run-tests.c (selftest::run_tests): Run
6285 store_merging_c_tests.
6286
6287 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6288
6289 * config/arm/arm.opt (mold-rtx-costs): Delete.
6290 (mnew-generic-costs): Delete.
6291 * config/arm/arm-protos.h (struct tune_params): Delete rtx_costs field.
6292 * config/arm/arm.c (arm_rtx_costs_1): Delete.
6293 (arm_size_rtx_costs): Likewise.
6294 (arm_slowmul_rtx_costs): Likewise.
6295 (arm_fastmul_rtx_costs): Likewise.
6296 (arm_xscale_rtx_costs): Likewise.
6297 (arm_9e_rtx_costs): Likewise.
6298 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
6299 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
6300 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
6301 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
6302 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
6303 arm_cortex_a5_tune, arm_xgene1_tune, arm_marvell_pj4_tune,
6304 arm_cortex_a35_tune, arm_exynosm1_tune, arm_cortex_a73_tune,
6305 arm_cortex_m7_tune):
6306 Delete rtx_costs field.
6307 (arm_new_rtx_costs): Rename to...
6308 (arm_rtx_costs_internal): ... This.
6309 (arm_rtx_costs): Remove old way of doing rtx costs.
6310
6311 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6312
6313 * config/arm/arm.c (arm_slowmul_tune): Use generic_extra_costs.
6314 (arm_fastmul_tune): Likewise.
6315 (arm_strongarm_tune): Likewise.
6316 (arm_xscale_tune): Likewise.
6317 (arm_9e_tune): Likewise.
6318 (arm_marvell_pj4_tune): Likewise.
6319 (arm_v6t2_tune): Likewise.
6320 (arm_v6m_tune): Likewise.
6321 (arm_fa726te_tune): Likewise.
6322
6323 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6324
6325 PR tree-optimization/78234
6326 * gimple-ssa-store-merging.c (clear_bit_region): Fix off-by-one error
6327 in start != 0 case.
6328
6329 2016-11-08 Martin Liska <mliska@suse.cz>
6330
6331 PR testsuite/78242
6332 * dbgcnt.def: Add new debug counter asan_use_after_scope.
6333 * gimplify.c (gimplify_decl_expr): Do not sanitize vars
6334 with a value expr. Do not add artificial variables to
6335 live_switch_vars. Use the debug counter.
6336 (gimplify_target_expr): Use the debug counter.
6337 * internal-fn.def: Remove ECF_TM_PURE from ASAN_MARK builtin.
6338 * sanitizer.def: Set ATTR_NOTHROW_LEAF_LIST to
6339 BUILT_IN_ASAN_CLOBBER_N and BUILT_IN_ASAN_UNCLOBBER_N.
6340
6341 2016-11-08 Richard Biener <rguenther@suse.de>
6342
6343 * tree-vect-stmts.c (get_group_load_store_type): If the
6344 access is aligned do not trigger peeling for gaps.
6345 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
6346 force alignment of vars with DECL_USER_ALIGN.
6347
6348 2016-11-08 James Greenhalgh <james.greenhalgh@arm.com>
6349
6350 * config/aarch64/t-aarch64 (aarch64-c.o): Depend on TARGET_H.
6351
6352 2016-11-08 Richard Biener <rguenther@suse.de>
6353
6354 PR tree-optimization/78205
6355 * tree-vect-stmts.c (vectorizable_load): Move check whether
6356 we may run into gaps when BB vectorizing SLP permutations ...
6357 * tree-vect-slp.c (vect_supported_load_permutation_p): ...
6358 here where we can do a more precise check.
6359
6360 2016-11-08 Richard Biener <rguenther@suse.de>
6361
6362 PR tree-optimization/78224
6363 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
6364 Split the fallthru edge in case its successor may have PHIs.
6365 Do not free dominance info.
6366
6367 2016-11-07 Jakub Jelinek <jakub@redhat.com>
6368
6369 PR target/78229
6370 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
6371 EH info even for bzhi and pdep/pext.
6372
6373 2016-11-07 Peter Bergner <bergner@vnet.ibm.com>
6374
6375 * config.gcc (powerpc*-*-*, rs6000*-*-*): Remove setting of
6376 INCLUDE_EXTRA_SPEC for Advance Toolchain builds.
6377
6378 2016-11-07 Segher Boessenkool <segher@kernel.crashing.org>
6379
6380 * config/rs6000/rs6000.md (div<mode>3): Expand using rs6000_emit_swdiv
6381 if appropriate.
6382 * config/rs6000/vector.md (div<mode>3): Ditto.
6383
6384 2016-11-07 David Edelsohn <dje.gcc@gmail.com>
6385
6386 * configure.ac (.hidden): Change to conftest_s string. Provide string
6387 for AIX assembler.
6388 (gcc_cv_ld_hidden): Yes for AIX.
6389 * configure: Regenerate.
6390
6391 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Don't set for AIX (XCOFF).
6392
6393 * config/rs6000/rs6000-protos.h (rs6000_asm_weaken_decl): Declare
6394 (rs6000_xcoff_asm_output_aligned_decl_common): Declare.
6395 * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_DECL_NAME): Define.
6396 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
6397 (ASM_OUTPUT_ALIGNED_COMMON): Delete.
6398 * config/rs6000/rs6000.c (rs6000_init_builtins): Change clog rename
6399 from #if to if.
6400 (rs6000_xcoff_visibility): New.
6401 (rs6000_xcoff_declare_function_name): Add visibility support.
6402 (rs6000_xcoff_asm_globalize_decl_name): New.
6403 (rs6000_xcoff_asm_output_aligned_decl_common): New.
6404 (rs6000_asm_weaken_decl): New.
6405 (rs6000_code_end): Disable HIDDEN_LINKONCE on XCOFF.
6406 config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Change definition to
6407 reference function.
6408
6409 2016-11-07 Jack Howarth <howarth.at.gcc@gmail.com>
6410
6411 PR driver/78206
6412 * incpath.c (remove_dup): Also silently ignore EPERM.
6413
6414 2016-11-07 Martin Jambor <mjambor@suse.cz>
6415
6416 * tree.c (verify_type_variant): Use pointer comparison to check that
6417 TYPE_SIZE_UNIT match.
6418
6419 2016-11-07 Jakub Jelinek <jakub@redhat.com>
6420
6421 PR target/77834
6422 * dse.c (dse_step5): Call scan_reads even if just
6423 insn_info->frame_read. Improve and fix dump file messages.
6424
6425 PR target/78227
6426 * config/i386/i386.c (ix86_expand_sse_cmp): Force dest into
6427 cmp_mode argument even for -O0 if cmp_mode != mode and maskcmp.
6428
6429 2016-11-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6430
6431 PR middle-end/35691
6432 * match.pd: Add following two patterns:
6433 (x == 0 & y == 0) -> (x | typeof(x)(y)) == 0.
6434 (x != 0 | y != 0) -> (x | typeof(x)(y)) != 0.
6435
6436 2016-11-07 Bernd Schmidt <bschmidt@redhat.com>
6437
6438 * emit-rtl.c (emit_copy_of_insn_after): Duplicate notes in order.
6439 * sel-sched-ir.c (create_copy_of_insn_rtx): Likewise.
6440 * rtl.h (duplicate_reg_notes): Declare.
6441 * rtlanal.c (duplicate_reg_note): New function.
6442
6443 PR rtl-optimization/77309
6444 * combine.c (make_compound_operation): Allow EQ for IN_CODE, and
6445 don't assume an equality comparison for plain COMPARE.
6446 (simplify_comparison): Pass a more accurate code to
6447 make_compound_operation.
6448
6449 2016-11-07 Pat Haugen <pthaugen@us.ibm.com>
6450
6451 * target.def (compute_pressure_classes): New target hook.
6452 * doc/tm.texi.in: Document it.
6453 * doc/tm.texi: Regenerate.
6454 * ira.c (setup_pressure_classes): Call target hook if defined.
6455
6456 2016-11-07 David Malcolm <dmalcolm@redhat.com>
6457
6458 * print-rtl.c (rtx_writer::operand_has_default_value_p): New
6459 method.
6460 (rtx_writer::print_rtx): In compact mode, omit trailing operands
6461 that have the default values.
6462 * print-rtl.h (rtx_writer::operand_has_default_value_p): New
6463 method.
6464 * rtl-tests.c (selftest::test_dumping_insns): Remove empty
6465 label string from expected dump.
6466 (seltest::test_uncond_jump): Remove trailing "(nil)" for REG_NOTES
6467 from expected dump.
6468
6469 2016-11-07 Jakub Jelinek <jakub@redhat.com>
6470
6471 PR target/77834
6472 * alias.c (nonoverlapping_memrefs_p): If one decl is
6473 FUNCTION_DECL or LABEL_DECL and the other is not, return 1.
6474
6475 2016-11-07 Richard Biener <rguenther@suse.de>
6476
6477 PR target/78229
6478 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
6479 EH info.
6480
6481 2016-11-07 Richard Biener <rguenther@suse.de>
6482
6483 PR tree-optimization/78218
6484 * gimple-ssa-store-merging.c
6485 (pass_store_merging::terminate_all_aliasing_chains):
6486 Drop unused argument, fix alias check to also consider uses.
6487 (pass_store_merging::execute): Adjust.
6488
6489 2016-11-07 Richard Biener <rguenther@suse.de>
6490
6491 PR tree-optimization/78228
6492 * tree-ssa-phiopt.c (abs_replacement): Avoid introducing
6493 undefined behavior.
6494
6495 2016-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6496
6497 PR target/77822
6498 * config/aarch64/aarch64.md (*tb<optab><mode>1): Use
6499 aarch64_simd_shift_imm_<mode> predicate for operand 1.
6500 (<optab>, ANY_EXTRACT): Use tighter predicates on operands 2 and 3
6501 to restrict them to an appropriate range and add FAIL check if the
6502 region they specify is out of range. Delete useless constraint
6503 strings.
6504 (*<optab><mode>, ANY_EXTRACT): Add appropriate predicates on operands
6505 2 and 3 to restrict their range and add pattern predicate.
6506
6507 2016-11-07 Martin Liska <mliska@suse.cz>
6508
6509 * asan.c (enum asan_check_flags): Move the enum to header file.
6510 (asan_init_shadow_ptr_types): Make type creation more generic.
6511 (shadow_mem_size): New function.
6512 (asan_emit_stack_protection): Use newly added ASAN_SHADOW_GRANULARITY.
6513 Rewritten stack unpoisoning code.
6514 (build_shadow_mem_access): Add new argument return_address.
6515 (instrument_derefs): Instrument local variables if use after scope
6516 sanitization is enabled.
6517 (asan_store_shadow_bytes): New function.
6518 (asan_expand_mark_ifn): Likewise.
6519 (asan_sanitize_stack_p): Moved from asan_sanitize_stack_p.
6520 * asan.h (enum asan_mark_flags): Moved here from asan.c
6521 (asan_protect_stack_decl): Protect all declaration that need
6522 to live in memory.
6523 (asan_sanitize_use_after_scope): New function.
6524 (asan_no_sanitize_address_p): Likewise.
6525 * cfgexpand.c (partition_stack_vars): Consider
6526 asan_sanitize_use_after_scope in condition.
6527 (expand_stack_vars): Likewise.
6528 * common.opt (-fsanitize-address-use-after-scope): New option.
6529 * doc/invoke.texi (use-after-scope-direct-emission-threshold):
6530 Explain the parameter.
6531 * flag-types.h (enum sanitize_code): Define SANITIZE_USE_AFTER_SCOPE.
6532 * gimplify.c (build_asan_poison_call_expr): New function.
6533 (asan_poison_variable): Likewise.
6534 (gimplify_bind_expr): Generate poisoning/unpoisoning for local
6535 variables that have address taken.
6536 (gimplify_decl_expr): Likewise.
6537 (gimplify_target_expr): Likewise for C++ temporaries.
6538 (sort_by_decl_uid): New function.
6539 (gimplify_expr): Unpoison all variables for a label we can jump
6540 from outside of a scope.
6541 (gimplify_switch_expr): Unpoison variables defined in the switch
6542 context.
6543 (gimplify_function_tree): Clear asan_poisoned_variables.
6544 (asan_poison_variables): New function.
6545 (warn_switch_unreachable_r): Handle IFN_ASAN_MARK.
6546 * internal-fn.c (expand_ASAN_MARK): New function.
6547 * internal-fn.def (ASAN_MARK): Declare.
6548 * opts.c (finish_options): Handle -fstack-reuse if
6549 -fsanitize-address-use-after-scope is enabled.
6550 (common_handle_option): Enable address sanitization if
6551 -fsanitize-address-use-after-scope is enabled.
6552 * params.def (PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD):
6553 New parameter.
6554 * params.h: Likewise.
6555 * sancov.c (pass_sanopt::execute): Handle IFN_ASAN_MARK.
6556 * sanitizer.def: Define __asan_poison_stack_memory and
6557 __asan_unpoison_stack_memory functions.
6558 * asan.c (asan_mark_poison_p): New function.
6559 (transform_statements): Handle asan_mark_poison_p calls.
6560 * gimple.c (nonfreeing_call_p): Handle IFN_ASAN_MARK.
6561
6562 2016-11-07 Tamar Christina <tamar.christina@arm.com>
6563
6564 PR driver/78196
6565 * Makefile.in (SELFTEST_FLAGS): Added -o /dev/null.
6566
6567 2016-11-07 Martin Liska <mliska@suse.cz>
6568
6569 * tree-profile.c (gimple_gen_time_profiler): Set proper type
6570 to time_profiler_counter_ptr.
6571
6572 2016-11-07 Richard Biener <rguenther@suse.de>
6573
6574 PR tree-optimization/37150
6575 * tree-vectorizer.h (vect_transform_slp_perm_load): Add n_perms
6576 parameter.
6577 * tree-vect-slp.c (vect_supported_load_permutation_p): Adjust.
6578 (vect_analyze_slp_cost_1): Account for the real number of
6579 permutations emitted and for dead loads.
6580 (vect_transform_slp_perm_load): Add n_perms parameter counting
6581 the number of emitted permutations.
6582 * tree-vect-stmts.c (vectorizable_load): Adjust.
6583
6584 2016-11-07 Richard Biener <rguenther@suse.de>
6585
6586 PR tree-optimization/78189
6587 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Fix
6588 alignment computation.
6589
6590 2016-11-06 Kugan Vivekanandarajah <kuganv@linaro.org>
6591
6592 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove unreachable code.
6593
6594 2016-11-05 Martin Sebor <msebor@redhat.com>
6595
6596 * doc/invoke.texi (Warning Options): Correct typos in -Walloca
6597 documentation.
6598
6599 2016-11-05 David Edelsohn <dje.gcc@gmail.com>
6600
6601 PR bootstrap/78188
6602 PR c++/71848
6603 * ipa-comdats.c (pass_ipa_comdats::gate): Require HAVE_COMDAT_GROUP.
6604
6605 2016-11-04 Jakub Jelinek <jakub@redhat.com>
6606
6607 PR target/77834
6608 * alias.c (nonoverlapping_memrefs_p): Return 0 if exprx or expry
6609 doesn't have rtl set.
6610
6611 2016-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6612
6613 * config/rs6000/rs6000.c (gimple-ssa.h): New #include.
6614 (TARGET_GIMPLE_FOLD_BUILTIN): Define as
6615 rs6000_gimple_fold_builtin.
6616 (rs6000_gimple_fold_builtin): New function. Add handling for
6617 early expansion of vector addition builtins.
6618
6619 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
6620
6621 * expr.h (copy_blkmode_from_reg): Delete.
6622 * expr.c (copy_blkmode_from_reg): Make static.
6623
6624 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
6625
6626 * defaults.h (LOAD_EXTEND_OP): Define if not already defined.
6627 * combine.c (LOAD_EXTEND_OP): Delete.
6628 (simplify_comparison): Fix comment about LOAD_EXTEND_OP.
6629 * cse.c (LOAD_EXTEND_OP): Delete.
6630 * fold-const.c (LOAD_EXTEND_OP): Likewise.
6631 * fwprop.c (free_load_extend): Remove #ifdef LOAD_EXTEND_OP/#endif.
6632 * postreload.c (LOAD_EXTEND_OP): Delete.
6633 * reload.c (push_reload): Remove #ifdef LOAD_EXTEND_OP/#endif.
6634 Convert conditional compilation based on WORD_REGISTER_OPERATIONS.
6635 (find_reloads): Likewise.
6636 * reload1.c (eliminate_regs_1): Likewise.
6637 * rtlanal.c (nonzero_bits1): Remove #ifdef LOAD_EXTEND_OP/#endif.
6638 (num_sign_bit_copies1): Likewise.
6639
6640 2016-11-04 David Malcolm <dmalcolm@redhat.com>
6641
6642 * config/i386/i386.c: Include "selftest.h" and "selftest-rtl.h".
6643 (selftest::ix86_test_dumping_hard_regs): New function.
6644 (selftest::ix86_run_selftests): New function.
6645 (TARGET_RUN_TARGET_SELFTESTS): When CHECKING_P, wire this up to
6646 selftest::ix86_run_selftests.
6647 * doc/tm.texi.in (TARGET_RUN_TARGET_SELFTESTS): New.
6648 * doc/tm.texi: Regenerate
6649 * selftest-rtl.h: New file.
6650 * rtl-tests.c: Include "selftest-rtl.h".
6651 (selftest::assert_rtl_dump_eq): Make non-static.
6652 (ASSERT_RTL_DUMP_EQ): Move to selftest-rtl.h.
6653 (selftest::test_dumping_regs): Update comment.
6654 * selftest-run-tests.c: Include "target.h".
6655 (selftest::run_tests): If non-NULL, call
6656 targetm.run_target_selftests.
6657 * target.def (run_target_selftests): New hook.
6658
6659 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
6660
6661 * config/arm/arm-arches.def (armv8-m.main+dsp): Set Cortex-M33 as
6662 representative core for this architecture.
6663 * config/arm/arm-cores.def (cortex-m33): Define new processor.
6664 * config/arm/arm-tables.opt: Regenerate.
6665 * config/arm/arm-tune.md: Likewise.
6666 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M33 to the list of
6667 valid -mcpu options.
6668 * doc/invoke.texi (ARM Options): Document new Cortex-M33 processor.
6669
6670 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
6671
6672 * config/arm/arm-arches.def (armv8-m.base): Set Cortex-M23 as
6673 representative core for this architecture.
6674 * config/arm/arm-cores.def (cortex-m23): Define new processor.
6675 * config/arm/arm-tables.opt: Regenerate.
6676 * config/arm/arm-tune.md: Likewise.
6677 * config/arm/arm.c (arm_v6m_tune): Add Cortex-M23 to the list of cores
6678 this tuning parameters apply to in the comment.
6679 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M23 to the list of
6680 valid -mcpu options.
6681 * doc/invoke.texi (ARM Options): Document new Cortex-M23 processor.
6682
6683 2016-11-04 Bin Cheng <bin.cheng@arm.com>
6684
6685 * fold-const.c (fold_cond_expr_with_comparison): Remove call
6686 to pedantic_non_lvalue_loc. Remove useless code for lvalue
6687 where cond_expr can't be a lvalue.
6688
6689 2016-11-04 Claudiu Zissulescu <claziss@synopsys.com>
6690
6691 * config/arc/arc.c (arc_process_double_reg_moves): Use
6692 gen_dexcl_2op call.
6693 * config/arc/arc.md (movsi_insn): Disable unsupported move
6694 instructions for ARCv2 cores.
6695 (movdi): Use prepare_move_operands.
6696 (movsf, movdf): Use move_dest_operand predicate.
6697 * config/arc/constraints.md (Chs): Enable when barrel shifter is
6698 present.
6699 * config/arc/fpu.md (divsf3): Change to divsf3_fpu.
6700 * config/arc/fpx.md (dexcl_3op_peep2_insn): Dx data register is
6701 also a destination.
6702 (dexcl_3op_peep2_insn_nores): Likewise.
6703 * config/arc/arc.h (SHIFT_COUNT_TRUNCATED): Define to one.
6704 (LINK_COMMAND_SPEC): Remove.
6705
6706 2016-11-04 Richard Biener <rguenther@suse.de>
6707
6708 PR middle-end/78185
6709 * loop-invariant.c (find_exits): Record entering inner
6710 loops as possibly exiting to handle infinite sub-loops.
6711 * tree-ssa-loop-im.c: Include tree-ssa-loop-niter.h.
6712 (fill_always_executed_in_1): Honor infinite child loops.
6713
6714 2016-11-03 Michael Meissner <meissner@linux.vnet.ibm.com>
6715
6716 PR target/78192
6717 * config/rs6000/vsx.md (vsx_extract_<mode>_di): The element number
6718 has already been adjusted for endianness, so don't adjust it any
6719 further.
6720
6721 PR target/77993
6722 * config/rs6000/rs6000.h (FLOAT128_IBM_P): Do not allow IFmode or
6723 ICmode unless we have standard PowerPC floating point.
6724 * config/rs6000/rs6000.md (FP iterator): Likewise.
6725 (FMOVE128 iterator): Likewise.
6726
6727 2016-11-03 Jakub Jelinek <jakub@redhat.com>
6728 Alexandre Oliva <aoliva@redhat.com>
6729 Jason Merrill <jason@redhat.com>
6730
6731 PR debug/28767
6732 PR debug/56974
6733 * langhooks.h (struct lang_hooks_for_types): Add type_dwarf_attribute
6734 langhook.
6735 * langhooks.c (lhd_type_dwarf_attribute): New function.
6736 * langhooks-def.h (lhd_type_dwarf_attribute): Declare.
6737 (LANG_HOOKS_TYPE_DWARF_ATTRIBUTE): Define.
6738 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add
6739 LANG_HOOKS_TYPE_DWARF_ATTRIBUTE.
6740 (check_qualified_type, check_aligned_type): Call it.
6741 * dwarf2out.c (modified_type_die): Don't use type_main_variant
6742 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
6743 check_base_type and check_lang_type.
6744 (gen_ptr_to_mbr_type_die): If lookup_type_die is already non-NULL,
6745 return early. For pointer-to-data-member add DW_AT_use_location
6746 attribute.
6747 (gen_subroutine_type_die): Add DW_AT_{,rvalue_}reference attribute
6748 if needed.
6749 (gen_type_die_with_usage): Don't use type_main_variant
6750 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
6751 check_base_type and check_lang_type. Formatting fixes. Call
6752 get_debug_type langhook.
6753
6754 2016-11-03 Jason Merrill <jason@redhat.com>
6755
6756 * tree.c (check_lang_type): New.
6757 (check_qualified_type): Use it.
6758 (check_aligned_type): Use it.
6759 * tree.h: Declare it.
6760
6761 2016-11-03 Richard Earnshaw <rearnsha@arm.com>
6762
6763 * config.gcc (arm-wrs-vxworks): Set target_cpu_cname.
6764 (arm*-freebsd*): Likewise.
6765 (arm*-*-netbsdelf*): Likewise.
6766 (arm*-*-linux*): Likewise.
6767 (arm*-*-uclinux*eabi*): Likewise.
6768 (arm*-*-phoenix*): Likewise.
6769 (arm*-*-eabi*, arm*-*-symbianelf*, arm*-*-rtems*): Likewise.
6770 (arm*-*-*): Don't clobber target_cpu_cname when --with-cpu is not
6771 specified. Default to arm6 if target_cpu_cname is not set.
6772 * arm/arm.c (arm_option_override): Simplify logic. Assert that the
6773 default cpu has been correctly configured.
6774 * arm/arm.h (TARGET_CPU_DEFAULT): Delete.
6775 (target_cpus): Delete TARGET_CPU_generic, add TARGET_CPU_num_cores.
6776 * arm/freebsd.h (SUBTARGET_CPU_DEFAULT): Delete.
6777 * arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Delete.
6778 * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
6779 * arm/symbian.h (SUBTARGET_CPU_DEFAULT): Delete.
6780 * arm/unknown-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
6781
6782 2016-11-03 Jiong Wang <jiong.wang@arm.com>
6783
6784 * reg-notes.def (CFA_VAL_EXPRESSION): New entry.
6785 * dwarf2cfi.c (dwarf2out_frame_debug_cfa_val_expression): New function.
6786 (dwarf2out_frame_debug): Support REG_CFA_VAL_EXPRESSION.
6787 (output_cfa_loc): Support DW_CFA_val_expression.
6788 (output_cfa_loc_raw): Likewise.
6789 (output_cfi): Likewise.
6790 (output_cfi_directive): Likewise.
6791 * dwarf2out.c (dw_cfi_oprnd1_desc): Support DW_CFA_val_expression.
6792 (dw_cfi_oprnd2_desc): Likewise.
6793 (mem_loc_descriptor): Recognize new pattern generated for value
6794 expression.
6795
6796 2016-11-03 Segher Boessenkool <segher@kernel.crashing.org>
6797
6798 PR rtl-optimization/78186
6799 * combine.c (change_zero_ext): Mask the RHS of a zero_extract as
6800 well, when converting to IOR.
6801
6802 2016-11-03 Eric Botcazou <ebotcazou@adacore.com>
6803
6804 * config/sparc/sparc.md (vec_interleave_lowv8qi): Delete.
6805 (vec_interleave_highv8qi): Likewise.
6806
6807 2016-11-03 Martin Liska <mliska@suse.cz>
6808
6809 * profile.c (instrument_values): Fix coding style.
6810 (branch_prob): Use renamed function.
6811 * tree-profile.c (init_ic_make_global_vars): Likewise.
6812 (gimple_init_edge_profiler): Rename to
6813 gimple_init_gcov_profiler.
6814 tree_time_profiler_counter variable declaration.
6815 (gimple_gen_time_profiler): Rewrite to do a direct gimple code
6816 emission.
6817 * value-prof.h: Remove an argument.
6818
6819 2016-11-03 Richard Biener <rguenther@suse.de>
6820
6821 * config/rs6000/rs6000.c (rs6000_xcoff_declare_object_name): Use
6822 symtab_node::get_create.
6823
6824 2016-11-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6825
6826 * rtlanal.c (nonzero_bits1): Fix WORD_REGISTER_OPERATIONS condition.
6827 Move comments into more natural position.
6828
6829 2016-11-03 Vineet Gupta <vgupta@synopsys.com>
6830
6831 * config/arc/arc.h (SIZE_TYPE): Define as unsigned int.
6832 (PTRDIFF_TYPE): Define as int.
6833
6834 2016-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6835
6836 * ccmp.c (expand_ccmp_expr_1): Adjust.
6837 (expand_ccmp_expr): Likewise.
6838 (expand_ccmp_next): Likewise.
6839 * config/aarch64/aarch64.c (aarch64_gen_ccmp_next): Likewise.
6840 (aarch64_gen_ccmp_first): Likewise.
6841 * doc/tm.texi: Regenerate.
6842 * target.def (gen_ccmp_first): Change argument types to rtx_insn *.
6843 (gen_ccmp_next): Likewise.
6844
6845 2016-11-03 Bin Cheng <bin.cheng@arm.com>
6846
6847 * tree-vect-loop.c (destroy_loop_vec_info): Handle cond_expr.
6848 (vect_is_simple_reduction): Swap cond_reduction by inversion.
6849
6850 2016-11-02 Uros Bizjak <ubizjak@gmail.com>
6851
6852 * config/i386/i386.c (ix86_init_libfuncs): New. Call
6853 darwin_rename_builtins here.
6854 (ix86_expand_divmod_libfunc): New.
6855 (TARGET_INIT_LIBFUNCS): Unconditionally define to ix86_init_libfuncs.
6856 (TARGET_EXPAND_DIVMOD_LIBFUNC): Define.
6857
6858 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
6859 Nathan Sidwell <nathan@acm.org>
6860
6861 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): Set to zero.
6862
6863 2016-11-02 Max Filippov <jcmvbkbc@gmail.com>
6864
6865 * config/xtensa/xtensa.c (xtensa_output_integer_literal_parts):
6866 New function.
6867 (xtensa_output_literal): Use xtensa_output_integer_literal_parts
6868 to format MODE_INT and MODE_PARTIAL_INT literals.
6869
6870 2016-11-02 Segher Boessenkool <segher@kernel.crashing.org>
6871
6872 PR target/78168
6873 * config/r6000/rs6000.c (rs6000_get_separate_components): Return
6874 NULL if TARGET_SPE_ABI.
6875
6876 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6877
6878 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Don't forget to
6879 clear padding bits even when they're less than a byte.
6880
6881 2016-11-02 Richard Biener <rguenther@suse.de>
6882
6883 * gimple-ssa-store-merging.c: Include gimplify-me.h.
6884 (imm_store_chain_info::output_merged_stores): Force base_addr
6885 to be proper GIMPLE for a MEM_REF address.
6886 (pass_store_merging::execute): Restrict negative bitpos
6887 handling to non-MEM_REF bases. Remove TREE_THIS_VOLATILE
6888 check. Take into account non-NULL_TREE offset if the base
6889 is already addressable.
6890
6891 2016-11-26 Wilco Dijkstra <wdijkstr@arm.com>
6892
6893 * config/aarch64/aarch64-simd.md (aarch64_crypto_sha1hv4si):
6894 New pattern.
6895 (aarch64_be_crypto_sha1hv4si): New pattern.
6896
6897 2016-11-02 Wilco Dijkstra <wdijkstr@arm.com>
6898
6899 * config/aarch64/aarch64.md (add<mode>3): Remove
6900 redundant code. Don't split frame based additions.
6901
6902 2016-11-02 Richard Biener <rguenther@suse.de>
6903
6904 * gimple-ssa-store-merging.c (struct store_immediate_info): Remove
6905 redundant val and dest members.
6906 (store_immediate_info::store_immediate_info): Adjust.
6907 (merged_store_group::merged_store_group): Adjust.
6908 (merged_store_group::apply_stores): Likewise.
6909 (struct imm_store_chain_info): Add base_addr field.
6910 (imm_store_chain_info::imm_store_chain_info): New constructor.
6911 (imm_store_chain_info::terminate_and_process_chain): Do not pass base.
6912 (imm_store_chain_info::output_merged_store): Likewise. Use
6913 addr_base which is already the address.
6914 (imm_store_chain_info::output_merged_stores): Likewise.
6915 (pass_tree_store_merging::terminate_all_aliasing_chains): Take
6916 imm_store_chain_info instead of base. Fix alias check.
6917 (pass_tree_store_merging::terminate_and_release_chain): Likewise.
6918 (imm_store_chain_info::coalesce_immediate_stores): Adjust.
6919 (pass_store_merging::execute): Refuse to operate on TARGET_MEM_REF.
6920 use the address of the base and adjust for other changes.
6921
6922 2016-11-02 Martin Liska <mliska@suse.cz>
6923
6924 * fold-const-call.c (host_size_t_cst_p): Test whether
6925 t is convertible to size_t.
6926
6927 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6928
6929 PR tree-optimization/78170
6930 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Truncate padding
6931 introduced by native_encode_expr on little-endian as well.
6932
6933 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6934
6935 PR tree-optimization/78162
6936 * gimple-ssa-store-merging.c (execute): Mark stores with bitpos < 0
6937 as invalid.
6938
6939 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6940
6941 * config/aarch64/aarch64.c (aarch64_register_saved_on_entry): Add
6942 function comment.
6943 (aarch64_next_callee_save): Likewise.
6944 (aarch64_pushwb_single_reg): Likewise.
6945 (aarch64_gen_storewb_pair): Likewise.
6946 (aarch64_push_regs): Likewise.
6947 (aarch64_gen_loadwb_pair): Likewise.
6948 (aarch64_pop_regs): Likewise.
6949 (aarch64_gen_store_pair): Likewise.
6950 (aarch64_gen_load_pair): Likewise.
6951 (aarch64_save_callee_saves): Likewise.
6952 (aarch64_restore_callee_saves): Likewise.
6953
6954 2016-11-02 Richard Biener <rguenther@suse.de>
6955
6956 PR tree-optimization/78035
6957 PR tree-optimization/77964
6958 * gimple-pretty-print.c (pp_points_to_solution): Print
6959 vars_contains_interposable.
6960 * tree-ssa-alias.c: Include varasm.h.
6961 (ptrs_compare_unequal): Check vars_contains_interposable and
6962 decl_binds_to_current_def_p.
6963 (dump_points_to_solution): Dump vars_contains_interposable.
6964 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_interposable
6965 flag.
6966 * tree-ssa-structalias.c: Include varasm.h.
6967 (set_uids_in_ptset): Record whether vars contains a
6968 not decl_binds_to_current_def_p variable in vars_contains_interposable.
6969 (ipa_escaped_pt): Update initializer.
6970
6971 2016-11-02 Richard Biener <rguenther@suse.de>
6972
6973 PR tree-optimization/78047
6974 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Initialize
6975 fake field at offset zero conservatively regarding to may_have_pointers.
6976
6977 2016-11-02 Richard Biener <rguenther@suse.de>
6978
6979 * tree-vrp.c (evrp_dom_walker::before_dom_children): Call
6980 infer_value_range on stmt ops and update value-ranges.
6981 Dump visited stmts and blocks.
6982 (evrp_dom_walker::push_value_range): Dump changes.
6983 (evrp_dom_walker::pop_value_range): Likewise.
6984 (evrp_dom_walker::try_find_new_range): Avoid noop changes.
6985
6986 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6987
6988 * emit-rtl.c (prev_nonnote_insn_bb): Change argument type to
6989 rtx_insn *.
6990 * rtl.h (prev_nonnote_insn_bb): Adjust prototype.
6991
6992 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6993
6994 * cfgrtl.c (delete_insn_chain): Change argument type to rtx_insn *
6995 and adjust for that.
6996 * cfgrtl.h (delete_insn_chain): Adjust prototype.
6997
6998 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6999
7000 * config/rl78/rl78.c (gen-and_emit_move): Change argument type
7001 to rtx_insn *.
7002 (transcode_memory_rtx): Likewise.
7003 (move_to_acc): Likewise.
7004 (move_from_acc): Likewise.
7005 (move_acc_to_reg): Likewise.
7006 (move_to_x): Likewise.
7007 (move_to_hl): Likewise.
7008 (move_to_de): Likewise.
7009 * config/rs6000/rs6000.c (emit_frame_save): Likewise.
7010 (rs6000_emit_savres_rtx): Likewise.
7011 (rs6000_emit_prologue): Likewise.
7012 * reorg.c (update_reg_unused_notes): Likewise.
7013 * rtl.h (remove_note): Adjust prototype.
7014 * rtlanal.c (remove_note): Make argument type rtx_insn *.
7015
7016 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7017
7018 * config/alpha/alpha.c (alpha_legitimize_address_1): Split up
7019 variables so some can be rtx_insn *.
7020 (alpha_emit_xfloating_libcall): Likewise.
7021 * config/mips/mips.c (mips_call_tls_get_addr): Likewise.
7022 (mips_legitimize_tls_address): Likewise.
7023 * optabs.c (expand_binop): Likewise.
7024 * reload1.c (gen_reload): Likewise.
7025
7026 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7027
7028 * reorg.c (relax_delay_slots): Split up the trial variable.
7029
7030 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7031
7032 * config/arc/arc.c (arc_emit_call_tls_get_addr): Make the type
7033 of variables rtx_insn *.
7034 * config/arm/arm.c (arm_call_tls_get_addr): Likewise.
7035 (legitimize_tls_address): Likewise.
7036 * config/bfin/bfin.c (hwloop_optimize): Likewise.
7037 (bfin_gen_bundles): Likewise.
7038 * config/c6x/c6x.c (reorg_split_calls): Likewise.
7039 (c6x_reorg): Likewise.
7040 * config/frv/frv.c (frv_reorder_packet): Likewise.
7041 * config/i386/i386.c (ix86_split_idivmod): Likewise.
7042 * config/ia64/ia64.c (ia64_expand_compare): Likewise.
7043 * config/m32c/m32c.c (m32c_prepare_shift): Likewise.
7044 * config/mn10300/mn10300.c: Likewise.
7045 * config/rl78/rl78.c: Likewise.
7046 * config/s390/s390.c (s390_fix_long_loop_prediction): Likewise.
7047 * config/sh/sh-mem.cc (sh_expand_cmpstr): Likewise.
7048 (sh_expand_cmpnstr): Likewise.
7049 (sh_expand_strlen): Likewise.
7050 (sh_expand_setmem): Likewise.
7051 * config/sh/sh.md: Likewise.
7052 * emit-rtl.c (emit_pattern_before): Likewise.
7053 * except.c: Likewise.
7054 * final.c: Likewise.
7055 * jump.c: Likewise.
7056
7057 2016-11-01 Jason Merrill <jason@redhat.com>
7058
7059 * tree-inline.c (copy_tree_body_r): Only copy the taken branch of
7060 a COND_EXPR with constant condition.
7061
7062 2016-11-01 Jakub Jelinek <jakub@redhat.com>
7063
7064 * dwarf2out.c (gen_variable_die): Remove again origin_die variable
7065 and its initialization.
7066
7067 2016-11-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7068
7069 * dwarf2out.c (output_rnglists): Wrap basebuf, len in
7070 HAVE_AS_LEB128.
7071
7072 2016-11-01 Jakub Jelinek <jakub@redhat.com>
7073
7074 * dwarf2out.c (add_name_and_src_coords_attributes): Add NO_LINKAGE_NAME
7075 argument, don't call add_linkage_name if it is true.
7076 (gen_variable_die): For C++ inline static data members, consider the
7077 initial call when old_die is NULL to be declaration and call
7078 add_name_and_src_coords_attributes in that case with true as
7079 NO_LINKAGE_NAME. Add DW_AT_inline attribute if needed.
7080 (gen_member_die): For C++ inline static data members, emit a
7081 definition DIE right away in DW_TAG_compile_unit context.
7082
7083 2016-11-01 John David Anglin <danglin@gcc.gnu.org>
7084
7085 PR target/78166
7086 * config/pa/pa.md: Add new shift/add patterns to handle
7087 (plus (mult (reg) (mem_shadd_operand)) (reg)) source operand.
7088
7089 2016-11-01 Max Filippov <jcmvbkbc@gmail.com>
7090
7091 * config/xtensa/xtensa-protos.h
7092 (xtensa_use_return_instruction_p): New prototype.
7093 * config/xtensa/xtensa.c (xtensa_current_frame_size,
7094 xtensa_callee_save_size): Remove.
7095 (struct machine_function): Add new fields: current_frame_size,
7096 callee_save_size, frame_laid_out and epilogue_done.
7097 (compute_frame_size, xtensa_expand_prologue,
7098 xtensa_expand_epilogue): Replace xtensa_callee_save_size with
7099 cfun->machine->callee_save_size and xtensa_current_frame_size
7100 with cfun->machine->current_frame_size.
7101 (compute_frame_size): Update cfun->machine->frame_laid_out and
7102 don't update frame layout after reload completion.
7103 (xtensa_expand_epilogue): Set cfun->machine->epilogue_done
7104 instead of zeroing xtensa_current_frame_size.
7105 (xtensa_use_return_instruction_p): New function.
7106 * config/xtensa/xtensa.h (xtensa_current_frame_size): Remove
7107 declaration.
7108 (INITIAL_ELIMINATION_OFFSET): Use return value of
7109 compute_frame_size instead of xtensa_current_frame_size value.
7110 * config/xtensa/xtensa.md ("return" pattern): Use new predicate
7111 function xtensa_use_return_instruction_p instead of inline code.
7112
7113 2016-11-01 Jakub Jelinek <jakub@redhat.com>
7114
7115 * tree.h (BLOCK_IN_COLD_SECTION_P): Define.
7116 * final.c (final_scan_insn): Set BLOCK_IN_COLD_SECTION_P.
7117 * dwarf2out.c (rnglist_idx): New variable.
7118 (struct dw_ranges): Add label, idx and maybe_new_sec fields.
7119 (DEBUG_RNGLISTS_SECTION): Define.
7120 (ranges_base_label): New variable.
7121 (size_of_die) <case dw_val_class_range_list>: If using
7122 DW_FORM_rnglistx, count size of uleb128 of range list index.
7123 (value_format) <case dw_val_class_range_list>: For
7124 -gdwarf-5 -gsplit-dwarf return DW_FORM_rnglistx.
7125 (output_range_list_offset): Handle -gdwarf-5 .debug_rnglists
7126 offsets. Multiply dwarf < 5 offsets by 2 * DWARF_ADDR_SIZE.
7127 (add_ranges_num): Remove useless prototype. Don't multiply
7128 by 2 * DWARF2_ADDR_SIZE. Add maybe_new_sec argument, adjust
7129 for new fields added to dw_ranges struct.
7130 (add_ranges): Add maybe_new_sec argument and pass it
7131 through to add_ranges_num.
7132 (note_rnglist_head): New function.
7133 (add_ranges_by_labels): Pass true as maybe_new_sec to
7134 add_ranges_num, call note_rnglist_head on the head of the list.
7135 (output_ranges): Add function comment. Switch to
7136 .debug_ranges section here and emit .Ldebug_ranges0 label.
7137 (index_rnglists, output_rnglists): New functions.
7138 (gen_subprogram_die): Formatting fixes.
7139 (add_high_low_attributes): Don't divide offsets
7140 by 2 * DWARF2_ADDR_SIZE. Call note_rnglist_head on the
7141 first list element or when pointing into the middle of
7142 a list. Pass true as second argument to add_ranges on the
7143 first block fragment after cold/hot section switch.
7144 (init_sections_and_labels): For -gdwarf-5 use .debug_rnglists
7145 section instead of .debug_ranges. Initialize
7146 ranges_base_label if -gdwarf-5 -gsplit-dwarf.
7147 (dwarf2out_finish): For -gdwarf-5 -gsplit-dwarf call
7148 index_rnglists and add DW_AT_rnglists_base attr. Don't switch
7149 to dwarf_ranges_section here or emit .Ldebug_ranges0 label.
7150 Call output_rnglists for -gdwarf-5.
7151 (dwarf2out_c_finalize): Clear rnglist_idx.
7152
7153 2016-11-01 Fritz Reese <fritzoreese@gmail.com>
7154
7155 * combine.c (simplify_compare_const): Add gcc_fallthrough.
7156
7157 2016-11-01 Bilyan Borisov <bilyan.borisov@arm.com>
7158 Tamar Christina <tamar.christina@arm.com>
7159
7160 * config/arm/arm-c.c (arm_cpu_builtins): New macro definition.
7161 * config/arm/arm_neon.h (vmaxnm_f32): New intrinsinc.
7162 (vmaxnmq_f32): Likewise.
7163 (vminnm_f32): Likewise.
7164 (vminnmq_f32): Likewise.
7165 * config/arm/arm_neon_builtins.def (vmaxnm): New builtin.
7166 (vminnm): Likewise.
7167 * config/arm/neon.md (neon_<fmaxmin_op><mode>, VCVTF): New
7168 expander.
7169
7170 2016-10-31 Michael Meissner <meissner@linux.vnet.ibm.com>
7171
7172 * config/rs6000/vsx.md (VSX_EXTRACT_FL): New iterator for all
7173 binary floating point types supported by the hardware except for
7174 double.
7175 (vsx_xvcvsxwdp_df): Provide scalar result alternative to the
7176 vector instruction for optimizing extracting a SImode from a
7177 V4SImode vector and converting it to floating point.
7178 (vsx_xvcvuxwdp_df): Likewise.
7179 (vsx_extract_si): On ISA 3.0, allow extract target and temporary
7180 registers to be any VSX register. Move stores to the end of the
7181 constraints.
7182 (vsx_extract_si_<uns>float_df): New combiner pattern and splitter
7183 to optimize extracting a SImode from a V4SImode vector and
7184 converting it to a binary floating point type supported by the
7185 hardware. Use the vector converts instead of extracting the
7186 element, sign extending it, and then converting it to double.
7187 Other floating point types than double first convert to double,
7188 then the double is converted to that type.
7189 (vsx_extract_si_<uns>float_<mode>): Likewise.
7190
7191 2016-10-31 Andrew Pinski <apinski@cavium.com>
7192
7193 * config/aarch64/driver-aarch64.c (host_detect_local_cpu):
7194 Rewrite handling of part num to handle the case where
7195 multiple implementers share the same part num.
7196
7197 2016-10-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7198 Jakub Jelinek <jakub@redhat.com>
7199
7200 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): Adjust for -gdwarf-5.
7201 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Likewise.
7202
7203 2016-10-31 Jakub Jelinek <jakub@redhat.com>
7204
7205 * dwarf2out.c (dwarf_AT): Handle DW_AT_dwo_name.
7206 (use_debug_types): Adjust comment for DWARF5 DW_UT_type units.
7207 (new_die): Handle DW_TAG_skeleton_unit like DW_TAG_compile_unit.
7208 (is_cu_die, is_unit_die): Likewise.
7209 (should_move_die_to_comdat, break_out_comdat_types): Adjust
7210 comments for DWARF5 DW_UT_type units.
7211 (output_compilation_unit_header): Add UT argument, output
7212 start of DWARF5 .debug_info section header.
7213 (output_comp_unit): Add dwo_id argument. Adjust
7214 output_compilation_unit_header caller, for DW_UT_split_compile
7215 emit dwo_id field, otherwise padding1. Emit padding2 field.
7216 (add_top_level_skeleton_die_attrs): Add DW_AT_dwo_name
7217 rather than DW_AT_GNU_dwo_name attr for -gdwarf-5.
7218 (output_skeleton_debug_sections): Add dwo_id argument, for
7219 -gdwarf-5 emit DWARF 5 DW_UT_skeleton header.
7220 (output_comdat_type_unit): For -gdwarf-5 emit .debug_info
7221 DW_UT_type or DW_UT_split_type units rather than .debug_types.
7222 (dwarf2out_finish): Use DW_TAG_skeleton_unit rather than
7223 DW_TAG_compile_unit for skeleton unit die. Don't add
7224 DW_AT_GNU_dwo_id attributes for -gdwarf-5, instead pass checksum
7225 address to output_comp_unit and output_skeleton_debug_sections.
7226
7227 * dwarf2out.c (debug_line_str_section): New variable.
7228 (debug_line_str_hash): Likewise.
7229 (DEBUG_LINE_STR_SECTION): Define.
7230 (set_indirect_string): Handle DW_FORM_line_strp like
7231 DW_FORM_strp.
7232 (find_string_form): Fix up formatting.
7233 (size_of_die): Handle DW_FORM_line_strp like DW_FORM_strp.
7234 Fix up indentation.
7235 (output_die): Handle DW_FORM_line_strp.
7236 (DWARF5_USE_DEBUG_LINE_STR): Define.
7237 (output_line_string): New function.
7238 (output_file_names): Add -gdwarf-5 support.
7239 (output_line_info): Likewise.
7240 (init_sections_and_labels): Initialize debug_line_str_section.
7241 (output_indirect_string): Change 2nd argument from void *
7242 to enum dwarf_form form, compare with form rather than
7243 DW_FORM_strp.
7244 (output_indirect_strings): Pass DW_FORM_strp to
7245 output_indirect_string traversion.
7246 (dwarf2out_finish): Output .debug_line_str strings.
7247 (dwarf2out_c_finalize): Clear debug_line_str_section and
7248 debug_line_str_hash.
7249
7250 2016-10-31 Tom Tromey <tom@tromey.com>
7251
7252 PR debug/77315
7253 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_form_tls_address.
7254 (resolve_args_picking_1): Move DW_OP_form_tls_address case next to
7255 DW_OP_GNU_push_tls_address case.
7256 (loc_list_from_tree_1): Use DW_OP_form_tls_address.
7257
7258 2016-10-31 Jakub Jelinek <jakub@redhat.com>
7259
7260 * dwarf2out.h (struct dw_loc_descr_node): Adjust comment
7261 for frame_offset_rel bit.
7262 (struct array_descr_info): Add rank field.
7263 * dwarf2out.c (struct loc_descr_context): Add placeholder_arg
7264 and placeholder_seen fields.
7265 (resolve_args_picking_1): Handle also frame_offset_rel DW_OP_dup
7266 and DW_OP_over. Optimize DW_OP_pick 0 into DW_OP_dup and
7267 DW_OP_pick 1 into DW_OP_over.
7268 (function_to_dwarf_procedure, type_byte_size, field_byte_offset,
7269 gen_variant_part): Clear placeholder_{arg,seen}.
7270 (loc_list_from_tree_1): Drop const from context argument.
7271 Handle integral PLACEHOLDER_EXPR if context->placeholder_arg.
7272 (loc_list_for_address_of_addr_expr_of_indirect_ref,
7273 loc_list_from_tree, loc_descriptor_from_tree): Drop const from
7274 context argument.
7275 (add_scalar_info): Drop const from context argument. Handle
7276 context->placeholder_arg.
7277 (add_bound_info): Drop const from context argument.
7278 (gen_descr_array_type_die): Drop const from ctx variable.
7279 Initialize placeholder_arg and placeholder_seen. Add DW_AT_rank
7280 attribute and use a single DW_TAG_generic_subrange instead of
7281 7 DW_TAG_subrange_type for assumed rank arrays.
7282
7283 * dwarf2out.h (enum dw_val_class): Add dw_val_class_loclistsptr.
7284 * dwarf2out.c (struct dw_loc_list_struct): Change emitted field
7285 from bool to 1-bit uchar bitfield. Add num_assigned and
7286 offset_emitted bitfields.
7287 (dw_val_equal_p): Compare v.val_lbl_id rather than v.val_unsigned
7288 for dw_val_class_lineptr and dw_val_class_macptr. Handle
7289 dw_val_class_loclistsptr.
7290 (new_addr_loc_descr): Fix up formatting.
7291 (DEBUG_LOCLISTS_SECTION, DEBUG_DWO_LOCLISTS_SECTION): Define.
7292 (add_AT_low_high_pc): Fix up formatting.
7293 (add_AT_loclistsptr): New function.
7294 (AT_lbl): Allow dw_val_class_loclistsptr.
7295 (print_dw_val, attr_checksum, attr_checksum_ordered, same_dw_val_p):
7296 Handle dw_val_class_loclistsptr.
7297 (loc_list_idx): New variable.
7298 (output_loclists_offsets, assign_location_list_indexes): New
7299 functions.
7300 (size_of_die): For dw_val_class_loc_list -gsplit-dwarf -gdwarf-5
7301 add size_of_uleb128 of the index. Drop never used
7302 dwarf_split_debug_info AT_index handling. Handle
7303 dw_val_class_loclistsptr.
7304 (value_format): Return DW_FORM_loclistsx for dw_val_class_loc_list
7305 if -gsplit-dwarf -gdwarf-5. Handle dw_val_class_loclistsptr.
7306 (output_loc_list): Handle DWARF 5 .debug_loclists* format.
7307 (output_loc_list_offset): Handle -gsplit-dwarf -gdwarf-5
7308 DW_FORM_loclistx indexes.
7309 (output_attr_index_or_value): Fix up formatting. Don't handle
7310 dw_val_class_loc_list here.
7311 (output_die): Formatting fixes. Handle dw_val_class_loclistsptr.
7312 For dw_val_class_loc_list call output_loc_list_offset rather than
7313 output_attr_index_or_value.
7314 (init_sections_and_labels): For -gdwarf-5 use .debug_loclists
7315 or .debug_loclists.dwo section name for debug_loc_section.
7316 (resolve_addr_in_expr): Formatting fix.
7317 (index_location_lists): Likewise.
7318 (dwarf2out_finish): If there are any location lists, for
7319 -gsplit-dwarf -gdwarf-5 add DW_AT_loclists_base attribute. Call
7320 index_location_lists only if have_location_lists. Call
7321 assign_location_list_indexes for -gsplit-dwarf -gdwarf-5. Emit
7322 .debug_loclists{,.dwo} section header for -gdwarf-5, for -gdwarf-5
7323 -gsplit-dwarf also emit offset table.
7324
7325 * dwarf2out.c (DWARF_LARGEST_DATA_FORM_BITS): Define.
7326 (size_of_die, value_format, output_die): Use
7327 DW_FORM_data16 for 128-bit dw_val_class_const_double or
7328 dw_val_class_wide_int.
7329
7330 * dwarf2out.c (dwarf_op): Renamed to ...
7331 (dwarf_OP): ... this.
7332 (convert_descriptor_to_mode, scompare_loc_descriptor,
7333 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
7334 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr): Adjust
7335 callers.
7336 (dwarf_AT, dwarf_TAG): New functions.
7337 (check_die): Disallow DW_AT_call_all_calls next to
7338 DW_AT_GNU_all_call_sites.
7339 (gen_call_site_die): Use dwarf_TAG and dwarf_AT with DWARF 5 tag
7340 and attributes instead of the corresponding GNU tag and attributes.
7341 (gen_subprogram_die): Likewise. Emit call site information even
7342 for -gdwarf-5 -gstrict-dwarf. Replace DW_AT_GNU_defaulted with
7343 DW_AT_defaulted in comment.
7344 (resolve_addr): Handle DW_AT_call_origin attribute on
7345 DW_TAG_call_site DIE like DW_AT_abstract_origin on
7346 DW_TAG_GNU_call_site DIE.
7347
7348 * dwarf2out.c (dwarf_op): New function.
7349 (size_of_loc_descr): Handle DW_OP_{implicit_pointer,entry_value},
7350 DW_OP_{const,regval,deref}_type and DW_OP_{convert,reinterpret}.
7351 (output_loc_operands, output_loc_operands_raw): Likewise.
7352 (resolve_args_picking_1, prune_unused_types_walk_loc_descr,
7353 mark_base_types, hash_loc_operands, compare_loc_operands): Likewise.
7354 (resolve_addr_in_expr): Likewise. Only punt for !dwarf_strict
7355 if dwarf_version < 5.
7356 (convert_descriptor_to_mode): Use dwarf_op (DW_OP_xxx) instead of
7357 DW_OP_GNU_xxx.
7358 (scompare_loc_descriptor, ucompare_loc_descriptor,
7359 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
7360 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr,
7361 optimize_location_into_implicit_ptr): Likewise. Only punt for
7362 !dwarf_strict if dwarf_version < 5.
7363 (string_cst_pool_decl): Adjust comment.
7364 (non_dwarf_expression): Handle DW_OP_implicit_pointer.
7365
7366 * dwarf2out.h (enum dw_val_class): Add dw_val_class_const_implicit,
7367 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
7368 (struct dw_val_node): Add val_file_implicit field.
7369 * dwarf2out.c (dw_val_equal_p, print_dw_val, attr_checksum,
7370 attr_checksum_ordered, same_dw_val_p, size_of_die, value_format,
7371 output_die): Handle dw_val_class_const_implicit,
7372 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
7373 (abbrev_die_table): Change into va_gc vec.
7374 (abbrev_die_table_allocated, abbrev_die_table_in_use,
7375 ABBREV_DIE_TABLE_INCREMENT): Remove.
7376 (AT_int, AT_unsigned, AT_file): Allow dw_val_class_*_implicit.
7377 (abbrev_opt_start, abbrev_usage_count, sorted_abbrev_dies): New
7378 variables.
7379 (build_abbrev_table): Adjust for abbrev_die_table being a va_gc vec.
7380 If abbrev_opt_start, fill in abbrev_usage_count and abbrev_dies
7381 vectors.
7382 (die_abbrev_cmp, optimize_implicit_const, optimize_abbrev_table): New
7383 functions.
7384 (output_die_abbrevs): For DW_FORM_implicit_const emit sleb128 with
7385 the implicit value.
7386 (output_abbrev_section): Adjust for abbrev_die_table being a va_gc
7387 vec.
7388 (output_comp_unit): Initialize abbrev_opt_start if emitting the main
7389 unit. Call optimize_abbrev_table.
7390 (dwarf2out_init, dwarf2out_finish, dwarf2out_c_finalize): Adjust for
7391 abbrev_die_table being a va_gc vec.
7392
7393 PR tree-optimization/77860
7394 * tree-ssa-reassoc.c (eliminate_using_constants): Handle
7395 also integral complex and vector constants.
7396
7397 * dwarf2out.c (dwarf2out_define, dwarf2out_undef, output_macinfo_op,
7398 optimize_macinfo_range, save_macinfo_strings): Replace
7399 DW_MACRO_GNU_* constants with corresponding DW_MACRO_* constants.
7400 (output_macinfo): Likewise. Emit .debug_macro* rather than
7401 .debug_macinfo* even for -gstrict-dwarf -gdwarf-5.
7402 (init_sections_and_labels): Use .debug_macro* labels rather than
7403 .debug_macinfo* labels even for -gstrict-dwarf -gdwarf-5.
7404 (dwarf2out_finish): Use DW_AT_macros instead of DW_AT_macro_info
7405 or DW_AT_GNU_macros for -gdwarf-5.
7406
7407 2016-10-31 Waldemar Brodkorb <wbx@openadk.org>
7408
7409 * config/microblaze/linux.h (UCLIBC_DYNAMIC_LINKER): Define.
7410
7411 2016-09-11 Le-Chun Wu <lcwu@google.com>
7412 Mark Wielaard <mjw@redhat.com>
7413
7414 * common.opt (Wshadow=global): New option. Default for -Wshadow.
7415 (Wshadow=local): New option.
7416 (Wshadow-local): Hidden alias for -Wshadow=local.
7417 (Wshadow=compatible-local): New option.
7418 (Wshadow-compatible-local): Hidden alias for
7419 -Wshadow=compatible-local.
7420 * doc/invoke.texi: Document Wshadow=global, Wshadow=local and
7421 Wshadow=compatible-local.
7422
7423 2016-10-31 Bin Cheng <bin.cheng@arm.com>
7424
7425 * tree-vect-slp.c (vect_get_and_check_slp_defs): New parameter SWAP.
7426 Check slp defs for COND_EXPR by swapping/inverting operands if the
7427 new parameter SWAP indicates so.
7428 (vect_build_slp_tree_1): New parameter SWAP. Check COND_EXPR stmt
7429 is isomorphic to the first stmt via swapping/inverting. Store swap
7430 information in the new parameter SWAP.
7431 (vect_build_slp_tree): New local array SWAP and pass it to function
7432 vect_build_slp_tree_1. Cleanup result handling code for function
7433 call to vect_get_and_check_slp_defs. Skip operand swapping if the
7434 order of operands has been fixed as indicated by SWAP[i].
7435
7436 2016-10-31 Bin Cheng <bin.cheng@arm.com>
7437
7438 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): Skip
7439 unnecessary data dependence check after visited store stmt.
7440
7441 2016-10-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7442
7443 PR tree-optimization/71915
7444 PR tree-optimization/71490
7445 * gimple-ssa-strength-reduction.c (struct slsr_cand_d): Add
7446 stride_type field.
7447 (find_basis_for_base_expr): Require stride types to match when
7448 seeking a basis.
7449 (alloc_cand_and_find_basis): Record the stride type.
7450 (slsr_process_phi): Pass stride type to alloc_cand_and_find_basis.
7451 (backtrace_base_for_ref): Pass types to legal_cast_p_1 rather than
7452 the expressions having those types.
7453 (slsr_process_ref): Pass stride type to alloc_cand_and_find_basis.
7454 (create_mul_ssa_cand): Likewise.
7455 (create_mul_imm_cand): Likewise.
7456 (create_add_ssa_cand): Likewise.
7457 (create_add_imm_cand): Likewise.
7458 (legal_cast_p_1): Change interface to accept types rather than the
7459 expressions having those types.
7460 (legal_cast_p): Pass types to legal_cast_p_1.
7461 (slsr_process_cast): Pass stride type to
7462 alloc_cand_and_find_basis.
7463 (slsr_process_copy): Likewise.
7464 (dump_candidate): Display stride type when a cast exists.
7465 (create_add_on_incoming_edge): Introduce a cast when necessary for
7466 the stride type.
7467 (analyze_increments): Change the code checking for invalid casts
7468 to rely on the stride type, and update the documentation and
7469 example. Change the code checking for pointer multiplies to rely
7470 on the stride type.
7471 (insert_initializers): Introduce a cast when necessary for the
7472 stride type. Use the stride type for the type of the initializer.
7473
7474 2016-10-30 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7475
7476 * config/arm/arm.c (arm_const_not_ok_for_debug_p): Use VAR_P.
7477
7478 2016-10-29 Jakub Jelinek <jakub@redhat.com>
7479
7480 PR rtl-optimization/77919
7481 * expr.c (expand_expr_real_1) <normal_inner_ref>: Only avoid forcing
7482 into memory if both modes are complex and their inner modes have the
7483 same precision. If the two modes are different complex modes, convert
7484 each part separately and generate a new CONCAT.
7485
7486 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
7487
7488 * config/pa/pa64-hpux.h (FINI_SECTION_ASM_OP): Define to null string.
7489
7490 2016-10-29 Jakub Jelinek <jakub@redhat.com>
7491
7492 PR target/78148
7493 * gimple-ssa-store-merging.c
7494 (imm_store_chain_info::output_merged_store): Use build_aligned_type
7495 instead of SET_TYPE_ALIGN on shared integral type.
7496
7497 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
7498
7499 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
7500 (MALLOC_ABI_ALIGNMENT): Define to 128 on all targets except SOM.
7501 Adjust comment.
7502
7503 2016-10-28 Jeff Law <law@redhat.com>
7504
7505 * config/vax/vax.h (REGNO_REG_CLASS): Access the REGNO argument.
7506 * config/spu/spu.h (REGNO_REG_CLASS): Likewise.
7507
7508 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
7509
7510 * doc/sourcebuild.texi (Ada Tests): Remove mention of gcc chapter.
7511
7512 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
7513
7514 * target.def (min_arithmetic_precision): New hook.
7515 * doc/tm.texi.in (Misc): Add TARGET_MIN_ARITHMETIC_PRECISION.
7516 * doc/tm.texi: Regenerate.
7517 * internal-fn.c (expand_arith_overflow): Adjust handling of target
7518 dependent support by means of TARGET_MIN_ARITHMETIC_PRECISION.
7519 * targhooks.c (default_min_arithmetic_precision): New function.
7520 * targhooks.h (default_min_arithmetic_precision): Declare.
7521 * config/sparc/sparc.c (TARGET_MIN_ARITHMETIC_PRECISION): Define.
7522 (sparc_min_arithmetic_precision): New function.
7523
7524 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
7525
7526 PR target/71847
7527 * combine.c (change_zero_ext): Handle zero_ext of hard registers.
7528 Swap commutative operands in new RTL if needed. Handle zero_ext
7529 in the set_dest.
7530 (recog_for_combine): Pass *pnewpat to change_zero_ext instead of
7531 PATTERN (insn).
7532
7533 2016-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7534 Kugan Vivekanandarajah <kuganv@linaro.org>
7535 Jim Wilson <jim.wilson@linaro.org>
7536
7537 PR tree-optimization/43721
7538 * target.def: New hook expand_divmod_libfunc.
7539 * doc/tm.texi.in: Add hook for TARGET_EXPAND_DIVMOD_LIBFUNC.
7540 * doc/tm.texi: Regenerate.
7541 * internal-fn.def: Add new entry for DIVMOD ifn.
7542 * internal-fn.c (expand_DIVMOD): New.
7543 * tree-ssa-math-opts.c: Include optabs-libfuncs.h, tree-eh.h,
7544 targhooks.h.
7545 (widen_mul_stats): Add new field divmod_calls_inserted.
7546 (target_supports_divmod_p): New.
7547 (divmod_candidate_p): Likewise.
7548 (convert_to_divmod): Likewise.
7549 (pass_optimize_widening_mul::execute): Call calculate_dominance_info,
7550 renumber_gimple_stmt_uids at beginning of function. Call
7551 convert_to_divmod and record stats for divmod.
7552 * config/arm/arm.c (arm_expand_divmod_libfunc): Override hook
7553 TARGET_EXPAND_DIVMOD_LIBFUNC.
7554 * doc/sourcebuild.texi: Add items for arm_divmod_simode, divmod,
7555 divmod_simode.
7556
7557 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
7558 Segher Boessenkool <segher@kernel.crashing.org>
7559
7560 * dojump.c (do_jump_by_parts_greater_rtx): Invert probability when
7561 swapping the arms of the branch.
7562 * internal-fn.c (expand_addsub_overflow): Use a straight-line code
7563 sequence for the generic signed-signed-signed case.
7564
7565 2016-10-28 Jeff Law <law@redhat.com>
7566
7567 * config/bfin/bfin.c (bfin_legitimate_address_p): Add missing
7568 fallthru comment.
7569 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
7570
7571 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
7572
7573 PR rtl-optimization/78029
7574 * function.c (prologue_contains, epilogue_contains): New functions.
7575 (record_prologue_seq, record_epilogue_seq): New functions.
7576 * function.h (prologue_contains, epilogue_contains,
7577 record_prologue_seq, record_epilogue_seq): New declarations.
7578 * sched-deps.c (sched_analyze_insn): Make dependencies to prevent
7579 mixing prologue and epilogue insns.
7580 (init_deps): Initialize the new fields in struct deps_desc.
7581 * sched-int.h (struct deps_desc): New fields last_prologue,
7582 last_epilogue, and last_logue_was_epilogue.
7583 * shrink-wrap.c (emit_common_heads_for_components): Record all
7584 emitted prologue and epilogue insns.
7585 (emit_common_tails_for_components): Ditto.
7586 (insert_prologue_epilogue_for_components): Ditto.
7587
7588 2016-10-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7589
7590 PR middle-end/22141
7591 * Makefile.in (OBJS): Add gimple-ssa-store-merging.o.
7592 * common.opt (fstore-merging): New Optimization option.
7593 * opts.c (default_options_table): Add entry for
7594 OPT_ftree_store_merging.
7595 * fold-const.h (can_native_encode_type_p): Declare prototype.
7596 * fold-const.c (can_native_encode_type_p): Define.
7597 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Define.
7598 (PARAM_MAX_STORES_TO_MERGE): Likewise.
7599 * timevar.def (TV_GIMPLE_STORE_MERGING): New timevar.
7600 * passes.def: Insert pass_tree_store_merging.
7601 * tree-pass.h (make_pass_store_merging): Declare extern
7602 prototype.
7603 * gimple-ssa-store-merging.c: New file.
7604 * doc/invoke.texi (Optimization Options): Document
7605 -fstore-merging.
7606 (--param documentation): Document store-merging-allow-unaligned
7607 and max-stores-to-merge.
7608
7609 2016-10-28 Will Schmidt <will_schmidt@vnet.ibm.com>
7610
7611 PR middle-end/72747
7612 * gimplify.c (gimplify_init_constructor): Move emit of constructor
7613 assignment to earlier in the if/else logic.
7614
7615 2016-10-28 Richard Biener <rguenther@suse.de>
7616
7617 PR middle-end/78128
7618 PR middle-end/71002
7619 * fold-const.c (make_bit_field_ref): Only adjust alias set
7620 when the original alias set was zero.
7621
7622 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7623
7624 * config/s390/s390.c (s390_adjust_loop_scan_osc): New function.
7625 (s390_adjust_loops): New function.
7626 (s390_reorg): Invoke s390_adjust_loops.
7627 * config/s390/s390.md (UNSPEC_OSC_BREAK): New constant.
7628 ("osc_break"): New insn definition.
7629
7630 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7631
7632 * config/s390/s390.opt: Support alternate cpu level naming (archXX).
7633 * config.gcc: Support alternate archXX cpu levels with
7634 --with-arch= and --with-tune=.
7635 * config/s390/linux.h: Translate new archXX cpu levels to the
7636 original names when calling GAS.
7637 * config/s390/tpf.h: Likewise.
7638 * doc/invoke.texi: Document the alternate cpu level names.
7639
7640 2016-10-28 Jakub Jelinek <jakub@redhat.com>
7641
7642 PR rtl-optimization/77919
7643 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force CONCAT into
7644 MEM if mode1 is not a complex mode.
7645
7646 PR rtl-optimization/78132
7647 * ree.c (combine_reaching_defs): Give up if copy_needed and
7648 !HARD_REGNO_MODE_OK (REGNO (src_reg), dst_mode).
7649
7650 2016-10-27 Eric Botcazou <ebotcazou@adacore.com>
7651
7652 * config/sparc/sparc.md (<*vlop:code><VL:mode>3): Remove leading '*'.
7653
7654 2016-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
7655
7656 * config/rs6000/constraints.md (wH constraint): Add new
7657 constraints for allowing 32-bit integers (and eventually 8/16-bit
7658 integers) into the vector registers.
7659 (wI constraint): Likewise.
7660 (wJ constraint): Likewise.
7661 (wK constraint): Likewise.
7662 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
7663 -mvsx-small-integer as a default option for ISA 2.07
7664 (i.e. power8).
7665 (POWERPC_MASKS): Likewise.
7666 * config/rs6000/rs6000.opt (-mvsx-small-integer): Add new debug
7667 switch to turn off small integer support in vector registers.
7668 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Eliminate
7669 test for -mupper-regs-di, since it is already done with the
7670 reg_add[mode].scalar_in_vsx_p. Add support for the switch
7671 -mvsx-small-integer.
7672 (rs6000_debug_reg_global): Add support for wH, wI, wJ, and wK
7673 constraints.
7674 (rs6000_setup_reg_addr_masks): Likewise.
7675 (rs6000_init_hard_regno_mode_ok): Likewise.
7676 (rs6000_option_override_internal): Add consistency checks for
7677 -mvsx-small-integer.
7678 (rs6000_secondary_reload_simple_move): SImode is a simple move if
7679 -mvsx-small-integer.
7680 (rs6000_secondary_reload): Use std::swap.
7681 (rs6000_preferred_reload_class): Don't prefer FLOAT_REGS over
7682 VSX_REGS for small integers in vector registers, since there is no
7683 D-FORM address mode for such types.
7684 (rs6000_register_move_cost): Use FIRST_FPR_REGNO instead of 32.
7685 (rs6000_opt_masks): Add -mvsx-small-integer.
7686 * config/rs6000/vsx.md (VSINT_84): Add SImode for small integer
7687 support.
7688 (VSX_EXTRACT_I2): Clone VSX_EXTRACT_I, but drop V4SI since SImode
7689 extracts can be done on ISA 2.07.
7690 (vsx_extract_<mode>): Add support for small integers in vsx
7691 registers.
7692 (vsx_extract_<mode>_p9): Use 'v' instead of VSX_EX, since we no
7693 longer support V4SImode in this pattern.
7694 (vsx_extract_si): New insn to support extraction of SImode in ISA
7695 2.07 using either xxextractuw or vspltw.
7696 (vsx_extract_<mode>_p8): Use 'v' instead of VSX_EX, since we no
7697 longer support V4SImode in this pattern.
7698 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wH, wI,
7699 wJ, and wK constraints.
7700 * config/rs6000/rs6000.md (f32_sv): Use correct instruction for
7701 storing SDmode with VSX instructions.
7702 (zero_extendsi<mode>2): Reorder pattern, so RLDICL comes after the
7703 GPR load and before the FPR and VSX loads. Remove ??, ! from the
7704 constraints. Add MFVSRWZ and XXEXTRACTUW instructions to support
7705 small integers in vector registers.
7706 (extendsi<mode>2): Reorder pattern, so EXTSW comes after the GPR
7707 load and before the FPR and VSX loads. Remove ??, ! from the
7708 constraints. Add VEXTSW2D support for small integers in vector
7709 registers.
7710 (lfiwax): Remove ! constraint. Add VEXTSW2D support for small
7711 integers in vector registers.
7712 (floatsi<mode>2_lfiwax): If -mvsx-small-integer issue a normal
7713 move instead of using an UNSPEC.
7714 (lfiwzx): Remove ! constraint. Add XXEXTRACTUW support for small
7715 integers in vector registers.
7716 (floatunssi<mode>2_lfiwzx): If -mvsx-small-integer issue a normal
7717 move instead of using an UNSPEC.
7718 (movsi_internal1): Add support for -mvsx-small-integer. Align
7719 columns so that it is more readable.
7720 (SImode splitter for ISA 3.0 constants): Add splitter for
7721 -128..127 constants that can easily be constructed on ISA 3.0.
7722 * doc/md.texi (PowerPC Constraints): Document wH, wI, wJ, and wK
7723 constraints.
7724
7725 2016-10-27 Jakub Jelinek <jakub@redhat.com>
7726
7727 PR middle-end/78025
7728 * omp-simd-clone.c (simd_clone_adjust): Handle noreturn declare simd
7729 functions.
7730
7731 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
7732
7733 * builtins.c (expand_builtin_nonlocal_goto): Avoid evaluating
7734 PIC_OFFSET_TABLE_REGNUM twice.
7735
7736 2016-10-27 Bin Cheng <bin.cheng@arm.com>
7737
7738 * match.pd ((convert (op:s (convert@2 @0) (convert?@3 @1)))): Add
7739 support for constant operand for OP.
7740
7741 2016-10-27 Jakub Jelinek <jakub@redhat.com>
7742
7743 * dwarf2out.c (gen_member_die): Only reparent_child instead of
7744 splice_child_die if child doesn't have DW_AT_specification attribute.
7745
7746 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
7747
7748 * config/arm/arm.h (TARGET_HAVE_LDREX): Define for ARMv8-M Baseline.
7749 (TARGET_HAVE_LDREXBH): Likewise.
7750 (TARGET_HAVE_LDACQ): Likewise.
7751
7752 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
7753
7754 * config/arm/arm.c (arm_split_atomic_op): Add function comment. Add
7755 logic to to decide whether to copy over old value to register for new
7756 value.
7757 * config/arm/sync.md: Add comments explaning why mode and code
7758 attribute are not defined in iterators.md
7759 (thumb1_atomic_op_str): New code attribute.
7760 (thumb1_atomic_newop_str): Likewise.
7761 (thumb1_atomic_fetch_op_str): Likewise.
7762 (thumb1_atomic_fetch_newop_str): Likewise.
7763 (thumb1_atomic_fetch_oldop_str): Likewise.
7764 (atomic_exchange<mode>): Add new ARMv8-M Baseline only alternatives to
7765 mirror the more restrictive constraints of the Thumb-1 insns after
7766 split compared to Thumb-2 counterpart insns.
7767 (atomic_<sync_optab><mode>): Likewise. Add comment to keep constraints
7768 in sync with non atomic version.
7769 (atomic_nand<mode>): Likewise.
7770 (atomic_fetch_<sync_optab><mode>): Likewise.
7771 (atomic_fetch_nand<mode>): Likewise.
7772 (atomic_<sync_optab>_fetch<mode>): Likewise.
7773 (atomic_nand_fetch<mode>): Likewise.
7774 * config/arm/thumb1.md (thumb1_addsi3): Add comment to keep contraint
7775 in sync with atomic version.
7776 (thumb1_subsi3_insn): Likewise.
7777 (thumb1_andsi3_insn): Likewise.
7778 (thumb1_iorsi3_insn): Likewise.
7779 (thumb1_xorsi3_insn): Likewise.
7780
7781 2016-10-27 Nick Clifton <nickc@redhat.com>
7782
7783 * plugin.c (register_plugin_info): Produce an error message if the
7784 plugin is not found in the hash table.
7785
7786 2016-10-27 Bin Cheng <bin.cheng@arm.com>
7787
7788 * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
7789 New pattern.
7790
7791 2016-10-26 Kelvin Nilsen <kelvin@gcc.gnu.org>
7792
7793 PR target/78056
7794 * config/rs6000/rs6000.c (spe_init_builtins): Modify loops to not
7795 define builtin functions from the bdesc_spe_predicates or
7796 bdesc_spe_evsel arrays if the builtin mask is not compatible with
7797 the current compiler configuration.
7798 (paired_init_builtins): Modify loop to not define define builtin
7799 functions from the bdesc_paried_preds array if the builtin mask is
7800 not compatible with the current compiler configuration.
7801 (altivec_init_builtins): Modify loops to not define the
7802 __builtin_altivec_stxvl function nor the builtin functions from
7803 the bdesc_dst or bdesc_altivec_preds, or bdesc_abs arrays if the
7804 builtin mask is not compatible with the current compiler
7805 configuration.
7806
7807 2016-10-26 Jeff Law <law@redhat.com>
7808
7809 * config/sh/sh.c (output_branch): Add missing fallthru comments.
7810 (gen_shl_and): Likewise.
7811 * config/sh/sh.md (movsicc): Add missing fallthru comments.
7812
7813 * config/mips/mips.c (mips16_constant_cost): Add missing
7814 fallthru comments.
7815 (mips16_build_call_stub): Increase buffer size. Adjust
7816 fallthru comment.
7817
7818 2016-10-26 David Malcolm <dmalcolm@redhat.com>
7819
7820 * print-rtl.c (rtx_writer::print_rtx_operand_code_u): Print
7821 INSN_UIDs for all insns in compact mode.
7822 (rtx_writer::print_rtx): Likewise.
7823 * print-rtl.h (rtx_writer::flag_compact): Update comment.
7824 * rtl-tests.c (selftest::test_dumping_insns): Update expected
7825 output to include INSN_UID.
7826 (selftest::test_uncond_jump): Likewise.
7827
7828 2016-10-26 Pat Haugen <pthaugen@us.ibm.com>
7829
7830 * haifa-sched.c (call_used_regs_num): Rename to...
7831 (call_saved_regs_num): ...this.
7832 (fixed_regs_num): New variable.
7833 (sched_pressure_start_bb): Subtract out fixed_regs. Scale call_saved
7834 regs not call_used.
7835 (alloc_global_sched_pressure_data): Compute call_saved and fixed regs.
7836
7837 2016-10-26 David Malcolm <dmalcolm@redhat.com>
7838
7839 * print-rtl-function.c (print_rtx_function): Rewrite in terms of
7840 class rtx_writer.
7841 * print-rtl.c (outfile): Delete global.
7842 (sawclose): Likewise.
7843 (indent): Likewise.
7844 (in_call_function_usage): Likewise.
7845 (flag_compact): Likewise.
7846 (flag_simple): Likewise.
7847 (rtx_writer::rtx_writer): New ctor.
7848 (print_rtx_operand_code_0): Convert to...
7849 (rtx_writer::print_rtx_operand_code_0): ...this.
7850 (print_rtx_operand_code_e): Convert to...
7851 (rtx_writer::print_rtx_operand_code_e): ...this.
7852 (print_rtx_operand_codes_E_and_V): Convert to...
7853 (rtx_writer::print_rtx_operand_codes_E_and_V): ...this.
7854 (print_rtx_operand_code_i): Convert to...
7855 (rtx_writer::print_rtx_operand_code_i): ...this.
7856 (print_rtx_operand_code_r): Convert to...
7857 (rtx_writer::print_rtx_operand_code_r): ...this.
7858 (print_rtx_operand_code_u): Convert to...
7859 (rtx_writer::print_rtx_operand_code_u): ...this.
7860 (print_rtx_operand): Convert to...
7861 (rtx_writer::print_rtx_operand): ...this.
7862 (print_rtx): Convert to...
7863 (rtx_writer::print_rtx): ...this.
7864 (print_inline_rtx): Rewrite in terms of class rtx_writer.
7865 (debug_rtx): Likewise.
7866 (print_rtl): Convert to...
7867 (rtx_writer::print_rtl): ...this.
7868 (print_rtl): Reimplement in terms of class rtx_writer.
7869 (print_rtl_single): Rewrite in terms of class rtx_writer.
7870 (print_rtl_single_with_indent): Convert to..
7871 (rtx_writer::print_rtl_single_with_indent): ...this.
7872 (print_simple_rtl): Rewrite in terms of class rtx_writer.
7873 * print-rtl.h (flag_compact): Delete decl.
7874 (class rtx_writer): New class.
7875 * rtl-tests.c (selftest::assert_rtl_dump_eq): Rewrite in terms of
7876 class rtx_writer.
7877
7878 2016-10-26 Jeff Law <law@redhat.com>
7879
7880 * config/microblaze/microblaze.c (tls_mentioned_p): Avoid
7881 fallthru.
7882
7883 * config/arc/arc.c (acr_print_operand): Adjust fallthru comment.
7884 (check_if_valid_sleep_operand): Add missing fallthru comment.
7885 (arc_register_move_cost): Increase buffer size.
7886 * config/arc/arc.md (cbranch4si_scratch): Add missing fallthru
7887 comment.
7888 * config/arc/predicates.md (move_str_operand): Avoid fallthru.
7889
7890 * config/cr16/cr16.c (cr16_print_operand): Add missing fallthru
7891 comment. Add gcc_unreachable for path that should never happen.
7892
7893 * config/epiphany/epiphany.c (epiphany_print_operand): Adjust
7894 fallthru comment.
7895
7896 2016-10-26 Jakub Jelinek <jakub@redhat.com>
7897 Martin Liska <mliska@suse.cz>
7898
7899 PR fortran/77973
7900 * gimplify.c (gimplify_adjust_omp_clauses_1): For all added map
7901 clauses with OMP_CLAUSE_SIZE being a decl, call omp_notice_variable
7902 on outer context if any.
7903
7904 2016-10-26 Jakub Jelinek <jakub@redhat.com>
7905
7906 * gen-pass-instances.awk (adjust_linenos): Increment pass_lines[p]
7907 by increment rather than double it.
7908 (insert_remove_pass): Strip leading whitespace from args[3]. Don't
7909 emit a space before args[4].
7910 (END): Don't emit a space before with_arg.
7911
7912 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
7913
7914 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Add new ARMv8-M
7915 Baseline only alternatives to (i) hold store atomic success value in a
7916 return register rather than a scratch register, (ii) use a low register
7917 for it and to (iii) ensure the cbranchsi insn generated by the split
7918 respect the constraints of Thumb-1 cbranchsi4_insn and
7919 cbranchsi4_scratch.
7920 * config/arm/thumb1.md (cbranchsi4_insn): Add comment to indicate
7921 constraints must match those in atomic_compare_and_swap.
7922 (cbranchsi4_scratch): Likewise.
7923
7924 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
7925
7926 * config/arm/arm.c (arm_expand_compare_and_swap): Add new bdst local
7927 variable. Add the new parameter to the insn generator. Set that
7928 parameter to be CC flag for 32-bit targets, bval otherwise. Set the
7929 return value from the negation of that parameter for Thumb-1, keeping
7930 the logic unchanged otherwise except for using bdst as the destination
7931 register of the compare_and_swap insn.
7932 (arm_split_compare_and_swap): Add explanation about how is the value
7933 returned to the function comment. Rename scratch variable to
7934 neg_bval. Adapt initialization of variables holding operands to the
7935 new operand numbers. Use return register to hold result of store
7936 exclusive for Thumb-1, scratch register otherwise. Construct the
7937 appropriate cbranch for Thumb-1 targets, keeping the logic unchanged
7938 for 32-bit targets. Guard Z flag setting to restrict to 32bit targets.
7939 Use gen_cbranchsi4 rather than hand-written conditional branch to loop
7940 for strongly ordered compare_and_swap.
7941 * config/arm/predicates.md (cc_register_operand): New predicate.
7942 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Use a
7943 match_operand with the new predicate to accept either the CC flag or a
7944 destination register for the boolean return value, restricting it to
7945 CC flag only via constraint. Adapt operand numbers accordingly.
7946
7947 2016-10-26 Jeff Law <law@redhat.com>
7948
7949 * config/fr30/fr30.c (fr30_print_operand): Adjust fallthru comment.
7950
7951 * config/frv/frv.c (comparison_string): Do not fall through after
7952 an error.
7953
7954 * config/iq2000/iq2000.c (iq2000_function_arg): Adjust fallthru
7955 comment.
7956 (expand_one_builtin): Add missing break.
7957
7958 * config/m32c/m32c.c (encode_pattern_1): Add fallthru comment.
7959 (m32c_legitimate_address_p): Likewise.
7960
7961 * config/m32r/m32r.c (m32r_print_operand): Adjust fallthru comment.
7962
7963 * config/mcore/mcore.c (mcore_gen_compare): Adjust fallthru comments.
7964
7965 * config/microblaze/microblaze.c (microblaze_function_arg): Adjust
7966 fallthru comment.
7967
7968 * config/msp430/msp430.c (msp430_legitimate_address_p): Adjust
7969 fallthru comment.
7970
7971 * config/nios2/nios2.c (nios2_rtx_costs): Avoid fallthru.
7972
7973 * config/rl78/rl78.c (rl78_calculate_death_notes): Add fallthru
7974 comment.
7975 (rl78_asm_ctor_dtor): Increase buffer size.
7976
7977 * config/stormy16/stormy16.c (xstormy16_asm_output_destrutor): Increase
7978 buffer size.
7979 (xstormy16_asm_output_constructor): Likewise.
7980
7981 * config/pa/pa.c (pa_asm_output_mi_thunk): Increase buffer
7982 size.
7983
7984 * config/h8300/h8300.c (h8300_print_operand): Adjust FALLTHRU
7985 comment to silence warning.
7986
7987 * config/spu/spu.c (spu_sched_reorder): Add missing fallthru comment.
7988 (spu_legitimate_address_p): Fix logic error and add missing fallthru
7989 comment.
7990
7991 2016-10-26 Michael Matz <matz@suse.de>
7992
7993 PR tree-optimization/78060
7994 PR tree-optimization/78061
7995 PR tree-optimization/78088
7996 * tree-ssa-loop-split.c (easy_exit_values): New function.
7997 (tree_ssa_split_loops): Use it.
7998 (compute_new_first_bound): Change order of operations,
7999 fix invalid use of types.
8000
8001 2016-10-26 Georg-Johann Lay <avr@gjlay.de>
8002
8003 gen-pass-instances.awk is sensitive to the order in which
8004 passes are added; passes that appear later have to be added first.
8005
8006 PR target/71676
8007 PR target/71678
8008 * config/avr/avr-passes.def: Swap order of directives for
8009 gen-pass-instances.awk.
8010
8011 2016-10-25 Jeff Law <law@redhat.com>
8012
8013 * config/vax/vax.c (vad_address_cost_1): Add missing FALLTHRU comment.
8014 (vax_notice_update_cc): Likewise.
8015
8016 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
8017
8018 * config.gcc (sparc*-*-solaris2*): Adjust.
8019 (sparc64-*-linux*): Likewise.
8020 * config/sparc/default-64.h: Rename to...
8021 * config/sparc/default64.h: ...this.
8022 * config/sparc/sparc.c (sparc_option_override): Replace TARGET_64BIT
8023 with TARGET_ARCH64.
8024 (sparc_mangle_type): Replace !TARGET_64BIT with TARGET_ARCH32.
8025 * config/sparc/sparc.h: Minor tweaks.
8026 * config/sparc/sparc.md: Replace !TARGET_64BIT and !TARGET_ARCH64 with
8027 TARGET_ARCH32 throughout. Minor various tweaks throughout.
8028
8029 2016-10-25 David Malcolm <dmalcolm@redhat.com>
8030
8031 * input.c (fcache::file_patch): Add comment about lifetime.
8032 (selftest::cpp_reader_ptr): New class.
8033 (selftest::lexer_test): Convert m_parser from cpp_reader *
8034 to a cpp_reader_ptr, and move m_tempfile to after it.
8035 (selftest::lexer_test::lexer_test): Update for above reordering.
8036 (lexer_test::~lexer_test): Move cleanup of m_parser to
8037 cpp_reader_ptr's dtor.
8038
8039 2016-10-25 David Malcolm <dmalcolm@redhat.com>
8040
8041 * toplev.c (toplev::main): Remove call to
8042 location_adhoc_data_fini.
8043
8044 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
8045
8046 * tree.h (wi::fits_to_tree_p): Accept only 0 and 1 for boolean types.
8047 * tree.c (int_fits_type_p): Likewise. Adjust head comment.
8048
8049 2016-10-25 David Malcolm <dmalcolm@redhat.com>
8050
8051 * ggc-tests.c (forcibly_ggc_collect): Rename to...
8052 (selftest::forcibly_ggc_collect): ...this, and remove "static".
8053 (test_basic_struct): Update for above renaming.
8054 (test_length): Likewise.
8055 (test_union): Likewise.
8056 (test_finalization): Likewise.
8057 (test_deletable_global): Likewise.
8058 (test_inheritance): Likewise.
8059 (test_chain_next): Likewise.
8060 (test_user_struct): Likewise.
8061 (test_tree_marking): Likewise.
8062 * selftest-run-tests.c (selftest::run_tests): Call
8063 selftest::forcibly_ggc_collect at the end of the selftests.
8064 * selftest.h (selftest::forcibly_ggc_collect): New decl.
8065
8066 2016-10-25 Jakub Jelinek <jakub@redhat.com>
8067
8068 PR target/78102
8069 * optabs.def (vcondeq_optab, vec_cmpeq_optab): New optabs.
8070 * optabs.c (expand_vec_cond_expr): For comparison codes
8071 EQ_EXPR and NE_EXPR, attempt vcondeq_optab as fallback.
8072 (expand_vec_cmp_expr): For comparison codes
8073 EQ_EXPR and NE_EXPR, attempt vec_cmpeq_optab as fallback.
8074 * optabs-tree.h (expand_vec_cmp_expr_p, expand_vec_cond_expr_p):
8075 Add enum tree_code argument.
8076 * optabs-query.h (get_vec_cmp_eq_icode, get_vcond_eq_icode): New
8077 inline functions.
8078 * optabs-tree.c (expand_vec_cmp_expr_p): Add CODE argument. For
8079 CODE EQ_EXPR or NE_EXPR, attempt to use vec_cmpeq_optab as
8080 fallback.
8081 (expand_vec_cond_expr_p): Add CODE argument. For CODE EQ_EXPR or
8082 NE_EXPR, attempt to use vcondeq_optab as fallback.
8083 * tree-vect-generic.c (expand_vector_comparison,
8084 expand_vector_divmod, expand_vector_condition): Adjust
8085 expand_vec_cmp_expr_p and expand_vec_cond_expr_p callers.
8086 * tree-vect-stmts.c (vectorizable_condition,
8087 vectorizable_comparison): Likewise.
8088 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern,
8089 check_bool_pattern, search_type_for_mask_1): Likewise.
8090 * expr.c (do_store_flag): Likewise.
8091 * doc/md.texi (@code{vec_cmpeq@var{m}@var{n}},
8092 @code{vcondeq@var{m}@var{n}}): Document.
8093 * config/i386/sse.md (vec_cmpeqv2div2di, vcondeq<VI8F_128:mode>v2di):
8094 New expanders.
8095
8096 2016-10-25 Jeff Law <law@redhat.com>
8097
8098 * config/v850/v850.c (v850_handle_data_area_attribute): Fix fallthru
8099 comment.
8100 (v850_output_aligned_bss): Add missing break.
8101
8102 * config/m68k/m68k.c (m68k_get_reloc_decoration): Add gcc_unreachable.
8103
8104 2016-10-25 Martin Liska <mliska@suse.cz>
8105
8106 PR sanitizer/78106
8107 * sanopt.c (imm_dom_path_with_freeing_call): Handle gasm
8108 statements as they can also contain possibly a freeing call.
8109
8110 2016-10-25 H.J. Lu <hongjiu.lu@intel.com>
8111 Martin Liska <mliska@suse.cz>
8112
8113 PR ipa/78099
8114 * common.opt: Mark flag_ipa_icf_variables as Optimization flag.
8115 * ipa-icf.c (sem_function::get_hash): Add target optimization
8116 node to hash.
8117
8118 2016-10-25 Wilco Dijkstra <wdijkstr@arm.com>
8119
8120 PR target/78041
8121 * config/arm/neon.md (ashldi3_neon): Add "r 0 i" and "&r r i" variants.
8122 Remove partial overlap check for shift by 1.
8123 (ashldi3_neon): Likewise.
8124
8125 2016-10-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
8126
8127 * config/arm/constraints.md (Q constraint): Document its use for
8128 Thumb-1.
8129 (Pf constraint): New constraint for relaxed, consume or relaxed memory
8130 models.
8131 * config/arm/sync.md (atomic_load<mode>): Add new ARMv8-M Baseline only
8132 alternatives to allow any register when memory model matches Pf and
8133 thus lda is used, but only low registers otherwise. Use unpredicated
8134 output template for Thumb-1 targets.
8135 (atomic_store<mode>): Likewise for stl.
8136 (arm_load_exclusive<mode>): Add new ARMv8-M Baseline only alternative
8137 whose output template does not have predication.
8138 (arm_load_acquire_exclusive<mode>): Likewise.
8139 (arm_load_exclusivesi): Likewise.
8140 (arm_load_acquire_exclusivesi): Likewise.
8141 (arm_store_release_exclusive<mode>): Likewise.
8142 (arm_store_exclusive<mode>): Use unpredicated output template for
8143 Thumb-1 targets.
8144
8145 2016-10-25 Jakub Jelinek <jakub@redhat.com>
8146
8147 * internal-fn.def (LAUNDER): New internal function.
8148 * internal-fn.c (expand_LAUNDER): New function.
8149
8150 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
8151 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
8152
8153 New avr target pass to work around performance loss by PR fix.
8154
8155 PR target/71676
8156 PR target/71678
8157 * config/avr/avr.md (casesi_<mode>_sequence) [qi,hi]: New insn.
8158 (*cmp<mode>) [qi,qq,uqq,hi,hq,uhq,ha,uha]: Rename to cmp<mode>3.
8159 * config/avr/predicates.md (extend_operator): New.
8160 * config/avr/avr-passes.def (avr_pass_casesi): Register new pass.
8161 * config/avr/avr-protos.h (avr_casei_sequence_check_operands)
8162 (make_avr_pass_casesi): New prototypes.
8163 * config/avr/avr.c (print-rtl.h): Include it.
8164 (pass_data avr_pass_data_casesi): Data for new pass.
8165 (avr_pass_casesi): New class implementing rtl_opt_pass .avr-casesi.
8166 (make_avr_pass_casesi, avr_parallel_insn_from_insns)
8167 (avr_is_casesi_sequence, avr_casei_sequence_check_operands)
8168 (avr_optimize_casesi): New functions.
8169
8170 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
8171 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
8172
8173 PR target/71676
8174 PR target/71678
8175 * config/avr/avr.md (casesi): Rewrite avoiding subregs of SI.
8176
8177 2016-10-24 Jakub Jelinek <jakub@redhat.com>
8178
8179 * dwarf2out.c (gen_subprogram_die): Add DW_AT_reference or
8180 DW_AT_rvalue_reference attributes.
8181
8182 2016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
8183
8184 * doc/invoke.text (Wint-in-bool-context): Update documentation.
8185 * value-prof.c (stringop_block_profile): Fix a warning.
8186
8187 2016-10-24 Martin Sebor <msebor@redhat.com>
8188
8189 PR middle-end/77735
8190 * builtins.c (string_length): New function.
8191 (c_strlen): Use string_length. Correctly handle wide strings.
8192 * gimple-ssa-sprintf.c (target_max_value, target_size_max): New
8193 functions.
8194 (target_int_max): Call target_max_value.
8195 (format_result::knownrange): New data member.
8196 (fmtresult::fmtresult): Define default constructor.
8197 (format_integer): Use it and set format_result::knownrange.
8198 Handle global constants.
8199 (format_floating_max): Add third argument.
8200 (format_floating): Recompute maximum value for %a for each argument.
8201 (get_string_length): Use fmtresult default ctor.
8202 (format_string): Set format_result::knownrange.
8203 (format_directive): Check format_result::knownrange.
8204 (add_bytes): Same. Correct caret placement in diagnostics.
8205 (pass_sprintf_length::compute_format_length): Set
8206 format_result::knownrange.
8207 (pass_sprintf_length::handle_gimple_call): Use target_size_max.
8208
8209 2016-10-24 Jakub Jelinek <jakub@redhat.com>
8210
8211 * config/i386/i386.c (ix86_in_large_data_p, ix86_expand_builtin): Use
8212 VAR_P (x) instead of TREE_CODE (x) == VAR_DECL.
8213
8214 2016-10-24 Ximin Luo <infinity0@pwned.gg>
8215
8216 PR debug/77985
8217 * dwarf2out.c (file_table_relative_p): Remove.
8218 (gen_compile_unit_die, dwarf2out_early_finish): Emit DW_AT_comp_dir
8219 also for absolute paths.
8220 * doc/tm.texi: Update.
8221 * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Remove.
8222 * target.def (force_at_comp_dir): Remove hook.
8223 * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Remove define.
8224
8225 2016-10-24 Richard Biener <rguenther@suse.de>
8226
8227 * tree-vrp.c (evrp_dom_walker::before_dom_children): Ignore
8228 backedges when identifying the single predecessor to take
8229 conditional info from. Use SCEV to get at ranges for loop IVs.
8230 * lto-streamer-out.c (lto_write_mode_table): CSE inner mode to
8231 avoid false warning.
8232
8233 2016-10-24 Georg-Johann Lay <avr@gjlay.de>
8234
8235 PR target/78093
8236 * doc/extend.texi (AVR Variable Attributes) [absdata]: Document it.
8237 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_ABSDATA): New macro.
8238 (avr_address_tiny_absdata_p): New static function.
8239 (avr_legitimate_address_p, avr_legitimize_address) [AVR_TINY]: Use
8240 it to determine validity of constant addresses.
8241 (avr_attribute_table) [absdata]: New variable attribute...
8242 (avr_handle_absdata_attribute): ...and handler.
8243 (avr_decl_absdata_p): New static function.
8244 (avr_encode_section_info) [AVR_TINY]: Use it to add flag
8245 AVR_SYMBOL_FLAG_TINY_ABSDATA to respective symbols_refs.
8246 (avr_address_cost) [AVR_TINY]: absdata addresses cost 2.
8247
8248 2016-10-24 Richard Biener <rguenther@suse.de>
8249
8250 PR tree-optimization/78076
8251 * tree-ssa-loop-split.c (tree_ssa_split_loops): Reset aux
8252 also on the loop tree root.
8253
8254 2016-10-24 Jakub Jelinek <jakub@redhat.com>
8255
8256 * config/i386/i386.c (ix86_fold_builtin): Handle
8257 IX86_BUILTIN_BEXTR{,I}{32,64}, IX86_BUILTIN_BZHI{32,64},
8258 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
8259 (ix86_gimple_fold_builtin): Handle IX86_BUILTIN_BZHI{32,64},
8260 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
8261
8262 2016-10-24 Martin Liska <mliska@suse.cz>
8263
8264 PR sanitizer/77966
8265 * opts.c (finish_options): Skip conditionally.
8266
8267 2016-10-23 Martin Sebor <msebor@redhat.com>
8268
8269 PR target/77837
8270 * config/rs6000/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define.
8271 * config/rs6000/linux64.h (TARGET_PRINTF_POINTER_FORMAT): Likewise.
8272
8273 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
8274
8275 * config/sparc/sparc.md (cpu_feature): Minor tweak.
8276 (enabled): Likewise.
8277 (movsi_insn, movdi_insn_sp32, movdi_insn_sp64, movsf_insn,
8278 movdf_insn_sp32, movdf_insn_sp64, zero_extendsidi2_insn_sp64,
8279 sign_extendsidi2_insn, mov<VM32:mode>_insn, mov<VM64:mode>_insn_sp64,
8280 mov<VM64:mode>_insn_sp32, not_<code><mode>, nand<mode>_vis,
8281 <code>_not1<mode>_vi, <code>_not2<mode>_vis, one_cmpl<mode>2,
8282 fcmp<code><GCM:gcm_name>, pdistn<mode>_vis): Likewise.
8283
8284 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
8285
8286 * config/sparc/sparc-c.c (sparc_target_macros): Replace TARGET_64BIT
8287 with TARGET_ARCH64. Define __VIS to 0x400 if TARGET_VIS4.
8288
8289 2016-10-21 Andrew Pinski <apinski@cavium.com>
8290
8291 * config/aarch64/aarch64-cores.def: Rewrite so IMP and PART are
8292 integer constants.
8293 * config/aarch64/driver-aarch64.c (struct aarch64_core_data): Change
8294 implementer_id to unsigned char.
8295 Change part_no to unsigned int.
8296 (AARCH64_BIG_LITTLE): New define.
8297 (INVALID_IMP): New define.
8298 (INVALID_CORE): New define.
8299 (cpu_data): Change the last element's implementer_id and part_no to
8300 integers.
8301 (valid_bL_string_p): Rewrite to ..
8302 (valid_bL_core_p): this for integers instead of strings.
8303 (parse_field): New function.
8304 (contains_string_p): Rewrite to ...
8305 (contains_core_p): this for integers and only for the part_no.
8306 (host_detect_local_cpu): Rewrite handling of implementation and
8307 par num to be integers; simplifying the code.
8308
8309 2016-10-21 Kugan Vivekanandarajah <kuganv@linaro.org>
8310
8311 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Create nonzero
8312 value range for pointers in more cases.
8313
8314 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
8315
8316 * config/aarch64/aarch64.c (aarch64_add_constant_internal):
8317 Add extra argument to allow emitting the move immediate.
8318 Use add/sub with positive immediate.
8319 (aarch64_add_constant): Add inline function.
8320 (aarch64_add_sp): Likewise.
8321 (aarch64_sub_sp): Likewise.
8322 (aarch64_expand_prologue): Call aarch64_sub_sp.
8323 (aarch64_expand_epilogue): Call aarch64_add_sp.
8324 Decide when to leave out move.
8325 (aarch64_output_mi_thunk): Call aarch64_add_constant.
8326
8327 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
8328
8329 * config/aarch64/aarch64.c (aarch64_layout_frame):
8330 Align FP callee-saves.
8331
8332 2016-10-21 Jakub Jelinek <jakub@redhat.com>
8333
8334 * config/i386/adxintrin.h (_subborrow_u32, _addcarry_u32,
8335 _addcarryx_u32, _subborrow_u64, _addcarry_u64, _addcarryx_u64):
8336 Formatting fixes.
8337 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
8338 _rdseed64_step): Likewise.
8339 * config/i386/tbmintrin.h (__bextri_u32): Likewise.
8340
8341 PR target/78057
8342 * config/i386/i386.c: Include fold-const-call.h, tree-vrp.h
8343 and tree-ssanames.h.
8344 (ix86_fold_builtin): Fold IX86_BUILTIN_[LT]ZCNT{16,32,64}
8345 with INTEGER_CST argument.
8346 (ix86_gimple_fold_builtin): New function.
8347 (TARGET_GIMPLE_FOLD_BUILTIN): Define.
8348
8349 * dwarf2out.c (ranges_table): Change into vec<dw_ranges, va_gc> *.
8350 (ranges_by_label): Change into vec<dw_ranges_by_label, va_gc> *.
8351 (ranges_table_allocated, ranges_table_in_use,
8352 ranges_by_label_allocated, ranges_by_label_in_use,
8353 RANGES_TABLE_INCREMENT): Removed.
8354 (add_ranges_num): Use vec_safe_push into ranges_table.
8355 (add_ranges_by_labels): Use vec_safe_push into ranges_by_label.
8356 (output_ranges): Adjust for ranges_table and ranges_by_label
8357 conversion from arrays to vec.
8358 (add_high_low_attributes, dwarf2out_finish): Adjust for range_table
8359 conversion from arrays to vec.
8360 (dwarf2out_c_finalize): Don't clear ranges_table_allocated,
8361 ranges_table_in_use, ranges_by_label_allocated and
8362 ranges_by_label_in_use. Set ranges_by_label to NULL instead of 0.
8363
8364 * dwarf2out.c (gen_variable_die): Emit DW_AT_const_expr attribute
8365 if needed. Re-add origin_die variable and its initialization.
8366
8367 * gimplify.c (gimplify_bind_expr): Handle oacc_declare_returns
8368 even for -fstack-reuse=none, or for volatile vars etc.
8369
8370 2016-10-21 David Malcolm <dmalcolm@redhat.com>
8371
8372 * print-rtl-function.c (flag_compact): Move extern decl to...
8373 * print-rtl.h (flag_compact): ...here.
8374 * rtl-tests.c (selftests::assert_rtl_dump_eq): New function.
8375 (ASSERT_RTL_DUMP_EQ): New macro.
8376 (selftest::test_dumping_regs): New function.
8377 (selftest::test_dumping_insns): New function.
8378 (selftest::test_uncond_jump): Add uses of ASSERT_RTL_DUMP_EQ on
8379 the insns.
8380 (selftest::rtl_tests_c_tests): Call the new test functions.
8381
8382 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8383
8384 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
8385 (outgoing_edges_match): Likewise.
8386 (try_crossjump_to_edge): Likewise.
8387 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
8388 (rtl_tidy_fallthru_edge): Likewise.
8389 * rtl.h (tablejump_p): Adjust prototype.
8390 * rtlanal.c (tablejump_p): Return the label as a rtx_insn *.
8391
8392 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8393
8394 * rtl.h (label_ref_label): New function.
8395 (set_label_ref_label): New function.
8396 (LABEL_REF_LABEL): Delete.
8397 * alias.c (rtx_equal_for_memref_p): Adjust.
8398 * cfgbuild.c (make_edges): Likewise.
8399 (purge_dead_tablejump_edges): Likewise.
8400 * cfgexpand.c (convert_debug_memory_address): Likewise.
8401 * cfgrtl.c (patch_jump_insn): Likewise.
8402 * combine.c (distribute_notes): Likewise.
8403 * cse.c (hash_rtx_cb): Likewise.
8404 (exp_equiv_p): Likewise.
8405 (fold_rtx): Likewise.
8406 (check_for_label_ref): Likewise.
8407 * cselib.c (rtx_equal_for_cselib_1): Likewise.
8408 (cselib_hash_rtx): Likewise.
8409 * emit-rtl.c (mark_label_nuses): Likewise.
8410 * explow.c (convert_memory_address_addr_space_1): Likewise.
8411 * final.c (output_asm_label): Likewise.
8412 (output_addr_const): Likewise.
8413 * gcse.c (add_label_notes): Likewise.
8414 * genconfig.c (walk_insn_part): Likewise.
8415 * genrecog.c (validate_pattern): Likewise.
8416 * ifcvt.c (cond_exec_get_condition): Likewise.
8417 (noce_emit_store_flag): Likewise.
8418 (noce_get_alt_condition): Likewise.
8419 (noce_get_condition): Likewise.
8420 * jump.c (maybe_propagate_label_ref): Likewise.
8421 (mark_jump_label_1): Likewise.
8422 (redirect_exp_1): Likewise.
8423 (rtx_renumbered_equal_p): Likewise.
8424 * lra-constraints.c (operands_match_p): Likewise.
8425 * print-rtl.c (print_value): Likewise.
8426 * reload.c (find_reloads): Likewise.
8427 * reload1.c (set_label_offsets): Likewise.
8428 * reorg.c (get_branch_condition): Likewise.
8429 * rtl-tests.c (test_uncond_jump): Likewise.
8430 * rtl.c (rtx_equal_p_cb): Likewise.
8431 (rtx_equal_p): Likewise.
8432 * rtlanal.c (reg_mentioned_p): Likewise.
8433 (rtx_referenced_p): Likewise.
8434 (get_condition): Likewise.
8435 * varasm.c (const_hash_1): Likewise.
8436 (compare_constant): Likewise.
8437 (const_rtx_hash_1): Likewise.
8438 (output_constant_pool_1): Likewise.
8439
8440 2016-10-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8441
8442 PR target/71627
8443 * reload.c (find_valid_class_1): Allow regclass if atleast one
8444 regno in regclass is ok. Compute and use rclass size based on
8445 actually available regnos for mode in rclass.
8446
8447 2016-10-21 Eric Botcazou <ebotcazou@adacore.com>
8448
8449 * config/sparc/sparc-modes.def (CCV): New.
8450 (CCXV): Likewise.
8451 * config/sparc/predicates.md (v_comparison_operator): New.
8452 (icc_comparison_operator): Add support for CCV/CCXV.
8453 (xcc_comparison_operator): Likewise.
8454 * config/sparc/sparc.c (output_cbranch): Likewise.
8455 (sparc_print_operand): Likewise.
8456 * config/sparc/sparc.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
8457 (uaddvdi4): New expander.
8458 (addvdi4): Likewise.
8459 (uaddvdi4_sp32): New instruction.
8460 (addvdi4_sp32): Likewise.
8461 (uaddvsi4): New expander.
8462 (addvsi4): Likewise.
8463 (cmp_ccc_plus_sltu_set): New instruction.
8464 (cmp_ccv_plus): Likewise.
8465 (cmp_ccxv_plus): Likewise.
8466 (cmp_ccv_plus_set): Likewise.
8467 (cmp_ccxv_plus_set): Likewise.
8468 (cmp_ccv_plus_sltu_set): Likewise.
8469 (uaddvdi4): New expander.
8470 (subvdi4): Likewise.
8471 (usubdi4_sp32): New instruction.
8472 (subvdi4_sp32): Likewise.
8473 (usubvsi4): New expander.
8474 (subvsi4): Likewise.
8475 (cmpsi_minus_sltu_set): New instruction.
8476 (cmp_ccv_minus): Likewise.
8477 (cmp_ccxv_minus): Likewise.
8478 (cmp_ccv_minus_set): Likewise.
8479 (cmp_ccxv_minus_set): Likewise.
8480 (cmp_ccv_minus_sltu_set): Likewise.
8481 (unegvdi3): New expander.
8482 (negvdi3): Likewise.
8483 (unegdi3_sp32): New instruction.
8484 (negvdi3_sp32): Likewise.
8485 (unegvsi3): New expander.
8486 (negvsi3): Likewise.
8487 (cmp_ccc_neg_sltu_set): New instruction.
8488 (cmp_ccv_neg): Likewise.
8489 (cmp_ccxv_neg): Likewise.
8490 (cmp_ccv_neg_set): Likewise.
8491 (cmp_ccxv_neg_set): Likewise.
8492 (cmp_ccv_neg_sltu_set): Likewise.
8493
8494 * tree-ssa-loop-split.c: Remove trailing spaces.
8495 * match.pd: Likewise.
8496
8497 2016-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8498
8499 PR rtl-optimization/78038
8500 * ree.c (get_defs): Return NULL if a defining insn for REG cannot
8501 be deduced to set REG through the RTL structure.
8502 (make_defs_and_copies_lists): Return false on a failing get_defs call.
8503
8504 2016-10-21 Richard Biener <rguenther@suse.de>
8505
8506 PR tree-optimization/78051
8507 * tree-vrp.c (evrp_dom_walker::before_dom_children): Update stmt
8508 and mark replaced if folding did something.
8509
8510 2016-10-21 David Edelsohn <dje.gcc@gmail.com>
8511
8512 * config/rs6000/rs6000.c (rs6000_assemble_visibility): Swap "internal"
8513 and "protected" in visibility types.
8514 (rs6000_xcoff_declare_function_name): Fix formatting.
8515 (rs6000_xcoff_declare_object_name): Fix formatting.
8516
8517 2016-10-21 Uros Bizjak <ubizjak@gmail.com>
8518
8519 * config/i386/i386.c (ix86_fold_builtin): Handle IX86_BUILTIN_INFQ
8520 and IX86_BUILTIN_HUGE_VALQ here ...
8521 (ix86_expand_builtin): ... not here.
8522
8523 2016-10-20 Jakub Jelinek <jakub@redhat.com>
8524
8525 * doc/gty.texi (for_user): Use @item next to @findex.
8526
8527 2016-10-20 Uros Bizjak <ubizjak@gmail.com>
8528
8529 PR target/78037
8530 * config/i386/bmiintrin.h (__tzcnt_u16): Call __builtin_ia32_tzcnt_u16.
8531 (__tzcnt_u32, _tzcnt_u32): Call __builtin_ia32_tzcnt_u32.
8532 (__tzcnt_u64, _tzcnt_u64): Call __builtin_ia32_tzcnt_u64.
8533 * config/i386/lzcntintrin.h (__lzcnt_u16): Call
8534 __builtin_ia32_lzcnt_u16.
8535 (__lzcnt_u32, _lzcnt_u32): Call __builtin_ia32_lzcnt_u32.
8536 (__lzcnt_u64, _lzcnt_u64): Call __builtin_ia32_lzcnt_u64.
8537 * config/i386/i386.md (UNSPEC_LZCNT, UNSPEC_TZCNT): New unspecs.
8538 (ctz<mode>2, *ctz<mode>2): Use SWI48 mode iterator.
8539 (bmi_tzcnt_<mode>): New expander.
8540 (*bmi_tzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
8541 (*bmi_tzcnt_<mode>_falsedep, *bmi_tzcnt_<mode>): New insn patterns.
8542 (clz<mode>2_lzcnt, *clz<mode>2_lzcnt): Use SWI48 mode iterator.
8543 (lzcnt_<mode>): New expander.
8544 (*lzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
8545 (*lzcnt_<mode>_falsedep, *lzcnt_<mode>): New insn patterns.
8546 * config/i386/i386-builtin-types.def (UINT_FTYPE_UINT): New.
8547 (UINT64_FTYPE_UINT64): New.
8548 * config/i386/i386-builtin.def (__builtin_clzs): Remove description.
8549 (__builtin_ia32_lzcnt_u16): New description.
8550 (__builtin_ia32_lzcnt_u32): Ditto.
8551 (__builtin_ia32_lzcnt_u64): Ditto.
8552 (__builtin_ctzs): Remove description.
8553 (__builtin_ia32_tzcnt_u16): New description.
8554 (__builtin_ia32_tzcnt_u32): Ditto.
8555 (__builtin_ia32_tzcnt_u64): Ditto.
8556 * config/i386/i386.c (ix86_expand_args_builtin): Handle
8557 UINT_FTYPE_UINT and UINT64_FTYPE_UINT64.
8558
8559 2016-10-20 Martin Liska <mliska@suse.cz>
8560
8561 PR lto/78049
8562 * lto-streamer-in.c (fixup_call_stmt_edges_1): Replace value
8563 comparison with STMT_UID_NOT_IN_RANGE.
8564 (fixup_call_stmt_edges): Do not fixup edges of a thunk in
8565 LTRANS.
8566
8567 2016-10-20 Eric Botcazou <ebotcazou@adacore.com>
8568
8569 * compare-elim.c (conforming_compare): Accept UNSPECs.
8570 (find_comparison_dom_walker::before_dom_children): Deal with
8571 instructions both using and killing the flags register.
8572 (equivalent_reg_at_start): New function extracted from...
8573 (try_eliminate_compare): ...here. Use it and add support for
8574 registers and UNSPECs as second operand of the compare.
8575 * config/visium/visium-modes.def (CCV): New.
8576 * config/visium/predicates.md (visium_v_comparison_operator): New.
8577 (visium_branch_operator): Deal with CCV mode.
8578 * config/visium/visium.c (visium_select_cc_mode): Likewise.
8579 (output_cbranch): Likewise.
8580 * config/visium/visium.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
8581 (uaddv<mode>4): New expander.
8582 (addv<mode>4): Likewise.
8583 (add<mode>3_insn_set_carry): New instruction.
8584 (add<mode>3_insn_set_overflow): Likewise.
8585 (addsi3_insn_set_overflow): Likewise.
8586 (usubv<mode>4): New expander.
8587 (subv<mode>4): Likewise.
8588 (sub<mode>3_insn_set_carry): New instruction.
8589 (sub<mode>3_insn_set_overflow): Likewise.
8590 (subsi3_insn_set_overflow): Likewise.
8591 (unegv<mode>3): New expander.
8592 (negv<mode>3): Likewise.
8593 (neg<mode>2_insn_set_overflow): New instruction.
8594 (addv_tst<mode>): Likewise.
8595 (subv_tst<mode>): Likewise.
8596 (negv_tst<mode>): Likewise.
8597 (cbranch<mode>4_addv_insn): New splitter and instruction.
8598 (cbranch<mode>4_subv_insn): Likewise.
8599 (cbranch<mode>4_negv_insn): Likewise.
8600
8601 2016-10-20 Richard Biener <rguenther@suse.de>
8602
8603 * tree-ssa-alias.c (ptrs_compare_unequal): Remove code duplication.
8604 Handle decls possibly not bound.
8605 * tree-ssa-structalias.c (get_constraint_for_ssa_var): Add
8606 nothing_id for decls that might not be bound if we are interested
8607 for the address.
8608 (get_constraint_for_component_ref): Deal with that.
8609
8610 2016-10-20 Michael Matz <matz@suse.de>
8611
8612 Loop splitting.
8613 * common.opt (-fsplit-loops): New flag.
8614 * passes.def (pass_loop_split): Add.
8615 * opts.c (default_options_table): Add OPT_fsplit_loops entry at -O3.
8616 (enable_fdo_optimizations): Add loop splitting.
8617 * timevar.def (TV_LOOP_SPLIT): Add.
8618 * tree-pass.h (make_pass_loop_split): Declare.
8619 * tree-ssa-loop-manip.h (rewrite_into_loop_closed_ssa_1): Declare.
8620 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h,
8621 * tree-ssa-loop-split.c: New file.
8622 * Makefile.in (OBJS): Add tree-ssa-loop-split.o.
8623 * doc/invoke.texi (fsplit-loops): Document.
8624 * doc/passes.texi (Loop optimization): Add paragraph about loop
8625 splitting.
8626
8627 2016-10-20 Richard Biener <rguenther@suse.de>
8628
8629 * cgraphunit.c (analyze_functions): Set node->definition to
8630 false to signal symbol removal to debug_hooks->late_global_decl.
8631 * ipa.c (symbol_table::remove_unreachable_nodes): When not in
8632 WPA signal symbol removal to the debuginfo machinery.
8633 * dwarf2out.c (dwarf2out_late_global_decl): Instead of
8634 using early_finised to guard the we're called for symbol
8635 removal case look at the symtabs definition flag.
8636 (gen_variable_die): Remove redundant check.
8637
8638 2016-10-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8639
8640 * config/s390/s390.md ("prefetch"): Add fallthrough comment.
8641
8642 2016-10-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8643
8644 PR tree-optimization/53979
8645 * match.pd ((a ^ b) | a -> a | b): New pattern.
8646
8647 2016-10-19 John David Anglin <danglin@gcc.gnu.org>
8648
8649 * config/pa/pa64-hpux.h (PA_INIT_FRAME_DUMMY_ASM_OP): Move to
8650 config/pa/pa64-hpux-lib.h.
8651 (PA_CRTBEGIN_HACK): Likewise.
8652 (DTOR_LIST_BEGIN): Likewise.
8653
8654 2016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
8655
8656 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
8657 register only if "in" and "out" are different registers.
8658
8659 2016-10-19 Eric Botcazou <ebotcazou@adacore.com>
8660
8661 * omp-low.c (pass_oacc_device_lower::gate): New method.
8662 (execute): Always call execute_oacc_device_lower.
8663
8664 2016-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8665
8666 PR tree-optimization/77916
8667 PR tree-optimization/77937
8668 * gimple-ssa-strength-reduction.c (analyze_increments): Remove
8669 stopgap fix.
8670 (insert_initializers): Requirement of initializer for -1 should be
8671 based on pointer-typedness of the candidate basis.
8672
8673 2016-10-19 Bin Cheng <bin.cheng@arm.com>
8674
8675 PR tree-optimization/78005
8676 * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Compute
8677 upper (included) bound for niters of prolog loop.
8678 (vect_gen_scalar_loop_niters): Change parameter VF to VFM1.
8679 Compute niters of scalar loop above which vectorized loop is
8680 preferred, as well as the upper (included) bound for the niters.
8681 (vect_do_peeling): Record niter bound for loops accordingly.
8682
8683 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
8684
8685 PR lto/77458
8686 * tree-core.h (enum tree_index): Put the complex types after their
8687 component types.
8688 * tree-streamer.c (verify_common_node_recorded): New function.
8689 (preload_common_nodes) <TREE_CODE (node) == COMPLEX_TYPE>: Use it.
8690
8691 2016-10-19 Martin Liska <mliska@suse.cz>
8692
8693 * cgraph.h (cgraph_edge::binds_to_current_def_p):
8694 Replace NULL with false as a return value.
8695
8696 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
8697
8698 PR tree-optimization/78024
8699 * omp-low.c (oacc_loop_discovery): Call clear_bb_flags before, and
8700 don't clear BB_VISITED after processing.
8701
8702 2016-10-19 Richard Biener <rguenther@suse.de>
8703
8704 * domwalk.c (dom_walker::walk): Use RPO order.
8705
8706 2016-10-19 Richard Biener <rguenther@suse.de>
8707
8708 * tree-vrp.c (evrp_dom_walker::evrp_dom_walker): Initialize
8709 stmts_to_remove.
8710 (evrp_dom_walker::~evrp_dom_walker): Free it.
8711 (evrp_dom_walker::stmts_to_remove): Add.
8712 (evrp_dom_walker::before_dom_children): Mark PHIs and stmts
8713 whose output we fully propagate for removal. Propagate
8714 into BB destination PHI arguments.
8715 (execute_early_vrp): Remove queued stmts. Dump value ranges
8716 before stmt removal.
8717
8718 2016-10-18 Aldy Hernandez <aldyh@redhat.com>
8719
8720 * Makefile.in (OBJS): Add gimple-ssa-warn-alloca.o.
8721 * passes.def: Add two instances of pass_walloca.
8722 * tree-pass.h (make_pass_walloca): New.
8723 * gimple-ssa-warn-alloca.c: New file.
8724 * doc/invoke.texi: Document -Walloca, -Walloca-larger-than=, and
8725 -Wvla-larger-than= options.
8726
8727 2016-10-18 Thomas Schwinge <thomas@codesourcery.com>
8728
8729 * cfg.c (clear_bb_flags): Use FOR_ALL_BB_FN.
8730 * config/nvptx/nvptx.c (nvptx_find_sese): Likewise.
8731
8732 2016-10-18 Kelvin Nilsen <kelvin@gcc.gnu.org>
8733
8734 * config/rs6000/altivec.h (vec_xl_len): New macro.
8735 (vec_xst_len): New macro.
8736 (vec_cmpnez): New macro.
8737 (vec_cntlz_lsbb): New macro.
8738 (vec_cnttz_lsbb): New macro.
8739 (vec_xlx): New macro.
8740 (vec_xrx): New macro.
8741 (vec_all_nez): New C++ predicate template.
8742 (vec_any_eqz): New C++ predicate template.
8743 (vec_all_ne): Revised C++ predicate template under _ARCH_PWR9
8744 conditional compilation.
8745 (vec_any_eq): Revised C++ predicate template under _ARCH_PWR9
8746 conditional compilation.
8747 (vec_all_nez): New macro.
8748 (vec_any_eqz): New macro.
8749 (vec_all_ne): Revised macro under _ARCH_PWR9 conditional
8750 compilation.
8751 (vec_any_eq): Revised macro under _ARCH_PWR9 conditional
8752 compilation.
8753 * config/rs6000/vector.md (VI): Moved this mode iterator
8754 definition from altivec.md to vector.md.
8755 (UNSPEC_NEZ_P): New value.
8756 (vector_ne_<mode>_p): New expansion for implementation of
8757 vec_all_ne and vec_any_eq built-in functions.
8758 (vector_nez_<mode>_p): New expansion for implementation of
8759 vec_all_nez and vec_any_eqz built-in functions.
8760 (vector_ne_v2di_p): New expansion for implementation of vec_all_ne
8761 and vec_any_eq built-in function.
8762 (cr6_test_for_zero): New commentary to explain this expansion.
8763 (cr6_test_for_zero_reverse): New commentary to explain this expansion.
8764 (cr6_test_for_lt): New commentary to explain this expansion.
8765 (cr6_test_for_lt_reverse): New commentary to explain this
8766 expansion.
8767 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8768 overloaded function prototypes for vec_all_ne, vec_all_nez,
8769 vec_any_eq, vec_any_eqz, vec_cmpnez, vec_cntlz_lsbb,
8770 vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx, and vec_xrx
8771 built-in functions.
8772 (altivec_resolve_overloaded_builtin): Modify the handling of
8773 ALTIVEC_BUILTIN_VEC_CMPNE to use the Power9 instructions when
8774 the compiler is configured to support TARGET_P9_VECTOR.
8775 * config/rs6000/rs6000-builtin.def (BU_ALTIVEC_P): Add commentary
8776 to explain the special processing that is given to predicate
8777 built-ins introduced using this macro.
8778 (BU_ALTIVEC_OVERLOAD_P): Add commentary to alert maintainers to
8779 the special processing given to predicate built-ins introduced
8780 using this macro.
8781 (BU_VSX_P): Likewise.
8782 (BU_P8V_AV_P): Likewise.
8783 (BU_P9V_AV_P): Likewise.
8784 (BU_P9V_AV_X): New macro.
8785 (BU_P9V_64BIT_AV_X): New macro.
8786 (BU_P9V_VSX_3): New macro.
8787 (BU_P9V_OVERLOAD_P): New macro.
8788 (LXVL): New BU_P9V_64BIT_VSX_2.
8789 (VEXTUBLX): New BU_P9V_AV_2.
8790 (VEXTUBRX): Likewise.
8791 (VEXTUHLX): Likewise.
8792 (VEXTUHRX): Likewise.
8793 (VEXTUWLX): Likewise.
8794 (VEXTUWRX): Likewise.
8795 (STXVL): New BU_P9V_64BIT_AV_X.
8796 (VCLZLSBB): New BU_P9V_AV_1.
8797 (VCTZLSBB): Likewise.
8798 (CMPNEB): New BU_P9V_AV_2.
8799 (CMPNEH): Likewise.
8800 (CMPNEW): Likewise.
8801 (CMPNEF): Likewise.
8802 (CMPNED): Likewise.
8803 (VCMPNEB_P): New BU_P9V_AV_P.
8804 (VCMPNEH_P): Likewise.
8805 (VCMPNEW_P): Likewise.
8806 (VCMPNED_P): Likewise.
8807 (VCMPNEFP_P): Likewise.
8808 (VCMPNEDP_P): Likewise.
8809 (CMPNEZB): New BU_P9V_AV_2.
8810 (CMPNEZH): Likewise.
8811 (CMPNEZW): Likewise.
8812 (VCMPNEZB_P): New BU_P9V_AV_P.
8813 (VCMPNEZH_P): Likewise.
8814 (VCMPNEZW_P): Likewise.
8815 (LXVL): New BU_P9V_OVERLOAD_2.
8816 (STXVL): New BU_P9V_OVERLOAD_3.
8817 (VEXTULX): New BU_P9V_OVERLOAD_2.
8818 (VEXTURX): Likewise.
8819 (CMPNEZ): Likewise.
8820 (VCMPNEZ_P): New BU_P9V_OVERLOAD_P.
8821 (VCMPNE_P): Likewise.
8822 (VCLZLSBB): New BU_P9V_OVERLOAD_1.
8823 (VCTZLSBB): Likewise.
8824 * config/rs6000/rs6000.c (altivec_expand_predicate_builtin): Add
8825 comment to explain mode used for scratch register.
8826 (altivec_expand_stxvl_builtin): New function.
8827 (altivec_expand_builtin): Add case for new constant P9V_BUILTIN_STXVL.
8828 (altivec_init_builtins): Add initialized variable
8829 void_ftype_v16qi_pvoid_long and use this type to define the
8830 built-in function __builtin_altivec_stxvl.
8831 * config/rs6000/vsx.md (UNSPEC_LXVL): New value.
8832 (UNSPEC_STXVL): New value.
8833 (UNSPEC_VCLZLSBB): New value.
8834 (UNSPEC_VCTZLSBB): New value.
8835 (UNSPEC_VEXTUBLX): New value.
8836 (UNSPEC_VEXTUHLX): New value.
8837 (UNSPEC_VEXTUWLX): New value.
8838 (UNSPEC_VEXTUBRX): New value.
8839 (UNSPEC_VEXTUHRX): New value.
8840 (UNSPEC_VEXTUWRX): New value.
8841 (UNSPEC_VCMPNEB): New value.
8842 (UNSPEC_VCMPNEZB): New value.
8843 (UNSPEC_VCMPNEH): New value.
8844 (UNSPEC_VCMPNEZH): New value.
8845 (UNSPEC_VCMPNEW): New value.
8846 (UNSPEC_VCMPNEZW): New value.
8847 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
8848 vector of integer modes.
8849 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
8850 vector of float or double modes.
8851 (*vector_nez_<mode>_p): New insn for vector test all not equal or
8852 zero.
8853 (lxvl): New expand for load VSX vector with length.
8854 (*lxvl): New insn for load VSX vector with length.
8855 (stxvl): New expand for store VSX vector with length.
8856 (*stxvl): New insn for store VSX vector with length.
8857 (vcmpneb): New insn for vector of byte compare not equal.
8858 (vcmpnezb): New insn for vector of byte compare not equal or zero.
8859 (vcmpneh): New insn for vector of half word compare not equal.
8860 (vcmpnezh): New insn for vector of half word compare not equal or
8861 zero.
8862 (vcmpnew): New insn for vector of word compare not equal.
8863 (vcmpne<VSs>): New insn for vector of float or double compare not
8864 equal.
8865 (vcmpnezw): New insn for vector of word compare not equal or zero.
8866 (vclzlsbb): New insn for vector count leading zero
8867 least-significant bits byte.
8868 (vctzlsbb): New insn for vector count trailing zero least
8869 signficant bits byte.
8870 (vextublx): New insn for vector extract unsigned byte left
8871 indexed.
8872 (vextubrx): New insn for vector extract unsigned byte right
8873 indexed.
8874 (vextuhlx): New insn for vector extract unsigned half word left
8875 indexed.
8876 (vextuhrx): New insn for vector extract unsigned half word right
8877 indexed.
8878 (vextuwlx): New insn for vector extract unsigned word left
8879 indexed.
8880 (vextuwrx): New insn for vector extract unsigned word right
8881 indexed.
8882 * config/rs6000/rs6000.h (RS6000_BTC_CONST): Enhance comment to
8883 clarify intent of this constant.
8884 * config/rs6000/altivec.md (VI): Move this mode iterator to vsx.md.
8885 * doc/extend.texi (PowerPC Altivec Built-in Functions): Add
8886 documentation for vec_all_nez, vec_any_eqz, vec_cmpnez,
8887 vec_cntlz_lsbb, vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx,
8888 and vec_xrx functions.
8889
8890 2016-10-18 Andrew Pinski <apinski@cavium.com>
8891
8892 PR tree-opt/65950
8893 * predict.c (is_exit_with_zero_arg): New function.
8894 (tree_bb_level_predictions): Don't consider paths leading to exit(0)
8895 as nottaken.
8896
8897 2016-10-18 Uros Bizjak <ubizjak@gmail.com>
8898
8899 PR target/77991
8900 * config/i386/i386.c (legitimize_tls_address)
8901 <case TLS_MODEL_INITIAL_EXEC>: For TARGET_64BIT || TARGET_ANY_GNU_TLS
8902 convert dest to Pmode if different than Pmode.
8903
8904 2016-10-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8905
8906 PR tree-optimization/77916
8907 * gimple-ssa-strength-reduction.c (analyze_increments): Reinstate
8908 stopgap fix, as pointers with -1 increment are still broken.
8909
8910 2016-10-18 David Edelsohn <dje.gcc@gmail.com>
8911
8912 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Move storage
8913 mapping class decoration from here...
8914 (rs6000_xcoff_encode_section): ...to here.
8915
8916 (rs6000_savres_strategy) [AIX,ELFv2]: Inline FPR save and restore
8917 if shrink-wrapping and optimizing for speed.
8918
8919 2016-10-18 Richard Biener <rguenther@suse.de>
8920
8921 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
8922 not visited but non-executable predecessors. Return taken edge.
8923 Simplify conditions and refactor propagation vs. folding step.
8924
8925 2016-10-18 Segher Boessenkool <segher@kernel.crashing.org>
8926
8927 * config/rs6000/rs6000.c (rs6000_savres_strategy): Do not select
8928 {SAVE,REST}_MULTIPLE if shrink-wrapping separate components.
8929 (rs6000_get_separate_components): Assert we do not have those
8930 strategies selected.
8931
8932 2016-10-18 Richard Biener <rguenther@suse.de>
8933
8934 * tree-ssa-propagate.h (substitute_and_fold): Adjust prototype.
8935 * tree-ssa-propagate.c (ssa_prop_fini): Remove final BB_VISITED
8936 clearing.
8937 (substitute_and_fold_dom_walker): Adjust constructor.
8938 (substitute_and_fold_dom_walker::before_dom_children): Remove
8939 do_dce flag and handling (always true).
8940 (substitute_and_fold): Likewise.
8941 * tree-vrp.c (vrp_finalize): Adjust.
8942 (execute_early_vrp): Remove final BB_VISITED clearing.
8943 * tree-ssa-ccp.c (ccp_finalize): Adjust.
8944 * tree-ssa-copy.c (fini_copy_prop): Likewise.
8945 * ira.c (ira): Call clear_bb_flags.
8946
8947 2016-10-18 Richard Biener <rguenther@suse.de>
8948
8949 * genmatch.c (dt_operand::gen_gimple_expr): Use get_name to
8950 get at the operand to look at with TREE_OPERAND for generic
8951 sub-nodes.
8952
8953 2016-10-18 David Malcolm <dmalcolm@redhat.com>
8954
8955 * genattrtab.c (attr_string): Use rtx_reader_ptr for call to
8956 copy_md_ptr_loc.
8957 (gen_attr): Use rtx_reader_ptr for lookup_enum_type call.
8958 (write_test_expr): Use rtx_reader_ptr for calls to
8959 fprint_c_condition.
8960 (write_attr_value): Likewise.
8961 * genconditions.c (write_one_condition): Use rtx_reader_ptr for
8962 call to print_md_ptr_loc.
8963 (write_one_condition): Likewise for calls to print_c_condition.
8964 * genconstants.c: Include "statistics.h" and "vec.h".
8965 (main): Update for conversion to member functions.
8966 * genemit.c (emit_c_code): Use rtx_reader_ptr for
8967 call to print_md_ptr_loc.
8968 * genenums.c: Include "statistics.h" and "vec.h".
8969 (main): Update for conversion of traverse_enum_types to a method.
8970 * genmddeps.c: Include "statistics.h" and "vec.h".
8971 * genoutput.c (process_template): Use rtx_reader_ptr for call to
8972 print_md_ptr_loc.
8973 * genpreds.c (write_predicate_subfunction): Likewise.
8974 (write_predicate_expr): Likewise for calls to print_c_condition.
8975 * genrecog.c (print_test): Likewise.
8976 * gensupport.c (process_rtx): Likewise for calls to
8977 copy_md_ptr_loc and join_c_conditions.
8978 (alter_test_for_insn): Likewise for call to join_c_conditions.
8979 (process_substs_on_one_elem): Likewise.
8980 (gen_mnemonic_setattr): Update for move of string_obstack to a
8981 field of rtx_reader.
8982 (mnemonic_htab_callback): Likewise. Fix formatting.
8983 (gen_mnemonic_attr): Likewise.
8984 * gentarget-def.c (def_target_insn): Use rtx_reader_ptr for calls
8985 to print_c_condition.
8986 * read-md.c: Include "statistics.h" and "vec.h".
8987 (string_obstack): Convert this global to field "m_string_obstack"
8988 of class rtx_reader.
8989 (ptr_locs): Likewise, as "m_ptr_locs".
8990 (ptr_loc_obstack): Likewise, as "m_ptr_loc_obstack".
8991 (joined_conditions): Likewise, as "m_joined_conditions".
8992 (joined_conditions_obstack): Likewise, as "m_joined_conditions_obstack".
8993 (md_constants): Likewise, as "m_md_constants".
8994 (enum_types): Likewise, as "m_enum_types".
8995 (set_md_ptr_loc): Convert to...
8996 (rtx_reader::set_md_ptr_loc): ...member function.
8997 (get_md_ptr_loc): Convert to...
8998 (rtx_reader::get_md_ptr_loc): ...member function.
8999 (copy_md_ptr_loc): Convert to...
9000 (rtx_reader::copy_md_ptr_loc): ...member function.
9001 (fprint_md_ptr_loc): Convert to...
9002 (rtx_reader::fprint_md_ptr_loc): ...member function.
9003 (print_md_ptr_loc): Convert to...
9004 (rtx_reader::print_md_ptr_loc): ...member function.
9005 (join_c_conditions): Convert to...
9006 (rtx_reader::join_c_conditions): ...member function.
9007 (fprint_c_condition): Convert to...
9008 (rtx_reader::fprint_c_condition): ...member function.
9009 (print_c_condition): Convert to...
9010 (rtx_reader::print_c_condition): ...member function.
9011 (read_name): Convert to...
9012 (rtx_reader::read_name): ...member function.
9013 (read_escape): Convert to...
9014 (rtx_reader::read_escape): ...member function.
9015 (read_quoted_string): Convert to...
9016 (rtx_reader::read_quoted_string): ...member function.
9017 (read_braced_string): Convert to...
9018 (rtx_reader::read_braced_string): ...member function.
9019 (read_string): Convert to...
9020 (rtx_reader::read_string): ...member function.
9021 (read_skip_construct): Convert to...
9022 (rtx_reader::read_skip_construct): ...member function.
9023 (handle_constants): Convert to...
9024 (rtx_reader::handle_constants): ...member function.
9025 (traverse_md_constants): Convert to...
9026 (rtx_reader::traverse_md_constants): ...member function.
9027 (handle_enum): Convert to...
9028 (rtx_reader::handle_enum): ...member function.
9029 (lookup_enum_type): Convert to...
9030 (rtx_reader::lookup_enum_type): ...member function.
9031 (traverse_enum_types): Convert to...
9032 (rtx_reader::traverse_enum_types): ...member function.
9033 (rtx_reader::rtx_reader): Move initializations
9034 of various former global data from rtx_reader::read_md_files to
9035 here, as fields, along with the call to unlock_std_streams.
9036 (rtx_reader::~rtx_reader): Clean up m_base_dir, and clean up
9037 the new fields.
9038 (rtx_reader::read_md_files): Move initializations of various
9039 global data from here to the ctor.
9040 * read-md.h (read_name): Convert to...
9041 (rtx_reader::read_name): ...member function.
9042 (rtx_reader::read_escape): New method decl.
9043 (read_quoted_string): Convert to...
9044 (rtx_reader::read_quoted_string): ...member function.
9045 (rtx_reader::read_braced_string): New method decl.
9046 (read_string): Convert to...
9047 (rtx_reader::read_string): ...member function.
9048 (rtx_reader::read_skip_construct): New method decl.
9049 (rtx_reader::set_md_ptr_loc): New method decl.
9050 (rtx_reader::get_md_ptr_loc): New method decl.
9051 (copy_md_ptr_loc): Convert to...
9052 (rtx_reader::copy_md_ptr_loc): ...member function.
9053 (fprint_md_ptr_loc): Convert to...
9054 (rtx_reader::fprint_md_ptr_loc): ...member function.
9055 (print_md_ptr_loc): Convert to...
9056 (rtx_reader::print_md_ptr_loc): ...member function.
9057 (rtx_reader::lookup_enum_type): New method decl.
9058 (rtx_reader::traverse_enum_types): New method decl.
9059 (rtx_reader::handle_constants): New method decl.
9060 (traverse_md_constants): Convert to...
9061 (rtx_reader::traverse_md_constants): ...member function.
9062 (rtx_reader::handle_enum): New method decl.
9063 (rtx_reader::join_c_conditions): New method decl.
9064 (fprint_c_condition): Convert to...
9065 (rtx_reader::fprint_c_condition): ...member function.
9066 (print_c_condition): Convert to...
9067 (rtx_reader::print_c_condition): ...member function.
9068 (rtx_reader::apply_iterator_to_string): New method decl.
9069 (rtx_reader::copy_rtx_for_iterators): New method decl.
9070 (rtx_reader::read_conditions): New method decl.
9071 (rtx_reader::record_potential_iterator_use): New method decl.
9072 (rtx_reader::read_mapping): New method decl.
9073 (rtx_reader::read_rtx): New method decl.
9074 (rtx_reader::read_rtx_code): New method decl.
9075 (rtx_reader::read_rtx_operand): New method decl.
9076 (rtx_reader::read_nested_rtx): New method decl.
9077 (rtx_reader::read_rtx_variadic): New method decl.
9078 (rtx_reader::get_string_obstack): New method.
9079 (rtx_reader::get_md_constants): New method.
9080 (string_obstack): Convert global variable decl to...
9081 (rtx_reader::m_string_obstack): ...this new field.
9082 (rtx_reader::m_ptr_locs): New field.
9083 (rtx_reader::m_ptr_loc_obstack): New field.
9084 (rtx_reader::m_joined_conditions): New field.
9085 (rtx_reader::m_joined_conditions_obstack): New field.
9086 (rtx_reader::m_md_constants): New field.
9087 (rtx_reader::m_enum_types): New field.
9088 * read-rtl.c (apply_iterator_to_string): Convert to...
9089 (rtx_reader::apply_iterator_to_string): ...member function.
9090 (copy_rtx_for_iterators): Convert to...
9091 (rtx_reader::copy_rtx_for_iterators): ...member function.
9092 (add_condition_to_string): Use rtx_reader_ptr for
9093 calls join_c_conditions.
9094 (apply_iterators): Use rtx_reader_ptr for calls to
9095 join_c_conditions and copy_rtx_for_iterators.
9096 (read_conditions): Convert to...
9097 (rtx_reader::read_conditions): ...member function.
9098 (record_potential_iterator_use): Convert to...
9099 (rtx_reader::record_potential_iterator_use): ...member function.
9100 (read_mapping): Convert to...
9101 (rtx_reader::read_mapping): ...member function.
9102 (read_subst_mapping): Use rtx_reader_ptr for read_string call.
9103 (read_rtx): Convert to...
9104 (rtx_reader::read_rtx): ...member function.
9105 (read_rtx_code): Convert to...
9106 (rtx_reader::read_rtx_code): ...member function.
9107 (read_rtx_operand): Convert to...
9108 (rtx_reader::read_rtx_operand): ...member function. Update for move
9109 of string_obstack to a field.
9110 (read_nested_rtx): Convert to..
9111 (rtx_reader::read_nested_rtx): ...member function.
9112 (read_rtx_variadic): Convert to..
9113 (rtx_reader::read_rtx_variadic): ...member function.
9114
9115 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
9116
9117 * tree-vrp.c (get_value_range): Check get_ptr_nonnull.
9118
9119 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
9120
9121 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Set value range
9122 for pointer type too.
9123 (ipcp_update_vr): set_ptr_nonnull for pointer.
9124
9125 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
9126
9127 * tree-ssa-alias.h (pt_solution_singleton_or_null_p): Renamed from
9128 pt_solution_singleton_p.
9129 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use renamed
9130 pt_solution_singleton_or_null_p from pt_solution_singleton_p.
9131 * tree-ssa-structalias.c (find_what_p_points_to): Preserve
9132 pointer nonnull computed by VRP.
9133 Also Conservatively set pt.null to 1.
9134 (pt_solution_reset): Conservatively set pt.null to 1.
9135 (pt_solution_singleton_or_null_p): Renamed from
9136 pt_solution_singleton_p.
9137 * tree-ssanames.h (set_ptr_nonnull): Declare.
9138 (get_ptr_nonnull): Likewise.
9139 * tree-ssanames.c (set_ptr_nonnull): New.
9140 (get_ptr_nonnull): Likewise.
9141 * tree-vrp.c (vrp_finalize): Set ptr that are nonnull.
9142 (evrp_dom_walker::before_dom_children): Likewise.
9143
9144 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
9145
9146 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
9147 * config/i386/i386.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
9148 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
9149 * config/ia64/ia64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
9150 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to.
9151 * config/rs6000/rs6000.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
9152 (rs6000_option_override_internal): Clear it if ABI_AIX.
9153 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
9154 * config/sparc/sparc.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ... here.
9155
9156 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9157
9158 * gimple-ssa-strength-reduction.c (record_increment): Remove
9159 garbage comment.
9160
9161 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
9162
9163 * expmed.c (expand_shift_1): Add MAY_FAIL parameter and do not assert
9164 that the result is non-zero if it is true.
9165 (maybe_expand_shift): New wrapper around expand_shift_1.
9166 (emit_store_flag): Call maybe_expand_shift in lieu of expand_shift.
9167
9168 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9169
9170 PR tree-optimization/77916
9171 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
9172 Don't allow a MINUS_EXPR for pointer arithmetic for either known
9173 or unknown strides.
9174 (record_increment): Increments of -1 for unknown strides just use
9175 a multiply initializer like other negative values.
9176 (analyze_increments): Remove stopgap solution for -1 increment
9177 applied to pointer arithmetic.
9178
9179 2016-10-17 Yuri Rumyantsev <ysrumyan@gmail.com>
9180
9181 * dominance.c (dom_info::dom_info): Add new constructor for region
9182 which is vector of basic blocks.
9183 (dom_init): New method to initialize members common for both
9184 constructors.
9185 (dom_info::dom_info): Invoke dom_init for partial initialization.
9186 (dom_info::get_idom): Add check to corner cases on basic blocks which
9187 are not in region.
9188 (dom_info::calc_dfs_tree): Check M_FAKE_EXIT_EDGE instead of M_REVERSE
9189 to detect unreachable bbs.
9190 (dom_info::calc_idoms): Likewise.
9191 (compute_dom_fast_query_in_region): New function.
9192 (calculate_dominance_info_for_region): Likewise.
9193 (free_dominance_info_for_region): Likewise.
9194 * dominance.h: Add prototypes for introduced region-based functions
9195 * tree-if-conv.c (build_region): New function.
9196 (if_convertible_loop_p_1): Invoke local version of post-dominators
9197 calculation before basic block predication with subsequent freeing
9198 post-dominator info.
9199 (tree_if_conversion): Remove free of post-dominator info
9200 (pass_if_conversion::execute): Delete detection of infinite loops
9201 and fake edges to exit block since post-dominator calculation is
9202 performed per if-converted loop only.
9203
9204 2016-10-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
9205
9206 PR target/77308
9207 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
9208 register explicitly.
9209 * config/arm/arm.md (ashldi3, ashrdi3, lshrdi3): Don't FAIL if
9210 optimizing for size.
9211
9212 2016-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9213
9214 * config/aarch64/aarch64.c: Delete inclusion of
9215 cortex-a57-fma-steering.h.
9216 (aarch64_override_options): Delete call
9217 to aarch64_register_fma_steering.
9218 * config/aarch64/aarch64-protos.h (make_pass_fma_steering): Declare.
9219 * config/aarch64/cortex-a57-fma-steering.h: Delete.
9220 * config/aarch64/aarch64-passes.def: New file.
9221 * config/aarch64/cortex-a57-fma-steering.c
9222 (aarch64_register_fma_steering): Delete definition.
9223 (make_pass_fma_steering): Remove static qualifier.
9224 * config/aarch64/t-aarch64 (PASSES_EXTRA): New directive.
9225 (cortex-a57-fma-steering.o): Remove dependency on
9226 cortex-a57-fma-steering.h.
9227
9228 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
9229
9230 * explow.c (validize_mem): Do not modify the argument in-place.
9231
9232 2016-10-17 Thomas Schwinge <thomas@codesourcery.com>
9233
9234 * tree-streamer.c (record_common_node): Explicitly list expected
9235 tree codes.
9236
9237 2016-10-17 Richard Biener <rguenther@suse.de>
9238
9239 PR tree-optimization/77988
9240 * tree-vrp.c (remove_range_assertions): Use replace_uses_by.
9241
9242 2016-10-17 Marek Polacek <polacek@redhat.com>
9243
9244 * Makefile.in (C_COMMON_OBJS): Add c-family/c-attribs.o.
9245
9246 2016-10-17 Richard Biener <rguenther@suse.de>
9247
9248 * bb-reorder.c (reorder_basic_blocks_simple): Clear BB_VISITED
9249 before using it.
9250
9251 2016-10-17 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9252
9253 PR tree-optimization/71636
9254 * match.pd (x & ((1 << b) - 1) -> x & ~(~0 << b)): New pattern.
9255
9256 2016-10-17 Richard Biener <rguenther@suse.de>
9257
9258 * gimplify.c (gimplify_function_tree): Do not move the outer
9259 binds block.
9260
9261 2016-10-17 Jakub Jelinek <jakub@redhat.com>
9262
9263 * langhooks.h (struct lang_hooks_for_decls): Remove
9264 function_decl_explicit_p, function_decl_deleted_p and
9265 function_decl_defaulted hooks. Add decl_dwarf_attribute hook.
9266 * langhooks-def.h (lhd_decl_dwarf_attribute): Declare.
9267 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
9268 LANG_HOOKS_FUNCTION_DECL_DELETED_P,
9269 LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Remove.
9270 (LANG_HOOKS_DECL_DWARF_ATTRIBUTE): Define.
9271 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
9272 LANG_HOOKS_FUNCTION_DECL_DELETED_P and
9273 LANG_HOOKS_FUNCTION_DECL_DEFAULTED. Add
9274 LANG_HOOKS_DECL_DWARF_ATTRIBUTE.
9275 * langhooks.c (lhd_decl_dwarf_attribute): New function.
9276 * dwarf2out.c (gen_subprogram_die): Use
9277 lang_hooks.decls.decl_dwarf_attribute instead of
9278 lang_hooks.decls.function_decl_*.
9279
9280 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
9281
9282 PR ada/37139
9283 PR ada/67205
9284 * common.opt (-ftrampolines): New option.
9285 * doc/invoke.texi (Code Gen Options): Document it.
9286 * doc/tm.texi.in (Trampolines): Add TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
9287 * doc/tm.texi: Regenerate.
9288 * builtins.def: Add init_descriptor and adjust_descriptor.
9289 * builtins.c (expand_builtin_init_trampoline): Do not issue a warning
9290 on platforms with descriptors.
9291 (expand_builtin_init_descriptor): New function.
9292 (expand_builtin_adjust_descriptor): Likewise.
9293 (expand_builtin) <BUILT_IN_INIT_DESCRIPTOR>: New case.
9294 <BUILT_IN_ADJUST_DESCRIPTOR>: Likewise.
9295 * calls.c (prepare_call_address): Remove SIBCALLP parameter and add
9296 FLAGS parameter. Deal with indirect calls by descriptor and adjust.
9297 Set STATIC_CHAIN_REG_P on the static chain register, if any.
9298 (call_expr_flags): Set ECF_BY_DESCRIPTOR for calls by descriptor.
9299 (expand_call): Likewise. Move around call to prepare_call_address
9300 and pass all flags to it.
9301 * cfgexpand.c (expand_call_stmt): Reinstate CALL_EXPR_BY_DESCRIPTOR.
9302 * gimple.h (enum gf_mask): New GF_CALL_BY_DESCRIPTOR value.
9303 (gimple_call_set_by_descriptor): New setter.
9304 (gimple_call_by_descriptor_p): New getter.
9305 * gimple.c (gimple_build_call_from_tree): SetCALL_EXPR_BY_DESCRIPTOR.
9306 (gimple_call_flags): Deal with GF_CALL_BY_DESCRIPTOR.
9307 * langhooks.h (struct lang_hooks): Add custom_function_descriptors.
9308 * langhooks-def.h (LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS): Define.
9309 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS.
9310 * rtl.h (STATIC_CHAIN_REG_P): New macro.
9311 * rtlanal.c (find_first_parameter_load): Skip static chain registers.
9312 * target.def (custom_function_descriptors): New POD hook.
9313 * tree.h (FUNC_ADDR_BY_DESCRIPTOR): New flag on ADDR_EXPR.
9314 (CALL_EXPR_BY_DESCRIPTOR): New flag on CALL_EXPR.
9315 * tree-core.h (ECF_BY_DESCRIPTOR): New mask.
9316 Document FUNC_ADDR_BY_DESCRIPTOR and CALL_EXPR_BY_DESCRIPTOR.
9317 * tree.c (make_node_stat) <tcc_declaration>: Use FUNCTION_ALIGNMENT.
9318 (build_common_builtin_nodes): Initialize init_descriptor and
9319 adjust_descriptor.
9320 * tree-nested.c: Include target.h.
9321 (struct nesting_info): Add 'any_descr_created' field.
9322 (get_descriptor_type): New function.
9323 (lookup_element_for_decl): New function extracted from...
9324 (create_field_for_decl): Likewise.
9325 (lookup_tramp_for_decl): ...here. Adjust.
9326 (lookup_descr_for_decl): New function.
9327 (convert_tramp_reference_op): Deal with descriptors.
9328 (build_init_call_stmt): New function extracted from...
9329 (finalize_nesting_tree_1): ...here. Adjust and deal with descriptors.
9330 * defaults.h (FUNCTION_ALIGNMENT): Define.
9331 (TRAMPOLINE_ALIGNMENT): Set to above instead of FUNCTION_BOUNDARY.
9332 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
9333 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
9334 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS):Likewise.
9335 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
9336
9337 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
9338
9339 * config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
9340 constants in CONST_VECTORs.
9341
9342 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
9343
9344 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
9345 register as destination of bmask.
9346 (vector_init_bshuffle): Likewise.
9347 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
9348 (bmaskdi_vis): Enable only in 64-bit mode.
9349
9350 2016-10-15 Segher Boessenkool <segher@kernel.crashing.org>
9351
9352 * config/rs6000/rs6000.c (rs6000_get_separate_components): Do not
9353 make LR a separately shrink-wrapped component unless savres_strategy
9354 contains all of {SAVE,REST}_INLINE_{GPRS,FPRS,VRS}. Do not wrap
9355 GPRs unless both {SAVE,REST}_INLINE_GPRS. Do not disallow all
9356 wrapping when not both {SAVE,REST}_INLINE_GPRS.
9357
9358 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
9359
9360 * optabs.c (expand_parity): Fix mode mismatch, add final conversion
9361 and keep looping on failure.
9362
9363 2016-10-14 David Malcolm <dmalcolm@redhat.com>
9364
9365 * print-rtl-function.c (print_edge): Omit "(flags)" when none are
9366 set.
9367 (print_rtx_function): Update example in comment for...
9368 * print-rtl.c (print_rtx_operand_code_r): In compact mode, print
9369 non-virtual pseudos with a '%' sigil followed by the regno, offset
9370 by (LAST_VIRTUAL_REGISTER + 1), so that the first non-virtual
9371 pseudo is dumped as "%0".
9372
9373 2016-10-14 Jakub Jelinek <jakub@redhat.com>
9374
9375 PR middle-end/77959
9376 * expr.c (expand_expr_real_1) <case CONST_DECL>: For EXPAND_WRITE
9377 return a MEM.
9378
9379 2016-10-14 Eric Botcazou <ebotcazou@adacore.com>
9380
9381 * config/sparc/sparc-passes.def: New file.
9382 * config/sparc/t-sparc (PASSES_EXTRA): Add sparc-passes.def.
9383 * config/sparc/sparc-protos.h (make_pass_work_around_errata): New.
9384 * config/sparc/sparc.c (sparc_option_override): Don't register passes.
9385
9386 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
9387
9388 * loop-unroll.c (unroll_loop_runtime_iterations): Condition initial
9389 loop peel to loops with exit test at the beginning.
9390
9391 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
9392
9393 PR rtl-optimization/68212
9394 * cfgloopmanip.c (duplicate_loop_to_header_edge): Use preheader edge
9395 frequency when computing scale factor for peeled copies.
9396 * loop-unroll.c (unroll_loop_runtime_iterations): Fix freq/count
9397 values for switch/peel blocks/edges.
9398
9399 2016-10-14 Pedro Alves <palves@redhat.com>
9400
9401 * coretypes.h (OVERRIDE, FINAL): Delete, moved to include/ansidecl.h.
9402
9403 2016-10-14 Catherine Moore <clm@codesourcery.com>
9404
9405 * config/mips/mips.c (mips_prepare_pch_save): Initialize
9406 micromips_globals to zero.
9407
9408 2016-10-14 Richard Biener <rguenther@suse.de>
9409
9410 PR tree-optimization/77979
9411 * tree-vrp.c (compare_name_with_value): Handle released SSA names
9412 in the equivalency sets.
9413 (compare_names): Likewise.
9414
9415 2016-10-14 Martin Liska <mliska@suse.cz>
9416
9417 * builtins.h(target_char_cst_p): Declare the function.
9418 * builtins.c (fold_builtin_memchr): Remove.
9419 (target_char_cst_p): Move the function from gimple-fold.c.
9420 (fold_builtin_3): Do not call the function.
9421 * gimple-fold.c (gimple_fold_builtin_memchr): New function.
9422 (gimple_fold_builtin): Call the function.
9423 * fold-const-call.c (fold_const_call_1): Handle CFN_BUILT_IN_MEMCHR.
9424
9425 2016-10-14 Martin Liska <mliska@suse.cz>
9426
9427 * builtins.c (fold_builtin_strcmp): Remove function.
9428 (fold_builtin_strncmp): Likewise.
9429 (fold_builtin_2): Remove call of the function.
9430 (fold_builtin_3): Likewise.
9431 * fold-const-call.c (fold_const_call): Add constant folding
9432 for CFN_BUILT_IN_STRCASECMP and CFN_BUILT_IN_STRNCASECMP.
9433 * fold-const-call.h (build_cmp_result): Declare the function.
9434 * gimple-fold.c (gimple_load_first_char): New function.
9435 (gimple_fold_builtin_string_compare): Likewise.
9436 (gimple_fold_builtin): Call the function.
9437
9438 2016-10-14 Nathan Sidwell <nathan@acm.org>
9439
9440 * gcov-io.c (gcov_open): Deconstify 'mode'.
9441
9442 2016-10-14 Martin Liska <mliska@suse.cz>
9443
9444 * fold-const.c (c_getstr): Support of properly \0-terminated
9445 string constants. New argument is added.
9446 * fold-const.h: New argument is added.
9447
9448 2016-10-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9449
9450 * config/aarch64/aarch64.c (aarch64_print_hint_for_core_or_arch):
9451 New function.
9452 (aarch64_print_hint_for_core): Likewise.
9453 (aarch64_print_hint_for_arch): Likewise.
9454 (aarch64_validate_march): Use it. Fix indentation in type signature.
9455 (aarch64_validate_mcpu): Use aarch64_print_hint_for_core_or_arch.
9456 (aarch64_validate_mtune): Likewise.
9457 (aarch64_handle_attr_arch): Likewise.
9458 (aarch64_handle_attr_cpu): Likewise.
9459 (aarch64_handle_attr_tune): Likewise.
9460
9461 2016-10-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9462
9463 * optabs.def: Remove optab function gen_int_libfunc for sdivmod_optab
9464 and udivmod_optab.
9465
9466 2016-10-13 Andreas Schwab <schwab@linux-m68k.org>
9467
9468 * config/m68k/m68k.c (m68k_option_override): Check
9469 opt_fstack_limit_symbol_arg and opt_fstack_limit_register_no
9470 instead of stack_limit_rtx.
9471
9472 2016-10-13 Jakub Jelinek <jakub@redhat.com>
9473
9474 * dwarf2out.c (gen_member_die): Handle inline static data member
9475 definitions.
9476
9477 2016-10-13 Nathan Sidwell <nathan@acm.org>
9478
9479 * gcov-io.c (gcov_open): Fix documentation. Simplify setting
9480 gcov_var.mode. Remove unnecessary fstat.
9481
9482 2016-10-13 Segher Boessenkool <segher@kernel.crashing.org>
9483
9484 PR bootstrap/77962
9485 * function.c (thread_prologue_and_epilogue_insns): Call all
9486 make_*logue_seq in the same order as traditional. Call them
9487 all a second time if shrink_wrapped_separate.
9488
9489 2016-10-13 Marek Polacek <polacek@redhat.com>
9490
9491 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
9492 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Don't
9493 use -Wno-error.
9494
9495 2016-10-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9496
9497 PR tree-optimization/77937
9498 * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
9499 to infinite when we have a pointer with an increment of -1.
9500
9501 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
9502
9503 * coretypes.h: Move MEMMODEL_* macros and enum memmodel definition
9504 into ...
9505 * memmodel.h: This file.
9506 * alias.c, asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
9507 caller-save.c, calls.c, ccmp.c, cfgbuild.c, cfgcleanup.c,
9508 cfgexpand.c, cfgloopanal.c, cfgrtl.c, cilk-common.c, combine.c,
9509 combine-stack-adj.c, common/config/aarch64/aarch64-common.c,
9510 common/config/arm/arm-common.c, common/config/bfin/bfin-common.c,
9511 common/config/c6x/c6x-common.c, common/config/i386/i386-common.c,
9512 common/config/ia64/ia64-common.c, common/config/nvptx/nvptx-common.c,
9513 compare-elim.c, config/aarch64/aarch64-builtins.c,
9514 config/aarch64/aarch64-c.c, config/aarch64/cortex-a57-fma-steering.c,
9515 config/arc/arc.c, config/arc/arc-c.c, config/arm/arm-builtins.c,
9516 config/arm/arm-c.c, config/avr/avr.c, config/avr/avr-c.c,
9517 config/avr/avr-log.c, config/bfin/bfin.c, config/c6x/c6x.c,
9518 config/cr16/cr16.c, config/cris/cris.c, config/darwin-c.c,
9519 config/darwin.c, config/epiphany/epiphany.c,
9520 config/epiphany/mode-switch-use.c,
9521 config/epiphany/resolve-sw-modes.c, config/fr30/fr30.c,
9522 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
9523 config/i386/i386-c.c, config/i386/winnt.c, config/iq2000/iq2000.c,
9524 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
9525 config/m68k/m68k.c, config/mcore/mcore.c,
9526 config/microblaze/microblaze.c, config/mmix/mmix.c,
9527 config/mn10300/mn10300.c, config/moxie/moxie.c,
9528 config/msp430/msp430.c, config/nds32/nds32-cost.c,
9529 config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
9530 config/nds32/nds32-memory-manipulation.c,
9531 config/nds32/nds32-predicates.c, config/nds32/nds32.c,
9532 config/nios2/nios2.c, config/nvptx/nvptx.c, config/pa/pa.c,
9533 config/pdp11/pdp11.c, config/rl78/rl78.c, config/rs6000/rs6000-c.c,
9534 config/rx/rx.c, config/s390/s390-c.c, config/s390/s390.c,
9535 config/sh/sh.c, config/sh/sh-c.c, config/sh/sh-mem.cc,
9536 config/sh/sh_treg_combine.cc, config/sol2.c, config/spu/spu.c,
9537 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
9538 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
9539 config/visium/visium.c, config/vms/vms-c.c, config/xtensa/xtensa.c,
9540 coverage.c, cppbuiltin.c, cprop.c, cse.c, cselib.c, dbxout.c, dce.c,
9541 df-core.c, df-problems.c, df-scan.c, dojump.c, dse.c, dwarf2asm.c,
9542 dwarf2cfi.c, dwarf2out.c, emit-rtl.c, except.c, explow.c, expmed.c,
9543 expr.c, final.c, fold-const.c, function.c, fwprop.c, gcse.c,
9544 ggc-page.c, haifa-sched.c, hsa-brig.c, hsa-gen.c, hw-doloop.c,
9545 ifcvt.c, init-regs.c, internal-fn.c, ira-build.c, ira-color.c,
9546 ira-conflicts.c, ira-costs.c, ira-emit.c, ira-lives.c, ira.c, jump.c,
9547 loop-doloop.c, loop-invariant.c, loop-iv.c, loop-unroll.c,
9548 lower-subreg.c, lra.c, lra-assigns.c, lra-coalesce.c,
9549 lra-constraints.c, lra-eliminations.c, lra-lives.c, lra-remat.c,
9550 lra-spills.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
9551 postreload-gcse.c, postreload.c, predict.c, print-rtl-function.c,
9552 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
9553 reload.c, reload1.c, reorg.c, resource.c, rtl-chkp.c, rtl-tests.c,
9554 rtlanal.c, rtlhooks.c, sched-deps.c, sched-rgn.c, sdbout.c,
9555 sel-sched-ir.c, sel-sched.c, shrink-wrap.c, simplify-rtx.c,
9556 stack-ptr-mod.c, stmt.c, stor-layout.c, target-globals.c,
9557 targhooks.c, toplev.c, tree-nested.c, tree-outof-ssa.c,
9558 tree-profile.c, tree-ssa-coalesce.c, tree-ssa-ifcombine.c,
9559 tree-ssa-loop-ivopts.c, tree-ssa-loop.c, tree-ssa-reassoc.c,
9560 tree-ssa-sccvn.c, tree-vect-data-refs.c, ubsan.c, valtrack.c,
9561 var-tracking.c, varasm.c: Include memmodel.h.
9562 * genattrtab.c (write_header): Include memmodel.h in generated file.
9563 * genautomata.c (main): Likewise.
9564 * gengtype.c (open_base_files): Likewise.
9565 * genopinit.c (main): Likewise.
9566 * genconditions.c (write_header): Include memmodel.h earlier in
9567 generated file.
9568 * genemit.c (main): Likewise.
9569 * genoutput.c (output_prologue): Likewise.
9570 * genpeep.c (main): Likewise.
9571 * genpreds.c (write_insn_preds_c): Likewise.
9572 * genrecog.c (write_header): Likewise.
9573 * Makefile.in (PLUGIN_HEADERS): Include memmodel.h
9574
9575 2016-10-13 David Malcolm <dmalcolm@redhat.com>
9576
9577 * function-tests.c (selftest::test_expansion_to_rtl): Add "true"
9578 for new "compact" param of print_rtx_function. Check for "cinsn"
9579 rather than "insn".
9580 * print-rtl-function.c (flag_compact): New decl.
9581 (print_rtx_function): Add param "compact" and use it to set
9582 flag_compact, adding a description of the effect to the leading
9583 comment, and updating the example output.
9584 * print-rtl.c (flag_compact): New variable.
9585 (print_rtx_operand_code_0): Omit the JUMP_LABEL reference in compact
9586 mode.
9587 (print_rtx_operand_code_i): When printing source locations, wrap
9588 xloc.file in quotes. Don't print INSN_CODEs in compact mode.
9589 (print_rtx_operand_code_r): Don't print regnos for hard regs and
9590 virtuals in compact mode.
9591 (print_rtx_operand_code_u): Don't print insn UIDs in compact mode,
9592 apart from in LABEL_REFs.
9593 (print_rtx_operand): In case 'w', don't print in hex in compact mode.
9594 Don't print basic block ids in compact mode.
9595 (print_rtx): In compact mode, prefix the code of insns with "c",
9596 only print the INSN_UID of CODE_LABELs, and omit their LABEL_NUSES.
9597 * print-rtl.h (print_rtx_function): Add "compact" param.
9598
9599 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
9600
9601 * arm.h (TARGET_VFP): Delete.
9602 (TARGET_VFPD32): Remove references to TARGET_VFP.
9603 (TARGET_VFP3, TARGET_VFP5): Likewise.
9604 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Likewise.
9605 (TARGET_NEON_FP16): Likewise.
9606 (TARGET_FMA): Likewise.
9607 (TARGET_CRYPTO): Likewise.
9608 (TARGET_NEON): Likewise.
9609 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
9610 (FUNCTION_ARG_REGNO_P): Likewise.
9611 * arm.c (arm_option_check_internal): Likewise.
9612 (arm_option_override): Likewise.
9613 (use_return_insn): Likewise.
9614 (arm_function_value_regno_p): Likewise.
9615 (arm_apply_result_size): Likewise.
9616 (use_vfp_abi): Likewise.
9617 (arm_legitimate_address_outer_p): Likewise.
9618 (thumb2_legitimate_address_p): Likewise.
9619 (arm_legitimate_index_p): Likewise.
9620 (thumb2_legitimate_index_p): Likewise.
9621 (arm_legitimate_address): Likewise.
9622 (arm_get_vfp_saved_size): Likewise.
9623 (arm_emit_vfp_multi_reg_pop): Likewise.
9624 (arm_get_frame_offsets): Likewise.
9625 (arm_save_coproc_regs): Likewise.
9626 (arm_hard_regno_mode_ok): Likewise.
9627 (arm_expand_epilogue_apcs_frame): Likewise.
9628 (arm_expand_epilogue): Likewise.
9629 (arm_file_start): Likewise.
9630 (arm_conditional_register_usage): Likewise.
9631 (arm_validize_comparison): Use vfp_compare_operand directly.
9632 * arm-builtins.c (arm_init_builtins): Remove references to TARGET_VFP.
9633 (arm_expand_vfp_builtin): Use TARGET_HARD_FLOAT for detecting
9634 unsupported usage.
9635 (arm_atomic_assign_expand_fenv): Likewise.
9636 * arm.md (divsf3): Likewise.
9637 (arm_negsi2): Likewise.
9638 (absdf2): Likewise.
9639 (arm_movdi): Likewise.
9640 (arm_movt): Likewise.
9641 (cbranchsf4): Change predicate to vfp_compare_operand.
9642 (cbranchdf4): Change predicate to vfp_compare_operand.
9643 (cstorehf4): Change predicate to vfp_compare_operand.
9644 (cstoresf4): Change predicate to vfp_compare_operand.
9645 (cstoredf4): Change predicate to vfp_compare_operand.
9646 (vfp_pop_multiple_with_writeback): Remove references to TARGET_VFP.
9647 (movhi_insn_arch4, movhi_bytes): Likewise.
9648 * constraints.md (Dt): Likewise.
9649 (Dp): Likewise.
9650 * iterators.md (SDF): Likewise.
9651 * predicates.md (arm_float_compare_operand): Delete.
9652 (const_double_vcvt_power_of_two_reciprocal): Remove references to
9653 TARGET_VFP.
9654 (const_double_vcvt_power_of_two): Likewise.
9655 * thumb2.md thumb2_movsi_insn): Likewise.
9656 * vfp.md (arm_movhi_vfp, thumb2_movhi_vfp): Likewise.
9657 (movhf_vfp): Likewise.
9658 (arm_movsi_vfp, thumb2_movsi_vfp): Likewise.
9659 (movdi_vfp, movdi_vfp_cortexa8): Likewise.
9660 (movsf_vfp, thumb2_movsf_vfp): Likewise.
9661 (movdf_vfp, thumb2_movdf_vfp): Likewise.
9662 (movsfcc_vfp, abssf2_vfp, negsf2_vfp, addsf3_vfp): Likewise.
9663 (subsf3_vfp, divsf3_vfp): Likewise.
9664 (mulsf3_vfp, mulsf3negsf_vfp, negmulsf3_vfp): Likewise.
9665 (mulsf3addsf_vfp, (mulsf3subsf_vfp, mulsf3negsfaddsf_vfp): Likewise.
9666 (mulsf3negsfsubsf_vfp): Likewise.
9667 (truncsisf2_vfp, fixuns_truncsfsi2, floatsisf2_vfp): Likewise.
9668 (floatunssisf2, sqrtsf2_vfp): Likewise.
9669 (movcc_vfp): Likewise.
9670 (cmpsf_split_vfp, cmpsf_trap_split_vfp): Likewise.
9671 (cmpsf_vfp, cmpsf_trap_vfp): Likewise.
9672 (push_multi_vfp): Likewise.
9673 (set_fpscr, get_fpscr): Likewise.
9674 * arm-c.c (arm_cpu_builtins): Unconditionally define __VFP_FP__.
9675
9676 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
9677
9678 * arm.h (TARGET_VFP): Unconditionally define to 1.
9679 (arm_fpu_desc): Remove 'model' field.
9680 (TARGET_FPU_MODEL): Delete.
9681 * arm.c (all_fpus): Don't initialize the model field.
9682 (arm_can_inline_p): Don't check the FPU model.
9683 * arm-fpus.def: Remove redundant model field from all FPU
9684 descriptions.
9685
9686 2016-10-13 Richard Biener <rguenther@suse.de>
9687
9688 PR middle-end/77826
9689 * genmatch.c (struct capture): Add value_match member.
9690 (commutate): Preserve value_match.
9691 (lower_opt_convert): Likewise.
9692 (lower_cond): Likewise.
9693 (replace_id): Likewise.
9694 (struct dt_operand): Add value_match member.
9695 (decision_tree::cmp_node): Compare it.
9696 (decision_tree::insert_operand): Honor it when finding and
9697 when appending a DT_MATCH.
9698 (dt_operand::gen_match_op): Generate a type check after
9699 operand_equal_p if ! value_match for both GENERIC and GIMPLE.
9700 (parser::get_internal_capture_id): New helper.
9701 (parser::finish_match_operand): New function lowering @@<id>.
9702 (parser::parse_capture): Parse @@<id> as value-match.
9703 (parser::parse_expr): Use get_internal_capture_id.
9704 (parser::parse_simplify): Call finish_match_operand.
9705 (walk_captures): New helper.
9706 * match.pd (X - (X / Y) * Y -> X % Y): Use value-matching instead
9707 of operand_equal_p.
9708 ((X /[ex] A) * A -> X): Likewise.
9709 ((X | Y) ^ X -> Y & ~ X): Handle constants properly by using
9710 convert[12] and value-matching.
9711 ((A | B) & (A | C) -> A | (B & C)): Likewise.
9712 ((X | Y) | Y -> X | Y): Likewise.
9713 ((X ^ Y) ^ Y -> X): Likewise.
9714 (A - (A & B) -> ~B & A): Likewise.
9715 ((T)(P + A) - (T)P -> (T) A): Likewise.
9716 ((T)P - (T)(P + A) -> -(T) A): Likewise.
9717 ((T)(P + A) - (T)(P + B) -> (T)A - (T)B): Likewise.
9718 * doc/match-and-simplify.texi: Amend capture section.
9719
9720 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
9721
9722 * config/arc/arc.md (umul_600): Remove predicated variant.
9723 (umul64_600): Likewise.
9724
9725 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
9726
9727 * config/arc/arc.h (INSN_LENGTH_ALIGNMENT): Change.
9728
9729 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9730
9731 * tree-vect-loop.c (loop_niters_no_overflow): New func.
9732 (vect_transform_loop): Call loop_niters_no_overflow. Pass the
9733 no-overflow information to vect_do_peeling_for_loop_bound and
9734 vect_gen_vector_loop_niters.
9735
9736 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9737
9738 * tree-predcom.c (tree_predictive_commoning_loop): Skip loop that only
9739 iterates 1 time.
9740
9741 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9742
9743 * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Don't release
9744 adjust_vec automatically.
9745 (slpeel_add_loop_guard): Remove param cond_expr_stmt_list. Rename
9746 param exit_bb to guard_to.
9747 (slpeel_checking_verify_cfg_after_peeling):
9748 (set_prologue_iterations):
9749 (create_lcssa_for_virtual_phi): New func which is factored out from
9750 slpeel_tree_peel_loop_to_edge.
9751 (slpeel_tree_peel_loop_to_edge):
9752 (iv_phi_p): New func.
9753 (vect_can_advance_ivs_p): Call iv_phi_p.
9754 (vect_update_ivs_after_vectorizer): Call iv_phi_p. Directly insert
9755 new gimple stmts in basic block.
9756 (vect_gen_niters_for_prolog_loop): Rename to...
9757 (vect_gen_prolog_loop_niters): ...Rename from. Change parameters and
9758 adjust implementation.
9759 (vect_update_inits_of_drs): Fix code style issue. Convert niters to
9760 sizetype if necessary.
9761 (vect_build_loop_niters): Move to here from tree-vect-loop.c. Change
9762 it to external function.
9763 (vect_gen_scalar_loop_niters, vect_gen_vector_loop_niters): New.
9764 (vect_gen_vector_loop_niters_mult_vf): New.
9765 (slpeel_update_phi_nodes_for_loops): New.
9766 (slpeel_update_phi_nodes_for_guard1): Reimplement.
9767 (find_guard_arg, slpeel_update_phi_nodes_for_guard2): Reimplement.
9768 (slpeel_update_phi_nodes_for_lcssa, vect_do_peeling): New.
9769 * tree-vect-loop.c (vect_build_loop_niters): Move to file
9770 tree-vect-loop-manip.c
9771 (vect_generate_tmps_on_preheader): Delete.
9772 (vect_transform_loop): Rename vectorization_factor to vf. Call
9773 vect_do_peeling instead of vect_do_peeling-* functions.
9774 * tree-vectorizer.h (vect_do_peeling): New decl.
9775 (vect_build_loop_niters, vect_gen_vector_loop_niters): New decls.
9776 (vect_do_peeling_for_loop_bound): Delete.
9777 (vect_do_peeling_for_alignment): Delete.
9778
9779 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9780
9781 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Put
9782 duplicated loop after its preheader and after the original loop.
9783
9784 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9785
9786 * tree-vect-loop.c (vect_analyze_loop_2): Check and skip loop if it
9787 has no enough iterations for LOOP_VINFO_PEELING_FOR_GAPS.
9788
9789 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9790
9791 * tree-vect-loop.c (vectorizable_live_operation): Support handling
9792 for live variable outside loop but not in lcssa form.
9793
9794 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9795
9796 * cfg.c (reset_original_copy_tables): New func.
9797 * cfg.h (reset_original_copy_tables): New decl.
9798
9799 2016-10-13 Jakub Jelinek <jakub@redhat.com>
9800
9801 PR c/77946
9802 * tree.h (FALLTHROUGH_LABEL_P): Use private_flag instead of
9803 public_flag.
9804 * varasm.c (default_binds_local_p_3): Formatting fix.
9805
9806 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9807
9808 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Fix code
9809 style issue.
9810 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
9811 Remove useless code.
9812
9813 2016-10-13 Martin Liska <mliska@suse.cz>
9814
9815 PR tree-optimization/77943
9816 * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
9817 a different EH landing pads.
9818
9819 2016-10-13 Jakub Jelinek <jakub@redhat.com>
9820
9821 PR target/77957
9822 * hooks.h (hook_tree_void_null): Declare.
9823 * hooks.c (hook_tree_void_null): New function.
9824 * langhooks.c (lhd_return_null_tree_v): Remove.
9825 * langhooks-def.h (lhd_return_null_tree_v): Remove.
9826 * cfgexpand.c (stack_protect_prologue): If guard_decl is NULL,
9827 set y to const0_rtx.
9828 * function.c (stack_protect_epilogue): Likewise.
9829 * config/tilepro/tilepro.c (TARGET_STACK_PROTECT_GUARD): Redefine
9830 if TARGET_THREAD_SSP_OFFSET is defined.
9831 * config/s390/s390.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9832 * config/sparc/sparc.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9833 * config/tilegx/tilegx.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9834 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9835 * config/i386/i386.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9836 (ix86_stack_protect_guard): New function.
9837
9838 2016-10-13 Richard Biener <rguenther@suse.de>
9839
9840 * dwarf2out.c (tree_add_const_value_attribute): Do not try
9841 rtl_for_decl_init during early phase.
9842 (gen_variable_die): Do not create locations during early phase.
9843 (gen_label_die): Likewise.
9844 (decls_for_scope): Do not waste time handling BLOCK_NONLOCALIZED_VARs
9845 twice.
9846
9847 2016-10-12 Richard Biener <rguenther@suse.de>
9848
9849 * tree-vrp.c (evrp_dom_walker::try_find_new_range): Renamed from
9850 try_add_new_range and made to eturn new range.
9851 (evrp_dom_walker::before_dom_children): Push op1 value range before
9852 pushing op0 value range.
9853
9854 2016-10-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9855
9856 PR tree-optimization/77937
9857 * gimple-ssa-strength-reduction.c (analyze_increments): Use
9858 POINTER_TYPE_P on the candidate type to determine whether
9859 candidates in this chain require pointer arithmetic.
9860
9861 2016-10-12 Eric Botcazou <ebotcazou@adacore.com>
9862
9863 * config/visium/visium.c (visium_gimplify_va_arg): Emit a big-endian
9864 correction if the type is smaller than a word.
9865 (visium_select_cc_mode): Add ... fall through ... comment.
9866
9867 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9868
9869 * config/rs6000/rs6000.c (machine_function): Add new fields
9870 gpr_is_wrapped_separately and lr_is_wrapped_separately.
9871 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
9872 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
9873 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
9874 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
9875 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
9876 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
9877 (rs6000_get_separate_components): New function.
9878 (rs6000_components_for_bb): New function.
9879 (rs6000_disqualify_components): New function.
9880 (rs6000_emit_prologue_components): New function.
9881 (rs6000_emit_epilogue_components): New function.
9882 (rs6000_set_handled_components): New function.
9883 (rs6000_emit_prologue): Don't emit LR save if lr_is_wrapped_separately.
9884 Don't emit GPR saves if gpr_is_wrapped_separately for that register.
9885 (restore_saved_lr): Don't restore LR if lr_is_wrapped_separately.
9886 (rs6000_emit_epilogue): Don't emit GPR restores if
9887 gpr_is_wrapped_separately for that register. Don't make a
9888 REG_CFA_RESTORE note for registers we did not restore, either.
9889
9890 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9891
9892 * function.c (thread_prologue_and_epilogue_insns): Call
9893 try_shrink_wrapping_separate. Compute the prologue_seq afterwards,
9894 if it has possibly changed. Compute the split_prologue_seq and
9895 epilogue_seq later, too.
9896 * shrink-wrap.c: #include cfgbuild.h and insn-config.h.
9897 (dump_components): New function.
9898 (struct sw): New struct.
9899 (SW): New function.
9900 (init_separate_shrink_wrap): New function.
9901 (fini_separate_shrink_wrap): New function.
9902 (place_prologue_for_one_component): New function.
9903 (spread_components): New function.
9904 (disqualify_problematic_components): New function.
9905 (emit_common_heads_for_components): New function.
9906 (emit_common_tails_for_components): New function.
9907 (insert_prologue_epilogue_for_components): New function.
9908 (try_shrink_wrapping_separate): New function.
9909 * shrink-wrap.h: Declare try_shrink_wrapping_separate.
9910
9911 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9912
9913 * regrename.c (build_def_use): Invalidate chains that have a
9914 REG_CFA_RESTORE on some instruction.
9915
9916 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9917
9918 * dce.c (delete_unmarked_insns): Don't delete instructions with
9919 a REG_CFA_RESTORE note.
9920
9921 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9922
9923 * common.opt (-fshrink-wrap-separate): New flag.
9924 * doc/invoke.texi: Document it.
9925 * doc/tm.texi.in (Shrink-wrapping separate components): New subsection.
9926 * doc/tm.texi: Regenerate.
9927 * emit-rtl.h (struct rtl_data): New field shrink_wrapped_separate.
9928 * target.def (shrink_wrap): New hook vector.
9929 (get_separate_components, components_for_bb, disqualify_components,
9930 emit_prologue_components, emit_epilogue_components,
9931 set_handled_components): New hooks.
9932
9933 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9934
9935 * config/rs6000/rs6000.c (rs6000_return_in_memory): Warn for
9936 vector return by reference only if -Wpsabi.
9937 (rs6000_pass_by_reference): Similarly, for argument passing.
9938
9939 2016-10-12 David Malcolm <dmalcolm@redhat.com>
9940
9941 * function-tests.c: Include "print-rtl.h".
9942 (selftest::test_expansion_to_rtl): Call print_rtx_function on the
9943 function, and verify what is dumped.
9944 * print-rtl-function.c (print_edge): New function.
9945 (begin_any_block): New function.
9946 (end_any_block): New function.
9947 (can_have_basic_block_p): New function.
9948 (print_rtx_function): Track the basic blocks of insns in the
9949 chain, wrapping those that are within blocks within "(block)"
9950 directives. Remove the "(cfg)" directive.
9951
9952 2016-10-12 David Malcolm <dmalcolm@redhat.com>
9953
9954 * selftest.c (selftest::read_file): New function.
9955 (selftest::test_read_file): New function.
9956 (selftest::selftest_c_tests): Call test_read_file.
9957 * selftest.h (selftest::read_file): New decl.
9958
9959 2016-10-12 Richard Biener <rguenther@suse.de>
9960
9961 PR debug/77947
9962 * cgraphunit.c (analyze_functions): Preserve cgraph nodes
9963 function context.
9964
9965 2016-10-12 Thomas Schwinge <thomas@codesourcery.com>
9966
9967 * lto-streamer.c: Fix LTO_STREAMER_DEBUG build.
9968
9969 * dwarf2out.c (dwarf2_lineno_debug_hooks): Use
9970 dwarf2out_assembly_start.
9971
9972 * Makefile.in (SELFTEST_FLAGS): Add -nostdinc.
9973
9974 * Makefile.in (SELFTEST_FLAGS): New variable.
9975 (s-selftest, selftest-gdb, selftest-valgrind): Use it.
9976
9977 * vmsdbgout.c (vmsdbg_debug_hooks): Add filename parameter to
9978 early_finish hook.
9979
9980 2016-10-12 Georg-Johann Lay <avr@gjlay.de>
9981
9982 * rtl.h (struct rtx_def): Comment how RTX_FLAGS will be
9983 dumped in RTL dumps.
9984
9985 2016-10-12 Martin Liska <mliska@suse.cz>
9986
9987 * gimple-fold.c (create_tmp_reg_or_ssa_name): New function.
9988 (gimple_fold_builtin_memory_op): Use the function.
9989 (gimple_fold_builtin_strchr): Likewise.
9990 (gimple_fold_builtin_strcat): Likewise.
9991 (gimple_build): Likewise.
9992
9993 2016-10-12 Nathan Sidwell <nathan@acm.org>
9994
9995 * diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
9996
9997 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
9998
9999 * dwarf2out.c (int_loc_descriptor): Generate opcodes for another
10000 equivalent 32-bit constant (modulo 2**32) when that yields
10001 smaller instructions.
10002 (size_of_int_loc_descriptor): Update accordingly.
10003
10004 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
10005
10006 * dwarf2out.c (dwarf2out_early_global_decl): For nested
10007 functions, call dwarf2out_decl on the parent function first.
10008
10009 2016-10-12 Richard Biener <rguenther@suse.de>
10010
10011 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
10012 on the conversion.
10013
10014 2016-10-12 Richard Biener <rguenther@suse.de>
10015
10016 * tree-ssa-propagate.c
10017 (substitute_and_fold_dom_walker::before_dom_children): Do not
10018 ignore ASSERT_EXPRs but only preserve them.
10019 * tree-vrp.c (remove_range_assertions): Deal with ASSERT_EXPRs
10020 that have been propagated into.
10021 (vrp_finalize): Enable DCE for substitute_and_fold.
10022
10023 2016-10-12 Richard Biener <rguenther@suse.de>
10024
10025 PR tree-optimization/77920
10026 * tree-vrp.c (simplify_div_or_mod_using_ranges): Simplify.
10027 (simplify_min_or_max_using_ranges): Pass in gsi and use it.
10028 (simplify_abs_using_ranges): Likewise.
10029 (simplify_conversion_using_ranges): Likewise.
10030 (simplify_stmt_using_ranges): Adjust.
10031
10032 2016-10-12 Jakub Jelinek <jakub@redhat.com>
10033
10034 PR tree-optimization/77929
10035 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle
10036 (*ops)[ranges[i].idx]->op != ranges[i].exp case.
10037
10038 2016-10-12 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
10039
10040 PR target/77934
10041 * config/rs6000/vmx.md (vsx_concat_<mode>): The mtvsrdd instruction
10042 needs a base register for arg 1.
10043
10044 2016-10-12 Jakub Jelinek <jakub@redhat.com>
10045
10046 * common.opt (Wimplicit-fallthrough) Turn into alias to
10047 -Wimplicit-fallthrough=3. Remove EnabledBy.
10048 (Wimplicit-fallthrough=): New option.
10049 * gimplify.c (warn_implicit_fallthrough_r): Use
10050 OPT_Wimplicit_fallthrough_ instead of OPT_Wimplicit_fallthrough.
10051 * doc/invoke.texi (-Wimplicit-fallthrough): Document as alias
10052 to -Wimplicit-fallthrough=3.
10053 (-Wimplicit-fallthrough=): Document.
10054
10055 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
10056
10057 * config/sparc/sparc.c (emit_scc_insn): Remove direct support for EQ
10058 and GEU in DImode if TARGET_SUBXC.
10059 * config/sparc/sparc.md (seqdi<W:mode>_zero): Remove TARGET_SUBXC.
10060 (seqdi<W:mode>_zero_subxc): Delete.
10061 (neg_seqdi<W:mode>_zero): Remove TARGET_VIS3.
10062 (neg_seqdi<W:mode>_zero_vis3): Delete.
10063 (plus_seqdi<W:mode>_zero): Likewise.
10064 (minus_seqdi<W:mode>_zero): Likewise.
10065 (plus_plus_sltu<W:mode>): Accept only register.
10066 (addx<W:mode>): Likewise.
10067 (plus_sltu<W:mode>_vis3): Likewise.
10068 (plus_plus_sltu<W:mode>_vis3): Likewise.
10069 (neg_sgeu<W:mode>_vis3): Delete.
10070 (minus_sgeu<W:mode>_vis3): Likewise.
10071 (addxc<W:mode>): Accept only registers.
10072 (neg_sltu<W:mode>_subxc): Write %%g0 instead of 0.
10073 (minus_neg_sltu<W:mode>_subxc): Accept only register.
10074 (neg_plus_sltu<W:mode>_subxc): Likewise.
10075 (minus_sltu<W:mode>_subxc): Write %%g0 instead of 0.
10076 (minus_minus_sltu<W:mode>_subxc): Accept only register.
10077 (sgeu<W:mode>_insn_subxc): Delete.
10078 (plus_sgeu<W:mode>_subxc): Likewise.
10079 (subxc<W:mode>): Accept only register.
10080 (scc splitter): Split always GEU again.
10081
10082 2016-10-11 Jeff Law <law@redhat.com>
10083
10084 PR tree-optimization/77424
10085 * tree-ssa-threadupdate.c (thread_through_all_blocks): Remove
10086 dead conditionals. Assert that all e->aux fields are NULL.
10087
10088 2016-10-11 David Malcolm <dmalcolm@redhat.com>
10089
10090 * print-rtl.c (print_rtx): Rename "i" to "idx". Split out the
10091 operand-printing "switch" statement into...
10092 (print_rtx_operand_code_0): ...this new function, ...
10093 (print_rtx_operand_code_e): ...this new function, ...
10094 (print_rtx_operand_codes_E_and_V): ...this new function, ...
10095 (print_rtx_operand_code_i): ...this new function, ...
10096 (print_rtx_operand_code_r): ...this new function, ...
10097 (print_rtx_operand_code_u): ...this new function, ...
10098 (print_rtx_operand): ...and this new function.
10099
10100 2016-10-11 Uros Bizjak <ubizjak@gmail.com>
10101
10102 * config/alpha/alpha-passes.def: New file.
10103 * config/alpha/t-alpha: New file.
10104 * config/alpha/alpha-protos.h (gcc::context, rtl_opt_pass): Declare.
10105 (make_pass_handle_trap_shadows): New prototype.
10106 (make_pass_align_insns): Ditto.
10107 * config/alpha/alpha.c (alpha_option_override): Don't register
10108 passes here.
10109 * config.gcc (alpha*-*-*) Add alpha/t-alpha to tmake_file.
10110
10111 2016-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
10112
10113 PR target/77924
10114 * config/rs6000/rs6000.c (rs6000_init_builtins): Only create the
10115 distinct __ibm128 IBM extended double type if long doubles are
10116 128-bits and the default format for long double is IEEE 128-bit.
10117
10118 2016-10-11 Richard Biener <rguenther@suse.de>
10119
10120 * dwarf2out.c (DEBUG_STR_OFFSETS_SECTION): Remove conditional.
10121 (init_sections_and_labels): Use DEBUG_DWO_STR_OFFSETS_SECTION.
10122 (verify_die): New function.
10123 (dwarf2out_finish): Call it.
10124 (output_line_info): Handle case of -gsplit-dwarf without
10125 DWARF2_ASM_LINE_DEBUG_INFO.
10126
10127 2016-10-11 Richard Biener <rguenther@suse.de>
10128
10129 PR debug/77931
10130 * gimple-low.c (lower_gimple_bind): Handle arbitrary common
10131 sub-chains of BLOCK_VARS and gimple_bind_vars.
10132
10133 2016-10-11 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
10134
10135 * config/i386/znver1.md : Fix imov/imovx load type reservations.
10136
10137 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
10138
10139 * config/sparc/sparc.opt (msubxc): New option.
10140 * doc/invoke.texi (SPARC options): Document it and tidy up.
10141 * doc/tm.texi.in (Condition Codes): Adjust SPARC example.
10142 * doc/tm.texi: Regenerate.
10143 * config/sparc/sparc-modes.def (CC_NOOV): Rename into...
10144 (CCNZ): ...this.
10145 (CCX_NOOV): Rename into...
10146 (CCXNZ): ...this.
10147 (CCC): New.
10148 (CCXC): Likewise.
10149 * config/sparc/predicates.m (fcc_register_operand): Simplify.
10150 (fcc0_register_operand): Likewise.
10151 (icc_register_operand): New.
10152 (icc_or_fcc_register_operand): Simplify.
10153 (nz_comparison_operator): New.
10154 (c_comparison_operator): Likewise.
10155 (noov_compare_operator): Rename into...
10156 (icc_comparison_operator): ...this. Use above predicates.
10157 (noov_compare64_operator): Rename into...
10158 (v9_comparison_operator): ...this and tidy up.
10159 (fcc_comparison_operator): New.
10160 (icc_or_fcc_comparison_operator): Likewise.
10161 (v9_register_compare_operator): Rename info...
10162 (v9_register_comparison_operator): ...this.
10163 * config/sparc/sparc.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
10164 (sparc_option_override): Remove redundant VIS masks and add MASK_SUBXC
10165 for Niagara-7.
10166 (sparc_fixed_condition_code_regs): New function.
10167 (select_cc_mode): Remove ATTRIBUTE_UNUSED. Adjust for CCNZ/CCXNZ
10168 renaming and add support for CCC/CCXC.
10169 (output_cbranch): Likewise.
10170 (sparc_print_operand): Likewise.
10171 (gen_v9_scc): Remove obsolete assertion.
10172 (emit_scc_insn): Emit RTL directly for EQ and NE. Add direct support
10173 for EQ in DImode if TARGET_SUBXC. Remove test on TARGET_VIS3 for GEU.
10174 (output_cbcond): Remove bogus handling of CC modes.
10175 (sparc_register_move_cost): Return 100 for NO_REGS.
10176 * config/sparc/sparc.md (W): New mode iterator.
10177 (length): Adjust for noov_compare64_operator renaming.
10178 (cmpsi_sne): New instruction.
10179 (cmpdi_sne): Likewise.
10180 (seqdi_special): Delete.
10181 (seqdi_special): Likewise.
10182 (snesi<P:mode>_special): Likewise.
10183 (snedi_special): Likewise.
10184 (snedi_special_vis3): Likewise.
10185 (snesi patterns): Use W iterator.
10186 (snedi patterns): Likewise. Add TARGET_SUBXC patterns.
10187 (sltu patterns): Likewise.
10188 (sgeu patterns): Likewise.
10189 (scc splitter): Do not split GEU in DImode if TARGET_SUBXC.
10190 (normal_branch): Use icc_comparison_operator predicate.
10191 (inverted_branch): Likewise.
10192 (cbcond_sp32): Use comparison_operator predicate.
10193 (cbcond_sp64): Likewise.
10194 (normal_int_branch_sp64): Adjust for renaming
10195 (inverted_int_branch_sp64): Likewise.
10196 (mov<I:mode>_cc_reg_sp64): Likewise.
10197 (movsf_cc_reg_sp6): Likewise.
10198 (movdf_cc_reg_sp64): Likewise.
10199 (movtf_cc_reg_hq_sp64): Likewise.
10200 (movtf_cc_reg_sp64): Likewise.
10201 (mov<I:mode>_cc_v9): Use icc_or_fcc_comparison_operator predicate.
10202 (movsf_cc_v9): Likewise.
10203 (movdf_cc_v9): Likewise.
10204 (movtf_cc_hq_v9): Likewise.
10205 (movtf_cc_v9): Likewise.
10206 (adddi3): Call gen_adddi3_sp32.
10207 (adddi3_insn_sp32): Rename to...
10208 (adddi3_sp32): ...this. Accept only register_operand as operand #1
10209 and use CCCmode for the carry.
10210 (addx_extend_sp32): Use CCCmode for the carry.
10211 (addx_extend_sp64): Delete.
10212 (adddi3_extend_sp32): Use CCCmode for the carry.
10213 (cmp_plus patterns): Use CCNZ/CCXNZ mode and add C variants.
10214 (subdi3): Call gen_subdi3_sp32.
10215 (subdi3_insn_sp32): Rename to...
10216 (subdi3_sp32): ...this and use CCmode for the carry.
10217 (subx_extend_sp32): Use CCCmode for the carry.
10218 (subx_extend_sp64): Delete.
10219 (subdi3_extend_sp32): Use CCmode for the carry.
10220 (cmp_minus patterns): Use CCNZ/CCXNZ mode and add C variants.
10221 (negdi3): Call gen_negdi3_sp32.
10222 (negdi3_sp32): Use CCCmode for the carry.
10223 (cmp_neg patterns): Use CCNZ/CCXNZ mode and add C variants.
10224 (cmp_nz_ashift_1): Use CCNZ mode.
10225 (cmp_nz_set_ashift_1): Likewise.
10226 (ctrapsi4): Use comparison_operator predicate.
10227 (ctrapdi4): Likewise.
10228 (trapsi_insn): Use icc_comparison_operator predicate.
10229 (trapdi_insn): Likewise.
10230 (edge8 patterns): Use CCNZmode.
10231 (edge16 patterns): Likewise.
10232 (edge32 patterns): Likewise.
10233
10234 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
10235
10236 * config/visium/visium-modes.def (CC_NOOV): Rename into...
10237 (CCNZ): ...this.
10238 (CC_BTST): Rename into...
10239 (CCC): ...this.
10240 * config/visium/predicates.md (real_add_operand): New.
10241 (visium_btst_operator): Rename into...
10242 (visium_equality_comparison_operator): ...this.
10243 (visium_noov_operator): Rename into...
10244 (visium_nz_comparison_operator): ...this.
10245 (visium_c_comparison_operator): New.
10246 (visium_branch_operator): Adjust and deal with all CC modes.
10247 * config/visium/visium.c (visium_adjust_cost): Adjust.
10248 (visium_split_double_add): Use the *_set_carry patterns.
10249 (visium_select_cc_mode): Add support for CCC mode and adjust.
10250 (output_cbranch): Adjust and use the carry-based operators for
10251 floating-point comparisons.
10252 * config/visium/visium.md (flags_subst_arith): Adjust.
10253 (addsi3_insn_set_carry): New instruction.
10254 (subsi3_insn_set_carry): Likewise.
10255 (negsi2_insn_set_carry): Likewise.
10256 (btst): Adjust.
10257 (cmp<mode>_sne): Likewise.
10258 (cbranch<mode>4): Use ordered_comparison_operator.
10259 (cbranch<mode>4_insn): Likewise.
10260 (cbranchsi4_btst_insn): Adjust.
10261
10262 2016-10-11 Tom de Vries <tom@codesourcery.com>
10263
10264 PR middle-end/77558
10265 * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
10266 special-casing.
10267
10268 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
10269
10270 * tree.h (build_complex_type): Add second parameter with default.
10271 * tree.c (build_complex_type): Add NAMED second parameter and adjust
10272 recursive call. Create a TYPE_DECL only if NAMED is true.
10273 (build_common_tree_nodes): Pass true in calls to build_complex_type.
10274
10275 2016-10-11 Georg-Johann Lay <avr@gjlay.de>
10276
10277 New avr-passes.def to register AVR specific passes.
10278
10279 * config/avr/avr-passes.def: New file.
10280 * config/avr/t-avr (PASSES_EXTRA): Add avr-passes.def.
10281 * config/avr/avr-protos.h (gcc::context, rtl_opt_pass): Declare.
10282 (make_avr_pass_recompute_note): New proto.
10283 * config/avr/avr.c (make_avr_pass_recompute_notes): New function.
10284 (avr_pass_recompute_notes): Use anonymous namespace.
10285 (avr_register_passes): Remove function...
10286 (avr_option_override): ...and its call.
10287
10288 2016-10-11 Robert Suchanek <robert.suchanek@imgtec.com>
10289
10290 * config/mips/mips-cpus.def: Replace PTF_AVOID_BRANCHLIKELY with
10291 PTF_AVOID_BRANCHLIKELY_ALWAYS for generic architecture and with
10292 PTF_AVOID_BRANCHLIKELY_SPEED for others.
10293 (mips2, mips3, mips4): Add PTF_AVOID_BRANCHLIKELY_SIZE to tune
10294 flags.
10295 * config/mips/mips.c (mips_option_override): Enable the branch
10296 likely depending on the tune flags and optimization level.
10297 * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): Remove.
10298 (PTF_AVOID_BRANCHLIKELY_SPEED): Define.
10299 (PTF_AVOID_BRANCHLIKELY_SIZE): Likewise.
10300 (PTF_AVOID_BRANCHLIKELY_ALWAYS): Likewise.
10301
10302 2016-10-11 Richard Biener <rguenther@suse.de>
10303
10304 * lto-streamer-out.c (collect_block_tree_leafs): New helper.
10305 (output_function): Properly stream the whole block tree.
10306 * lto-streamer-in.c (input_function): Likewise.
10307
10308 2016-10-11 Marek Polacek <polacek@redhat.com>
10309
10310 * Makefile.in (C_COMMON_OBJS): Add c-family/c-warn.o.
10311
10312 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
10313
10314 * tree-vrp.c (evrp_dom_walker::try_add_new_range): New.
10315 (evrp_dom_walker::before_dom_children): Infer and push new value
10316 ranges for x in y < x.
10317
10318 2016-10-10 Joseph Myers <joseph@codesourcery.com>
10319
10320 PR target/77586
10321 * config/ia64/ia64.c (ia64_libgcc_floating_mode_supported_p)
10322 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
10323 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Likewise.
10324 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Likewise.
10325 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
10326 (IA64_NO_LIBGCC_TFMODE): Likewise.
10327
10328 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
10329
10330 * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
10331 copying.
10332
10333 2016-10-10 Andreas Tobler <andreast@gcc.gnu.org>
10334
10335 * config.gcc: Add aarch64-*-freebsd* support.
10336 * config.host: Likewise.
10337 * config/aarch64/aarch64-freebsd.h: New file.
10338 * config/aarch64/t-aarch64-freebsd: Ditto.
10339
10340 2016-10-10 Jeff Law <law@redhat.com>
10341
10342 PR tree-optimization/71947
10343 * tree-ssa-dom.c (cprop_into_stmt): Avoid replacing A with B, then
10344 B with A within a single statement.
10345
10346 2016-10-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10347
10348 PR tree-optimization/77824
10349 * gimple-ssa-strength-reduction.c (stmt_cost): Explicitly return
10350 zero cost for copies.
10351 (find_candidates_dom_walker::before_dom_children): Replace
10352 MODIFY_EXPR with SSA_NAME.
10353 (replace_mult_candidate): Likewise.
10354 (replace_profitable_candidates): Likewise.
10355
10356 2016-10-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10357
10358 * config/s390/s390.h: Wrap more macros args in brackets and fix
10359
10360 2016-10-10 Georg-Johann Lay <avr@gjlay.de>
10361
10362 * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
10363
10364 2016-10-10 Andreas Schwab <schwab@suse.de>
10365
10366 PR target/77738
10367 * config/ia64/ia64.md ("doloop_end"): Reject if mode of loop
10368 pseudo is not DImode.
10369
10370 2016-10-10 Claudiu Zissulescu <claziss@synopsys.com>
10371
10372 * common/config/arc/arc-common.c (arc_option_optimization_table):
10373 Remove compact casesi option.
10374 * config/arc/arc.c (arc_override_options): Use compact casesi
10375 option only for pre-ARCv2 cores.
10376 * doc/invoke.texi (mcompact-casesi): Update text.
10377
10378 2016-10-09 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
10379
10380 * config/rs6000/rs6000.h (TARGET_EFFICIENT_OVERLAPPING_UNALIGNED):
10381 Add macro to say we can efficiently handle overlapping unaligned
10382 loads.
10383 * config/rs6000/rs6000.c (expand_block_compare): Avoid generating
10384 poor code for processors older than p8.
10385
10386 2016-10-09 Eric Botcazou <ebotcazou@adacore.com>
10387
10388 * gen-pass-instances.awk: Remove GNUism.
10389
10390 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10391
10392 * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to
10393 NULL of (*ipcp_transformations)][node->uid].
10394
10395 2016-10-09 John David Anglin <danglin@gcc.gnu.org>
10396
10397 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
10398 (MALLOC_ABI_ALIGNMENT): Define.
10399
10400 2016-10-09 Jakub Jelinek <jakub@redhat.com>
10401
10402 * tree-ssa.c (target_for_debug_bind, verify_phi_args,
10403 ssa_undefined_value_p, maybe_optimize_var): Use VAR_P and/or
10404 VAR_OR_FUNCTION_DECL_P macros.
10405 * tree-chkp.c (chkp_register_var_initializer, chkp_make_static_bounds,
10406 chkp_get_bounds_for_decl_addr, chkp_parse_array_and_component_ref,
10407 chkp_find_bounds_1): Likewise.
10408 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Likewise.
10409 * hsa-gen.c (get_symbol_for_decl): Likewise.
10410 * cgraphunit.c (check_global_declaration, analyze_functions,
10411 handle_alias_pairs, thunk_adjust, cgraph_node::expand_thunk):
10412 Likewise.
10413 * gimple-fold.c (can_refer_decl_in_current_unit_p,
10414 canonicalize_constructor_val, gimple_get_virt_method_for_vtable):
10415 Likewise.
10416 * tree.c (set_decl_section_name, copy_node_stat,
10417 need_assembler_name_p, free_lang_data_in_decl, find_decls_types_r,
10418 merge_dllimport_decl_attributes, handle_dll_attribute,
10419 decl_init_priority_insert, auto_var_in_fn_p, array_at_struct_end_p,
10420 verify_type): Likewise.
10421 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior,
10422 find_explicit_erroneous_behavior): Likewise.
10423 * sdbout.c (sdbout_toplevel_data, sdbout_late_global_decl): Likewise.
10424 * ipa.c (process_references): Likewise.
10425 * tree-chkp-opt.c (chkp_get_check_result): Likewise.
10426 * varasm.c (get_block_for_decl, use_blocks_for_decl_p, make_decl_rtl,
10427 notice_global_symbol, assemble_variable, mark_decl_referenced,
10428 build_constant_desc, output_constant_def_contents, do_assemble_alias,
10429 make_decl_one_only, default_section_type_flags,
10430 categorize_decl_for_section, default_encode_section_info): Likewise.
10431 * trans-mem.c (requires_barrier): Likewise.
10432 * gimple-expr.c (mark_addressable): Likewise.
10433 * cfgexpand.c (add_scope_conflicts_1, expand_one_var,
10434 expand_used_vars_for_block, clear_tree_used, stack_protect_decl_p,
10435 expand_debug_expr): Likewise.
10436 * tree-dump.c (dequeue_and_dump): Likewise.
10437 * ubsan.c (instrument_bool_enum_load): Likewise.
10438 * tree-pretty-print.c (print_declaration): Likewise.
10439 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
10440 * tree-ssa-uninit.c (warn_uninitialized_vars): Likewise.
10441 * asan.c (asan_protect_global, instrument_derefs): Likewise.
10442 * tree-into-ssa.c (rewrite_stmt, maybe_register_def,
10443 pass_build_ssa::execute): Likewise.
10444 * var-tracking.c (var_debug_decl, track_expr_p): Likewise.
10445 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost, split_address_cost):
10446 Likewise.
10447 * ipa-split.c (test_nonssa_use, consider_split, mark_nonssa_use):
10448 Likewise.
10449 * tree-inline.c (insert_debug_decl_map, remap_ssa_name,
10450 can_be_nonlocal, remap_decls, copy_debug_stmt,
10451 initialize_inlined_parameters, add_local_variables,
10452 reset_debug_binding, replace_locals_op): Likewise.
10453 * dse.c (can_escape): Likewise.
10454 * ipa-devirt.c (compare_virtual_tables, referenced_from_vtable_p):
10455 Likewise.
10456 * tree-diagnostic.c (default_tree_printer): Likewise.
10457 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
10458 unpack_ts_decl_with_vis_value_fields,
10459 lto_input_ts_decl_common_tree_pointers): Likewise.
10460 * builtins.c (builtin_save_expr, fold_builtin_expect,
10461 readonly_data_expr): Likewise.
10462 * tree-ssa-structalias.c (new_var_info, get_constraint_for_ssa_var,
10463 create_variable_info_for, set_uids_in_ptset, visit_loadstore):
10464 Likewise.
10465 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
10466 * gimplify.c (force_constant_size, gimplify_bind_expr,
10467 gimplify_decl_expr, gimplify_var_or_parm_decl,
10468 gimplify_compound_lval, gimplify_init_constructor,
10469 gimplify_modify_expr, gimplify_asm_expr, gimplify_oacc_declare,
10470 gimplify_type_sizes): Likewise.
10471 * cgraphbuild.c (record_reference, record_type_list, mark_address,
10472 mark_load, mark_store, pass_build_cgraph_edges::execute): Likewise.
10473 * tree-ssa-live.c (mark_all_vars_used_1, remove_unused_scope_block_p,
10474 remove_unused_locals): Likewise.
10475 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p, ptrs_compare_unequal,
10476 ref_maybe_used_by_call_p_1, call_may_clobber_ref_p_1): Likewise.
10477 * function.c (instantiate_expr, instantiate_decls_1,
10478 setjmp_vars_warning, add_local_decl): Likewise.
10479 * alias.c (ao_ref_from_mem, get_alias_set, compare_base_symbol_refs):
10480 Likewise.
10481 * tree-stdarg.c (find_va_list_reference, va_list_counter_struct_op,
10482 va_list_ptr_read, va_list_ptr_write, check_all_va_list_escapes,
10483 optimize_va_list_gpr_fpr_size): Likewise.
10484 * tree-nrv.c (pass_nrv::execute): Likewise.
10485 * tsan.c (instrument_expr): Likewise.
10486 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
10487 * vtable-verify.c (verify_bb_vtables): Likewise.
10488 * tree-dfa.c (ssa_default_def, set_ssa_default_def,
10489 get_ref_base_and_extent): Likewise.
10490 * toplev.c (wrapup_global_declaration_1, wrapup_global_declaration_2):
10491 Likewise.
10492 * tree-sra.c (static bool constant_decl_p, find_var_candidates,
10493 analyze_all_variable_accesses): Likewise.
10494 * tree-nested.c (get_nonlocal_debug_decl,
10495 convert_nonlocal_omp_clauses, note_nonlocal_vla_type,
10496 note_nonlocal_block_vlas, convert_nonlocal_reference_stmt,
10497 get_local_debug_decl, convert_local_omp_clauses,
10498 convert_local_reference_stmt, nesting_copy_decl, remap_vla_decls):
10499 Likewise.
10500 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Likewise.
10501 * stmt.c (decl_overlaps_hard_reg_set_p): Likewise.
10502 * dbxout.c (dbxout_late_global_decl, dbxout_type_fields,
10503 dbxout_symbol, dbxout_common_check): Likewise.
10504 * expr.c (expand_assignment, expand_expr_real_2, expand_expr_real_1,
10505 string_constant): Likewise.
10506 * hsa.c (hsa_get_declaration_name): Likewise.
10507 * passes.c (rest_of_decl_compilation): Likewise.
10508 * tree-ssanames.c (make_ssa_name_fn): Likewise.
10509 * tree-streamer-out.c (pack_ts_decl_common_value_fields,
10510 pack_ts_decl_with_vis_value_fields,
10511 write_ts_decl_common_tree_pointers): Likewise.
10512 * stor-layout.c (place_field): Likewise.
10513 * symtab.c (symtab_node::maybe_create_reference,
10514 symtab_node::verify_base, symtab_node::make_decl_local,
10515 symtab_node::copy_visibility_from,
10516 symtab_node::can_increase_alignment_p): Likewise.
10517 * dwarf2out.c (add_var_loc_to_decl, tls_mem_loc_descriptor,
10518 decl_by_reference_p, reference_to_unused, rtl_for_decl_location,
10519 fortran_common, add_location_or_const_value_attribute,
10520 add_scalar_info, add_linkage_name, set_block_abstract_flags,
10521 local_function_static, gen_variable_die, dwarf2out_late_global_decl,
10522 optimize_one_addr_into_implicit_ptr,
10523 optimize_location_into_implicit_ptr): Likewise.
10524 * gimple-low.c (record_vars_into): Likewise.
10525 * ipa-visibility.c (update_vtable_references): Likewise.
10526 * tree-ssa-address.c (fixed_address_object_p, copy_ref_info):
10527 Likewise.
10528 * lto-streamer-out.c (tree_is_indexable, get_symbol_initial_value,
10529 DFS::DFS_write_tree_body, write_symbol): Likewise.
10530 * langhooks.c (lhd_warn_unused_global_decl,
10531 lhd_set_decl_assembler_name): Likewise.
10532 * attribs.c (decl_attributes): Likewise.
10533 * except.c (output_ttype): Likewise.
10534 * varpool.c (varpool_node::get_create, ctor_for_folding,
10535 varpool_node::assemble_decl, varpool_node::create_alias): Likewise.
10536 * fold-const.c (fold_unary_loc): Likewise.
10537 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
10538 ipa_find_agg_cst_from_init): Likewise.
10539 * omp-low.c (expand_omp_regimplify_p, expand_omp_taskreg,
10540 expand_omp_target, lower_omp_regimplify_p,
10541 grid_reg_assignment_to_local_var_p, grid_remap_prebody_decls,
10542 find_link_var_op): Likewise.
10543 * tree-chrec.c (chrec_contains_symbols): Likewise.
10544 * tree-cfg.c (verify_address, verify_expr, verify_expr_location_1,
10545 gimple_duplicate_bb, move_stmt_op, replace_block_vars_by_duplicates,
10546 execute_fixup_cfg): Likewise.
10547
10548 PR tree-optimization/77901
10549 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Only optimize
10550 if ranges[i].exp is SSA_NAME when looking for >= and only when
10551 ranges[i].exp is NULL or SSA_NAME when looking for the other
10552 comparison.
10553
10554 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10555
10556 * ipa-cp.c (ipcp_alignment_lattice): Remove.
10557 (ipcp_param_lattices): Remove field alignment.
10558 (print_all_lattices): Remove call to ipcp_alignment_lattice::print.
10559 (set_all_contains_variable): Remove call to
10560 ipcp_alignment_lattice::set_to_bottom.
10561 (initialize_node_lattices): Likewise.
10562 (propagate_alignment_accross_jump_function): Remove.
10563 (propagate_constants_accross_call): Remove call to
10564 propagate_alignment_accross_jump_function.
10565 (ipcp_store_alignment_results): Remove.
10566 (ipcp_driver): Remove call to ipcp_store_alignment_results.
10567 (propagate_bits_accross_jump_function): Handle ancestor jump function.
10568 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Remove
10569 pretty-printing of alignment jump function.
10570 (ipa_set_jf_unknown): Remove assignment to jfunc->alignment.known.
10571 (ipa_compute_jump_functions_for_edge): Adjust ipa_bits jump function for
10572 alignments and remove computing ipa_alignment jump function.
10573 (ipa_node_params_t::duplicate): Remove copying of src_trans->alignments.
10574 (ipa_write_jump_functions): Remove streaming for ipa_alignment.
10575 (ipa_read_jump_function): Remove reading of ipa_alignment.
10576 (write_ipcp_transformation_info): Remove streaming for alignment
10577 propagation summary.
10578 (read_ipcp_transformation_info): Remove reading of alignment
10579 propagation summary.
10580 (ipcp_update_alignments): Remove.
10581 (ipcp_update_bits): Adjust to set alignment for parameters of pointer
10582 type.
10583 (ipcp_transform_function): Remove call to ipcp_update_alignments()
10584 and remove assignment to (*ipcp_transformations)[node->uid].alignments.
10585 * ipa-prop.h (ipa_alignment): Remove.
10586 (ipa_jump_func): Remove field alignment.
10587 (ipcp_transformation_summary): Remove field alignments.
10588 * doc/invoke.texi: Mark fipa-cp-alignment as obsolete.
10589 * opts.c (default_options_table): Remove entry for fipa-cp-alignment.
10590 (enable_fdo_optimizations): Remove checking for fipa-cp-alignment.
10591
10592 2016-10-08 Eric Botcazou <ebotcazou@adacore.com>
10593
10594 * config/sparc/sparc.h (FIXED_REGISTERS): Add %icc.
10595
10596 * config/visium/visium.c (visium_expand_int_cstore): Revert latest
10597 change.
10598 (visium_expand_fp_cstore): Likewise.
10599
10600 2016-10-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10601
10602 * diagnostic-core.h (warning_at_rich_loc_n): Declare.
10603 * diagnostic.c (warning_at_rich_loc_n): New function.
10604 (diagnostic_n_impl_richloc): Likewise.
10605 (diagnostic_n_impl): Move most of the function to
10606 diagnostic_n_impl_richloc and call it.
10607
10608 2016-10-08 Jakub Jelinek <jakub@redhat.com>
10609
10610 * gen-pass-instances.awk: Rewritten.
10611 * Makefile.in (pass-instances.def): Depend on $(PASSES_EXTRA), pass
10612 $(PASSES_EXTRA) after passes.def to the script.
10613 * config/i386/t-i386 (PASSES_EXTRA): Add i386-passes.def.
10614 * config/i386/i386-passes.def: New file.
10615 * config/i386/i386-protos.h (make_pass_insert_vzeroupper,
10616 make_pass_stv): Declare.
10617 * config/i386/i386.c (pass_stv::pass_stv): Initialize timode_p to
10618 false.
10619 (pass_stv::gate): Depending on timode_p member require TARGET_64BIT
10620 or !TARGET_64BIT.
10621 (pass_stv::clone, pass_stv::set_pass_param): New methods.
10622 (pass_stv::timode_p): New non-static data member.
10623 (ix86_option_override): Don't register passes here.
10624
10625 * doc/invoke.texi: Document accepting Else, fallthrough.
10626
10627 * doc/invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment
10628 style changes.
10629
10630 * doc/invoke.texi (-Wimplicit-fallthrough): Document the accepted
10631 FALLTHRU comment styles.
10632
10633 2016-10-07 Andrew Pinski <apinski@cavium.com>
10634
10635 * config/aarch64/aarch64-arches.def (AARCH64_ARCH): #undef at the end.
10636 * config/aarch64/aarch64-cores.def (AARCH64_CORE): Likewise.
10637 * config/aarch64/aarch64-fusion-pairs.def (AARCH64_FUSION_PAIR):
10638 Likewise.
10639 * config/aarch64/aarch64-option-extensions.def (AARCH64_OPT_EXTENSION):
10640 Likewise.
10641 * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNING_OPTION):
10642 Likewise.
10643 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Don't #undef here.
10644 (AARCH64_ARCH): Likewise.
10645 * common/config/aarch64/aarch64-common.c (AARCH64_OPT_EXTENSION):
10646 Likewise.
10647 (AARCH64_CORE): Likewise.
10648 (AARCH64_ARCH): Likewise.
10649 * config/aarch64/aarch64-protos.h (AARCH64_FUSION_PAIR): Likewise.
10650 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
10651 * config/aarch64/aarch64.c (AARCH64_FUION_PAIR): Likewise.
10652 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
10653 (AARCH64_ARCH): Likewise.
10654 (AARCH64_CORE): Likewise.
10655 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
10656 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Likewise.
10657 (AARCH64_CORE): Likewise.
10658 (AARCH64_ARCH): Likewise.
10659
10660 2016-10-06 Michael Meissner <meissner@linux.vnet.ibm.com>
10661
10662 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Split
10663 -mfloat128 into -mfloat128-type that enables the IEEE 128-bit
10664 floating point type infrastructre, and -mfloat128 that enables the
10665 keyword. Define __FLOAT128__ if -mfloat128, and __FLOAT128_TYPE__
10666 if -mfloat128-type. Define __ibm128 to be long double by default.
10667 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print whether
10668 the IEEE 128-bit floating point type infrastructure should
10669 automatically be enabled.
10670 (rs6000_init_hard_regno_mode_ok): Switch to use -mfloat128-type
10671 instead of -mfloat128 to enable KFmode.
10672 (rs6000_option_override_internal): Split the option -mfloat128
10673 into -mfloat128-type and -mfloat128. On Linux PowerPC 64-bit
10674 systems, automatically set -mfloat128-type, but don't enable it on
10675 other operating systems. Move setting the long double size and
10676 IEEE quad support before the IEEE 128-bit floating point changes.
10677 (rs6000_init_builtins): Do not create a unique type for __ibm128
10678 if long double is IBM extended double, instead rely on __ibm128
10679 being defined as 'long double'. If -mfloat128-type and not
10680 -mfloat128, create the KFmode type with an undocumented __ieee128
10681 keyword.
10682 (rs6000_init_libfuncs): Use -mfloat128-type instead of
10683 -mfloat128 for tests about the types, but keep tests for
10684 -mfloat128 to enable the keyword support.
10685 (rs6000_complex_function_value): Likewise.
10686 (rs6000_scalar_mode_supported_p): Likewise.
10687 (rs6000_floatn_mode): Likewise.
10688 (rs6000_c_mode_for_suffix): Likewise.
10689 (rs6000_opt_masks): Add -mfloat128-type.
10690 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add support for
10691 -mfloat128-type being split from -mfloat128. Add
10692 -mfloat128-hardware, which was missing.
10693 * config/rs6000/rs6000.opt (-mfloat128): Split -mfloat128 into
10694 -mfloat128 and -mfloat128-type:
10695 (-mfloat128-type): Likewise.
10696 * config/rs6000/linux64.h (TARGET_FLOAT128_ENABLE_TYPE): Define so
10697 that 64-bit Linux systems with enable -mfloat128-type by default
10698 on VSX systems.
10699 * config/rs6000/rs6000.h (TARGET_FLOAT128_ENABLE_TYPE): Likewise.
10700 (FLOAT128_VECTOR_P): Switch IEEE 128-bit floating points to use
10701 -mfloat128-type instead of -mfloat128.
10702 (FLOAT128_2REG_P): Likewise.
10703 (MASK_FLOAT128_TYPE): Likewise.
10704 (ALTIVEC_ARG_MAX_RETURN): Likewise.
10705 (RS6000_BTM_FLOAT128): Likewise.
10706 (TARGET_FLOAT128): Poison old identifiers.
10707 (OPTION_MASK_FLOAT128): Likewise.
10708 (MASK_FLOAT128): Likewise.
10709 * config/rs6000/rs6000.md (FP): Likewise.
10710 (FLOAT128): Likewise.
10711 (fix_trunc<mode>di2): Likewise.
10712 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
10713 (floatdi<mode>2): Likewise.
10714 (floatuns<SDI:mode><IEEE128:mode>2): Likewise.
10715 (neg<mode>2, FLOAT128 iterator): Likewise.
10716 (abs<mode>2, FLOAT128 iterator): Likewise.
10717 (ieee_128bit_negative_zero): Likewise.
10718 (ieee_128bit_vsx_neg<mode>2): Likewise.
10719 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
10720 (ieee_128bit_vsx_abs<mode>2): Likewise.
10721 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
10722 (ieee_128bit_vsx_nabs<mode>2): Likewise.
10723 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
10724 (extendiftf2): Likewise.
10725 (extendifkf2): Likewise.
10726 (extendtfkf2): Likewise.
10727 (trunciftf2): Likewise.
10728 (truncifkf2): Likewise.
10729 (trunckftf2): Likewise.
10730 (trunctfif2): Likewise.
10731 (extendkftf2): Likewise.
10732 (trunctfkf2): Likewise.
10733
10734 2016-10-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10735
10736 * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
10737 before merging in bytes to pass down to real_from_target.
10738
10739 2016-10-07 Richard Biener <rguenther@suse.de>
10740
10741 * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
10742 required hack.
10743 (substitute_and_fold_dom_walker::before_dom_children):
10744 Substitute and fold before pass specific folding to avoid
10745 feeding that with SSA names that will be later released.
10746 * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
10747 introduced by folding and visited by evaluate_stmt called during
10748 ccp_fold_stmt.
10749 (likely_value): Likewise.
10750 (evaluate_stmt): Likewise.
10751 * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
10752 (simplify_div_or_mod_using_ranges): Likewise.
10753 (simplify_min_or_max_using_ranges): Likewise.
10754 (simplify_abs_using_ranges): Likewise.
10755 (simplify_conversion_using_ranges): Likewise.
10756 (simplify_float_conversion_using_ranges): Likewise.
10757 (simplify_stmt_using_ranges): Likewise.
10758
10759 2016-10-07 Marek Polacek <polacek@redhat.com>
10760
10761 * gimplify.c (should_warn_for_implicit_fallthrough): Check for
10762 FALLTHROUGH_LABEL_P here...
10763 (warn_implicit_fallthrough_r): ...not here.
10764
10765 2016-10-07 Bernd Schmidt <bschmidt@redhat.com>
10766
10767 PR tree-optimization/77880
10768 * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
10769 necessary.
10770
10771 2016-10-07 Marek Polacek <polacek@redhat.com>
10772
10773 PR c++/77803
10774 * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
10775
10776 2016-10-07 Richard Biener <rguenther@suse.de>
10777
10778 * bitmap.h: Document constraints on bitmap modification while
10779 iterating over it.
10780
10781 2016-10-07 Richard Biener <rguenther@suse.de>
10782
10783 * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
10784 * bitmap.h (bmp_iter_set): When advancing to the next element
10785 check that we didn't remove the current one.
10786 (bmp_iter_and): Likewise.
10787 (bmp_iter_and_compl): Likewise.
10788 * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
10789 we currently iterate on but keep a one-level queue.
10790 * sched-deps.c (remove_from_deps): Do not clear current bit
10791 but keep a one-level queue.
10792
10793 2016-10-07 Jakub Jelinek <jakub@redhat.com>
10794
10795 PR tree-optimization/77664
10796 * tree-ssa-reassoc.c (update_range_test): Also clear low and high
10797 for the other ranges.
10798 (optimize_range_tests_diff): Fix up formatting.
10799 (optimize_range_tests_var_bound): New function.
10800 (optimize_range_tests): Use it.
10801
10802 2016-10-07 Martin Liska <mliska@suse.cz>
10803
10804 * coverage.c (build_gcov_exit_decl): Fix priority what
10805 should be really 99.
10806
10807 2016-10-07 Richard Biener <rguenther@suse.de>
10808
10809 * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
10810 vars in gimple_bind_vars but not in BLOCK_VARS.
10811
10812 2016-10-07 Richard Biener <rguenther@suse.de>
10813
10814 PR tree-optimization/77879
10815 * tree-ssa-structalias.c (handle_const_call): Properly handle
10816 NRV return slots.
10817 (handle_pure_call): Likewise.
10818
10819 2016-10-06 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
10820
10821 * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
10822 (rs6000_elf_asm_out_destructor): increase size of buf to avoid
10823 possible overflow.
10824
10825 2016-10-06 Andrew Pinski <apinski@cavium.com>
10826
10827 * config/aarch64/aarch64-cores.def: Add a comment before each
10828 set of cores.
10829
10830 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
10831
10832 PR tree-optimization/77862
10833 * tree-vrp.c (add_equivalence): Use get_value_range so that
10834 num_vr_values is checked before accessing vr_values.
10835
10836 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
10837
10838 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
10839 POINTER_TYPE_P.
10840
10841 2016-10-05 Jeff Law <law@redhat.com>
10842
10843 PR tree-optimization/71661
10844 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
10845 removal of a forwarder exposes a new natural loop.
10846
10847 2016-10-06 Uros Bizjak <ubizjak@gmail.com>
10848
10849 * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
10850 Introduce ssesuffix variable.
10851 (<mask_codefor><code><mode>3<mask_name>): Ditto.
10852 (*<code><mode>3): Ditto.
10853
10854 2016-10-06 Jan Hubicka <hubicka@ucw.cz>
10855
10856 * postreload.c (reload_cse_simplify): Skip also USE when detecting
10857 noop move.
10858
10859 2016-10-06 Richard Biener <rguenther@suse.de>
10860
10861 PR tree-optimization/77855
10862 * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
10863 instead of removing the current item while iterating over the set
10864 which is not safe.
10865
10866 2016-10-06 James Clarke <jrtc27@jrtc27.com>
10867 Eric Botcazou <ebotcazou@adacore.com>
10868
10869 PR target/77759
10870 * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
10871 (classify_registers): Don't set it
10872 (function_arg_slotno): Don't initialize and test it. Tidy up.
10873
10874 2016-10-06 Richard Biener <rguenther@suse.de>
10875
10876 PR tree-optimization/77839
10877 * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
10878 lattice transition.
10879
10880 2016-10-06 Martin Liska <mliska@suse.cz>
10881
10882 * gcc.c: Set -fprofile-update=atomic when profiling is
10883 enabled and -pthread is set. Warn when one combines
10884 -pthread and -fprofile-update=single for an app using
10885 profiling code.
10886
10887 2016-10-06 Martin Liska <mliska@suse.cz>
10888
10889 PR bootstrap/77788
10890 * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
10891 * gimple-ssa-strength-reduction.c (slsr_process_cast):
10892 Initialize a pointer to NULL.
10893 (slsr_process_copy): Likewise.
10894 * input.c (location_get_source_line): Likewise.
10895 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
10896
10897 2016-10-05 Andrew Senkevich <andrew.senkevich@intel.com>
10898
10899 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
10900 OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
10901 (ix86_handle_option): Deleted handle of OPT_mpcommit.
10902 * config.gcc: Deleted pcommitintrin.h
10903 * config/i386/pcommitintrin.h: Deleted file.
10904 * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
10905 * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
10906 detection.
10907 * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
10908 __PCOMMIT__.
10909 * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
10910 (PTA_PCOMMIT): Deleted define.
10911 (ix86_option_override_internal): Deleted handle of option.
10912 (ix86_valid_target_attribute_inner_p): Deleted pcommit.
10913 * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
10914 __builtin_ia32_pcommit): Deleted.
10915 * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
10916 * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
10917 (pcommit): Deleted instruction.
10918 * config/i386/i386.opt: Mention -mpcommit deprecation.
10919 * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
10920
10921 2016-10-05 Uros Bizjak <ubizjak@gmail.com>
10922
10923 PR target/77874
10924 * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
10925 Remove wrong assert.
10926 (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
10927 Use <round_constraint> as operand 1 constraint.
10928
10929 2016-10-05 Jakub Jelinek <jakub@redhat.com>
10930
10931 PR sanitizer/66343
10932 * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
10933 (ubsan_instrument_float_cast): And not here.
10934
10935 PR sanitizer/66343
10936 * ubsan.c (ubsan_ids): New GTY(()) array.
10937 (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
10938 instead of static local counters.
10939
10940 2016-10-05 Martin Sebor <msebor@redhat.com>
10941
10942 PR bootstrap/77819
10943 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
10944 * config/linux.c (gnu_libc_printf_pointer_format): Remove.
10945 * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
10946 (default_printf_pointer_format): Define function.
10947 * targhooks.c (linux_printf_pointer_format): Define new function.
10948 * targhooks.h (linux_printf_pointer_format): Declare.
10949 (gnu_libc_printf_pointer_format): Remove declaration.
10950
10951 2016-10-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10952
10953 * fold-const.c (native_encode_real): Fix logic for selecting offset
10954 to write to when BYTES_BIG_ENDIAN.
10955
10956 2016-10-05 Wilco Dijkstra <wdijkstr@arm.com>
10957
10958 * builtins.c (fold_builtin_strchr): Remove function.
10959 (fold_builtin_strrchr): Likewise.
10960 (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
10961 * gimple-fold.c (target_char_cst_p): New function.
10962 (gimple_fold_builtin_strchr) Add more foldings.
10963 (gimple_fold_builtin): Add index, strrchr, rindex cases.
10964
10965 2016-10-05 Richard Biener <rguenther@suse.de>
10966
10967 PR middle-end/77863
10968 * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
10969 capture ids in c-exprs.
10970
10971 2016-10-05 Richard Biener <rguenther@suse.de>
10972
10973 PR middle-end/77826
10974 * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
10975 with types_match for GIMPLE code gen to handle type mismatched
10976 constants properly.
10977 (dt_operand::gen): Adjust.
10978 * match.pd ((X /[ex] A) * A -> X): Properly handle converted
10979 and constant A.
10980
10981 2016-10-05 Richard Biener <rguenther@suse.de>
10982
10983 * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
10984
10985 2016-10-05 Richard Biener <rguenther@suse.de>
10986
10987 PR middle-end/77842
10988 * genmatch.c (parser::parse_c_expr): Handle premature EOF.
10989
10990 2016-10-05 Pierre-Marie de Rodat <derodat@adacore.com>
10991
10992 * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
10993 version check to protect only DW_TAG_imported_module generation.
10994
10995 2016-10-05 Richard Biener <rguenther@suse.de>
10996
10997 PR middle-end/55152
10998 * match.pd (min(a,-a) -> -abs(a)): New pattern.
10999
11000 2016-10-04 Ian Lance Taylor <iant@golang.org>
11001
11002 * explow.c (allocate_dynamic_stack_space): Call
11003 do_pending_stack_adjust before handling flag_split_stack.
11004
11005 2016-10-04 David Malcolm <dmalcolm@redhat.com>
11006
11007 * genattrtab.c (make_internal_attr): Supply dummy column number to
11008 file_location ctor.
11009 (main): Likewise.
11010 * genoutput.c (init_insn_for_nothing): Likewise.
11011 * gensupport.c (add_define_attr): Likewise.
11012 * read-md.c (message_at_1): Print column number.
11013 (fatal_with_file_and_line): Likewise.
11014 (rtx_reader::read_char): Track column numbers.
11015 (rtx_reader::unread_char): Likewise.
11016 (rtx_reader::rtx_reader): Initialize m_read_md_colno.
11017 (rtx_reader::handle_include): Stash and restore m_read_md_colno.
11018 (rtx_reader::handle_file): Initialize m_read_md_colno.
11019 (rtx_reader::get_current_location): Supply column number to
11020 file_location ctor.
11021 * read-md.h (struct file_location): Add field "colno".
11022 (file_location::file_location): Likewise.
11023 (rtx_reader::get_colno): New accessor.
11024 (rtx_reader::m_read_md_colno): New field.
11025 (rtx_reader::m_last_line_colno): New field.
11026
11027 2016-10-04 Jakub Jelinek <jakub@redhat.com>
11028
11029 * doc/extend.texi (Java Exceptions): Remove.
11030 (java_interface): Remove.
11031
11032 2016-10-04 Doug Gilmore <doug.gilmore@imgtec.com>
11033
11034 PR tree-optimization/77808
11035 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
11036 and addr are different before copying points-to information.
11037
11038 2016-10-04 Uros Bizjak <ubizjak@gmail.com>
11039
11040 * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
11041 * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
11042 * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
11043 of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
11044
11045 2016-10-04 Richard Biener <rguenther@suse.de>
11046
11047 PR tree-optimization/77399
11048 * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
11049 verify the target can convert.
11050
11051 2016-10-04 Richard Biener <rguenther@suse.de>
11052
11053 PR middle-end/77833
11054 * explow.c (plus_constant): Verify the mode of the constant
11055 pool offset before calling plus_constant.
11056
11057 2016-10-04 Richard Biener <rguenther@suse.de>
11058
11059 PR middle-end/77407
11060 * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
11061 type support, mark with :C.
11062 (X / -X -> -1): Mark with :C.
11063
11064 2016-10-04 Jakub Jelinek <jakub@redhat.com>
11065
11066 * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
11067 * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
11068 * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
11069 * doc/tm.texi: Regenerated.
11070 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
11071 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
11072 * config/darwin.h (JCR_SECTION_NAME): Remove.
11073 * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
11074 * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
11075 * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
11076 * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
11077 * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
11078 * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
11079
11080 2016-10-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11081
11082 * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
11083 between "because" and "param" in dump message in call to fprintf.
11084
11085 2016-10-03 Jeff Law <law@redhat.com>
11086
11087 PR tree-optimization/71550
11088 PR tree-optimization/71403
11089 * tree-ssa-threadbackward.c: Include tree-vectorizer.h
11090 (profitable_jump_thread_path): Also return boolean indicating if
11091 the realized path will create an irreducible loop.
11092 Remove loop depth tests from 71403.
11093 (fsm_find_control_statement_thread_paths): Remove loop depth tests
11094 from 71403. If threading will create an irreducible loop, then
11095 throw away loop iteration and related information.
11096
11097 2016-10-03 Uros Bizjak <ubizjak@gmail.com>
11098
11099 * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
11100 -Woverloaded-virtual checks for warning options.
11101 * configure: Regenerate.
11102
11103 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11104
11105 PR preprocessor/77699
11106 * input.c (maybe_grow): Don't allocate one byte extra headroom.
11107 (get_next_line): Return false on error.
11108 (read_next_line): Removed, use get_next_line instead.
11109 (read_line_num): Don't copy the line.
11110 (location_get_source_line): Don't use static data.
11111 (selftest::test_reading_source_line): Add more test cases.
11112
11113 2016-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11114
11115 Revert
11116 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11117
11118 * ifcvt.c (noce_try_avoid_const_materialization): New function.
11119 (noce_process_if_block): Use it.
11120
11121 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11122
11123 * doc/invoke.texi: Update -Wint-in-bool-context.
11124
11125 2016-10-02 Jakub Jelinek <jakub@redhat.com>
11126
11127 * dwarf2out.c (output_fde, output_call_frame_info,
11128 dwarf2out_do_cfi_startproc, set_indirect_string,
11129 gen_internal_sym, output_die, output_line_info): Use
11130 MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
11131 ASM_GENERATE_INTERNAL_LABEL output.
11132
11133 2016-10-01 Richard Biener <rguenther@suse.de>
11134
11135 PR middle-end/77798
11136 * genmatch.c (get_operand_type): Add operand position arg
11137 and handle COND_EXPR comparison operand with fixed boolean_type_node.
11138 (expr::gen_transform): Adjust.
11139 (dt_simplify::gen_1): Likewise.
11140
11141 2016-10-01 Jakub Jelinek <jakub@redhat.com>
11142
11143 * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
11144 comments. Simplify asserts, remove unnecessary conditions.
11145 Formatting fixes.
11146 (*<code><mode>3): Likewise.
11147
11148 2016-09-30 Jakub Jelinek <jakub@redhat.com>
11149
11150 * doc/invoke.texi (-Wregister): Document.
11151
11152 2016-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
11153
11154 * configure.ac: Split CHECKING_P into CHECKING_P and
11155 ENABLE_EXTRA_CHECKING.
11156 * configure: Regenerated.
11157 * config.in: Adjust commment of CHECKING_P. Add ENABLE_EXTRA_CHECKING.
11158 * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
11159
11160 2016-09-30 Prasad Ghangal <prasad.ghangal@gmail.com>
11161
11162 PR other/31566
11163 * gcc.c (process_command): For @filename handling, output
11164 the correct name if the file does not exist.
11165
11166 2016-09-30 Marek Polacek <polacek@redhat.com>
11167
11168 * config/aarch64/aarch64-simd.md: Adjust fall through comments.
11169 * config/alpha/predicates.md: Likewise.
11170
11171 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11172
11173 * ifcvt.c (noce_try_avoid_const_materialization): New function.
11174 (noce_process_if_block): Use it.
11175
11176 2016-09-30 Martin Liska <mliska@suse.cz>
11177
11178 * doc/invoke.texi: Document asan-use-after-return that
11179 it's disabled by default in runtime.
11180
11181 2016-09-30 Richard Biener <rguenther@suse.de>
11182
11183 * tree-vrp.c (intersect_ranges): If we failed to handle
11184 the intersection choose a constant singleton range if available.
11185
11186 2016-09-30 Richard Biener <rguenther@suse.de>
11187
11188 PR tree-optimization/77399
11189 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
11190 float <-> int conversions.
11191
11192 2016-09-30 Alan Modra <amodra@gmail.com>
11193
11194 * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
11195
11196 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
11197
11198 * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
11199 ext_level before calling CPUID with 0x80000008.
11200 Simplify xgetbv checks.
11201
11202 2016-09-29 David Malcolm <dmalcolm@redhat.com>
11203
11204 * Makefile.in (OBJS): Add print-rtl-function.o.
11205 * print-rtl-function.c: New file.
11206 * print-rtl.h (print_rtx_function): New decl.
11207
11208 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
11209
11210 PR target/77756
11211 * config/i386/cpuid.h (__get_cpuid_count): New.
11212 (__get_cpuid): Rename __level to __leaf.
11213
11214 2016-09-29 Marek Polacek <polacek@redhat.com>
11215
11216 * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
11217
11218 2016-09-29 Bernd Schmidt <bschmidt@redhat.com>
11219
11220 PR target/77718
11221 * builtins.c (expand_builtin_memcmp): Don't swap args unless
11222 result is only being compared with zero.
11223
11224 2016-09-29 Marek Polacek <polacek@redhat.com>
11225
11226 * dwarf2out.c (loc_descriptor): Add fall through comment.
11227 (add_const_value_attribute): Likewise.
11228
11229 2016-09-29 Matthew Wahab <matthew.wahab@arm.com>
11230
11231 * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
11232 with "v6t2". Move "arch" attribute above "pool_range".
11233 * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
11234 with "v6t2".
11235 (*thumb2_movhi_vfp): Likewise.
11236 (*arm_movhi_fp16): Likewise.
11237 (*thumb2_movhi_fp16): Likewise.
11238 (*arm_movsi_vfp): Remove "arch" attribute.
11239 (*thumb2_movsi_vfp): Likewise.
11240
11241 2016-09-29 Martin Liska <mliska@suse.cz>
11242
11243 * doc/extend.texi: Remove limitation of Objective C for
11244 __attribute__((constructor)) and __attribute__((destructor)).
11245
11246 2016-09-29 Richard Biener <rguenther@suse.de>
11247
11248 PR tree-optimization/77768
11249 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11250 Handle stores to readonly memory when removing redundant stores.
11251
11252 2016-09-29 Richard Biener <rguenther@suse.de>
11253
11254 PR middle-end/77407
11255 * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
11256 X / -X -> -1 simplifications.
11257
11258 2016-09-29 Richard Biener <rguenther@suse.de>
11259
11260 PR middle-end/55152
11261 * match.pd: Add max(a,-a) -> abs(a) pattern.
11262 * tree-ssa-phiopt.c (minmax_replacement): Disable for
11263 HONOR_SIGNED_ZEROS types.
11264
11265 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
11266
11267 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
11268 * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
11269
11270 2016-09-29 Richard Biener <rguenther@suse.de>
11271
11272 * tree-vrp.c (set_defs_to_varying): New helper avoiding
11273 writing to vr_const_varying.
11274 (vrp_initialize): Call it.
11275 (vrp_visit_stmt): Likewise.
11276 (evrp_dom_walker::before_dom_children): Likewise.
11277
11278 2016-09-29 Richard Biener <rguenther@suse.de>
11279
11280 * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
11281 constructors with vector elements.
11282
11283 2016-09-29 Richard Biener <rguenther@suse.de>
11284
11285 PR tree-optimization/77768
11286 * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
11287 with stores to a place we know has a constant value.
11288
11289 2016-09-29 Alan Modra <amodra@gmail.com>
11290
11291 * config/rs6000/sysv4.opt (mgnu-attribute): New option.
11292 * doc/invoke.texi: Document it.
11293 * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
11294 (rs6000_passes_float): Comment.
11295 (rs6000_passes_long_double): New static var.
11296 (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
11297 (init_cumulative_args): Set up to emit fp .gnu_attribute for
11298 ELF 64-bit ABIs as well as 32-bit ELF. Correct rs6000_passes_float
11299 to include fp values returned in vectors.
11300 Set rs6000_passes_long_double.
11301 (rs6000_function_arg_advance_1): Likewise for function args.
11302 (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
11303 and SPE. Emit long double tag value too.
11304 (rs6000_opt_vars): Add gnu-attr.
11305 * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
11306 * configure: Regenerate.
11307 * config.in: Regenerate.
11308
11309 2016-09-28 Jakub Jelinek <jakub@redhat.com>
11310
11311 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
11312 of 0 < x.
11313 (format_floating, format_string, format_directive,
11314 get_destination_size, pass_sprintf_length::handle_gimple_call):
11315 Likewise.
11316
11317 2016-09-28 Jakub Jelinek <jakub@redhat.com>
11318
11319 * gimple-ssa-sprintf.c: Fix comment formatting.
11320 (format_integer): Use is_gimple_assign.
11321 (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
11322 and gimple_call_fndecl. Reorder case BUILT_IN_SPRINTF_CHK. Fix up
11323 BUILT_IN_SNPRINTF_CHK comment. Replace "to to" with "to" in comment.
11324 (pass_sprintf_length::execute): Use is_gimple_call.
11325
11326 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
11327
11328 * gimple-fold.c (gimple_fold_builtin): After failing to fold
11329 strchr, also try the generic folding.
11330
11331 2016-09-28 Martin Sebor <msebor@redhat.com>
11332
11333 PR c/77762
11334 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
11335 Fix typos.
11336
11337 2016-09-28 Martin Sebor <msebor@redhat.com>
11338
11339 PR middle-end/77683
11340 * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
11341 length modifier is not expected.
11342 (format_floating): Ignore l length modifier and fail gracefuly
11343 when it isn't one of the other expected ones.
11344
11345 2016-09-28 Martin Sebor <msebor@redhat.com>
11346
11347 PR bootstrap/77753
11348 * varasm.c (assemble_addr_to_section): Increase local buffer size.
11349
11350 2016-09-27 Richard Biener <rguenther@suse.de>
11351
11352 * dwarf2out.c (cu_die_list): New global.
11353 (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs. Add
11354 main_comp_unit_die to cu_die_list if we created it.
11355 Move break_out_includes ...
11356 (dwarf2out_early_finish): ... here. Push created CU DIEs onto
11357 the cu_die_list.
11358
11359 2016-09-28 Richard Biener <rguenther@suse.de>
11360
11361 * dwarf2out.c (struct die_struct): Add removed flag.
11362 (lookup_type_die): If the DIE is marked as removed, clear
11363 TYPE_SYMTAB_DIE and return NULL.
11364 (lookup_decl_die): If the DIE is marked as removed, remove it
11365 from the hash and return NULL.
11366 (mark_removed): New helper.
11367 (prune_unused_types_prune): Call it for removed DIEs.
11368 (gen_subprogram_die): Move the premark_used_types call to after
11369 DIEs for the functions scopes are generated.
11370 (process_scope_var): Do not re-create pruned types or type decls.
11371 Make sure to also re-parent type decls.
11372 (dwarf2out_finish): Move unused type pruning and debug_types
11373 handling ...
11374 (dwarf2out_early_finish): ... here.
11375
11376 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
11377
11378 * config/arc/arc-c.c: New file.
11379 * config/arc/arc-c.def: Likewise.
11380 * config/arc/t-arc: Likewise.
11381 * config.gcc: Include arc-c.o as c and cpp object.
11382 * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
11383 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
11384 arc_cpu_cpp_builtins.
11385
11386 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
11387
11388 * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
11389 (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
11390
11391 2016-09-28 Nathan Sidwell <nathan@acm.org>
11392
11393 * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
11394 printing.
11395
11396 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
11397
11398 PR tree-optimization/61056
11399 * gimple-fold.c (gimple_fold_builtin_strchr):
11400 New function to optimize strchr (s, 0) to strlen.
11401 (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
11402
11403 2016-09-27 Robin Dapp <rdapp@linux.vnet.ibm.com>
11404
11405 PR tree-optimization/77724
11406 * tree-vect-loop-manip.c (create_intersect_range_checks_index):
11407 Add tree_fits_shwi_p check.
11408
11409 2016-09-27 Jakub Jelinek <jakub@redhat.com>
11410
11411 * auto-inc-dec.c (try_merge): Remove break after return.
11412 * cselib.c (autoinc_split): Likewise.
11413 * explow.c (promote_mode): Likewise.
11414 * fixed-value.c (fixed_arithmetic): Likewise.
11415 * hsa.c (hsa_internal_fn::get_arity): Likewise.
11416 * rtlanal.c (modified_between_p, modified_in_p): Likewise.
11417 * trans-mem.c (get_attrs_for): Likewise.
11418 * tree-if-conv.c (if_convertible_stmt_p): Likewise.
11419 * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
11420 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
11421 * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
11422 * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
11423 * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
11424 * config/cris/cris.c (cris_op_str): Likewise.
11425 * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
11426 * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
11427
11428 2016-09-27 Nathan Sidwell <nathan@codesourcery.com>
11429
11430 * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
11431 IFN_GOACC_REDUCTION_CODES): New.
11432 (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
11433 ifn_goacc_reduction_kind): Use them.
11434 * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
11435 of internal functions, when applicable.
11436
11437 2016-09-27 Maciej W. Rozycki <macro@imgtec.com>
11438
11439 * config/mips/constraints.md (d): Fix documentation.
11440 * doc/md.texi (Machine Constraints): Update accordingly.
11441
11442 2016-09-27 Richard Biener <rguenther@suse.de>
11443
11444 * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
11445 cur_line_info_table initialization ...
11446 (dwarf2out_assembly_start): ... here.
11447
11448 2016-09-27 Matthew Wahab <matthew.wahab@arm.com>
11449
11450 * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
11451 * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
11452 (*thumb2_movhi_vfp): Likewise.
11453 (*arm_movhi_fp16): Remove predication operand from VMOV.F16
11454 template. Expand predicable attribute to mark VMOV.F16 as not
11455 predicable. Add "arch" attribute.
11456 (*thumb2_movhi_fp16): Likewise.
11457 (*arm_movsi_vfp): Break a long line. Add "arch" attribute.
11458 (*thumb2_movsi_vfp): Add "arch" attribute.
11459
11460 2016-09-27 David Edelsohn <dje.gcc@gmail.com>
11461
11462 * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
11463 VAR_DECL string.
11464
11465 2016-09-27 Marek Polacek <polacek@redhat.com>
11466
11467 * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
11468 comment.
11469
11470 * config/c6x/c6x.h: Adjust fall through comment.
11471 * config/sh/sh.c (final_prescan_insn): Likewise.
11472 * config/visium/visium.c (visium_expand_int_cstore): Likewise.
11473 (visium_expand_fp_cstore): Likewise.
11474
11475 2016-09-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11476
11477 * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
11478 expected by -Wimplicit-fallthrough.
11479 (thumb1_size_rtx_costs): Likewise.
11480 (thumb2_reorg): Likewise.
11481 (tls_mentioned_p): Add "Fall through" comment.
11482 (thumb2_reorg): Likewise.
11483 * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
11484 comment form expected by -Wimplicit-fallthrough.
11485
11486 2016-09-27 Martin Liska <mliska@suse.cz>
11487
11488 PR gcov-profile/46266
11489 * input.h (RESERVED_LOCATION_P): New macro.
11490 * profile.c (branch_prob): Use RESERVED_LOCATION_P and
11491 instread of comparison with UNKNOWN_LOCATION.
11492
11493 2016-09-27 Richard Biener <rguenther@suse.de>
11494
11495 PR tree-optimization/77745
11496 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11497 When removing redundant stores make sure to check compatibility
11498 of the TBAA state for downstream accesses.
11499 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
11500 value-numbering virtual operands for store matches.
11501
11502 2016-09-27 Oleg Endo <olegendo@gcc.gnu.org>
11503
11504 PR target/51244
11505 * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
11506 movrt patterns. Match them before anything else in the SET case.
11507
11508 2016-09-27 Martin Liska <mliska@suse.cz>
11509
11510 PR gcov-profile/7970
11511 PR gcov-profile/16855
11512 PR gcov-profile/44779
11513 * coverage.c (build_gcov_exit_decl): New function.
11514 (coverage_obj_init): Call the function and generate __gcov_exit
11515 destructor.
11516 * doc/gcov.texi: Document when __gcov_exit function is called.
11517
11518 2016-09-27 Marek Polacek <polacek@redhat.com>
11519
11520 PR bootstrap/77751
11521 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
11522 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
11523 -Wno-error instead of -Wno-implicit-fallthrough.
11524
11525 2016-09-27 Martin Liska <mliska@suse.cz>
11526
11527 PR bootstrap/77749
11528 * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
11529
11530 2016-09-27 Jakub Jelinek <jakub@redhat.com>
11531
11532 * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
11533 * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
11534 comments. Remove break after return.
11535 (ix86_fp_compare_code_to_integer, has_dispatch,
11536 ix86_simd_clone_usable): Remove break after return.
11537
11538 2016-09-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
11539
11540 PR rlt-optimization/77714
11541 * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
11542 REG_EQUAL note.
11543
11544 2016-09-27 Kugan Vivekanandarajah <kuganv@linaro.org>
11545
11546 PR ipa/77677
11547 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
11548 extract_range_from_unary_expr to convert value_range.
11549 * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
11550 (extract_range_from_unary_expr): This.
11551 * tree-vrp.h (extract_range_from_unary_expr): Declare.
11552
11553 2016-09-27 Segher Boessenkool <segher@kernel.crashing.org>
11554
11555 * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
11556
11557 2016-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11558
11559 * config/i386/i386.c (ix86_print_operand)
11560 [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
11561 * config/sparc/sparc.c (check_pic): Add fallthrough comment.
11562 (epilogue_renumber): Likewise.
11563
11564 2016-09-26 Kugan Vivekanandarajah <kuganv@linaro.org>
11565
11566 PR middle-end/77719
11567 * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
11568 to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
11569
11570 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
11571
11572 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
11573 is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
11574 is_mm_seq_cst, is_mm_sync): Move to ...
11575 * memmodel.h: This. New file.
11576 * builtins.c: Include memmodel.h.
11577 * optabs.c: Likewise.
11578 * tsan.c: Likewise.
11579 * config/aarch64/aarch64.c: Likewise.
11580 * config/alpha/alpha.c: Likewise.
11581 * config/arm/arm.c: Likewise.
11582 * config/i386/i386.c: Likewise.
11583 * config/ia64/ia64.c: Likewise.
11584 * config/mips/mips.c: Likewise.
11585 * config/rs6000/rs6000.c: Likewise.
11586 * config/sparc/sparc.c: Likewise.
11587 * genconditions.c: Include memmodel.h in generated file.
11588 * genemit.c: Likewise.
11589 * genoutput.c: Likewise.
11590 * genpeep.c: Likewise.
11591 * genpreds.c: Likewise.
11592 * genrecog.c: Likewise.
11593
11594 2016-09-26 David Malcolm <dmalcolm@redhat.com>
11595
11596 * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
11597 "c" instead when parsing characters. Move operand parsing into...
11598 (read_rtx_operand): ...this new function, renaming "i" to "idx",
11599 and tightening the scope of various locals.
11600
11601 2016-09-26 Liu Hao <lh_mouse@126.com>
11602
11603 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
11604
11605 2016-09-26 Marek Polacek <polacek@redhat.com>
11606
11607 * system.h: Use __has_attribute to check whether the fallthrough
11608 attribute is supported.
11609
11610 2016-09-26 Marek Polacek <polacek@redhat.com>
11611
11612 * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
11613 gimple_call_internal_p.
11614 * ipa-split.c (find_return_bb): Likewise.
11615 (execute_split_functions): Likewise.
11616 * omp-low.c (dump_oacc_loop_part): Likewise.
11617 (oacc_loop_xform_head_tail): Likewise.
11618 * predict.c (predict_loops): Likewise.
11619 * sanopt.c (pass_sanopt::execute): Likewise.
11620 * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
11621 * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
11622 * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
11623 (expand_ifn_va_arg_1): Use gimple_call_internal_p.
11624 (expand_ifn_va_arg): Likewise.
11625 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
11626 (optimize_mask_stores): Likewise.
11627 * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
11628 (vect_transform_stmt): Likewise.
11629 * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
11630 * tsan.c (instrument_memory_accesses): Likewise.
11631
11632 2016-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11633 Alexander Monakov <amonakov@ispras.ru>
11634
11635 * regrename.c (rename_chains): Check
11636 HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
11637 HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
11638 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11639
11640 2016-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11641
11642 * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
11643 (s390_sched_score): Likewise.
11644
11645 2016-09-26 Martin Liska <mliska@suse.cz>
11646
11647 * doc/gcov.texi: Update program output of gcov tool.
11648
11649 2016-09-26 Martin Liska <mliska@suse.cz>
11650
11651 PR gcov-profile/23332
11652 * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
11653 * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
11654 * value-prof.c (dump_histogram_value): Do not handle
11655 HIST_TYPE_CONST_DELTA.
11656 (stream_in_histogram_value): Likewise.
11657 (gimple_find_values_to_profile): Likewise.
11658 * value-prof.h (enum hist_type): Likewise.
11659
11660 2016-09-26 Martin Liska <mliska@suse.cz>
11661
11662 * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
11663 from default sanitize recover values.
11664 * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
11665 -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
11666 * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
11667 consistent.
11668 * opts.c (finish_options): Do a generic loop over options
11669 that can be recovered.
11670 (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
11671 SANITIZE_RETURN.
11672 (common_handle_option): Likewise.
11673 * opts.h: Declare can_recover to sanitizer_opts_s.
11674
11675 2016-09-26 Andre Vieira <andre.simoesdiasvieira@arm.com>
11676
11677 * target.def(elf_flags_numeric): Change documentation to present tense.
11678 * doc/tm.texi: Regenerate.
11679
11680 2016-09-26 Marek Polacek <polacek@redhat.com>
11681
11682 PR c/7652
11683 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
11684 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
11685 -Wno-switch-fallthrough.
11686 * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
11687 (expand_builtin): Likewise.
11688 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
11689 * convert.c (convert_to_real_1): Likewise.
11690 (convert_to_integer_1): Likewise.
11691 * final.c (output_alternate_entry_point): Likewise.
11692 * genattrtab.c (make_canonical): Likewise.
11693 (write_test_expr): Likewise.
11694 * genpreds.c (validate_exp): Likewise.
11695 * gimple-ssa-strength-reduction.c
11696 (find_candidates_dom_walker::before_dom_children): Likewise.
11697 * godump.c (go_format_type): Likewise.
11698 * reload1.c (elimination_effects): Likewise.
11699 * resource.c (mark_referenced_resources): Likewise.
11700 (mark_set_resources): Likewise.
11701 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
11702 * varasm.c (output_addressed_constants): Likewise.
11703
11704 2016-09-26 Marek Polacek <polacek@redhat.com>
11705
11706 PR c/7652
11707 * common.opt (Wimplicit-fallthrough): New option.
11708 * doc/extend.texi: Document statement attributes and the fallthrough
11709 attribute.
11710 * doc/invoke.texi: Document -Wimplicit-fallthrough.
11711 * gimple.h (gimple_call_internal_p): New function.
11712 * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
11713 (struct label_entry): New struct.
11714 (find_label_entry): New function.
11715 (case_label_p): New function.
11716 (collect_fallthrough_labels): New function.
11717 (last_stmt_in_scope): New function.
11718 (should_warn_for_implicit_fallthrough): New function.
11719 (warn_implicit_fallthrough_r): New function.
11720 (maybe_warn_implicit_fallthrough): New function.
11721 (expand_FALLTHROUGH_r): New function.
11722 (expand_FALLTHROUGH): New function.
11723 (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
11724 expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
11725 (gimplify_label_expr): New function.
11726 (gimplify_case_label_expr): Set location.
11727 (gimplify_expr): Call gimplify_label_expr.
11728 * internal-fn.c (expand_FALLTHROUGH): New function.
11729 * internal-fn.def (FALLTHROUGH): New internal function.
11730 * langhooks.c (lang_GNU_OBJC): New function.
11731 * langhooks.h (lang_GNU_OBJC): Declare.
11732 * system.h (gcc_fallthrough): Define.
11733 * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
11734 * tree.h (FALLTHROUGH_LABEL_P): Define.
11735
11736 2016-09-26 Richard Biener <rguenther@suse.de>
11737
11738 * dwarf2out.c (stripattributes): Remove unused function.
11739 (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
11740 Push dwarf_split_debug_info handling into init_sections_and_labels.
11741 (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
11742 (DEBUG_MACRO_SECTION_FLAGS): Remove.
11743 (debug_macinfo_section_name): New global.
11744 (output_macinfo): Use debug_macinfo_section_name.
11745 (init_sections_and_labels): Split out section and label generation
11746 from dwarf2out_init. Set debug_macinfo_section_name.
11747 (dwarf2out_init): Move text section label generation and emission
11748 to ...
11749 (dwarf2out_assembly_start): ... here.
11750 (dwarf2out_finish): Call init_sections_and_labels before DWARF
11751 output starts.
11752
11753 2016-09-26 Richard Biener <rguenther@suse.de>
11754
11755 PR debug/77692
11756 * cgraphunit.c (analyze_functions): Before early removing
11757 global vars calls the late_global_decl debug handler mark
11758 the variable as readonly.
11759
11760 2016-09-25 Oleg Endo <olegendo@gcc.gnu.org>
11761
11762 PR target/51244
11763 * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
11764 (sh_rtx_costs): Handle SET of movt and movrt patterns.
11765 * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
11766 declare new overloads.
11767 * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
11768 operand.
11769
11770 2016-09-24 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
11771
11772 * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
11773 Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
11774
11775 2016-09-24 David Edelsohn <dje.gcc@gmail.com>
11776
11777 * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
11778 * configure: Regenerate.
11779
11780 2016-09-24 Marek Polacek <polacek@redhat.com>
11781
11782 PR c/77490
11783 * doc/invoke.texi: Document -Wbool-operation.
11784
11785 2016-09-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
11786
11787 * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
11788 * config/rs6000/rs6000.c (expand_block_compare): New function used by
11789 cmpmemsi pattern to do builtin expansion of memcmp ().
11790 (compute_current_alignment): Add helper function for
11791 expand_block_compare used to compute alignment as the compare proceeds.
11792 (select_block_compare_mode): Used by expand_block_compare to select
11793 the mode used for reading the next chunk of bytes in the compare.
11794 (do_load_for_compare): Used by expand_block_compare to emit the load
11795 insns for the compare.
11796 (rs6000_emit_dot_insn): Moved this function to avoid a forward
11797 reference from expand_block_compare ().
11798 * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
11799 prototype for this function.
11800 * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
11801 target option for controlling how much code inline expansion of
11802 memcmp() will be allowed to generate.
11803
11804 2016-09-23 Jakub Jelinek <jakub@redhat.com>
11805
11806 * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
11807 hook_bool_mode_false, hook_bool_mode_true,
11808 hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
11809 hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
11810 hook_bool_const_rtx_insn_const_rtx_insn_true,
11811 hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
11812 hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
11813 hook_bool_const_tree_hwi_hwi_const_tree_false,
11814 hook_bool_const_tree_hwi_hwi_const_tree_true,
11815 default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
11816 hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
11817 hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
11818 hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
11819 hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
11820 hook_bool_const_tree_true, hook_bool_tree_tree_false,
11821 hook_bool_tree_tree_true, hook_bool_tree_bool_false,
11822 hook_bool_rtx_insn_true, hook_bool_rtx_false,
11823 hook_bool_uintp_uintp_false,
11824 hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
11825 hook_rtx_tree_int_null, hook_uint_mode_0,
11826 hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
11827 hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
11828 hook_constcharptr_const_rtx_insn_null,
11829 hook_constcharptr_const_tree_const_tree_null,
11830 hook_constcharptr_int_const_tree_null,
11831 hook_constcharptr_int_const_tree_const_tree_null,
11832 hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
11833 hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
11834 ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
11835
11836 * vec.h (vNULL): Extend comment to say = vNULL initialization
11837 isn't needed for static vars.
11838
11839 * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
11840 loop_nests, s_i_d, last_added_blocks): Remove unnecessary
11841 = vNULL initialization of file scope vec.
11842 * passes.c (pass_tab, enabled_pass_uid_range_tab,
11843 disabled_pass_uid_range_tab): Likewise.
11844 * haifa-sched.c (sched_luids, h_i_d): Likewise.
11845 * tree-chkp-opt.c (check_infos): Likewise.
11846 * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
11847
11848 * vec.h (vnull::operator vec): Add constexpr keyword for
11849 C++11 and later.
11850
11851 2016-09-23 Doug Gilmore <doug.gilmore@imgtec.com>
11852
11853 PR tree-optimization/77654
11854 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
11855 to duplicate_ssa_name_ptr_info.
11856
11857 2016-09-23 David Malcolm <dmalcolm@redhat.com>
11858
11859 PR preprocessor/77672
11860 * input.c (selftest::test_lexer_string_locations_simple): Update
11861 test to expect location information of the terminator character
11862 at the location of the final closing quote.
11863 (selftest::test_lexer_string_locations_hex): Likewise.
11864 (selftest::test_lexer_string_locations_oct): Likewise.
11865 (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
11866 (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
11867 (selftest::test_lexer_string_locations_ucn4): Likewise.
11868 (selftest::test_lexer_string_locations_ucn8): Likewise.
11869 (selftest::test_lexer_string_locations_u8): Likewise.
11870 (selftest::test_lexer_string_locations_utf8_source): Likewise.
11871 (selftest::test_lexer_string_locations_concatenation_1): Likewise.
11872 (selftest::test_lexer_string_locations_concatenation_2): Likewise.
11873 (selftest::test_lexer_string_locations_concatenation_3): Likewise.
11874 (selftest::test_lexer_string_locations_macro): Likewise.
11875 (selftest::test_lexer_string_locations_long_line): Likewise.
11876
11877 2016-09-23 Richard Biener <rguenther@suse.de>
11878
11879 * tree-ssa-sccvn.c (visit_reference_op_call): Value number
11880 virtual definition to virtual use if the call devirtualizes
11881 to a const or pure function.
11882 (visit_use): Also visit calls we can devirtualize to a
11883 const or pure function.
11884
11885 2016-09-23 Richard Biener <rguenther@suse.de>
11886
11887 PR tree-optimization/77697
11888 * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
11889 signal error if we have sth ternary or unhandled.
11890
11891 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11892
11893 * config/arm/arm_neon.h (vabd_f16): New.
11894 (vabdq_f16): New.
11895 (vabs_f16): New.
11896 (vabsq_f16): New.
11897 (vadd_f16): New.
11898 (vaddq_f16): New.
11899 (vcage_f16): New.
11900 (vcageq_f16): New.
11901 (vcagt_f16): New.
11902 (vcagtq_f16): New.
11903 (vcale_f16): New.
11904 (vcaleq_f16): New.
11905 (vcalt_f16): New.
11906 (vcaltq_f16): New.
11907 (vceq_f16): New.
11908 (vceqq_f16): New.
11909 (vceqz_f16): New.
11910 (vceqzq_f16): New.
11911 (vcge_f16): New.
11912 (vcgeq_f16): New.
11913 (vcgez_f16): New.
11914 (vcgezq_f16): New.
11915 (vcgt_f16): New.
11916 (vcgtq_f16): New.
11917 (vcgtz_f16): New.
11918 (vcgtzq_f16): New.
11919 (vcle_f16): New.
11920 (vcleq_f16): New.
11921 (vclez_f16): New.
11922 (vclezq_f16): New.
11923 (vclt_f16): New.
11924 (vcltq_f16): New.
11925 (vcltz_f16): New.
11926 (vcltzq_f16): New.
11927 (vcvt_f16_s16): New.
11928 (vcvt_f16_u16): New.
11929 (vcvt_s16_f16): New.
11930 (vcvt_u16_f16): New.
11931 (vcvtq_f16_s16): New.
11932 (vcvtq_f16_u16): New.
11933 (vcvtq_s16_f16): New.
11934 (vcvtq_u16_f16): New.
11935 (vcvta_s16_f16): New.
11936 (vcvta_u16_f16): New.
11937 (vcvtaq_s16_f16): New.
11938 (vcvtaq_u16_f16): New.
11939 (vcvtm_s16_f16): New.
11940 (vcvtm_u16_f16): New.
11941 (vcvtmq_s16_f16): New.
11942 (vcvtmq_u16_f16): New.
11943 (vcvtn_s16_f16): New.
11944 (vcvtn_u16_f16): New.
11945 (vcvtnq_s16_f16): New.
11946 (vcvtnq_u16_f16): New.
11947 (vcvtp_s16_f16): New.
11948 (vcvtp_u16_f16): New.
11949 (vcvtpq_s16_f16): New.
11950 (vcvtpq_u16_f16): New.
11951 (vcvt_n_f16_s16): New.
11952 (vcvt_n_f16_u16): New.
11953 (vcvtq_n_f16_s16): New.
11954 (vcvtq_n_f16_u16): New.
11955 (vcvt_n_s16_f16): New.
11956 (vcvt_n_u16_f16): New.
11957 (vcvtq_n_s16_f16): New.
11958 (vcvtq_n_u16_f16): New.
11959 (vfma_f16): New.
11960 (vfmaq_f16): New.
11961 (vfms_f16): New.
11962 (vfmsq_f16): New.
11963 (vmax_f16): New.
11964 (vmaxq_f16): New.
11965 (vmaxnm_f16): New.
11966 (vmaxnmq_f16): New.
11967 (vmin_f16): New.
11968 (vminq_f16): New.
11969 (vminnm_f16): New.
11970 (vminnmq_f16): New.
11971 (vmul_f16): New.
11972 (vmul_lane_f16): New.
11973 (vmul_n_f16): New.
11974 (vmulq_f16): New.
11975 (vmulq_lane_f16): New.
11976 (vmulq_n_f16): New.
11977 (vneg_f16): New.
11978 (vnegq_f16): New.
11979 (vpadd_f16): New.
11980 (vpmax_f16): New.
11981 (vpmin_f16): New.
11982 (vrecpe_f16): New.
11983 (vrecpeq_f16): New.
11984 (vrnd_f16): New.
11985 (vrndq_f16): New.
11986 (vrnda_f16): New.
11987 (vrndaq_f16): New.
11988 (vrndm_f16): New.
11989 (vrndmq_f16): New.
11990 (vrndn_f16): New.
11991 (vrndnq_f16): New.
11992 (vrndp_f16): New.
11993 (vrndpq_f16): New.
11994 (vrndx_f16): New.
11995 (vrndxq_f16): New.
11996 (vrsqrte_f16): New.
11997 (vrsqrteq_f16): New.
11998 (vrecps_f16): New.
11999 (vrecpsq_f16): New.
12000 (vrsqrts_f16): New.
12001 (vrsqrtsq_f16): New.
12002 (vsub_f16): New.
12003 (vsubq_f16): New.
12004
12005 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12006
12007 * config.gcc (extra_headers): Add arm_fp16.h
12008 * config/arm/arm_fp16.h: New.
12009 * config/arm/arm_neon.h: Include "arm_fp16.h".
12010
12011 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12012
12013 * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
12014 variants).
12015 (vmulf): New (v8hf, v4hf variants).
12016 (vfma): New (v8hf, v4hf variants).
12017 (vfms): New (v8hf, v4hf variants).
12018 (vsub): New (v8hf, v4hf variants).
12019 (vcage): New (v8hf, v4hf variants).
12020 (vcagt): New (v8hf, v4hf variants).
12021 (vcale): New (v8hf, v4hf variants).
12022 (vcalt): New (v8hf, v4hf variants).
12023 (vceq): New (v8hf, v4hf variants).
12024 (vcgt): New (v8hf, v4hf variants).
12025 (vcge): New (v8hf, v4hf variants).
12026 (vcle): New (v8hf, v4hf variants).
12027 (vclt): New (v8hf, v4hf variants).
12028 (vceqz): New (v8hf, v4hf variants).
12029 (vcgez): New (v8hf, v4hf variants).
12030 (vcgtz): New (v8hf, v4hf variants).
12031 (vcltz): New (v8hf, v4hf variants).
12032 (vclez): New (v8hf, v4hf variants).
12033 (vabd): New (v8hf, v4hf variants).
12034 (vmaxf): New (v8hf, v4hf variants).
12035 (vmaxnm): New (v8hf, v4hf variants).
12036 (vminf): New (v8hf, v4hf variants).
12037 (vminnm): New (v8hf, v4hf variants).
12038 (vpmaxf): New (v4hf variant).
12039 (vpminf): New (v4hf variant).
12040 (vpadd): New (v4hf variant).
12041 (vrecps): New (v8hf, v4hf variants).
12042 (vrsqrts): New (v8hf, v4hf variants).
12043 (vabs): New (v8hf, v4hf variants).
12044 (vneg): New (v8hf, v4hf variants).
12045 (vrecpe): New (v8hf, v4hf variants).
12046 (vrnd): New (v8hf, v4hf variants).
12047 (vrnda): New (v8hf, v4hf variants).
12048 (vrndm): New (v8hf, v4hf variants).
12049 (vrndn): New (v8hf, v4hf variants).
12050 (vrndp): New (v8hf, v4hf variants).
12051 (vrndx): New (v8hf, v4hf variants).
12052 (vrsqrte): New (v8hf, v4hf variants).
12053 (vmul_lane): Add v4hf and v8hf variants.
12054 (vmul_n): Add v4hf and v8hf variants.
12055 (vext): New (v8hf, v4hf variants).
12056 (vcvts): New (v8hi, v4hi variants).
12057 (vcvts): New (v8hf, v4hf variants).
12058 (vcvtu): New (v8hi, v4hi variants).
12059 (vcvtu): New (v8hf, v4hf variants).
12060 (vcvts_n): New (v8hf, v4hf variants).
12061 (vcvtu_n): New (v8hi, v4hi variants).
12062 (vcvts_n): New (v8hi, v4hi variants).
12063 (vcvtu_n): New (v8hf, v4hf variants).
12064 (vbsl): New (v8hf, v4hf variants).
12065 (vcvtas): New (v8hf, v4hf variants).
12066 (vcvtau): New (v8hf, v4hf variants).
12067 (vcvtms): New (v8hf, v4hf variants).
12068 (vcvtmu): New (v8hf, v4hf variants).
12069 (vcvtns): New (v8hf, v4hf variants).
12070 (vcvtnu): New (v8hf, v4hf variants).
12071 (vcvtps): New (v8hf, v4hf variants).
12072 (vcvtpu): New (v8hf, v4hf variants).
12073
12074 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12075
12076 * config/arm/arm-builtins.c (hf_UP): New.
12077 (si_UP): New.
12078 (vfp_builtin_data): New. Update comment.
12079 (enum arm_builtins): Include "arm_vfp_builtins.def".
12080 (ARM_BUILTIN_VFP_PATTERN_START): New.
12081 (arm_init_vfp_builtins): New.
12082 (arm_init_builtins): Add arm_init_vfp_builtins.
12083 (arm_expand_vfp_builtin): New.
12084 (arm_expand_builtins): Update for arm_expand_vfp_builtin. Fix
12085 long line.
12086 * config/arm/arm_vfp_builtins.def: New file.
12087 * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
12088 (arm-builtins.o): Likewise.
12089
12090 2016-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
12091
12092 PR ipa/77677
12093 * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
12094 from constant while creating value range.
12095
12096 2016-09-23 Renlin Li <renlin.li@arm.com>
12097
12098 * ira.c (ira): Move ira_use_lra_p initialization code to ...
12099 (ira_init_once): Here.
12100
12101 2016-09-23 Uros Bizjak <ubizjak@gmail.com>
12102 Jakub Jelinek <jakub@redhat.com>
12103
12104 * hooks.h (hook_uint_uintp_false): Rename to...
12105 (hook_bool_uint_uintp_false): ... this.
12106 * hooks.c (hook_uint_uintp_false): Rename to...
12107 (hook_bool_uint_uintp_false): ... this.
12108 * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
12109 instead of hook_uint_uintp_false.
12110
12111 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12112
12113 * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
12114 (arm_init_builtins): Move body of a loop to the standalone
12115 function arm_init_neon_builtin.
12116 (arm_expand_neon_builtin_1): New. Update comment. Function body
12117 moved from arm_neon_builtin with some white-space fixes.
12118 (arm_expand_neon_builtin): Move code into the standalone function
12119 arm_expand_neon_builtin_1.
12120
12121 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12122
12123 * config/arm/iterators.md (VCVTHI): New.
12124 (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE. Fix a long line.
12125 (NEON_VAGLTE): New.
12126 (VFM_LANE_AS): New.
12127 (VH_CVTTO): New.
12128 (V_reg): Add HF, V4HF and V8HF. Fix white-space.
12129 (V_HALF): Add V4HF. Fix white-space.
12130 (V_if_elem): Add HF, V4HF and V8HF. Fix white-space.
12131 (V_s_elem): Likewise.
12132 (V_sz_elem): Fix white-space.
12133 (V_elem_ch): Likewise.
12134 (VH_elem_ch): New.
12135 (scalar_mul_constraint): Add V8HF and V4HF.
12136 (Is_float_mode): Fix white-space.
12137 (Is_d_reg): Add V4HF and V8HF. Fix white-space.
12138 (q): Add HF. Fix white-space.
12139 (float_sup): New.
12140 (float_SUP): New.
12141 (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
12142 (neon_vfm_lane_as): New.
12143 * config/arm/neon.md (add<mode>3_fp16): New.
12144 (sub<mode>3_fp16): New.
12145 (mul<mode>3add<mode>_neon): New.
12146 (fma<VH:mode>4_intrinsic): New.
12147 (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
12148 (fmsub<VH:mode>4_intrinsic): New.
12149 (<absneg_str><mode>2): New.
12150 (neon_v<absneg_str><mode>): New.
12151 (neon_v<fp16_rnd_str><mode>): New.
12152 (neon_vrsqrte<mode>): New.
12153 (neon_vpaddv4hf): New.
12154 (neon_vadd<mode>): New.
12155 (neon_vsub<mode>): New.
12156 (neon_vmulf<mode>): New.
12157 (neon_vfma<VH:mode>): New.
12158 (neon_vfms<VH:mode>): New.
12159 (neon_vc<cmp_op><mode>): New.
12160 (neon_vc<cmp_op><mode>_fp16insn): New
12161 (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
12162 (neon_vca<cmp_op><mode>): New.
12163 (neon_vca<cmp_op><mode>_fp16insn): New.
12164 (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
12165 (neon_vc<cmp_op>z<mode>): New.
12166 (neon_vabd<mode>): New.
12167 (neon_v<maxmin>f<mode>): New.
12168 (neon_vp<maxmin>fv4hf: New.
12169 (neon_<fmaxmin_op><mode>): New.
12170 (neon_vrecps<mode>): New.
12171 (neon_vrsqrts<mode>): New.
12172 (neon_vrecpe<mode>): New (VH variant).
12173 (neon_vdup_lane<mode>_internal): New.
12174 (neon_vdup_lane<mode>): New.
12175 (neon_vcvt<sup><mode>): New (VCVTHI variant).
12176 (neon_vcvt<sup><mode>): New (VH variant).
12177 (neon_vcvt<sup>_n<mode>): New (VH variant).
12178 (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
12179 (neon_vcvt<vcvth_op><sup><mode>): New.
12180 (neon_vmul_lane<mode>): New.
12181 (neon_vmul_n<mode>): New.
12182 * config/arm/unspecs.md (UNSPEC_VCALE): New
12183 (UNSPEC_VCALT): New.
12184 (UNSPEC_VFMA_LANE): New.
12185 (UNSPECS_VFMS_LANE): New.
12186
12187 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
12188
12189 * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
12190 ("*extzv<mode><clobbercc_or_nocc>"):
12191 Correct a typo in a comment.
12192 Merged patterns.
12193 ("*insv<mode>_zEC12", "*insv<mode>_z10")
12194 ("*insv<mode><clobbercc_or_nocc>"): Ditto.
12195 ("*insv<mode>_zEC12_appendbitsleft")
12196 ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
12197 ("*insv<mode>_z10_appendbitsleft"): Ditto.
12198 ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
12199 ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
12200 Provide pattern with operands switched.
12201 ("*pre_z10_extv<mode>"):
12202 Use new subst patterns.
12203 ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
12204 ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
12205 ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
12206 ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
12207 ("*<risbg_n>_<mode>_ior_and_lshiftrt")
12208 ("*<risbg_n>_sidi_ior_and_lshiftrt")
12209 ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
12210 New patterns.
12211 ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
12212 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
12213 ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
12214 on zEC12.
12215 ("SINT"): New mode_iterator with SI, HI, QI.
12216 * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
12217 ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
12218 duplication.
12219
12220 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
12221
12222 * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
12223 new interface of s390_contiguous_bitmask_p.
12224 ("contiguous_bitmask_nowrap_operand"): New predicate.
12225 ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
12226 * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
12227 of s390_contiguous_bitmask_p.
12228 ("NxxDw"): Rename NxxDq constraint to NxxDw.
12229 ("NxxSw"): New constraint.
12230 * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
12231 * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
12232 interface.
12233 (s390_contiguous_bitmask_nowrap_p): Export.
12234 * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
12235 former s390_contiguous_bitmask_p.
12236 (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
12237 detect contiguous bit ranges with wraparound. Change signature to
12238 return START and END position instead of POS and LENGTH.
12239 (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
12240 ranges with wraparound.
12241 (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
12242 (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
12243 Adapt to new signature of s390_contiguous_bitmask_p.
12244
12245 2016-09-23 Bin Cheng <bin.cheng@arm.com>
12246
12247 * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
12248 (create_intersect_range_checks): New.
12249 (vect_create_cond_for_alias_checks): Call above function.
12250
12251 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12252
12253 * config/arm/iterators.md (Code iterators): Fix some white-space
12254 in the comments.
12255 (GLTE): New.
12256 (ABSNEG): New
12257 (FCVT): Moved from vfp.md.
12258 (VCVT_HF_US_N): New.
12259 (VCVT_SI_US_N): New.
12260 (VCVT_HF_US): New.
12261 (VCVTH_US): New.
12262 (FP16_RND): New.
12263 (absneg_str): New.
12264 (FCVTI32typename): Moved from vfp.md.
12265 (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
12266 UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
12267 UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
12268 UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N, UNSPEC_VCVTH_S_N,
12269 UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
12270 (vcvth_op): New.
12271 (fp16_rnd_str): New.
12272 (fp16_rnd_insn): New.
12273 * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
12274 (UNSPEC_VCVT_HF_U_N): New.
12275 (UNSPEC_VCVT_SI_S_N): New.
12276 (UNSPEC_VCVT_SI_U_N): New.
12277 (UNSPEC_VCVTH_S): New.
12278 (UNSPEC_VCVTH_U): New.
12279 (UNSPEC_VCVTA_S): New.
12280 (UNSPEC_VCVTA_U): New.
12281 (UNSPEC_VCVTM_S): New.
12282 (UNSPEC_VCVTM_U): New.
12283 (UNSPEC_VCVTN_S): New.
12284 (UNSPEC_VCVTN_U): New.
12285 (UNSPEC_VCVTP_S): New.
12286 (UNSPEC_VCVTP_U): New.
12287 (UNSPEC_VCVTP_S): New.
12288 (UNSPEC_VCVTP_U): New.
12289 (UNSPEC_VRND): New.
12290 (UNSPEC_VRNDA): New.
12291 (UNSPEC_VRNDI): New.
12292 (UNSPEC_VRNDM): New.
12293 (UNSPEC_VRNDN): New.
12294 (UNSPEC_VRNDP): New.
12295 (UNSPEC_VRNDX): New.
12296 * config/arm/vfp.md (<absneg_str>hf2): New.
12297 (neon_vabshf): New.
12298 (neon_v<fp16_rnd_str>hf): New.
12299 (neon_vrndihf): New.
12300 (addhf3): New.
12301 (subhf3): New.
12302 (divhf3): New.
12303 (mulhf3): New.
12304 (*mulsf3neghf_vfp): New.
12305 (*negmulhf3_vfp): New.
12306 (*mulsf3addhf_vfp): New.
12307 (*mulhf3subhf_vfp): New.
12308 (*mulhf3neghfaddhf_vfp): New.
12309 (*mulhf3neghfsubhf_vfp): New.
12310 (fmahf4): New.
12311 (neon_vfmahf): New.
12312 (fmsubhf4_fp16): New.
12313 (neon_vfmshf): New.
12314 (*fnmsubhf4): New.
12315 (*fnmaddhf4): New.
12316 (neon_vsqrthf): New.
12317 (neon_vrsqrtshf): New.
12318 (FCVT): Move to iterators.md.
12319 (FCVTI32typename): Likewise.
12320 (neon_vcvth<sup>hf): New.
12321 (neon_vcvth<sup>si): New.
12322 (neon_vcvth<sup>_nhf_unspec): New.
12323 (neon_vcvth<sup>_nhf): New.
12324 (neon_vcvth<sup>_nsi_unspec): New.
12325 (neon_vcvth<sup>_nsi): New.
12326 (neon_vcvt<vcvth_op>h<sup>si): New.
12327 (neon_<fmaxmin_op>hf): New.
12328
12329 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
12330
12331 * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
12332 ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
12333 ("*insv<mode>_zEC12_appendbitsleft")
12334 ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
12335 ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
12336
12337 2016-09-23 Jakub Jelinek <jakub@redhat.com>
12338
12339 * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
12340 * sreal.h (sreal::min, sreal::max): Avoid static local vars,
12341 construct values without normalization.
12342 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
12343 static local lhs_ops to vNULL.
12344
12345 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12346 Jiong Wang <jiong.wang@arm.com>
12347
12348 * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
12349 available when FP16 instructions are available.
12350 (output_move_vfp): Add support for 16-bit data moves.
12351 (arm_validize_comparison): Fix some white-space. Support HFmode
12352 by conversion to SFmode.
12353 * config/arm/arm.md (truncdfhf2): Fix a comment.
12354 (extendhfdf2): Likewise.
12355 (cstorehf4): New.
12356 (movsicc): Fix some white-space.
12357 (movhfcc): New.
12358 (movsfcc): Fix some white-space.
12359 (*cmovhf): New.
12360 * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
12361 instructions are available.
12362 (*thumb2_movhi_vfp): Likewise.
12363 (*arm_movhi_fp16): New.
12364 (*thumb2_movhi_fp16): New.
12365 (*movhf_vfp_fp16): New.
12366 (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
12367 (*movhf_vfp): Likewise.
12368 (extendhfsf2): Enable when VFP FP16 instructions are available.
12369 (truncsfhf2): Enable when VFP FP16 instructions are available.
12370
12371 2016-09-23 Martin Liska <mliska@suse.cz>
12372
12373 * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
12374
12375 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12376
12377 * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
12378 V4HF modes.
12379 (arm_evpc_neon_vtrn): Likewise.
12380 (arm_evpc_neon_vrev): Likewise.
12381 (arm_evpc_neon_vext): Likewise.
12382 * config/arm/arm_neon.h (vbsl_f16): New.
12383 (vbslq_f16): New.
12384 (vdup_n_f16): New.
12385 (vdupq_n_f16): New.
12386 (vdup_lane_f16): New.
12387 (vdupq_lane_f16): New.
12388 (vext_f16): New.
12389 (vextq_f16): New.
12390 (vmov_n_f16): New.
12391 (vmovq_n_f16): New.
12392 (vrev64_f16): New.
12393 (vrev64q_f16): New.
12394 (vtrn_f16): New.
12395 (vtrnq_f16): New.
12396 (vuzp_f16): New.
12397 (vuzpq_f16): New.
12398 (vzip_f16): New.
12399 (vzipq_f16): New.
12400 * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
12401 (vdup_lane): New (v8hf, v4hf variants).
12402 (vext): New (v8hf, v4hf variants).
12403 (vbsl): New (v8hf, v4hf variants).
12404 * config/arm/iterators.md (VDQWH): New.
12405 (VH): New.
12406 (V_double_vector_mode): Add V8HF and V4HF. Fix white-space.
12407 (Scalar_mul_8_16): Fix white-space.
12408 (Is_d_reg): Add V4HF and V8HF.
12409 * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
12410 (neon_vdup_lane<mode>): New.
12411 (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
12412 (*neon_vtrn<mode>_insn): Likewise.
12413 (neon_vzip<mode>_internal): Likewise. Also fix white-space.
12414 (*neon_vzip<mode>_insn): Likewise
12415 (neon_vuzp<mode>_internal): Likewise.
12416 (*neon_vuzp<mode>_insn): Likewise
12417 * config/arm/vec-common.md (vec_perm_const<mode>): New.
12418
12419 2016-09-23 Jiong Wang <jiong.wang@arm.com>
12420 Matthew Wahab <matthew.wahab@arm.com>
12421
12422 * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
12423 (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
12424 * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
12425 available. Also fix some white-space.
12426 * config/arm/vfp.md (*arm_movhi_vfp): New.
12427 (*thumb2_movhi_vfp): New.
12428
12429 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12430
12431 * config/arm/arm-c.c (arm_cpu_builtins): Define
12432 "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
12433 "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
12434
12435 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12436
12437 * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
12438 arm_v8_1a_neon_ok. Add entries for arm_v8_2a_fp16_scalar_ok,
12439 arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
12440 arm_v8_2a_fp16_neon_hw.
12441 (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
12442 arm_v8_2a_neon.
12443
12444 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12445
12446 * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
12447 arm_fp16_alternative_ok and arm_fp16_none_ok.
12448
12449 2016-09-23 Martin Liska <mliska@suse.cz>
12450
12451 * ipa-icf.c (sem_variable::merge): Replace adress with address.
12452
12453 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12454
12455 * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
12456 ("armv8.2-a"): New.
12457 ("armv8.2-a+fp16"): New.
12458 * config/arm/arm-protos.h (FL2_ARCH8_2): New.
12459 (FL2_FP16INST): New.
12460 (FL2_FOR_ARCH8_2A): New.
12461 * config/arm/arm-tables.opt: Regenerate.
12462 * config/arm/arm.c (arm_arch8_2): New.
12463 (arm_fp16_inst): New.
12464 (arm_option_override): Set arm_arch8_2 and arm_fp16_inst. Check
12465 for incompatible fp16-format settings.
12466 * config/arm/arm.h (TARGET_VFP_FP16INST): New.
12467 (TARGET_NEON_FP16INST): New.
12468 (arm_arch8_2): Declare.
12469 (arm_fp16_inst): Declare.
12470 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
12471 march=armv8.2-a and march=armv8.2-a+fp16.
12472 * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
12473 and armv8.2-a+fp16.
12474 * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
12475 "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
12476
12477 2016-09-23 Martin Liska <mliska@suse.cz>
12478
12479 * doc/extend.texi: Remove fused-madd from i386 target options.
12480
12481 2016-09-23 Martin Liska <mliska@suse.cz>
12482
12483 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
12484 Handle movbe.
12485
12486 2016-09-23 Martin Liska <mliska@suse.cz>
12487
12488 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
12489 Handle crc32.
12490
12491 2016-09-23 Martin Liska <mliska@suse.cz>
12492
12493 PR target/71652
12494 * config/i386/i386.c (ix86_option_override_internal): Change
12495 signature and return false when there's an error related to
12496 arch string.
12497 (release_options_strings): New function.
12498 (ix86_valid_target_attribute_tree): Call the function.
12499
12500 2016-09-23 Jakub Jelinek <jakub@redhat.com>
12501
12502 * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
12503 instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
12504 (gen_hsa_ctor_assignment): Likewise.
12505 * print-tree.c (print_node): Likewise.
12506 * tree-dump.c (dequeue_and_dump): Likewise.
12507 * tree-sra.c (sra_modify_constructor_assign): Likewise.
12508 * expr.c (store_constructor): Likewise.
12509 * fold-const.c (operand_equal_p): Likewise.
12510 * tree-pretty-print.c (dump_generic_node): Likewise.
12511 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
12512 * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
12513
12514 2016-09-23 Richard Biener <rguenther@suse.de>
12515
12516 * hooks.h (hook_uint_uintp_false): Declare.
12517
12518 2016-09-22 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12519
12520 * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
12521 (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
12522
12523 2016-09-22 Martin Sebor <msebor@redhat.com>
12524
12525 PR target/77676
12526 * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
12527 HOST_BITS_PER_WIDE_INT, make a static local variable auto.
12528 (target_int_min): Correct computation.
12529 (format_integer): Use long long as the argument for the ll length
12530 modifier.
12531 (format_floating): Use target_int_max().
12532 (get_string_length): Same.
12533 (format_string): Avoid setting the bounded flag for strings
12534 of unknown length.
12535 (try_substitute_return_value): Avoid setting range info when
12536 the result isn't bounded.
12537 * varasm.c (assemble_name): Increase buffer size.
12538
12539 2016-09-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
12540 Terry Guo <terry.guo@arm.com>
12541
12542 * target.def (elf_flags_numeric): New target hook.
12543 * targhooks.h (default_asm_elf_flags_numeric): New.
12544 * varasm.c (default_asm_elf_flags_numeric): New.
12545 (default_elf_asm_named_section): Use new target hook.
12546 * config/arm/arm.opt (mpure-code): New.
12547 * config/arm/arm.h (SECTION_ARM_PURECODE): New.
12548 * config/arm/arm.c (arm_asm_init_sections): Add section
12549 attribute to default text section if -mpure-code.
12550 (arm_option_check_internal): Diagnose use of option with
12551 non supported targets and/or options.
12552 (arm_asm_elf_flags_numeric): New.
12553 (arm_function_section): New.
12554 (arm_elf_section_type_flags): New.
12555 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
12556 for -mpure-code.
12557 * doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
12558 * doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
12559
12560 2016-09-22 Jan Hubicka <hubicka@ucw.cz>
12561
12562 * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
12563
12564 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12565
12566 * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
12567 * rtl.h: Adjust prototype.
12568
12569 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12570
12571 * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
12572 (prev_active_insn): Likewise.
12573 (active_insn_p): Likewise.
12574 * rtl.h: Adjust prototypes.
12575 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
12576 * config/arc/arc.md: Likewise.
12577 * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
12578 (branch_needs_nop_p): Likewise.
12579 (use_skip_p): Likewise.
12580 * config/sh/sh.c (gen_block_redirect): Likewise.
12581 (split_branches): Likewise.
12582 * reorg.c (optimize_skip): Likewise.
12583 (fill_simple_delay_slots): Likewise.
12584 (fill_slots_from_thread): Likewise.
12585 (relax_delay_slots): Likewise.
12586 * resource.c (mark_target_live_regs): Likewise.
12587
12588 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12589
12590 * config/cris/cris.c (cris_asm_output_case_end): Change argument
12591 type to rtx_insn *.
12592 * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
12593 (prev_nonnote_nondebug_insn): Likewise.
12594 * config/cris/cris-protos.h: Adjust prototype.
12595 * rtl.h: Likewise.
12596 * jump.c (rtx_renumbered_equal_p): Adjust.
12597
12598 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12599
12600 * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
12601 * rtl.h: Adjust prototype.
12602 * config/sh/sh.md: Adjust.
12603 * dwarf2out.c (add_var_loc_to_decl): Likewise.
12604
12605 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12606
12607 * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
12608 (prev_nondebug_insn): Likewise.
12609 * loop-doloop.c (doloop_condition_get): Likewise.
12610 * rtl.h: Adjust prototype.
12611 * cfgloop.h: Likewise.
12612
12613 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12614
12615 * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
12616 (prev_nonnote_insn): Likewise.
12617 * jump.c (reversed_comparison_code_parts): Likewise.
12618 (reversed_comparison): Likewise.
12619 * rtl.h: Adjust prototypes.
12620 * config/arc/arc.md: Adjust.
12621 * cse.c (find_comparison_args): Likewise.
12622 * reorg.c (redundant_insn): Change return type to rtx_insn *.
12623 (fix_reg_dead_note): Change argument type to rtx_insn *.
12624 (delete_prior_computation): Likewise.
12625 (delete_computation): Likewise.
12626 (fill_slots_from_thread): Adjust.
12627 (relax_delay_slots): Likewise.
12628 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
12629 (simplify_relational_operation_1): Likewise.
12630 (simplify_ternary_operation): Likewise.
12631
12632 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12633
12634 * config/arc/arc-protos.h (arc_label_align): Change type of
12635 variables from rtx to rtx_insn *.
12636 * config/arc/arc.c (arc_label_align): Likewise.
12637 * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
12638 * config/bfin/bfin.c (workaround_speculation): Likewise.
12639 * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
12640 (find_last_same_clock): Likewise.
12641 (reorg_split_calls): Likewise.
12642 * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
12643 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
12644 * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
12645 (same_cmp_following_p): Likewise.
12646 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
12647 (same_cmp_following_p): Likwise.
12648 * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
12649 * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
12650 * config/nds32/nds32.c (nds32_target_alignment): Likewise.
12651 * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
12652 (rl78_alloc_physical_registers_cmp): Likewise.
12653 (rl78_alloc_physical_registers_umul): Likewise.
12654 (rl78_calculate_death_notes): Likewise.
12655 * config/s390/s390-protos.h (s390_label_align): Likewise.
12656 * config/s390/s390.c (s390_label_align): Likewise.
12657 * config/sh/sh.c (barrier_align): Likewise.
12658 * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
12659 * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
12660 (emit_cbcond_nop): Likewise.
12661
12662 2016-09-22 Martin Liska <mliska@suse.cz>
12663
12664 PR ipa/77653
12665 * ipa-icf.c (sem_variable::merge): Yield merge operation if
12666 alias address matters, not necessarily address of original.
12667
12668 2016-09-22 Richard Biener <rguenther@suse.de>
12669
12670 PR middle-end/77697
12671 * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
12672 fold fails.
12673
12674 2016-09-22 Richard Biener <rguenther@suse.de>
12675
12676 PR middle-end/77677
12677 * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
12678 from constant folding results.
12679 (gimple_resimplify2): Likewise.
12680 (gimple_resimplify3): Likewise.
12681
12682 2016-09-22 Richard Biener <rguenther@suse.de>
12683
12684 PR middle-end/77678
12685 * expr.c (expand_expr_real_1): Guard array access against negative
12686 offset.
12687
12688 2016-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12689
12690 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
12691 of MPFR_RNDN.
12692 (format_floating): Likewise.
12693
12694 2016-09-22 Jakub Jelinek <jakub@redhat.com>
12695
12696 PR fortran/77665
12697 * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
12698 for all IFN_GOMP_SIMD_* internal fns, not just for
12699 IFN_GOMP_SIMD_ORDERED_*.
12700
12701 2016-09-21 Michael Meissner <meissner@linux.vnet.ibm.com>
12702
12703 PR target/77670
12704 * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
12705 New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
12706 instructions when you want to invert the test.
12707 * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
12708 correct order for XXSEL.
12709 (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
12710 for using XSCMP{EQ,GT,GE}DP.
12711
12712 2016-09-21 David Malcolm <dmalcolm@redhat.com>
12713
12714 * genconstants.c (main): Introduce noop_reader and convert call
12715 to read_md_files to a method call.
12716 * genenums.c (main): Likewise.
12717 * genmddeps.c (main): Likewise.
12718 * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
12719 rtx_reader_ptr->get_top_level_filename ().
12720 (write_tm_preds_h): Likewise.
12721 (write_insn_preds_c): Likewise.
12722 * gensupport.c (class gen_reader): New subclass of rtx_reader.
12723 (rtx_handle_directive): Convert to...
12724 (gen_reader::handle_unknown_directive): ...this.
12725 (init_rtx_reader_args_cb): Convert return type from bool to
12726 rtx_reader *. Create a gen_reader instance, using it for the
12727 call to read_md_files. Return it if no errors occur.
12728 (init_rtx_reader_args): Convert return type from bool to
12729 rtx_reader *.
12730 * gensupport.h (init_rtx_reader_args_cb): Likewise.
12731 (init_rtx_reader_args_cb): Likewise.
12732 * read-md.c (struct file_name_list): Move to class rtx_reader.
12733 (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
12734 (read_md_filename): Delete in favor of
12735 rtx_reader::m_read_md_filename.
12736 (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
12737 (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
12738 (base_dir): Delete in favor of rtx_reader::m_base_dir.
12739 (first_dir_md_include): Delete in favor of
12740 rtx_reader::m_first_dir_md_include.
12741 (last_dir_md_include_ptr): Delete in favor of
12742 rtx_reader::m_last_dir_md_include_ptr.
12743 (max_include_len): Delete.
12744 (rtx_reader_ptr): New.
12745 (fatal_with_file_and_line): Use get_filename and get_lineno
12746 accessors of rtx_reader_ptr.
12747 (require_char_ws): Likewise.
12748 (rtx_reader::read_char): New method, based on ::read_char.
12749 (rtx_reader::unread_char): New method, based on ::unread_char.
12750 (read_escape): Use get_filename and get_lineno accessors of
12751 rtx_reader_ptr.
12752 (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
12753 (read_string): Use get_filename and get_lineno accessors of
12754 rtx_reader_ptr.
12755 (rtx_reader::rtx_reader): New ctor.
12756 (rtx_reader::~rtx_reader): New dtor.
12757 (handle_include): Convert from a function to...
12758 (rtx_reader::handle_include): ...this method, converting
12759 handle_directive from a callback to a virtual function.
12760 (handle_file): Likewise, converting to...
12761 (rtx_reader::handle_file): ...this method.
12762 (handle_toplevel_file): Likewise, converting to...
12763 (rtx_reader::handle_toplevel_file): ...this method.
12764 (rtx_reader::get_current_location): New method.
12765 (parse_include): Convert from a function to...
12766 (rtx_reader::add_include_path): ...this method, dropping redundant
12767 update to unused max_include_len.
12768 (read_md_files): Convert from a function to...
12769 (rtx_reader::read_md_files): ...this method, converting
12770 handle_directive from a callback to a virtual function.
12771 (noop_reader::handle_unknown_directive): New method.
12772 * read-md.h (directive_handler_t): Delete this typedef.
12773 (in_fname): Delete.
12774 (read_md_file): Delete.
12775 (read_md_lineno): Delete.
12776 (read_md_filename): Delete.
12777 (class rtx_reader): New class.
12778 (rtx_reader_ptr): New decl.
12779 (class noop_reader): New subclass of rtx_reader.
12780 (read_char): Reimplement in terms of rtx_reader::read_char.
12781 (unread_char): Reimplement in terms of rtx_reader::unread_char.
12782 (read_md_files): Delete.
12783 * read-rtl.c (read_rtx_code): Update for deletion of globals
12784 read_md_filename and read_md_lineno.
12785
12786 2016-09-21 Jason Merrill <jason@redhat.com>
12787
12788 * input.h (from_macro_definition_at): New.
12789
12790 2016-09-21 Segher Boessenkool <segher@kernel.crashing.org>
12791
12792 * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
12793
12794 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
12795
12796 PR tree-optimization/77550
12797 * tree-vect-stmts.c (create_array_ref): Change parameters.
12798 (get_group_alias_ptr_type): New function.
12799 (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
12800
12801 2016-09-21 Marek Polacek <polacek@redhat.com>
12802
12803 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
12804 Add falls through comment.
12805
12806 2016-09-21 Richard Biener <rguenther@suse.de>
12807
12808 * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
12809 (replace_child): Likewise.
12810 (remove_child_TAG): Adjust.
12811 (move_marked_base_types): Likewise.
12812 (prune_unused_types_prune): Clear die_sib of removed children.
12813
12814 2016-09-21 Georg-Johann Lay <avr@gjlay.de>
12815
12816 PR target/77326
12817 * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
12818 touches some regs mentioned in cc_status, do CC_STATUS_INIT.
12819
12820 2016-09-21 Richard Biener <rguenther@suse.de>
12821
12822 PR tree-optimization/77648
12823 * tree-ssa-structalias.c (process_constraint): Handle all DEREF
12824 with complex RHS.
12825 (make_transitive_closure_constraints): Adjust comment.
12826 (make_any_offset_constraints): New function.
12827 (handle_rhs_call): Make sure to first expand a pointer to all
12828 subfields before transitively closing it.
12829 (handle_const_call): Likewise. Properly expand returned
12830 pointers as well.
12831 (handle_pure_call): Likewise.
12832
12833 2016-09-21 Richard Biener <rguenther@suse.de>
12834 Jakub Jelinek <jakub@redhat.com>
12835
12836 PR tree-optimization/77621
12837 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
12838 group at non-vectorizable stmts.
12839
12840 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
12841
12842 PR tree-optimization/72835
12843 * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
12844 (make_new_ssa_for_all_defs): Likewise.
12845 (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
12846
12847 2016-09-20 Martin Sebor <msebor@redhat.com>
12848
12849 PR middle-end/49905
12850 * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
12851 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
12852 * config/linux.c (gnu_libc_printf_pointer_format): New function.
12853 * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
12854 * config/sol2.c (solaris_printf_pointer_format): New function.
12855 * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
12856 options.
12857 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
12858 * doc/tm.texi: Regenerate.
12859 * gimple-fold.h (get_range_strlen): New function.
12860 (get_maxval_strlen): Declare existing function.
12861 * gimple-fold.c (get_range_strlen): Add arguments and compute both
12862 maximum and minimum.
12863 (get_range_strlen): Define overload.
12864 (get_maxval_strlen): Adjust.
12865 * gimple-ssa-sprintf.c: New file and pass.
12866 * passes.def (pass_sprintf_length): Add new pass.
12867 * targhooks.h (default_printf_pointer_format): Declare new function.
12868 (gnu_libc_printf_pointer_format): Same.
12869 (solaris_libc_printf_pointer_format): Same.
12870 * targhooks.c (default_printf_pointer_format): Define new function.
12871 * tree-pass.h (make_pass_sprintf_length): Declare new function.
12872 * print-tree.c: Increase buffer size.
12873
12874 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
12875
12876 * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
12877
12878 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
12879
12880 * common.opt: New option -fipa-vrp.
12881 * ipa-cp.c (ipa_get_vr_lat): New.
12882 (ipcp_vr_lattice::print): Likewise.
12883 (print_all_lattices): Call ipcp_vr_lattice::print.
12884 (ipcp_vr_lattice::meet_with): New.
12885 (ipcp_vr_lattice::meet_with_1): Likewise.
12886 (ipcp_vr_lattice::top_p): Likewise.
12887 (ipcp_vr_lattice::bottom_p): Likewsie.
12888 (ipcp_vr_lattice::set_to_bottom): Likewise.
12889 (set_all_contains_variable): Call VR set_to_bottom.
12890 (initialize_node_lattices): Init VR lattices.
12891 (propagate_vr_accross_jump_function): New.
12892 (propagate_constants_accross_call): Call
12893 propagate_vr_accross_jump_function.
12894 (ipcp_store_vr_results): New.
12895 (ipcp_driver): Handle VR.
12896 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
12897 (ipa_set_jf_unknown): Likewise.
12898 (ipa_compute_jump_functions_for_edge): Likewise.
12899 (ipa_node_params_t::duplicate): Likewise.
12900 (ipa_write_jump_function): Likewise.
12901 (ipa_read_jump_function): Likewise.
12902 (write_ipcp_transformation_info): Likewise.
12903 (read_ipcp_transformation_info): Likewise.
12904 (ipcp_update_vr): New.
12905 (ipcp_transform_function): Handle VR.
12906 * ipa-prop.h (struct ipa_vr): New.
12907 * cgraph.c: Include tree-vrp.h.
12908 * cgraphunit.c: Likewise.
12909 * ipa-utils.c: Likewise.
12910 * ipa.c: Likewise.
12911 * opts.c: Likewise.
12912 * toplev.c: Likewise.
12913 * ipa-devirt.c: Likewise.
12914 * ipa-inline-transform.c: Likewise.
12915 * ipa-inline.c: Likewise.
12916 * ipa-profile.c: Likewise.
12917
12918 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
12919
12920 * doc/invoke.texi: Document -fdump-tree-evrp.
12921 * passes.def: Define new pass_early_vrp.
12922 * timevar.def: Define new TV_TREE_EARLY_VRP.
12923 * tree-pass.h (make_pass_early_vrp): New.
12924 * tree-ssa-propagate.c: Make replace_uses_in non static.
12925 * tree-ssa-propagate.h: Export replace_uses_in.
12926 * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
12927 (extract_range_from_assert): Factor out
12928 extract_range_for_var_from_comparison_expr.
12929 (vrp_initialize_lattice): New.
12930 (vrp_initialize): Factor out vrp_initialize_lattice.
12931 (vrp_valueize): Fix it to reject complex value ranges.
12932 (vrp_free_lattice): New.
12933 (evrp_dom_walker::before_dom_children): Likewise.
12934 (evrp_dom_walker::after_dom_children): Likewise.
12935 (evrp_dom_walker::push_value_range): Likewise.
12936 (evrp_dom_walker::pop_value_range): Likewise.
12937 (execute_early_vrp): Likewise.
12938 (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
12939 (make_pass_early_vrp): New.
12940
12941 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
12942
12943 * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
12944 instead of exact_log2.
12945
12946 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
12947
12948 PR target/77621
12949 * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
12950 Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
12951 (ix86_add_stmt_cost): Penalize DFmode vector operations
12952 for !TARGET_VECTORIZE_DOUBLE.
12953
12954 2016-09-20 Gerald Pfeifer <gerald@pfeifer.com>
12955
12956 * doc/invoke.texi (Warning Options): Simplify language.
12957 (Optimize Options): Complete sentence.
12958
12959 2016-09-20 David Edelsohn <dje.gcc@gmail.com>
12960
12961 * dbxout.c (xcoff_debug_hooks): Add filename parameter to
12962 early_finish hook.
12963
12964 2016-09-20 Michael Meissner <meissner@linux.vnet.ibm.com>
12965
12966 PR target/71395
12967 * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
12968 inits on power8 and above, use the VMRGEW instruction instead of a
12969 permute.
12970
12971 * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
12972 (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
12973 initialization.
12974
12975 2016-09-20 Tamar Christina <tamar.christina@arm.com>
12976
12977 * config/aarch64/arm_neon.h
12978 (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
12979 (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
12980 (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
12981
12982 2016-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
12983
12984 * config/var/vax.h (ELIMINABLE_REGS): Define.
12985 (INITIAL_ELIMINATION_OFFSET): Define.
12986
12987 2016-09-20 Jakub Jelinek <jakub@redhat.com>
12988
12989 PR middle-end/77624
12990 * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
12991 cast to void * if the cast is from some other pointer type.
12992
12993 2016-09-20 Richard Biener <rguenther@suse.de>
12994
12995 PR tree-optimization/77646
12996 * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
12997 a VDEF.
12998
12999 2016-09-20 Tamar Christina <tamar.christina@arm.com>
13000
13001 * config/aarch64/arm_neon.h: Add gnu_inline and artificial
13002 attributes to all inlined functions and make them extern.
13003
13004 2016-09-20 Richard Biener <rguenther@suse.de>
13005
13006 * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
13007 hook.
13008 * debug.c (do_nothing_debug_hooks): Adjust.
13009 * dbxout.c (dbx_debug_hooks): Likewise.
13010 * sdbout.c (sdb_debug_hooks): Likewise.
13011 * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
13012 (dwarf2out_finish): Move producer, filename and
13013 path annotation ...
13014 (dwarf2out_early_finish): ... here. Remove in_lto_p special-casing.
13015 * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
13016
13017 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
13018
13019 PR c++/77434
13020 * doc/invoke.texi: Document -Wint-in-bool-context.
13021
13022 PR middle-end/77421
13023 * dwarf2out.c (output_loc_operands): Fix an assertion.
13024
13025 2016-09-19 Joseph Myers <joseph@codesourcery.com>
13026
13027 * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
13028 (CR_DECIMAL_DIG): New macro.
13029
13030 2016-09-19 Joseph Myers <joseph@codesourcery.com>
13031
13032 * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
13033 element.
13034
13035 2016-09-19 Vladimir Makarov <vmakarov@redhat.com>
13036
13037 PR rtl-optimization/77416
13038 * lra-remat.c (operand_to_remat): Process hard coded insn
13039 registers.
13040
13041 2016-09-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13042
13043 * simplify-rtx.c (simplify_relational_operation_1): Add transformation
13044 (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
13045
13046 2016-09-19 Segher Boessenkool <segher@kernel.crashing.org>
13047
13048 * target.def (lra_p): Wordsmithing.
13049 * doc/tm.texi: Regenerate.
13050
13051 2016-09-19 Jakub Jelinek <jakub@redhat.com>
13052 Jan Hubicka <jh@suse.cz>
13053
13054 PR target/77587
13055 * cgraph.c (cgraph_node::rtl_info): Pass &avail to
13056 ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
13057 Call ultimate_alias_target just once, not up to 4 times.
13058
13059 2016-09-19 Richard Biener <rguenther@suse.de>
13060
13061 * dwarf2out.c (early_dwarf_finished): New global.
13062 (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
13063 is false.
13064 (dwarf2out_early_finish): Set early_dwarf_finished at the end,
13065 if called from LTO exit early.
13066 (dwarf2out_late_global_decl): When being during the early
13067 debug phase do not add locations but only const value attributes.
13068 Adjust the way we generate early DIEs for LTO.
13069
13070 2016-09-19 Richard Biener <rguenther@suse.de>
13071
13072 PR middle-end/77605
13073 * tree-data-ref.c (analyze_subscript_affine_affine): Use the
13074 proper niter to bound the loops.
13075
13076 2016-09-19 Richard Biener <rguenther@suse.de>
13077
13078 PR tree-optimization/77514
13079 * tree-ssa-pre.c (create_expression_by_pieces): Optimize
13080 search for folded stmt.
13081
13082 2016-09-17 Jan Hubicka <hubicka@ucw.cz>
13083
13084 * passes.def (pass_early_thread_jumps): Schedule after forwprop.
13085 * tree-pass.h (make_pass_early_thread_jumps): Declare.
13086 * tree-ssa-threadbackward.c (fsm_find_thread_path,
13087 fsm_find_thread_path, profitable_jump_thread_path,
13088 fsm_find_control_statement_thread_paths,
13089 find_jump_threads_backwards): Add speed_p parameter.
13090 (pass_data_early_thread_jumps): New pass.
13091 (make_pass_early_thread_jumps): New function.
13092
13093 2016-09-17 Andreas Schwab <schwab@suse.de>
13094
13095 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
13096 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
13097
13098 2016-09-16 Eric Botcazou <ebotcazou@adacore.com>
13099
13100 * recog.c (rest_of_handle_split_after_reload): Delete.
13101 (pass_split_after_reload::gate): New method.
13102 (pass_split_after_reload::execute): Call split_all_insns directly.
13103
13104 2016-09-16 Jonathan Wakely <jwakely@redhat.com>
13105
13106 * doc/extend.texi (Integer Overflow Builtins): Fix type of out
13107 parameters for functions taking long long arguments.
13108
13109 2016-09-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13110
13111 PR target/77613
13112 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
13113 splat with truncate.
13114
13115 2016-09-16 Jason Merrill <jason@redhat.com>
13116
13117 * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
13118 New.
13119 * hwint.c (exact_log2): Use pow2p_hwi.
13120 (ctz_hwi, ffs_hwi): Use least_bit_hwi.
13121 * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
13122 * builtins.c (get_object_alignment_2, get_object_alignment)
13123 (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
13124 least_bit_hwi.
13125 * calls.c (compute_argument_addresses, store_one_arg): Use
13126 least_bit_hwi.
13127 * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
13128 * combine.c (force_to_mode): Use least_bit_hwi.
13129 (contains_muldiv, find_split_point, combine_simplify_rtx)
13130 (simplify_if_then_else, simplify_set, force_to_mode)
13131 (if_then_else_cond, simplify_and_const_int_1)
13132 (simplify_compare_const): Use pow2p_hwi.
13133 * cse.c (fold_rtx): Use pow2p_hwi.
13134 * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
13135 Use least_bit_hwi.
13136 * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
13137 (init_expmed_one_conv): Use pow2p_hwi.
13138 * expr.c (is_aligning_offset): Use pow2p_hwi.
13139 * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
13140 (fold_binary_loc): Use pow2p_hwi.
13141 * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
13142 * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
13143 * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
13144 * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
13145 Use least_bit_hwi.
13146 * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
13147 * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
13148 * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
13149 * omp-low.c (oacc_loop_fixed_partitions)
13150 (oacc_loop_auto_partitions): Use least_bit_hwi.
13151 * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
13152 * stor-layout.c (place_field): Use least_bit_hwi.
13153 * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
13154 * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
13155 * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
13156 * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
13157 * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
13158 * tree-vect-data-refs.c (vect_analyze_group_access_1)
13159 (vect_grouped_store_supported, vect_grouped_load_supported)
13160 (vect_permute_load_chain, vect_shift_permute_load_chain)
13161 (vect_transform_grouped_load): Use pow2p_hwi.
13162 * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
13163 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
13164 * tree-vect-stmts.c (vectorizable_mask_load_store): Use
13165 least_bit_hwi.
13166 * tsan.c (instrument_expr): Use least_bit_hwi.
13167 * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
13168
13169 2016-09-16 Andreas Schwab <schwab@suse.de>
13170
13171 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
13172 OFFSET, not offset.
13173 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
13174
13175 2016-09-16 Jakub Jelinek <jakub@redhat.com>
13176
13177 PR target/77526
13178 * combine.c (rest_of_handle_combine): If any edges have been purged,
13179 free dominators if available.
13180
13181 2016-09-16 Jakub Jelinek <jakub@redhat.com>
13182 Eric Botcazou <ebotcazou@adacore.com>
13183
13184 PR middle-end/77594
13185 * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
13186 through into expand_addsub_overflow after expand_neg_overflow.
13187
13188 2016-09-15 David Malcolm <dmalcolm@redhat.com>
13189
13190 * diagnostic-show-locus.c
13191 (selftest::test_fixit_insert_containing_newline): New function.
13192 (selftest::test_fixit_replace_containing_newline): New function.
13193 (selftest::diagnostic_show_locus_c_tests): Call the above.
13194
13195 2016-09-15 Bin Cheng <bin.cheng@arm.com>
13196
13197 PR tree-optimization/77503
13198 * tree-vect-loop.c (vectorizable_reduction): Record reduction
13199 code for CONST_COND_REDUCTION at analysis stage and use it at
13200 transform stage.
13201 * tree-vectorizer.h (struct _stmt_vec_info): New field.
13202 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
13203 * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
13204 field.
13205
13206 2016-09-15 Richard Biener <rguenther@suse.de>
13207
13208 PR middle-end/77544
13209 * fold-const.c (split_tree): Do not split constant ~X.
13210
13211 2016-09-15 Jakub Jelinek <jakub@redhat.com>
13212
13213 PR rtl-optimization/77425
13214 * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
13215 is NULL.
13216
13217 PR middle-end/77475
13218 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
13219 use %qs instead of %s where desirable, use argument instead of arg in
13220 the diagnostic wording, add list of supported strategies and
13221 spellcheck hint.
13222 (ix86_option_override_internal): Emit target("m...") instead of
13223 option("m...") in the diagnostic. Use %qs instead of %s in invalid
13224 -march/-mtune option diagnostic. Add list of supported arches/tunings
13225 and spellcheck hint. Remove prefix, suffix and sw variables, use
13226 main_args_p ? "..." : "..." in diagnostics to make translation
13227 possible.
13228
13229 2016-09-15 Richard Biener <rguenther@suse.de>
13230
13231 * dwarf2asm.h (dw2_asm_output_offset): Add overload with
13232 extra offset argument.
13233 * dwarf2asm.c (dw2_asm_output_offset): Implement that.
13234 * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
13235 to reflect new offset parameter.
13236 * doc/tm.texi: Regenerate.
13237 * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
13238 * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
13239 offset argument.
13240 (darwin_asm_output_dwarf_offset): Likewise.
13241 * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
13242 argument.
13243 (darwin_asm_output_dwarf_offset): Pass offset argument through.
13244 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
13245 * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
13246
13247 2016-09-15 Chung-Lin Tang <cltang@codesourcery.com>
13248
13249 PR fortran/72743
13250 * ipa-icf.c (set_alias_uids): New function.
13251 (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
13252 all the merged variable's referring aliases.
13253
13254 2016-09-15 Richard Biener <rguenther@suse.de>
13255
13256 PR tree-optimization/77514
13257 * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
13258 only forced_stmts sequence.
13259
13260 2016-09-15 Kugan Vivekanandarajah <kuganv@linaro.org>
13261
13262 * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
13263 * cfgexpand.c (update_alias_info_with_stack_vars): Use
13264 FOR_EACH_SSA_NAME to iterate over SSA variables.
13265 (pass_expand::execute): Likewise.
13266 * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
13267 * tree-cfg.c (dump_function_to_file): Likewise.
13268 * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
13269 (update_ssa): Likewise.
13270 * tree-ssa-alias.c (dump_alias_info): Likewise.
13271 * tree-ssa-ccp.c (ccp_finalize): Likewise.
13272 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
13273 (create_outofssa_var_map): Likewise.
13274 (coalesce_ssa_name): Likewise.
13275 * tree-ssa-operands.c (dump_immediate_uses): Likewise.
13276 * tree-ssa-pre.c (compute_avail): Likewise.
13277 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
13278 (scc_vn_restore_ssa_info): Likewise.
13279 (free_scc_vn): Likwise.
13280 (run_scc_vn): Likewise.
13281 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
13282 * tree-ssa-ter.c (new_temp_expr_table): Likewise.
13283 * tree-ssa-copy.c (fini_copy_prop): Likewise.
13284 * tree-ssa.c (verify_ssa): Likewise.
13285
13286 2016-09-14 Matthew Fortune <matthew.fortune@imgtec.com>
13287
13288 * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
13289 and mips64r2 as default 32-bit and 64-bit architectures.
13290 (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
13291 as default 32-bit and 64-bit architectures.
13292
13293 2016-09-14 Pat Haugen <pthaugen@us.ibm.com>
13294
13295 * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
13296 of succ edge.
13297
13298 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
13299
13300 * target.def (lra_p): Change commentary (for the manual) for the
13301 new default.
13302 * doc/tm.texi: Regenerate.
13303
13304 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
13305
13306 * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
13307 * config/arm/arm.c (TARGET_LRA_P): Delete macro.
13308 * config/i386/i386.c (TARGET_LRA_P): Delete macro.
13309 * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
13310
13311 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
13312
13313 * targhooks.c (default_lra_p): Return true instead of false.
13314
13315 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
13316
13317 * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
13318 hook_bool_void_false.
13319 * config/avr/avr.c: Ditto.
13320 * config/bfin/bfin.c: Ditto.
13321 * config/c6x/c6x.c: Ditto.
13322 * config/cr16/cr16.c: Ditto.
13323 * config/cris/cris.c: Ditto.
13324 * config/epiphany/epiphany.c: Ditto.
13325 * config/fr30/fr30.c: Ditto.
13326 * config/frv/frv.c: Ditto.
13327 * config/h8300/h8300.c: Ditto.
13328 * config/ia64/ia64.c: Ditto.
13329 * config/iq2000/iq2000.c: Ditto.
13330 * config/lm32/lm32.c: Ditto.
13331 * config/m32c/m32c.c: Ditto.
13332 * config/m32r/m32r.c: Ditto.
13333 * config/m68k/m68k.c: Ditto.
13334 * config/mcore/mcore.c: Ditto.
13335 * config/microblaze/microblaze.c: Ditto.
13336 * config/mmix/mmix.c: Ditto.
13337 * config/mn10300/mn10300.c: Ditto.
13338 * config/moxie/moxie.c: Ditto.
13339 * config/msp430/msp430.c: Ditto.
13340 * config/nios2/nios2.c: Ditto.
13341 * config/nvptx/nvptx.c: Ditto.
13342 * config/pa/pa.c: Ditto.
13343 * config/pdp11/pdp11.c: Ditto.
13344 * config/rl78/rl78.c: Ditto.
13345 * config/sparc/sparc.c: Ditto.
13346 * config/spu/spu.c: Ditto.
13347 * config/stormy16/stormy16.c: Ditto.
13348 * config/tilegx/tilegx.c: Ditto.
13349 * config/tilepro/tilepro.c: Ditto.
13350 * config/v850/v850.c: Ditto.
13351 * config/vax/vax.c: Ditto.
13352 * config/visium/visium.c: Ditto.
13353 * config/xtensa/xtensa.c: Ditto.
13354
13355 2016-09-14 Jakub Jelinek <jakub@redhat.com>
13356
13357 PR sanitizer/68260
13358 * tsan.c: Include target.h.
13359 (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
13360 (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
13361 (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
13362 BUILT_IN_ATOMIC_TEST_AND_SET entries.
13363 (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
13364
13365 2016-09-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13366 Martin Liska <mliska@suse.cz>
13367
13368 PR middle-end/77574
13369 * predict.c (force_edge_cold): Add braces to a condition.
13370
13371 2016-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
13372
13373 PR rtl-optimization/77289
13374 * lra-constraints.c (get_final_hard_regno): Removed.
13375 (get_hard_regno): Add new parameter final_p.
13376 (get_reg_class): Directly call lra_get_elimination_hard_regno.
13377 (operands_match_p): Adjust call to get_hard_regno.
13378 (uses_hard_regs_p): Likewise.
13379 (process_alt_operands): Likewise.
13380
13381 2016-09-13 Joe Seymour <joe.s@somniumtech.com>
13382
13383 PR target/70713
13384 * config/msp430/msp430.c (msp430_start_function): Emit an error
13385 if a function is both weak and specifies an interrupt number.
13386
13387 2016-09-13 Jakub Jelinek <jakub@redhat.com>
13388
13389 PR tree-optimization/77454
13390 * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
13391 changing GIMPLE_COND. Move update_stmt_if_modified call after this.
13392 Formatting fix.
13393
13394 2016-09-13 Tamar Christina <tamar.christina@arm.com>
13395
13396 * config/aarch64/aarch64-builtins.c
13397 (aarch64_init_simd_builtins): Fix builtin type signature printing.
13398
13399 2016-09-13 Uros Bizjak <ubizjak@gmail.com>
13400
13401 * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
13402 SFmode and SCmode arguments by reference.
13403
13404 2016-09-13 David Malcolm <dmalcolm@redhat.com>
13405
13406 * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
13407 Rename to...
13408 (selftest::test_one_liner_fixit_insert_before): ...this, and update
13409 for renaming of add_fixit_insert to add_fixit_insert_before.
13410 (selftest::test_one_liner_fixit_insert_after): New function.
13411 (selftest::test_one_liner_fixit_validation_adhoc_locations):
13412 Update for renaming of add_fixit_insert to add_fixit_insert_before.
13413 (selftest::test_one_liner_many_fixits): Likewise.
13414 (selftest::test_diagnostic_show_locus_one_liner): Update for
13415 renaming, call new test function.
13416 (selftest::test_diagnostic_show_locus_fixit_lines): Update for
13417 renaming of add_fixit_insert to add_fixit_insert_before.
13418 (selftest::test_fixit_consolidation): Likewise.
13419 * diagnostic.c (selftest::test_print_parseable_fixits_insert):
13420 Likewise.
13421 * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
13422 (selftest::test_applying_fixits_insert_before): ...this.
13423 (selftest::test_applying_fixits_insert): Update for renaming of
13424 add_fixit_insert to add_fixit_insert_before.
13425 (selftest::test_applying_fixits_insert_after): New function.
13426 (selftest::test_applying_fixits_insert_after_at_line_end): New
13427 function.
13428 (selftest::test_applying_fixits_insert_after_failure): New function.
13429 (selftest::test_applying_fixits_multiple): Update for renaming of
13430 add_fixit_insert to add_fixit_insert_before.
13431 (selftest::change_line): Likewise.
13432 (selftest::test_applying_fixits_unreadable_file): Likewise.
13433 (selftest::test_applying_fixits_line_out_of_range): Likewise.
13434 (selftest::test_applying_fixits_column_validation): Likewise.
13435 (selftest::test_applying_fixits_column_validation): Likewise.
13436 (selftest::edit_context_c_tests): Update for renamed test function;
13437 call new test functions.
13438
13439 2016-09-13 Pat Haugen <pthaugen@us.ibm.com>
13440
13441 PR tree-optimization/77536
13442 PR rtl-optimization/68212
13443 * config/rs6000/rs6000.md (div->recip splitter): Remove
13444 optimize_insn_for_speed_p condition.
13445
13446 2016-09-13 Maciej W. Rozycki <macro@imgtec.com>
13447
13448 * optabs.c (prepare_cmp_insn): Update documentation comment.
13449
13450 2016-09-13 Jakub Jelinek <jakub@redhat.com>
13451 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13452
13453 PR middle-end/77475
13454 * opts.h (candidates_list_and_hint): Declare.
13455 * opts-common.c (candidates_list_and_hint): New function.
13456 (cmdline_handle_error): Use it.
13457
13458 2016-09-12 David Malcolm <dmalcolm@redhat.com>
13459
13460 * edit-context.c (edited_line::get_len): New accessor.
13461 (edited_file::print_diff): Split out hunk-printing into...
13462 (edited_file::print_diff_hunk): New method.
13463 (edited_file::print_diff_line): New method.
13464
13465 2016-09-12 Andrew Pinski <apinski@cavium.com>
13466
13467 * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
13468 New tuning option.
13469 * config/aarch64/aarch64.c (thunderx_tunings): Enable
13470 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
13471 (aarch64_operands_ok_for_ldpstp): Return false if
13472 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
13473 was SImode and the alignment is less than 8 byte.
13474 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
13475
13476 2016-09-12 Orlando Arias <oarias@knights.ucf.edu>
13477
13478 PR target/77570
13479 * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
13480
13481 2016-09-12 Marek Polacek <polacek@redhat.com>
13482
13483 * doc/extend.texi: Use lowercase "boolean".
13484 * doc/invoke.texi: Likewise.
13485 * doc/md.texi: Likewise.
13486 * target.def: Likewise.
13487 * doc/tm.texi: Regenerated.
13488
13489 2016-09-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13490
13491 PR middle-end/77426
13492 * expmed.c (synth_mult): Delete duplicate mode check.
13493
13494 2016-09-10 Tom de Vries <tom@codesourcery.com>
13495
13496 PR C/71602
13497 * builtins.c (std_canonical_va_list_type): Strictly return non-null for
13498 va_list type only.
13499 * config/i386/i386.c (ix86_canonical_va_list_type): Same.
13500 * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
13501
13502 2016-09-09 Peter Bergner <bergner@vnet.ibm.com>
13503
13504 PR rtl-optimization/77289
13505 * lra-constraints.c (get_final_hard_regno): Add support for non hard
13506 register numbers. Remove support for subregs.
13507 (get_hard_regno): Use SUBREG_P. Don't call get_final_hard_regno().
13508 (get_reg_class): Delete removed get_final_hard_regno() argument.
13509 (uses_hard_regs_p): Call get_final_hard_regno().
13510
13511 2016-09-09 Martin Sebor <msebor@redhat.com>
13512
13513 PR c/77520
13514 PR c/77521
13515 * pretty-print.c (pp_quoted_string): New function.
13516 (pp_format): Call it for %c and %s directives.
13517
13518 2016-09-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
13519
13520 * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
13521 (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
13522 INITIAL_ELIMINATION_OFFSET) : Update documentation.
13523 * target.def (frame_pointer_required, can_eliminate): Likewise.
13524 * doc/tm.texi: Regenerated.
13525 * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
13526 ELIMINABLE_REGS.
13527 * df-scan.c (df_hard_reg_init): Likewise.
13528 * ira.c (ira_setup_eliminable_regset): Likewise.
13529 * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
13530 init_elim_table): Likewise.
13531 * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
13532 set_initial_elim_offsets, update_eliminables,
13533 init_elim_table): Likewise.
13534 * rtlanal.c (get_initial_register_offset): Likewise.
13535 * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
13536 * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
13537 * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
13538 * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
13539 * config/fr30/fr30.h: Fix comment.
13540 * config/frv/frv.c: Likewise.
13541 * config/frv/frv.h: Likewise.
13542 * config/ft32/ft32.h: Likewise.
13543 * config/visium/visium.h: Likewise.
13544 * config/pa/pa64-linux.h: Likewise.
13545 * config/v850/v850.h: Likewise.
13546 * config/cris/cris.c: Likewise.
13547 * config/ia64/ia64.h: Likewise.
13548 * config/moxie/moxie.h: Likewise.
13549 * config/m32r/m32r.h: Likewise.
13550
13551 2016-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
13552
13553 PR target/77267
13554 * config.in: Regenerate.
13555 * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
13556 New macro.
13557 (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
13558 (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
13559 static-libmpxwrappers case.
13560 (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
13561 MPX_LD_AS_NEEDED_GUARD_POP.
13562 * configure: Regenerate.
13563 * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
13564 defined if linker support "--push-state"/"--pop-state".
13565
13566 2016-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
13567
13568 * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
13569
13570 2016-09-09 Joseph Myers <joseph@codesourcery.com>
13571
13572 * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
13573 (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
13574 (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
13575 (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
13576 (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
13577 (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
13578 (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
13579 Document.
13580 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
13581 width macros from TS 18661-1.
13582 * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
13583
13584 2016-09-08 Jakub Jelinek <jakub@redhat.com>
13585
13586 PR fortran/77516
13587 * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
13588 OMP_CLAUSE_SAFELEN_EXPR.
13589
13590 2016-09-07 David Malcolm <dmalcolm@redhat.com>
13591
13592 * Makefile.in (OBJS): Add substring-locations.o.
13593 * langhooks-def.h (class substring_loc): New forward decl.
13594 (lhd_get_substring_location): New decl.
13595 (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
13596 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
13597 * langhooks.c (lhd_get_substring_location): New function.
13598 * langhooks.h (class substring_loc): New forward decl.
13599 (struct lang_hooks): Add field get_substring_location.
13600 * substring-locations.c: New file, taking definition of
13601 format_warning_va and format_warning_at_substring from
13602 c-family/c-format.c, making them non-static.
13603 * substring-locations.h (class substring_loc): Move class here
13604 from c-family/c-common.h. Add and rewrite comments.
13605 (format_warning_va): New decl.
13606 (format_warning_at_substring): New decl.
13607 (get_source_location_for_substring): Add comment.
13608
13609 2016-09-07 Eric Gallager <egall@gwmail.gwu.edu>
13610
13611 * config/i386/i386.c: Add 'U' suffix to processor feature bits
13612 to avoid -Wnarrowing warning.
13613 * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
13614 * opts.c: Likewise for SANITIZER_OPT bitmasks.
13615
13616 2016-09-07 Wilco Dijkstra <wdijkstr@arm.com>
13617
13618 * config/aarch64/aarch64.c (aarch64_legitimize_address):
13619 Avoid use of base_offset if offset already in range.
13620
13621 2016-09-07 Kaz Kojima <kkojima@gcc.gnu.org>
13622
13623 * config/sh/sh-protos.h (struct sh_atomic_model,
13624 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
13625 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
13626 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
13627 * config/sh/sh.h (struct sh_atomic_model,
13628 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
13629 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
13630 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
13631 Guard with __cplusplus.
13632
13633 2016-09-06 Jakub Jelinek <jakub@redhat.com>
13634
13635 PR target/69255
13636 * config/i386/i386.c (ix86_expand_builtin): For builtin with
13637 unsupported or unknown ISA, use expand_call.
13638
13639 2016-09-06 Martin Liska <mliska@suse.cz>
13640
13641 PR gcov-profile/77378
13642 PR gcov-profile/77466
13643 * tree-profile.c (tree_profiling): Detect whether target can use
13644 -fprofile-update=atomic.
13645
13646 2016-09-06 Richard Biener <rguenther@suse.de>
13647
13648 PR tree-optimization/77479
13649 * tree-vrp.c (update_value_range): Extend overflow handling to
13650 VARYING.
13651
13652 2016-09-05 Jakub Jelinek <jakub@redhat.com>
13653
13654 PR target/77476
13655 * config/i386/i386.md (isa): Add x64_avx512bw.
13656 (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
13657 (kmov_isa): New mode attr.
13658 (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
13659 (*zero_extend<mode>si2): Likewise.
13660 (*zero_extendqihi2): Use avx512dq isa for the last alternative.
13661
13662 2016-09-05 Gerald Pfeifer <gerald@pfeifer.com>
13663
13664 * doc/invoke.texi (SPU Options): nops -> NOPs.
13665 (x86 Options): Ditto.
13666
13667 2016-09-05 Jakub Jelinek <jakub@redhat.com>
13668
13669 PR middle-end/77475
13670 * toplev.c (process_options): Temporarily set input_location
13671 to UNKNOWN_LOCATION around targetm.target_option.override () call.
13672
13673 2016-09-05 Uros Bizjak <ubizjak@gmail.com>
13674
13675 PR rtl-optimization/77452
13676 * explow.c (plus_constant) <case MEM>: Extract scalar constant from
13677 inner-mode reference to a CONST_VECTOR constant in the constant pool.
13678
13679 2016-09-05 Marek Polacek <polacek@redhat.com>
13680
13681 PR c/77423
13682 * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
13683
13684 2016-09-05 Jakub Jelinek <jakub@redhat.com>
13685
13686 PR other/77421
13687 * gensupport.c (alter_output_for_subst_insn): Remove redundant
13688 *insn_out == '*' test. Don't copy unnecessary to yet another
13689 memory buffer, and don't leak it.
13690
13691 PR rtl-optimization/77425
13692 * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
13693
13694 2016-09-03 Kirill Yukhin <kirill.yukhin@intel.com>
13695
13696 * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
13697
13698 2016-09-02 David Malcolm <dmalcolm@redhat.com>
13699
13700 * common.opt (fdiagnostics-generate-patch): New option.
13701 * diagnostic.c: Include "edit-context.h".
13702 (diagnostic_initialize): Initialize context->edit_context_ptr.
13703 (diagnostic_finish): Delete context->edit_context_ptr.
13704 (diagnostic_report_diagnostic): Add fix-it hints from the
13705 diagnostic to context->edit_context_ptr, if any.
13706 * diagnostic.h (class edit_context): Add forward decl.
13707 (struct diagnostic_context): Add field "edit_context_ptr".
13708 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
13709 -fdiagnostics-generate-patch.
13710 (-fdiagnostics-generate-patch): New item.
13711 * toplev.c: Include "edit-context.h".
13712 (process_options): Set global_dc->edit_context_ptr to a new
13713 edit_context if the options need one.
13714 (toplev::main): Handle -fdiagnostics-generate-patch by using
13715 global_dc->edit_context_ptr.
13716
13717 2016-09-02 Jakub Jelinek <jakub@redhat.com>
13718
13719 PR c/65467
13720 * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
13721 map and firstprivate clauses on target construct for _Atomic
13722 qualified decls.
13723 (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
13724 on target construct for _Atomic qualified decls.
13725 * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
13726 decls.
13727 * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
13728 _Atomic qualified arguments not mentioned in uniform clause.
13729
13730 2016-09-02 David Malcolm <dmalcolm@redhat.com>
13731
13732 * Makefile.in (OBJS-libcommon): Add edit-context.o.
13733 * diagnostic-color.c (color_dict): Add "diff-filename",
13734 "diff-hunk", "diff-delete", and "diff-insert".
13735 (parse_gcc_colors): Update default value of GCC_COLORS in comment
13736 to reflect above changes.
13737 * doc/invoke.texi (-fdiagnostics-color): Update description of
13738 default GCC_COLORS, and of the supported capabilities.
13739 * edit-context.c: New file.
13740 * edit-context.h: New file.
13741 * input.c (struct fcache): Add field "missing_trailing_newline".
13742 (diagnostics_file_cache_forcibly_evict_file): Initialize it to
13743 true.
13744 (add_file_to_cache_tab): Likewise.
13745 (fcache::fcache): Likewise.
13746 (get_next_line): Update c->missing_trailing_newline.
13747 (location_missing_trailing_newline): New function.
13748 * input.h (location_missing_trailing_newline): New decl.
13749 * selftest-run-tests.c (selftest::run_tests): Call
13750 edit_context_c_tests.
13751 * selftest.h (edit_context_c_tests): New decl.
13752
13753 2016-09-02 Jakub Jelinek <jakub@redhat.com>
13754 Richard Biener <rguenth@suse.de>
13755
13756 PR tree-optimization/77444
13757 * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
13758 as steptype, remove redundant initialization.
13759
13760 2016-09-02 Jakub Jelinek <jakub@redhat.com>
13761
13762 PR sanitizer/77396
13763 * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
13764 (sanopt_optimize_walker): Optimize away
13765 __asan_before_dynamic_init (...) followed by
13766 __asan_after_dynamic_init () without intervening memory loads/stores.
13767 * ipa-pure-const.c (special_builtin_state): Handle
13768 BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
13769 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
13770
13771 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13772
13773 * cfg.c (free_original_copy_tables): Replace second assignment of
13774 bb_copy = NULL by bb_original = NULL.
13775
13776 2016-09-02 Jakub Jelinek <jakub@redhat.com>
13777
13778 PR other/77421
13779 * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
13780 assignment added in r216794.
13781
13782 2016-09-02 David Malcolm <dmalcolm@redhat.com>
13783
13784 * Makefile.in (OBJS): Add typed-splay-tree.o.
13785 * selftest-run-tests.c (selftest::run_tests): Call
13786 typed_splay_tree_c_tests.
13787 * selftest.h (typed_splay_tree_c_tests): New decl.
13788 * typed-splay-tree.c: New file.
13789 * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
13790 (typed_splay_tree::max): New method.
13791 (typed_splay_tree::min): New method.
13792 (typed_splay_tree::foreach): New method.
13793 (typed_splay_tree::closure): New struct.
13794 (typed_splay_tree::inner_foreach_fn): New function.
13795
13796 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13797
13798 * ipa-cp.c (ipcp_store_bits_results): Change option name from
13799 -fipa-cp-bit to -fipa-bit-cp.
13800
13801 2016-09-01 Martin Sebor <msebor@redhat.com>
13802
13803 PR tree-optimization/71831
13804 * tree-object-size.h: Return bool instead of the size and add
13805 argument for the size.
13806 * tree-object-size.c (compute_object_offset): Update signature.
13807 (addr_object_size): Same.
13808 (compute_builtin_object_size): Return bool instead of the size
13809 and add argument for the size. Handle POINTER_PLUS_EXPR when
13810 optimization is disabled.
13811 (expr_object_size): Adjust.
13812 (plus_stmt_object_size): Adjust.
13813 (pass_object_sizes::execute): Adjust.
13814 * builtins.c (fold_builtin_object_size): Adjust.
13815 * doc/extend.texi (Object Size Checking): Update.
13816 * ubsan.c (instrument_object_size): Adjust.
13817
13818 2016-09-01 Martin Sebor <msebor@redhat.com>
13819
13820 * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
13821 it fits the output of the formatted function regardless of its
13822 arguments.
13823 * genmodes.c (parser::parse_expr): Same.
13824 * gimplify.c (gimplify_asm_expr): Same.
13825 * passes.c (pass_manager::register_one_dump_file): Same.
13826 * print-tree.c (print_node): Same.
13827
13828 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13829
13830 * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
13831
13832 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13833
13834 * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
13835
13836 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13837
13838 * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
13839 * config/rs6000/vector.md: Ditto.
13840 * config/rs6000/vsx.md: Ditto.
13841
13842 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
13843
13844 * ipa-inline-analysis.c (param_change_prob): Get to the base object
13845 first in all cases.
13846
13847 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13848
13849 * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
13850 *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
13851 *return_and_restore_gpregs_<mode>_r11,
13852 *return_and_restore_gpregs_<mode>_r12,
13853 *return_and_restore_gpregs_<mode>_r1,
13854 *return_and_restore_fpregs_<mode>_r11,
13855 *return_and_restore_fpregs_<mode>_r12,
13856 *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
13857 directly instead of via the "l" constraint. Renumber operands.
13858 Fix whitespace.
13859
13860 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13861
13862 * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
13863 save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
13864 *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
13865 * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
13866 load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
13867 *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
13868 *call_value_nonlocal_darwin64, reload_macho_picbase,
13869 reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
13870 * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
13871 * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
13872 *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
13873 *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
13874 *save_fpregs_<mode>_r1): Ditto.
13875 * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
13876 *return_and_restore_gpregs_spe): Ditto.
13877
13878 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13879
13880 * config/rs6000/rs6000.md
13881 (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
13882 the use of the link register.
13883 (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
13884
13885 2016-09-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13886 Michael Meissner <meissner@linux.vnet.ibm.com>
13887
13888 PR target/72827
13889 * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
13890 reg+reg addressing for TImode.
13891 (rs6000_legitimate_address_p): Only allow register indirect
13892 addressing for TImode, even without TARGET_QUAD_MEMORY.
13893
13894 2016-09-01 Richard Biener <rguenther@suse.de>
13895
13896 PR middle-end/77436
13897 * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
13898 check whether the result fits the desired result type.
13899
13900 2016-09-01 Nathan Sidwell <nathan@acm.org>
13901
13902 * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
13903
13904 2016-09-01 Wilco Dijkstra <wdijkstr@arm.com>
13905
13906 * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
13907 New function.
13908 (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
13909
13910 2016-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13911
13912 * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
13913 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
13914 for comparisons of integer ZERO_EXTEND against zero.
13915
13916 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
13917
13918 * config/i386/i386.c (ix86_option_override_internal): Also disable the
13919 STV pass if -mstackrealign is enabled.
13920
13921 2016-08-31 Ilya Verbin <iverbin@gmail.com>
13922
13923 * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
13924 AVX512IFMA.
13925
13926 2016-08-31 David Malcolm <dmalcolm@redhat.com>
13927
13928 * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
13929 (layout_range::intersects_line_p): New method.
13930 (test_range_contains_point_for_single_point): Rename to...
13931 (test_layout_range_for_single_point): ...this, and add testing
13932 for layout_range::intersects_line_p.
13933 (test_range_contains_point_for_single_line): Rename to...
13934 (test_layout_range_for_single_line): ...this, and add testing
13935 for layout_range::intersects_line_p.
13936 (test_range_contains_point_for_multiple_lines): Rename to...
13937 (test_layout_range_for_multiple_lines): ...this, and add testing
13938 for layout_range::intersects_line_p.
13939 (layout::layout): Populate m_fixit_hints.
13940 (layout::get_expanded_location): Handle the case of a line-span
13941 for a fix-it hint.
13942 (layout::validate_fixit_hint_p): New method.
13943 (get_line_span_for_fixit_hint): New function.
13944 (layout::calculate_line_spans): Add spans for fixit-hints.
13945 (layout::should_print_annotation_line_p): New method.
13946 (layout::print_any_fixits): Drop param "richloc", instead using
13947 validated fixits in m_fixit_hints. Add "const" to hint pointers.
13948 (diagnostic_show_locus): Avoid printing blank annotation lines.
13949 (selftest::test_diagnostic_context::test_diagnostic_context):
13950 Initialize show_column and start_span.
13951 (selftest::test_diagnostic_context::start_span_cb): New static
13952 function.
13953 (selftest::test_diagnostic_show_locus_fixit_lines): New function.
13954 (selftest::diagnostic_show_locus_c_tests): Update for function
13955 renamings. Call test_diagnostic_show_locus_fixit_lines.
13956
13957 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
13958
13959 PR tree-optimization/73714
13960 * match.pd (a * (1 << b)): Revert change from 2016-05-23.
13961
13962 2016-08-31 David Malcolm <dmalcolm@redhat.com>
13963
13964 * selftest.c: Move "namespace selftest {" to top of file,
13965 removing explicit "selftest::" qualifiers throughout.
13966
13967 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
13968
13969 * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
13970 New types.
13971 (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
13972 _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
13973 Replace builtin with vector extension.
13974 * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
13975 New types.
13976 (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
13977 _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
13978 Replace builtin with vector extension.
13979 * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
13980 (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
13981 Replace builtin with vector extension.
13982 * config/i386/xmmintrin.h (__m128_u): New type.
13983 (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
13984 (_mm_load_ps, _mm_store_ps): Simplify.
13985
13986 2016-08-31 Eric Botcazou <ebotcazou@adacore.com>
13987
13988 * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
13989
13990 2016-08-30 David Malcolm <dmalcolm@redhat.com>
13991
13992 * diagnostic-show-locus.c (colorizer::begin_state): Support more
13993 than 3 ranges per diagnostic by alternating between color 1 and
13994 color 2.
13995 (layout::layout): Replace use of rich_location::MAX_RANGES
13996 with richloc->get_num_locations ().
13997 (layout::calculate_line_spans): Replace use of
13998 rich_location::MAX_RANGES with m_layout_ranges.length ().
13999 (layout::print_annotation_line): Handle arbitrary numbers of
14000 ranges in caret-printing by defaulting to '^'.
14001 (selftest::test_one_liner_many_fixits): New function.
14002 (test_diagnostic_show_locus_one_liner): Call it.
14003 * diagnostic.c (diagnostic_initialize): Update for renaming
14004 of rich_location::MAX_RANGES to
14005 rich_location::STATICALLY_ALLOCATED_RANGES.
14006 * diagnostic.h (struct diagnostic_context): Likewise.
14007
14008 2016-08-30 David Malcolm <dmalcolm@redhat.com>
14009
14010 * selftest.c (selftest::named_temp_file::named_temp_file): New
14011 ctor.
14012 (selftest::temp_source_file::~temp_source_file): Move to...
14013 (selftest::named_temp_file::~named_temp_file): ...here.
14014 (selftest::test_named_temp_file): New function.
14015 (selftest::selftest_c_tests): Call test_named_temp_file.
14016 * selftest.h (class named_temp_file): New class.
14017 (class temp_source_file): Convert to a subclass of named_temp_file.
14018
14019 2016-08-30 Segher Boessenkool <segher@kernel.crashing.org>
14020
14021 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
14022 USEs of LR_REGNO in returns and sibcalls.
14023 (rs6000_output_mi_thunk): Similar.
14024 (rs6000_sibcall_aix): Similar.
14025 * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
14026 sibcall_local64, sibcall_value_local32, sibcall_value_local64,
14027 sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
14028 Remove the USE of LR_REGNO from the patterns as well. Delete an
14029 obsolete comment.
14030 (return_internal_<mode>): Delete.
14031
14032 2016-08-30 Tamar Christina <tamar.christina@arm.com>
14033
14034 * config/aarch64/aarch64-simd.md
14035 (aarch64_ld2<mode>_dreg_le): New.
14036 (aarch64_ld2<mode>_dreg_be): New.
14037 (aarch64_ld2<mode>_dreg): Removed.
14038 (aarch64_ld3<mode>_dreg_le): New.
14039 (aarch64_ld3<mode>_dreg_be): New.
14040 (aarch64_ld3<mode>_dreg): Removed.
14041 (aarch64_ld4<mode>_dreg_le): New.
14042 (aarch64_ld4<mode>_dreg_be): New.
14043 (aarch64_ld4<mode>_dreg): Removed.
14044 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
14045
14046 2016-08-30 David Malcolm <dmalcolm@redhat.com>
14047
14048 * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
14049 redundant location param.
14050 (test_one_liner_fixit_remove): Likewise.
14051 (test_one_liner_fixit_replace): Likewise.
14052 (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
14053 * gcc-rich-location.c
14054 (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
14055 get_range_from_loc. Drop overload taking a const char *.
14056 * gcc-rich-location.h
14057 (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
14058 a const char *.
14059
14060 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
14061
14062 * config/linux.c (linux_libc_has_function): Return true on musl.
14063
14064 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
14065
14066 * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
14067
14068 2016-08-30 Eric Botcazou <ebotcazou@adacore.com>
14069
14070 * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
14071 used for abnormal egdes.
14072
14073 2016-08-30 Jakub Jelinek <jakub@redhat.com>
14074
14075 PR tree-optimization/72866
14076 * tree-vect-patterns.c (search_type_for_mask): Turn into
14077 a small wrapper, move all code to ...
14078 (search_type_for_mask_1): ... this new function. Add caching
14079 and adjust recursive calls.
14080
14081 PR debug/77363
14082 * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
14083 instead of lookup_type_die (type_main_variant (type)) even for array
14084 types.
14085
14086 PR middle-end/77377
14087 * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
14088 constant pool reference return x instead of c.
14089
14090 2016-08-29 Segher Boessenkool <segher@kernel.crashing.org>
14091
14092 * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
14093 include MQ.
14094
14095 2016-08-29 David Malcolm <dmalcolm@redhat.com>
14096
14097 * input.c
14098 (selftest::test_make_location_nonpure_range_endpoints): Fix
14099 header comment.
14100
14101 2016-08-29 David Malcolm <dmalcolm@redhat.com>
14102
14103 * diagnostic-show-locus.c
14104 (selftest::test_one_liner_fixit_validation_adhoc_locations): New
14105 function.
14106 (selftest::test_diagnostic_show_locus_one_liner): Call it.
14107 * input.c (get_pure_location): Move to libcpp/line-map.c.
14108 * input.h (get_pure_location): Convert decl to an inline function
14109 calling implementation in libcpp.
14110
14111 2016-08-29 Uros Bizjak <ubizjak@gmail.com>
14112
14113 PR target/77403
14114 * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
14115 template for intel asm dialect.
14116 (vec_set_hi_<mode><mask_name>): Ditto.
14117
14118 2016-08-29 David Malcolm <dmalcolm@redhat.com>
14119
14120 * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
14121 (selftest::fail_formatted): Likewise.
14122
14123 2016-08-29 David Malcolm <dmalcolm@redhat.com>
14124
14125 * input.c (make_location): Call get_start and get_finish
14126 on the endpoints to avoid storing packed ranges or ad-hoc
14127 ranges in them.
14128 (selftest::test_make_location_nonpure_range_endpoints): New function.
14129 (selftest::input_c_tests): Call it.
14130 * input.h (get_start): New inline function.
14131
14132 2016-08-29 Tom de Vries <tom@codesourcery.com>
14133
14134 PR c/77398
14135 * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
14136 with assert.
14137
14138 2016-08-29 Eric Botcazou <ebotcazou@adacore.com>
14139
14140 * Makefile.in (gcov-iov.h): Add dummy recipe.
14141
14142 2016-08-29 Nathan Sidwell <nathan@acm.org>
14143
14144 * config/nvptx/nvptx.c: #include tree-vrp.h.
14145
14146 2016-08-28 Eric Botcazou <ebotcazou@adacore.com>
14147
14148 PR target/77324
14149 * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
14150 HIGH+LO construct during reload.
14151
14152 2016-08-28 Tom de Vries <tom@codesourcery.com>
14153
14154 PR lto/70955
14155 * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
14156 'sysv_abi va_list' attribute.
14157 (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
14158 (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
14159 attributes.
14160
14161 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14162
14163 * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
14164 * emit-rtl.c (unshare_all_rtl_1): Adjust.
14165 (unshare_all_rtl_again): Likewise.
14166 * function.c (assign_stack_local_1): Likewise.
14167 (assign_stack_temp_for_type): Likewise.
14168
14169 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14170
14171 * cfgbuild.c (make_edges): Adjust.
14172 * cfgrtl.c (can_delete_label_p): Likewise.
14173 * dwarf2cfi.c (create_trace_edges): Likewise.
14174 * except.c (sjlj_emit_dispatch_table): Likewise.
14175 * function.h (struct expr_status): make x_forced_labels a vector.
14176 * jump.c (rebuild_jump_labels_1): Adjust.
14177 * reload1.c (set_initial_label_offsets): Likewise.
14178 * stmt.c (force_label_rtx): Likewise.
14179 (expand_label): Likewise.
14180
14181 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14182
14183 * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
14184
14185 2016-08-27 Patrick Palka <ppalka@gcc.gnu.org>
14186
14187 PR tree-optimization/71077
14188 PR tree-optimization/68542
14189 * fold-const.c (fold_relational_const): Fix folding of
14190 VECTOR_CST comparisons that have a scalar boolean result type.
14191 (selftest::test_vector_folding): New static function.
14192 (selftest::fold_const_c_tests): Call it.
14193
14194 2016-08-27 Gerald Pfeifer <gerald@pfeifer.com>
14195
14196 * doc/extend.texi (SPU Built-in Functions): Remove stale
14197 references to material formerly at IBM and Sony.
14198
14199 2016-08-26 David Edelsohn <dje.gcc@gmail.com>
14200
14201 PR target/77349
14202 * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
14203
14204 2016-08-26 David Malcolm <dmalcolm@redhat.com>
14205
14206 * diagnostic-show-locus.c
14207 (selftest::test_fixit_consolidation): New function.
14208 (selftest::diagnostic_show_locus_c_tests): Call it.
14209 * gcc-rich-location.h (gcc_rich_location): Eliminate unused
14210 constructor based on source_range.
14211
14212 2016-08-26 David Malcolm <dmalcolm@redhat.com>
14213
14214 * diagnostic-color.c (color_dict): Add "fixit-insert" and
14215 "fixit-delete".
14216 (parse_gcc_colors): Update description of default GCC_COLORS.
14217 * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
14218 (colorizer::set_fixit_insert): New method.
14219 (colorizer::set_fixit_delete): New method.
14220 (colorizer::get_color_by_name): New method.
14221 (colorizer::STATE_FIXIT_INSERT): New constant.
14222 (colorizer::STATE_FIXIT_DELETE): New constant.
14223 (class colorizer): Drop "_cs" suffix from fields. Delete "_ce"
14224 fields in favor of new field "m_stop_color". Add fields
14225 "m_fixit_insert" and "m_fixit_delete".
14226 (colorizer::colorizer): Update for above changes. Replace
14227 colorize_start calls with calls to get_color_by_name.
14228 (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
14229 STATE_FIXIT_DELETE. Update for field renamings.
14230 (colorizer::finish_state): Simplify by using m_stop_color,
14231 rather than multiple identical "*_ce" fields.
14232 (colorizer::get_color_by_name): New method.
14233 (layout::print_any_fixits): Print insertions and replacements
14234 using the "fixit-insert" color, and deletions using the
14235 "fixit-delete" color.
14236 * doc/invoke.texi (-fdiagnostics-color): Update description of
14237 default GCC_COLORS, and of the supported capabilities.
14238
14239 2016-08-26 Max Filippov <jcmvbkbc@gmail.com>
14240
14241 * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
14242 current_function_static_stack_size variable with the static
14243 stack frame size of the current function when
14244 flag_stack_usage_info is enabled.
14245
14246 2016-08-26 Nathan Sidwell <nathan@acm.org>
14247
14248 * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
14249 assignment inside if condition.
14250
14251 2016-08-26 Richard Biener <rguenther@suse.de>
14252
14253 PR tree-optimization/69047
14254 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
14255 extracts similar to what FRE does.
14256 (non_rewritable_mem_ref_base): Likewise.
14257
14258 2016-08-26 Joseph Myers <joseph@codesourcery.com>
14259
14260 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
14261 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
14262 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
14263 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
14264 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
14265 Likewise.
14266 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
14267 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
14268 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
14269 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
14270 * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
14271
14272 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14273
14274 PR target/70473
14275 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
14276 reservation duration to 15 cycles.
14277 (cortex_a8_vfp_macs): Likewise.
14278 (cortex_a8_vfp_macd): Likewise.
14279 (cortex_a8_vfp_divs): Likewise.
14280 (cortex_a8_vfp_divd): Likewise.
14281
14282 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14283
14284 * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
14285 (aarch_macro_fusion_pair_p): Use above to avoid early return.
14286
14287 2016-08-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14288 Martin Jambhor <mjambor@suse.cz>
14289
14290 * common.opt: New option -fipa-bit-cp.
14291 * doc/invoke.texi: Document -fipa-bit-cp.
14292 * opts.c (default_options_table): Add entry for -fipa-bit-cp.
14293 (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
14294 * tree-ssa-ccp.h: New header file.
14295 * tree-ssa-ccp.c: Include tree-ssa-ccp.h
14296 (bit_value_binop_1): Change to bit_value_binop_1 and export it.
14297 Replace all occurences of tree parameter by two new params: signop, int.
14298 (bit_value_unop_1): Change to bit_value_unop and export it.
14299 Replace all occurences of tree parameter by two new params: signop,
14300 int.
14301 (bit_value_binop): Change call from bit_value_binop_1 to
14302 bit_value_binop.
14303 (bit_value_assume_aligned): Likewise.
14304 (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
14305 (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
14306 to ccp_finalize.
14307 (ccp_finalize): Skip processing if val->mask == 0.
14308 * ipa-cp.c: Include tree-ssa-ccp.h
14309 (ipcp_bits_lattice): New class.
14310 (ipcp_param_lattice (bits_lattice): New member.
14311 (print_all_lattices): Call ipcp_bits_lattice::print.
14312 (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
14313 (initialize_node_lattices): Likewise.
14314 (propagate_bits_accross_jump_function): New function.
14315 (propagate_constants_accross_call): Call
14316 propagate_bits_accross_jump_function.
14317 (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
14318 (ipcp_store_bits_results): New function.
14319 (ipcp_driver): Call ipcp_store_bits_results.
14320 * ipa-prop.h (ipa_bits): New struct.
14321 (ipa_jump_func): Add new member bits of type ipa_bits.
14322 (ipa_param_descriptor): Change decl to decl_or_type.
14323 (ipa_get_param): Change decl to decl_or_type and assert on
14324 PARM_DECL.
14325 (ipa_get_type): New function.
14326 (ipcp_transformation_summary): New member bits.
14327 * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
14328 (ipa_populate_param_decls): Likewise.
14329 (ipa_dump_param): Likewise.
14330 (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
14331 function.
14332 (ipa_set_jf_unknown): Set ipa_bits::known to false.
14333 (ipa_compute_jump_functions_for_edge): Compute jump function for bits
14334 propagation.
14335 (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
14336 (ipa_write_jump_function): Add streaming for ipa_bits.
14337 (ipa_read_jump_function): Add support for reading streamed ipa_bits.
14338 (write_ipcp_transformation_info): Add streaming for ipa_bits
14339 summary for ltrans.
14340 (read_ipcp_transfomration_info): Add support for reading streamed
14341 ipa_bits.
14342 (ipcp_update_bits): New function.
14343 (ipcp_transform_function): Call ipcp_update_bits.
14344
14345 2016-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
14346
14347 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
14348 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
14349
14350 2016-08-25 David Edelsohn <dje.gcc@gmail.com>
14351
14352 * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
14353
14354 2016-08-25 Richard Biener <rguenther@suse.de>
14355
14356 * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
14357 Only add locations in late dwarf.
14358 (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
14359 (dwarf2out_early_finish): But do it here.
14360
14361 2016-08-24 Michael Collison <michael.collison@linaro.org>
14362 Michael Collison <michael.collison@arm.com>
14363
14364 * config/arm/arm-modes.def: Add new condition code mode CC_V
14365 to represent the overflow bit.
14366 * config/arm/arm.c (maybe_get_arm_condition_code):
14367 Add support for CC_Vmode.
14368 (arm_gen_unlikely_cbranch): New function to generate common
14369 rtl conditional branches for overflow patterns.
14370 * config/arm/arm-protos.h: Add prototype for
14371 arm_gen_unlikely_cbranch.
14372 * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
14373 addsi3_compareV_upper): New patterns to support signed
14374 builtin overflow add operations.
14375 (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
14376 New patterns to support unsigned builtin add overflow operations.
14377 (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
14378 builtin overflow subtract operations,
14379 (usubv<mode>4): New patterns to support unsigned builtin subtract
14380 overflow operations.
14381 (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
14382 to support builtin overflow negate operations.
14383
14384 2016-08-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14385
14386 Revert
14387 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
14388
14389 * explow.c (get_dynamic_stack_size): Take known alignment of stack
14390 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
14391 needed.
14392
14393 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
14394
14395 * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
14396 MULTILIB_OPTIONS should be used. Small wording fixes.
14397 * genmultilib: Memorize set of all option combinations in
14398 combination_space. Detect if RHS of MULTILIB_REUSE uses an option not
14399 found in MULTILIB_OPTIONS by checking if option set is listed in
14400 combination_space. Output new and existing error message to stderr.
14401
14402 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
14403
14404 * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
14405 -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
14406 Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
14407 (MULTILIB_REUSE): Remove reuse rules for option set including
14408 -mfpu=fp-armv8 and -mfpu=vfpv4
14409
14410 2016-08-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
14411
14412 * config/arm/t-rtems: Add vfp multilib.
14413
14414 2016-08-23 Ian Lance Taylor <iant@golang.org>
14415
14416 * config/s390/s390.c (s390_asm_file_start): Call
14417 default_file_start.
14418
14419 2016-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
14420
14421 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
14422 initialization of all 0's to the 0 constant, instead of directly
14423 generating XOR. Add support for V4SImode vector initialization on
14424 64-bit systems with direct move, and rework the ISA 3.0 V4SImode
14425 initialization. Change variables used in V4SFmode vector
14426 intialization. For V4SFmode vector splat on ISA 3.0, make sure
14427 any memory addresses are in index form. Add support for using
14428 VSPLTH/VSPLTB to initialize vector short and vector char vectors
14429 with all of the same element.
14430 (regno_or_subregno): New helper function to return a register
14431 number for either REG or SUBREG.
14432 (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
14433 Use regno_or_subregno where possible.
14434 (rs6000_split_v4si_init_di_reg): New helper function to build up a
14435 DImode value from two SImode values in order to generate V4SImode
14436 vector initialization on 64-bit systems with direct move.
14437 (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
14438 initialization.
14439 (rtx_is_swappable_p): V4SImode vector initialization insn is not
14440 swappable.
14441 * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
14442 declaration.
14443 * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
14444 attributes to initialize V8HImode and V16QImode vectors with the
14445 same element.
14446 (VSX_SPLAT_COUNT): Likewise.
14447 (VSX_SPLAT_SUFFIX): Likewise.
14448 (UNSPEC_VSX_VEC_INIT): New unspec.
14449 (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
14450 Allow SFmode values to come from Altivec registers.
14451 (vsx_init_v4si): New insn/split for V4SImode vector initialization
14452 on 64-bit systems with direct move.
14453 (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
14454 vector initializations, to allow V4SImode vector initializations
14455 on 64-bit systems with direct move.
14456 (vsx_splat_v4si): Likewise.
14457 (vsx_splat_v4si_di): Likewise.
14458 (vsx_splat_v4sf): Likewise.
14459 (vsx_splat_v4sf_internal): Likewise.
14460 (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
14461 register classes.
14462 (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
14463 (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
14464 initializing V8HImode and V16QImode vectors with the same
14465 element.
14466 * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
14467 optimization if -maltivec=be.
14468
14469 2016-08-23 Christophe Lyon <christophe.lyon@linaro.org>
14470
14471 * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
14472 attribute for alternatives 3 and 4.
14473
14474 2016-08-23 David Malcolm <dmalcolm@redhat.com>
14475
14476 * selftest.c (selftest::assert_str_contains): New function.
14477 (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
14478 * selftest.h (selftest::assert_str_contains): New decl.
14479 (ASSERT_STR_CONTAINS): New macro.
14480
14481 2016-08-23 Richard Biener <rguenther@suse.de>
14482
14483 PR tree-optimization/77286
14484 * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
14485 the CFG here.
14486 (vect_transform_loop): Split exit edges of loop and scalar
14487 loop if required and at the appropriate time.
14488
14489 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
14490
14491 * explow.c (get_dynamic_stack_size): Take known alignment of stack
14492 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
14493 needed.
14494 Correct a typo in a comment.
14495
14496 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
14497
14498 * config/s390/s390.md ("*andc_split"): New splitter for and with
14499 complement.
14500
14501 2016-08-23 Richard Biener <rguenther@suse.de>
14502
14503 PR tree-optimization/27336
14504 * tree-vrp.c (infer_value_range): Handle stmts that can throw
14505 by looking for a non-EH edge.
14506 (process_assert_insertions_for): Likewise.
14507
14508 2016-08-23 Richard Biener <rguenther@suse.de>
14509
14510 PR middle-end/77305
14511 * statistics.c (statistics_counter_event): Robustify against
14512 NULL current_pass.
14513
14514 2016-08-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14515
14516 * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
14517 for targets amdfam10 and barcelona.
14518
14519 2016-08-22 Uros Bizjak <ubizjak@gmail.com>
14520
14521 * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
14522 (zero_extend<mode>di2): Ditto.
14523 (*zero_extend<mode>si2): Ditto.
14524 (*zero_extendqihi2): Ditto.
14525
14526 2016-08-22 Joseph Myers <joseph@codesourcery.com>
14527
14528 PR middle-end/77269
14529 * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
14530 (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
14531
14532 2016-08-22 Patrick Palka <ppalka@gcc.gnu.org>
14533
14534 * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
14535 identical consecutive elements.
14536 [SSA_NAME]: Print the name's def stmt on its own line. When printing
14537 the node's def stmt, avoid printing an unwanted trailing newline by
14538 replacing the call to print_gimple_stmt() with its inlined body and
14539 adjusting it to not set pp_needs_newline and to call pp_flush()
14540 instead of pp_newline_and_flush().
14541
14542 2016-08-22 Joseph Myers <joseph@codesourcery.com>
14543
14544 * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
14545 (float32_type_node, float64_type_node, float32x_type_node)
14546 (float128x_type_node): New macros.
14547 * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
14548 (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
14549 (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
14550 (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
14551 (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
14552 (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
14553 (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
14554 (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
14555 (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
14556 (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
14557 (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
14558 (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
14559 (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
14560 (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
14561 (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
14562 (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
14563 * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
14564 (copysign, fabs, huge_val, inf, nan, nans): Use it.
14565 * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
14566 and copysign.
14567 (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
14568 (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
14569 * doc/extend.texi (Other Builtins): Document these built-in
14570 functions.
14571 * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
14572 for nan and nans.
14573
14574 2016-08-22 Gerald Pfeifer <gerald@pfeifer.com>
14575
14576 * doc/install.texi (Binaries): www.opencsw.org now uses https.
14577
14578 2016-08-22 Richard Biener <rguenther@suse.de>
14579
14580 * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
14581
14582 2016-08-21 Uros Bizjak <ubizjak@gmail.com>
14583
14584 PR target/77270
14585 * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
14586 TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
14587 non-SSE2 athlons only, otherwise prefer SSE prefetches.
14588
14589 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
14590
14591 * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
14592 (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
14593 (vrp_visit_switch_stmt): Likewise.
14594 (extract_range_from_stmt): Factored out from vrp_visit_stmt.
14595 (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
14596 (vrp_visit_stmt): Use extract_range_from_stmt.
14597 (vrp_visit_phi_node): Use extract_range_from_phi_node.
14598
14599 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
14600
14601 * Makefile.in: Add tree-vrp.h to GTFILES.
14602 * gengtype.c (open_base_files): Add tree-vrp.h.
14603 * asan.c: Add tree-vrp.h which now has the definition value_range_type.
14604 * builtins.c: Likewise.
14605 * fold-const.c: Likewise.
14606 * gimple-builder.c: Likewise.
14607 * gimple-laddress.c: Likewise.
14608 * hsa-gen.c: Likewise.
14609 * internal-fn.c: Likewise.
14610 * ssa.h: Likewise.
14611 * targhooks.c: Liewise,
14612 * tree-ssa-address.c: Likewise.
14613 * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
14614 * tree-vrp.c (struct value_range): Move to tree-vrp.h
14615 * tree-vrp.h: New file.
14616
14617 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
14618
14619 PR tree-optimization/61839
14620 * tree-vrp.c (two_valued_val_range_p): New.
14621 (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
14622 two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
14623 Also Convert VAR BINOP CST where VAR is two-valued to
14624 VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
14625
14626 2016-08-19 David Malcolm <dmalcolm@redhat.com>
14627
14628 * diagnostic-show-locus.c
14629 (layout::annotation_line_showed_range_p): New method.
14630 (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
14631 Reimplement case fixit_hint::REPLACE to cover removals, and
14632 replacements where the range of the replacement isn't one
14633 of the ranges in the rich_location.
14634 (test_one_liner_fixit_replace): Likewise.
14635 (selftest::test_one_liner_fixit_replace_non_equal_range): New
14636 function.
14637 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
14638 New function.
14639 (selftest::test_diagnostic_show_locus_one_liner): Call the new
14640 functions.
14641 * diagnostic.c (print_parseable_fixits): Remove case
14642 fixit_hint::REMOVE.
14643
14644 2016-08-19 Uros Bizjak <ubizjak@gmail.com>
14645
14646 PR target/77270
14647 * config/i386/i386.c (ix86_option_override_internal): Remove
14648 PTA_PRFCHW from entries that also have PTA_3DNOW flag.
14649 Enable SSE prefetch also for TARGET_PREFETCHWT1.
14650 Do not try to enable TARGET_PRFCHW ISA flag here.
14651 * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
14652 Rewrite expander function body.
14653 (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
14654
14655 2016-08-19 Joseph Myers <joseph@codesourcery.com>
14656
14657 PR c/32187
14658 * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
14659 (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
14660 (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
14661 (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
14662 (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
14663 (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
14664 (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
14665 (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
14666 (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
14667 tree_index values.
14668 (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
14669 macros.
14670 (struct floatn_type_info): New structure type.
14671 (floatn_nx_types): New variable declaration.
14672 * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
14673 (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
14674 (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
14675 * tree.c (floatn_nx_types): New variable.
14676 (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
14677 corresponding complex types.
14678 * target.def (floatn_mode): New hook.
14679 * targhooks.c: Include "real.h".
14680 (default_floatn_mode): New function.
14681 * targhooks.h (default_floatn_mode): New prototype.
14682 * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
14683 types.
14684 * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
14685 effective-target and dg-add-options keywords.
14686 (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
14687 Document new effective-target keywords.
14688 * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
14689 * doc/tm.texi: Regenerate.
14690 * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
14691 __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
14692 [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
14693 18661-3.
14694 * real.h (struct real_format): Add field ieee_bits.
14695 * real.c (ieee_single_format, mips_single_format)
14696 (motorola_single_format, spu_single_format, ieee_double_format)
14697 (mips_double_format, motorola_double_format)
14698 (ieee_extended_motorola_format, ieee_extended_intel_96_format)
14699 (ieee_extended_intel_128_format)
14700 (ieee_extended_intel_96_round_53_format, ibm_extended_format)
14701 (mips_extended_format, ieee_quad_format, mips_quad_format)
14702 (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
14703 (decimal_double_format, decimal_quad_format, ieee_half_format)
14704 (arm_half_format, real_internal_format: Initialize ieee_bits
14705 field.
14706 * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
14707 float128_type_node. Set float80_type_node to float64x_type_node
14708 if appropriate and long_double_type_node not appropriate.
14709 * config/ia64/ia64.c (ia64_init_builtins): Likewise.
14710 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
14711 Initialize ieee_bits field.
14712 * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
14713 (rs6000_init_builtins): Set ieee128_float_type_node to
14714 float128_type_node.
14715 (rs6000_floatn_mode): New function.
14716
14717 2016-08-19 Jakub Jelinek <jakub@redhat.com>
14718
14719 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
14720 _rdseed64_step): Uglify argument names and/or local variable names
14721 in inline functions.
14722 * config/i386/rtmintrin.h (_xabort): Likewise.
14723 * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
14724 _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
14725 _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
14726 _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
14727 _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
14728 _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
14729 _mm_maskz_ternarylogic_epi32): Likewise.
14730 * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
14731 __lwpins32, __lwpins64): Likewise.
14732 * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
14733 _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
14734 _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
14735 _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
14736 _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
14737 _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
14738 _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
14739 _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
14740 _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
14741 _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
14742 _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
14743 _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
14744 _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
14745 _mm256_mask_i64gather_epi32): Likewise.
14746 * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
14747 * config/i386/ia32intrin.h (__writeeflags): Likewise.
14748 * config/i386/pkuintrin.h (_wrpkru): Likewise.
14749 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
14750 _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
14751 _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
14752 _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
14753 _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
14754 _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
14755 _mm512_mask_prefetch_i64scatter_ps): Likewise.
14756 * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
14757 * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
14758 _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
14759 _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
14760 _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
14761 _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
14762 _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
14763 _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
14764
14765 * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
14766 returning void.
14767 (_fxrstor, _fxsave64, _fxrstor64): Likewise.
14768 * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
14769 Likewise.
14770 * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
14771 * config/i386/pkuintrin.h (_wrpkru): Likewise. Add space after
14772 function name.
14773 (_rdpkru_u32): Add space after function name.
14774
14775 * config/i386/t-i386 (i386-c.o): Don't depend on
14776 i386-builtin-types.inc.
14777 (i386.o): Depend on i386-builtin-types.inc.
14778
14779 2016-08-19 Matthew Wahab <matthew.wahab@arm.com>
14780
14781 PR target/77281
14782 * config/arm/arm.c (neon_valid_immediate): Delete declaration.
14783 Use const_vec_duplicate to check for duplicated elements.
14784
14785 2016-08-19 Richard Biener <rguenther@suse.de>
14786
14787 PR tree-optimization/77290
14788 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14789 Fix flag_tree_parallelize_loops check.
14790
14791 2016-08-19 Richard Biener <rguenther@suse.de>
14792
14793 * match.pd (x | 0 -> x): Add.
14794
14795 2016-08-19 Richard Biener <rguenther@suse.de>
14796
14797 PR tree-optimization/77286
14798 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
14799 Deal with virtual PHIs being out-of-order.
14800
14801 2016-08-18 David Malcolm <dmalcolm@redhat.com>
14802
14803 * doc/invoke.texi (fverbose-asm): Note that source code lines
14804 are emitted, and provide an example.
14805 * final.c (asm_show_source): New function.
14806 (final_scan_insn): Call asm_show_source.
14807
14808 2016-08-18 David Malcolm <dmalcolm@redhat.com>
14809
14810 * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
14811 param with diagnostic_kind.
14812 (class colorizer): Similarly replace field m_diagnostic with
14813 m_diagnostic_kind.
14814 (colorizer::colorizer): Replace diagnostic
14815 param with diagnostic_kind.
14816 (colorizer::begin_state): Update for above field change.
14817 (layout::layout): Replace diagnostic param with rich_location *
14818 and diagnostic_kind.
14819 (diagnostic_show_locus): Replace diagnostic param with richloc
14820 and diagnostic_kind.
14821 (class selftest::test_diagnostic_context): New class.
14822 (selftest::test_diagnostic_show_locus_unknown_location): New
14823 function.
14824 (selftest::test_one_liner_simple_caret): New function.
14825 (selftest::test_one_liner_caret_and_range): New function.
14826 (selftest::test_one_liner_multiple_carets_and_ranges): New
14827 function.
14828 (selftest::test_one_liner_fixit_remove): New function.
14829 (selftest::test_one_liner_fixit_replace): New function.
14830 (selftest::test_diagnostic_show_locus_one_liner): New function.
14831 (selftest::diagnostic_show_locus_c_tests): Call the new test
14832 functions.
14833 * diagnostic.c (diagnostic_initialize): Initialize
14834 colorize_source_p, show_ruler_p and parseable_fixits_p.
14835 (default_diagnostic_finalizer): Update for change to
14836 diagnostic_show_locus.
14837 (diagnostic_append_note): Likewise.
14838 * diagnostic.h (diagnostic_show_locus): Replace
14839 const diagnostic_info * param with location * and diagnostic_t.
14840
14841 2016-08-18 David Malcolm <dmalcolm@redhat.com>
14842
14843 * input.c (saved_line_table): New global.
14844 (class selftest::temp_line_table): Rename to line_table_test and
14845 move declaration to selftest.h, and drop field m_old_line_table.
14846 (selftest::temp_line_table::temp_line_table): Rename ctor to...
14847 (selftest::line_table_test::line_table_test): ...this. Add a
14848 default ctor. Store current value of line_table within
14849 saved_line_table.
14850 (selftest::temp_line_table::~temp_line_table): Rename dtor to...
14851 (selftest::line_table_test::~line_table_test): ...this, and
14852 restore line_table from the saved_line_table, rather than
14853 m_old_line_table.
14854 (selftest::test_accessing_ordinary_linemaps): Update for above
14855 renaming.
14856 (selftest::test_lexer): Likewise.
14857 (struct selftest::lexer_test): Likewise.
14858 (selftest::lexer_test::lexer_test): Likewise.
14859 (selftest::input_c_tests): Move the looping over test cases from
14860 here into...
14861 (selftest::for_each_line_table_case): New function.
14862 * input.h (saved_line_table): New decl.
14863 * selftest.h (struct selftest::line_table_case): New forward decl.
14864 (class selftest::line_table_test): New class, moved here from
14865 selftest::temp_line_table in input.c, and renamed.
14866 (selftest::for_each_line_table_case): New decl.
14867
14868 2015-08-18 H.J. Lu <hongjiu.lu@intel.com>
14869
14870 PR target/72839
14871 * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
14872
14873 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
14874
14875 PR middle-end/70895
14876 * gimplify.c (omp_add_variable): Adjust/add variable mapping on
14877 enclosing parallel construct for reduction variables on OpenACC loop
14878 directives.
14879
14880 2016-08-18 Pierre-Marie de Rodat <derodat@adacore.com>
14881
14882 * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
14883 (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
14884 -gdwarf-3.
14885 (function_to_dwarf_procedure): Update comment.
14886
14887 2016-08-18 David Malcolm <dmalcolm@redhat.com>
14888
14889 * input.c (diagnostics_file_cache_forcibly_evict_file): New
14890 function.
14891 * input.h (diagnostics_file_cache_forcibly_evict_file): New
14892 declaration.
14893 * selftest.c (selftest::temp_source_file::~temp_source_file):
14894 Evict m_filename from the diagnostic file cache.
14895
14896 2016-08-18 Richard Biener <rguenther@suse.de>
14897
14898 * tree-pass.h (make_pass_materialize_all_clones): Declare.
14899 * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
14900 make_pass_materialize_all_clones): New simple IPA pass encapsulating
14901 clone materialization.
14902 * passes.def (all_late_ipa_passes): Start with
14903 pass_materialize_all_clones.
14904 * cgraphunit.c (symbol_table::compile): Remove call to
14905 materialize_all_clones.
14906 * tree-into-ssa.c: Include statistics.h.
14907 (update_ssa): Count number of times we do incremental/rewrite
14908 SSA update.
14909
14910 2016-08-18 Richard Biener <rguenther@suse.de>
14911
14912 PR tree-optimization/77282
14913 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14914 When doing auto-parallelizing also prevent use of PHIs that
14915 carry dependences across loop backedges.
14916
14917 2016-08-18 Tamar Christina <tamar.christina@arm.com>
14918 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14919
14920 * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
14921
14922 2016-08-18 Richard Biener <rguenther@suse.de>
14923
14924 * ssa-iterators.h (ssa_vuse_operand): New inline.
14925 * tree-if-conv.c (ifc_temp_var): Update virtual operand.
14926 (predicate_all_scalar_phis): Use remove_phi_node to remove
14927 phi nodes predicated. Delay removing virtual PHIs.
14928 (predicate_mem_writes): Update virtual operands.
14929 (combine_blocks): Likewise. Propagate out remaining virtual PHIs.
14930 (tree_if_conversion): Do not rewrite virtual SSA form.
14931 * tree-phinodes.c (release_phi_node): Make static.
14932 * tree-phinodes.h (release_phi_node): Remove.
14933
14934 2016-08-18 Jakub Jelinek <jakub@redhat.com>
14935
14936 * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
14937 codes that appear in bdesc_* arrays, instead include i386-builtin.def
14938 twice to define those.
14939 (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
14940 bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
14941 bdesc_multi_arg): Define by including i386-builtin.def the third time.
14942 * config/i386/i386-builtin.def: New file.
14943
14944 2016-08-17 David Malcolm <dmalcolm@redhat.com>
14945
14946 * input.c (get_source_range_for_char): Rename to...
14947 (selftest::get_source_range_for_char): ...this, and move within
14948 the #if CHECKING_P guard.
14949 (get_num_source_ranges_for_substring): Rename to...
14950 (selftest::get_num_source_ranges_for_substring): ...this, move
14951 within the #if CHECKING_P guard, and make static.
14952 (selftest::assert_num_substring_ranges): Initialize
14953 actual_num_ranges.
14954
14955 2016-08-18 Alan Modra <amodra@gmail.com>
14956
14957 PR rtl-optimization/72771
14958 * reload.c (find_reloads): Don't assume that a subreg mem is OK
14959 when find_reloads_toplev returns address_reloaded==-1.
14960 (alternative_allows_const_pool_ref): Update comment.
14961
14962 2015-08-17 Alan Hayward <alan.hayward@arm.com>
14963
14964 PR tree-optimization/71752
14965 * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
14966 * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
14967
14968 2016-08-17 Jakub Jelinek <jakub@redhat.com>
14969
14970 * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
14971 instead of testing ECF_NORETURN bit in gimple_call_flags.
14972 * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
14973 * predict.c (tree_bb_level_predictions): Likewise.
14974 * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
14975
14976 PR middle-end/77259
14977 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
14978 turning a call into __builtin_unreachable-like noreturn call, adjust
14979 gimple_call_set_fntype.
14980 * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
14981 gimple_call_fntype has void return type.
14982
14983 2016-08-17 Chung-Lin Tang <cltang@codesourcery.com>
14984
14985 * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
14986 maybe_lookup_decl, to handle nested acc loop directives.
14987
14988 2016-08-17 Richard Biener <rguenther@suse.de>
14989
14990 PR tree-optimization/76490
14991 * tree-vrp.c (update_value_range): Preserve overflow infinities
14992 when intersecting with ranges from get_range_info.
14993 (operand_less_p): Handle overflow infinities correctly.
14994 (value_range_constant_singleton): Use vrp_operand_equal_p
14995 to handle overflow max/min correctly.
14996 (vrp_valueize): Likewise.
14997 (union_ranges): Likewise.
14998 (intersect_ranges): Likewise.
14999 (vrp_visit_phi_node): Improve iteration limitation to only
15000 apply when we'll possibly re-visit the PHI via a changed argument
15001 on the backedge.
15002
15003 2016-08-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
15004
15005 * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
15006 (MULTILIB_REQUIRED): This by specifying multilib needing to be built
15007 rather than those that should not be built.
15008
15009 2016-08-17 Stanislaw Halik <sthalik@misaki.pl>
15010
15011 PR target/66488
15012 * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
15013
15014 2016-08-17 Richard Biener <rguenther@suse.de>
15015
15016 * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
15017 (verify_vssa): New function verifying virtual SSA form.
15018 (verify_ssa): Call it.
15019 * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
15020 Do not apply loop-closed SSA handling to virtuals.
15021 * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
15022 * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
15023 when rewriting their symbol.
15024 (prepare_def_site_for): Likewise.
15025 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
15026 operands of moved stmts.
15027
15028 2016-08-17 Richard Biener <rguenther@suse.de>
15029
15030 PR tree-optimization/23855
15031 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
15032 (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
15033 find guards to hoist. Do not update SSA form but rewrite virtuals
15034 into loop closed SSA.
15035 (find_loop_guard): Adjust to skip already hoisted guards. Do
15036 not mark virtuals for renaming or update SSA form.
15037
15038 2016-08-17 Martin Liska <mliska@suse.cz>
15039
15040 * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
15041 a LONG_LONG_TYPE_SIZE comparison.
15042 * gcov-io.h: Remove macro definitions.
15043 * tree-profile.c (gimple_gen_edge_profiler): Replace usage
15044 of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
15045 comparison.
15046
15047 2016-08-16 Jakub Jelinek <jakub@redhat.com>
15048
15049 * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
15050 that builtins not mentioned in bdesc_* arrays come first, then
15051 the ones mentioned in bdesc_* arrays in the order they appear in
15052 the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
15053 IX86_BUILTIN__BDESC_*_LAST enumerator.
15054 (bdesc_mpx): Fix up a comment typo.
15055 (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
15056 __builtin_ia32_vpcomneu[bwdq] builtins.
15057 (BDESC_VERIFY, BDESC_VERIFYS): Define.
15058 (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
15059 enum ix86_builtins ordering.
15060 (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
15061 for direct bdesc_* array member access instead of searching all the
15062 arrays until an fcode match is found.
15063
15064 2016-08-16 Uros Bizjak <ubizjak@gmail.com>
15065
15066 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
15067 pattern as define_insn_and_split. Split insn before reload to
15068 ashl<mode>3_1.
15069 (*<shift_insn><mode>3_mask): Ditto. Split insn before reload to
15070 <shift_insn><mode>3_1.
15071 (*<rotate_insn><mode>3_mask): Ditto. Split insn before reload to
15072 <rotate_insn><mode>3_1.
15073
15074 2016-08-16 David Malcolm <dmalcolm@redhat.com>
15075
15076 PR c/72857
15077 * input.c (get_source_range_for_substring): Rename to...
15078 (get_source_location_for_substring): ...this, adding param
15079 "caret_idx", and converting output param from source_range * to
15080 location_t *.
15081 (get_source_range_for_char): New function.
15082 (get_num_source_ranges_for_substring): Update comment to reflect
15083 above renaming.
15084 (assert_char_at_range): Update to use get_source_range_for_char
15085 rather than get_source_range_for_substring.
15086 (test_lexer_string_locations_concatenation_2): Likewise.
15087 * substring-locations.h (get_source_range_for_substring): Rename
15088 to...
15089 (get_source_location_for_substring): ...this, and adding param
15090 "caret_idx", and converting output param from source_range * to
15091 location_t *.
15092
15093 2016-08-16 David Malcolm <dmalcolm@redhat.com>
15094
15095 * input.c (class selftest::temp_source_file): Move to
15096 selftest.h.
15097 (selftest::temp_source_file::temp_source_file): Move to
15098 selftest.c.
15099 (selftest::temp_source_file::~temp_source_file): Likewise.
15100 * selftest.c (selftest::temp_source_file::temp_source_file): Move
15101 here from input.c.
15102 (selftest::temp_source_file::~temp_source_file): Likewise.
15103 * selftest.h (class selftest::temp_source_file): Move here from
15104 input.c
15105
15106 2016-08-16 Jakub Jelinek <jakub@redhat.com>
15107
15108 PR target/71910
15109 * tree-cfg.c (execute_fixup_cfg): Add node variable, use it. Before
15110 inlining, add cgraph edge for the added __builtin_unreachable call.
15111
15112 PR middle-end/67485
15113 * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
15114 only cast it to SHWI for the final comparison.
15115
15116 2016-08-16 Martin Liska <mliska@suse.cz>
15117
15118 PR gcov-profile/36412
15119 * doc/gcov.texi: Document --hash-filenames(-x).
15120 * gcov.c (print_usage): Add the option.
15121 (process_args): Process the option, sort options alphabetically.
15122 (md5sum_to_hex): New function.
15123 (make_gcov_file_name): Do the md5sum and append it to a
15124 filename.
15125
15126 2016-08-16 Bin Cheng <bin.cheng@arm.com>
15127
15128 PR tree-optimization/69848
15129 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
15130 and swtich operands to avoid additional NOT instruction.
15131 (vcond<v_cmp_mixed><mode>): Ditto.
15132 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
15133
15134 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
15135
15136 * doc/install.texi (*-*-solaris2*): Adjust latest change.
15137
15138 2016-08-16 Richard Biener <rguenther@suse.de>
15139
15140 PR tree-optimization/76783
15141 * tree-ssa-propagate.c (ssa_prop_init): Use RPO order. Clear
15142 BB visited flags at start.
15143
15144 2016-08-16 Bin Cheng <bin.cheng@arm.com>
15145
15146 PR tree-optimization/72817
15147 PR tree-optimization/73450
15148 * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
15149 multiple_of_p for adjusted IV.base.
15150
15151 2016-08-15 Uros Bizjak <ubizjak@gmail.com>
15152
15153 PR target/72867
15154 * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
15155 Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
15156 for !flag_finite_math_only or flag_signed_zeros.
15157 (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
15158 *<code><mode>3_finite<mask_name><round_saeonly_name>. Do not
15159 depend on flag_finite_math_only.
15160 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
15161 New insn pattern.
15162 (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
15163 (*ieee_smin<mode>3): Ditto.
15164 (*ieee_smax<mode>3): Ditto.
15165 * config/i386/mmx.md (mmx_<code>v2sf3): Emit
15166 mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
15167 flag_signed_zeros.
15168 (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite. Do not
15169 depend on flag_finite_math_only.
15170 (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
15171 (*mmx_<code>v2sf3): Remove.
15172 * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
15173 * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
15174 flag_signed_zeros instead of !flag_unsafe_math_optimizations.
15175
15176 2016-08-15 Segher Boessenkool <segher@kernel.crashing.org>
15177
15178 PR rtl-optimization/73650
15179 * lra-constraints.c (simple_move_p): If the insn is multiple_sets
15180 it is not a simple move.
15181
15182 2016-08-15 Martin Liska <mliska@suse.cz>
15183
15184 PR driver/72765
15185 * gcc.c (do_spec_1): Call save_string with the right size.
15186 (save_string): Do an assert about string we copy.
15187
15188 2016-08-15 Richard Biener <rguenther@suse.de>
15189
15190 * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
15191 * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
15192 TV_MACH_DEP.
15193 (pass_data_stv): Likewise.
15194
15195 2016-08-15 Richard Biener <rguenther@suse.de>
15196
15197 PR tree-optimization/73434
15198 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
15199 TBAA info on the base when forwarding a non-invariant address.
15200
15201 2016-08-15 Jakub Jelinek <jakub@redhat.com>
15202
15203 * dwarf2out.c (struct checksum_attributes): Add
15204 at_string_length_bit_size and at_string_length_byte_size fields.
15205 (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
15206 and DW_AT_string_length_byte_size.
15207 (die_checksum_ordered): Handle at_string_length_bit_size and
15208 at_string_length_byte_size.
15209 (gen_array_type_die): For dwarf_version >= 5 emit
15210 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
15211 (adjust_string_types): For dwarf_version >= 5 remove
15212 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
15213 (resolve_addr): Likewise.
15214
15215 PR debug/71906
15216 * dwarf2out.c (string_types): New variable.
15217 (gen_array_type_die): Change early_dwarf handling of
15218 DW_AT_string_length, create DW_OP_call4 referencing the
15219 length var temporarily. Handle parameters that are pointers
15220 to string length.
15221 (adjust_string_types): New function.
15222 (gen_subprogram_die): Temporarily set string_types to local var,
15223 call adjust_string_types if needed.
15224 (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
15225 New functions.
15226 (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
15227
15228 2016-08-15 Eric Botcazou <ebotcazou@adacore.com>
15229
15230 * doc/install.texi (*-*-solaris2*): Fix version number and document
15231 requirement on GNU make for building libjava with the Solaris linker.
15232
15233 2016-08-15 Martin Liska <mliska@suse.cz>
15234 Jakub Jelinek <jakub@redhat.com>
15235
15236 PR tree-optimization/72824
15237 * tree-loop-distribution.c (const_with_all_bytes_same)
15238 <case VECTOR_CST>: Fix a typo.
15239
15240 2016-08-14 Uros Bizjak <ubizjak@gmail.com>
15241
15242 PR target/76342
15243 * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
15244 Renamed from _mm512_undefined_si512.
15245 (_mm_undefined_si512): New definition.
15246
15247 2016-08-13 Richard Biener <rguenther@suse.de>
15248
15249 * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
15250 into PHIs and update the lattice for its def.
15251
15252 2016-08-12 Jakub Jelinek <jakub@redhat.com>
15253
15254 PR c/71512
15255 * ubsan.c (instrument_si_overflow): Pass true instead of false
15256 to gsi_replace.
15257 (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
15258 of bbs. Return TODO_cleanup_cfg if any returned true.
15259
15260 2016-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
15261
15262 * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
15263 ISA 3.0 MTVSRDD instruction.
15264 (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
15265 vecperm.
15266
15267 2016-08-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
15268
15269 PR tree-optimization/71083
15270 * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
15271 bitfield access when possible.
15272
15273 2016-08-12 Patrick Palka <ppalka@gcc.gnu.org>
15274
15275 PR middle-end/71654
15276 * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
15277 sign-changing cast from a shorter unsigned type to a wider
15278 signed type.
15279
15280 2016-08-12 Jakub Jelinek <jakub@redhat.com>
15281
15282 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
15283 vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
15284 vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
15285
15286 2016-08-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15287
15288 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
15289 Correct costs for vec_construct.
15290
15291 2016-08-12 Bin Cheng <bin.cheng@arm.com>
15292
15293 PR tree-optimization/69848
15294 * tree-vectorizer.h (enum vect_def_type): New condition reduction
15295 type CONST_COND_REDUCTION.
15296 * tree-vect-loop.c (vectorizable_reduction): Support new condition
15297 reudction type CONST_COND_REDUCTION.
15298
15299 2016-08-12 Richard Biener <rguenther@suse.de>
15300
15301 PR tree-optimization/57326
15302 * tree-ssa-pre.c (fully_constant_expression): Handle simplification
15303 returning an SSA name.
15304 (phi_translate_1): When fully_constant_expression returns a NAME
15305 make sure we have a leader for it.
15306
15307 2016-08-12 Martin Liska <mliska@suse.cz>
15308 Adam Fineman <afineman@afineman.com>
15309
15310 * gcov.c (process_file): Create .gcov file when .gcda
15311 file is missing.
15312
15313 2016-08-12 Marek Polacek <polacek@redhat.com>
15314
15315 PR c/7652
15316 * alias.c (find_base_value): Adjust fall through comment.
15317 * cfgexpand.c (expand_debug_expr): Likewise.
15318 * combine.c (find_split_point): Likewise.
15319 (expand_compound_operation): Likewise. Add FALLTHRU.
15320 (make_compound_operation): Adjust fall through comment.
15321 (canon_reg_for_combine): Add FALLTHRU.
15322 (force_to_mode): Adjust fall through comment.
15323 (simplify_shift_const_1): Likewise.
15324 (simplify_comparison): Likewise.
15325 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
15326 FALLTHRU.
15327 * config/aarch64/predicates.md: Likewise.
15328 * config/i386/i386.c (function_arg_advance_32): Likewise.
15329 (ix86_gimplify_va_arg): Likewise.
15330 (print_reg): Likewise.
15331 (ix86_print_operand): Likewise.
15332 (ix86_build_const_vector): Likewise.
15333 (ix86_expand_branch): Likewise.
15334 (ix86_sched_init_global): Adjust fall through comment.
15335 (ix86_expand_args_builtin): Add FALLTHRU.
15336 (ix86_expand_builtin): Likewise.
15337 (ix86_expand_vector_init_one_var): Likewise.
15338 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
15339 (rs6000_adjust_cost): Likewise.
15340 (insn_must_be_first_in_group): Likewise.
15341 * config/rs6000/rs6000.md: Likewise. Adjust fall through comment.
15342 * dbxout.c (dbxout_symbol): Adjust fall through comment.
15343 * df-scan.c (df_uses_record): Likewise.
15344 * dojump.c (do_jump): Add FALLTHRU.
15345 * dwarf2out.c (mem_loc_descriptor): Likewise. Adjust fall through
15346 comment.
15347 (resolve_args_picking_1): Adjust fall through comment.
15348 (loc_list_from_tree_1): Likewise.
15349 * expmed.c (make_tree): Likewise.
15350 * expr.c (expand_expr_real_2): Add FALLTHRU.
15351 (expand_expr_real_1): Likewise. Adjust fall through comment.
15352 * fold-const.c (const_binop): Adjust fall through comment.
15353 (fold_truth_not_expr): Likewise.
15354 (fold_cond_expr_with_comparison): Add FALLTHRU.
15355 (fold_binary_loc): Likewise.
15356 (contains_label_1): Adjust fall through comment.
15357 (multiple_of_p): Likewise.
15358 * gcov-tool.c (process_args): Add FALLTHRU.
15359 * genattrtab.c (check_attr_test): Likewise.
15360 (write_test_expr): Likewise.
15361 * genconfig.c (walk_insn_part): Likewise.
15362 * genpreds.c (validate_exp): Adjust fall through comment.
15363 (needs_variable): Likewise.
15364 * gensupport.c (get_alternatives_number): Add FALLTHRU.
15365 (subst_dup): Likewise.
15366 * gimple-pretty-print.c (dump_gimple_assign): Likewise.
15367 * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
15368 (gimplify_scan_omp_clauses): Add FALLTHRU.
15369 (goa_stabilize_expr): Likewise.
15370 * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
15371 through comment.
15372 * hsa-gen.c (get_address_from_value): Likewise.
15373 * ipa-icf.c (sem_function::hash_stmt): Likewise.
15374 * ira.c (ira_setup_alts): Add FALLTHRU.
15375 * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
15376 comment.
15377 * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
15378 * opts.c (common_handle_option): Likewise.
15379 * read-rtl.c (read_rtx_code): Likewise.
15380 * real.c (round_for_format): Likewise.
15381 * recog.c (asm_operand_ok): Likewise.
15382 * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
15383 * reload1.c (set_label_offsets): Likewise.
15384 (eliminate_regs_1): Likewise.
15385 (reload_reg_reaches_end_p): Likewise.
15386 * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
15387 (rtx_cost): Likewise.
15388 * sched-rgn.c (is_exception_free): Likewise.
15389 * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
15390 * stor-layout.c (int_mode_for_mode): Likewise.
15391 * toplev.c (print_to_asm_out_file): Likewise.
15392 (print_to_stderr): Likewise.
15393 * tree-cfg.c (gimple_verify_flow_info): Likewise.
15394 * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
15395 (chrec_fold_multiply): Likewise.
15396 (evolution_function_is_invariant_rec_p): Likewise.
15397 (for_each_scev_op): Likewise.
15398 * tree-data-ref.c (siv_subscript_p): Likewise.
15399 (get_references_in_stmt): Likewise.
15400 * tree.c (find_placeholder_in_expr): Adjust fall through comment.
15401 (substitute_in_expr): Likewise.
15402 (type_cache_hasher::equal): Likewise.
15403 (walk_type_fields): Likewise.
15404 * var-tracking.c (adjust_mems): Add FALLTHRU.
15405 (set_dv_changed): Adjust fall through comment.
15406 * varasm.c (default_function_section): Add FALLTHRU.
15407
15408 2016-08-12 Marek Polacek <polacek@redhat.com>
15409
15410 PR c/7652
15411 * tree-complex.c (expand_complex_division): Add missing break.
15412
15413 2016-08-12 Richard Biener <rguenther@suse.de>
15414
15415 * passes.c (execute_todo): Do not push/pop TV_TODO.
15416 (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
15417 (execute_one_pass): Likewise.
15418 * common.opt (ftime-report-details): New switch.
15419 * doc/invoke.texi (ftime-report-details): Document.
15420 * timevar.h (timer::print_row): Adjust signature.
15421 (timer::all_zero): New static helper.
15422 (timer::child_map_t): New typedef.
15423 (timer::time_var_def): Add children field.
15424 * timevar.c (timer::named_items::print): Adjust.
15425 (timer::~timer): Free timevar recorded children.
15426 (timer::pop_internal): When -ftime-report-details record
15427 time spent in sub-timevars.
15428 (timer::print_row): Adjust.
15429 (timer::print): Print sub-timevar stats, use all_zero.
15430 * timevar.def (TV_TODO): Remove.
15431
15432 2016-08-12 Richard Biener <rguenther@suse.de>
15433
15434 PR tree-optimization/72851
15435 * tree-ssa-propagate.c: Include cfganal.h. Rewrite block and stmt
15436 worklists to use bitmaps indexed in execution order.
15437 (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
15438 bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
15439 (cfg_blocks): Make a bitmap.
15440 (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
15441 New globals.
15442 (cfg_blocks_empty_p): Adjust.
15443 (cfg_blocks_add): Likewise.
15444 (cfg_blocks_get): Likewise.
15445 (add_ssa_edge): Likewise.
15446 (add_control_edge): Likewise.
15447 (simulate_stmt): Likewise.
15448 (process_ssa_edge_worklist): Likewise.
15449 (simulate_block): Likewise.
15450 (ssa_prop_init): Compute PRE order and stmt UIDs.
15451 (ssa_prop_fini): Adjust.
15452 (ssa_propagate): Adjust.
15453
15454 2016-08-12 Richard Biener <rguenther@suse.de>
15455
15456 * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
15457 the currently executable edges have fixed ranges. Always
15458 go through update_value_range.
15459
15460 2016-08-12 Alexandre Oliva <aoliva@redhat.com>
15461
15462 PR debug/63240
15463 * langhooks-def.h
15464 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
15465 (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
15466 (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
15467 (LANG_HOOKS_DECLS): Add it.
15468 * langhooks.h (struct lang_hooks_for_decls): Add
15469 function_decl_defaulted. Const_tree-ify
15470 function_decl_explicit_p and function_decl_deleted_p.
15471 * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
15472 attribute. Add DW_AT_deleted instead of DW_AT_GNU_deleted,
15473 also at strict DWARF v5.
15474
15475 PR debug/55641
15476 * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
15477 TYPE_QUAL_CONST in reference-typed decls.
15478
15479 PR debug/49366
15480 * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
15481 in DW_OP_pieces, just enough to handle pointers to member
15482 functions.
15483 (gen_remaining_tmpl_value_param_die_attribute): Use a location
15484 expression on DWARFv5 if a constant value doesn't work.
15485
15486 2016-08-11 David Malcolm <dmalcolm@redhat.com>
15487
15488 * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
15489 * selftest.c (selftest::test_assertions): New function.
15490 (selftest::selftest_c_tests): New function.
15491 * selftest.h (selftest::selftest_c_tests): New declaration.
15492
15493 2016-08-11 Richard Biener <rguenther@suse.de>
15494 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15495
15496 PR rtl-optimization/72855
15497 * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
15498
15499 2016-08-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15500
15501 PR target/72863
15502 * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
15503 (vsx_store_<mode>): Likewise.
15504
15505 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
15506
15507 * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
15508 TImode CONST_WIDE_INT store.
15509 (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
15510
15511 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
15512
15513 * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
15514 mode if unaligned SSE load and store are optimal.
15515
15516 2016-08-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
15517
15518 PR tree-optimization/71083
15519 * tree-predcom.c (ref_at_iteration): Correctly align the
15520 reference type.
15521
15522 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15523
15524 * config/s390/s390-builtin-types.def: Add INT128 types.
15525 * config/s390/s390-builtins.def: Add INT128 variants for the add
15526 sub low-level builtins dealing with TImode.
15527 * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
15528 via subreg when expanding a builtin.
15529 * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
15530 UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
15531 Fix comment.
15532 * config/s390/vecintrin.h: Adjust builtin names accordingly.
15533 * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
15534 ("vec_addc<mode>", "vec_addc_u128"): Merge to
15535 "vacc<bhfgq>_<mode>".
15536 ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
15537 ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
15538 ("vec_subc<mode>", "vec_subc_u128"): Merge to
15539 "vscbi<bhfgq>_<mode>".
15540 ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
15541 ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
15542
15543 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15544
15545 * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
15546
15547 2016-08-11 Bin Cheng <bin.cheng@arm.com>
15548
15549 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
15550 unused declaration.
15551 (vcond<v_cmp_mixed><mode>): Ditto.
15552 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
15553
15554 2016-08-11 Bin Cheng <bin.cheng@arm.com>
15555
15556 * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
15557 variable explicitly, also assert on it before use.
15558
15559 2016-08-11 Richard Biener <rguenther@suse.de>
15560
15561 PR tree-optimization/72772
15562 * cfgloopmanip.c (create_preheader): Use split_edge if there
15563 is a single loop entry, avoiding degenerate PHIs.
15564
15565 2016-08-11 Richard Biener <rguenther@suse.de>
15566
15567 * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
15568 unconditional TODO_cleanup_cfg.
15569 (pass_thread_jumps::execute): Initialize loops, perform a CFG
15570 cleanup only if we threaded a jump.
15571
15572 2016-08-11 Alan Modra <amodra@gmail.com>
15573
15574 PR target/71680
15575 * lra-constraints.c (simplify_operand_subreg): Allow subreg
15576 mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
15577 slow. Emit two reloads for slow mem case, first loading in
15578 fast innermode, then converting to required mode.
15579
15580 2016-08-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
15581
15582 * config/rs6000/altivec.h (vec_extract_exp): New macro.
15583 (vec_extract_sig): New macro.
15584 (vec_insert_exp): New macro.
15585 (vec_test_data_class): New macro.
15586 (scalar_extract_exp): New macro.
15587 (scalar_extract_sig): New macro.
15588 (scalar_insert_exp): New macro.
15589 (scalar_test_data_class): New macro.
15590 (scalar_test_neg): New macro.
15591 (scalar_cmp_exp_gt): New macro.
15592 (scalar_cmp_exp_lt): New macro.
15593 (scalar_cmp_exp_eq): New macro.
15594 (scalar_cmp_exp_unordered): New macro.
15595 * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
15596 to enforce constraint that operand is a 7-bit unsigned literal.
15597 * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
15598 for power9 built-ins.
15599 (BU_P9V_VSX_2): Likewise.
15600 (BU_P9V_64BIT_VSX_2): Likewise.
15601 (VSEEDP): Add scalar extract exponent support.
15602 (VSEESP): Add scalar extract signature support.
15603 (VSTDCNDP): Add scalar test negative support.
15604 (VSTDCNSP): Likewise.
15605 (VSIEDP): Add scalar insert exponent support.
15606 (VSCEDPGT): Add scalar compare exponent greater than support.
15607 (VSCEDPLT): Add scalar compare exponent less than support.
15608 (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
15609 (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
15610 (VSTDCDP): Add scalar test data class support.
15611 (VSTDCSP): Likewise.
15612 (VSEEDP): Add overload support for scalar extract exponent
15613 operation.
15614 (VSESDP): Add overload support for scalar extract signature
15615 operation.
15616 (VSTDCN): Add overload support for scalar test negative
15617 operation.
15618 (VSTDCNDP): Add overload support for scalar test negative
15619 operation.
15620 (VSTDCNSP): Add overload support for scalar test negative
15621 operation.
15622 (VSIEDP): Add overload support for scalar insert exponent
15623 operation.
15624 (VSTDC): Add overload support for scalar test data class
15625 operation.
15626 (VSTDCDP): Add overload support for scalar test data class
15627 operation.
15628 (VSTDCSP): Add overload support for scalar test data class
15629 opreation.
15630 (VSCEDPGT): Add overload support for scalar compare exponent
15631 greater than operation.
15632 (VSCEDPLT): Add overload support for scalar compare exponent
15633 less than operation.
15634 (VSCEDPEQ): Add overload support for scalar compare exponent
15635 test-for-equality operation.
15636 (VSCEDPUO): Add overload support for scalar compare exponent
15637 test-for-unordered operation.
15638 (VEEDP): Add vector extract exponent support.
15639 (VEESP): Likewise.
15640 (VESDP): Add vector extract significand support.
15641 (VESSP): Likewise.
15642 (VIEDP): Add vector insert exponent support.
15643 (VIESP): Likewise.
15644 (VTDCDP): Add vector test data class support.
15645 (VTDCSP): Likewise.
15646 (VES): Add overload support for vector extract significand operation.
15647 (VESDP): Likewise.
15648 (VESSP): Likewise
15649 (VEE): Add overload support for vector extract exponent operation.
15650 (VEEDP): Likewise.
15651 (VEESP): Likewise.
15652 (VTDC): Add overload support for vector test data class operation.
15653 (VTDCDP): Likewise.
15654 (VTDCSP): Likewise.
15655 (VIE): Add overload support for vector insert exponent operation.
15656 (VIEDP): Likewise.
15657 (VIESP): Likewise.
15658 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15659 overloaded binary floating point functions.
15660 (altivec_resolve_overloaded_builtin): Improve error messages to
15661 distinguish between functions not supported in the current
15662 compiler configuration and functions that were invoked with an
15663 invalid parameter combination, and include the built-in function
15664 name in both error messages.
15665 * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
15666 New prototype.
15667 * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
15668 function.
15669 (rs6000_expand_binop_builtin): Add check to enforce that argument
15670 2 of the test data class operations is a 7-bit unsigned literal.
15671 (rs6000_invalid_builtin): Add code to issue an error message if a
15672 built-in function that requires the power9_vector and -m32
15673 command-line options is compiled without these options.
15674 * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
15675 (UNSPEC_VSX_SXSIGDP): New value.
15676 (UNSPEC_VSX_SXSIGPDP): New value.
15677 (UNSPEC_VSX_SIEXPDP): New value.
15678 (UNSPEC_VSX_SCMPEXPDP): New value.
15679 (UNSPEC_VSX_STSTDC): New value.
15680 (UNSPEC_VSX_VXEXP): New value.
15681 (UNSPEC_VSX_VXSIG): New value.
15682 (UNSPEC_VSX_VIEXP): New value.
15683 (UNSPEC_VSX_VTSTDC): New value.
15684 (xsxexpdp): New insn for scalar extract exponent.
15685 (xsxsigdp): New insn for scalar extract significand.
15686 (xsiexpdp): New insn for scalar insert exponent.
15687 (xscmpexpdp_<code>): New expansion for scalar compare exponents.
15688 (*xscmpexpdp): New insn for scalar compare exponents.
15689 (xststdc<Fvsx): New expansion for both single- and
15690 double-precision scalar test data class operations.
15691 (xststdcneg<Fvsx>): New expansion for both single- and
15692 double-precision scalar test for negative value operations.
15693 (*xststdc<Fvsx>): New insn for scalar test data class
15694 operation.
15695 (xvxexp<VSs>): New insn for single- and double-precision
15696 vector extract exponent operation.
15697 (xvxsig<VSs>): New insn for single- and double-precision
15698 vector extract significand operation.
15699 (xviexp<VSs>): New insn for single- and double-precision
15700 vector insert exponent operation.
15701 (xvtstdc<VSs>): New insn for single- and double-precision
15702 vector test data class operation.
15703 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
15704 built-in functions to represent the Power9 binary floating-point
15705 support instructions.
15706
15707 2016-08-10 bin cheng <bin.cheng@arm.com>
15708
15709 * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
15710
15711 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
15712 Renlin Li <renlin.li@arm.com>
15713 Bin Cheng <bin.cheng@arm.com>
15714
15715 * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
15716 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
15717 gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
15718 (aarch64_vcond_internal<mode><mode>): Delete pattern.
15719 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
15720 (vcond<v_cmp_result><mode>): Ditto.
15721 (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
15722 (vcondu<mode><mode>): Ditto.
15723 (vcond<v_cmp_mixed><mode>): New pattern.
15724 (vcondu<mode><v_cmp_mixed>): New pattern.
15725 (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
15726 of aarch64_vcond_internal.
15727
15728 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
15729 Renlin Li <renlin.li@arm.com>
15730 Bin Cheng <bin.cheng@arm.com>
15731
15732 * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
15733 (vec_cmp<mode><v_cmp_result>): New pattern.
15734 (vec_cmpu<mode><mode>): New pattern.
15735 (vcond_mask_<mode><v_cmp_result>): New pattern.
15736
15737 2016-08-10 Yuri Rumyantsev <ysrumyan@gmail.com>
15738
15739 PR tree-optimization/71734
15740 * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
15741 REF_LOOP, invoke ref_indep_loop_p_1.
15742 (outermost_indep_loop): Pass LOOP argumnet where REF was defined
15743 to ref_indep_loop_p.
15744 (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
15745 combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
15746 is inside LOOP, do not cache dpendence value for loops with
15747 non-zero SAFELEN.
15748 (ref_indep_loop_p_2): Delete function.
15749 (can_sm_ref_p): Pass LOOP as additional argument to
15750 ref_indep_loop_p.
15751
15752 2016-08-10 Michael Meissner <meissner@linux.vnet.ibm.com>
15753
15754 PR target/72853
15755 * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
15756 being an offsettable address.
15757
15758 2016-08-10 Martin Liska <mliska@suse.cz>
15759
15760 PR gcov-profile/58306
15761 * tree-profile.c (gimple_init_edge_profiler): Create conditionally
15762 atomic variants of profile update functions.
15763
15764 2016-08-10 Martin Liska <mliska@suse.cz>
15765
15766 Cherry picked (and modified) from google-4_7 branch
15767 2012-12-26 Rong Xu <xur@google.com>
15768 * common.opt (fprofile-update): Add new flag.
15769 * coretypes.h: Define enum profile_update.
15770 * doc/invoke.texi: Document -fprofile-update.
15771 * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
15772 GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
15773 * tree-profile.c (gimple_init_edge_profiler): Generate
15774 also atomic profiler update.
15775 (gimple_gen_edge_profiler): Likewise.
15776
15777 2016-08-10 David Malcolm <dmalcolm@redhat.com>
15778
15779 * toplev.c (finalize): Set aux_info_file, asm_out_file, and
15780 stack_usage_file to NULL after fclose calls.
15781
15782 2016-08-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
15783
15784 PR target/71873
15785 * reload.c (push_reload): Compute subreg_in_class for
15786 subregs of constants and plus expressions. Remove special
15787 handling of SYMBOL_REFs.
15788
15789 2016-08-10 Alan Modra <amodra@gmail.com>
15790
15791 PR target/71680
15792 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
15793 SImode for TARGET_E500_DOUBLE when given SImode.
15794
15795 2016-08-09 David Wohlferd <dw@LimeGreenSocks.com>
15796
15797 * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
15798 unused variable __O.
15799
15800 2016-08-09 Martin Liska <mliska@suse.cz>
15801
15802 * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
15803 _gcov_reset to __gcov_reset.
15804 * doc/gcov-tool.texi: Fix typo.
15805
15806 2016-08-09 Martin Liska <mliska@suse.cz>
15807
15808 * value-prof.c (gimple_divmod_values_to_profile): Do not
15809 instrument MOD histogram if a value is not a SSA name.
15810
15811 2016-08-09 Martin Liska <mliska@suse.cz>
15812
15813 * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
15814 values.
15815
15816 2016-08-09 Renlin Li <renlin.li@arm.com>
15817
15818 PR middle-end/64971
15819 * calls.c (prepare_call_address): Convert funexp to Pmode when
15820 necessary.
15821 * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
15822 (sibcall_value): Likewise.
15823
15824 2016-08-09 Marek Polacek <polacek@redhat.com>
15825
15826 PR c/7652
15827 * cselib.c (cselib_expand_value_rtx_1): Add return.
15828 * gengtype.c (dbgprint_count_type_at): Likewise.
15829 * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
15830 * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
15831
15832 2016-08-09 Martin Jambor <mjambor@suse.cz>
15833
15834 PR ipa/71981
15835 * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
15836 if instance is a MEM_REF.
15837
15838 2016-08-09 Uros Bizjak <ubizjak@gmail.com>
15839
15840 PR target/72843
15841 * config/i386/i386.md (*movtf_internal): Use
15842 lra_in_progress || reload_completed instead of !can_create_pseudo_p
15843 in the insn constraint.
15844 (*movxf_internal): Ditto.
15845 (*movdf_internal): Ditto.
15846 (*movsf_internal): Ditto.
15847
15848 2016-08-09 Bin Cheng <bin.cheng@arm.com>
15849
15850 PR tree-optimization/72772
15851 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
15852 for expanded base.
15853
15854 2016-08-09 Bin Cheng <bin.cheng@arm.com>
15855
15856 PR tree-optimization/72772
15857 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
15858 parameter STOP.
15859 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
15860 parameter STOP and update calls. Move expand_simple_operations
15861 function call from here...
15862 (simplify_using_initial_conditions): ...to here. Delete parameter
15863 STOP.
15864 (tree_simplify_using_condition): Delete parameter STOP.
15865 * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
15866 simplify_using_initial_conditions.
15867
15868 2016-08-09 Matthew Fortune <matthew.fortune@imgtec.com>
15869
15870 PR c/65345
15871 * config/mips/mips.c (mips_atomic_assign_expand_fenv):
15872 Use create_tmp_var_raw instead of create_tmp_var.
15873
15874 2016-08-09 Richard Biener <rguenther@suse.de>
15875
15876 * tree-ssa-threadbackward.c (profitable_jump_thread_path):
15877 Treat same SSA names related.
15878
15879 2016-08-09 Jakub Jelinek <jakub@redhat.com>
15880
15881 PR tree-optimization/72824
15882 * tree-loop-distribution.c (const_with_all_bytes_same): Verify
15883 real_zerop is not negative.
15884
15885 2016-08-09 Richard Biener <rguenther@suse.de>
15886
15887 PR tree-optimization/71802
15888 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
15889 all merge opportunities with the predecessor.
15890
15891 2016-08-09 Richard Biener <rguenther@suse.de>
15892
15893 PR ipa/68273
15894 * ipa-prop.c (ipa_modify_formal_parameters): Build
15895 parameter types with natural alignment also for the
15896 over-aligned case.
15897
15898 2016-08-08 Andi Kleen <ak@linux.intel.com>
15899
15900 * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
15901
15902 2016-08-08 David Malcolm <dmalcolm@redhat.com>
15903
15904 PR c/64955
15905 * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
15906 do-nothing langhook.
15907 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
15908 * langhooks.h (struct lang_hooks): Add run_lang_selftests.
15909 * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
15910 (selftest::run_tests): Call lang_hooks.run_lang_selftests.
15911
15912 2016-08-08 David Malcolm <dmalcolm@redhat.com>
15913
15914 PR bootstrap/72844
15915 * input.c: Ensure that HAVE_ICONV is defined.
15916
15917 2016-08-08 Jakub Jelinek <jakub@redhat.com>
15918
15919 PR middle-end/72781
15920 * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
15921 private vars for lastprivate and for linear iterator.
15922
15923 PR middle-end/68762
15924 * omp-simd-clone.c: Include varasm.h.
15925 (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
15926 DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
15927 DECL_ONE_ONLY call make_decl_one_only. Fix up spelling in comment and
15928 update function name.
15929
15930 2016-07-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
15931
15932 * config/avr/driver-avr.c (specfiles_doc_url): Remove.
15933 (avr_diagnose_devicespecs_error): Remove.
15934 (avr_devicespecs_file): Remove composing absolute path for specfile
15935 and its verbose info. Remove conditions to check specs-file,
15936
15937 2016-08-08 Jakub Jelinek <jakub@redhat.com>
15938
15939 PR rtl-optimization/72821
15940 * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
15941 just return false for them.
15942
15943 2016-08-08 Alan Modra <amodra@gmail.com>
15944
15945 PR target/72771
15946 * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
15947 toc refs created during reload. Update function comment.
15948
15949 2016-08-08 Alan Modra <amodra@gmail.com>
15950
15951 PR target/72802
15952 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
15953 alternatives. Put loads first, then stores, and reg/reg moves
15954 within same class later. Delete attr length.
15955
15956 2016-08-08 Alan Modra <amodra@gmail.com>
15957
15958 PR target/72802
15959 * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
15960 (mem_operand_ds_form): New predicate.
15961 * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
15962 * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
15963 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
15964 * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
15965 (extendsfdf2_fpr): Replace o constraint with wY.
15966
15967 2016-08-07 Jan Hubicka <hubicka@ucw.cz>
15968
15969 * tree-ssa-threadbackward.c: Include tree-inline.h
15970 (profitable_jump_thread_path): Use estimate_num_insns to estimate
15971 size of copied block; for cold paths reduce duplication.
15972 (find_jump_threads_backwards): Remove redundant tests.
15973 (pass_thread_jumps::gate): Enable for -Os.
15974
15975 2016-08-07 Jakub Jelinek <jakub@redhat.com>
15976
15977 PR c/72816
15978 * stor-layout.c (layout_decl): Fix up formatting.
15979 (relayout_decl): Allow DECL to be FIELD_DECL.
15980
15981 2016-08-07 Alan Modra <amodra@gmail.com>
15982
15983 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
15984
15985 2016-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
15986
15987 * data-streamer-in.c (streamer_read_wide_int): New.
15988 (streamer_read_widest_int): Renamed function.
15989 * data-streamer-out.c (streamer_write_wide_int): New
15990 (streamer_write_widest_int): Renamed function.
15991 * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
15992 data-stream-in.c.
15993 (input_cfg): Call renamed function.
15994 * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
15995 data-stream-out.c.
15996 (output_cfg): Call renamed function.
15997 * data-streamer.h: Add declarations.
15998
15999 2016-08-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16000
16001 * tree-ssa-ccp.c (extend_mask): New param sgn.
16002 Remove ORing with wi::mask.
16003 (get_default_value): Adjust call to extend_mask to pass sign.
16004 (evaluate_stmt): Likewise.
16005
16006 2016-08-06 Jakub Jelinek <jakub@redhat.com>
16007
16008 * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
16009 INT64_MAX.
16010
16011 2016-08-06 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16012
16013 * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
16014 transform if operand's type is pointer to function or method.
16015
16016 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
16017
16018 PR tree-optimization/18046
16019 * tree-ssa-threadedge.c: Include cfganal.h.
16020 (simplify_control_statement_condition): If simplifying a
16021 GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
16022 with the dominating ASSERT_EXPR before handing it off to VRP.
16023 Mention that a CASE_LABEL_EXPR may be returned.
16024 (thread_around_empty_blocks): Adjust to handle
16025 simplify_control_statement_condition() returning a
16026 CASE_LABEL_EXPR.
16027 (thread_through_normal_block): Likewise.
16028 * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
16029 a switch statement by trying to determine which case label
16030 will be taken.
16031
16032 2016-08-05 Vladimir Makarov <vmakarov@redhat.com>
16033
16034 PR rtl-optimization/69847
16035 * lra-constraints.c (process_invariant_for_inheritance): Save
16036 pattern instead of src.
16037 (remove_inheritance_pseudos): Use the pattern. Add assert.
16038
16039 2016-08-05 David Malcolm <dmalcolm@redhat.com>
16040
16041 * input.c (string_concat::string_concat): New constructor.
16042 (string_concat_db::string_concat_db): New constructor.
16043 (string_concat_db::record_string_concatenation): New method.
16044 (string_concat_db::get_string_concatenation): New method.
16045 (string_concat_db::get_key_loc): New method.
16046 (class auto_cpp_string_vec): New class.
16047 (get_substring_ranges_for_loc): New function.
16048 (get_source_range_for_substring): New function.
16049 (get_num_source_ranges_for_substring): New function.
16050 (class selftest::lexer_test_options): New class.
16051 (struct selftest::lexer_test): New struct.
16052 (class selftest::ebcdic_execution_charset): New class.
16053 (selftest::ebcdic_execution_charset::s_singleton): New variable.
16054 (selftest::lexer_test::lexer_test): New constructor.
16055 (selftest::lexer_test::~lexer_test): New destructor.
16056 (selftest::lexer_test::get_token): New method.
16057 (selftest::assert_char_at_range): New function.
16058 (ASSERT_CHAR_AT_RANGE): New macro.
16059 (selftest::assert_num_substring_ranges): New function.
16060 (ASSERT_NUM_SUBSTRING_RANGES): New macro.
16061 (selftest::assert_has_no_substring_ranges): New function.
16062 (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
16063 (selftest::test_lexer_string_locations_simple): New function.
16064 (selftest::test_lexer_string_locations_ebcdic): New function.
16065 (selftest::test_lexer_string_locations_hex): New function.
16066 (selftest::test_lexer_string_locations_oct): New function.
16067 (selftest::test_lexer_string_locations_letter_escape_1): New function.
16068 (selftest::test_lexer_string_locations_letter_escape_2): New function.
16069 (selftest::test_lexer_string_locations_ucn4): New function.
16070 (selftest::test_lexer_string_locations_ucn8): New function.
16071 (selftest::uint32_from_big_endian): New function.
16072 (selftest::test_lexer_string_locations_wide_string): New function.
16073 (selftest::uint16_from_big_endian): New function.
16074 (selftest::test_lexer_string_locations_string16): New function.
16075 (selftest::test_lexer_string_locations_string32): New function.
16076 (selftest::test_lexer_string_locations_u8): New function.
16077 (selftest::test_lexer_string_locations_utf8_source): New function.
16078 (selftest::test_lexer_string_locations_concatenation_1): New
16079 function.
16080 (selftest::test_lexer_string_locations_concatenation_2): New
16081 function.
16082 (selftest::test_lexer_string_locations_concatenation_3): New
16083 function.
16084 (selftest::test_lexer_string_locations_macro): New function.
16085 (selftest::test_lexer_string_locations_stringified_macro_argument):
16086 New function.
16087 (selftest::test_lexer_string_locations_non_string): New function.
16088 (selftest::test_lexer_string_locations_long_line): New function.
16089 (selftest::test_lexer_char_constants): New function.
16090 (selftest::input_c_tests): Call the new test functions once per
16091 case within the line_table test matrix.
16092 * input.h (struct string_concat): New struct.
16093 (struct location_hash): New struct.
16094 (class string_concat_db): New class.
16095 * substring-locations.h: New header.
16096
16097 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
16098
16099 PR tree-optimization/72810
16100 * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
16101 the type of the case labels when truncating.
16102
16103 2016-08-05 James Greenhalgh <james.greenhalgh@arm.com>
16104
16105 PR Target/72819
16106 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
16107 (aarch64_fp16_ptr_type_node): Likewise.
16108 * config/aarch64/aarch64-simd-builtins.c
16109 (aarch64_fp16_ptr_type_node): Define.
16110 (aarch64_init_fp16_types): New, refactored out of...
16111 (aarch64_init_builtins): ...here, update to call
16112 aarch64_init_fp16_types.
16113 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
16114 HFmode.
16115 (aapcs_vfp_sub_candidate): Likewise.
16116
16117 2016-08-05 Martin Liska <mliska@suse.cz>
16118 Joshua Cranmer <Pidgeot18@gmail.com>
16119
16120 * gcov.c (line_t::has_block): New function.
16121 (enum loop_type): New enum.
16122 (handle_cycle): New function.
16123 (unblock): Likewise.
16124 (circuit): Likewise.
16125 (get_cycles_count): Likewise.
16126 (accumulate_line_counts): Use new loop detection algorithm.
16127
16128 2016-08-05 Martin Liska <mliska@suse.cz>
16129
16130 * gcov.c (output_intermediate_file): Rename
16131 function_info::line_next to next_file_fn.
16132 (process_file): Likewise.
16133 (read_graph_file): Likewise.
16134 (accumulate_line_counts): Likewise.
16135 (output_lines): Likewise.
16136
16137 2016-08-05 Richard Biener <rguenther@suse.de>
16138
16139 * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
16140 restriction on threading to a loop header.
16141
16142 2016-08-05 Richard Biener <rguenther@suse.de>
16143
16144 * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
16145 * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
16146 adjust loop info accordingly.
16147
16148 2016-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
16149
16150 * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
16151 before folding call to __builtin_constant_p with parameters to false.
16152
16153 2016-08-05 Alan Modra <amodra@gmail.com>
16154
16155 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
16156 code accidentally committed 2016-05-02 providing class when given
16157 NO_REGS.
16158
16159 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
16160
16161 * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
16162 the case label ranges that partially overlap with OP's value
16163 range.
16164
16165 2016-08-04 Uros Bizjak <ubizjak@gmail.com>
16166
16167 PR target/72805
16168 * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
16169 Cast builtin function result to __mmask16 instead of __mmask8.
16170 (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
16171 (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
16172 (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
16173
16174 2016-08-04 David Malcolm <dmalcolm@redhat.com>
16175
16176 * selftest.h (ASSERT_TRUE): Reimplement in terms of...
16177 (ASSERT_TRUE_AT): New macro.
16178 (ASSERT_FALSE): Reimplement in terms of...
16179 (ASSERT_FALSE_AT): New macro.
16180 (ASSERT_STREQ_AT): Fix typo in comment.
16181
16182 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
16183
16184 * gimple.c (preprocess_case_label_vec_for_gimple): When the case
16185 labels are exhaustive, designate the label with the widest
16186 range to be the default label.
16187
16188 2016-08-04 Andrew Pinski <apinski@cavium.com>
16189
16190 * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
16191 (thunderx_tunings): Use thunderx_vector_cost instead of
16192 generic_vector_cost.
16193
16194 2016-08-04 Martin Liska <mliska@suse.cz>
16195
16196 * gcov.c (main): Fix GNU coding style.
16197 (output_intermediate_file): Likewise.
16198 (process_file): Likewise.
16199 (generate_results): Likewise.
16200 (release_structures): Likewise.
16201 (create_file_names): Likewise.
16202 (find_source): Likewise.
16203 (read_graph_file): Likewise.
16204 (find_exception_blocks): Likewise.
16205 (canonicalize_name): Likewise.
16206 (make_gcov_file_name): Likewise.
16207 (mangle_name): Likewise.
16208 (accumulate_line_counts): Likewise.
16209 (output_branch_count): Likewise.
16210 (read_line): Likewise.
16211
16212 2016-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
16213
16214 PR rtl-optimization/71779
16215 * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
16216 if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
16217 or if it was truncated.
16218
16219 PR rtl-optimization/70903
16220 * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
16221
16222 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
16223
16224 * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
16225 accessing SSA_NAME_PTR_INFO.
16226
16227 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
16228
16229 PR 70677
16230 * common/config/avr/avr-common.c (avr_option_optimization_table)
16231 [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
16232
16233 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
16234
16235 PR 55181
16236 * config/avr/avr.md: New pattern to work around do_store_flag
16237 generating shift instructions for bit extractions.
16238
16239 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
16240
16241 * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
16242 BITMAP_ALLOC.
16243 (add_equivalence): Likewise.
16244 (get_value_range): Allocate value range with vrp_value_range_pool.
16245 (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
16246 (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
16247
16248 2016-08-03 Peter Bergner <bergner@vnet.ibm.com>
16249
16250 * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
16251 the default for the rs6000 port.
16252
16253 2016-08-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
16254
16255 PR middle-end/71876
16256 * calls.c (special_function_p): Remove special handling of
16257 "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
16258 prefix "__x". Recognize "savectx", "vfork" and "getcontext" only
16259 without prefix. Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
16260
16261 2016-08-03 Vladimir Makarov <vmakarov@redhat.com>
16262
16263 PR middle-end/72778
16264 * lra-spills.c (regno_in_use_p): Check bb and regno modification.
16265 Don't stop on regular insns.
16266
16267 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
16268
16269 * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
16270 size to DImode boundary.
16271 (nvptx_propagate): Likewise.
16272
16273 2016-08-03 Alan Modra <amodra@gmail.com>
16274
16275 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
16276 float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
16277 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
16278 from -mefficient-unaligned-vector. Note that this affects fp too.
16279
16280 2016-08-03 Alan Modra <amodra@gmail.com>
16281
16282 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
16283 cost more.
16284
16285 2016-08-03 Alan Modra <amodra@gmail.com>
16286
16287 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
16288 to a reg. Localize vars.
16289
16290 2016-08-03 Alan Modra <amodra@gmail.com>
16291
16292 * config/rs6000/rs6000.opt: Remove negatives from help strings
16293 and comments.
16294
16295 2016-08-03 Alan Modra <amodra@gmail.com>
16296
16297 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
16298 Delete duplicated code.
16299
16300 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
16301
16302 PR middle-end/72778
16303 * lra-spills.c (regno_in_use_p): New.
16304 (lra_final_code_change): Use it.
16305
16306 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
16307
16308 PR rtl-optimization/69847
16309 * lra-int.h (struct lra-reg): Use restore_rtx instead of
16310 restore_regno.
16311 (lra_rtx_hash): New.
16312 * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
16313 of restore_regno.
16314 (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
16315 * lra-remat.c (rtx_hash): Rename and Move to lra.c.
16316 * lra-spills.c (lra_final_code_change): Don't delete insn when the
16317 next insn is USE with the same reg as the current insn source.
16318 * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
16319 of restore_regno.
16320 (lra_constraints_init): Call initiate_invariants.
16321 (lra_constraints_finish): Call finish_invariants.
16322 (struct invariant, invariant_t, invariant_ptr_t): New.
16323 (const_invariant_ptr_t, invariants, invariants_pool): New.
16324 (invariant_table, invariant_hash, invariant_eq_p): New.
16325 (insert_invariant, initiate_invariants, finish_invariants): New.
16326 (clear_invariants, invalid_invariant_regs): New.
16327 (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
16328 instead of restore_regno.
16329 (invariant_p, process_invariant_for_inheritance): New.
16330 (inherit_in_ebb): Implement invariant inheritance.
16331 (lra_inheritance): Initialize and finalize invalid_invariant_regs.
16332 (remove_inheritance_pseudos): Implement undoing invariant
16333 inheritance.
16334 (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
16335 instead of restore_regno.
16336 * lra-assigns.c (regno_live_length): New.
16337 (reload_pseudo_compare_func): Use regno_live_length.
16338 (assign_by_spills): Use restore_rtx instead of restore_regno.
16339 (lra_assign): Ditto. Initiate regno_live_length.
16340
16341 2016-02-08 James Greenhalgh <james.greenhalgh@arm.com>
16342
16343 * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
16344 __builtin_aarch64_fmindf.
16345
16346 2016-08-02 Bin Cheng <bin.cheng@arm.com>
16347
16348 PR tree-optimization/34114
16349 * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
16350 information for more control IVs.
16351
16352 2016-08-02 Bin Cheng <bin.cheng@arm.com>
16353
16354 PR tree-optimization/34114
16355 * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
16356 PLUS_EXPR case. Handle SSA_NAME case.
16357
16358 2016-08-02 Tamar Christina <tamar.christina@arm.com>
16359
16360 * config/aarch64/aarch64-simd-builtins.def
16361 (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
16362 (__builtin_aarch64_fmaxdf): Likewise.
16363 (__builtin_aarch64_smin_nandf): Likewise.
16364 (__builtin_aarch64_smax_nandf): Likewise.
16365 * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
16366 * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
16367 (<fmaxmin><mode>3): ...this.
16368 * config/aarch64/arm_neon.h (vmaxnm_f64): New.
16369 (vminnm_f64): Likewise.
16370 (vmin_f64): Likewise.
16371 (vmax_f64): Likewise.
16372 * config/aarch64/iterators.md (FMAXMIN): Merge with...
16373 (FMAXMIN_UNS): ...this.
16374 (fmaxmin): Merged with
16375 (fmaxmin_op): ...this...
16376 (maxmin_uns_op): ...in to this.
16377
16378 2016-08-01 Michael Meissner <meissner@linux.vnet.ibm.com>
16379
16380 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16381 Add support for vec_extract on vector float, vector int, vector
16382 short, and vector char vector types.
16383 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
16384 vector float, vector int, vector short, and vector char
16385 optimizations on 64-bit ISA 2.07 systems for both constant and
16386 variable element numbers.
16387 (rs6000_split_vec_extract_var): Likewise.
16388 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
16389 Altivec registers on ISA 2.07 and above.
16390 (vsx_extract_v4sf): Delete alternative that hard coded element 0,
16391 which never was matched due to the split occuring before register
16392 allocation (and the code would not have worked on little endian
16393 systems if it did match). Allow extracts to go to the Altivec
16394 registers if ISA 2.07 (power8). Change from using "" around the
16395 C++ code to using {}'s.
16396 (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
16397 vec_extracts when the vector is in memory.
16398 (vsx_extract_v4sf_var): New insn to optimize vector float
16399 vec_extracts when the element number is variable on 64-bit ISA
16400 2.07 systems.
16401 (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
16402 for 64-bit ISA 2.07 as well as ISA 3.0.
16403 (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
16404 (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
16405 (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
16406 optimize vector int, vector short, and vector char vec_extracts
16407 when the vector is in memory.
16408 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
16409 optimize vector int, vector short, and vector char vec_extracts
16410 when the element number is variable.
16411
16412 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
16413
16414 PR target/71948
16415 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
16416 does not overlap with other symbol flags.
16417
16418 2016-08-01 Wilco Dijkstra <wdijkstr@arm.com>
16419
16420 * config/aarch64/aarch64.h (aarch64_frame):
16421 Remove padding0 and hardfp_offset. Add locals_offset,
16422 initial_adjust, callee_adjust, callee_offset and final_adjust.
16423 * config/aarch64/aarch64.c (aarch64_layout_frame):
16424 Remove unused padding0 and hardfp_offset initializations.
16425 Choose frame layout and set frame variables accordingly.
16426 Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
16427 (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
16428 (aarch64_pop_regs): Likewise.
16429 (aarch64_expand_prologue): Remove all decision code, just emit
16430 prolog according to frame variables.
16431 (aarch64_expand_epilogue): Remove all decision code, just emit
16432 epilog according to frame variables.
16433 (aarch64_initial_elimination_offset): Use offset to local/arg area.
16434
16435 2015-08-01 H.J. Lu <hongjiu.lu@intel.com>
16436
16437 PR target/72748
16438 * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
16439 fix_debug_reg_uses after changing source register mode to
16440 V1TImode if source register is undefined.
16441
16442 2015-08-01 Alan Hayward <alan.hayward@arm.com>
16443
16444 PR tree-optimization/71818
16445 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
16446 with non invariant evolutions
16447
16448 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
16449
16450 PR target/72767
16451 * config/avr/avr.md (length) [branch]: Correct insn length
16452 attribute for forward branches.
16453
16454 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
16455
16456 * doc/extend.texi (AVR Built-in Functions): Document
16457 __builtin_avr_nops.
16458 * config/avr/builtins.def (NOPS): New.
16459 * config/avr/avr.c (avr_expand_nops): New static function.
16460 (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
16461
16462 2016-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16463
16464 * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
16465 performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
16466 addresses.
16467
16468 2016-08-01 Virendra Pathak <virendra.pathak@broadcom.com>
16469
16470 * config/aarch64/aarch64.c (vulcan_tunings): Update
16471 vulcan L1 cache_line_size.
16472
16473 2016-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
16474
16475 * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
16476 function that takes a vector memory address, a hard register, an
16477 element number and a temporary base register, and recreates an
16478 address that points to the appropriate element within the vector.
16479 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
16480 (rs6000_split_vec_extract_var): Add support for the target of a
16481 vec_extract with variable element number being a scalar memory
16482 location.
16483 (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
16484 swappable.
16485 * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
16486 vsx_extract_<mode>_load insn with a new insn that optimizes
16487 storing either element to a memory location, using scratch
16488 registers to pick apart the vector and reconstruct the address.
16489 (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
16490 (vsx_extract_<mode>_store): Rework alternatives to more correctly
16491 support Altivec registers. Add support for ISA 3.0 Altivec d-form
16492 store instruction.
16493 (vsx_extract_<mode>_var): Add support for extracting a variable
16494 element number from memory.
16495
16496 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
16497
16498 * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
16499 when testing for compares against constants of the form 0xabab.
16500
16501 2016-07-29 Bin Cheng <bin.cheng@arm.com>
16502
16503 PR tree-optimization/57558
16504 * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
16505 function.
16506 (vect_loop_versioning): Support versioning with niter assumptions.
16507 * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
16508 (vect_get_loop_niters): New parameter. Reimplement to support
16509 assumptions in loop niter info.
16510 (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
16511 (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
16512 (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
16513 Support loop versioning for niters.
16514 * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
16515 (vect_free_loop_info_assumptions): New function.
16516 (vectorize_loops): Free loop niter info for loops with flag
16517 LOOP_F_ASSUMPTIONS set if vectorization failed.
16518 * tree-vectorizer.h (struct _loop_vec_info): New field
16519 num_iters_assumptions.
16520 (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
16521 (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
16522 (LOOP_REQUIRES_VERSIONING): New macro.
16523 (vect_free_loop_info_assumptions): New decl.
16524
16525 2016-07-29 Bin Cheng <bin.cheng@arm.com>
16526
16527 * cfgloop.h (struct loop): New field constraints.
16528 (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
16529 (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
16530 functions.
16531 * cfgloop.c (alloc_loop): Initialize new field.
16532 * cfgloopmanip.c (copy_loop_info): Copy constraints.
16533 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
16534 Adjust niter analysis wrto loop constraints.
16535 * doc/loop.texi (@node Number of iterations): Add description for loop
16536 constraints.
16537
16538 2016-07-29 Marek Polacek <polacek@redhat.com>
16539
16540 PR c/7652
16541 * config/i386/i386.c (ix86_expand_args_builtin): Add break.
16542 (ix86_expand_round_builtin): Likewise.
16543
16544 2016-07-29 Segher Boessenkool <segher@kernel.crashing.org>
16545 Georg-Johann Lay <avr@gjlay.de>
16546
16547 PR rtl-optimization/71976
16548 * combine.c (get_last_value): Return 0 if the argument for which
16549 the function is called has a wider mode than the recorded value.
16550
16551 2016-07-29 Marek Polacek <polacek@redhat.com>
16552
16553 PR c/7652
16554 * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
16555 (altivec_expand_st_builtin): Likewise.
16556
16557 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
16558
16559 * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
16560 introduced in r238381.
16561
16562 2016-07-29 Kugan Vivekanandarajah <kuganv@linaro.org>
16563
16564 PR middle-end/68217
16565 * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
16566 & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
16567
16568 2016-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
16569
16570 * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
16571 New declaration.
16572 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16573 Add support for vec_extract of vector double or vector long having
16574 a variable element number on 64-bit ISA 2.07 systems or newer.
16575 * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
16576 Likewise.
16577 (rs6000_split_vec_extract_var): New function to split a
16578 vec_extract built-in function with variable element number.
16579 (rtx_is_swappable_p): Variable vec_extracts and shifts are not
16580 swappable.
16581 * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
16582 (UNSPEC_VSX_EXTRACT): Likewise.
16583 (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
16584 direct move instructions to be generated on 64-bit ISA 2.07
16585 systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
16586 instruction.
16587 (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
16588 arguments for vec_extract variable element.
16589 (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
16590 vec_extract with variable element on V2DFmode and V2DImode
16591 vectors.
16592 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
16593 -mupper-regs-df requirement, since it isn't needed.
16594 (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
16595 do direct moves on 64-bit systems, which allows optimization of
16596 vec_extract on 64-bit ISA 2.07 systems and newer.
16597
16598 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
16599 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
16600
16601 * config/aarch64/aarch64.md
16602 (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
16603 statement and type.
16604 (<optab>qihi2_aarch64): Likewise, and split into two.
16605 (extendqihi2_aarch64): New.
16606 (zero_extendqihi2_aarch64): New.
16607 * config/aarch64/iterators.md (ldrxt): Remove.
16608 * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
16609 uxtb/uxth.
16610
16611 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
16612
16613 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
16614
16615 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
16616
16617 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
16618 (aarch64_push_reg): New function to push 1 or 2 registers.
16619 (aarch64_pop_reg): New function to pop 1 or 2 registers.
16620 (aarch64_expand_prologue): Use aarch64_push_regs.
16621 (aarch64_expand_epilogue): Use aarch64_pop_regs.
16622
16623 2016-07-28 Yuri Rumyantsev <ysrumyan@gmail.com>
16624
16625 PR tree-optimization/71734
16626 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
16627 attribute instead of REF_LOOP and use it.
16628 (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
16629 set it for Loops having non-zero safelen attribute.
16630 (ref_indep_loop_p): Pass zero as initial value for safelen.
16631
16632 2016-07-28 Ilya Enkovich <ilya.enkovich@intel.com>
16633
16634 PR middle-end/72657
16635 PR target/72683
16636 * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
16637 call using chkp_gimple_call_builtin_p.
16638 (chkp_copy_bounds_for_assign): Likewise.
16639
16640 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16641
16642 * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
16643 * config/arm/arm-protos.h (struct tune_params): Likewise.
16644 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
16645 (cortex_a9_sched_adjust_cost): Likewise.
16646 (fa726te_sched_adjust_cost): Likewise.
16647 (arm_adjust_cost): Likewise.
16648 * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
16649 * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
16650 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
16651 * config/i386/i386.c (ix86_adjust_cost): Likewise.
16652 * config/ia64/ia64.c: Likewise.
16653 * config/m68k/m68k.c: Likewise.
16654 * config/mep/mep.c (mep_adjust_cost): Likewise.
16655 * config/microblaze/microblaze.c (microblaze_adjust_cost):
16656 * Likewise.
16657 * config/mips/mips.c (mips_adjust_cost): Likewise.
16658 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
16659 * Likewise.
16660 * config/pa/pa.c (pa_adjust_cost): Likewise.
16661 * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
16662 (rs6000_debug_adjust_cost): Likewise.
16663 * config/sh/sh.c (sh_adjust_cost): Likewise.
16664 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
16665 (hypersparc_adjust_cost): Likewise.
16666 (sparc_adjust_cost): Likewise.
16667 * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
16668 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
16669 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
16670 * Likewise.
16671 * config/visium/visium.c (visium_adjust_cost): Likewise.
16672 * doc/tm.texi: Regenerate.
16673 * haifa-sched.c (dep_cost_1): Adjust.
16674 * target.def: Merge adjust_cost and adjust_cost_2.
16675
16676 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16677
16678 * haifa-sched.c (add_to_speculative_block): Make twins a vector.
16679
16680 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16681
16682 * store-motion.c (struct st_expr): Make pattern_regs a vector.
16683 (extract_mentioned_regs): Append to a vector instead of
16684 returning a rtx_expr_list.
16685 (st_expr_entry): Adjust.
16686 (free_st_expr_entry): Likewise.
16687 (store_ops_ok): Likewise.
16688 (store_killed_in_insn): Likewise.
16689 (find_moveable_store): Likewise.
16690
16691 2016-07-28 Martin Liska <mliska@suse.cz>
16692
16693 PR gcov-profile/68025
16694 * tree-profile.c (tree_profiling): Respect
16695 no_profile_instrument_function attribute.
16696 * doc/extend.texi: Document no_profile_instrument_function
16697 attribute.
16698
16699 2016-07-28 Martin Liska <mliska@suse.cz>
16700
16701 PR rtl-optimization/70944
16702 * combine.c (make_compound_operation):
16703 Do not allow make_compound_operation for vector mode
16704
16705 2016-07-28 Kugan Vivekanandarajah <kuganv@linaro.org>
16706
16707 PR middle-end/71994
16708 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
16709 before calling get_ops.
16710
16711 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
16712
16713 * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
16714 * tree.h (LOG2_BITS_PER_UNIT): ...to here.
16715 (BITS_PER_UNIT_LOG): Remove.
16716 (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
16717 * expr.c (expand_assignment): Likewise.
16718 * stor-layout.c (initialize_sizetypes): Likewise.
16719
16720 2016-07-27 Michael Meissner <meissner@linux.vnet.ibm.com>
16721
16722 * config/rs6000/vector.md (vec_extract<mode>): Change the calling
16723 signature of rs6000_expand_vector_extract so that the element
16724 number is a RTX instead of a constant integer.
16725 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
16726 Likewise.
16727 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
16728 (altivec_expand_vec_ext_builtin): Likewise.
16729 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
16730 * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
16731 MFVSRLD instruction.
16732
16733 2016-07-27 David Malcolm <dmalcolm@redhat.com>
16734
16735 * input.c (get_pure_location): Move here from tree.c.
16736 (make_location): Likewise. Add header comment.
16737 (selftest::test_accessing_ordinary_linemaps): Verify
16738 pure_location_p, make_location, get_location_from_adhoc_loc and
16739 get_range_from_loc.
16740 * input.h (get_pure_location): Move declaration here from tree.h.
16741 (get_finish): Likewise for inline function.
16742 (make_location): Likewise for declaration.
16743 * tree.c (get_pure_location): Move to input.c.
16744 (make_location): Likewise.
16745 * tree.h (get_pure_location): Move declaration to tree.h.
16746 (get_finish): Likewise for inline function.
16747 (make_location): Likewise for declaration.
16748
16749 2016-07-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16750
16751 PR middle-end/71078
16752 * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
16753
16754 2016-07-27 David Malcolm <dmalcolm@redhat.com>
16755
16756 * system.h (STATIC_ASSERT): Use static_assert if building
16757 with C++11 onwards.
16758
16759 2016-07-27 Richard Biener <rguenther@suse.de>
16760
16761 PR tree-optimization/72517
16762 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
16763 Revert change to not compute read-read dependences.
16764
16765 2016-07-27 Richard Biener <rguenther@suse.de>
16766
16767 * predict.c (set_even_probabilities): Make nedges unsigned.
16768
16769 2016-07-27 Martin Liska <mliska@suse.cz>
16770
16771 * predict.c (set_even_probabilities): Handle unlikely edges.
16772 (combine_predictions_for_bb): Likewise.
16773
16774 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
16775
16776 PR target/71869
16777 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
16778 __float128 support when we don't have hardware support, so that
16779 the IEEE built-in functions like isgreater, first call __unordkf3
16780 to make sure neither operand is a NaN, and if both operands are
16781 ordered, do the normal comparison.
16782
16783 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
16784
16785 * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
16786 name.
16787 (extract_code_and_val_from_cond_with_ops): Verify that name is
16788 either cond_op0 or cond_op1.
16789
16790 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
16791
16792 PR tree-optimization/18046
16793 * genmodes.c (emit_mode_size_inline): Emit an assert that
16794 verifies that mode is a valid array index.
16795 (emit_mode_nuinits_inline): Likewise.
16796 (emit_mode_inner_inline): Likewise.
16797 (emit_mode_unit_size_inline): Likewise.
16798 (emit_mode_unit_precision_inline): Likewise.
16799 * tree-vrp.c: Include params.h.
16800 (find_switch_asserts): Register edge assertions for the default
16801 label which correspond to the anti-ranges of each case label.
16802 * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
16803 * doc/invoke.texi: Document it.
16804
16805 2016-07-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16806
16807 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
16808 and unnecessary call to gimple_bb.
16809
16810 2016-07-26 Richard Biener <rguenther@suse.de>
16811
16812 PR rtl-optimization/71984
16813 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
16814 for VOIDmode.
16815
16816 2016-07-26 Richard Biener <rguenther@suse.de>
16817
16818 PR middle-end/72517
16819 * expmed.c (extract_bit_field_1): Constrain the vector mode
16820 with element size matching the extraction mode size when
16821 choosing a better vector mode to do the extraction from.
16822
16823 2016-07-26 Richard Biener <rguenther@suse.de>
16824 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16825
16826 PR middle-end/70920
16827 * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
16828 pattern.
16829
16830 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16831
16832 * tree-ssa-structalias.c (struct scc_info): Change types of
16833 members to auto_sbitmap and auto_vec.
16834 (scc_info::scc_info): New constructor.
16835 (scc_info::~scc_info): New destructor.
16836 (init_scc_info): Remove.
16837 (free_scc_info): Remove.
16838 (find_indirect_cycles): Adjust.
16839 (perform_var_substitution): Likewise.
16840 (free_var_substitution_info): Likewise.
16841
16842 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16843
16844 * tree-outof-ssa.c (struct elim_graph): Change type of members
16845 to auto_vec and auto_sbitmap.
16846 (elim_graph::elim_graph): New constructor.
16847 (delete_elim_graph): Remove.
16848 (expand_phi_nodes): Adjust.
16849
16850 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16851
16852 * tree-outof-ssa.c (struct elim_graph): Remove typedef.
16853 (new_elim_graph): Adjust.
16854 (clear_elim_graph): Likewise.
16855 (delete_elim_graph): Likewise.
16856 (elim_graph_size): Likewise.
16857 (elim_graph_add_node): Likewise.
16858 (elim_graph_add_edge): Likewise.
16859 (elim_graph_remove_succ_edge): Likewise.
16860 (eliminate_name): Likewise.
16861 (eliminate_build): Likewise.
16862 (elim_forward): Likewise.
16863 (elim_unvisited_predecessor): Likewise.
16864 (elim_backward): Likewise.
16865 (elim_create): Likewise.
16866 (eliminate_phi): Likewise.
16867 (expand_phi_nodes): Likewise.
16868
16869 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16870
16871 * bt-load.c (compute_out): Use auto_sbitmap class.
16872 (link_btr_uses): Likewise.
16873 * cfganal.c (mark_dfs_back_edges): Likewise.
16874 (post_order_compute): Likewise.
16875 (inverted_post_order_compute): Likewise.
16876 (pre_and_rev_post_order_compute_fn): Likewise.
16877 (single_pred_before_succ_order): Likewise.
16878 * cfgexpand.c (pass_expand::execute): Likewise.
16879 * cfgloop.c (verify_loop_structure): Likewise.
16880 * cfgloopmanip.c (fix_bb_placements): Likewise.
16881 (remove_path): Likewise.
16882 (update_dominators_in_loop): Likewise.
16883 * cfgrtl.c (break_superblocks): Likewise.
16884 * ddg.c (check_sccs): Likewise.
16885 (create_ddg_all_sccs): Likewise.
16886 * df-core.c (df_worklist_dataflow): Likewise.
16887 * dse.c (dse_step3): Likewise.
16888 * except.c (eh_region_outermost): Likewise.
16889 * function.c (thread_prologue_and_epilogue_insns): Likewise.
16890 * gcse.c (prune_expressions): Likewise.
16891 (prune_insertions_deletions): Likewise.
16892 * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
16893 * graph.c (draw_cfg_nodes_no_loops): Likewise.
16894 * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
16895 * lcm.c (compute_earliest): Likewise.
16896 (compute_farthest): Likewise.
16897 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
16898 (unroll_loop_runtime_iterations): Likewise.
16899 (unroll_loop_stupid): Likewise.
16900 * lower-subreg.c (decompose_multiword_subregs): Likewise.
16901 * lra-lives.c: Likewise.
16902 * lra.c (lra): Likewise.
16903 * modulo-sched.c (schedule_reg_moves): Likewise.
16904 (optimize_sc): Likewise.
16905 (get_sched_window): Likewise.
16906 (sms_schedule_by_order): Likewise.
16907 (check_nodes_order): Likewise.
16908 (order_nodes_of_sccs): Likewise.
16909 (order_nodes_in_scc): Likewise.
16910 * recog.c (split_all_insns): Likewise.
16911 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
16912 * reload1.c (reload): Likewise.
16913 * sched-rgn.c (haifa_find_rgns): Likewise.
16914 (split_edges): Likewise.
16915 (compute_trg_info): Likewise.
16916 * sel-sched.c (init_seqno): Likewise.
16917 * store-motion.c (remove_reachable_equiv_notes): Likewise.
16918 * tree-into-ssa.c (update_ssa): Likewise.
16919 * tree-ssa-live.c (live_worklist): Likewise.
16920 * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
16921 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
16922 * Likewise.
16923 (try_peel_loop): Likewise.
16924 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
16925 * Likewise.
16926 * tree-ssa-pre.c (compute_antic): Likewise.
16927 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
16928 * tree-stdarg.c (reachable_at_most_once): Likewise.
16929 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
16930 * var-tracking.c (vt_find_locations): Likewise.
16931
16932 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16933
16934 * sbitmap.h (auto_sbitmap): New class.
16935
16936 2016-07-26 Alan Modra <amodra@gmail.com>
16937
16938 PR target/72103
16939 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
16940 sri->t_icode.
16941
16942 2016-07-25 David Malcolm <dmalcolm@redhat.com>
16943
16944 * input.c (selftest::temp_source_file::temp_source_file): Fix
16945 missing "%s" in fprintf.
16946
16947 2016-07-25 John David Anglin <danglin@gcc.gnu.org>
16948
16949 PR middle-end/71732
16950 * cselib.c (cselib_process_insn): Invalidate argument slots for
16951 const/pure calls.
16952
16953 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16954
16955 * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
16956 vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
16957 vmulxh_lane_f16, vmulxh_laneq_f16): New.
16958
16959 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16960
16961 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
16962 * config/aarch64/aarch64.md (fma, fnma): Support HF.
16963 * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
16964
16965 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16966
16967 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
16968 * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
16969 New.
16970 (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
16971 (add<mode>3): Likewise.
16972 (sub<mode>3): Likewise.
16973 (mul<mode>3): Likewise.
16974 (div<mode>3): Likewise.
16975 (*div<mode>3): Likewise.
16976 (<fmaxmin><mode>3): Extend to HF.
16977 * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
16978 (fabd<mode>3): Likewise.
16979 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
16980 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
16981 (aarch64_fmulx<mode>): Likewise.
16982 (aarch64_fac<optab><mode>): Likewise.
16983 (aarch64_frecps<mode>): Likewise.
16984 (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
16985 (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
16986 * config/aarch64/iterators.md (VHSDF_SDF): Delete.
16987 (VSDQ_HSDI): Support HI.
16988 (fcvt_target, FCVT_TARGET): Likewise.
16989 * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
16990 vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
16991 vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
16992 vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
16993 vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
16994 vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
16995 vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
16996 vrsqrtsh_f16): New.
16997
16998 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16999
17000 * config.gcc (aarch64*-*-*): Install arm_fp16.h.
17001 * config/aarch64/aarch64-builtins.c (hi_UP): New.
17002 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
17003 * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
17004 mode.
17005 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
17006 (aarch64_cm<optab><mode>): Likewise.
17007 * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
17008 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
17009 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
17010 (sqrt<mode>2): Likewise.
17011 (*sqrt<mode>2): Likewise.
17012 (abs<mode>2): Likewise.
17013 (<optab><mode>hf2): New pattern for HF mode.
17014 (<optab>hihf2): Likewise.
17015 * config/aarch64/arm_neon.h: Include arm_fp16.h.
17016 * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
17017 (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
17018 Support HF mode.
17019 * config/aarch64/arm_fp16.h: New file.
17020 (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
17021 vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
17022 vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
17023 vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
17024 vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
17025 vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
17026 vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
17027 vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
17028 vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
17029 vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
17030 vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
17031 vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
17032 vsqrth_f16): New.
17033
17034 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17035
17036 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
17037 reduc_smin_scal_): Use VDQIF_F16.
17038 (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
17039 * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
17040 Use VHSDF.
17041 (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
17042 * config/aarch64/iterators.md (VDQIF_F16): New.
17043 (vp): Support HF modes.
17044 * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
17045 vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
17046
17047 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17048
17049 * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
17050 "*aarch64_mulx_elt_from_dup<mode>".
17051 (*aarch64_mul3_elt<mode>): Update schedule type.
17052 (*aarch64_mul3_elt_from_dup<mode>): Likewise.
17053 (*aarch64_fma4_elt_from_dup<mode>): Likewise.
17054 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
17055 * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
17056 (f, fp): Support HF modes.
17057 * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
17058 vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
17059 vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
17060 vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
17061 vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
17062 vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
17063
17064 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17065
17066 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
17067 * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
17068 modes.
17069 * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
17070 vfmsq_f16): New.
17071
17072 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17073
17074 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
17075 * config/aarch64/aarch64-simd.md
17076 (aarch64_rsqrts<mode>): Extend to HF modes.
17077 (fabd<mode>3): Likewise.
17078 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
17079 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
17080 (aarch64_<maxmin_uns>p<mode>): Likewise.
17081 (<su><maxmin><mode>3): Likewise.
17082 (<maxmin_uns><mode>3): Likewise.
17083 (<fmaxmin><mode>3): Likewise.
17084 (aarch64_faddp<mode>): Likewise.
17085 (aarch64_fmulx<mode>): Likewise.
17086 (aarch64_frecps<mode>): Likewise.
17087 (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
17088 (add<mode>3): Extend to HF modes.
17089 (sub<mode>3): Likewise.
17090 (mul<mode>3): Likewise.
17091 (div<mode>3): Likewise.
17092 (*div<mode>3): Likewise.
17093 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
17094 HF, V4HF and V8HF.
17095 * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
17096 * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
17097 vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
17098 vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
17099 vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
17100 vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
17101 vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
17102 vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
17103 vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
17104 vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
17105 vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
17106 vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
17107 vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
17108 vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
17109
17110 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17111
17112 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
17113 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
17114 * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
17115 (neg<mode>2): Likewise.
17116 (abs<mode>2): Likewise.
17117 (<frint_pattern><mode>2): Likewise.
17118 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
17119 (<optab><VDQF:mode><fcvt_target>2): Likewise.
17120 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
17121 (ftrunc<VDQF:mode>2): Likewise.
17122 (<optab><fcvt_target><VDQF:mode>2): Likewise.
17123 (sqrt<mode>2): Likewise.
17124 (*sqrt<mode>2): Likewise.
17125 (aarch64_frecpe<mode>): Likewise.
17126 (aarch64_cm<optab><mode>): Likewise.
17127 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
17128 HF, V4HF and V8HF.
17129 * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
17130 (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
17131 (stype): New.
17132 * config/aarch64/arm_neon.h (vdup_n_f16): New.
17133 (vdupq_n_f16): Likewise.
17134 (vld1_dup_f16): Use vdup_n_f16.
17135 (vld1q_dup_f16): Use vdupq_n_f16.
17136 (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
17137 vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
17138 vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
17139 vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
17140 vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
17141 vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
17142 vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
17143 vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
17144 vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
17145 vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
17146 vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
17147 vsqrt_f16, vsqrtq_f16): New.
17148
17149 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17150
17151 * config/aarch64/aarch64-simd.md
17152 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
17153 (aarch64_ext<mode>): Likewise.
17154 (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
17155 * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
17156 aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
17157 and V8HFmode.
17158 * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
17159 float16x8_t.
17160 (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
17161 __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
17162 vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
17163 vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
17164 vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
17165 vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
17166 vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
17167 New.
17168 (vmov_n_f16): Reimplement using vdup_n_f16.
17169 (vmovq_n_f16): Reimplement using vdupq_n_f16..
17170
17171 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17172
17173 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
17174 "frame_related_p". Generate CFA annotation when it's necessary.
17175 (aarch64_expand_prologue): Use aarch64_add_constant.
17176 (aarch64_expand_epilogue): Likewise.
17177 (aarch64_output_mi_thunk): Pass "false" when calling
17178 aarch64_add_constant.
17179
17180 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17181
17182 * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
17183 sequences.
17184
17185 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17186
17187 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
17188 Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
17189 (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
17190 (aarch64_build_constant): Delete.
17191
17192 2016-07-25 Alexander Monakov <amonakov@ispras.ru>
17193
17194 Revert
17195 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
17196
17197 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
17198 flag_toplevel_reorder.
17199
17200 2016-07-25 Richard Biener <rguenther@suse.de>
17201
17202 * cgraph.c (cgraph_node::verify_node): Compare against builtin
17203 by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
17204 * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
17205 * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
17206 (streamer_get_builtin_tree): Likewise.
17207 (streamer_write_builtin): Likewise.
17208 * lto-streamer.h (LTO_builtin_decl): Remove.
17209 * lto-streamer-in.c (lto_read_tree_1): Remove assert.
17210 (lto_input_scc): Remove LTO_builtin_decl handling.
17211 (lto_input_tree_1): Liekwise.
17212 * lto-streamer-out.c (lto_output_tree_1): Remove special
17213 handling of builtins.
17214 (DFS::DFS): Likewise.
17215 * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
17216 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
17217 assert.
17218 (streamer_write_builtin): Remove.
17219
17220 2016-07-25 Martin Liska <mliska@suse.cz>
17221
17222 * lto-cgraph.c (input_symtab): Don't call get_working_sets
17223 if flag_auto_profile is set to true.
17224
17225 2016-07-25 Martin Liska <mliska@suse.cz>
17226
17227 PR gcov-profile/71868
17228 * cfgloopanal.c (expected_loop_iterations_unbounded): When we
17229 have a function with multiple latches, count them all.
17230
17231 2016-07-25 Martin Liska <mliska@suse.cz>
17232
17233 * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
17234
17235 2016-07-25 Martin Liska <mliska@suse.cz>
17236
17237 PR tree-optimization/71987
17238 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
17239 just for SSA_NAMEs. Fix GNU coding style.
17240
17241 2016-07-25 Martin Liska <mliska@suse.cz>
17242
17243 PR gcov-profile/64874
17244 * gcov-io.h: Update command about file format.
17245 * gcov-iov.c (main): Adapt the numbering scheme.
17246
17247 2016-07-24 Kugan Vivekanandarajah <kuganv@linaro.org>
17248
17249 PR middle-end/66726
17250 * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
17251 whose result is used in PHI.
17252 (final_range_test_p): Likewise.
17253 (maybe_optimize_range_tests): Likewise.
17254
17255 2016-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
17256
17257 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17258 Reformat two multi-line strings.
17259
17260 2016-07-22 Martin Sebor <msebor@redhat.com>
17261
17262 * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
17263
17264 2016-07-22 Martin Sebor <msebor@redhat.com>
17265
17266 PR c/71560
17267 * doc/extend.texi (Compound Literals): Correct and clarify.
17268 (Cast to Union): Same.
17269
17270 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
17271
17272 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
17273 comments to explain why certain error messages make mention of
17274 undocumented options.
17275 (rs6000_invalid_builtin): Change error messages to replace mention
17276 of undocumented options with mention of the -mcpu=power9 option
17277 that enables those undocumented options.
17278 * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
17279 (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
17280 definition of this macro to correct an existing error.
17281 * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
17282 mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
17283 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
17284 descriptions of built-in functions so that they depend on
17285 -mcpu=power9 instead of on the corresponding undocumented flags.
17286 * doc/invoke.texi (Option Summary): Remove all mention of newly
17287 undocumented flags.
17288 (IBM RS/6000 and PowerPC Options): Likewise.
17289 * doc/md.texi (Constraints for Particuliar Machines): Remove all
17290 mention of newly undocumented flags.
17291
17292 2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
17293
17294 * ipa-cp.c (determine_versionability): Do not create constprop clones,
17295 when target_clones attribute is set.
17296
17297 2016-07-22 Bin Cheng <bin.cheng@arm.com>
17298
17299 * common.opt (funsafe-loop-optimizations): Mark ignore.
17300 * doc/invoke.texi (funsafe-loop-optimizations): Remove.
17301 * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
17302 related code.
17303 * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
17304 * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
17305
17306 2016-07-22 Bin Cheng <bin.cheng@arm.com>
17307
17308 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
17309 Parameter.
17310 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
17311 Parameter.
17312 (number_of_iterations_exit): Warn missed loop optimization for
17313 possible infinite loops.
17314
17315 2016-07-22 Segher Boessenkool <segher@kernel.crashing.org>
17316
17317 PR target/71216
17318 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
17319 when to emit a ".machine" pseudo-op.
17320
17321 2016-07-22 Martin Liska <mliska@suse.cz>
17322
17323 PR gcov-profile/69028
17324 PR gcov-profile/62047
17325 * coverage.c (coverage_compute_lineno_checksum): Do not
17326 calculate checksum for fns w/o xloc.file.
17327 (coverage_compute_profile_id): Likewise.
17328
17329 2016-07-22 Georg-Johann Lay <avr@gjlay.de>
17330
17331 * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
17332 (avr_secondary_reload): ...and implementation.
17333 (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
17334 * config/avr/avr.md (reload_in<mode>): Remove insns.
17335 (adjust_len) [lpm]: Remove insn attribute value.
17336 * config/avr/predicates.md (flash_operand): Remove insn predicate.
17337
17338 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
17339
17340 PR middle-end/71876
17341 * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
17342 attribute.
17343 * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
17344 * calls.c (special_function_p): Remove the special handling of the
17345 "__builtin_" prefix.
17346
17347 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
17348
17349 PR middle-end/71876
17350 * calls.c (gimple_maybe_alloca_call_p): New function. Return true
17351 if STMT may be an alloca call.
17352 (gimple_alloca_call_p, alloca_call_p): Return only true for the
17353 builtin alloca call.
17354 * calls.h (gimple_maybe_alloca_call_p): New function.
17355 * tree-inline.c (inline_forbidden_p_stmt): Use
17356 gimple_maybe_alloca_call_p here.
17357
17358 2016-07-21 David Malcolm <dmalcolm@redhat.com>
17359
17360 * spellcheck-tree.c (best_macro_match::best_macro_match):
17361 Explictly specify the template arguments when invoking the base
17362 class constructor, to help older C++ compilers.
17363
17364 2016-07-21 Jakub Jelinek <jakub@redhat.com>
17365
17366 PR sanitizer/71953
17367 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
17368 before builtin_decl_implicit.
17369
17370 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
17371
17372 * optabs.c (emit_condiitonal_move): Short circuit for identical
17373 sources.
17374
17375 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
17376
17377 * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
17378 max_seq_cost. Removed fields: then_cost, else_cost, branch_cost.
17379 (noce_conversion_profitable_p): New.
17380 (noce_try_store_flag_constants): Use it.
17381 (noce_try_addcc): Likewise.
17382 (noce_try_store_flag_mask): Likewise.
17383 (noce_try_cmove): Likewise.
17384 (noce_try_cmove_arith): Likewise.
17385 (bb_valid_for_noce_process_p): Add to the cost parameter rather than
17386 overwriting it.
17387 (noce_convert_multiple_sets): Move cost model to here, from...
17388 (bb_ok_for_noce_convert_multiple_sets) ...here.
17389 (noce_process_if_block): Update calls for above changes.
17390 (noce_find_if_block): Record new noce_if_info parameters.
17391
17392 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
17393
17394 * target.def (max_noce_ifcvt_seq_cost): New.
17395 * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
17396 * doc/tm.texi: Regenerate.
17397 * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
17398 * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
17399 * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
17400 (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
17401 * doc/invoke.texi: Document new params.
17402
17403 2016-07-21 Richard Biener <rguenther@suse.de>
17404
17405 PR tree-optimization/71947
17406 * tree-vrp.c (extract_range_from_assert): Singleton symbolic
17407 ranges have useful limit_vr information.
17408
17409 2016-07-21 Richard Biener <rguenther@suse.de>
17410
17411 * function-tests.c (build_trivial_generic_function): Set
17412 BLOCK_SUPERCONTEXT of DECL_INITIAL.
17413 * omp-low.c (create_omp_child_function): Likewise.
17414 (grid_expand_target_grid_body): Likewise.
17415 * cgraphunit.c (init_lowered_empty_function): Likewise.
17416 (cgraph_node::expand_thunk): Likewise.
17417 * tree-parloops.c (create_loop_fn): Likewise.
17418 * ipa.c (cgraph_build_static_cdtor_1): Likewise.
17419
17420 2016-07-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17421
17422 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
17423 in comment.
17424
17425 2016-07-21 Georg-Johann Lay <avr@gjlay.de>
17426
17427 * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
17428 (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
17429 (*insv.xor-extract, *insv.xor1-bit.0): New insns.
17430 (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
17431 values for insn attribute.
17432 * config/avr/avr.c (avr_out_insert_notbit): New function.
17433 (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
17434 ADJUST_LEN_INSV_NOTBIT_0/_7.
17435 * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
17436
17437 2016-07-21 Bin Cheng <bin.cheng@arm.com>
17438
17439 * tree-chrec.c (convert_affine_scev): New parameter. Pass new arg.
17440 (chrec_convert_1, chrec_convert): Ditto.
17441 * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
17442 * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
17443 * tree-vrp.c (adjust_range_with_scev): Ditto.
17444 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
17445 (scev_var_range_cant_overflow): New function.
17446 (scev_probably_wraps_p): New parameter. Call above function.
17447 * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
17448
17449 2016-07-21 Bin Cheng <bin.cheng@arm.com>
17450
17451 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
17452 by removing computation of may_be_zero.
17453
17454 2016-07-21 Jakub Jelinek <jakub@redhat.com>
17455
17456 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
17457
17458 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
17459
17460 Improving concepts performance and diagnostics.
17461 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
17462 for constraint satisfaction and subsumption.
17463 * timevar.h (auto_timevar): New constructor that matches the push/pop
17464 pattern of usage in pt.c.
17465
17466 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
17467
17468 * hwint.h (HOST_WIDE_INT_0): New define.
17469 (HOST_WIDE_INT_0U): Ditto.
17470 * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
17471 * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
17472 * simplify-rtx.c: Ditto.
17473 * tree-object-size.c: Ditto.
17474
17475 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17476
17477 * config/s390/s390.c (s390_encode_section_info): Remove mode size
17478 check.
17479
17480 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
17481
17482 * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
17483 * combine.c: Use HOST_WIDE_INT_M1U instead of
17484 ~(unsigned HOST_WIDE_INT) 0.
17485 * double-int.h: Ditto.
17486 * dse.c: Ditto.
17487 * dwarf2asm.c:Ditto.
17488 * expmed.c: Ditto.
17489 * genmodes.c: Ditto.
17490 * match.pd: Ditto.
17491 * read-rtl.c: Ditto.
17492 * tree-ssa-loop-ivopts.c: Ditto.
17493 * tree-ssa-loop-prefetch.c: Ditto.
17494 * tree-vect-generic.c: Ditto.
17495 * tree-vect-patterns.c: Ditto.
17496 * tree.c: Ditto.
17497
17498 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
17499
17500 * config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
17501 constant addresses outside [0,0xc0] into a register.
17502 (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn. And handle
17503 cases where the base address register is unused after.
17504 (avr_out_movhi_r_mr_reg_disp_tiny): Same.
17505 (avr_out_movhi_mr_r_reg_disp_tiny): Same.
17506 (avr_out_store_psi_reg_disp_tiny): Same.
17507
17508 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
17509
17510 Implement attribute progmem on reduced Tiny cores by adding
17511 flash offset 0x4000 to respective symbols.
17512
17513 PR target/71948
17514 * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
17515 documentation how it works on reduced Tiny cores.
17516 (AVR Named Address Spaces): No support for reduced Tiny.
17517 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
17518 (avr_address_tiny_pm_p): New static function.
17519 (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
17520 if the address is in progmem.
17521 (avr_assemble_integer): Same.
17522 (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
17523 for symbol_ref in progmem.
17524 * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
17525 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
17526 magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
17527
17528 2016-07-20 Patrick Palka <ppalka@gcc.gnu.org>
17529
17530 * configure.ac (thin_archive_support): New variable. AC_SUBST it.
17531 * configure: Regenerate.
17532 * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
17533 (USE_THIN_ARCHIVES): New variable.
17534 (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
17535 this archive as a thin archive.
17536
17537 2016-07-20 David Malcolm <dmalcolm@redhat.com>
17538
17539 * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
17540 same location as last time, don't skip if we have fix-it hints.
17541 Clarify the skipping logic by converting it from one "if" clause
17542 to repeated "if" clauses.
17543 * spellcheck-tree.c: Include "cpplib.h".
17544 (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
17545 (best_macro_match::best_macro_match): New constructor.
17546 * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
17547 Move here from c/c-decl.c.
17548 (class best_macro_match): Move here from c/c-decl.c, converting
17549 from a typedef to a subclass, gaining a ctor.
17550
17551 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
17552
17553 * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
17554 * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
17555 define...
17556 (avr_addr_space_diagnose_usage): ...and implementation.
17557 (avr_addr_space_supported_p): New function.
17558 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
17559 report bad address space usage if that space is supported.
17560 (avr_insert_attributes): Same. No more complain about unsupported
17561 address spaces.
17562 * config/avr/avr-c.c (tm_p.h): Include it.
17563 (avr_cpu_cpp_builtins): Only define addr-space related built-in
17564 macro if avr_addr_space_supported_p.
17565
17566 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
17567
17568 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
17569 flag_toplevel_reorder.
17570
17571 2016-07-20 David Malcolm <dmalcolm@redhat.com>
17572
17573 * gcc-rich-location.c
17574 (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
17575 a const char *.
17576 * gcc-rich-location.h
17577 (gcc_rich_location::add_fixit_misspelled_id): Likewise.
17578
17579 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
17580
17581 * target.def (addr_space): Add new diagnose_usage to hook vector.
17582 * targhooks.c (default_addr_space_diagnose_usage): Add default
17583 implementation and...
17584 * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
17585 * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
17586 is some address space, call targetm.addr_space.diagnose_usage.
17587 * doc/tm.texi.in (Named Address Spaces): Add anchor for
17588 TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
17589 * doc/tm.texi: Regenerate.
17590
17591 2016-07-20 Martin Liska <mliska@suse.cz>
17592
17593 PR middle-end/71898
17594 * graphite-isl-ast-to-gimple.c (later_of_the_two):
17595 Properly handly PHI stmts.
17596
17597 2016-07-20 Bin Cheng <bin.cheng@arm.com>
17598
17599 PR tree-optimization/71503
17600 PR tree-optimization/71683
17601 * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
17602 and break.
17603
17604 2016-07-20 Martin Liska <mliska@suse.cz>
17605
17606 * doc/invoke.texi (-fipa-ra): Document when the option is
17607 disabled. Fix a typo.
17608
17609 2016-07-20 Martin Liska <mliska@suse.cz>
17610
17611 * Makefile.in: Include fibonacci_heap.c
17612 * fibonacci_heap.c: New file.
17613 * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
17614 (fibonacci_heap::union_with): Fix deletion of the second heap.
17615 * selftest-run-tests.c (selftest::run_tests): Incorporate
17616 fibonacci heap tests.
17617 * selftest.h: Declare fibonacci_heap_c_tests.
17618
17619 2016-07-20 Martin Liska <mliska@suse.cz>
17620
17621 * selftest-run-tests.c (selftest::run_tests): New function.
17622 * selftest.h (sreal_c_tests): Declare.
17623 * sreal.c (sreal_verify_basics): New function.
17624 (verify_aritmetics): Likewise.
17625 (sreal_verify_arithmetics): Likewise.
17626 (verify_shifting): Likewise.
17627 (sreal_verify_shifting): Likewise.
17628 (void sreal_c_tests): Likewise.
17629
17630 2016-07-19 Jakub Jelinek <jakub@redhat.com>
17631
17632 PR rtl-optimization/71916
17633 * cfgrtl.c (contains_no_active_insn_p): Return false also for
17634 bb which have a single succ fake edge.
17635
17636 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
17637
17638 PR debug/71855
17639 * dwarf2out.c (gen_subprogram_die): Only call
17640 gen_unspecified_parameters_die while dumping early dwarf.
17641
17642 2016-07-19 Jakub Jelinek <jakub@redhat.com>
17643
17644 PR middle-end/71874
17645 * gimple-fold.c (fold_builtin_memory_op): Use
17646 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
17647
17648 2016-07-19 Uros Bizjak <ubizjak@gmail.com>
17649
17650 * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
17651 HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
17652 HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
17653 HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
17654 * combine.c: Ditto.
17655 * cse.c: Ditto.
17656 * dojump.c: Ditto.
17657 * double-int.c: Ditto.
17658 * dse.c: Ditto.
17659 * dwarf2out.c: Ditto.
17660 * expmed.c: Ditto.
17661 * expr.c: Ditto.
17662 * fold-const.c: Ditto.
17663 * function.c: Ditto.
17664 * fwprop.c: Ditto.
17665 * genmodes.c: Ditto.
17666 * hwint.c: Ditto.
17667 * hwint.h: Ditto.
17668 * ifcvt.c: Ditto.
17669 * loop-doloop.c: Ditto.
17670 * loop-invariant.c: Ditto.
17671 * loop-iv.c: Ditto.
17672 * match.pd: Ditto.
17673 * optabs.c: Ditto.
17674 * real.c: Ditto.
17675 * reload.c: Ditto.
17676 * rtlanal.c: Ditto.
17677 * simplify-rtx.c: Ditto.
17678 * stor-layout.c: Ditto.
17679 * toplev.c: Ditto.
17680 * tree-ssa-loop-ivopts.c: Ditto.
17681 * tree-vect-generic.c: Ditto.
17682 * tree-vect-patterns.c: Ditto.
17683 * tree.c: Ditto.
17684 * tree.h: Ditto.
17685 * ubsan.c: Ditto.
17686 * varasm.c: Ditto.
17687 * wide-int-print.cc: Ditto.
17688 * wide-int.cc: Ditto.
17689 * wide-int.h: Ditto.
17690
17691 2016-07-19 David Malcolm <dmalcolm@redhat.com>
17692
17693 * selftest.c (selftest::assert_streq): Handle NULL values of
17694 val_actual and val_expected.
17695
17696 2016-07-19 Martin Jambor <mjambor@suse.cz>
17697
17698 PR fortran/71688
17699 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
17700 rather than cgraph_create_node to get a call graph node.
17701
17702 2016-07-19 Richard Biener <rguenther@suse.de>
17703
17704 * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
17705 handle all tcc_constant bases and valueize SSA names.
17706 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
17707 tcc_constant bases.
17708
17709 2016-07-19 David Malcolm <dmalcolm@redhat.com>
17710
17711 * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
17712 the flags of the exit block and bb2, not just the entry block.
17713
17714 2016-07-19 Richard Biener <rguenther@suse.de>
17715
17716 PR tree-optimization/71901
17717 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
17718 align member, group stuff with the bitfield.
17719 (vn_ref_op_align_unit): New inline.
17720 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
17721 record element alignment and operand 3 unchanged.
17722 (ao_ref_init_from_vn_reference): Adjust.
17723 (valueize_refs_1): Likewise.
17724 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
17725
17726 2016-07-19 Richard Biener <rguenther@suse.de>
17727
17728 PR tree-optimization/71908
17729 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
17730 symbolic constants in a more reliable way.
17731
17732 2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
17733
17734 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
17735 comment.
17736 (vect_update_inits_of_drs): Likewise.
17737 (vect_create_cond_for_alias_checks): Likewise.
17738 * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
17739
17740 2016-07-19 Richard Biener <rguenther@suse.de>
17741
17742 PR lto/71907
17743 * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
17744 with an abstract origin that is not an inlined function outer
17745 scope add a self-reference as abstract origin.
17746 * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
17747
17748 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
17749
17750 PR target/71493
17751 * config/rs6000/rs6000.c (rs6000_function_value): Fix
17752 unintentional System V.4 structure return breakage for structures
17753 with a single floating point element.
17754
17755 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com>
17756
17757 PR tree-optimization/71734
17758 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
17759 contains REF, use it to check safelen, assume that safelen value
17760 must be greater 1, fix style.
17761 (ref_indep_loop_p_2): Add REF_LOOP argument.
17762 (ref_indep_loop_p): Pass LOOP as additional argument to
17763 ref_indep_loop_p_2.
17764
17765 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
17766
17767 * cfgexpand.c (expand_stack_vars): Implement synamic stack space
17768 allocation in the prologue.
17769 * explow.c (get_dynamic_stack_base): New function to return an address
17770 expression for the dynamic stack base.
17771 (get_dynamic_stack_size): New function to do the required dynamic stack
17772 space size calculations.
17773 (allocate_dynamic_stack_space): Use new functions.
17774 (align_dynamic_address): Move some code from
17775 allocate_dynamic_stack_space to new function.
17776 * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
17777
17778 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17779
17780 * config/s390/s390.c (s390_encode_section_info): Always set
17781 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
17782 found.
17783
17784 2016-07-18 Richard Biener <rguenther@suse.de>
17785
17786 PR tree-optimization/71893
17787 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
17788 for sizetype cast added by array_ref_element_size.
17789 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
17790
17791 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
17792
17793 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
17794 register parameters. Remove code to initialize argument pointer
17795 on TARGET_64BIT. Optimize call to _mcount when it can be reached
17796 using a pc-relative branch. Cleanup conditional code.
17797 * config/pa/pa.md (call_mcount): New expander.
17798 (call_mcount_nonpic): New insn.
17799 (call_mcount_pic): New insn and split.
17800 (call_mcount_pic_post_reload): New insn.
17801 (call_mcount_64bit): New insn and split.
17802 (call_mcount_64bit_post_reload): New insn.
17803
17804 2016-07-15 Georg-Johann Lay <avr@gjlay.de>
17805
17806 * config/avr/predicates.md (const_m255_to_m1_operand): New.
17807 * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
17808 * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
17809 (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
17810 (*usum_widenqihi3, *udiff_widenqihi3)
17811 (*addhi3_zero_extend.const): New combiner insns.
17812 (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
17813 just 1 bit is affected.
17814 * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
17815 (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
17816
17817 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
17818
17819 * omp-low.c (lower_omp_target): Mark data clauses with
17820 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
17821 zero-length subarrays.
17822
17823 2016-07-15 Richard Biener <rguenther@suse.de>
17824
17825 PR tree-optimization/71881
17826 * tree-loop-distribution.c (destroy_loop): Remove blocks in
17827 reverse DOM order to make debug temp generation happy.
17828
17829 2016-07-15 Richard Biener <rguenther@suse.de>
17830
17831 PR tree-optimization/71887
17832 * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
17833 verify it is not zero for division / modulo handling.
17834 (value_replacement): Adjust.
17835
17836 2016-07-15 Virendra Pathak <virendra.pathak@broadcom.com>
17837 Julian Brown <julian@codesourcery.com>
17838
17839 * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
17840 * config/aarch64/aarch64-cost-tables.h
17841 (vulcan_extra_costs): New variable.
17842 * config/aarch64/aarch64.c
17843 (vulcan_addrcost_table): Likewise.
17844 (vulcan_regmove_cost): Likewise.
17845 (vulcan_vector_cost): Likewise.
17846 (vulcan_branch_cost): Likewise.
17847 (vulcan_tunings): Likewise.
17848
17849 2016-07-15 Alexander Monakov <amonakov@ispras.ru>
17850
17851 * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
17852 (output_in_order): Loop over undefined variables too. Output them
17853 via assemble_undefined_decl. Skip variables that correspond to hard
17854 registers or have value-exprs.
17855 * varpool.c (symbol_table::output_variables): Handle undefined
17856 variables together with defined ones.
17857
17858 2016-07-15 Richard Biener <rguenther@suse.de>
17859
17860 * tree-ssa-pre.c (get_representative_for): Make sure to return
17861 the value number of SSA names.
17862 (phi_translate_1): get_representative_for cannot return NULL.
17863 (do_pre_regular_insertion): Remove redundant call to
17864 fully_constant_expression.
17865 (do_pre_partial_partial_insertion): Likewise.
17866
17867 2016-07-15 Bin Cheng <bin.cheng@arm.com>
17868
17869 * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
17870 (derive_simple_iv_with_niters): New function.
17871 (simple_iv): Rewrite using simple_iv_with_niters.
17872 * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
17873 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
17874 function.
17875 (number_of_iterations_exit): Rewrite using above function.
17876 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
17877 Decl.
17878
17879 2016-07-15 Richard Biener <rguenther@suse.de>
17880
17881 * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
17882 vec_construct cost.
17883
17884 2016-07-14 Jakub Jelinek <jakub@redhat.com>
17885
17886 PR tree-optimization/71872
17887 * tree-data-ref.c (get_references_in_stmt): Ignore references
17888 with is_gimple_constant get_base_address.
17889
17890 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
17891
17892 * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
17893 (TARGET_HAVE_LDACQD): New macro.
17894 * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
17895 than TARGET_HAVE_LDACQ.
17896 (arm_load_acquire_exclusivedi): Likewise.
17897 (arm_store_release_exclusivedi): Likewise.
17898
17899 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
17900
17901 PR rtl-optimization/71878
17902 * lra-constraints.c (match_reload): Pass information about other
17903 output operands. Create new unique register value if matching input
17904 operand shares same register value as output operand being considered.
17905 (curr_insn_transform): Record output operands already processed.
17906
17907 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17908
17909 PR target/65951
17910 PR tree-optimization/70923
17911 * tree-vect-patterns.c: Include mult-synthesis.h.
17912 (target_supports_mult_synth_alg): New function.
17913 (synth_lshift_by_additions): Likewise.
17914 (apply_binop_and_append_stmt): Likewise.
17915 (vect_synth_mult_by_constant): Likewise.
17916 (target_has_vecop_for_code): Likewise.
17917 (vect_recog_mult_pattern): Use above functions to synthesize vector
17918 multiplication by integer constants.
17919
17920 2016-07-14 Alan Modra <amodra@gmail.com>
17921
17922 * config/rs6000/altivec.md (altivec_mov<mode>): Disparage
17923 gpr alternatives. Correct '*' placement on Y,r alternative.
17924 Add '*' on operand 1 of r,r alternative.
17925
17926 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17927
17928 * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
17929 * expmed.h: ... Here.
17930
17931 2016-07-14 Jan Hubicka <hubicka@ucw.cz>
17932
17933 * gimple.h (stmt_can_terminate_bb_p): New function.
17934 * tree-cfg.c (need_fake_edge_p): Rename to ...
17935 (stmt_can_terminate_bb_p): ... this; return true if stmt can
17936 throw external; handle const and pure calls.
17937 * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
17938
17939 2016-07-14 Richard Biener <rguenther@suse.de>
17940
17941 PR tree-optimization/71866
17942 * tree-ssa-pre.c (get_constant_for_value_id): Remove.
17943 (do_hoist_insertion): Avoid endless recursion when we
17944 didn't insert anything because we managed to simplify
17945 things down to a constant or SSA name.
17946 (fully_constant_expression): Re-write in terms of ...
17947 * tree-ssa-sccvn.h (vn_nary_simplify): ... this. Declare.
17948 * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
17949 vn_nary_build_or_lookup_1.
17950 (vn_nary_build_or_lookup_1): Added flag and renamed from ...
17951 (vn_nary_build_or_lookup): ... this which now wraps it.
17952
17953 2016-07-14 Alan Modra <amodra@gmail.com>
17954
17955 PR target/71733
17956 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
17957 with p9_vector override before power9-dform override.
17958
17959 2016-07-13 Andi Kleen <ak@linux.intel.com>
17960
17961 * value-prof.c (gimple_value_profile_transformations): Don't run
17962 when auto_profile is on.
17963
17964 2016-07-13 Andi Kleen <ak@linux.intel.com>
17965
17966 * auto-profile.c (update_inlined_ind_target,
17967 afdo_indirect_call): Print information to dump file.
17968
17969 2016-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
17970
17971 * genrecog.c (special_predicate_operand_p): New function.
17972 (predicate_name): Move function.
17973 (validate_pattern): Don't warn about missing mode for all
17974 define_special_predicate predicates.
17975
17976 2016-07-13 Bin Cheng <bin.cheng@arm.com>
17977
17978 * tree-vect-data-refs.c (vect_no_alias_p): New function.
17979 (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
17980 resolve alias checks which are known at compilation time.
17981 Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
17982 alias checks are resolved. Move dump info for too many runtime
17983 alias checks to here...
17984 * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
17985
17986 2016-07-13 Richard Biener <rguenther@suse.de>
17987
17988 PR tree-optimization/24574
17989 * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
17990 position and add shift, rotate, divison and modulo support
17991 for left zero.
17992 (value_replacement): Pass in argument position to absorbing_element_p.
17993
17994 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
17995
17996 PR ipa/71633
17997 * ipa-inline-transform.c (inline_call): Support
17998 instrumented thunks.
17999
18000 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
18001
18002 * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
18003 (TARGET_IDIV): Set for all Thumb targets provided they have hardware
18004 divide feature.
18005 * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
18006 Baseline. Make initial alternative TARGET_32BIT only.
18007 (udivsi3): Likewise.
18008 * config/arm/thumb1.md (thumb1_cbz): New define_insn.
18009 * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
18010 target.
18011
18012 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
18013
18014 * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
18015 * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
18016 availability with TARGET_HAVE_MOVT.
18017 (thumb_legitimate_constant_p): Strip the high part of a label_ref.
18018 (thumb1_rtx_costs): Also return 0 if setting a half word constant and
18019 MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
18020 UINTVAL.
18021 (thumb1_size_rtx_costs): Make set of half word constant also cost 1
18022 extra instruction if MOVW is available. Use a cost variable
18023 incremented by COSTS_N_INSNS (1) when the condition match rather than
18024 returning an arithmetic expression based on COSTS_N_INSNS. Make
18025 constant with bottom half word zero cost 2 instruction if MOVW is
18026 available.
18027 * config/arm/arm.md (define_attr "arch"): Add v8mb.
18028 (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
18029 target is ARMv8-M Baseline.
18030 (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
18031 (arm_movtas_ze): Likewise.
18032 * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
18033 alternative for constants satisfying j constraint.
18034 (thumb1_movsi_insn): Likewise.
18035 (movsi splitter for K alternative): Tighten condition to not trigger
18036 if movt is available and j constraint is satisfied.
18037 (Pe immediate splitter): Likewise.
18038 (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
18039 constant fitting in an halfword to use MOVW.
18040 * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
18041 effective target.
18042
18043 2016-07-13 Richard Biener <rguenther@suse.de>
18044
18045 PR middle-end/71104
18046 * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
18047 gimplifying the LHS. Make sure to gimplify a returning twice
18048 call LHS without using SSA names.
18049
18050 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18051
18052 * tree-data-ref.c (find_data_references_in_stmt): Remove
18053 unnecessary call to vec::release.
18054 (graphite_find_data_references_in_stmt): Likewise.
18055 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
18056 * tree-vect-stmts.c (vectorizable_condition): Likewise.
18057
18058 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18059
18060 * cfgexpand.c (expand_used_vars): Make the type of a local
18061 variable auto_vec.
18062 * genmatch.c (lower_for): Likewise.
18063 * haifa-sched.c (haifa_sched_init): Likewise.
18064 (add_to_speculative_block): Likewise.
18065 (create_check_block_twin): Likewise.
18066 * predict.c (handle_missing_profiles): Likewise.
18067 * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
18068 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
18069 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
18070 Likewise.
18071 (maybe_lower_iteration_bound): Likewise.
18072 * tree-ssa-sccvn.c (DFS): Likewise.
18073 * tree-stdarg.c (reachable_at_most_once): Likewise.
18074 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
18075 (vectorizable_store): Likewise.
18076
18077 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18078
18079 * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
18080 (sccvn_dom_walker): make cond_stack an auto_vec.
18081
18082 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18083
18084 * ree.c (struct ext_state): Make type of members auto_vec.
18085 (find_and_remove_re): Adjust.
18086
18087 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18088
18089 * cfgexpand.c (struct stack_vars_data): Make type of fields
18090 auto_vec.
18091 (expand_used_vars): Adjust.
18092
18093 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18094
18095 * ipa.c (record_cdtor_fn): Adjust.
18096 (build_cdtor_fns): Likewise.
18097 (ipa_cdtor_merge): Make static_ctors and static_dtors local
18098 variables.
18099
18100 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18101
18102 * genextract.c (struct accum_extract): Add constructor and make
18103 members auto_vec.
18104 (gen_insn): Adjust.
18105
18106 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18107
18108 * tree.c (struct free_lang_data_d): Add constructor and change
18109 types of members to ones that automatically manage resources.
18110 (fld_worklist_push): Adjust.
18111 (find_decls_types): Likewise.
18112 (find_decls_types_in_eh_region): Likewise.
18113 (free_lang_data_in_cgraph): Stop manually creating and
18114 destroying members of free_lang_data_d.
18115
18116 2016-07-13 Uros Bizjak <ubizjak@gmail.com>
18117
18118 PR rtl-optimization/68961
18119 * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
18120 peephole variant. Use sse_reg_operand predicates.
18121
18122 2016-07-12 Uros Bizjak <ubizjak@gmail.com>
18123
18124 * config/i386/predicates.md (x86_64_immediate_operand)
18125 <case CONST_INT>: Remove unneeded truncation to DImode.
18126 <case CONST>: Ditto.
18127 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
18128
18129 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
18130
18131 PR target/71805
18132 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
18133 The xxperm and xxpermr instructions require that the 2nd input
18134 operand overlap with the output operand, and not the 1st.
18135 (altivec_vperm_v8hiv16qi): Likewise.
18136 (altivec_vperm_<mode>_uns_internal): Likewise.
18137 (altivec_vpermr_<mode>_internal): Likewise.
18138 (vperm_v8hiv4si): Likewise.
18139 (vperm_v16qiv8hi): Likewise.
18140
18141 2016-07-12 Nathan Sidwell <nathan@acm.org>
18142
18143 * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
18144 when -mno-pic-data-is-text-relative is in effect, by default.
18145 * doc/invoke.texi (mpic-data-is-text-relative): Document new
18146 behavior and clarify.
18147
18148 2016-07-12 Martin Liska <mliska@suse.cz>
18149
18150 * params.def: Add avg-loop niter.
18151 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
18152 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
18153 * doc/invoke.texi: Document the new parameter.
18154
18155 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18156
18157 PR middle-end/71700
18158 * expr.c (store_constructor): Mask sign-extended bits when widening
18159 sub-word constructor element at the start of a word.
18160
18161 2016-07-12 Martin Liska <mliska@suse.cz>
18162
18163 * Makefile.in: Append rule for params-options.h.
18164 * params-options.h: New file.
18165
18166 2016-07-12 Martin Liska <mliska@suse.cz>
18167
18168 * ira-build.c (mark_loops_for_removal): Properly iterate
18169 loops.
18170
18171 2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
18172 Richard Biener <rguenther@suse.de>
18173
18174 PR tree-optimization/23286
18175 PR tree-optimization/70159
18176 * doc/invoke.texi: Document -fcode-hoisting.
18177 * common.opt (fcode-hoisting): New flag.
18178 * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
18179 * tree-ssa-pre.c (pre_stats): Add hoist_insert.
18180 (do_regular_insertion): Rename to ...
18181 (do_pre_regular_insertion): ... this and amend general comments
18182 on insertion strathegy.
18183 (do_partial_partial_insertion): Rename to ...
18184 (do_pre_partial_partial_insertion): ... this.
18185 (do_hoist_insertion): New function.
18186 (insert_aux): Take flags on whether to do PRE and/or hoist insertion
18187 and call do_hoist_insertion properly.
18188 (insert): Adjust.
18189 (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
18190 (pass_pre::execute): Register hoist_insert stats.
18191
18192 2016-07-12 Jakub Jelinek <jakub@redhat.com>
18193
18194 PR middle-end/71716
18195 * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
18196 for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
18197 is different from mode's bitsize. Small cleanup.
18198
18199 2016-07-12 Richard Biener <rguenther@suse.de>
18200
18201 PR rtl-optimization/68961
18202 * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
18203 to simplify to a non-constant.
18204
18205 2016-07-11 Jakub Jelinek <jakub@redhat.com>
18206
18207 PR middle-end/71758
18208 * omp-low.c (expand_omp_target): Gimplify device.
18209
18210 PR tree-optimization/71823
18211 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
18212 to get vec_oprnds2 from op2.
18213
18214 2016-07-11 Uros Bizjak <ubizjak@gmail.com>
18215
18216 * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
18217 Hoist common subexpressions.
18218 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
18219
18220 2016-07-11 Pat Haugen <pthaugen@us.ibm.com>
18221
18222 PR target/71800
18223 * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
18224 prevent generation of 'stxsiwx' on pre Power8 hardware.
18225
18226 2016-07-11 David Malcolm <dmalcolm@redhat.com>
18227
18228 * input.c: Include cpplib.h.
18229 (selftest::temp_source_file): New class.
18230 (selftest::temp_source_file::temp_source_file): New ctor.
18231 (selftest::temp_source_file::~temp_source_file): New dtor.
18232 (selftest::should_have_column_data_p): New function.
18233 (selftest::test_should_have_column_data_p): New function.
18234 (selftest::temp_line_table): New class.
18235 (selftest::temp_line_table::temp_line_table): New ctor.
18236 (selftest::temp_line_table::~temp_line_table): New dtor.
18237 (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
18238 it to create a temp_line_table.
18239 (selftest::assert_loceq): Only verify LOCATION_COLUMN for
18240 locations that are known to have column data.
18241 (selftest::line_table_case): New struct.
18242 (selftest::test_reading_source_line): Move tempfile handling
18243 to class temp_source_file.
18244 (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
18245 (selftest::assert_token_loc_eq): New function.
18246 (ASSERT_TOKEN_LOC_EQ): New macro.
18247 (selftest::test_lexer): New function.
18248 (selftest::boundary_locations): New array.
18249 (selftest::input_c_tests): Call test_should_have_column_data_p.
18250 Loop over a test matrix of interesting values of location and
18251 default_range_bits, calling test_lexer on each case in the matrix.
18252 Move call to test_accessing_ordinary_linemaps into the matrix.
18253 * selftest.h (ASSERT_EQ): Reimplement in terms of...
18254 (ASSERT_EQ_AT): New macro.
18255
18256 2016-07-11 H.J. Lu <hongjiu.lu@intel.com>
18257
18258 PR target/71801
18259 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
18260 Don't convert TImode in debug insn.
18261
18262 2016-07-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
18263
18264 Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
18265 * tree-core.h (tree_base::nothrow_flag): Adjust comment.
18266 (tree_type_common::lang_flag_7): New.
18267 (tree_type_common::spare): Reduce size.
18268 * tree.h (TYPE_ALIGN_OK): Remove.
18269 (TYPE_LANG_FLAG_7): New.
18270 (get_inner_reference): Adjust header.
18271 * print-tree.c (print_node): Adjust.
18272 * expr.c (get_inner_reference): Remove parameter keep_aligning.
18273 (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
18274 calls to get_inner_reference.
18275 (expand_expr_real_1): Adjust call to get_inner_reference. Remove
18276 handling of TYPE_ALIGN_OK.
18277 * builtins.c (get_object_alignment_2): Adjust call to
18278 get_inner_reference. Remove handling of VIEW_CONVERT_EXPR.
18279 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
18280 TYPE_ALIGN_OK.
18281 * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
18282 * cfgexpand.c (expand_debug_expr): Likewise.
18283 * dbxout.c (dbxout_expand_expr): Likewise.
18284 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
18285 loc_list_from_tree, fortran_common): Likewise.
18286 * fold-const.c (optimize_bit_field_compare,
18287 decode_field_reference, fold_unary_loc, fold_comparison,
18288 split_address_to_core_and_offset): Likewise.
18289 * gimple-laddress.c (execute): Likewise.
18290 * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
18291 * gimplify.c (gimplify_scan_omp_clauses): Likewise.
18292 * hsa-gen.c (gen_hsa_addr): Likewise.
18293 * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
18294 * tsan.c (instrument_expr): Likewise.
18295 * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
18296 * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
18297 * tree-affine.c (tree_to_aff_combination,
18298 get_inner_reference_aff): Adjust calls to get_inner_reference.
18299 * tree-data-ref.c (split_constant_offset_1,
18300 dr_analyze_innermost): Likewise.
18301 * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
18302 * tree-sra.c (ipa_sra_check_caller): Likewise.
18303 * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
18304 * tree-ssa-math-opts.c (find_bswap_or_nop_load,
18305 bswap_replace): Likewise.
18306 * tree-vect-data-refs.c (vect_check_gather,
18307 vect_analyze_data_refs): Likewise.
18308 * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
18309 * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
18310 TYPE_ALIGN_OK.
18311
18312 2016-07-11 David Malcolm <dmalcolm@redhat.com>
18313
18314 * Makefile.in (selftest-valgrind): New phony target.
18315 * function-tests.c (selftest::build_cfg): Delete pass instances
18316 created by the test.
18317 (selftest::convert_to_ssa): Likewise.
18318 (selftest::test_expansion_to_rtl): Likewise.
18319 * tree-cfg.c (selftest::test_linear_chain): Release dominator
18320 vectors.
18321 (selftest::test_diamond): Likewise.
18322
18323 2016-07-11 Richard Biener <rguenther@suse.de>
18324
18325 PR tree-optimization/71816
18326 * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
18327 than replacing all of its operands.
18328
18329 2016-07-11 Alan Modra <amodra@gmail.com>
18330
18331 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
18332 (ctr<mode>): Add unspec.
18333 (ctr<mode>_internal*): Likewise.
18334
18335 2016-07-08 James Bowman <james.bowman@ftdichip.com>
18336
18337 * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
18338 * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
18339
18340 2016-07-08 Vladimir Makarov <vmakarov@redhat.com>
18341
18342 PR rtl-optimization/71621
18343 * lra-constraints.c (process_alt_operands): Check combination of
18344 reg class and mode.
18345
18346 2016-07-08 Jason Merrill <jason@redhat.com>
18347 Richard Biener <rguenther@suse.de>
18348
18349 P0145: Refining Expression Order for C++.
18350 * gimplify.c (initial_rhs_predicate_for): New.
18351 (gimplfy_modify_expr): Gimplify RHS before LHS.
18352
18353 2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18354
18355 PR target/71297
18356 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
18357 Allow standard error handling to take over when a wrong number
18358 of arguments is presented to __builtin_vec_ld () or
18359 __builtin_vec_st ().
18360
18361 2016-07-08 Jiong Wang <jiong.wang@arm.com>
18362
18363 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
18364 variants.
18365 (smin): Likewise.
18366 (fmax): New entry.
18367 (fmin): Likewise.
18368 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
18369 __builtin_aarch64_fmaxv2sf.
18370 (vmaxnmq_f32): Likewise.
18371 (vmaxnmq_f64): Likewise.
18372 (vminnm_f32): Likewise.
18373 (vminnmq_f32): Likewise.
18374 (vminnmq_f64): Likewise.
18375
18376 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
18377
18378 PR target/71806
18379 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
18380 enable -mfloat128-hardware by default.
18381 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
18382 that IEEE 128-bit hardware support needs.
18383 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
18384 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
18385 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
18386 floating point requires.
18387 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
18388 -mfloat128 and -mfloat128-hardware changes.
18389
18390 2016-07-08 Alan Hayward <alan.hayward@arm.com>
18391
18392 PR tree-optimization/71667
18393 * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
18394
18395 2016-07-08 Martin Liska <mliska@suse.cz>
18396
18397 PR middle-end/71606
18398 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
18399 folding produces SAVE_EXPRs, thus return false for the type.
18400
18401 2016-07-07 Martin Liska <mliska@suse.cz>
18402
18403 * file-find.c (remove_prefix): New function.
18404 * file-find.h (remove_prefix): Declare the function.
18405 * gcc-ar.c (main): Skip a folder of the wrapper if
18406 a wrapped binary would point to the same file.
18407
18408 2016-07-07 Jan Hubicka <jh@suse.cz>
18409
18410 * tree-scalar-evolution.c (iv_can_overflow_p): export.
18411 * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
18412 * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
18413
18414 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
18415
18416 PR ipa/71624
18417 * ipa-inline-analysis.c (compute_inline_parameters): Set
18418 local.can_change_signature to false for intrumentation
18419 thunk callees.
18420
18421 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
18422
18423 * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
18424 with TARGET_HAVE_MOVT.
18425 (TARGET_HAVE_MOVT): Define.
18426 * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
18427 availability with TARGET_HAVE_MOVT.
18428 * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
18429 availability.
18430 (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
18431 TARGET_THUMB2.
18432 (symbol_refs movsi splitter): Remove TARGET_32BIT check.
18433 (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
18434 * config/arm/constraints.md (define_constraint "j"): Use
18435 TARGET_HAVE_MOVT to check MOVT availability.
18436
18437 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
18438
18439 * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
18440
18441 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
18442
18443 * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
18444 (armv8-m.main): Likewise.
18445 (armv8-m.main+dsp): Likewise.
18446 * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
18447 (FL_FOR_ARCH8M_MAIN): Likewise.
18448 * config/arm/arm-tables.opt: Regenerate.
18449 * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
18450 armv8-m.main+dsp to BE8_LINK_SPEC.
18451 * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
18452 (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
18453 * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
18454 Baseline and Mainline.
18455 (arm_option_override_internal): Also disable arm_restrict_it when
18456 !arm_arch_notm. Update comment for -munaligned-access to also cover
18457 ARMv8-M Baseline.
18458 (arm_file_start): Increase buffer size for printing architecture name.
18459 * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
18460 and armv8-m.main+dsp.
18461 (mno-unaligned-access): Clarify that this is disabled by default for
18462 ARMv8-M Baseline architectures as well.
18463
18464 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
18465
18466 * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
18467 decide whether to prevent some libgcc routines being included for some
18468 multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
18469 link between this condition and the one in
18470 libgcc/config/arm/lib1func.S.
18471
18472 2016-07-07 Richard Biener <rguenther@suse.de>
18473
18474 * tree-ssa-pre.c: Include alias.h.
18475 (compute_avail): If we have multiple VN_REFERENCEs with the
18476 same hashtable entry adjust that to make it a valid replacement
18477 for all of them with respect to alignment and aliasing
18478 when doing insertion.
18479 * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
18480 * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
18481
18482 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
18483
18484 PR target/70098
18485 PR target/71763
18486 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
18487 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
18488 constraint.
18489
18490 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18491
18492 * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
18493 (adjust_mems): Adjust.
18494 (adjust_insn): Likewise.
18495 (prepare_call_arguments): Likewise.
18496
18497 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18498
18499 * gcse.c (struct ls_expr): Make stores field a vector.
18500 (ldst_entry): Adjust.
18501 (free_ldst_entry): Likewise.
18502 (print_ldst_list): Likewise.
18503 (compute_ld_motion_mems): Likewise.
18504 (update_ld_motion_stores): Likewise.
18505
18506 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18507
18508 * gcse.c (struct ls_expr): Remove loads field.
18509 (ldst_entry): Adjust.
18510 (free_ldst_entry): Likewise.
18511 (print_ldst_list): Likewise.
18512 (compute_ld_motion_mems): Likewise.
18513
18514 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18515
18516 * store-motion.c (struct st_expr): Make antic_stores a vector.
18517 (st_expr_entry): Adjust.
18518 (free_st_expr_entry): Likewise.
18519 (print_store_motion_mems): Likewise.
18520 (find_moveable_store): Likewise.
18521 (compute_store_table): Likewise.
18522 (remove_reachable_equiv_notes): Likewise.
18523 (replace_store_insn): Likewise.
18524 (build_store_vectors): Likewise.
18525
18526 2016-07-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18527
18528 * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
18529 cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
18530
18531 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
18532
18533 PR tree-optimization/71518
18534 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
18535 misalign also for outer loops with negative step.
18536
18537 2016-07-06 Wilco Dijkstra <wdijkstr@arm.com>
18538
18539 * config/arm/cortex-a53.md: Use final_presence_set for in-order.
18540 (cortex_a53_shift): Add mov_shift.
18541 (cortex_a53_shift_reg): Add new reservation for register shifts.
18542 (cortex_a53_alu): Remove bfm.
18543 (cortex_a53_alu_shift): Add bfm, remove mov_shift.
18544 (cortex_a53_alu_extr): Add new reservation for EXTR.
18545 (bypasses): Improve bypass modelling.
18546
18547 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
18548
18549 PR target/50739
18550 * config/avr/avr.c (avr_asm_select_section): Strip off
18551 SECTION_DECLARED from flags when calling get_section.
18552
18553 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18554
18555 * tree-vectorizer.h (vect_memory_access_type): Add
18556 VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
18557 * tree-vect-stmts.c (compare_step_with_zero): New function.
18558 (perm_mask_for_reverse): Move further up file.
18559 (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
18560 step is negative.
18561 (get_negative_load_store_type): New function.
18562 (get_load_store_type): Call it. Add an ncopies argument.
18563 (vectorizable_mask_load_store): Update call accordingly and
18564 remove tests for negative steps.
18565 (vectorizable_store, vectorizable_load): Likewise. Handle new
18566 memory_access_types.
18567
18568 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18569
18570 * tree-vectorizer.h (vect_memory_access_type): New enum.
18571 (_stmt_vec_info): Add a memory_access_type field.
18572 (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
18573 (vect_model_store_cost): Take an access type instead of a boolean.
18574 (vect_model_load_cost): Likewise.
18575 * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
18576 vect_model_store_cost and vect_model_load_cost.
18577 * tree-vect-stmts.c (vec_load_store_type): New enum.
18578 (vect_model_store_cost): Take an access type instead of a
18579 store_lanes_p boolean. Simplify tests.
18580 (vect_model_load_cost): Likewise, but for load_lanes_p.
18581 (get_group_load_store_type, get_load_store_type): New functions.
18582 (vectorizable_store): Use get_load_store_type. Record the access
18583 type in STMT_VINFO_MEMORY_ACCESS_TYPE.
18584 (vectorizable_load): Likewise.
18585 (vectorizable_mask_load_store): Likewise. Replace is_store
18586 variable with vls_type.
18587
18588 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18589
18590 * tree-vectorizer.h (vect_grouped_load_supported): Add a
18591 single_element_p parameter.
18592 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
18593 Check the PR65518 case here rather than in vectorizable_load.
18594 * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
18595 * tree-vect-stmts.c (vectorizable_load): Likewise.
18596
18597 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18598
18599 * tree-vectorizer.h (gather_scatter_info): New structure.
18600 (vect_check_gather_scatter): Return a bool rather than a decl.
18601 Replace return-by-pointer arguments with a single
18602 gather_scatter_info *.
18603 * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
18604 (vect_analyze_data_refs): Update call accordingly.
18605 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
18606 (vectorizable_mask_load_store): Likewise. Also record the
18607 offset dt and vectype in the gather_scatter_info.
18608 (vectorizable_store): Likewise.
18609 (vectorizable_load): Likewise.
18610
18611 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18612
18613 * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
18614 strided groups, use the cost of N scalar accesses instead
18615 of ncopies vector accesses.
18616 (vect_model_load_cost): Likewise.
18617
18618 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18619
18620 * tree-vect-stmts.c (vect_cost_group_size): Delete.
18621 (vect_model_store_cost): Avoid calling it. Use first_stmt_p
18622 variable to indicate when once-per-group costs are being used.
18623 (vect_model_load_cost): Likewise. Fix comment and misindented code.
18624
18625 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18626
18627 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
18628 peeling-for-gaps condition.
18629
18630 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18631
18632 * config/s390/s390.c (s390_expand_vec_init): Force initializer
18633 element to register if it doesn't match general_operand.
18634
18635 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
18636 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18637
18638 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
18639 prototype.
18640 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
18641 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
18642 (SIGNBIT): New mode iterator.
18643 (Fsignbit): New mode attribute.
18644 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
18645 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
18646 when direct moves are available.
18647 (signbit<mode>2_dm): New define_insn_and_split).
18648 (signbit<mode>2_dm2): New define_insn.
18649
18650 2016-07-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18651
18652 PR rtl-optimization/71594
18653 * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
18654 into subregs of appropriate mode before trying to emit a conditional
18655 move.
18656
18657 2016-07-05 Jan Hubicka <jh@suse.cz>
18658
18659 * tree-scalar-evolution.c (iv_can_overflow_p): New function.
18660 (simple_iv): Use it.
18661
18662 2016-07-05 Jan Hubicka <jh@suse.cz>
18663
18664 * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
18665
18666 2016-07-05 Jiong Wang <jiong.wang@arm.com>
18667
18668 * lra-constraints.c (process_alt_operands): Don't add spilling cost for
18669 "offmemok".
18670
18671 2016-07-05 Jan Hubicka <jh@suse.cz>
18672
18673 * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
18674 IV can overflow.
18675
18676 2016-07-05 Richard Biener <rguenther@suse.de>
18677
18678 * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
18679 Handle empty else block.
18680 (is_feasible_trace): Likewise.
18681 (split_paths): Likewise.
18682
18683 2016-07-05 Richard Biener <rguenther@suse.de>
18684
18685 * tree-loop-distribution.c (distribute_loop): Fix issue with
18686 the cost model loop.
18687
18688 2016-07-05 Christophe Lyon <christophe.lyon@linaro.org>
18689
18690 * config/arm/neon-testgen.ml: Delete.
18691 * config/arm/neon.ml: Delete.
18692
18693 2016-07-04 Jakub Jelinek <jakub@redhat.com>
18694
18695 PR c++/71739
18696 * tree.c (attribute_value_equal): Use get_attribute_name instead of
18697 directly using TREE_PURPOSE.
18698
18699 2016-07-04 Jiong Wang <jiong.wang@arm.com>
18700
18701 * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
18702 * config/aarch64/aarch64_neon.h: Likewise.
18703 * config/aarch64/arm_neon.h: Likewise.
18704 * config/aarch64/atomics.md: Likewise.
18705 * config/aarch64/aarch64-simd-builtins.def: Likewise.
18706 * doc/invoke.texi: Likewise.
18707
18708 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
18709
18710 * config/s390/s390.md: Add "z13" cpu_facility.
18711 ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
18712 * config/s390/predicates.md ("loc_operand"): New predicate for "load on
18713 condition" type instructions.
18714
18715 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
18716 Jeff Law <law@redhat.com>
18717
18718 * explow.c (allocate_dynamic_stack_space): Simplify knowing that
18719 MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
18720
18721 2016-07-04 Yuri Rumyantsev <ysrumyan@gmail.com>
18722
18723 * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
18724 permutation for TARGET_AVX512F.
18725 (ix86_expand_vec_one_operand_perm_avx512): New function.
18726 (expand_vec_perm_1): Invoke introduced function.
18727 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
18728 it may be not valid after vectorization.
18729
18730 2016-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18731
18732 PR target/63874
18733 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
18734 typo in comment. Only force to memory if it is a weak
18735 external reference.
18736
18737 2016-07-04 Matthew Wahab <matthew.wahab@arm.com>
18738 Jiong Wang <jiong.wang@arm.com>
18739
18740 * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
18741 * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
18742 (AARCH64_FL_F16): New.
18743 (AARCH64_FL_FOR_ARCH8_2): New.
18744 (AARCH64_ISA_8_2): New.
18745 (AARCH64_ISA_F16): New.
18746 (TARGET_FP_F16INST): New.
18747 (TARGET_SIMD_F16INST): New.
18748 * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
18749 ("fp"): Disabling "fp" also disables "fp16".
18750 * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
18751 Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
18752 and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
18753 * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
18754
18755 2016-07-04 Jan Beulich <jbeulich@suse.com>
18756
18757 * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
18758
18759 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
18760
18761 PR target/71720
18762 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
18763 the insns, use an insn form that does not adjust the offset on
18764 little endian systems.
18765
18766 2016-07-01 Jan Beulich <jbeulich@suse.com>
18767
18768 * varasm.c (get_variable_section): Validate initializer in
18769 named .bss-like sections.
18770
18771 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
18772
18773 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
18774 Exchange the order of the second and third operands in the vpermr
18775 instruction tmeplate.
18776
18777 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
18778
18779 PR target/71698
18780 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
18781 Disallow TDmode values.
18782
18783 2016-07-01 Alan Modra <amodra@gmail.com>
18784
18785 PR rtl-optimization/71709
18786 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
18787 being set, not referenced.
18788
18789 2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
18790
18791 PR tree-optimization/70729
18792 * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
18793 of loop since it can be not valid after transformation.
18794
18795 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18796
18797 * config/arm/arm.c (thumb_reload_in_hi): Delete.
18798 * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
18799
18800 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
18801
18802 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
18803 for NULL decl.
18804
18805 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
18806
18807 PR target/71677
18808 * config/rs6000/constraints.md (wY constraint): New constraint to
18809 match the requirements for the LXSD and STXSD instructions.
18810 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
18811 predicate to match the requirements for the LXSD and STXSD
18812 instructions.
18813 * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
18814 Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
18815 to make sure that the bottom 2 bits of offset are 0, the address
18816 form is offsettable, and no updating is done in the address mode.
18817 (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
18818 (movdi_internal32): Likewise
18819 (movdi_internal64): Likewise.
18820
18821 2016-06-30 Jakub Jelinek <jakub@redhat.com>
18822
18823 PR tree-optimization/71707
18824 * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
18825 strinfo even for ADDR_EXPR ptr.
18826
18827 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
18828
18829 * config/rs6000/altivec.md (darn_32): Change the condition to
18830 TARGET_P9_MISC instead of TARGET_MODULO.
18831 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
18832 condition expression.
18833 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
18834 condition expression.
18835 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
18836 (DFP_TEST): New code iterator.
18837 (dfptstsfi_<code>_mode>): New define_expand.
18838 (*dfp_sgnfcnc_<mode>): New define_insn.
18839 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
18840 definition next to BU_P9_MISC_1 definition and change the MASK
18841 value to RS6000_BTM_P9_MISC.
18842 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
18843 (BU_P9_64BIT_MISC_0): Likewise.
18844 (BU_P9_DFP_MISC_0): New macro definition.
18845 (BU_P9_DFP_MISC_1): New macro definition.
18846 (BU_P9_DFP_MISC_2): New macro definition.
18847 (BU_P9_DFP_OVERLOAD_1): New macro definition.
18848 (BU_P9_DFP_OVERLOAD_2): New macro definition.
18849 (BU_P9_DFP_OVERLOAD_3): New macro definition.
18850 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
18851 (TSTSFI_LT_TD): Likewise.
18852 (TSTSFI_EQ_DD): Likewise.
18853 (TSTSFI_EQ_TD): Likewise.
18854 (TSTSFI_GT_DD): Likewise.
18855 (TSTSFI_GT_TD): Likewise.
18856 (TSTSFI_OV_DD): Likewise.
18857 (TSTSFI_OV_TD): Likewise.
18858 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
18859 (TSTSFI_LT_DD): Likewise.
18860 (TSTSFI_LT_TD): Likewise.
18861 (TSTSFI_EQ): Likewise.
18862 (TSTSFI_EQ_DD): Likewise.
18863 (TSTSFI_EQ_TD): Likewise.
18864 (TSTSFI_GT): Likewise.
18865 (TSTSFI_GT_DD): Likewise.
18866 (TSTSFI_GT_TD): Likewise.
18867 (TSTSFI_OV): Likewise.
18868 (TSTSFI_OV_DD): Likewise.
18869 (TSTSFI_OV_TD): Likewise.
18870 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
18871 overloaded test significance functions.
18872 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
18873 OPTION_MASK_P9_MISC into the representation of this mask.
18874 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
18875 of this mask.
18876 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
18877 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
18878 non-zero.
18879 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
18880 argument is a 6-bit unsigned literal value if the icode argument
18881 represents a DFP test significance built-in call.
18882 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
18883 flag used independently and in combination with the
18884 RS6000_BTM_64BIT flag.
18885 (rs6000_opt_masks): Add entry for power9-misc command-line option.
18886 (rs6000_builtin_mask_names): Add entry for power9-misc
18887 command-line option.
18888 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
18889 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
18890 RS6000_BTM_P9_MISC macros.
18891 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
18892 option and change the description of the -mpower9-vector option to
18893 enable only vector instructions, removing its erroneously claimed
18894 support for scalar instructions.
18895 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
18896 the ISA 3.0 digital floating point test significance built-in
18897 functions.
18898
18899 2016-06-30 Wilco Dijkstra <wdijkstr@arm.com>
18900
18901 * config/aarch64/aarch64.c (cortexa35_tunings):
18902 Enable AES fusion. Use cortexa57_branch_cost.
18903 (cortexa53_tunings): Use cortexa57_branch_cost.
18904 (cortexa72_tunings): Use cortexa57_branch_cost.
18905 Use AUTOPREFETCHER_WEAK.
18906 (cortexa73_tunings): Use cortexa57_branch_cost.
18907
18908 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18909 James Greenhalgh <james.greenhalgh@arm.com>
18910
18911 * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
18912 vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
18913 vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
18914 vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
18915 (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
18916 vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
18917 vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
18918 vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
18919 vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
18920 vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
18921 vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
18922 vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
18923 vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
18924 New intrinsics.
18925
18926 2016-06-30 James Greenhalgh <james.greenhalgh@arm.com>
18927 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18928
18929 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
18930 New define_insn.
18931 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
18932
18933 2016-06-30 David Malcolm <dmalcolm@redhat.com>
18934
18935 PR driver/71651
18936 * gcc.c (driver::build_option_suggestions): Pass "option" to
18937 add_misspelling_candidates.
18938 * opts-common.c (add_misspelling_candidates): Add "option" param;
18939 use it to avoid adding negated forms for options marked with
18940 RejectNegative.
18941 * opts.h (add_misspelling_candidates): Add "option" param.
18942
18943 2016-06-30 Jakub Jelinek <jakub@redhat.com>
18944
18945 PR middle-end/71693
18946 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
18947 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
18948 first when permuting bitwise operation with rotate. Cast
18949 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
18950
18951 2016-06-29 David Malcolm <dmalcolm@redhat.com>
18952
18953 * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
18954 for misspelled param names.
18955 * params.c: Include spellcheck.h.
18956 (find_param_fuzzy): New function.
18957 * params.h (find_param_fuzzy): New prototype.
18958 * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
18959 * spellcheck.h (struct edit_distance_traits<const char *>):
18960 ...here.
18961
18962 2016-06-29 Michael Meissner <meissner@linux.vnet.ibm.com>
18963
18964 * config/rs6000/predicates.md (const_0_to_7_operand): New
18965 predicate, recognize 0..7.
18966 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
18967 support for doing extracts from V16QImode, V8HImode, V4SImode
18968 under ISA 3.0.
18969 * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
18970 vector extract support.
18971 (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
18972 for ISA 3.0 vector extract.
18973 (VSX_EX): Constraints to use for ISA 3.0 vector extract.
18974 (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
18975 extracts of a constant element number from small integer vectors
18976 on 64-bit ISA 3.0 systems.
18977 (vsx_extract_<mode>_di): Likewise.
18978 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
18979 say when we can do ISA 3.0 vector extracts.
18980 * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
18981 registers, using the stxsiwx instruction.
18982
18983 2016-06-29 Jim Wilson <jim.wilson@linaro.org>
18984
18985 * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
18986 * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
18987 qdf24xx_regmove_cost, qdf24xx_tunings): New.
18988 * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
18989 * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
18990 * config/arm/arm.c (arm_qdf24xx_tune): New.
18991
18992 2016-06-29 Wilco Dijkstra <wdijkstr@arm.com>
18993
18994 * config/aarch64/aarch64.c (cortexa53_tunings):
18995 Increase loop alignment to 8. Set function alignment to 16.
18996 (cortexa35_tunings): Likewise.
18997 (cortexa57_tunings): Increase loop alignment to 8.
18998 (cortexa72_tunings): Likewise.
18999 (cortexa73_tunings): Likewise.
19000
19001 2016-06-29 Matthew Wahab <matthew.wahab@arm.com>
19002
19003 * doc/sourcebuild.texi (Effective-Target keywords): Add entries
19004 for arm_fp16_ok and arm_fp16_hw.
19005 (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
19006 arm_fp16_alternative.
19007
19008 2016-06-29 Ilya Enkovich <ilya.enkovich@intel.com>
19009
19010 PR tree-optimization/71655
19011 * tree-vect-stmts.c (vectorizable_comparison): Swap definition
19012 types when swapping operands.
19013
19014 2016-06-29 Martin Liska <mliska@suse.cz>
19015
19016 PR middle-end/71585
19017 * common.opt (flag_stack_protect): Mark the flag as optimization flag.
19018 * ipa-inline-transform.c (inline_call): Remove unnecessary call
19019 of build_optimization_node.
19020
19021 2016-06-29 Yuri Rumyantsev <ysrumyan@gmail.com>
19022
19023 PR tree-optimization/70729
19024 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
19025 independent in loops having positive safelen value.
19026 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
19027 it may be not valid after vectorization.
19028
19029 2016-06-29 Jakub Jelinek <jakub@redhat.com>
19030
19031 PR tree-optimization/71625
19032 * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument. Assume list
19033 is sorted by ascending list->offset. If PTR is non-NULL and there is
19034 previous strinfo, call get_stridx_plus_constant.
19035 (get_stridx): Pass exp as second argument to get_addr_stridx.
19036 (addr_stridxptr): Add missing list = list->next, so that there can be
19037 more than one entries in the list. Bump limit from 16 to 32. Ensure
19038 the list is sorted by ascending list->offset.
19039 (get_stridx_plus_constant): Adjust so that it can be also called with
19040 ADDR_EXPR instead of SSA_NAME as PTR.
19041 (handle_char_store): Pass NULL_TREE as second argument to
19042 get_addr_stridx.
19043
19044 2016-06-29 Richard Biener <rguenther@suse.de>
19045
19046 PR rtl-optimization/68961
19047 * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
19048
19049 2016-06-29 Richard Biener <rguenther@suse.de>
19050
19051 PR middle-end/71002
19052 * alias.c (component_uses_parent_alias_set_from): Handle
19053 type punning through union accesses by using the union alias set.
19054 * gimple.c (gimple_get_alias_set): Remove union type punning case.
19055
19056 2016-07-29 Richard Biener <rguenther@suse.de>
19057
19058 * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
19059 precision not matching mode precision.
19060
19061 2016-06-28 John David Anglin <danglin@gcc.gnu.org>
19062
19063 * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
19064 pa_output_arg_descriptor.
19065 (call_val_symref_64bit_post_reload): Likewise.
19066 (call_val_powf_64bit_post_reload): Likewise.
19067 (sibcall_internal_symref_64bit): Likewise.
19068 (sibcall_value_internal_symref_64bit): Likewise.
19069
19070 2016-06-28 Jakub Jelinek <jakub@redhat.com>
19071
19072 PR middle-end/71626
19073 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
19074 a constant, force its SUBREG_REG into memory or register instead
19075 of whole op1.
19076
19077 2016-06-28 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
19078
19079 PR target/58655
19080 * config/avr/avr.opt (-mfract-convert-truncate): Update description.
19081 * doc/invoke.texi (AVR Options): Document it.
19082
19083 2016-06-28 Walter Lee <walt@tilera.com>
19084
19085 * config/tilegx/linux.h: Do not include arch/icache.h
19086 (CLEAR_INSN_CACHE): Provide inlined definition directly.
19087 * config/tilepro/linux.h: Do not include arch/icache.h
19088 (CLEAR_INSN_CACHE): Provide inlined definition directly.
19089
19090 2016-06-28 Wilco Dijkstra <wdijkstr@arm.com>
19091
19092 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
19093 for big-endian BIT_FIELD_REF.
19094
19095 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
19096
19097 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
19098 ('size' attribute): Add '128'.
19099 Include power9.md.
19100 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
19101 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
19102 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
19103 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
19104 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
19105 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
19106 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
19107 *trunc<mode>df2_odd): Set size attribute to '128'.
19108 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
19109 * config/rs6000/power6.md (power6-fp): Include dfp type.
19110 * config/rs6000/power7.md (power7-fp): Likewise.
19111 * config/rs6000/power8.md (power8-fp): Likewise.
19112 * config/rs6000/power9.md: New file.
19113 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
19114 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
19115 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
19116 htmsimple.
19117 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
19118 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
19119 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
19120 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
19121 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
19122 dfp_dscri_<mode>): Change type attribute to dfp.
19123 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
19124 attribute to vecsimple.
19125 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
19126 and prefetch streams.
19127 (rs6000_option_override_internal): Remove temporary code setting
19128 tuning to power8. Don't set rs6000_sched_groups for power9.
19129 (last_scheduled_insn): Change to rtx_insn *.
19130 (divide_cnt, vec_load_pendulum): New variables.
19131 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
19132 (rs6000_issue_rate): Set issue rate for Power9.
19133 (is_power9_pairable_vec_type): New.
19134 (power9_sched_reorder2): New.
19135 (rs6000_sched_reorder2): Call new function for Power9 specific
19136 reordering.
19137 (insn_must_be_first_in_group): Remove Power9.
19138 (insn_must_be_last_in_group): Likewise.
19139 (force_new_group): Likewise.
19140 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
19141 Initialize divide_cnt/vec_load_pendulum.
19142 (_rs6000_sched_context, rs6000_init_sched_context,
19143 rs6000_set_sched_context): Handle context save/restore of new
19144 variables.
19145
19146 2016-06-28 Richard Biener <rguenther@suse.de>
19147
19148 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
19149 Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
19150 COMPONENT_REF operand.
19151 (nonoverlapping_component_refs_p): Likewise.
19152 * stor-layout.c (start_bitfield_representative): Mark
19153 DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
19154
19155 2016-06-28 Jakub Jelinek <jakub@redhat.com>
19156
19157 * Makefile.in: Don't cat ../stage_current if it does not exist.
19158
19159 * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
19160 last argument is a bit-field.
19161
19162 PR rtl-optimization/71673
19163 * internal-fn.c (expand_arith_overflow_result_store): Use
19164 OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
19165 expand_simple_binop.
19166
19167 PR middle-end/66867
19168 * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
19169 expand_ifn_atomic_compare_exchange): New functions.
19170 * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
19171 * tree.h (build_call_expr_internal_loc): Rename to ...
19172 (build_call_expr_internal_loc_array): ... this. Fix up type of
19173 last argument.
19174 * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
19175 * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
19176 ATOMIC_COMPARE_EXCHANGE result.
19177 * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
19178 * gimple-fold.h (optimize_atomic_compare_exchange_p,
19179 fold_builtin_atomic_compare_exchange): New prototypes.
19180 * gimple-fold.c (optimize_atomic_compare_exchange_p,
19181 fold_builtin_atomic_compare_exchange): New functions..
19182 * tree-ssa.c (execute_update_addresses_taken): If
19183 optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
19184 of call when finding addressable vars, and if such var becomes
19185 non-addressable, call fold_builtin_atomic_compare_exchange.
19186
19187 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
19188
19189 PR target/71670
19190 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
19191 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
19192
19193 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
19194
19195 * config/rs6000/rs6000.md ('type' attribute): Add
19196 veclogical,veccmpfx,vecexts,vecmove insn types.
19197 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
19198 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
19199 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
19200 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
19201 *nabs<mode>2_hw): Change type to vecmove.
19202 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
19203 *boolcc<mode>3_internal, *eqv<mode>3_internal,
19204 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
19205 *ieee_128bit_vsx_abs<mode>2_internal,
19206 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
19207 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
19208 *ieee128_mtvsrd_32bit): Change type to veclogical.
19209 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
19210 *movdi_internal32, *movdi_internal64): Update insn types.
19211 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
19212 vsx_extract_<mode>): Change type to veclogical.
19213 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
19214 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
19215 *vsx_sign_extend_si_v2di): Change type to vecexts.
19216 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
19217 type to veclogical.
19218 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
19219 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
19220 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
19221 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
19222 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
19223 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
19224 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
19225 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
19226 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
19227 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
19228 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
19229 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
19230 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
19231 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
19232 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
19233 (ppc7450-vecsimple): Add veclogical, vecmove.
19234 (ppc7450-veccmp): Add veccmpfx.
19235 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
19236 vecmove.
19237 (ppc8540_vector_compare): Add veccmpfx.
19238 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
19239 * config/rs6000/cell.md (cell-fp): Add fpsimple.
19240 (cell-vecsimple): Add veclogical, vecmove.
19241 (cell-veccmp): Add veccmpfx.
19242 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
19243 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
19244 veccmpfx.
19245 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
19246 * config/rs6000/power4.md (power4-fp): Add fpsimple.
19247 (power4-vecsimple): Add veclogical, vecmove.
19248 (power4-veccmp): Add veccmpfx.
19249 * config/rs6000/power5.md (power5-fp): Add fpsimple.
19250 * config/rs6000/power6.md (power6-fp): Add fpsimple.
19251 (power6-vecsimple): Add veclogical, vecmove.
19252 (power6-veccmp): Add veccmpfx.
19253 * config/rs6000/power7.md (power7-fp): Add fpsimple.
19254 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
19255 * config/rs6000/power8.md (power8-fp): Add fpsimple.
19256 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
19257 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
19258 * config/rs6000/titan.md (titan_fp): Add fpsimple.
19259 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
19260 fpsimple.
19261 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
19262
19263 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
19264
19265 PR target/71656
19266 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
19267 OPTION_MASK_P9_DFORM_VECTOR.
19268 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
19269 disable -mpower9-dform-vector when using reload.
19270 (quad_address_p): Remove 'gpr_p' argument and all associated code.
19271 New 'strict' argument. Update all callers. Add strict addressing
19272 support.
19273 (rs6000_legitimate_offset_address_p): Remove call to
19274 virtual_stack_registers_memory_p.
19275 (rs6000_legitimize_reload_address): Add quad address support.
19276 (rs6000_legitimate_address_p): Move call to quad_address_p above
19277 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
19278 to account for new strict usage.
19279 (rs6000_output_move_128bit): Adjust quad_address_p args to account
19280 for new strict usage.
19281 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
19282
19283 2016-06-26 Uros Bizjak <ubizjak@gmail.com>
19284
19285 PR target/70902
19286 PR target/71453
19287 PR target/71555
19288 PR target/71596
19289 PR target/71657
19290 * config/i386/i386.c (ix86_spill_class): Disable condition to
19291 always return NO_REGS.
19292
19293 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
19294
19295 * predict.c: Include gimple-pretty-print.h
19296 (predicted_by_loop_heuristics_p): Check also
19297 PRED_LOOP_EXIT_WITH_RECURSION
19298 (predict_loops): Find self recursive calls and use special purpose
19299 predictors for them; dump log about decisions.
19300 (pass_profile::execute): Dump info about #of iterations.
19301 * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
19302 (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
19303
19304 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
19305
19306 * config/pa/pa.c (pa_output_indirect_call): Rework to combine
19307 output_asm_insn calls and shorten long lines. Output .CALL
19308 argument descriptor using pa_output_arg_descriptor. Add various
19309 inline $$dyncall and other optimizations.
19310 (pa_attr_length_indirect_call): Adjust ordering and lengths.
19311
19312 2016-06-25 Jakub Jelinek <jakub@redhat.com>
19313
19314 PR tree-optimization/71643
19315 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
19316 EH preds.
19317
19318 * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
19319 leak a bitmap if dep_bb is NULL.
19320
19321 PR tree-optimization/71631
19322 * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
19323 to rewrite_expr_tree even if negate_result, move new_lhs var
19324 declaration and initialization earlier, for powi_result set afterwards
19325 new_lhs to lhs. For negate_result, use new_lhs instead of tmp
19326 if new_lhs != lhs, and don't shadow gsi var.
19327
19328 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
19329
19330 * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
19331 Add in_loop parameter.
19332 (predict_loops): Add loop guard heuristics.
19333 * predict.def (PRED_LOOP_GUARD): New heuristics.
19334
19335 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
19336
19337 * predict.c: Include ipa-utils.h
19338 (tree_bb_level_prediction): Predict recursive calls.
19339 (tree_estimate_probability_bb): Skip inexpensive calls for call
19340 predictor.
19341 * predict.def (PRED_RECURSIVE_CALL): New.
19342
19343 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19344
19345 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
19346 (BU_FLOAT128_1): Likewise.
19347 (FABSQ): Likewise.
19348 (COPYSIGNQ): Likewise.
19349 (RS6000_BUILTIN_NANQ): Likewise.
19350 (RS6000_BUILTIN_NANSQ): Likewise.
19351 (RS6000_BUILTIN_INFQ): Likewise.
19352 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
19353 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
19354 (TARGET_FOLD_BUILTIN): New #define.
19355 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
19356 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
19357 (rs6000_fold_builtin): New target hook implementation, handling
19358 folding of 128-bit NaNs and infinities.
19359 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
19360 entries are filled in to avoid problems during bootstrap
19361 self-test; define builtins for 128-bit NaNs and infinities.
19362 (rs6000_opt_mask): Add entry for float128.
19363 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
19364 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
19365 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
19366 (const_str_type_node): New #define.
19367 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
19368 to a define_expand that dispatches to either copysign<mode>3_soft
19369 or copysign<mode>3_hard.
19370 (copysign<mode>3_hard): Rename from copysign<mode>3.
19371 (copysign<mode>3_soft): New define_insn.
19372 * doc/extend.texi: Document new builtins.
19373
19374 2016-06-24 Jakub Jelinek <jakub@redhat.com>
19375
19376 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
19377 PRIu64 instead of lu.
19378
19379 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
19380
19381 PR debug/71642
19382 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
19383 copy the type name.
19384
19385 2016-06-24 Jakub Jelinek <jakub@redhat.com>
19386
19387 PR tree-optimization/71647
19388 * omp-low.c (lower_rec_input_clauses): Convert
19389 omp_clause_aligned_alignment (c) to size_type_node for the
19390 last argument of __builtin_assume_aligned.
19391
19392 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
19393
19394 * configure.ac (calling ___tls_get_addr via GOT): New
19395 assembler/linker check.
19396 (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New. Defined to 1 if 32-bit
19397 assembler and linker supports calling ___tls_get_addr via GOT.
19398 Otherise, defined to 0.
19399 * config.in: Regenerated.
19400 * configure: Likewise.
19401 * config/i386/constraints.md (Yb): New constraint.
19402 * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
19403 (REG_CLASS_NAMES): Likewise.
19404 (REG_CLASS_CONTENTS): Likewise.
19405 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
19406 the b constraint with the Yb constraint. Call ___tls_get_addr
19407 via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
19408 is 1.
19409 (*tls_local_dynamic_base_32_gnu): Likewise.
19410 (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
19411 GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
19412 (*tls_local_dynamic_base_64_<mode>): Likewise.
19413
19414 2016-06-24 Martin Liska <mliska@suse.cz>
19415
19416 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
19417 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
19418 few functions.
19419 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
19420 argument to true if the expected number of iterations is
19421 loop-based.
19422
19423 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
19424
19425 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
19426 assemble for 32bit target.
19427 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
19428 and $ld_ix86_gld_32_opt to link for 32bit target.
19429 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
19430 * configure: Regenerate.
19431
19432 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19433
19434 * config/arm/arm.c (int_log2): Delete definition and prototype.
19435 (shift_op): Use exact_log2 instead of int_log2.
19436 (vfp3_const_double_for_fract_bits): Likewise.
19437
19438 2016-06-24 Jakub Jelinek <jakub@redhat.com>
19439
19440 * internal-fn.c (expand_arith_set_overflow): New function.
19441 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
19442 Use it.
19443 (expand_arith_overflow_result_store): Likewise. Handle precision
19444 smaller than mode precision.
19445 * tree-vrp.c (extract_range_basic): For imag part, handle
19446 properly signed 1-bit precision result.
19447 * doc/extend.texi (__builtin_add_overflow): Document that last
19448 argument can't be pointer to enumerated or boolean type.
19449 (__builtin_add_overflow_p): Document that last argument can't
19450 have enumerated or boolean type.
19451
19452 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
19453 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19454
19455 * config/rs6000/predicates.md (splat_input_operand): Rework.
19456 Don't allow constants, since the insns that use this predicate
19457 don't support constants. Constants are handled by other insns
19458 that are created via combine. During and after register
19459 allocation, only allow indexed or indirect addresses, and not
19460 general addresses. Only allow modes supported by the hardware.
19461 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
19462 comment. Move check for using VSPLTIS<x> to a common location,
19463 instead of doing it in two different places.
19464
19465 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
19466
19467 * config/i386/driver-i386.c (host_detect_local_cpu): Set
19468 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
19469 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
19470 signature_CENTAUR_ebx.
19471
19472 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
19473
19474 PR target/66232
19475 PR target/67400
19476 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
19477 (as_ix86_gas_32_opt): This.
19478 (ld_ix86_tls_ldm_opt): Renamed to ...
19479 (ld_ix86_gld_32_opt): This.
19480 (R_386_TLS_LDM reloc): Updated.
19481 (R_386_GOT32X reloc): New assembler/linker check.
19482 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
19483 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
19484 defined to 0.
19485 * config.in: Regenerated.
19486 * configure: Likewise.
19487 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
19488 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
19489 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
19490 if ix86_force_load_from_GOT_p returns true.
19491 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
19492 ix86_force_load_from_GOT_p returns true.
19493 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
19494 the external function address via the GOT slot.
19495 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
19496 HAVE_AS_IX86_GOT32X before returning false.
19497 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
19498 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
19499
19500 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
19501
19502 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
19503
19504 2016-06-23 Andi Kleen <ak@linux.intel.com>
19505
19506 * Makefile.in: Regenerate.
19507 * doc/install.texi: Document autoprofiledbootstrap.
19508
19509 2016-06-23 Andi Kleen <ak@linux.intel.com>
19510
19511 * config/i386/gcc-auto-profile: New file.
19512
19513 2016-06-23 Martin Liska <mliska@suse.cz>
19514
19515 PR middle-end/71619
19516 * predict.c (predict_loops): Revert the hunk that was removed
19517 in r237103.
19518
19519 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
19520
19521 * config.gcc: Add support for arm*-*-phoenix* targets.
19522 * config/arm/t-phoenix: New.
19523 * config/phoenix.h: New.
19524
19525 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
19526 H.J. Lu <hongjiu.lu@intel.com>
19527
19528 PR target/67400
19529 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
19530 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
19531 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
19532 ix86_force_load_from_GOT_p returns true.
19533 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
19534 ix86_force_load_from_GOT_p returns true.
19535 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
19536 ix86_force_load_from_GOT_p returns true.
19537 (ix86_expand_move): Load the external function address via the
19538 GOT slot if ix86_force_load_from_GOT_p returns true.
19539 * config/i386/predicates.md (x86_64_immediate_operand): Return
19540 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
19541 (x86_64_zext_immediate_operand): Ditto.
19542
19543 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
19544
19545 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
19546
19547 2016-06-22 David Malcolm <dmalcolm@redhat.com>
19548
19549 PR c/70339
19550 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
19551 * diagnostic.c (pedwarn_at_rich_loc): New function.
19552 * spellcheck.h (best_match::best_match): Add a
19553 "best_distance_so_far" optional parameter.
19554 (best_match::set_best_so_far): New method.
19555 (best_match::get_best_distance): New accessor.
19556 (best_match::get_best_candidate_length): New accessor.
19557
19558 2016-06-22 Nick Clifton <nickc@redhat.com>
19559
19560 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
19561 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
19562 modes are accepted as well.
19563 (ucompare_loc_descriptor): Likewise.
19564 (minmax_loc_descriptor): Likewise.
19565 (clz_loc_descriptor): Likewise.
19566 (popcount_loc_descriptor): Likewise.
19567 (bswap_loc_descriptor): Likewise.
19568 (rotate_loc_descriptor): Likewise.
19569 (mem_loc_descriptor): Likewise.
19570 (loc_descriptor): Likewise.
19571
19572 2016-06-22 David Malcolm <dmalcolm@redhat.com>
19573
19574 * common.opt (fdiagnostics-parseable-fixits): New option.
19575 * diagnostic.c: Include "selftest.h".
19576 (print_escaped_string): New function.
19577 (print_parseable_fixits): New function.
19578 (diagnostic_report_diagnostic): Call print_parseable_fixits.
19579 (selftest::assert_print_escaped_string): New function.
19580 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
19581 (selftest::test_print_escaped_string): New function.
19582 (selftest::test_print_parseable_fixits_none): New function.
19583 (selftest::test_print_parseable_fixits_insert): New function.
19584 (selftest::test_print_parseable_fixits_remove): New function.
19585 (selftest::test_print_parseable_fixits_replace): New function.
19586 (selftest::diagnostic_c_tests): New function.
19587 * diagnostic.h (struct diagnostic_context): Add field
19588 "parseable_fixits_p".
19589 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
19590 -fdiagnostics-parseable-fixits.
19591 (-fdiagnostics-parseable-fixits): New option.
19592 * opts.c (common_handle_option): Handle
19593 -fdiagnostics-parseable-fixits.
19594 * selftest-run-tests.c (selftest::run_tests): Call
19595 selftest::diagnostic_c_tests.
19596 * selftest.h (selftest::diagnostic_c_tests): New prototype.
19597
19598 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
19599
19600 PR tree-optimization/71488
19601 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
19602 comparison of boolean vectors.
19603 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
19604 of boolean vectors using bitwise operations.
19605
19606 2016-06-22 Andreas Schwab <schwab@suse.de>
19607
19608 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
19609 Remove declaration.
19610
19611 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
19612
19613 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
19614
19615 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
19616
19617 * config/i386/i386.c (print_reg): Emit an error message on attempt to
19618 print FLAGS_REG.
19619
19620 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19621
19622 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
19623 * config/arm/arm-cores.def (cortex-a73): New entry.
19624 (cortex-a73.cortex-a35): Likewise.
19625 (cortex-a73.cortex-a53): Likewise.
19626 * config/arm/arm-tables.opt: Regenerate.
19627 * config/arm/arm-tune.md: Likewise.
19628 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
19629 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
19630 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
19631 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
19632 * doc/invoke.texi (ARM Options): Document cortex-a73,
19633 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
19634
19635 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19636
19637 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
19638 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
19639 (cortex-a73.cortex-a35): Likewise.
19640 (cortex-a73.cortex-a53): Likewise.
19641 * config/aarch64/aarch64-tune.md: Regenerate.
19642 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
19643 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
19644 -mcpu and -mtune.
19645
19646 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19647
19648 * configure.ac (gcc_cv_as_compress_debug): Remove
19649 --compress-debug-sections as extra as switch.
19650 Handle gas --compress-debug-sections=type.
19651 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
19652 Handle gld --compress-debug-sections=type.
19653 * configure: Regenerate.
19654
19655 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
19656
19657 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
19658
19659 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
19660
19661 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
19662 (do_rewrite): likewise.
19663
19664 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19665
19666 * common/config/mep/mep-common.c: Remove.
19667 * config.gcc: Remove mep-* support.
19668 * config/mep/constraints.md: Remove.
19669 * config/mep/default.h: Remove.
19670 * config/mep/intrinsics.h: Remove.
19671 * config/mep/intrinsics.md: Remove.
19672 * config/mep/ivc2-template.h: Remove.
19673 * config/mep/mep-c5.cpu: Remove.
19674 * config/mep/mep-core.cpu: Remove.
19675 * config/mep/mep-default.cpu: Remove.
19676 * config/mep/mep-ext-cop.cpu: Remove.
19677 * config/mep/mep-intrin.h: Remove.
19678 * config/mep/mep-ivc2.cpu: Remove.
19679 * config/mep/mep-pragma.c: Remove.
19680 * config/mep/mep-protos.h: Remove.
19681 * config/mep/mep.c: Remove.
19682 * config/mep/mep.cpu: Remove.
19683 * config/mep/mep.h: Remove.
19684 * config/mep/mep.md: Remove.
19685 * config/mep/mep.opt: Remove.
19686 * config/mep/predicates.md: Remove.
19687 * config/mep/t-mep: Remove.
19688 * doc/install.texi: Remove mep-* documentation.
19689 * doc/md.texi: Likewise.
19690
19691 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19692
19693 * config.gcc: Remove support for avr-rtems.
19694 * config/avr/gen-avr-mmcu-specs.c: Likewise.
19695 * config/avr/rtems.h: Remove.
19696 * config/avr/t-rtems: Remove.
19697
19698 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19699
19700 * config.gcc: Remove m32r-rtems support.
19701 * config/m32r/rtems.h: Remove.
19702
19703 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19704
19705 * config.gcc: Remove h8300-rtems support.
19706 * config/h8300/rtems.h: Remove.
19707 * config/h8300/t-rtems: Remove.
19708
19709 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19710
19711 * config.gcc: Remove support for knetbsd.
19712 * configure.ac: Likewise.
19713 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
19714 * config/knetbsd-gnu.h: Remove.
19715 * configure: Regenerate.
19716
19717 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19718
19719 * config.gcc: Remove support for openbsd 2 and 3.
19720 * config/openbsd-oldgas.h: Remove.
19721
19722 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19723
19724 * config.gcc: Remove interix support.
19725 * config/i386/i386-interix.h: Remove.
19726 * config/i386/interix.opt: Remove.
19727 * config/i386/t-interix: Remove.
19728 * configure: Regenerate.
19729 * configure.ac: Remove interix support.
19730 * doc/install.texi: Remove interix documentation.
19731
19732 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
19733
19734 * config/rs6000/rs6000.h: Add conditional preprocessing directives
19735 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
19736 not defined.
19737
19738 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
19739
19740 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
19741 they are both PLACEHOLDER_EXPRs.
19742
19743 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
19744
19745 * stor-layout.c (layout_type): Move setting complex MODE to
19746 layout_type, instead of setting it ahead of time by the caller.
19747 * tree.c (build_complex_type): Likewise.
19748
19749 2016-06-21 Martin Liska <mliska@suse.cz>
19750
19751 * predict.c (force_edge_cold): Replace imposisble with
19752 impossible.
19753
19754 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
19755
19756 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
19757 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
19758
19759 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
19760
19761 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
19762
19763 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
19764 Ilya Enkovich <ilya.enkovich@intel.com>
19765
19766 PR target/71549
19767 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
19768 New member function to convert V1TImode register to SUBREG
19769 TImode in debug insn.
19770 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
19771 after changing register mode to V1TImode.
19772
19773 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
19774
19775 * config/aarch64/aarch64-cores.def (vulcan): New core.
19776 * config/aarch64/aarch64-tune.md: Regenerate.
19777 * doc/invoke.texi: Document vulcan as an available option.
19778
19779 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
19780
19781 * cse.c (canon_asm_operands): New function extracted from...
19782 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
19783 either standalone or member of a PARALLEL.
19784
19785 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
19786
19787 PR target/30417
19788 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
19789 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
19790 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
19791
19792 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
19793
19794 PR target/71103
19795 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
19796 constant addresses if can_create_pseudo_p.
19797
19798 2016-06-21 Jakub Jelinek <jakub@redhat.com>
19799
19800 PR tree-optimization/71588
19801 * tree-ssa-strlen.c (valid_builtin_call): New function.
19802 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
19803 it.
19804
19805 2016-06-20 Jakub Jelinek <jakub@redhat.com>
19806
19807 PR middle-end/71581
19808 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
19809 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
19810 for conversion of scalar user var to complex type and use the
19811 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
19812 punt.
19813
19814 PR rtl-optimization/71591
19815 * toplev.c (toplev::run_self_tests): If no_backend, complain and
19816 don't run any tests.
19817
19818 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
19819
19820 PR target/71571
19821 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
19822 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
19823 space for PIC with non-v32 and the common non-PIC "jump".
19824
19825 2016-06-20 Jakub Jelinek <jakub@redhat.com>
19826
19827 PR target/71559
19828 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
19829 returned values and add UN*/LTGT/*ORDERED cases with values matching
19830 D operand modifier on vcmp for AVX.
19831
19832 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
19833
19834 * config/aarch64/aarch64.opt
19835 (mpc-relative-literal-loads): Rename internal option name.
19836 * config/aarch64/aarch64.c
19837 (aarch64_nopcrelative_literal_loads): Rename to
19838 aarch64_pcrelative_literal_loads.
19839 (aarch64_expand_mov_immediate): Likewise.
19840 (aarch64_secondary_reload): Likewise.
19841 (aarch64_can_use_per_function_literal_pools_p): Likewise.
19842 (aarch64_override_options_after_change_1): Rename and simplify logic.
19843 (aarch64_classify_symbol): Merge large model checks into switch,
19844 remove pc-relative load check.
19845
19846 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
19847
19848 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
19849 costs relative to the cost of a register move.
19850
19851 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
19852
19853 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
19854 (vcvt_n_f64_u64): Likewise.
19855 (vcvt_n_s64_f64): Likewise.
19856 (vcvt_n_u64_f64): Likewise.
19857 (vcvt_f64_s64): Likewise.
19858 (vrecpe_f64): Likewise.
19859 (vcvt_f64_u64): Likewise.
19860 (vrecps_f64): Likewise.
19861
19862 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
19863
19864 * config/aarch64/aarch64.md
19865 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
19866 iterators.
19867 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
19868 attributes.
19869 * config/aarch64/aarch64-builtins.c
19870 (aarch64_types_binop_uss_qualifiers): Delete.
19871 (TYPES_BINOP_USS): Likewise.
19872 (aarch64_types_binop_sus_qualifiers): Likewise.
19873 (TYPES_BINOP_SUS): Likewise.
19874 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
19875 (TYPES_FCVTIMM_SUS): Likewise.
19876 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
19877 rather than BINOP.
19878 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
19879 (fcvtzs): Use SHIFTIMM rather than BINOP.
19880 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
19881
19882 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
19883
19884 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
19885 costs relative to the cost of a register move.
19886
19887 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
19888
19889 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
19890 Allow scalar/single vector modes to be tieable.
19891
19892 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
19893
19894 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
19895
19896 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19897
19898 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
19899 "alignement".
19900 * tree.h (TYPE_ALIGN): Likewise.
19901
19902 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
19903
19904 PR target/71103
19905 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
19906
19907 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
19908
19909 * config/avr/avr.c (avr_print_operand): Fix "format not a string
19910 literal" build warnings.
19911 (avr_print_operand_address): Dito.
19912
19913 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
19914
19915 PR target/71375
19916 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
19917 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
19918
19919 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
19920
19921 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
19922
19923 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
19924
19925 PR bootstrap/71435
19926 * reload1.c (reload): Pass 0 to finish_spills when called because
19927 update_eliminables_and_spill returns true and remove did_spill.
19928 (finish_spills): Adjust comment and document GLOBAL parameter.
19929
19930 2016-06-17 DJ Delorie <dj@redhat.com>
19931
19932 PR target/71338
19933 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
19934 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
19935 (umulqihi3_virt): Likewise.
19936 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
19937 (umulqihi3_real): Likewise.
19938
19939 2016-06-17 Martin Liska <mliska@suse.cz>
19940
19941 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
19942
19943 2016-06-17 Martin Liska <mliska@suse.cz>
19944
19945 * predict.def: PRED_LOOP_EXIT from 92 to 85.
19946
19947 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
19948
19949 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
19950 __FAST_MATH__.
19951 (vaddq_f32): Likewise.
19952 (vmul_f32): Likewise.
19953 (vmulq_f32): Likewise.
19954 (vsub_f32): Likewise.
19955 (vsubq_f32): Likewise.
19956
19957 2016-06-17 Bin Cheng <bin.cheng@arm.com>
19958
19959 PR tree-optimization/71347
19960 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
19961 cost for all uses in group.
19962
19963 2016-06-17 Bin Cheng <bin.cheng@arm.com>
19964
19965 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
19966 insert gimple seq if it's not empty.
19967
19968 2016-06-17 Bin Cheng <bin.cheng@arm.com>
19969
19970 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
19971 member OFFSET.
19972 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
19973 rather than OFFSET.
19974 (comp_dr_with_seg_len_pair): Ditto.
19975 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
19976 struct dr_with_seg_len_pair against DR_OFFSET.
19977 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
19978 DR_OFFSET directly.
19979
19980 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
19981
19982 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
19983
19984 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
19985
19986 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
19987 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
19988 (pa_output_millicode_call): Likewise.
19989 (pa_output_call): Likewise.
19990 (pa_output_indirect_call): Likewise.
19991 (pa_asm_output_mi_thunk): Likewise.
19992
19993 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19994
19995 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
19996
19997 2016-06-16 Martin Liska <mliska@suse.cz>
19998
19999 * predict.c (combine_predictions_for_insn): When we find a first
20000 match predictor, we should consider just predictors with
20001 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
20002 DS theory predictor.
20003 (combine_predictions_for_bb): Likewise.
20004
20005 2016-06-16 Jakub Jelinek <jakub@redhat.com>
20006
20007 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
20008 with base of reference to struct.
20009
20010 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
20011
20012 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
20013
20014 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
20015
20016 PR target/71151
20017 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
20018 progmem_swtable_section.
20019 (progmem_swtable_section): Remove.
20020 (avr_asm_function_rodata_section): Remove.
20021 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
20022 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
20023
20024 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
20025
20026 * config/i386/driver-i386.c (host_detect_local_cpu): Set
20027 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
20028 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
20029 signature_CENTAUR_ebx.
20030 * config/i386/i386.c (ix86_option_override_internal): Add
20031 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
20032 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
20033 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
20034
20035 2016-06-16 Martin Liska <mliska@suse.cz>
20036
20037 * predict.def: Add fortran loop preheader predictor.
20038 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
20039 fold IFN_BUILTIN_EXPECT with a known constant argument.
20040
20041 2016-06-16 Martin Liska <mliska@suse.cz>
20042
20043 * predict.def: Add 'Fortran' to display text of all
20044 PRED_FORTRAN_* predictors.
20045
20046 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
20047
20048 PR target/71242
20049 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
20050 [IA64_BUILTIN_NANSQ]: Ditto.
20051 (ia64_fold_builtin): New function.
20052 (TARGET_FOLD_BUILTIN): New define.
20053 (ia64_init_builtins) Declare const_string_type node.
20054 Add __builtin_nanq and __builtin_nansq builtin functions.
20055 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
20056
20057 2016-06-16 Nick Clifton <nickc@redhat.com>
20058
20059 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
20060 MSP430_HWMULT_ prefix to enum values.
20061 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
20062 * config/msp430/msp430.c: Update use of enum values.
20063 * config/msp430/msp430.md: Likewise.
20064 * config/msp430/msp430.opt: Likewise.
20065
20066 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
20067
20068 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
20069 of comparsions in the last iteration.
20070
20071 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
20072 Joern Rennecke <joern.rennecke@embecosm.com>
20073
20074 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
20075 addresses.
20076 (arc_needs_pcl_p): Add GOTOFFPC.
20077 (arc_legitimate_pic_addr_p): Likewise.
20078 (arc_output_pic_addr_const): Likewise.
20079 (arc_legitimize_pic_address): Generate a pc-relative address using
20080 GOTOFFPC.
20081 (arc_output_libcall): Use @pcl syntax.
20082 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
20083 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
20084 (*movsi_insn): Use @pcl syntax.
20085 (doloop_begin_i): Likewise.
20086
20087 2016-06-16 Martin Liska <mliska@suse.cz>
20088
20089 * predict.def: Define a new predictor.
20090
20091 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
20092
20093 * config/arc/arc.opt (mtp-regno): Update text.
20094
20095 2016-06-16 Renlin Li <renlin.li@arm.com>
20096
20097 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
20098
20099 2016-06-16 Jakub Jelinek <jakub@redhat.com>
20100
20101 PR target/71554
20102 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
20103 (setcc + and peephole2): Likewise.
20104
20105 PR rtl-optimization/71532
20106 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
20107 memory slots.
20108
20109 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
20110
20111 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
20112 DImode constants with XXSPLTIB in vector registers.
20113 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
20114 vsx_extract_<mode>_internal{1,2} into a single insn that handles
20115 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
20116 extraction of the element at the top of the register as a scalar
20117 value.
20118 (vsx_extract_<mode>_internal1): Likewise.
20119 (vsx_extract_<mode>_internal2): Likewise.
20120 * config/rs6000/constraints.md (wi constraint): Remove a comment
20121 about DImode not being allowed in Altivec registers.
20122 (wB constraint): New constraint for constants that can be
20123 generated in Altivec registers with VSPLTISW/VUPKHSW.
20124 * config/rs6000/predicates.md (xxspltib_constant_split): Update
20125 comments.
20126 (xxspltib_constant_nosplit): Likewise.
20127 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
20128 support for -mupper-regs-di to enable DImode to go into Altivec
20129 registers.
20130 (POWERPC_MASKS): Likewise.
20131 (power7 cpu): Likewise.
20132 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
20133 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
20134 for DImode being allowed in Altivec registers. Update wi/wj
20135 constraints. Set scalar_in_vmx_p flag.
20136 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
20137 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
20138 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
20139 (rs6000_opt_masks): Add -mupper-regs-di.
20140 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
20141 direct move to use wi and not wj.
20142 (lfiwzx): Likewise.
20143 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
20144 alternative.
20145 (floatunssi<mode>2_lfiwzx_mem): Likewise.
20146 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
20147 any VSX register, instead of just Altivec registers, to allow
20148 either operand to be an Altivec register or both.
20149 (fixuns_trunc<mode>di2_fctiduz): Likewise.
20150 (movdi_internal32): Add support for -mupper-regs-di. Add support
20151 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
20152 the alternatives and attributes to be lined up to be easier to
20153 read.
20154 (movdi_internal64): Likewise.
20155 (64-bit DImode splitters): Change predicates to only split loading
20156 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
20157 load constants in ISA 3.0 or ISA 2.07 respectively.
20158 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
20159 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
20160 mention -mcpu=power9 sets these options.
20161 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
20162 wB constraint.
20163
20164 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
20165
20166 PR target/67353
20167 * config/avr/avr.c (avr_set_current_function): Warn misspelled
20168 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
20169 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
20170 by default to warn misspelled interrupt/ signal handler.
20171 * doc/invoke.texi (AVR Options): Document it. Update description
20172 for -nodevicelib option.
20173
20174 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20175
20176 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
20177 up parentheses. Use GET_MODE_UNIT_BITSIZE.
20178 (aarch64_<sur>shll2_n<mode>): Likewise.
20179
20180 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
20181
20182 PR middle-end/71529
20183 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
20184 DECL_CONTEXT for copied arguments.
20185
20186 2016-06-15 Alan Hayward <alan.hayward@arm.com>
20187
20188 PR tree-optimization/71483
20189 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
20190 for slp
20191
20192 2016-06-15 Martin Liska <mliska@suse.cz>
20193
20194 * predict.c (tree_predict_by_opcode): Call predict_edge_def
20195 instead of predict_edge w/o a probability.
20196
20197 2016-06-15 Alan Hayward <alan.hayward@arm.com>
20198
20199 PR tree-optimization/71439
20200 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
20201 live PHIs.
20202
20203 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20204
20205 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
20206 register subregs in SET_SRC.
20207
20208 2016-06-15 Richard Biener <rguenther@suse.de>
20209
20210 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
20211 store restrictions.
20212
20213 2016-06-15 Richard Biener <rguenther@suse.de>
20214
20215 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
20216 not consider dependences between accesses that belong to the
20217 same group.
20218 (vect_analyze_data_ref_dependences): Do not analyze read-read
20219 or self-dependences.
20220
20221 2016-06-14 David Malcolm <dmalcolm@redhat.com>
20222
20223 * spellcheck-tree.c: Include spellcheck-tree.h rather than
20224 spellcheck.h.
20225 (find_closest_identifier): Reimplement in terms of
20226 best_match<tree,tree>.
20227 * spellcheck-tree.h: New file.
20228 * spellcheck.c (struct edit_distance_traits<const char *>): New
20229 struct.
20230 (find_closest_string): Reimplement in terms of
20231 best_match<const char *, const char *>.
20232 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
20233 overload to spellcheck-tree.h.
20234 (find_closest_identifier): Likewise.
20235 (struct edit_distance_traits<T>): New template.
20236 (class best_match): New class.
20237
20238 2016-06-14 David Malcolm <dmalcolm@redhat.com>
20239
20240 * selftest-run-tests.c (selftest::run_tests): Call
20241 selftest::spellcheck_tree_c_tests.
20242 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
20243 * spellcheck-tree.c: Include selftest.h and stringpool.h.
20244 (selftest::test_find_closest_identifier): New function.
20245 (selftest::spellcheck_tree_c_tests): New function.
20246 * spellcheck.c (selftest::test_find_closest_string): Verify that
20247 the order of the vec does not affect the results for this case.
20248 (selftest::test_data): New array.
20249 (selftest::test_metric_conditions): New function.
20250 (selftest::spellcheck_c_tests): Add a test of case-comparison.
20251 Call selftest::test_metric_conditions.
20252
20253 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20254
20255 * config/rs6000/rs6000-builtin.def (commentary): Typo.
20256 (BU_P9_MISC_1): Likewise.
20257 (BU_P9_64BIT_MISC_0): Likewise.
20258 (BU_P9_MISC_0): Likewise.
20259
20260 2016-06-14 David Malcolm <dmalcolm@redhat.com>
20261
20262 * gcc-rich-location.c
20263 (gcc_rich_location::add_fixit_misspelled_id): New method.
20264 * gcc-rich-location.h
20265 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
20266
20267 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
20268
20269 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
20270 FreeBSD 11 and above.
20271
20272 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
20273
20274 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
20275
20276 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20277
20278 * expmed.h: Close parenthesis in "at your option" in copyright
20279 boilerplate.
20280 * lower-subreg.h: Likewise.
20281
20282 2016-06-14 Richard Biener <rguenther@suse.de>
20283
20284 PR middle-end/71526
20285 * genmatch.c (expr::gen_transform): Use in_type for comparisons
20286 if available.
20287
20288 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20289
20290 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
20291 New function.
20292 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
20293 mask+shift version.
20294 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
20295 New prototype.
20296 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
20297 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
20298
20299 2016-06-14 Richard Biener <rguenther@suse.de>
20300
20301 PR tree-optimization/71522
20302 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
20303 copying into float copying.
20304
20305 2016-06-14 Jakub Jelinek <jakub@redhat.com>
20306
20307 PR tree-optimization/71520
20308 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
20309 (replace_block_by): Move user labels from bb1 to bb2.
20310
20311 2016-06-14 Richard Biener <rguenther@suse.de>
20312
20313 PR middle-end/71310
20314 PR bootstrap/71510
20315 * expr.h (get_bit_range): Declare.
20316 * expr.c (get_bit_range): Export.
20317 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
20318 word_mode again to constrain the bitfield access.
20319
20320 2016-06-14 Richard Biener <rguenther@suse.de>
20321
20322 PR tree-optimization/71521
20323 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
20324 division int_const_binop against zero divisor.
20325
20326 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
20327
20328 * config/i386/i386.md (signbittf2): New expander.
20329 * config/i386/sse.md (ptesttf2): New insn pattern.
20330
20331 2016-06-13 David Malcolm <dmalcolm@redhat.com>
20332
20333 PR bootstrap/71481
20334 * input.c (selftest::test_reading_source_line): Avoid reading from
20335 __FILE__ by creating a tempfile with known content and reading
20336 from that instead.
20337
20338 2016-06-13 David Malcolm <dmalcolm@redhat.com>
20339
20340 * pretty-print.c (assert_pp_format_colored): Skip the test if
20341 GCC_COLORS is set.
20342 (test_pp_format): Remove comment about GCC_COLORS.
20343
20344 2016-06-13 David Malcolm <dmalcolm@redhat.com>
20345
20346 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
20347 * pretty-print.c (assert_pp_format_va): Add location param and use
20348 it with ASSERT_STREQ_AT.
20349 (assert_pp_format): Add location param and pass it to
20350 assert_pp_format_va.
20351 (assert_pp_format_colored): Likewise.
20352 (ASSERT_PP_FORMAT_1): New.
20353 (ASSERT_PP_FORMAT_2): New.
20354 (ASSERT_PP_FORMAT_3): New.
20355 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
20356 explicitly, or implicitly via the above macros.
20357 * selftest.c (selftest::pass): Use a selftest::location rather
20358 than file and line.
20359 (selftest::fail): Likewise. Print the function name.
20360 (selftest::fail_formatted): Likewise.
20361 (selftest::assert_streq): Use a selftest::location rather than
20362 file and line.
20363 * selftest.h (selftest::location): New struct.
20364 (SELFTEST_LOCATION): New macro.
20365 (selftest::pass): Accept a const location & rather than file
20366 and line.
20367 (selftest::fail): Likewise.
20368 (selftest::fail_formatted): Likewise.
20369 (selftest::assert_streq): Likewise.
20370 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
20371 (ASSERT_FALSE): Likewise.
20372 (ASSERT_EQ): Likewise.
20373 (ASSERT_NE): Likewise.
20374 (ASSERT_STREQ): Likewise.
20375 (ASSERT_PRED1): Likewise.
20376 (ASSERT_STREQ_AT): New macro.
20377
20378 2016-06-13 David Malcolm <dmalcolm@redhat.com>
20379
20380 * selftest.c (selftest::fail_formatted): New function.
20381 (selftest::assert_streq): New function.
20382 * selftest.h (selftests::fail_formatted): New decl.
20383 (selftest::assert_streq): New decl.
20384 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
20385
20386 2016-06-13 Jeff Law <law@redhat.com>
20387
20388 PR tree-optimization/71403
20389 * tree-ssa-threadbackward.c
20390 (convert_and_register_jump_thread_path): No longer accept reference
20391 to path. Do not pop items off the path anymore.
20392 (fsm_find_control_statement_thread_paths): Do not allow threading
20393 to a deeper loop nest. Pop the last item off the path here rather
20394 than in convert_and_register_jump_thread_path.
20395
20396 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
20397 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
20398
20399 [AArch64] Emit division using the Newton series
20400
20401 * config/aarch64/aarch64-protos.h
20402 (cpu_approx_modes): Add new member "division".
20403 (aarch64_emit_approx_div): Declare new function.
20404 * config/aarch64/aarch64.c
20405 (generic_approx_modes): New member "division".
20406 (exynosm1_approx_modes): Likewise.
20407 (xgene1_approx_modes): Likewise.
20408 (aarch64_emit_approx_div): Define new function.
20409 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
20410 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
20411 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
20412 * doc/invoke.texi (-mlow-precision-div): Describe new option.
20413
20414 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
20415 Wilco Dijkstra <wilco.dijkstra@arm.com>
20416
20417 [AArch64] Emit square root using the Newton series
20418
20419 * config/aarch64/aarch64-protos.h
20420 (aarch64_emit_approx_rsqrt): Replace with new function
20421 "aarch64_emit_approx_sqrt".
20422 (cpu_approx_modes): New member "sqrt".
20423 * config/aarch64/aarch64.c
20424 (generic_approx_modes): New member "sqrt".
20425 (exynosm1_approx_modes): Likewise.
20426 (xgene1_approx_modes): Likewise.
20427 (aarch64_emit_approx_rsqrt): Replace with new function
20428 "aarch64_emit_approx_sqrt".
20429 (aarch64_override_options_after_change_1): Handle new option.
20430 * config/aarch64/aarch64-simd.md
20431 (rsqrt<mode>2): Use new function instead.
20432 (sqrt<mode>2): New expansion and insn definitions.
20433 * config/aarch64/aarch64.md: Likewise.
20434 * config/aarch64/aarch64.opt
20435 (mlow-precision-sqrt): Add new option description.
20436 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
20437
20438 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
20439
20440 [AArch64] Add more choices for the reciprocal square root approximation
20441
20442 Allow a target to prefer such operation depending on the operation mode.
20443
20444 * config/aarch64/aarch64-protos.h
20445 (AARCH64_APPROX_MODE): New macro.
20446 (AARCH64_APPROX_{NONE,ALL}): Likewise.
20447 (cpu_approx_modes): New structure.
20448 (tune_params): New member "approx_modes".
20449 * config/aarch64/aarch64-tuning-flags.def
20450 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
20451 * config/aarch64/aarch64.c
20452 (generic_approx_modes): New core "cpu_approx_modes" structure.
20453 (exynosm1_approx_modes): Likewise.
20454 (xgene1_approx_modes): Likewise.
20455 (generic_tunings): New member "approx_modes".
20456 (cortexa35_tunings): Likewise.
20457 (cortexa53_tunings): Likewise.
20458 (cortexa57_tunings): Likewise.
20459 (cortexa72_tunings): Likewise.
20460 (exynosm1_tunings): Likewise.
20461 (thunderx_tunings): Likewise.
20462 (xgene1_tunings): Likewise.
20463 (use_rsqrt_p): New argument for the mode and use new member from
20464 "tune_params".
20465 (aarch64_builtin_reciprocal): Devise mode from builtin.
20466 (aarch64_optab_supported_p): New argument for the mode.
20467 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
20468
20469 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
20470
20471 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
20472 RS6000_BTM_MODULO flag into the set of flags that are considered
20473 to be part of the common configuration.
20474
20475 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
20476
20477 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
20478 difference unsigned.
20479 (vec_absdb): New macro for vector absolute difference unsigned
20480 byte.
20481 (vec_absdh): New macro for vector absolute difference unsigned
20482 half-word.
20483 (vec_absdw): New macro for vector absolute difference unsigned word.
20484 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
20485 (vadu<mode>3): New insn.
20486 (*p9_vadu<mode>3): New insn.
20487 * config/rs6000/rs6000-builtin.def (vadub): New built-in
20488 definition.
20489 (vaduh): New built-in definition.
20490 (vaduw): New built-in definition.
20491 (vadu): New overloaded built-in definition.
20492 (vadub): New overloaded built-in definition.
20493 (vaduh): New overloaded built-in definition.
20494 (vaduw): New overloaded built-in definition.
20495 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20496 overloaded vector absolute difference unsigned functions.
20497 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
20498 the ISA 3.0 vector absolute difference unsigned built-in functions.
20499
20500 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
20501
20502 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
20503 update shared_lookup_references only once after changing operands.
20504
20505 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
20506
20507 PR middle-end/71373
20508 * tree-nested.c (convert_nonlocal_omp_clauses)
20509 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
20510
20511 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
20512 * tree.def (CASE_LABEL_EXPR): Likewise.
20513
20514 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
20515
20516 PR bootstrap/71481
20517 * input.c (test_builtins): Fix an assertion.
20518
20519 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
20520
20521 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
20522 (paritysi2): Ditto.
20523 (isinfxf2): Ditto.
20524 (isinf<mode>2): Ditto.
20525
20526 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
20527
20528 * ggc-tests.c (test_finalization): Only test need_finalization_p
20529 for GCC_VERSION >= 4003.
20530
20531 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20532
20533 * config/s390/vecintrin.h: Fix file description in comment.
20534
20535 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20536
20537 * config/s390/s390-builtin-types.def: Change builtin type naming
20538 scheme to match builtin-types.def.
20539
20540 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
20541
20542 * fold-const.c (optimize_minmax_comparison): Remove.
20543 (fold_comparison): Remove call to the above.
20544 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
20545 New transformations.
20546
20547 2016-06-13 Alan Hayward <alan.hayward@arm.com>
20548
20549 PR tree-optimization/71416
20550 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
20551 multiple entries
20552
20553 2016-06-13 Martin Liska <mliska@suse.cz>
20554
20555 * predict.c (enum predictor_reason): Prefix enum with REASON_.
20556 (combine_predictions_for_insn): Likewise.
20557 (prune_predictions_for_bb): Likewise.
20558 (combine_predictions_for_bb): Likewise.
20559
20560 2016-06-13 Richard Biener <rguenther@suse.de>
20561
20562 PR tree-optimization/71505
20563 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
20564 assert match comment.
20565
20566 2016-06-13 Marek Polacek <polacek@redhat.com>
20567
20568 PR middle-end/71476
20569 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
20570 gimplify_switch_expr.
20571 (warn_switch_unreachable_r): New function.
20572
20573 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20574
20575 PR target/71379
20576 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
20577 one.
20578
20579 2016-06-13 Richard Biener <rguenther@suse.de>
20580
20581 PR middle-end/64516
20582 * fold-const.c (fold_unary_loc): Preserve alignment when
20583 folding a VIEW_CONVERT_EXPR into a MEM_REF.
20584
20585 2016-06-13 Martin Liska <mliska@suse.cz>
20586
20587 PR sanitizer/71458
20588 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
20589 w/ -fsanitize=bounds.
20590
20591 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
20592
20593 * config/i386/i386.c (ix86_init_builtins): Calculate
20594 FLOAT128_FTYPE_CONST_STRING function type only once.
20595 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
20596 built-in functions are available for x86-32 and x86-64 targets.
20597
20598 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
20599
20600 PR target/71241
20601 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
20602 New primitive type.
20603 (FLOAT128_FTYPE_CONST_STRING): New function type.
20604 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
20605 [IX86_BUILTIN_NANSQ]: Ditto.
20606 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
20607 (ix86_init_builtin_types): Declare const_string_type_node.
20608 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
20609 builtin functions.
20610 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
20611 * doc/extend.texi (x86 Built-in Functions): Document
20612 __builtin_nanq and __builtin_nansq.
20613
20614 2016-06-11 Jiong Wang <jiong.wang@arm.com>
20615
20616 PR target/71061
20617 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
20618 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
20619 length for pop patterns.
20620 (arm_attr_length_push_multi): Update comments.
20621 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
20622 attribute.
20623 (*pop_multiple_with_writeback_and_return): Likewise.
20624 (*pop_multiple_with_return): Likewise.
20625
20626 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
20627
20628 PR middle-end/71310
20629 * fold-const.c (optimize_bit_field_compare): Don't try to use
20630 word_mode unconditionally for reading the bit field, look at
20631 DECL_BIT_FIELD_REPRESENTATIVE instead.
20632
20633 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
20634
20635 PR middle-end/71478
20636 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
20637 vector integer type.
20638
20639 2016-06-10 Jakub Jelinek <jakub@redhat.com>
20640
20641 PR middle-end/71494
20642 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
20643 without LABEL_DECL, set *handled_ops_p to false instead of true.
20644
20645 2016-06-10 Martin Sebor <msebor@redhat.com>
20646
20647 PR c/71392
20648 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
20649 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
20650 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
20651 them.
20652 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
20653 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
20654 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
20655 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
20656 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
20657 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
20658 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
20659 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
20660
20661 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
20662
20663 * config/arm/arm.h (pool_vector_label,
20664 return_used_this_function): Remove.
20665
20666 2016-06-10 Jeff Law <law@redhat.com>
20667
20668 PR tree-optimization/71335
20669 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
20670 zero length paths here.
20671 (convert_and_register_jump_thread_path): Remove hacks related to
20672 duplicated blocks in the jump thread path.
20673 (fsm_find_control_statement_thread_paths): Avoid putting the same
20674 block on the thread path twice, but ensure the thread path is
20675 unchanged from the caller's point of view.
20676
20677 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
20678
20679 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
20680 * predict.def (PRED_LOOP_BRANCH): Remove.
20681
20682 2016-06-10 David Malcolm <dmalcolm@redhat.com>
20683
20684 * Makefile.in (OBJS): Add ggc-tests.o.
20685 (GTFILES): Add ggc-tests.c.
20686 * ggc-tests.c: New file.
20687 * selftest-run-tests.c (selftest::run_tests): Call
20688 selftest::ggc_tests_c_tests.
20689 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
20690
20691 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
20692
20693 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
20694
20695 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
20696
20697 PR sanitizer/71480
20698 * varasm.c (place_block_symbol): Adjust alignment for asan protected
20699 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
20700
20701 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
20702
20703 * profile.c: Include cfgloop.h.
20704 (branch_prob): Compute estimated number of iterations.
20705 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
20706 recompute estimate number of iterations from profile.
20707
20708 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
20709
20710 PR inline-asm/68843
20711 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
20712 must be grouped on top of stack. Don't force early clobber
20713 on ordinary reg outputs.
20714
20715 2016-06-10 Richard Biener <rguenther@suse.de>
20716
20717 * targhooks.c (default_builtin_vectorization_cost): Adjust
20718 vec_construct cost.
20719
20720 2016-06-10 Richard Biener <rguenther@suse.de>
20721
20722 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
20723 to fold the RHS to a constant if possible.
20724
20725 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
20726
20727 PR middle-end/71373
20728 * tree-nested.c (convert_nonlocal_omp_clauses)
20729 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
20730 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
20731 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
20732
20733 * gimplify.c (gimplify_adjust_omp_clauses): Discard
20734 OMP_CLAUSE_TILE.
20735 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
20736
20737 * omp-low.c (scan_sharing_clauses): Don't expect
20738 OMP_CLAUSE__CACHE_.
20739
20740 2016-06-10 Alan Hayward <alan.hayward@arm.com>
20741
20742 PR tree-optimization/71407
20743 PR tree-optimization/71416
20744 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
20745 BIT_FIELD_REF type.
20746
20747 2016-06-10 Richard Biener <rguenther@suse.de>
20748
20749 PR middle-end/71477
20750 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
20751
20752 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
20753
20754 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
20755
20756 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
20757 Jiong Wang <jiong.wang@arm.com>
20758
20759 PR rtl-optimization/70751
20760 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
20761 spilled into memory.
20762
20763 2016-06-09 Jonathan Yong <10walls@gmail.com>
20764
20765 Revert:
20766 2015-09-21 Jonathan Yong <10walls@gmail.com>
20767
20768 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
20769 sysroot/usr/lib/32api for additional win32 libraries,
20770 fixes failing Cygwin bootstrapping.
20771
20772 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
20773
20774 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
20775 Delete.
20776
20777 2016-06-09 David Malcolm <dmalcolm@redhat.com>
20778
20779 PR bootstrap/71471
20780 * pretty-print.c (pp_indent): Specify that %p is printed in a
20781 host-dependent manner.
20782 (test_pp_format): Remove the test for %p.
20783
20784 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
20785
20786 * config/mips/mips.c (mips_output_jump): Fix formatting.
20787
20788 2016-06-09 Richard Biener <rguenther@suse.de>
20789
20790 PR tree-optimization/71462
20791 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
20792 removed blocks.
20793
20794 2016-06-09 Martin Liska <mliska@suse.cz>
20795
20796 * predict.c (dump_prediction): Add new argument.
20797 (enum predictor_reason): New enum.
20798 (struct predictor_hash): New struct.
20799 (predictor_hash::hash): New function.
20800 (predictor_hash::equal): Likewise.
20801 (not_removed_prediction_p): New function.
20802 (prune_predictions_for_bb): Likewise.
20803 (combine_predictions_for_bb): Prune predictions.
20804
20805 2016-06-09 Martin Liska <mliska@suse.cz>
20806
20807 * predict.c (filter_predictions): New function.
20808 (remove_predictions_associated_with_edge): Use the filter
20809 function.
20810 (equal_edge_p): New function.
20811
20812 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
20813
20814 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
20815 Correct usage of @samp vs @option, add @samp where appropriate.
20816 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
20817 Add armv6s-m and document it, as it is no official ARM name.
20818
20819 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20820
20821 * ifcvt.c (struct noce_if_info): Add transform_name field.
20822 (noce_try_move): Set if_info->transform_name to the function name.
20823 (noce_try_ifelse_collapse): Likewise.
20824 (noce_try_store_flag): Likewise.
20825 (noce_try_inverse_constants): Likewise.
20826 (noce_try_store_flag_constants): Likewise.
20827 (noce_try_addcc): Likewise.
20828 (noce_try_store_flag_mask): Likewise.
20829 (noce_try_cmove): Likewise.
20830 (noce_try_cmove_arith): Likewise.
20831 (noce_try_minmax): Likewise.
20832 (noce_try_abs): Likewise.
20833 (noce_try_sign_mask): Likewise.
20834 (noce_try_bitop): Likewise.
20835 (noce_convert_multiple_sets): Likewise.
20836 (noce_process_if_block): Print if_info->transform_name to
20837 dump_file if transformation succeeded.
20838
20839 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20840
20841 * config/arm/cortex-a57.md (cortex_a57_alu):
20842 Handle csel type.
20843
20844 2016-06-08 Martin Sebor <msebor@redhat.com>
20845 Jakub Jelinek <jakub@redhat.com>
20846
20847 PR c++/70507
20848 PR c/68120
20849 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
20850 BUILT_IN_MUL_OVERFLOW_P): New builtins.
20851 * builtins.c: Include gimple-fold.h.
20852 (fold_builtin_arith_overflow): Handle
20853 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
20854 (fold_builtin_3): Likewise.
20855 * doc/extend.texi (Integer Overflow Builtins): Document
20856 __builtin_{add,sub,mul}_overflow_p.
20857
20858 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
20859
20860 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
20861 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
20862
20863 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
20864
20865 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
20866 Rewrite, looking one level down for records and arrays.
20867
20868 2016-06-08 David Malcolm <dmalcolm@redhat.com>
20869
20870 * pretty-print.c: Include "selftest.h".
20871 (pp_format): Fix comment.
20872 (identifier_to_locale): Likewise.
20873 (selftest::test_basic_printing): New function.
20874 (selftest::assert_pp_format): New function.
20875 (selftest::test_pp_format): New function.
20876 (selftest::pretty_print_c_tests): New function.
20877 * selftest-run-tests.c (selftest::run_tests): Call
20878 selftest::pretty_print_c_tests.
20879 * selftest.h (pretty_print_c_tests): New declaration.
20880
20881 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
20882
20883 * invoke.texi (max-loop-headers-insns): Document.
20884 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
20885 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
20886 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
20887
20888 2016-06-08 Richard Biener <rguenther@suse.de>
20889
20890 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
20891 on strided SLP loads and fall back to scalar loads in case
20892 we can't chunk them.
20893
20894 2016-06-08 Richard Biener <rguenther@suse.de>
20895
20896 PR tree-optimization/71452
20897 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
20898 type used for the SSA rewrite has enough precision to cover
20899 the dynamic type of the location.
20900
20901 2016-06-08 Jakub Jelinek <jakub@redhat.com>
20902 Richard Biener <rguenther@suse.de>
20903
20904 PR c++/71448
20905 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
20906 the same as DECL_P (base0) for indirect_base0. Use equality_code
20907 in one further place.
20908
20909 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
20910
20911 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
20912 to one word if the field is known to overlap other words.
20913 (extract_bit_field_1): Likewise.
20914 (store_split_bit_field): Remove compensating code.
20915 (extract_split_bit_field): Likewise.
20916
20917 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
20918
20919 PR debug/71432
20920 PR ada/71413
20921 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
20922
20923 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20924
20925 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
20926 VDQF.
20927 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
20928 (arch64_addpv4sf): Delete.
20929 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
20930 "gen_aarch64_addpv4sf".
20931 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
20932 builtin.
20933 (vpadds_f32): Likewise.
20934 (vpaddq_f32): Likewise.
20935 (vpaddq_f64): Likewise.
20936
20937 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20938
20939 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
20940 VALLF.
20941 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
20942 to VALLF. Rename to "fabd<mode>3".
20943 "*fabd_scalar<mode>3): Delete.
20944 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
20945 Use builtin.
20946 (vabdd_f64): Likewise.
20947 (vabd_f32): Likewise.
20948 (vabd_f64): Likewise.
20949 (vabdq_f32): Likewise.
20950 (vabdq_f64): Likewise.
20951
20952 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20953
20954 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
20955 VALLF.
20956 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
20957 "aarch64_rsqrts<mode>".
20958 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
20959 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
20960 builtin.
20961 (vrsqrtsd_f64): Likewise.
20962 (vrsqrts_f32): Likewise.
20963 (vrsqrts_f64): Likewise.
20964 (vrsqrtsq_f32): Likewise.
20965 (vrsqrtsq_f64): Likewise.
20966
20967 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20968
20969 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
20970 VALLF.
20971 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
20972 "aarch64_rsqrte<mode>".
20973 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
20974 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
20975 builtin.
20976 (vrsqrted_f64): Likewise.
20977 (vrsqrte_f32): Likewise.
20978 (vrsqrte_f64): Likewise.
20979 (vrsqrteq_f32): Likewise.
20980 (vrsqrteq_f64): Likewise.
20981
20982 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20983
20984 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
20985 (ucvtf): Likewise.
20986 (fcvtzs): Likewise.
20987 (fcvtzu): Likewise.
20988 * config/aarch64/aarch64-simd.md
20989 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
20990 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
20991 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
20992 Use builtin.
20993 (vcvt_n_f32_u32): Likewise.
20994 (vcvt_n_s32_f32): Likewise.
20995 (vcvt_n_u32_f32): Likewise.
20996 (vcvtq_n_f32_s32): Likewise.
20997 (vcvtq_n_f32_u32): Likewise.
20998 (vcvtq_n_f64_s64): Likewise.
20999 (vcvtq_n_f64_u64): Likewise.
21000 (vcvtq_n_s32_f32): Likewise.
21001 (vcvtq_n_s64_f64): Likewise.
21002 (vcvtq_n_u32_f32): Likewise.
21003 (vcvtq_n_u64_f64): Likewise.
21004 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
21005 (VSDQ_SDI): Likewise.
21006 (fcvt_target): Support V4DI, V4SI and V2SI.
21007 (FCVT_TARGET): Likewise.
21008
21009 2016-06-08 Jiong Wang <jiong.wang@arm.com>
21010
21011 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
21012 (TYPES_BINOP_SUS): Likewise.
21013 (aarch64_simd_builtin_data): Update include file name.
21014 (aarch64_builtins): Likewise.
21015 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
21016 for conversion between scalar float-point and fixed-point.
21017 (ucvtf): Likewise.
21018 (fcvtzs): Likewise.
21019 (fcvtzu): Likewise.
21020 * config/aarch64/aarch64.md
21021 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
21022 pattern for conversion between scalar float to fixed-pointer.
21023 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
21024 (UNSPEC_FCVTZS): New UNSPEC enumeration.
21025 (UNSPEC_FCVTZU): Likewise.
21026 (UNSPEC_SCVTF): Likewise.
21027 (UNSPEC_UCVTF): Likewise.
21028 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
21029 Use builtin.
21030 (vcvtd_n_f64_u64): Likewise.
21031 (vcvtd_n_s64_f64): Likewise.
21032 (vcvtd_n_u64_f64): Likewise.
21033 (vcvtd_n_f32_s32): Likewise.
21034 (vcvts_n_f32_u32): Likewise.
21035 (vcvtd_n_s32_f32): Likewise.
21036 (vcvts_n_u32_f32): Likewise.
21037 * config/aarch64/iterators.md (fcvt_target): Support integer to float
21038 mapping.
21039 (FCVT_TARGET): Likewise.
21040 (FCVT_FIXED2F): New iterator.
21041 (FCVT_F2FIXED): Likewise.
21042 (fcvt_fixed_insn): New define_int_attr.
21043
21044 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
21045
21046 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
21047 some statements was removed.
21048
21049 2016-06-08 Alan Hayward <alan.hayward@arm.com>
21050
21051 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
21052 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
21053 (vect_can_advance_ivs_p): likewise.
21054 (vect_update_ivs_after_vectorizer): likewise.
21055 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
21056 (vect_analyze_scalar_cycles_1): likewise.
21057 (vect_analyze_loop_operations): likewise.
21058 (report_vect_op): likewise.
21059 (vect_is_slp_reduction): likewise.
21060 (vect_is_simple_reduction): likewise.
21061 (get_initial_def_for_induction): likewise.
21062 (vect_transform_loop): likewise.
21063 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
21064 (vect_recog_sad_pattern): likewise.
21065 (vect_recog_widen_sum_pattern): likewise.
21066 (vect_recog_widening_pattern): likewise.
21067 (vect_recog_divmod_pattern): likewise.
21068 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
21069 (vect_analyze_slp_instance): likewise.
21070 (vect_transform_slp_perm_load): likewise.
21071 (vect_schedule_slp_instance): likewise.
21072
21073 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
21074
21075 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
21076 (return_prediction): PRED_CONST_RETURN predict return as not taken.
21077 * predict.def (PRED_CONTINUE): Change hitrate 50->67
21078 (PRED_LOOP_BRANCH): Document predictor as broken.
21079 (PRED_LOOP_EXIT): Change hitrate 91->92.
21080 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
21081 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
21082 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
21083 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
21084 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
21085 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
21086 (PRED_CALL): Chane hitrate 71->67.
21087 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
21088 (PRED_GOTO): Document as unused right now.
21089 (PRED_CONST_RETURN): Change hitrate 67->69
21090 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
21091 (PRED_NULL_RETURN): Change hitrate 91->90.
21092 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
21093 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
21094 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
21095
21096 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
21097
21098 * config/rs6000/altivec.h: Add __builtin_vec_mul.
21099 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
21100 special case Altivec builtin.
21101 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
21102 VSX_BUILTIN_VEC_MUL (replaced with special case code).
21103 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
21104 code for ALTIVEC_BUILTIN_VEC_MUL.
21105 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
21106 for __builtin_vec_mul.
21107
21108 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
21109
21110 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
21111 -mno-htm.
21112
21113 2016-06-07 David Malcolm <dmalcolm@redhat.com>
21114
21115 * spellcheck.c (selftest::test_find_closest_string): New function.
21116 (spellcheck_c_tests): Call the above.
21117
21118 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21119
21120 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
21121
21122 2016-06-07 Jakub Jelinek <jakub@redhat.com>
21123
21124 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
21125 Yv=Yv,C alternatives.
21126
21127 2016-06-07 Richard Biener <rguenther@suse.de>
21128
21129 PR c/61564
21130 * common.opt (ffast-math): Make Optimization.
21131
21132 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
21133 Prachi Godbole <prachi.godbole@imgtec.com>
21134
21135 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
21136 `fabs' and `fneg' type attributes.
21137 (p5600_fpu_fabs): Add `fmove' to the comment.
21138
21139 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
21140
21141 * gimple.c: Include builtins.h
21142 (gimple_inexpensive_call_p): New function.
21143 * gimple.h (gimple_inexpensive_call_p): Declare.
21144 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
21145 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
21146 fix formatting.
21147
21148 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
21149
21150 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
21151 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
21152 warning_at_rich_loc, warning_n, pedwarn, permerror,
21153 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
21154 sorry, fatal_error, internal_error, internal_error_no_backtrace):
21155 Use the above.
21156
21157 2016-06-07 Richard Biener <rguenther@suse.de>
21158
21159 PR tree-optimization/71428
21160 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
21161 BIT_FIELD_REF op vs. load.
21162
21163 2016-06-07 Richard Biener <rguenther@suse.de>
21164
21165 PR middle-end/71423
21166 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
21167 for signed ops.
21168
21169 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
21170
21171 * config/pa/pa.md (call): Generate indirect long calls to non-local
21172 functions on TARGET_64BIT.
21173 (call_value): Likewise.
21174
21175 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
21176
21177 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
21178 pattern and subsequent splitters.
21179 (call_val_reg_64bit_post_reload): Likewise.
21180
21181 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
21182
21183 PR middle-end/71408
21184 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
21185 propagate_op_to_single_use.
21186
21187 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
21188
21189 PR middle-end/71281
21190 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
21191
21192 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
21193
21194 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
21195 (enum x86_dirflag_state): New enum.
21196 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
21197 (machine_function): Remove needs_cld.
21198 (ix86_current_function_needs_cld): Remove.
21199 * config/i386/i386.c (ix86_set_func_type): Set
21200 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
21201 (ix86_expand_prologue): Do not emit CLD here.
21202 (ix86_dirflag_mode_needed): New function.
21203 (ix86_dirflag_mode_entry): Ditto.
21204 (ix86_mode_needed): Handle X86_DIRFLAG entity.
21205 (ix86_mode_after): Ditto.
21206 (ix86_mode_entry): Ditto.
21207 (ix86_mode_exit): Ditto.
21208 (ix86_emit_mode_set): Ditto.
21209 * config/i386/i386.md (strmov_singleop): Set
21210 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
21211 Do not set ix86_current_function_needs_cld.
21212 (rep_mov): Ditto.
21213 (strset_singleop): Ditto.
21214 (rep_stos): Ditto.
21215 (cmpstrnqi_nz_1): Ditto.
21216 (cmpstrnqi_1): Ditto.
21217 (strlenqi_1): Ditto.
21218
21219 2016-06-06 Jakub Jelinek <jakub@redhat.com>
21220
21221 PR tree-optimization/71259
21222 * tree-vect-slp.c (vect_get_constant_vectors): For
21223 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
21224 one for constant op, and use COND_EXPR for non-constant.
21225
21226 2016-06-06 David Malcolm <dmalcolm@redhat.com>
21227
21228 * Makefile.in (OBJS): Add function-tests.o,
21229 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
21230 selftest-run-tests.o.
21231 (OBJS-libcommon): Add selftest.o.
21232 (OBJS-libcommon-target): Add selftest.o.
21233 (all.internal): Add "selftest".
21234 (all.cross): Likewise.
21235 (selftest): New phony target.
21236 (s-selftest): New target.
21237 (selftest-gdb): New phony target.
21238 (COLLECT2_OBJS): Add selftest.o.
21239 * bitmap.c: Include "selftest.h".
21240 (selftest::test_gc_alloc): New function.
21241 (selftest::test_set_range): New function.
21242 (selftest::test_clear_bit_in_middle): New function.
21243 (selftest::test_copying): New function.
21244 (selftest::test_bitmap_single_bit_set_p): New function.
21245 (selftest::bitmap_c_tests): New function.
21246 * common.opt (fself-test): New.
21247 * diagnostic-show-locus.c: Include "selftest.h".
21248 (make_range): New function.
21249 (test_range_contains_point_for_single_point): New function.
21250 (test_range_contains_point_for_single_line): New function.
21251 (test_range_contains_point_for_multiple_lines): New function.
21252 (assert_eq): New function.
21253 (test_get_line_width_without_trailing_whitespace): New function.
21254 (selftest::diagnostic_show_locus_c_tests): New function.
21255 * et-forest.c: Include "selftest.h".
21256 (selftest::test_single_node): New function.
21257 (selftest::test_simple_tree): New function.
21258 (selftest::test_disconnected_nodes): New function.
21259 (selftest::et_forest_c_tests): New function.
21260 * fold-const.c: Include "selftest.h".
21261 (selftest::assert_binop_folds_to_const): New function.
21262 (selftest::assert_binop_folds_to_nonlvalue): New function.
21263 (selftest::test_arithmetic_folding): New function.
21264 (selftest::fold_const_c_tests): New function.
21265 * function-tests.c: New file.
21266 * gimple.c: Include "selftest.h".
21267 Include "gimple-pretty-print.h".
21268 (selftest::verify_gimple_pp): New function.
21269 (selftest::test_assign_single): New function.
21270 (selftest::test_assign_binop): New function.
21271 (selftest::test_nop_stmt): New function.
21272 (selftest::test_return_stmt): New function.
21273 (selftest::test_return_without_value): New function.
21274 (selftest::gimple_c_tests): New function.
21275 * hash-map-tests.c: New file.
21276 * hash-set-tests.c: New file.
21277 * input.c: Include "selftest.h".
21278 (selftest::assert_loceq): New function.
21279 (selftest::test_accessing_ordinary_linemaps): New function.
21280 (selftest::test_unknown_location): New function.
21281 (selftest::test_builtins): New function.
21282 (selftest::test_reading_source_line): New function.
21283 (selftest::input_c_tests): New function.
21284 * rtl-tests.c: New file.
21285 * selftest-run-tests.c: New file.
21286 * selftest.c: New file.
21287 * selftest.h: New file.
21288 * spellcheck.c: Include "selftest.h".
21289 (selftest::levenshtein_distance_unit_test_oneway): New function,
21290 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
21291 (selftest::levenshtein_distance_unit_test): Likewise.
21292 (selftest::spellcheck_c_tests): Likewise.
21293 * toplev.c: Include selftest.h.
21294 (toplev::run_self_tests): New.
21295 (toplev::main): Handle -fself-test.
21296 * toplev.h (toplev::run_self_tests): New.
21297 * tree.c: Include "selftest.h".
21298 (selftest::test_integer_constants): New function.
21299 (selftest::test_identifiers): New function.
21300 (selftest::test_labels): New function.
21301 (selftest::tree_c_tests): New function.
21302 * tree-cfg.c: Include "selftest.h".
21303 (selftest::push_fndecl): New function.
21304 (selftest::test_linear_chain): New function.
21305 (selftest::test_diamond): New function.
21306 (selftest::test_fully_connected): New function.
21307 (selftest::tree_cfg_c_tests): New function.
21308 * vec.c: Include "selftest.h".
21309 (selftest::safe_push_range): New function.
21310 (selftest::test_quick_push): New function.
21311 (selftest::test_safe_push): New function.
21312 (selftest::test_truncate): New function.
21313 (selftest::test_safe_grow_cleared): New function.
21314 (selftest::test_pop): New function.
21315 (selftest::test_safe_insert): New function.
21316 (selftest::test_ordered_remove): New function.
21317 (selftest::test_unordered_remove): New function.
21318 (selftest::test_block_remove): New function.
21319 (selftest::reverse_cmp): New function.
21320 (selftest::test_qsort): New function.
21321 (selftest::vec_c_tests): New function.c.
21322 * wide-int.cc: Include selftest.h and wide-int-print.h.
21323 (selftest::from_int <wide_int>): New function.
21324 (selftest::from_int <offset_int>): New function.
21325 (selftest::from_int <widest_int>): New function.
21326 (selftest::assert_deceq): New function.
21327 (selftest::assert_hexeq): New function.
21328 (selftest::test_printing <VALUE_TYPE>): New function template.
21329 (selftest::test_ops <VALUE_TYPE>): New function template.
21330 (selftest::test_comparisons <VALUE_TYPE>): New function template.
21331 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
21332 template.
21333 (selftest::wide_int_cc_tests): New function.
21334
21335 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21336
21337 PR middle-end/37780
21338 * ifcvt.c (noce_try_ifelse_collapse): New function.
21339 Declare prototype.
21340 (noce_process_if_block): Call noce_try_ifelse_collapse.
21341 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
21342 (simplify_ternary_operation): Use the above to simplify
21343 conditional CLZ/CTZ expressions.
21344
21345 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21346
21347 PR middle-end/37780
21348 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
21349 define_insn_and_split.
21350
21351 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21352
21353 PR middle-end/37780
21354 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
21355
21356 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
21357
21358 PR c/24414
21359 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
21360 Implicitly clobber memory for basic asm with non-empty assembler
21361 string. Use targetm.md_asm_adjust also here.
21362 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
21363 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
21364 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
21365 non-empty assembler string.
21366 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
21367 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
21368 (decode_asm_operands): Handle basic asm in PARALLEL block.
21369 (extract_insn): Handle basic asm in PARALLEL block.
21370 * doc/extend.texi: Mention new behavior of basic asm.
21371 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
21372 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
21373 branch_needs_nop_p): Use asm_noperands.
21374
21375 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
21376
21377 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
21378 Include the M7 SPARC DFA scheduler.
21379 New attribute v3pipe.
21380 Annotate insns with v3pipe where appropriate.
21381 Define cpu_feature vis4.
21382 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
21383 Add (V8QI "8") to vbits.
21384 Add insns {add,sub}v8qi3
21385 Add insns ss{add,sub}v8qi3
21386 Add insns us{add,sub}{v8qi,v4hi}3
21387 Add insns {min,max}{v8qi,v4hi,v2si}3
21388 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
21389 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
21390 * config/sparc/niagara4.md: Add a comment explaining the
21391 discrepancy between the documented latenty numbers and the
21392 implemented ones.
21393 * config/sparc/niagara7.md: New file.
21394 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
21395 supports SPARC5 and VIS 4.0 instructions.
21396 * configure: Regenerate.
21397 * config.in: Likewise.
21398 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
21399 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
21400 TARGET_CPU_niagara7.
21401 (ASM_CPU64_DEFAULT_SPEC): Likewise.
21402 (CPP_CPU_SPEC): Handle niagara7.
21403 (ASM_CPU_SPEC): Likewise.
21404 * config/sparc/sparc-opts.h (processor_type): Add
21405 PROCESSOR_NIAGARA7.
21406 (mvis4): New option.
21407 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
21408 (AS_NIAGARA7_FLAG): Define.
21409 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
21410 (CPP_CPU64_DEFAULT_SPEC): Likewise.
21411 (CPP_CPU_SPEC): Handle niagara7.
21412 (ASM_CPU_SPEC): Likewise.
21413 * config/sparc/sparc.c (niagara7_costs): Define.
21414 (sparc_option_override): Handle niagara7 and adjust cache-related
21415 parameters with better values for niagara cpus. Also support VIS4.
21416 (sparc32_initialize_trampoline): Likewise.
21417 (sparc_use_sched_lookahead): Likewise.
21418 (sparc_issue_rate): Likewise.
21419 (sparc_register_move_cost): Likewise.
21420 (dump_target_flag_bits): Support VIS4.
21421 (sparc_vis_init_builtins): Likewise.
21422 (sparc_builtins): Likewise.
21423 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
21424 VIS4 4.0.
21425 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
21426 UltraSparc M7.
21427 * config/sparc/sparc.opt (sparc_processor_type): New value
21428 niagara7.
21429 * config/sparc/visintrin.h (__attribute__): Prototypes for the
21430 VIS4 builtins.
21431 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
21432 -mvis4.
21433 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
21434 VIS4 builtins.
21435
21436 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
21437
21438 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
21439
21440 2016-06-06 Richard Biener <rguenther@suse.de>
21441
21442 PR tree-optimization/71398
21443 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
21444 remove edges.
21445
21446 2016-06-05 James Bowman <james.bowman@ftdichip.com>
21447
21448 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
21449 ft32_expand_prolog, ft32_expand_epilogue):
21450 Handle pretend_args.
21451 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
21452 * config/ft32/ft32.md: Add pretend_returner.
21453
21454 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
21455
21456 PR target/71389
21457 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
21458 Copy op1 RTX to avoid invalid sharing.
21459 (ix86_expand_vector_move_misalign): Ditto.
21460
21461 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
21462
21463 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
21464 ATTRIBUTE_UNUSED.
21465
21466 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
21467
21468 * predict.c (predicted_by_loop_heuristics_p): New function.
21469 (predict_iv_comparison): Use it.
21470 (predict_loops): Walk from innermost loops; do not predict edges
21471 leaving multiple loops multiple times; implement
21472 PRED_LOOP_ITERATIONS_MAX heuristics.
21473 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
21474
21475 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
21476
21477 * cfg.c (check_bb_profile): Do not report mismatched profiles when
21478 only edges out of BB are EH edges.
21479
21480 2016-06-04 Martin Sebor <msebor@redhat.com>
21481 Marcin Baczyński <marbacz@gmail.com>
21482
21483 PR c/48116
21484 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
21485 a void expression in a void function.
21486
21487 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
21488
21489 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
21490 aux; dump reasons of decisions.
21491 (should_duplicate_loop_header_p): Likewise.
21492 (do_while_loop_p): Likewise.
21493 (ch_base::copy_headers): Dump asi num insns duplicated.
21494
21495 2016-06-04 Jakub Jelinek <jakub@redhat.com>
21496
21497 PR tree-optimization/71405
21498 * tree-ssa.c (execute_update_addresses_taken): For clobber with
21499 incompatible type, build a new clobber with the right type instead
21500 of building a VIEW_CONVERT_EXPR around it.
21501
21502 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
21503
21504 PR tree-optimization/52171
21505 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
21506 by_pieces_ninsns instead of move_by_pieces_ninsns.
21507
21508 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
21509
21510 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
21511 for reg+reg addressing mode.
21512
21513 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21514
21515 * rs6000-c.c (c/c-tree.h): Add #include.
21516 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
21517 in C++ when found in the base position of vec_ld or vec_st.
21518
21519 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
21520
21521 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
21522 use of profile unless profile status is PROFILE_READ.
21523 * profile.c (compute_branch_probabilities): Set profile status
21524 only after reporting predictor hitrates.
21525
21526 2016-06-03 Joseph Myers <joseph@codesourcery.com>
21527
21528 PR target/71276
21529 PR target/71277
21530 * common.opt (ffp-int-builtin-inexact): New option.
21531 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
21532 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
21533 (ceil@var{m}2): Document dependence on this option.
21534 * ipa-inline-transform.c (inline_call): Handle
21535 flag_fp_int_builtin_inexact.
21536 * ipa-inline.c (can_inline_edge_p): Likewise.
21537 * config/i386/i386.md (rintxf2): Do not test
21538 flag_unsafe_math_optimizations.
21539 (rint<mode>2_frndint): New define_insn.
21540 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
21541 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
21542 for 387 instead of extending and truncating.
21543 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
21544 !flag_trapping_math instead of flag_unsafe_math_optimizations.
21545 Change to frndint<mode>2_<rounding>.
21546 (frndintxf2_<rounding>_i387): Likewise. Change to
21547 frndint<mode>2_<rounding>_i387.
21548 (<rounding_insn>xf2): Likewise.
21549 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
21550 !flag_trapping_math instead of flag_unsafe_math_optimizations for
21551 x87. Test TARGET_ROUND || !flag_trapping_math ||
21552 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
21553 SSE. Use ROUND_NO_EXC in constant operand of
21554 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
21555 for 387 instead of extending and truncating.
21556
21557 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
21558 Julia Koval <julia.koval@intel.com>
21559
21560 PR target/66960
21561 PR target/67630
21562 PR target/67634
21563 PR target/67841
21564 PR target/68037
21565 PR target/68618
21566 PR target/68661
21567 PR target/69575
21568 PR target/69596
21569 PR target/69734
21570 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
21571 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
21572 all registers, except for function return registers if there are
21573 no caller-saved registers.
21574 (ix86_set_func_type): New function.
21575 (ix86_set_current_function): Call ix86_set_func_type to set
21576 no_caller_saved_registers and func_type. Call reinit_regs if
21577 caller-saved registers are changed. Don't allow MPX, SSE, MMX
21578 nor x87 instructions in interrupt handler nor function with
21579 no_caller_saved_registers attribute.
21580 (ix86_function_ok_for_sibcall): Return false if there are no
21581 caller-saved registers.
21582 (type_natural_mode): Don't warn ABI change for MMX in interrupt
21583 handler.
21584 (ix86_function_arg_advance): Skip for callee in interrupt handler.
21585 (ix86_function_arg): Return special arguments in interrupt handler.
21586 (ix86_promote_function_mode): Promote pointer to word_mode only
21587 for normal functions.
21588 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
21589 interrupt handler.
21590 (ix86_epilogue_uses): New function.
21591 (ix86_hard_regno_scratch_ok): Likewise.
21592 (ix86_save_reg): Preserve all registers in interrupt handler
21593 after reload. Preserve all registers, except for function return
21594 registers, if there are no caller-saved registers after reload.
21595 (find_drap_reg): Always use callee-saved register if there are
21596 no caller-saved registers.
21597 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
21598 for interrupt handler.
21599 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
21600 Emit cld instruction if stringops are used in interrupt handler
21601 or interrupt handler isn't a leaf function.
21602 (ix86_expand_epilogue): Generate interrupt return for interrupt
21603 handler and pop the 'ERROR_CODE' off the stack before interrupt
21604 return in exception handler.
21605 (ix86_expand_call): Disallow calling interrupt handler directly.
21606 If there are no caller-saved registers, mark all registers that
21607 are clobbered by the call which returns as clobbered.
21608 (ix86_handle_no_caller_saved_registers_attribute): New function.
21609 (ix86_handle_interrupt_attribute): Likewise.
21610 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
21611 attributes.
21612 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
21613 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
21614 accumulation in interrupt function if stack may be realigned to
21615 avoid DRAP.
21616 (EPILOGUE_USES): New.
21617 (function_type): New enum.
21618 (machine_function): Add func_type and no_caller_saved_registers.
21619 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
21620 (interrupt_return): New pattern.
21621 * doc/extend.texi: Document x86 interrupt and
21622 no_caller_saved_registers attributes.
21623
21624 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
21625
21626 PR tree-optimization/52171
21627 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
21628 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
21629 Look for constant strings. Move some code to emit_block_cmp_hints
21630 and use it.
21631 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
21632 * defaults.h (COMPARE_MAX_PIECES): New macro.
21633 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
21634 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
21635 (clear_by_pieces_1): Don't declare. Move definition before use.
21636 (can_do_by_pieces): New static function.
21637 (can_move_by_pieces): Use it. Return bool.
21638 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
21639 OP. All callers changed. Handle COMPARE_BY_PIECES.
21640 (class pieces_addr); New.
21641 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
21642 pieces_addr::adjust, pieces_addr::increment_address,
21643 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
21644 functions for it.
21645 (class op_by_pieces_d): New.
21646 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
21647 functions for it.
21648 (class move_by_pieces_d, class compare_by_pieces_d,
21649 class store_by_pieces_d): New subclasses of op_by_pieces_d.
21650 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
21651 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
21652 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
21653 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
21654 compare_by_pieces_d::finish_mode): New member functions.
21655 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
21656 functions.
21657 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
21658 (emit_block_cmp_hints): New function.
21659 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
21660 use the newly defined classes.
21661 * expr.h (by_pieces_constfn): New typedef.
21662 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
21663 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
21664 (move_by_pieces_ninsns): Don't declare.
21665 (can_move_by_pieces): Change return value to bool.
21666 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
21667 (compare_by_pieces_branch_ratio): New hook.
21668 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
21669 (by_pieces_ninsns): Declare.
21670 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
21671 COMPARE_BY_PIECES.
21672 (default_compare_by_pieces_branch_ratio): New function.
21673 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
21674 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
21675 * doc/tm.texi: Regenerate.
21676 * tree-ssa-strlen.c: Include "builtins.h".
21677 (handle_builtin_memcmp): New static function.
21678 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
21679 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
21680
21681 2016-06-03 Alan Hayward <alan.hayward@arm.com>
21682
21683 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
21684 relevant stmts which are simple and invariant.
21685 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
21686 instead of simple and invariant
21687
21688 2016-06-03 Alan Hayward <alan.hayward@arm.com>
21689
21690 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
21691 (vectorizable_reduction): Check for new relevant state.
21692 (vectorizable_live_operation): vectorize live stmts using
21693 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
21694 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
21695 (vect_stmt_relevant_p): Check for stmts which are only used live.
21696 (process_use): Use of a stmt does not inherit it's live value.
21697 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
21698 (vect_analyze_stmt): Check for new relevant state.
21699 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
21700 outside the loop, but not inside it.
21701
21702 2016-06-03 Alan Hayward <alan.hayward@arm.com>
21703
21704 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
21705 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
21706 (vect_get_vec_def_for_operand): Split out code.
21707
21708 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
21709
21710 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
21711
21712 2016-06-03 Alan Hayward <alan.hayward@arm.com>
21713
21714 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
21715
21716 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21717
21718 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
21719
21720 2016-06-03 Jakub Jelinek <jakub@redhat.com>
21721
21722 PR middle-end/71387
21723 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
21724 to noreturn e->callee->decl that has void return type and void
21725 arguments, adjust gimple_call_fntype and remove lhs even if it had
21726 previously addressable type.
21727
21728 2016-06-02 Jeff Law <law@redhat.com>
21729
21730 PR tree-optimization/71328
21731 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
21732 error when checking for a jump back onto the copied path.
21733
21734 2016-06-02 David Malcolm <dmalcolm@redhat.com>
21735
21736 * config/microblaze/microblaze.c (get_branch_target): Add return
21737 NULL_RTX for the non-CALL_P case.
21738 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
21739 (insert_wic): Remove unused local "j".
21740
21741 2016-06-02 Martin Liska <mliska@suse.cz>
21742
21743 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
21744
21745 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
21746 Julia Koval <julia.koval@intel.com>
21747
21748 * function.c (assign_parm_setup_stack): Force source into a
21749 register if needed.
21750 * target.def (function_incoming_arg): Update documentation to
21751 allow arbitrary address computation based on hard register.
21752 * doc/tm.texi: Regenerated.
21753
21754 2016-06-02 Martin Liska <mliska@suse.cz>
21755
21756 * predict.c (combine_predictions_for_bb): Fix first match in
21757 cases where a first predictor contains more than one occurence
21758 in list of predictors. Take the best value in such case.
21759
21760 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21761
21762 PR rtl-optimization/71295
21763 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
21764 offset would go over the size of the inner mode reject it.
21765
21766 2016-06-02 Jakub Jelinek <jakub@redhat.com>
21767
21768 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
21769 x=x,x and v=v,m instead of x=x,m.
21770
21771 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
21772 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
21773 alternative to v=rm,C.
21774
21775 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
21776 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
21777 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
21778 instead of vex for the last two above mentioned alternatives.
21779
21780 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21781
21782 PR target/70830
21783 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
21784
21785 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
21786
21787 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
21788
21789 2016-06-01 David Malcolm <dmalcolm@redhat.com>
21790
21791 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
21792 from int to unsigned.
21793
21794 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
21795
21796 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
21797 alternatives, eliminating preferred register class. Add support
21798 for the MTVSRDD instruction in ISA 3.0.
21799 (vsx_splat_v4si_internal): Use splat_input_operand instead of
21800 reg_or_indexed_operand.
21801 (vsx_splat_v4sf_internal): Likewise.
21802
21803 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
21804
21805 PR target/71186
21806 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
21807 for loading up all 0's or all 1's.
21808
21809 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
21810
21811 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
21812
21813 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
21814
21815 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
21816 extension.
21817 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
21818 * gcc.c (set_source_date_epoch_envvar): New function, sets
21819 the SOURCE_DATE_EPOCH environment variable to the current time.
21820
21821 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
21822
21823 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
21824 the factor for live Phi nodes.
21825
21826 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
21827
21828 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
21829 * tree-parloops.c (parallelize_loops): likewise.
21830 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
21831 tree_unswitch_outer_loop): likewise.
21832
21833 2016-06-01 Jakub Jelinek <jakub@redhat.com>
21834
21835 PR middle-end/71371
21836 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
21837 around creation of the temporary.
21838
21839 2016-06-01 Richard Biener <rguenther@suse.de>
21840
21841 PR tree-optimization/71366
21842 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
21843 (unloop_loops): Move removing edges here ...
21844 (try_unroll_loop_completely): ... from here.
21845 (try_peel_loop): ... and here.
21846 (tree_unroll_loops_completely_1): Track parent loops via
21847 bitmap of header BBs.
21848 (tree_unroll_loops_completely): Adjust for that.
21849
21850 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
21851
21852 * config/rs6000/altivec.h (vec_slv): New macro.
21853 (vec_srv): New macro.
21854 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
21855 (UNSPEC_VSRV): New value.
21856 (vslv): New insn.
21857 (vsrv): New insn.
21858 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
21859 (vsrv): New builtin definition.
21860 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
21861 define argument types for new builtin.
21862 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
21863 new builtin.
21864 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
21865 functions.
21866
21867 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
21868 Jocelyn Mayer <l_indien@magic.fr>
21869
21870 PR target/67310
21871 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
21872 detect processor family for signature_CENTAUR_ebx.
21873 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
21874 signature_CENTAUR_ebx.
21875 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
21876 <default>: Pass x86-64 for has_longmode.
21877
21878 2016-06-01 Nathan Sidwell <nathan@acm.org>
21879
21880 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
21881 undefined weak.
21882
21883 2016-06-01 Richard Biener <rguenther@suse.de>
21884
21885 PR tree-optimization/71261
21886 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
21887 of stmts successfully put in the bool pattern. Remove
21888 single-use restriction.
21889 (adjust_bool_pattern_cast): Add cast at the use site via the
21890 pattern def sequence.
21891 (adjust_bool_pattern): Remove recursion, maintain a hash-map
21892 of patterned defs. Use the pattern def seqence instead of
21893 multiple independent patterns.
21894 (sort_after_uid): New qsort compare function.
21895 (adjust_bool_stmts): New function to process stmts in the bool
21896 pattern in IL order.
21897 (vect_recog_bool_pattern): Adjust.
21898 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
21899 (ifcvt_walk_pattern_tree): Likewise.
21900 (stmt_is_root_of_bool_pattern): Likewise.
21901 (ifcvt_repair_bool_pattern): Likewise.
21902 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
21903
21904 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
21905
21906 * loop-unroll.c (decide_unroll_constant_iterations,
21907 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
21908 likely upper bounds.
21909 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
21910
21911 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
21912
21913 * tree-core.h (enum omp_clause_code): Remove
21914 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
21915
21916 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21917
21918 * config/arm/sync.md (arm_store_exclusive<mode>):
21919 Use 'H' output modifier on operands[2] rather than creating a new
21920 entry in out-of-bounds memory of the operands array.
21921 (arm_store_release_exclusivedi): Likewise.
21922
21923 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21924
21925 * config/arm/arm.c (arm_fusion_enabled_p): New function.
21926 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
21927 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
21928 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
21929
21930 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
21931
21932 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
21933 into account live statements for mask producers.
21934
21935 2016-06-01 Richard Biener <rguenther@suse.de>
21936
21937 PR tree-optimization/71311
21938 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
21939 restrict to non-INTEGER_CST @0.
21940
21941 2016-06-01 Richard Biener <rguenther@suse.de>
21942
21943 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
21944 (relational patterns): Use :c to avoid pattern duplications.
21945
21946 2016-06-01 Richard Biener <rguenther@suse.de>
21947
21948 * genmatch.c (comparison_code_p): New predicate.
21949 (swap_tree_comparison): New function.
21950 (commutate): Add for_vec parameter to append new for entries.
21951 Support commutating relational operators by swapping it alongside
21952 operands.
21953 (lower_commutative): Adjust.
21954 (dt_simplify::gen): Do not pass artificial operators to gen
21955 functions.
21956 (decision_tree::gen): Do not add artificial operators as parameters.
21957 (parser::parse_expr): Verify operator commutativity when :c is
21958 applied. Allow :C to override this.
21959 * match.pd: Adjust patterns to use :C instead of :c where required.
21960
21961 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
21962
21963 PR tree-optimization/71077
21964 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
21965 the combining step, use boolean_false_node and boolean_true_node
21966 as the designated false/true return values.
21967
21968 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
21969
21970 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
21971 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
21972 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
21973 PRED_LOOP_EXIT.
21974
21975 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
21976
21977 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
21978 of flags impliying the register renaming.
21979 * toplev.c (process_options): Do not imply flag_rename_registers with
21980 loop peeling.
21981
21982 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
21983
21984 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
21985 default implementation.
21986
21987 2016-05-31 Nathan Sidwell <nathan@acm.org>
21988
21989 * dwarf2out.c (cur_line_info_table): Add GTY marker.
21990
21991 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
21992
21993 * config/sh/constraints.md (b): Remove constraint.
21994 * config/sh/predicates.md (arith_reg_operand): Remove
21995 TARGET_REGISTER_P.
21996 * config/sh/sh-modes.def (PDI): Remove.
21997 * config/sh/sh.c (sh_target_reg_class,
21998 sh_optimize_target_register_callee_saved): Remove functions.
21999 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
22000 (sh_expand_epilogue): Update comment.
22001 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
22002 sh_secondary_reload): Remove TARGET_REGS related code.
22003 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
22004 TARGET_REGISTER_P): Remove macros.
22005 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
22006 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
22007 TR1_REG, TR2_REG): Remove constants.
22008 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
22009
22010 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
22011
22012 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
22013 define_expand patterns.
22014 (adddi3_compact): Rename to adddi3.
22015 (subdi3_compact): Rename to subdi3.
22016 (*negdi2): Rename to negdi2.
22017 (*abs<mode>2): Rename to abs<mode>2.
22018
22019 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
22020
22021 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
22022 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
22023 (atomic_sub_fetchsi): ... this new pattern.
22024 (mvtc): Add CC_REG clobber.
22025
22026 2016-05-31 Marek Polacek <polacek@redhat.com>
22027
22028 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
22029
22030 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22031
22032 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
22033 aarch64_fusion_enabled_p to check for fusion capabilities.
22034
22035 2016-05-31 Richard Biener <rguenther@suse.de>
22036
22037 PR tree-optimization/71352
22038 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
22039 minus one and a negate.
22040
22041 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22042
22043 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
22044 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
22045 Delete prototype.
22046 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
22047 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
22048 Remove use of aarch64_simd_attr_length_move, set length attribute
22049 directly.
22050 (*aarch64_be_movoi): Likewise.
22051 (*aarch64_be_movci): Likewise.
22052 (*aarch64_be_movxi): Likewise.
22053
22054 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
22055
22056 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
22057 It no longer does that.
22058 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
22059
22060 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
22061
22062 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
22063 attribute __unused__.
22064
22065 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
22066
22067 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
22068 * config/arm/arm.c (arm_arch_thumb1): Define.
22069 (arm_option_override): Initialize arm_arch_thumb1.
22070 * config/arm/arm.h (arm_arch_thumb1): Declare.
22071 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
22072 support Thumb-1 ISA.
22073
22074 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
22075
22076 PR target/71346
22077 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
22078 `Yv' for scalar operand.
22079
22080 2016-05-31 Tom de Vries <tom@codesourcery.com>
22081
22082 PR tree-optimization/69068
22083 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
22084 phis with more than two args.
22085
22086 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
22087
22088 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
22089 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
22090 target.
22091
22092 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
22093
22094 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
22095 tune_64.
22096 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
22097 support on SPARC.
22098 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
22099 cpu_32, cpu_64, tune_32 and tune_64.
22100 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
22101
22102 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
22103
22104 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
22105
22106 2016-05-30 Andi Kleen <ak@linux.intel.com>
22107
22108 * auto-profile.c (read_profile): Replace asserts with errors
22109 when file does not exist.
22110 * gcov-io.c (gcov_read_words): Dito.
22111
22112 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
22113
22114 * tree-cfg.c (print_loop): Print likely upper bounds.
22115
22116 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
22117
22118 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
22119 * opts.c (default_options): Enable peel loops at -O3.
22120 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
22121 (try_peel_loop): Do not re-peel already peeled loops;
22122 use likely upper bounds; fix profile updating.
22123 (pass_complete_unroll::execute): Initialize peeled_loops.
22124
22125 2016-05-30 Martin Liska <mliska@suse.cz>
22126
22127 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
22128 computed costs by frequency of BB they belong to.
22129 (get_scaled_computation_cost_at): New function.
22130
22131 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
22132 Marc Glisse <marc.glisse@inria.fr>
22133
22134 PR tree-optimization/71289
22135 * match.pd (-1 / B < A, A > -1 / B): New transformations.
22136
22137 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
22138
22139 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
22140
22141 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
22142
22143 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
22144 for peeled copies; avoid underflow when updating estimates; correctly
22145 scale loop profile.
22146
22147 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
22148
22149 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
22150 r236875. Corrected oe3 to oe2 as obvious.
22151
22152 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
22153
22154 PR middle-end/71269
22155 PR middle-end/71252
22156 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
22157 that inserted stmt will not dominate stmts that defines its operand.
22158 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
22159 (rewrite_expr_tree_parallel): Likewise.
22160
22161 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
22162
22163 PR middle-end/71252
22164 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
22165 all fields including stmt_to_insert are swapped.
22166
22167 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
22168
22169 * predict.h (force_edge_cold): Declare.
22170 * predict.c (force_edge_cold): New function.
22171 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
22172 updating.
22173 (canonicalize_loop_induction_variables): Fix formating.
22174
22175 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
22176
22177 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
22178 (visium_expand_copysign): Use gen_int_mode directly.
22179 (visium_compute_frame_size): Minor tweaks.
22180
22181 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
22182
22183 * tree-vect-loop.c (vect_analyze_loop_2): Use
22184 likely_max_stmt_executions_int.
22185
22186 2016-05-30 Tom de Vries <tom@codesourcery.com>
22187
22188 PR tree-optimization/69067
22189 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
22190
22191 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
22192
22193 PR target/71245
22194 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
22195 New peepholes to remove unneeded fild/fistp pairs.
22196 (define_peephole2 atomic_loaddi_fpu): Ditto.
22197
22198 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
22199
22200 * predict.c (maybe_hot_frequency_p): Avoid division.
22201
22202 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
22203
22204 * doc/install.texi: Use https for shop.fsf.org.
22205
22206 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
22207
22208 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
22209 likely_max_stmt_executions_int.
22210
22211 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
22212
22213 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
22214 likely_max_stmt_executions_int.
22215
22216 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
22217
22218 * profile.c (compute_branch_probabilities): Do not report hitrates
22219 here.
22220 (branch_prob): Report hitrates here.
22221 * predict.c (gimple_predict_edge): Do not assert profile status;
22222 fix formatting issues.
22223
22224 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
22225
22226 * predict.c (edge_predicted_by_p): New function.
22227 (predict_paths_for_bb): Do not put multiple predictions of the same type
22228 on one edge.
22229
22230 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
22231
22232 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
22233 commit.
22234
22235 2016-05-28 Alan Modra <amodra@gmail.com>
22236
22237 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
22238
22239 2016-05-28 Alan Modra <amodra@gmail.com>
22240
22241 PR rtl-optimization/71275
22242 * ira.c (ira): Free dominance info.
22243
22244 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
22245
22246 * doc/sourcebuild.texi: New address for upstream Go repository.
22247
22248 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
22249
22250 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
22251 (TARGET_ARM_V7M): Likewise.
22252
22253 2016-05-26 Jeff Law <law@redhat.com>
22254
22255 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
22256 (thread_across_edge): Remove calls to find_jump_threads_backwards.
22257 * passes.def: Add jump threading passes before DOM/VRP.
22258 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
22259 argument to a basic block from an edge. Remove tests which are
22260 handled elsewhere.
22261 (pass_data_thread_jumps, class pass_thread_jumps): New.
22262 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
22263 (make_pass_thread_jumps): Likewise.
22264 * tree-pass.h (make_pass_thread_jumps): Declare.
22265
22266 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
22267
22268 * config/visium/visium-protos.h (split_double_move): Rename into...
22269 (visium_split_double_move): ...this.
22270 (visium_split_double_add): Declare.
22271 * config/visium/visium.c (split_double_move): Rename into...
22272 (visium_split_double_move): ...this.
22273 (visium_split_double_add): New function.
22274 (visium_expand_copysign): Renumber operands for consistency.
22275 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
22276 (DFmode move splitter): Likewise.
22277 (*addi3_insn): Split by means of visium_split_double_add.
22278 (*adddi3_insn_flags): Delete.
22279 (*plus_plus_sltu<subst_arith>): New insn.
22280 (*subdi3_insn): Split by means of visium_split_double_add.
22281 (subdi3_insn_flags): Delete.
22282 (*minus_minus_sltu<subst_arith>): New insn.
22283 (*negdi2_insn): Split by means of visium_split_double_add.
22284 (*negdi2_insn_flags): Delete.
22285
22286 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
22287
22288 * configure.ac: Treat a --with-headers option without argument
22289 the same as the default (i.e. consult sys-include directory).
22290 * configure: Regenerate.
22291
22292 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22293
22294 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
22295 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
22296 prototype.
22297 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
22298 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
22299
22300 2016-05-27 Jiong Wang <jiong.wang@arm.com>
22301
22302 PR target/63596
22303 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
22304 tree-stdarg analysis results.
22305 (aarch64_setup_incoming_varargs): Likewise.
22306
22307 2016-05-27 Jiong Wang <jiong.wang@arm.com>
22308
22309 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
22310 va_list_gpr_counter_field and va_list_fpr_counter_field.
22311
22312 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
22313
22314 PR67609
22315 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
22316 * config/aarch64/aarch64.c
22317 (aarch64_cannot_change_mode_class): Remove function.
22318 * config/aarch64/aarch64-protos.h
22319 (aarch64_cannot_change_mode_class): Remove.
22320
22321 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
22322
22323 * cfgloop.c (record_niter_bound): Record likely upper bounds.
22324 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
22325 get_likely_max_loop_iterations_int): New.
22326 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
22327 any_likely_upper_bound.
22328 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
22329 Declare.
22330 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
22331 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
22332 upper bound.
22333 (unroll_loop_constant_iterations): Likewise.
22334 (unroll_loop_runtime_iterations): Likewise.
22335 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
22336 * lto-streamer-out.c (output_cfg): Likewise.
22337 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
22338 bounds.
22339 (canonicalize_loop_induction_variables): Dump likely upper bounds.
22340 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
22341 (likely_max_loop_iterations): New.
22342 (likely_max_loop_iterations_int): New.
22343 (likely_max_stmt_executions): New.
22344 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
22345 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
22346 likely_max_stmt_executions): Declare.
22347
22348 2016-05-27 Marek Polacek <polacek@redhat.com>
22349
22350 PR middle-end/71308
22351 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
22352
22353 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22354
22355 * config/s390/s390.md (2x risbg splitters): Use
22356 reg_overlap_mentioned_p instead of rtx_equal_p.
22357
22358 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
22359
22360 * combine.c (make_compound_operation): Take known zero bits into
22361 account when checking for possible zero_extend.
22362
22363 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22364
22365 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
22366 Use const_int_operand for operand 2 predicate. Simplify expand code
22367 as a result.
22368
22369 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
22370
22371 PR middle-end/71279
22372 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
22373 into comparison.
22374
22375 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22376
22377 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
22378 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
22379 that returns CC_SESWPmode and CC_ZESWPmode.
22380 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
22381 and CC_SESWPmode.
22382 (aarch64_rtx_costs): Likewise.
22383
22384 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
22385
22386 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
22387 for ISA 3.0 min/max support.
22388 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
22389 conditional move support.
22390 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
22391 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
22392 available.
22393 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
22394 conditional moves where the comparison type is different from move
22395 type.
22396 (fp_minmax): New code iterator for smin/smax.
22397 (minmax): New code attributes for min/max.
22398 (SMINMAX): Likewise.
22399 (smax<mode>3): Combine min, max insns into one insn using the
22400 fp_minmax code iterator. Add support for ISA 3.0 min/max
22401 instructions that don't need -ffast-math.
22402 (s<minmax><mode>3): Likewise.
22403 (smax<mode>3_vsx): Likewise.
22404 (smin<mode>3): Likewise.
22405 (s<minmax><mode>3_vsx): Likewise.
22406 (smin<mode>3_vsx): Likewise.
22407 (pre-VSX min/max splitters): Likewise.
22408 (s<minmax><mode>3_fpr): Likewise.
22409 (movsfcc): Rewrite floating point conditional moves to combine
22410 SFmode/DFmode into a single insn.
22411 (mov<mode>cc): Likewise.
22412 (movdfcc): Likewise.
22413 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
22414 SFDF2 iterators to handle all combinations.
22415 (fseldfsf4): Likewise.
22416 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
22417 (fseldfdf4): Likewise.
22418 (fselsfdf4): Likewise.
22419 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
22420 comparison instructions that set a 0/-1 mask, and use it for
22421 floating point conditional move via XXSEL.
22422 (fpmask<mode>): Likewise.
22423 (xxsel<mode>): Likewise.
22424 * config/rs6000/predicates.md (min_max_operator): Delete, no
22425 longer used.
22426 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
22427 instructions that generate a 0/-1 mask for use with XXSEL.
22428 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
22429 say whether floating point min/max is available, either through
22430 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
22431 (TARGET_MINMAX_DF): Likewise.
22432
22433 2016-05-27 Alan Modra <amodra@gmail.com>
22434
22435 PR rtl-optimization/71275
22436 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
22437 for update_equiv_regs and combine_and_move_insns.
22438
22439 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
22440
22441 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
22442 if_then_else or cond RTXes to calculate attribute value.
22443 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
22444 <attr "length_immediate>: Ditto.
22445 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
22446 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
22447 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
22448 <attr "type">: Ditto.
22449 <attr "prefix_data16">: Ditto.
22450 <attr "prefix_extra">: Ditto.
22451 <attr "length_immediate">: Ditto.
22452 <attr "prefix">: Ditto.
22453 (vec_set<mode>_0) <attr "isa">: Ditto.
22454 <attr "prefix_extra">: Ditto.
22455 <attr "length_immediate">: Ditto.
22456 <attr "prefix">: Ditto.
22457 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
22458 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
22459 (sse2_storelpd) <attr "prefix_data16">: Ditto.
22460 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
22461 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
22462 <attr "length_immediate">: Ditto.
22463 <attr "prefix">: Ditto.
22464 (sse2_movsd) <attr "length_immediate">: Ditto.
22465 <attr "prefix">: Ditto.
22466 (vec_concatv2df) <attr "isa">: Ditto.
22467 <attr "prefix">: Ditto.
22468 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
22469 (*vec_extractv2di_1) <attr "isa">: Ditto.
22470 <attr "type">: Ditto.
22471 <attr "length_immediate">: Ditto.
22472 <attr "prefix_rex">: Ditto.
22473 <attr "prefix_extra">: Ditto.
22474 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
22475 <attr "prefix_extra">: Ditto.
22476 <attr "length_immediate">: Ditto.
22477 (vec_concatv2di) <attr "isa">: Ditto.
22478 <attr "prefix_extra">: Ditto.
22479 <attr "length_immediate">: Ditto.
22480 <attr "prefix">: Ditto.
22481
22482 2016-05-26 Martin Liska <mliska@suse.cz>
22483
22484 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
22485 function.
22486 (operator+): Likewise.
22487 (operator-): Likewise.
22488 (comp_cost::operator+=): Likewise.
22489 (comp_cost::operator-=): Likewise.
22490 (comp_cost::operator/=): Likewise.
22491 (comp_cost::operator*=): Likewise.
22492 (operator<): Likewise.
22493 (operator==): Likewise.
22494 (operator<=): Likewise.
22495 (new_cost): Remove.
22496 (infinite_cost_p): Likewise.
22497 (add_costs): Likewise.
22498 (sub_costs): Likewise.
22499 (compare_costs): Likewise.
22500 (set_group_iv_cost): Use the newly introduced functions.
22501 (get_address_cost): Likewise.
22502 (get_shiftadd_cost): Likewise.
22503 (force_expr_to_var_cost): Likewise.
22504 (split_address_cost): Likewise.
22505 (ptr_difference_cost): Likewise.
22506 (difference_cost): Likewise.
22507 (get_computation_cost_at): Likewise.
22508 (determine_group_iv_cost_generic): Likewise.
22509 (determine_group_iv_cost_address): Likewise.
22510 (determine_group_iv_cost_cond): Likewise.
22511 (autoinc_possible_for_pair): Likewise.
22512 (determine_group_iv_costs): Likewise.
22513 (cheaper_cost_pair): Likewise.
22514 (iv_ca_recount_cost): Likewise.
22515 (iv_ca_set_no_cp): Likewise.
22516 (iv_ca_set_cp): Likewise.
22517 (iv_ca_cost): Likewise.
22518 (iv_ca_new): Likewise.
22519 (iv_ca_dump): Likewise.
22520 (iv_ca_narrow): Likewise.
22521 (iv_ca_prune): Likewise.
22522 (iv_ca_replace): Likewise.
22523 (try_add_cand_for): Likewise.
22524 (try_improve_iv_set): Likewise.
22525 (find_optimal_iv_set): Likewise.
22526
22527 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
22528
22529 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
22530 that internal functions will clobber all caller-saved registers.
22531
22532 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
22533
22534 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
22535 Return a better case_values_threshold when optimizing.
22536
22537 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
22538
22539 * config/aarch64/aarch64-simd.md (aarch64_combinez):
22540 Add ? to integer variant.
22541 (aarch64_combinez_be): Likewise.
22542
22543 2016-05-26 Jakub Jelinek <jakub@redhat.com>
22544
22545 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
22546 instead of x constraint.
22547 (vcvtps2ph256<mask_name>): Likewise.
22548
22549 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
22550 alternative. Formatting fix.
22551
22552 * config/i386/sse.md
22553 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
22554 to ...
22555 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
22556 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
22557 maybe_evex prefix instead of vex.
22558 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
22559 EXT_REX_SSE_REG_P (op0) case in the splitter.
22560
22561 2016-05-25 Jeff Law <law@redhat.com>
22562
22563 PR tree-optimization/71272
22564 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
22565 Update comments. Add test for empty path.
22566
22567 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
22568
22569 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
22570 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
22571 special case builtin.
22572 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
22573 code for ALTIVEC_BUILTIN_VEC_CMPNE.
22574 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
22575 for __builtin_vec_cmpne.
22576
22577 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
22578
22579 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
22580 redundant test and bail out if the type of the new operand is not
22581 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
22582
22583 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
22584
22585 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
22586 (x_ix86_target_flags_explicit): Remove.
22587 * config/i386/i386.c (ix86_function_specific_save): Do not copy
22588 x_ix86_target_flags_explicit.
22589 (ix86_function_specific_restore): Ditto.
22590
22591 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
22592 H.J. Lu <hongjiu.lu@intel.com>
22593
22594 PR target/70738
22595 * common/config/i386/i386-common.c
22596 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
22597 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
22598 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
22599 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
22600 (-mgeneral-regs-only): Add new option.
22601 * config/i386/i386.c (ix86_option_override_internal): Don't enable
22602 x87 instructions if only general registers are allowed.
22603 (ix86_target_string): Add ix86_flags argument. Handle additional
22604 flags options through ix86_flags argument. Update all callers.
22605 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
22606
22607 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22608
22609 PR rtl-optimization/66940
22610 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
22611 decrementing desired_val will not overflow before performing these
22612 operations.
22613
22614 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
22615
22616 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
22617 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
22618 * config/i386/i386.c (enum ix86_builtins): Add
22619 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
22620 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
22621 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
22622 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
22623 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
22624 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
22625 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
22626 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
22627 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
22628 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
22629 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
22630 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
22631 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
22632 __builtin_ia32_cvtps2dq512_mask.
22633 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
22634 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
22635 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
22636 * config/i386/sse.md
22637 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
22638 Rename to ...
22639 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
22640 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
22641 to ...
22642 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
22643 (avx512f_vec_pack_sfix_v8df): New define_expand.
22644 (avx512f_roundpd512): Rename to ...
22645 (avx512f_round<castmode>512): ... this. Change iterator.
22646 (avx512f_roundps512_sfix): New define_expand.
22647 (round<mode>2_sfix): Change iterator.
22648
22649 2016-05-25 Nick Clifton <nickc@redhat.com>
22650
22651 * config/msp430/msp430.c (msp430_attr): Produce an error if a
22652 static interrupt handler is detected.
22653 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
22654 default linker script.
22655 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
22656 the low part of a symbolic pointer.
22657
22658 2016-05-25 Richard Biener <rguenther@suse.de>
22659
22660 PR tree-optimization/71261
22661 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
22662 interesting stmt instead of immediate uses when looking
22663 for the use operand to replace.
22664
22665 2016-05-25 Martin Liska <mliska@suse.cz>
22666
22667 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
22668
22669 2016-05-25 Richard Biener <rguenther@suse.de>
22670
22671 PR tree-optimization/71264
22672 * tree-vect-stmts.c (vect_init_vector): Properly deal with
22673 vector type val.
22674
22675 2016-05-25 Martin Liska <mliska@suse.cz>
22676
22677 PR tree-optimization/71239
22678 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
22679 if DECL_SIZE is NULL.
22680
22681 2016-05-25 Richard Biener <rguenther@suse.de>
22682
22683 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
22684 * tree-if-conv.c (pass_data_if_conversion): Use it.
22685
22686 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
22687
22688 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
22689 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
22690 * varpool.c (varpool_node::get_availability): Likewise.
22691
22692 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
22693
22694 * config/rs6000/altivec.md (VNEG iterator): New iterator for
22695 VNEGW/VNEGD instructions.
22696 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
22697 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
22698 support for ISA 3.0 VNEGW/VNEGD instructions.
22699
22700 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
22701
22702 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
22703 pointers inside OACC_DATA regions.
22704 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
22705 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
22706 (gimplify_adjust_omp_clauses): Fix typo in comment.
22707
22708 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
22709
22710 * config/rs6000/altivec.md (VParity): New mode iterator for vector
22711 parity built-in functions.
22712 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
22713 zeros.
22714 (p9v_parity<mode>2): Likewise.
22715 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
22716 parity.
22717 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
22718 (parity<mode>2): ISA 3.0 expander for vector parity.
22719 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
22720 power9 built-ins.
22721 (BU_P9_64BIT_MISC_0): Likewise.
22722 (BU_P9_MISC_0): Likewise.
22723 (BU_P9V_AV_1): Likewise.
22724 (BU_P9V_AV_2): Likewise.
22725 (BU_P9V_AV_3): Likewise.
22726 (BU_P9V_AV_P): Likewise.
22727 (BU_P9V_VSX_1): Likewise.
22728 (BU_P9V_OVERLOAD_1): Likewise.
22729 (BU_P9V_OVERLOAD_2): Likewise.
22730 (BU_P9V_OVERLOAD_3): Likewise.
22731 (VCTZB): Add vector count trailing zeros support.
22732 (VCTZH): Likewise.
22733 (VCTZW): Likewise.
22734 (VCTZD): Likewise.
22735 (VPRTYBD): Add vector parity support.
22736 (VPRTYBQ): Likewise.
22737 (VPRTYBW): Likewise.
22738 (VCTZ): Add overloaded vector count trailing zeros support.
22739 (VPRTYB): Add overloaded vector parity support.
22740 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
22741 overloaded vector count trailing zeros and parity instructions.
22742 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
22743 vector parity support.
22744 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
22745 trailing zeros support.
22746 (vec_cntlz): Likewise.
22747 (vec_vctzb): Likewise.
22748 (vec_vctzd): Likewise.
22749 (vec_vctzh): Likewise.
22750 (vec_vctzw): Likewise.
22751 (vec_vprtyb): Add ISA 3.0 vector parity support.
22752 (vec_vprtybd): Likewise.
22753 (vec_vprtybw): Likewise.
22754 (vec_vprtybq): Likewise.
22755 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
22756 the ISA 3.0 vector count trailing zeros and vector parity built-in
22757 functions.
22758
22759 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
22760
22761 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
22762 when there is stmt_to_insert.
22763
22764 2016-05-24 Martin Sebor <msebor@redhat.com>
22765
22766 PR c++/71147
22767 * tree.h (complete_or_array_type_p): New inline function.
22768
22769 2016-05-24 Jakub Jelinek <jakub@redhat.com>
22770
22771 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
22772 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
22773 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
22774
22775 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
22776 Limit 1st alternative to noavx isa, split 2nd alternative into one
22777 noavx and one avx alternative, use *x and Bm in the former and
22778 x and m in the latter.
22779
22780 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
22781 of sse4 for the first alternative, drop %v from the template
22782 and d operand modifier. Split second alternative into one sse4_noavx
22783 and one avx alternative, use *x instead of *v in the former and v
22784 instead of *v in the latter.
22785 (*sse4_1_extractps): Use noavx isa instead of * for the first
22786 alternative, drop %v from the template. Split second alternative into
22787 one noavx and one avx alternative, use *x instead of *v in the
22788 former and v instead of *v in the latter.
22789 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
22790 with noavx and the last one with avx.
22791 (sse4_1_phminposuw): Guard first alternative with noavx isa,
22792 split the second one into one noavx and one avx alternative,
22793 use *x and Bm in the former and x and m in the latter one.
22794 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
22795 alternatives.
22796
22797 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
22798 first two alternatives to noavx, use *x instead of *v in the second
22799 one, add avx alternative without *.
22800 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
22801 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
22802 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
22803
22804 2016-05-24 Jeff Law <law@redhat.com>
22805
22806 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
22807 New function, extracted from...
22808 (fsm_find_control_statement_thread_paths): Here. Use the new function.
22809 Allow simple copies and constant initializations in the SSA chain.
22810
22811 2016-05-24 Marek Polacek <polacek@redhat.com>
22812
22813 PR c/71249
22814 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
22815 scope.
22816
22817 2016-05-24 Jakub Jelinek <jakub@redhat.com>
22818
22819 PR c++/71257
22820 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
22821 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
22822 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
22823 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
22824 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
22825
22826 2016-05-24 Richard Biener <rguenther@suse.de>
22827
22828 PR tree-optimization/71240
22829 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
22830 has integral type.
22831
22832 2016-05-24 Richard Biener <rguenther@suse.de>
22833
22834 PR tree-optimization/71230
22835 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
22836
22837 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
22838
22839 * tree-vectorizer.h (vectorizable_comparison): Delete.
22840 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
22841 PURE_SLP_STMT check.
22842 * tree-vect-stmts.c (vectorizable_call): Likewise.
22843 (vectorizable_simd_clone_call): Likewise.
22844 (vectorizable_conversion): Likewise.
22845 (vectorizable_assignment): Likewise.
22846 (vectorizable_shift): Likewise.
22847 (vectorizable_operation): Likewise.
22848 (vectorizable_load): Likewise.
22849 (vectorizable_condition): Likewise.
22850 (vectorizable_store): Likewise. Assert that we don't have
22851 hybrid SLP.
22852 (vectorizable_comparison): Make static. Remove redundant
22853 PURE_SLP_STMT check.
22854 (vect_transform_stmt): Assert that we always have an slp_node
22855 if PURE_SLP_STMT.
22856
22857 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22858
22859 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
22860 operands[2] against 1 with comparison against CONST1_RTX.
22861 (<shift>di3_neon): Likewise.
22862 * config/arm/predicates.md (const0_operand): Replace with comparison
22863 against CONST0_RTX.
22864
22865 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22866
22867 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
22868 operands[2] against 1 with comparison against CONST1_RTX.
22869 (ashrdi3): Likewise.
22870 (lshrdi3): Likewise.
22871 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
22872 UINTVAL.
22873 (ashrsi3): Likewise.
22874 (lshrsi3): Likewise.
22875 (rotrsi3): Likewise.
22876 (define_split above *compareqi_eq0): Likewise.
22877 (define_split above "prologue"): Likewise.
22878 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
22879 * config/arm/predicates.md (shift_operator): Likewise.
22880 (shift_nomul_operator): Likewise.
22881 (sat_shift_operator): Likewise.
22882 (thumb1_cmp_operand): Likewise.
22883 (const_neon_scalar_shift_amount_operand): Replace manual range
22884 check with IN_RANGE.
22885 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
22886 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
22887
22888 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22889
22890 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
22891 with HOST_WIDE_INT_1.
22892 (insv): Likewise.
22893 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
22894 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
22895 (arm_canonicalize_comparison): Likewise.
22896 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
22897 HOST_WIDE_INT_1.
22898 (thumb1_size_rtx_costs): Likewise.
22899 (vfp_const_double_index): Replace cast of 1 to unsigned
22900 HOST_WIDE_INT with HOST_WIDE_INT_1U.
22901 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
22902 HOST_WIDE_INT_1.
22903 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
22904 HOST_WIDE_INT with HOST_WIDE_INT_1U.
22905 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
22906 HOST_WIDE_INT with HOST_WIDE_INT_1.
22907
22908 2016-05-24 Marek Polacek <polacek@redhat.com>
22909
22910 * tree-cfg.h (should_remove_lhs_p): New predicate.
22911 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
22912 * gimplify.c (gimplify_modify_expr): Likewise.
22913 * tree-cfg.c (verify_gimple_call): Likewise.
22914 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
22915 * gimple-fold.c: Include "tree-cfg.h".
22916 (gimple_fold_call): Use should_remove_lhs_p.
22917
22918 2016-05-24 Richard Biener <rguenther@suse.de>
22919
22920 PR tree-optimization/71253
22921 * cfganal.h (control_dependences): Make robust against edge
22922 and BB removal.
22923 (control_dependences::control_dependences): Remove edge_list argument.
22924 (control_dependences::get_edge): Remove.
22925 (control_dependences::get_edge_src): Add.
22926 (control_dependences::get_edge_dest): Likewise.
22927 (control_dependences::m_el): Make a vector of edge src/dest index.
22928 * cfganal.c (control_dependences::find_control_dependence): Adjust.
22929 (control_dependences::control_dependences): Likewise.
22930 (control_dependences::~control_dependence): Likewise.
22931 (control_dependences::get_edge): Remove.
22932 (control_dependences::get_edge_src): Add.
22933 (control_dependences::get_edge_dest): Likewise.
22934 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
22935 get_edge_src.
22936 (perform_tree_ssa_dce): Adjust.
22937 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
22938 get_edge_src.
22939 (pass_loop_distribution::execute): Adjust. Do loop destroying
22940 conditional on changed.
22941
22942 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22943
22944 PR target/69857
22945 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
22946 return. Reindent transformation comment and mention the ARM state
22947 behavior.
22948
22949 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
22950
22951 PR middle-end/71252
22952 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
22953 after build_and_add_sum creates new use stmt.
22954
22955 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
22956
22957 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
22958 load_lanes/grouped_load classification comes first. Don't check
22959 whether the vectorization factor is a multiple of the group size
22960 for load_lanes.
22961
22962 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
22963
22964 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
22965 GROUP_GAP for single-element interleaving.
22966 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
22967 variable.
22968
22969 2016-05-24 Richard Biener <rguenther@suse.de>
22970
22971 PR middle-end/70434
22972 PR c/69504
22973 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
22974 bases which are accessed with non-invariant indices.
22975 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
22976 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
22977
22978 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
22979
22980 PR middle-end/71170
22981 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
22982 (add_to_ops_vec): Add stmt_to_insert.
22983 (add_repeat_to_ops_vec): Init stmt_to_insert.
22984 (insert_stmt_before_use): New.
22985 (transform_add_to_multiply): Remove mult_stmt insertion and add it
22986 to ops vector.
22987 (get_ops): Init stmt_to_insert.
22988 (maybe_optimize_range_tests): Likewise.
22989 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
22990 (rewrite_expr_tree_parallel): Likewise.
22991 (reassociate_bb): Likewise.
22992
22993 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
22994
22995 PR target/71201
22996 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
22997 ISA 3.0 xxperm fusion alternative.
22998 (altivec_vperm_v8hiv16qi): Likewise.
22999 (altivec_vperm_<mode>_uns_internal): Likewise.
23000 (vperm_v8hiv4si): Likewise.
23001 (vperm_v16qiv8hi): Likewise.
23002
23003 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
23004 Kelvin Nilsen <kelvin@gcc.gnu.org>
23005
23006 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
23007 vpermr/xxpermr on ISA 3.0.
23008 (altivec_expand_vec_perm_le): Likewise.
23009 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
23010 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
23011 ISA 3.0.
23012
23013 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
23014
23015 * config/i386/i386.h (IS_STACK_MODE): Enable for
23016 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
23017 SSE_FLOAT_MODE_P macros.
23018 * config/i386/i386.c (ix86_preferred_reload_class): Use
23019 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
23020 Cleanup regclass processing for CONST_DOUBLE_P.
23021 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
23022 (ix86_rtx_costs): Remove redundant TARGET_80387 check
23023 with IS_STACK_MODE macro.
23024 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
23025 with TARGET_SSE2.
23026 (*movdf_internal): Use IS_STACK_MODE macro.
23027 (*movsf_internal): Ditto.
23028
23029 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
23030
23031 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
23032 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
23033
23034 2016-05-23 Jeff Law <law@redhat.com>
23035
23036 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
23037 extracted from ...
23038 (fsm_find_control_statement_thread_paths): Call it.
23039
23040 2016-05-23 Martin Jambor <mjambor@suse.cz>
23041
23042 PR ipa/71234
23043 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
23044 from_global_constant if t is not NULL.
23045
23046 2016-05-23 Marek Polacek <polacek@redhat.com>
23047
23048 PR c/49859
23049 * common.opt (Wswitch-unreachable): New option.
23050 * doc/invoke.texi: Document -Wswitch-unreachable.
23051 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
23052 warning.
23053
23054 2016-05-23 Bin Cheng <bin.cheng@arm.com>
23055
23056 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
23057 TMR_INDEX is non-NULL.
23058
23059 2016-05-23 Richard Biener <rguenther@suse.de>
23060
23061 PR tree-optimization/71230
23062 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
23063 (try_special_add_to_ops): ... here. Always test for single-use.
23064
23065 2016-05-23 Martin Jambor <mjambor@suse.cz>
23066
23067 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
23068 default block if a PHI node in the original one would be resized.
23069
23070 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
23071
23072 PR tree-optimization/58135
23073 * tree-vect-slp.c: When group size is not multiple
23074 of vector size, allow splitting of store group at
23075 vector boundary.
23076
23077 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
23078
23079 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
23080
23081 2016-05-22 Jakub Jelinek <jakub@redhat.com>
23082
23083 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
23084 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
23085 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
23086 of 64x2.
23087
23088 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
23089 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
23090 v constraint instead of x and vinserti32x4 insn.
23091
23092 * config/i386/sse.md (i128vldq): New mode iterator.
23093 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
23094 avx512dq and avx512vl alternatives.
23095
23096 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
23097 constraint, use maybe_evex prefix instead of vex.
23098 (vec_dupv4sf): Use v constraint instead of x for output
23099 operand except for noavx alternative, use Yv constraint
23100 instead of x for input. Use maybe_evex prefix instead of vex.
23101 (*vec_dupv4si): Likewise.
23102 (*vec_dupv2di): Likewise.
23103
23104 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
23105
23106 PR middle-end/40921
23107 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
23108 (linearize_expr_tree): Call try_special_add_to_ops.
23109 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
23110
23111 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23112
23113 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
23114 to computed stack_usage.
23115
23116 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
23117
23118 PR target/71103
23119 * config/avr/avr.md (define_expand "mov<mode>"): If the source
23120 operand is subreg (symbol_ref) then move the symbol ref to register.
23121
23122 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
23123
23124 * tree.c (array_at_struct_end_p): Look through MEM_REF.
23125
23126 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
23127
23128 PR middle-end/71179
23129 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
23130 VECTOR type.
23131
23132 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
23133
23134 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
23135 ranges by calling get_single_symbol and tidy up. Look more closely
23136 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
23137
23138 2016-05-20 Jeff Law <law@redhat.com>
23139
23140 * bitmap.c (bitmap_find_bit): Remove useless test.
23141
23142 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
23143
23144 * function.c (thread_prologue_and_epilogue_insns): Commit the
23145 insertion of the epilogue.
23146
23147 2016-05-20 Martin Jambor <mjambor@suse.cz>
23148
23149 PR tree-optimization/70884
23150 * tree-sra.c (initialize_constant_pool_replacements): Do not check
23151 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
23152 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
23153 of constant pool data as a reason for scalarization.
23154
23155 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
23156
23157 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
23158 for naked functions.
23159 (thumb1_expand_prologue): Likewise.
23160
23161 2016-05-20 Nathan Sidwell <nathan@acm.org>
23162
23163 * config/nvptx/nptx.c (nvptx_option_override): Only set
23164 flag_toplevel_reorder, if not explicitly specified. Set
23165 flag_no_common, unless explicitly specified.
23166
23167 2016-05-20 David Malcolm <dmalcolm@redhat.com>
23168
23169 * calls.c (can_implement_as_sibling_call_p): Mark param
23170 reg_parm_stack_space with ATTRIBUTE_UNUSED.
23171
23172 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
23173
23174 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
23175 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
23176 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
23177 constants.
23178 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
23179 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
23180 and CASE_CONST_ANY.
23181
23182 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
23183
23184 * config/nvptx/nvptx.md (sincossf3): New pattern.
23185
23186 2016-05-20 David Malcolm <dmalcolm@redhat.com>
23187
23188 * calls.c (maybe_complain_about_tail_call): New function.
23189 (initialize_argument_information): Call
23190 maybe_complain_about_tail_call when clearing *may_tailcall.
23191 (can_implement_as_sibling_call_p): Call
23192 maybe_complain_about_tail_call when returning false.
23193 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
23194 ensure try_tail_call is set. Call maybe_complain_about_tail_call
23195 if tail-call optimization fails.
23196 * cfgexpand.c (expand_call_stmt): Initialize
23197 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
23198 * gimple-pretty-print.c (dump_gimple_call): Dump
23199 gimple_call_must_tail_p.
23200 * gimple.c (gimple_build_call_from_tree): Call
23201 gimple_call_set_must_tail with the value of
23202 CALL_EXPR_MUST_TAIL_CALL.
23203 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
23204 (gimple_call_set_must_tail): New function.
23205 (gimple_call_must_tail_p): New function.
23206 * print-tree.c (print_node): Update printing of TREE_STATIC
23207 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
23208 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
23209 trailing comment listing applicable flags.
23210 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
23211
23212 2016-05-20 David Malcolm <dmalcolm@redhat.com>
23213
23214 * calls.c (expand_call): Move "Rest of purposes for tail call
23215 optimizations to fail" to...
23216 (can_implement_as_sibling_call_p): ...this new function, and
23217 split into multiple "if" statements.
23218
23219 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
23220
23221 * cfgloop.h (expected_loop_iterations_unbounded,
23222 expected_loop_iterations): Unconstify.
23223 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
23224 profile with known upper bound; return 3 when profile is absent.
23225 (expected_loop_iterations): Update.
23226
23227 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
23228
23229 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
23230 and get_max_loop_iterations_int.
23231
23232 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
23233
23234 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
23235 realistic upper bounds here.
23236
23237 2016-05-20 Jakub Jelinek <jakub@redhat.com>
23238
23239 PR c++/71210
23240 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
23241 calls if the LHS is variable length or has addressable type.
23242 If targets[0]->decl is a noreturn call with void return type and
23243 zero arguments, adjust fntype and remove lhs in that case.
23244
23245 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
23246
23247 PR tree-optimization/71079
23248 PR tree-optimization/71206
23249 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
23250
23251 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23252
23253 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
23254 (get_vec_alignment_for_array_decl): Likewise.
23255 (get_vec_alignment_for_record_decl): Likewise.
23256 (increase_alignment::execute): Move code to find alignment to
23257 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
23258 (type_align_map): New hash_map.
23259
23260 2016-05-20 Richard Guenther <rguenther@suse.de>
23261
23262 PR tree-optimization/29756
23263 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
23264 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
23265 * fold-const.c (operand_equal_p): Likewise.
23266 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
23267 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
23268 * tree-inline.c (estimate_operator_cost): Likewise.
23269 * tree-pretty-print.c (dump_generic_node): Likewise.
23270 * tree-ssa-operands.c (get_expr_operands): Likewise.
23271 * cfgexpand.c (expand_debug_expr): Likewise.
23272 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
23273 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
23274 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
23275 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
23276 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
23277 (execute_update_addresses_taken): Do it.
23278
23279 2016-05-20 Richard Biener <rguenther@suse.de>
23280
23281 PR tree-optimization/71185
23282 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
23283 register operations.
23284
23285 2016-05-20 Richard Biener <rguenther@suse.de>
23286
23287 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
23288 gimple_seq_add_seq_without_update.
23289 (release_bb_predicate): Assert we have no operands to free.
23290 (if_convertible_loop_p_1): Calculate post dominators later.
23291 Do not free BB predicates here.
23292 (combine_blocks): Do not recompute BB predicates.
23293 (version_loop_for_if_conversion): Save BB predicates around
23294 loop versioning.
23295
23296 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23297
23298 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
23299 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
23300 code. Ignore sibcalls on EDGE_IGNORE edges.
23301 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
23302 on edges for sibcalls that run without prologue. The rest of the
23303 function is combined from...
23304 (fix_fake_fallthrough_edge): ... this, and ...
23305 (try_shrink_wrapping): ... a part of this. Remove the bb_with
23306 function argument, make it a local variable.
23307
23308 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
23309
23310 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
23311 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
23312 for 32-bit mode and SEH for 64-bit.
23313 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
23314 TARGET_64BIT_DEFAULT.
23315
23316 2016-05-19 Ryan Burn <contact@rnburn.com>
23317
23318 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
23319 * gengtype.c (open_base_files): Add cilk.h to ifiles.
23320
23321 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
23322
23323 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
23324 force pending loads from memory.
23325
23326 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
23327
23328 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
23329 (UNSPEC_DARN_32): New unspec constant.
23330 (UNSPEC_DARN_RAW): New unspec constant.
23331 (darn_32): New instruction.
23332 (darn_raw): New instruction.
23333 (darn): New instruction.
23334 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
23335 support and documentation for this macro.
23336 (BU_P9_MISC_1): New macro definition.
23337 (BU_P9_64BIT_MISC_0): New macro definition.
23338 (BU_P9_MISC_0): New macro definition.
23339 (darn_32): New builtin definition.
23340 (darn_raw): New builtin definition.
23341 (darn): New builtin definition.
23342 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
23343 RS6000_BUILTIN_0 directives to surround each occurrence of
23344 #include "rs6000-builtin.def".
23345 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
23346 RS6000_BTM_64BIT flags to the returned mask, depending on
23347 configuration.
23348 (def_builtin): Correct an error in the assignments made to the
23349 debugging variable attr_string.
23350 (rs6000_expand_builtin): Add support for no-operand built-in
23351 functions.
23352 (builtin_function_type): Remove fatal_error assertion that is no
23353 longer valid.
23354 (rs6000_common_init_builtins): Add support for no-operand built-in
23355 functions.
23356 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
23357 definition.
23358 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
23359 definition.
23360 (RS6000_BTM_64BIT): New macro definition.
23361 * doc/extend.texi: Document __builtin_darn (void),
23362 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
23363 functions.
23364
23365 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
23366
23367 * tree-vect-loop.c (vect_analyze_loop_2): Use also
23368 max_loop_iterations_int.
23369
23370 2016-05-19 Marek Polacek <polacek@redhat.com>
23371
23372 PR tree-optimization/71031
23373 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
23374 condition and adjust the code a bit.
23375
23376 2016-05-19 Martin Liska <mliska@suse.cz>
23377
23378 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
23379 auto_vec instead of vec.
23380
23381 2016-05-19 Martin Liska <mliska@suse.cz>
23382
23383 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
23384
23385 2016-05-19 Martin Liska <mliska@suse.cz>
23386
23387 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
23388
23389 2016-05-19 Martin Liska <mliska@suse.cz>
23390
23391 * ipa-pure-const.c (set_function_state): Remove an existing
23392 funct_state.
23393 (remove_node_data): Do not free it as it's released
23394 in set_function_state.
23395
23396 2016-05-19 Martin Liska <mliska@suse.cz>
23397
23398 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
23399 bitmap.
23400
23401 2016-05-19 Martin Liska <mliska@suse.cz>
23402
23403 * omp-simd-clone.c (simd_clone_adjust): Release vector.
23404
23405 2016-05-19 Martin Liska <mliska@suse.cz>
23406
23407 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
23408 an auto_vec instead of re-creating it.
23409
23410 2016-05-19 Martin Liska <mliska@suse.cz>
23411
23412 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
23413 auto_vec instead of vec.
23414
23415 2016-05-19 Martin Liska <mliska@suse.cz>
23416
23417 * lto-section-in.c (lto_get_section_data): Call
23418 lto_check_version with additional argument.
23419 * lto-streamer.c (lto_check_version): Add new argument.
23420 * lto-streamer.h (lto_check_version): Likewise.
23421
23422 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23423
23424 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
23425 Don't add cost of inner memory when handling sign-extended loads.
23426
23427 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
23428
23429 PR rtl-optimization/71148
23430 * cse.c (cse_main): Free dominance info.
23431 (rest_of_handle_cse): Don't free dominance info.
23432 (rest_of_handle_cse2): Likewise.
23433 (rest_of_handle_cse_after_global_opts): Likewise.
23434
23435 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23436
23437 PR target/71056
23438 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
23439 NULL_TREE early if NEON is not available. Remove now redundant check
23440 in ARM_CHECK_BUILTIN_MODE.
23441
23442 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
23443
23444 PR sanitizer/64354
23445 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
23446 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
23447 * doc/cpp.texi: Document new macros.
23448
23449 2016-05-19 Bin Cheng <bin.cheng@arm.com>
23450
23451 PR tree-optimization/69848
23452 * tree-vect-loop.c (vectorizable_reduction): Don't factor
23453 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
23454
23455 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23456
23457 * function.c (thread_prologue_and_epilogue_insn): Move the
23458 "goto epilogue_done" one block later.
23459
23460 2016-05-19 Richard Biener <rguenther@suse.de>
23461
23462 PR tree-optimization/70729
23463 * passes.def: Move LIM pass before PRE. Remove no longer
23464 required copyprop and move first DCE out of the loop pipeline.
23465
23466 2016-05-18 David Malcolm <dmalcolm@redhat.com>
23467
23468 PR driver/69265
23469 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
23470 (OBJS-libcommon-target): ...here.
23471 * opts-common.c: Include spellcheck.h.
23472 (cmdline_handle_error): Build a vec of valid options and use it
23473 to suggest provide hints for misspelled arguments.
23474
23475 2016-05-18 Jakub Jelinek <jakub@redhat.com>
23476
23477 PR c++/71100
23478 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
23479 lhs if it has TREE_ADDRESSABLE type.
23480
23481 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
23482
23483 PR target/71145
23484 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
23485 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
23486
23487 2016-05-18 Martin Jambor <mjambor@suse.cz>
23488
23489 PR ipa/69708
23490 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
23491 input for NOP_EXPR pass-through functions.
23492 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
23493 aggregate global constant VAR_DECLs in constant jump functions.
23494
23495 2016-05-18 Martin Jambor <mjambor@suse.cz>
23496
23497 PR ipa/69708
23498 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
23499 from TREE_READONLY parameters.
23500
23501 2016-05-18 Martin Jambor <mjambor@suse.cz>
23502
23503 PR ipa/69708
23504 * cgraph.h (cgraph_indirect_call_info): New field
23505 guaranteed_unmodified.
23506 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
23507 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
23508 appropriate.
23509 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
23510 pass the parameter value to ipa_find_agg_cst_for_param.
23511 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
23512 guaranteed_unmodified, store AA results there instead of bailing out
23513 if present.
23514 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
23515 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
23516 (find_constructor_constant_at_offset): New function.
23517 (ipa_find_agg_cst_from_init): Likewise.
23518 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
23519 static initializers of contants, report back through a new paameter
23520 from_global_constant if that was the case.
23521 (try_make_edge_direct_simple_call): Also pass parameter value to
23522 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
23523 appropriate.
23524 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
23525 (ipa_read_indirect_edge_info): Likewise.
23526 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
23527 (ipa_load_from_parm_agg): Likewise.
23528
23529 2016-05-18 Jiong Wang <jiong.wang@arm.com>
23530
23531 PR rtl-optimization/71150
23532 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
23533 check.
23534
23535 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
23536
23537 PR target/70915
23538 * config/rs6000/constraints.md (wE constraint): New constraint
23539 for a vector constant that can be loaded with XXSPLTIB.
23540 (wM constraint): New constraint for a vector constant of a 1's.
23541 (wS constraint): New constraint for a vector constant that can be
23542 loaded with XXSPLTIB and a vector sign extend instruction.
23543 * config/rs6000/predicates.md (xxspltib_constant_split): New
23544 predicates for wE/wS constraints.
23545 (xxspltib_constant_nosplit): Likewise.
23546 (easy_vector_constant): Add support for constants that can be
23547 loaded via XXSPLTIB.
23548 (all_ones_constant): New predicate for vector constant with all
23549 1's set.
23550 (splat_input_operand): Add support for ISA 3.0 word splat operations.
23551 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
23552 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
23553 instruction and possibly with a sign extension.
23554 (output_vec_const_move): Add support for XXSPLTIB. If we are
23555 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
23556 instead of XXLXOR/XXLORC.
23557 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
23558 operations.
23559 (rs6000_legitimize_reload_address): Likewise.
23560 (rs6000_output_move_128bit): Use output_vec_const_move to emit
23561 constants.
23562 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
23563 combine VSX_M and VSX_M2 into one iterator.
23564 (VSX_M2): Likewise.
23565 (VSINT_84): New iterators for loading constants with XXSPLTIB.
23566 (VSINT_842): Likewise.
23567 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
23568 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
23569 XXSPLTIB instruction.
23570 (xxspltib_<mode>_nosplit): Likewise.
23571 (xxspltib_<mode>_split): New insn to load up constants with
23572 XXSPLTIB and a sign extend instruction.
23573 (vsx_mov<mode>): Replace single move that handled all vector types
23574 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
23575 moves (when -mvsx-timode is in effect) into the main vector
23576 moves. Eliminate separate moves for <VSr> <VSa>, where the
23577 preferred register class (<VSr>) is listed first, and the
23578 secondary register class (<VSa>) is listed second with a '?' to
23579 discourage use. Prefer loading 0/-1 in any VSX register for ISA
23580 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
23581 that if the register was involved in a slow operation, the
23582 clear/set operation does not wait for the slow operation to
23583 finish. Adjust the length attributes for 32-bit mode. Use
23584 rs6000_output_move_128bit and drop the use of the string
23585 instructions for 32-bit movti when -mvsx-timode is in effect. Use
23586 spacing so that the alternatives and attributes don't generate
23587 long lines, and put things in columns, so that it is easier to
23588 match up the operands and attributes with the insn alternatives.
23589 (vsx_mov<mode>_64bit): Likewise.
23590 (vsx_mov<mode>_32bit): Likewise.
23591 (vsx_movti_64bit): Fold movti into normal vector moves.
23592 (vsx_movti_32bit): Likewise.
23593 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
23594 splat instructions.
23595 (vsx_splat_v4si_internal): Likewise.
23596 (vsx_splat_v4sf_internal): Likewise.
23597 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
23598 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
23599 extend vector elements.
23600 (vsx_sign_extend_hi_<mode>): Likewise.
23601 (vsx_sign_extend_si_v2di): Likewise.
23602 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
23603 declaration.
23604 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
23605 constraints. Add trailing period to wL documentation.
23606
23607 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
23608
23609 PR middle-end/71020
23610 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
23611 * tree-dfa.c (replace_abnormal_ssa_names): New function.
23612 * tree-call-cdce.c: Include tree-dfa.h.
23613 (can_guard_call_p): New function, extracted from...
23614 (can_use_internal_fn): ...here.
23615 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
23616 and return void.
23617 (shrink_wrap_one_built_in_call): Likewise.
23618 (use_internal_fn): Likewise.
23619 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
23620 and return void. Call replace_abnormal_ssa_names.
23621 (pass_call_cdce::execute): Check can_guard_call_p during the
23622 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
23623 will always change something.
23624
23625 2016-05-18 Martin Jambor <mjambor@suse.cz>
23626
23627 PR ipa/70646
23628 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
23629 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
23630
23631 2016-05-18 Martin Jambor <mjambor@suse.cz>
23632
23633 PR ipa/70646
23634 * ipa-inline.h (condition): New field size.
23635 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
23636 for comaprison and store it into the new condition.
23637 (evaluate_conditions_for_known_args): Use condition size to check
23638 access sizes for all but CHANGED conditions.
23639 (unmodified_parm_1): New parameter size_p, store access size into it.
23640 (unmodified_parm): Likewise.
23641 (unmodified_parm_or_parm_agg_item): Likewise.
23642 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
23643 (set_cond_stmt_execution_predicate): Extract access sizes and store
23644 them to conditions.
23645 (set_switch_stmt_execution_predicate): Likewise.
23646 (will_be_nonconstant_expr_predicate): Likewise.
23647 (will_be_nonconstant_predicate): Likewise.
23648 (inline_read_section): Stream condition size.
23649 (inline_write_summary): Likewise.
23650
23651 2016-05-18 Richard Biener <rguenther@suse.de>
23652
23653 * tree-ssa-loop-im.c (determine_max_movement): Properly add
23654 condition cost to PHI cost instead of total_cost.
23655
23656 2016-05-18 Martin Liska <mliska@suse.cz>
23657
23658 PR fortran/70856
23659 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
23660 merged variables.
23661
23662 2016-05-18 Richard Biener <rguenther@suse.de>
23663
23664 * lto-streamer.h (LTO_major_version): Bump to 6.
23665
23666 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
23667
23668 * function.c (make_split_prologue_seq, make_prologue_seq,
23669 make_epilogue_seq): New functions, factored out from...
23670 (thread_prologue_and_epilogue_insns): Here.
23671
23672 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
23673
23674 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
23675 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
23676 of before. Add a comment.
23677
23678 2016-05-18 Bin Cheng <bin.cheng@arm.com>
23679
23680 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
23681 expression pointer, not pointer to the pointer.
23682
23683 2016-05-18 Jakub Jelinek <jakub@redhat.com>
23684
23685 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
23686 (avx2_pbroadcast<mode>): Add another alternative with v instead
23687 of x constraints in it, using <pbroadcast_evex_isa> isa.
23688 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
23689
23690 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
23691 constraint x instead of v in second alternative, add avx512bw
23692 alternative.
23693
23694 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
23695 constraint x instead of v in second alternative, add avx512bw
23696 alternative.
23697
23698 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
23699 constraint x instead of v in second alternative, add avx512bw
23700 alternative.
23701
23702 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
23703 avx512bw alternative.
23704
23705 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
23706
23707 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
23708 array to 128 chars.
23709 (define_insn "*andnottf3"): Ditto.
23710 (define_insn "*<code><mode>3"/any_logic): Ditto.
23711 (define_insn "*<code>tf3"/any_logic): Ditto.
23712 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
23713 operand to block AVX-512VL insn variant emit when it is not enabled.
23714
23715 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
23716
23717 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
23718 constraint fot SF mode.
23719
23720 2016-05-18 Petr Murzin <petr.murzin@intel.com>
23721 Kirill Yukhin <kirill.yukhin@intel.com>
23722
23723 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
23724 modifiers.
23725 (define_insn "rsqrt14<mode>"): Ditto.
23726 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
23727 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
23728 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
23729 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
23730 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
23731 Ditto.
23732 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
23733 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
23734 * config/i386/i386.c (ix86_print_operand): Expand check for size
23735 override codes for Intel syntax.
23736
23737 2016-05-18 Richard Biener <rguenther@suse.de>
23738
23739 PR tree-optimization/71168
23740 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
23741 initialization earlier.
23742
23743 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
23744
23745 * config/aarch64/aarch64-simd.md
23746 (aarch64_reduc_plus_internal<mode>): Rename to...
23747 (reduc_plus_scal): ...This, and remove previous implementation.
23748
23749 2016-05-18 Richard Biener <rguenther@suse.de>
23750
23751 * passes.def: Put late dse and cd_dce in canonical order.
23752
23753 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
23754
23755 * ipa-inline-transform.c (preserve_function_body_p): Look for
23756 first non-thunk clone.
23757 (save_function_body): Save into first non-thunk.
23758 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
23759 up call stmt id.
23760 (lto_output_node): Inline thunks don't need body in every
23761 partition.
23762 * lto-streamer-in.c: Do not fixup thunk clones.
23763 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
23764 thunks.
23765 * tree-inline.c (copy_bb): Be prepared for target node to be new after
23766 folding suceeds.
23767
23768 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
23769
23770 PR middle-end/63586
23771 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
23772 (reassociate_bb): Call transform_add_to_multiply.
23773
23774 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
23775
23776 * config/aarch64/aarch64.c (all_extensions): Removed unused
23777 static variable.
23778
23779 2016-05-17 Nathan Sidwell <nathan@acm.org>
23780
23781 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
23782 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
23783
23784 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
23785
23786 PR tree-optimization/54579
23787 PR middle-end/55299
23788 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
23789
23790 2016-05-17 Marek Polacek <polacek@redhat.com>
23791
23792 PR ipa/71146
23793 * tree-inline.c (expand_call_inline): Call
23794 maybe_remove_unused_call_args.
23795
23796 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
23797
23798 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
23799 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
23800 * doc/md.texi (fmin@var{m}3): Likewise.
23801
23802 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
23803
23804 * match.pd (X & C): New transformation.
23805
23806 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
23807
23808 * match.pd (~X & Y): New transformation.
23809
23810 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
23811
23812 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
23813 information for new SSA_NAME.
23814 (simplify_conversion_using_ranges): Get range through get_range_info
23815 instead of get_value_range.
23816
23817 2016-05-17 Jiong Wang <jiong.wang@arm.com>
23818
23819 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
23820 Remove inline assembly.
23821 (vmvn_s16): Likewise.
23822 (vmvn_s32): Likewise.
23823 (vmvn_u8): Likewise.
23824 (vmvn_u16): Likewise.
23825 (vmvn_u32): Likewise.
23826 (vmvnq_s8): Likewise.
23827 (vmvnq_s16): Likewise.
23828 (vmvnq_s32): Likewise.
23829 (vmvnq_u8): Likewise.
23830 (vmvnq_u16): Likewise.
23831 (vmvnq_u32): Likewise.
23832 (vmvn_p8): Likewise.
23833 (vmvnq_p16): Likewise.
23834
23835 2016-05-17 Jiong Wang <jiong.wang@arm.com>
23836
23837 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
23838 Use builtin.
23839 (vmul_n_s16): Likewise.
23840 (vmul_n_s32): Likewise.
23841 (vmul_n_u16): Likewise.
23842 (vmul_n_u32): Likewise.
23843 (vmulq_n_f32): Likewise.
23844 (vmulq_n_f64): Likewise.
23845 (vmulq_n_s16): Likewise.
23846 (vmulq_n_s32): Likewise.
23847 (vmulq_n_u16): Likewise.
23848 (vmulq_n_u32): Likewise.
23849
23850 2016-05-17 Jiong Wang <jiong.wang@arm.com>
23851
23852 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
23853 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
23854
23855 2016-05-17 Jiong Wang <jiong.wang@arm.com>
23856
23857 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
23858 to *aarch64_fma4_elt_from_dup<mode>.
23859 (*aarch64_fnma4_elt_to_128df): Rename to
23860 *aarch64_fnma4_elt_from_dup<mode>.
23861 * config/aarch64/arm_neon.h (vfma_n_f64): New.
23862 (vfms_n_f32): Likewise.
23863 (vfms_n_f64): Likewise.
23864 (vfmsq_n_f32): Likewise.
23865 (vfmsq_n_f64): Likewise.
23866
23867 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
23868
23869 * wide-int.h: Change fixed_wide_int_storage from class to struct.
23870
23871 2016-05-17 Richard Biener <rguenther@suse.de>
23872
23873 PR tree-optimization/71132
23874 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
23875 Only add control dependences for blocks in the loop.
23876 (build_rdg): Adjust.
23877 (generate_code_for_partition): Return whether loop should
23878 be destroyed and delay that.
23879 (distribute_loop): Likewise.
23880 (pass_loop_distribution::execute): Record loops to be destroyed
23881 and perform delayed destroying of loops.
23882
23883 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23884
23885 PR target/70809
23886 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
23887
23888 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
23889
23890 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
23891
23892 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
23893
23894 PR target/71114
23895 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
23896 insertion point for instructions generated by validize_mem.
23897
23898 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
23899
23900 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
23901 in brackets.
23902
23903 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
23904
23905 * config/aarch64/aarch64.c
23906 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
23907 rather than a macro.
23908
23909 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
23910
23911 * doc/invoke.texi (AArch64 Options): Various updates.
23912
23913 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23914
23915 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
23916 into instrumentation thunks.
23917 * cif-code.def (CIF_CHKP): New.
23918
23919 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
23920
23921 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
23922
23923 2016-05-16 Martin Jambor <mjambor@suse.cz>
23924
23925 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
23926 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
23927
23928 2016-05-16 Marek Polacek <polacek@redhat.com>
23929
23930 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
23931 commentary.
23932
23933 2016-05-16 Martin Jambor <mjambor@suse.cz>
23934
23935 PR hsa/70857
23936 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
23937 the outlined kernel function.
23938
23939 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
23940
23941 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
23942 (ISA_HAS_DLSA): Ditto.
23943
23944 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
23945
23946 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
23947
23948 2016-05-16 Nathan Sidwell <nathan@acm.org>
23949
23950 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
23951 (nvptx_name_replacement): Restore. Add comment.
23952 (write_fn_proto, write_fn_proto_from_insn,
23953 nvptx_output_call_insn): Restore
23954 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
23955
23956 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
23957
23958 * config/aarch64/aarch64.md
23959 (add<mode>3_compareC_cconly_imm): Remove use of %w.
23960 (add<mode>3_compareC_imm): Likewise.
23961 (<optab>si3_uxtw): Split into register and immediate variants.
23962 (andsi3_compare0_uxtw): Likewise.
23963 (and<mode>3_compare0): Likewise.
23964 (and<mode>3nr_compare0): Likewise.
23965 (stack_protect_test_<mode>): Don't use %x for memory operands.
23966
23967 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
23968
23969 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
23970
23971 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
23972
23973 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
23974 Split integer shifts into shift_reg and bfm.
23975 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
23976 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
23977 (ror<mode>3_insn): Likewise.
23978 (<optab>si3_insn_uxtw): Likewise.
23979 (<optab><mode>3_insn): Change to rotate_imm.
23980 (extr<mode>5_insn_alt): Likewise.
23981 (extrsi5_insn_uxtw): Likewise.
23982 (extrsi5_insn_uxtw_alt): Likewise.
23983
23984 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
23985
23986 * doc/tm.texi: Regenerate.
23987 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
23988 (TARGET_INVALID_RETURN_TYPE): Remove.
23989 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
23990 TARGET_INVALID_RETURN_TYPE.
23991 * target.def (invalid_parameter_type): Remove.
23992 (invalid_return_type): Remove.
23993
23994 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23995
23996 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
23997 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
23998 calls from thunk.
23999 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
24000 gimple body.
24001 (preserve_function_body_p): No need to preserve function body
24002 * cif-codes.def (CIF_THUNK): Remove.
24003 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
24004
24005 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
24006
24007 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
24008
24009 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
24010
24011 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
24012 for thunks.
24013
24014 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
24015
24016 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
24017 (inline_small_functions): Do not look for function symbol when
24018 resetting caches.
24019
24020 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
24021
24022 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
24023 of inline thunks
24024
24025 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
24026 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24027 Jiong Wang <jiong.wang@arm.com>
24028
24029 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
24030 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
24031 Define __ARM_FP16_ARGS when appropriate.
24032 * config/arm/arm.c (arm_invalid_parameter_type): Remove
24033 declaration.
24034 (arm_invalid_return_type): Likewise.
24035 (TARGET_INVALID_PARAMETER_TYPE): Remove.
24036 (TARGET_INVALID_RETURN_TYPE): Remove.
24037 (aapcs_vfp_sub_candidate): Allow HFmode.
24038 (aapcs_vfp_allocate): Add comment. Support HFmode.
24039 (aapcs_vfp_allocate_return_reg): Likewise.
24040 (struct aapcs_cp_arg_layout): Slightly reword comments for
24041 is_return_candidate and allocate_return_reg.
24042 (output_mov_vfp): Update assert.
24043 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
24044 condition.
24045 (arm_invalid_parameter_type): Remove.
24046 (amr_invalid_return_type): Remove.
24047 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
24048 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
24049 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
24050
24051 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
24052
24053 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
24054 * config/aarch64/arch64-protos.h
24055 (aarch64_legitimize_reload_address): Remove.
24056 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
24057 Remove.
24058
24059 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
24060
24061 * configure.ac: Add ACX_NONCANONICAL_HOST.
24062 * configure: Regenerate.
24063 * Makefile.in: Set host_noncanonical.
24064
24065 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
24066
24067 PR target/71097
24068 * config/i386/i386.md (*movtf_internal): Before register allocation,
24069 do not allow FP constants for CM_MEDIUM memory model, allow only
24070 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
24071 (*movxf_internal): Ditto.
24072 (*movdf_internal): Ditto.
24073 (*movsf_internal): Ditto.
24074
24075 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
24076
24077 PR rtl-optimization/67483
24078 * combine.c (make_compound_operation): Don't call extract_left_shift
24079 with negative shift amounts.
24080
24081 2016-05-13 Jakub Jelinek <jakub@redhat.com>
24082
24083 PR bootstrap/71071
24084 * fold-const.c (fold_checksum_tree): Allow modification
24085 of TYPE_ALIAS_SET during folding.
24086
24087 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
24088 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
24089 (ix86_split_to_parts): Likewise. Fix up formatting.
24090
24091 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
24092
24093 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
24094 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
24095 printf format.
24096
24097 2016-05-13 Nathan Sidwell <nathan@acm.org>
24098
24099 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
24100 (nvptx_name_replacement): Delete.
24101 (write_fn_proto, write_fn_proto_from_insn,
24102 nvptx_output_call_insn): Remove nvptx_name_replacement call.
24103 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
24104 * langhooks.c (add_builtin_funcction_common): Call
24105 targetm.mangle_decl_assembler_name.
24106
24107 * config/nvptx/nvptx.c (write_fn_proto): Handle
24108 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
24109
24110 2016-05-13 Martin Liska <mliska@suse.cz>
24111
24112 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
24113 and PRIu64 in printf format.
24114
24115 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24116
24117 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
24118 comment.
24119
24120 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24121
24122 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
24123 Change --param max-completely-peeled-times to
24124 --param max-completely-peel-times in dump file printing.
24125
24126 2016-05-13 Richard Biener <rguenther@suse.de>
24127
24128 PR tree-optimization/42587
24129 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
24130 (find_bswap_or_nop_1): Likewise.
24131 (bswap_replace): Likewise.
24132
24133 2016-05-13 Martin Liska <mliska@suse.cz>
24134
24135 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
24136 Initialize a variable with default value.
24137
24138 2016-05-13 Martin Liska <mliska@suse.cz>
24139
24140 * doc/invoke.texi: Enhance explanation of error recovery
24141 of sanitizers.
24142
24143 2016-05-13 Martin Liska <mliska@suse.cz>
24144
24145 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
24146 (struct cost_pair): Change inv_expr_id (int) to inv_expr
24147 (iv_inv_expr_ent *).
24148 (struct iv_inv_expr_ent): Comment struct fields.
24149 (sort_iv_inv_expr_ent): New function.
24150 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
24151 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
24152 a hash_map between iv_inv_expr_ent and number of usages.
24153 (niter_for_exit): Fix coding style.
24154 (tree_ssa_iv_optimize_init): Use renamed variable.
24155 (determine_base_object): Fix coding style.
24156 (alloc_iv): Likewise.
24157 (find_interesting_uses_outside): Likewise.
24158 (add_candidate_1): Likewise.
24159 (add_standard_iv_candidates): Likewise.
24160 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
24161 (prepare_decl_rtl): Fix coding style.
24162 (get_address_cost): Likewise.
24163 (get_shiftadd_cost): Likewise.
24164 (force_expr_to_var_cost): Likewise.
24165 (compare_aff_trees): Likewise.
24166 (get_expr_id): Restructure the function.
24167 (get_loop_invariant_expr_id): Renamed to
24168 get_loop_invariant_expr.
24169 (get_computation_cost_at): Replace usage of inv_expr_id with
24170 inv_expr.
24171 (get_computation_cost): Likewise.
24172 (determine_group_iv_cost_generic): Likewise.
24173 (determine_group_iv_cost_address): Likewise.
24174 (iv_period): Fix coding style.
24175 (iv_elimination_compare_lt): Likewise.
24176 (may_eliminate_iv): Likewise.
24177 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
24178 inv_expr.
24179 (determine_group_iv_costs): Dump invariant expressions.
24180 (iv_ca_recount_cost): Use the newly added hash_map.
24181 (iv_ca_set_remove_invariants): Fix coding style.
24182 (iv_ca_set_add_invariants): Fix coding style.
24183 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
24184 invariants.
24185 (iv_ca_set_cp): Likewise.
24186 (iv_ca_new): Initialize the newly added hash_map and remove
24187 initialization of fields.
24188 (iv_ca_free): Delete the hash_map.
24189 (iv_ca_dump): Dump invariant expressions.
24190 (iv_ca_extend): Fix coding style.
24191 (try_add_cand_for): Likewise.
24192 (create_new_ivs): Dump information about # of avg iterations and
24193 # of used invariant expressions.
24194 (rewrite_use_compare): Fix coding style.
24195 (free_loop_data): Set default value for max_inv_expr_id.
24196
24197 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
24198
24199 * cse.c (rest_of_handle_cse): Use cleanup_cfg
24200 returned value cse_cfg_altered computation.
24201 (rest_of_handle_cse2): Likewise.
24202 (rest_of_handle_cse_after_global_opts): Likewise.
24203
24204 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24205
24206 PR target/53440
24207 * config/arm/arm.c (arm32_output_mi_thunk): New.
24208 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
24209 to split Thumb1 vs TARGET_32BIT functionality.
24210 (arm_thumb1_mi_thunk): New.
24211
24212 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24213
24214 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
24215 to true.
24216
24217 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24218
24219 PR target/71080
24220 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
24221
24222 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
24223
24224 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
24225 (expand_builtin_trap): Emit a regular call.
24226 (set_builtin_user_assembler_name): Remove obsolete cases.
24227 * dse.c (scan_insn): Adjust.
24228 * except.c: Include calls.h.
24229 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
24230 emit a regular call to setjmp.
24231 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
24232 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
24233 (emit_block_move_via_libcall): Delete.
24234 (block_move_fn): Delete.
24235 (init_block_move_fn): Likewise.
24236 (emit_block_move_libcall_fn): Likewise.
24237 (emit_block_op_via_libcall): New function.
24238 (set_storage_via_libcall): Tidy up and use memset builtin.
24239 (block_clear_fn): Delete.
24240 (init_block_clear_fn): Likewise.
24241 (clear_storage_libcall_fn): Likewise.
24242 (expand_assignment): Call emit_block_move_via_libcall.
24243 Do not include gt-expr.h.
24244 * expr.h (emit_block_op_via_libcall): Declare.
24245 (emit_block_copy_via_libcall): New inline function.
24246 (emit_block_move_via_libcall): Likewise.
24247 (emit_block_comp_via_libcall): Likewise.
24248 (block_clear_fn): Delete.
24249 (init_block_move_fn): Likewise.
24250 (init_block_clear_fn): Likewise.
24251 (emit_block_move_via_libcall): Likewise.
24252 (set_storage_via_libcall): Add default parameter value.
24253 * libfuncs.h (enum libfunc_index): Remove obsolete values.
24254 (abort_libfunc): Delete.
24255 (memcpy_libfunc): Likewise.
24256 (memmove_libfunc): Likewise.
24257 (memcmp_libfunc): Likewise.
24258 (memset_libfunc): Likewise.
24259 (setbits_libfunc): Likewise.
24260 (setjmp_libfunc): Likewise.
24261 (longjmp_libfunc): Likewise.
24262 (profile_function_entry_libfunc): Likewise.
24263 (profile_function_exit_libfunc): Likewise.
24264 (gcov_flush_libfunc): Likewise.
24265 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
24266 and DECL_VISIBILITY on the declaration.
24267 (init_optabs): Do not initialize obsolete libfuncs.
24268 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
24269 * tree-core.h (ECF_RET1): Define.
24270 (ECF_TM_PURE): Adjust.
24271 (ECF_TM_BUILTIN): Likewise.
24272 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
24273 (build_common_builtin_nodes): Initialize abort builtin.
24274 Add ECF_RET1 on memcpy, memmove and memset builtins.
24275 Pass final flags for alloca and alloca_with_align builtins.
24276 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
24277 obsolete builtins.
24278 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
24279 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
24280 set_storage_via_libcall and call emit_block_copy_via_libcall.
24281
24282 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
24283
24284 * config/i386/i386.md (*call_got_x32): Change operand 0 to
24285 DImode before it is passed to ix86_output_call_operand.
24286 (*call_value_got_x32): Ditto for operand 1.
24287
24288 2016-05-12 Jiong Wang <jiong.wang@arm.com>
24289
24290 PR rtl-optimization/70904
24291 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
24292 reload for wide mode.
24293
24294 2016-05-12 Marek Polacek <polacek@redhat.com>
24295
24296 PR c/70756
24297 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
24298 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
24299 * langhooks.h (incomplete_type_error): Likewise.
24300 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
24301 parameter, pass it down to incomplete_type_error.
24302 * tree.h (size_in_bytes): New inline overload.
24303 (size_in_bytes_loc): Renamed from size_in_bytes.
24304
24305 2016-05-12 Richard Biener <rguenther@suse.de>
24306
24307 PR tree-optimization/71059
24308 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
24309 nary before looking up or entering the expression into the VN
24310 hashes.
24311 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
24312 Make sure to re-use NARYs without result as inserted by
24313 phi-translation.
24314
24315 2016-05-12 Richard Biener <rguenther@suse.de>
24316
24317 PR tree-optimization/71062
24318 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
24319 field.
24320 * tree-ssa-structalias.c (set_uids_in_ptset): Set
24321 vars_contains_restrict if the var is a restrict tag.
24322 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
24323 do not disambiguate pointers against it.
24324 (dump_points_to_solution): Re-structure and adjust for new
24325 vars_contains_restrict flag.
24326 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
24327
24328 2016-05-12 Martin Liska <mliska@suse.cz>
24329
24330 * doc/invoke.texi: Explain connection between
24331 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
24332
24333 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
24334
24335 PR tree-optimization/71006
24336 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
24337 consider COND_EXPR as a mask producer.
24338
24339 2016-05-12 Marek Polacek <polacek@redhat.com>
24340
24341 PR driver/71063
24342 * opts.c (common_handle_option): Detect missing argument for --help^.
24343
24344 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24345
24346 PR target/70830
24347 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
24348 when popping the PC and within an interrupt handler routine.
24349 Add missing tab to output of "ldmfd".
24350 (output_return_instruction): Output LDMFD with SP update rather
24351 than POP when returning from interrupt handler.
24352
24353 2016-05-12 Jakub Jelinek <jakub@redhat.com>
24354
24355 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
24356 TARGET_64BIT && TARGET_AVX512DQ.
24357 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
24358 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
24359 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
24360 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
24361 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
24362 (*vec_extractv4si_zext): Add avx512dq alternative.
24363 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
24364 use v instead of x constraint in other alternatives where possible.
24365
24366 * config/i386/sse.md (sse2_loadld): Use v instead of x
24367 constraint in alternatives 0,1,4.
24368
24369 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
24370 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
24371 v constraints instead of x and <pinsr_evex_isa> isa attribute.
24372
24373 PR target/71019
24374 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
24375 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
24376 is not emitted unless TARGET_AVX512BW.
24377 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
24378 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
24379 for the result operand.
24380
24381 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
24382 constraint instead of x in avx alternatives. Use maybe_evex instead
24383 of vex prefix.
24384
24385 * config/i386/constraints.md (Yv): New constraint.
24386 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
24387 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
24388 * config/i386/i386.md (avx512fvecmode): New mode attr.
24389 (*pushtf): Use v constraint instead of x.
24390 (*movtf_internal): Likewise. For TARGET_AVX512VL and
24391 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
24392 (*absneg<mode>2): Use Yv constraint instead of x constraint.
24393 (*absnegtf2_sse): Likewise.
24394 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
24395 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
24396 avx512f alternatives.
24397 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
24398
24399 2016-05-12 Richard Biener <rguenther@suse.de>
24400
24401 PR tree-optimization/71060
24402 * tree-data-ref.c (initialize_data_dependence_relation): Do not
24403 require exact match of DR_BASE_OBJECT but only matching address and
24404 type.
24405
24406 2016-05-12 Richard Biener <rguenther@suse.de>
24407
24408 PR tree-optimization/70986
24409 * cfganal.c: Include cfgloop.h.
24410 (dfs_find_deadend): Prefer to take edges exiting loops.
24411
24412 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24413
24414 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
24415 compile and run time.
24416
24417 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
24418
24419 PR c/43651
24420 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
24421
24422 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
24423
24424 * config/i386/i386.c (legitimize_pic_address): Use
24425 copy_to_suggested_reg instead of gen_movsi.
24426
24427 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
24428
24429 * config/rs6000/predicates.md (quad_memory_operand): Move most of
24430 the code into quad_address_p and call it to share code with
24431 vsx_quad_dform_memory_operand.
24432 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
24433 d-form support.
24434 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
24435 bit instead of being a separate word. Split -mpower9-dform into
24436 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
24437 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
24438 for the register class supporting 128-bit quad word memory offsets.
24439 (mode_supports_vsx_dform_quad): Helper function to return if the
24440 register class uses quad word memory offsets.
24441 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
24442 (rs6000_debug_reg_global): Always print if we are using LRA or not.
24443 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
24444 instructions are enabled, set up the appropriate addr_masks for
24445 128-bit types.
24446 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
24447 -mpower9-dform-scalar, instead of -mpower9-dform.
24448 (rs6000_option_override_internal): Split -mpower9-dform into two
24449 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
24450 -mpower9-dform switch sets or clears both. If we are not using
24451 the LRA register allocator, do not enable -mpower9-dform-vector by
24452 default. If we are using LRA, enable -mpower9-dform-vector and
24453 -mvsx-timode if it is appropriate. Issue a warning if either
24454 -mpower9-dform-vector or -mvsx-timode are explicitly used without
24455 enabling LRA.
24456 (quad_address_offset_p): New helper function to return if the
24457 offset is legal for quad word memory instructions.
24458 (quad_address_p): New function to determin if GPR or vector
24459 register quad word memory addresses are legal.
24460 (mem_operand_gpr): Validate quad word address offsets.
24461 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
24462 d-form (register + offset) instructions.
24463 (offsettable_ok_by_alignment): Likewise.
24464 (rs6000_legitimate_offset_address_p): Likewise.
24465 (legitimate_lo_sum_address_p): Likewise.
24466 (rs6000_legitimize_address): Likewise.
24467 (rs6000_legitimize_reload_address): Add more debug statements for
24468 -mdebug=addr.
24469 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
24470 d-form instructions.
24471 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
24472 d-form instructions. Distinguish different cases in debug
24473 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
24474 d-form instructions.
24475 (rs6000_preferred_reload_class): Likewise.
24476 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
24477 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
24478 of the ISA 2.06 indexed memory instructions.
24479 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
24480 use them to save/restore the saved vector registers instead of
24481 using Altivec instructions.
24482 (rs6000_emit_epilogue): Likewise.
24483 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
24484 (rs6000_opt_masks): Split -mpower9-dform into
24485 -mpower9-dform-scalar and -mpower9-dform-vector.
24486 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
24487 was not selected.
24488 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
24489 ISA 3.0 vector indexed memory instructions, and fold the code into
24490 the normal mov<mode> patterns.
24491 (p9_vecstore_<mode>): Likewise.
24492 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
24493 instructions.
24494 (vsx_movti_64bit): Likewise.
24495 (vsx_movti_32bit): Likewise.
24496 * config/rs6000/constraints.md (wO constraint): New constraint for
24497 ISA 3.0 vector d-form support.
24498 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
24499 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
24500 include -mpower9-dform-vector until we switch over to LRA.
24501 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
24502 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
24503 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
24504 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
24505 for -mpower9-dform and -mlra.
24506 * doc/md.texi (wO constraint): Document wO constraint.
24507
24508 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
24509
24510 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
24511 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
24512 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
24513 Move handling of non-insn arguments inline into the sole user:
24514 (output_trans_func): ...here.
24515 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
24516 in emitted function prototype.
24517 (output_internal_insn_latency_func): Ditto. Simplify.
24518 (output_internal_maximal_insn_latency_func): Ditto. Delete
24519 always-unused argument.
24520 (output_insn_latency_func): Ditto.
24521 (output_maximal_insn_latency_func): Ditto.
24522
24523 2016-05-11 Richard Biener <rguenther@suse.de>
24524
24525 PR tree-optimization/71055
24526 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
24527 sth with precision not equal to access size verify we don't chop
24528 off bits.
24529
24530 2016-05-11 Richard Biener <rguenther@suse.de>
24531
24532 PR debug/71057
24533 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
24534 (dwarf2out_finish): Move retry_incomplete_types call ...
24535 (dwarf2out_early_finish): ... here.
24536
24537 2016-05-11 Richard Biener <rguenther@suse.de>
24538
24539 PR middle-end/71002
24540 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
24541 if the langhook insists on it.
24542 * fold-const.c (make_bit_field_ref): Add arg for the original
24543 reference and preserve its alias-set.
24544 (decode_field_reference): Take exp by reference and adjust it
24545 to the original memory reference.
24546 (optimize_bit_field_compare): Adjust callers.
24547 (fold_truth_andor_1): Likewise.
24548 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
24549
24550 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
24551
24552 PR middle-end/70807
24553 * cfgrtl.h (delete_insn_and_edges): Now return bool.
24554 * cfgrtl.c (delete_insn_and_edges): Likewise.
24555 * config/i386/i386.c (convert_scalars_to_vector): Remove
24556 redundant code.
24557 * cse.c (cse_insn): Compute cse_cfg_altered.
24558 (delete_trivially_dead_insns): Likewise.
24559 (cse_cc_succs): Likewise.
24560 (rest_of_handle_cse): Free dominance info if required.
24561 (rest_of_handle_cse2): Likewise.
24562 (rest_of_handle_cse_after_global_opts): Likewise.
24563
24564 2016-05-11 Alan Modra <amodra@gmail.com>
24565
24566 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
24567 abi_v4_pass_in_fpr): New functions.
24568 (rs6000_function_arg_boundary): Exclude complex IBM long double
24569 from 64-bit alignment when ABI_V4.
24570 (rs6000_function_arg, rs6000_function_arg_advance_1,
24571 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
24572
24573 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
24574
24575 PR rtl-optimization/71028
24576 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
24577 jump with just a return in the fallthrough block if the branch
24578 block contains just a return as well.
24579
24580 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
24581
24582 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
24583 * match.pd ((X & Y) ^ Y): ... this.
24584 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
24585 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
24586
24587 2016-05-10 David Malcolm <dmalcolm@redhat.com>
24588
24589 * read-md.c (require_char_ws): New function.
24590 (read_string): Simplify using require_char_ws.
24591 (handle_constants): Likewise.
24592 (handle_enum): Likewise.
24593 (handle_file): Likewise.
24594 * read-md.h (require_char_ws): New declaration.
24595 * read-rtl.c (read_conditions): Simplify using require_char_ws.
24596 (read_mapping): Likewise.
24597 (read_rtx_code): Likewise.
24598 (read_nested_rtx): Likewise.
24599
24600 2016-05-10 James Norris <jnorris@codesourcery.com>
24601
24602 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
24603 if offloading is enabled and -fopenacc or -fopenmp is specified.
24604 (CRTOFFLOADEND): Likewise.
24605 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
24606 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
24607
24608 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
24609
24610 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
24611 gotoff_operand code paths. Use copy_to_suggested_regs and
24612 expand_simple_binop where appropriate. Cleanup.
24613
24614 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
24615
24616 PR target/70799
24617 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
24618 integer constants.
24619 (dimode_scalar_chain::vector_const_cost): New.
24620 (dimode_scalar_chain::compute_convert_gain): Handle constants.
24621 (dimode_scalar_chain::convert_op): Likewise.
24622 (dimode_scalar_chain::convert_insn): Likewise.
24623
24624 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
24625
24626 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
24627 unary operation, not a binary one.
24628
24629 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
24630
24631 PR middle-end/70877
24632 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
24633 calls with type casted fndecl.
24634
24635 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
24636
24637 PR tree-optimization/70786
24638 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
24639 * calls.c (initialize_argument_information): Bind bounds
24640 with corresponding args passed by reference.
24641
24642 2016-05-10 Jakub Jelinek <jakub@redhat.com>
24643
24644 PR target/70927
24645 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
24646 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
24647 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
24648 accordingly.
24649
24650 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24651
24652 PR target/70963
24653 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
24654 code for a zero scale factor.
24655 (vsx_xvcvdpuxds_scale): Likewise.
24656
24657 2016-05-10 David Malcolm <dmalcolm@redhat.com>
24658
24659 * diagnostic-show-locus.c (layout::layout): Call show_ruler
24660 if show_ruler_p was set on the context.
24661 (layout::show_ruler): New method.
24662 * diagnostic.h (struct diagnostic_context): Add field
24663 "show_ruler_p".
24664
24665 2016-05-10 Richard Biener <rguenther@suse.de>
24666
24667 PR tree-optimization/71039
24668 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
24669 (chk_uses): New function.
24670 (propagate_with_phi): Verify we can safely replicate the lhs of an
24671 aggregate assignment on all incoming edges.
24672
24673 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
24674
24675 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
24676 Forward declare.
24677 (rx_atomic_sequence): New class.
24678 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
24679 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
24680 non-inline.
24681 (rx_atomic_sequence::rx_atomic_sequence,
24682 rx_atomic_sequence::~rx_atomic_sequence): New functions.
24683 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
24684 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
24685 CTRLREG_INTB): New constants.
24686 (FETCHOP): New code iterator.
24687 (fethcop_name, fetchop_name2): New iterator code attributes.
24688 (QIHI): New mode iterator.
24689 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
24690 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
24691 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
24692
24693 2016-05-10 Martin Liska <mliska@suse.cz>
24694
24695 * tree-inline.c (remap_dependence_clique): Do not remap
24696 debugging statements.
24697
24698 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24699
24700 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
24701 ("*fixuns_truncdfdi2_z13")
24702 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
24703 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
24704 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
24705
24706 2016-05-10 Richard Biener <rguenther@suse.de>
24707
24708 PR tree-optimization/70497
24709 PR tree-optimization/28367
24710 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
24711 split out from ...
24712 (visit_reference_op_load): ... here.
24713 (vn_reference_lookup_3): Use it to handle subreg-like accesses
24714 with simplified BIT_FIELD_REFs.
24715 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
24716 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
24717 correctly.
24718
24719 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
24720
24721 * dwarf2out.c (add_abstract_origin_attribute): Adjust
24722 documentation comment. For BLOCK nodes, add a
24723 DW_AT_abstract_origin attribute that points to the DIE generated
24724 for the origin BLOCK.
24725 (gen_lexical_block_die): Call add_abstract_origin_attribute for
24726 blocks from inlined functions.
24727
24728 2016-05-10 Alan Modra <amodra@gmail.com>
24729
24730 PR target/70947
24731 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
24732 regrename modifying insns saving lr before __morestack call.
24733 * config/rs6000/rs6000.md (split_stack_return): Similarly for
24734 insns restoring lr after __morestack call.
24735
24736 2016-05-09 Jakub Jelinek <jakub@redhat.com>
24737
24738 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
24739 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
24740 expanders.
24741 * config/i386/sse.md (vec_interleave_high<mode>,
24742 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
24743 <avx512>_vpermt2var<mode>3_maskz): Likewise.
24744
24745 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
24746
24747 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
24748 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
24749 parallel reassociation for power8 and forward.
24750
24751 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
24752
24753 * config/i386/i386.md (absneg splitters with general regs): Use
24754 general_reg_operand predicate.
24755 (btsq peephole2): Use x86_64_immediate_operand to check if new
24756 value is suitable for immediate operand. Generate emitted insn
24757 using RTL expressions.
24758 (btcq peephole2): Ditto.
24759 (btrq peephole2): Ditto. Generate correct immediate operand
24760 for AND masking.
24761
24762 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
24763
24764 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
24765 bitpos.
24766
24767 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
24768
24769 * tree-affine.c (wide_int_constant_multiple_p): Add missing
24770 pointer dereference.
24771
24772 2016-05-09 Richard Biener <rguenther@suse.de>
24773
24774 PR tree-optimization/70985
24775 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
24776 op0 isn't a gimple register.
24777
24778 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
24779
24780 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
24781 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
24782 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
24783 (i6400_fpu_mult): New cpu units.
24784 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
24785 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
24786 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
24787 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
24788 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
24789 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
24790 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
24791 (i6400_msa_long_float4, i6400_msa_long_float5)
24792 (i6400_msa_long_float8, i6400_msa_fdiv_df)
24793 (i6400_msa_fdiv_sf): New reservations.
24794 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
24795 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
24796 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
24797 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
24798 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
24799 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
24800 (msa_short_cmp, msa_short_float2, msa_short_logic3)
24801 (msa_short_store4, msa_long_load, msa_short_store)
24802 (msa_long_logic, msa_long_float2, msa_long_float4)
24803 (msa_long_float5, msa_long_float8, msa_long_mult)
24804 (msa_long_fdiv, msa_long_div): New reservations.
24805
24806 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
24807 Sameera Deshpande <sameera.deshpande@imgtec.com>
24808 Matthew Fortune <matthew.fortune@imgtec.com>
24809 Graham Stott <graham.stott@imgtec.com>
24810 Chao-ying Fu <chao-ying.fu@imgtec.com>
24811
24812 * config.gcc: Add MSA header file for mips*-*-* target.
24813 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
24814 (Ubv8i, Urv8): New constraints.
24815 * config/mips/mips-ftypes.def: Add function types for MSA
24816 builtins.
24817 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
24818 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
24819 * config/mips/mips-msa.md: New file.
24820 * config/mips/mips-protos.h
24821 (mips_split_128bit_const_insns): New prototype.
24822 (mips_msa_idiv_insns): Likewise.
24823 (mips_split_128bit_move): Likewise.
24824 (mips_split_128bit_move_p): Likewise.
24825 (mips_split_msa_copy_d): Likewise.
24826 (mips_split_msa_insert_d): Likewise.
24827 (mips_split_msa_fill_d): Likewise.
24828 (mips_expand_msa_branch): Likewise.
24829 (mips_const_vector_same_val_p): Likewise.
24830 (mips_const_vector_same_bytes_p): Likewise.
24831 (mips_const_vector_same_int_p): Likewise.
24832 (mips_const_vector_shuffle_set_p): Likewise.
24833 (mips_const_vector_bitimm_set_p): Likewise.
24834 (mips_const_vector_bitimm_clr_p): Likewise.
24835 (mips_msa_vec_parallel_const_half): Likewise.
24836 (mips_msa_output_division): Likewise.
24837 (mips_ldst_scaled_shift): Likewise.
24838 (mips_expand_vec_cond_expr): Likewise.
24839 * config/mips/mips.c (enum mips_builtin_type): Add
24840 MIPS_BUILTIN_MSA_TEST_BRANCH.
24841 (mips_gen_const_int_vector_shuffle): New prototype.
24842 (mips_const_vector_bitimm_set_p): New function.
24843 (mips_const_vector_bitimm_clr_p): Likewise.
24844 (mips_const_vector_same_val_p): Likewise.
24845 (mips_const_vector_same_bytes_p): Likewise.
24846 (mips_const_vector_same_int_p): Likewise.
24847 (mips_const_vector_shuffle_set_p): Likewise.
24848 (mips_symbol_insns): Forbid loading symbols via immediate for
24849 MSA.
24850 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
24851 stores.
24852 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
24853 MSA.
24854 (mips_lx_address_p): Add support load indexed address for MSA.
24855 (mips_address_insns): Add calculation of instructions needed for
24856 stores and loads for MSA.
24857 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
24858 CONST_VECTOR for MSA and let it fall through.
24859 (mips_ldst_scaled_shift): New function.
24860 (mips_subword_at_byte): Likewise.
24861 (mips_msa_idiv_insns): Likewise.
24862 (mips_legitimize_move): Validate MSA moves.
24863 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
24864 calculation of costs for MSA division.
24865 (mips_split_move_p): Check if MSA moves need splitting.
24866 (mips_split_move): Split MSA moves if necessary.
24867 (mips_split_128bit_move_p): New function.
24868 (mips_split_128bit_move): Likewise.
24869 (mips_split_msa_copy_d): Likewise.
24870 (mips_split_msa_insert_d): Likewise.
24871 (mips_split_msa_fill_d): Likewise.
24872 (mips_output_move): Handle MSA moves.
24873 (mips_expand_msa_branch): New function.
24874 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
24875 Reinstate 'y' modifier.
24876 (mips_file_start): Add MSA .gnu_attribute.
24877 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
24878 FPRs.
24879 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
24880 (mips_class_max_nregs): Add register size for MSA supported mode.
24881 (mips_cannot_change_mode_class): Allow conversion between MSA
24882 vector modes and TImode.
24883 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
24884 instruction.
24885 (mips_secondary_reload_class): Force MSA loads/stores via memory.
24886 (mips_preferred_simd_mode): Add preffered modes for MSA.
24887 (mips_vector_mode_supported_p): Add MSA supported modes.
24888 (mips_autovectorize_vector_sizes): New function.
24889 (mips_msa_output_division): Likewise.
24890 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
24891 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
24892 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
24893 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
24894 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
24895 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
24896 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
24897 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
24898 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
24899 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
24900 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
24901 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
24902 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
24903 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
24904 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
24905 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
24906 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
24907 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
24908 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
24909 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
24910 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
24911 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
24912 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
24913 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
24914 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
24915 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
24916 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
24917 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
24918 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
24919 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
24920 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
24921 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
24922 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
24923 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
24924 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
24925 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
24926 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
24927 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
24928 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
24929 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
24930 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
24931 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
24932 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
24933 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
24934 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
24935 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
24936 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
24937 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
24938 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
24939 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
24940 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
24941 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
24942 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
24943 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
24944 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
24945 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
24946 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
24947 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
24948 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
24949 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
24950 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
24951 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
24952 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
24953 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
24954 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
24955 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
24956 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
24957 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
24958 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
24959 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
24960 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
24961 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
24962 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
24963 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
24964 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
24965 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
24966 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
24967 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
24968 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
24969 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
24970 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
24971 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
24972 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
24973 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
24974 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
24975 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
24976 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
24977 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
24978 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
24979 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
24980 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
24981 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
24982 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
24983 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
24984 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
24985 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
24986 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
24987 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
24988 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
24989 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
24990 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
24991 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
24992 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
24993 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
24994 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
24995 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
24996 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
24997 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
24998 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
24999 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
25000 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
25001 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
25002 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
25003 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
25004 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
25005 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
25006 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
25007 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
25008 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
25009 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
25010 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
25011 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
25012 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
25013 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
25014 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
25015 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
25016 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
25017 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
25018 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
25019 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
25020 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
25021 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
25022 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
25023 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
25024 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
25025 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
25026 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
25027 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
25028 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
25029 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
25030 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
25031 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
25032 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
25033 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
25034 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
25035 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
25036 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
25037 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
25038 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
25039 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
25040 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
25041 move_v builtins.
25042 (mips_get_builtin_decl_index): New array.
25043 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
25044 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
25045 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
25046 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
25047 (mips_init_builtins): Initialize mips_get_builtin_decl_index
25048 array.
25049 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
25050 hook.
25051 (mips_expand_builtin_insn): Prepare operands for
25052 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
25053 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
25054 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
25055 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
25056 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
25057 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
25058 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
25059 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
25060 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
25061 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
25062 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
25063 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
25064 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
25065 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
25066 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
25067 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
25068 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
25069 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
25070 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
25071 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
25072 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
25073 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
25074 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
25075 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
25076 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
25077 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
25078 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
25079 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
25080 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
25081 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
25082 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
25083 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
25084 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
25085 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
25086 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
25087 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
25088 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
25089 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
25090 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
25091 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
25092 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
25093 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
25094 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
25095 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
25096 These are set implicitly and an error is reported if overridden.
25097 (mips_expand_builtin_msa_test_branch): New function.
25098 (mips_expand_msa_shuffle): Likewise.
25099 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
25100 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
25101 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
25102 (mips_expand_vec_unpack): Add support for MSA.
25103 (mips_expand_vector_init): Likewise.
25104 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
25105 instead of const0_rtx.
25106 (mips_msa_vec_parallel_const_half): New function.
25107 (mips_gen_const_int_vector): Likewise.
25108 (mips_gen_const_int_vector_shuffle): Likewise.
25109 (mips_expand_msa_cmp): Likewise.
25110 (mips_expand_vec_cond_expr): Likewise.
25111 * config/mips/mips.h
25112 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
25113 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
25114 specified.
25115 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
25116 (ISA_HAS_MSA): New macro.
25117 (UNITS_PER_MSA_REG): Likewise.
25118 (BITS_PER_MSA_REG): Likewise.
25119 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
25120 (MSA_REG_FIRST): New macro.
25121 (MSA_REG_LAST): Likewise.
25122 (MSA_REG_NUM): Likewise.
25123 (MSA_REG_P): Likewise.
25124 (MSA_REG_RTX_P): Likewise.
25125 (MSA_SUPPORTED_MODE_P): Likewise.
25126 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
25127 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
25128 * config/mips/mips.md: Include mips-msa.md.
25129 (alu_type): Add simd_add.
25130 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
25131 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
25132 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
25133 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
25134 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
25135 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
25136 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
25137 simd_move, simd_load, simd_store. Choose "multi" for moves
25138 for "qword_mode".
25139 (qword_mode): New attribute.
25140 (insn_count): Add instruction count for quad moves.
25141 Increase the count for MIPS SIMD division.
25142 (UNITMODE): Add UNITMODEs for vector types.
25143 (addsub): New code iterator.
25144 * config/mips/mips.opt (mmsa): New option.
25145 * config/mips/msa.h: New file.
25146 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
25147 specified.
25148 * config/mips/mti-linux.h: Likewise.
25149 * config/mips/predicates.md
25150 (const_msa_branch_operand): New constraint.
25151 (const_uimm3_operand): Likewise.
25152 (const_uimm4_operand): Likewise.
25153 (const_uimm5_operand): Likewise.
25154 (const_uimm8_operand): Likewise.
25155 (const_imm5_operand): Likewise.
25156 (aq10b_operand): Likewise.
25157 (aq10h_operand): Likewise.
25158 (aq10w_operand): Likewise.
25159 (aq10d_operand): Likewise.
25160 (const_m1_operand): Likewise.
25161 (reg_or_m1_operand): Likewise.
25162 (const_exp_2_operand): Likewise.
25163 (const_exp_4_operand): Likewise.
25164 (const_exp_8_operand): Likewise.
25165 (const_exp_16_operand): Likewise.
25166 (const_vector_same_val_operand): Likewise.
25167 (const_vector_same_simm5_operand): Likewise.
25168 (const_vector_same_uimm5_operand): Likewise.
25169 (const_vector_same_uimm6_operand): Likewise.
25170 (const_vector_same_uimm8_operand): Likewise.
25171 (par_const_vector_shf_set_operand): Likewise.
25172 (reg_or_vector_same_val_operand): Likewise.
25173 (reg_or_vector_same_simm5_operand): Likewise.
25174 (reg_or_vector_same_uimm6_operand): Likewise.
25175 * doc/extend.texi (MIPS SIMD Architecture Functions): New
25176 section.
25177 * doc/invoke.texi (-mmsa): Document new option.
25178
25179 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25180
25181 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
25182 * configure: Regenerate.
25183 * config.in: Regenerate.
25184 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
25185 on -fvtable-verify.
25186 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
25187 (ENDFILE_VTV_SPEC): Define.
25188
25189 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
25190
25191 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
25192 registers in all interrupt handlers if necessary.
25193 (rl78_option_override): Add warning.
25194 (MUST_SAVE_MDUC_REGISTERS): New macro.
25195 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
25196 * config/rl78/rl78.c (check_mduc_usage): New function.
25197 (mduc_regs): New structure to hold MDUC register data.
25198 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
25199 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
25200 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
25201 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
25202 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
25203 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
25204
25205 2016-05-09 Bin Cheng <bin.cheng@arm.com>
25206
25207 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
25208 (tree-ssa-loop-niter.h): Ditto.
25209 (idx_within_array_bound, ref_within_array_bound): New functions.
25210 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
25211 Factor out check on writable base object to ...
25212 (base_object_writable): ... here.
25213
25214 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25215
25216 * config/arm/arm.md (probe_stack): Add modes to set source
25217 and destination.
25218
25219 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
25220
25221 * regrename.c (base_reg_class_for_rename): New static function.
25222 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
25223
25224 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
25225
25226 * cgraph.c (thunk_adjust): Export.
25227 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
25228 * cgraphunit.c (thunk_adjust): Export.
25229 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
25230 thunks.
25231 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
25232 inlinable.
25233 * tree-inline.c (expand_call_inline): Expand thunks inline.
25234
25235 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
25236
25237 PR target/70998
25238 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
25239 (*sse2_vd_cvtss2sd): Ditto.
25240 * config/i386/i386.md
25241 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
25242 Generate *sse2_vd_cvtsd2ss pattern.
25243 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
25244 Generate *sse2_vd_cvtss2sd pattern.
25245
25246 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
25247
25248 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
25249 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
25250 users.
25251
25252 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
25253
25254 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
25255 * config/sh/sh.c: Define and declare variables on first use throughout
25256 the file.
25257 (current_function_interrupt): Change to bool type.
25258 (frame_insn): Rename to emit_frame_insn and update users.
25259 (push_regs): Use bool for 'interrupt_handler' argument.
25260 (save_schedule_s): Remove.
25261 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
25262 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
25263 targetm.asm_out.unaligned_op.di.
25264 (gen_far_branch): Remove redundant forward declaration.
25265 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
25266 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
25267 (sh_set_return_address, sh_function_ok_for_sibcall,
25268 scavenge_reg): Update comments.
25269 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
25270 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
25271 (sh_attr_renesas_p): Remove unnecessary parentheses.
25272 (branch_dest): Simplify.
25273 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
25274 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
25275 (CUMULATIVE_ARGS): Change macro to typedef.
25276 (current_function_interrupt): Change to bool type.
25277 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
25278 Surround with __cplusplus ifdef.
25279 (sh_compare_op0, sh_compare_op1): Remove.
25280 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
25281
25282 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
25283
25284 * config/arm/arm.md (arch): Add neon.
25285 (arch_enabled): Return yes for arch neon when TARGET_NEON.
25286 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
25287 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
25288 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
25289 attributes for alt renumbering. Mark alt 3 as non-predicable.
25290 (thumb2_movdf_vfp): Likewise.
25291
25292 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
25293
25294 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
25295 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
25296 (*andqi_1): Add preferred_for_speed attribute to disparage
25297 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
25298 (*<code>qi_1): Ditto.
25299 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
25300 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
25301 (*ashlqi3_1): Ditto.
25302 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
25303 Add preferred_for_size attribute to disparage alternative 0 and
25304 preferred_for_speed attribute to disparage alternative 1 for
25305 TARGET_PARTIAL_REG_STALL targets.
25306
25307 2016-05-07 Tom de Vries <tom@codesourcery.com>
25308
25309 PR tree-optimization/70956
25310 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
25311 def.
25312
25313 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
25314
25315 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
25316 * config/sh/sh.c (sh_cbranch_distance): Implement it.
25317 * config/sh/sh.md (branch_zero): Remove define_attr.
25318 (define_delay): Disable delay slot if branch distance is one insn.
25319
25320 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
25321
25322 * config/i386/i386.md (LEAMODE): New mode attribute.
25323 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
25324 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
25325 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
25326 operand 2 predicate.
25327 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
25328 (*lea<mode>_general_3): Ditto.
25329 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
25330
25331 2016-05-06 Jakub Jelinek <jakub@redhat.com>
25332
25333 * genmddump.c (main): Convert argv from char ** to const char **.
25334
25335 2016-05-06 David Malcolm <dmalcolm@redhat.com>
25336
25337 * coretypes.h (OVERRIDE): New macro.
25338 (FINAL): New macro.
25339
25340 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
25341
25342 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
25343 allow coalescing if the types are compatible.
25344
25345 2016-05-06 David Malcolm <dmalcolm@redhat.com>
25346
25347 * pass_manager.h (pass_manager::register_pass_name): New method.
25348 (pass_manager::get_pass_by_name): New method.
25349 (pass_manager::create_pass_tab): New method.
25350 (pass_manager::m_name_to_pass_map): New field.
25351 * passes.c (name_to_pass_map): Delete global in favor of field
25352 "m_name_to_pass_map" of pass_manager.
25353 (register_pass_name): Rename from a function to...
25354 (pass_manager::register_pass_name): ...this method, updating
25355 for renaming of global "name_to_pass_map" to field
25356 "m_name_to_pass_map".
25357 (create_pass_tab): Rename from a function to...
25358 (pass_manager::create_pass_tab): ...this method, updating
25359 for renaming of global "name_to_pass_map" to field.
25360 (get_pass_by_name): Rename from a function to...
25361 (pass_manager::get_pass_by_name): ...this method.
25362 (enable_disable_pass): Convert use of get_pass_by_name to
25363 a method call, locating the pass_manager singleton.
25364
25365 2016-05-06 David Malcolm <dmalcolm@redhat.com>
25366
25367 * genattr-common.c (main): Convert argv from char ** to const char **.
25368 * genattr.c (main): Likewise.
25369 * genattrtab.c (main): Likewise.
25370 * genautomata.c (initiate_automaton_gen): Likewise.
25371 (main): Likewise.
25372 * gencodes.c (main): Likewise.
25373 * genconditions.c (main): Likewise.
25374 * genconfig.c (main): Likewise.
25375 * genconstants.c (main): Likewise.
25376 * genemit.c (main): Likewise.
25377 * genenums.c (main): Likewise.
25378 * genextract.c (main): Likewise.
25379 * genflags.c (main): Likewise.
25380 * genmddeps.c (main): Likewise.
25381 * genopinit.c (main): Likewise.
25382 * genoutput.c (main): Likewise.
25383 * genpeep.c (main): Likewise.
25384 * genpreds.c (main): Likewise.
25385 * genrecog.c (main): Likewise.
25386 * gensupport.c (init_rtx_reader_args_cb): Likewise.
25387 (init_rtx_reader_args): Likewise.
25388 * gensupport.h (init_rtx_reader_args_cb): Likewise.
25389 (init_rtx_reader_args): Likewise.
25390 * gentarget-def.c (main): Likewise.
25391 * read-md.c (read_md_files): Likewise.
25392 * read-md.h (read_md_files): Likewise.
25393
25394 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
25395
25396 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
25397 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
25398 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
25399 Remove unused predicate.
25400 (register_and_not_fp_reg_operand): Ditto.
25401
25402 2016-05-06 Martin Liska <mliska@suse.cz>
25403
25404 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
25405 instead of vec as the vector is local to the function.
25406
25407 2016-05-06 Jakub Jelinek <jakub@redhat.com>
25408
25409 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
25410 avx512bw alternative.
25411
25412 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
25413 before the ashr<mode>3 pattern.
25414
25415 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
25416 v instead of x in vex or maybe_vex alternatives, use
25417 maybe_evex instead of vex in prefix.
25418
25419 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
25420 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
25421 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
25422 in vex or maybe_vex alternatives, use maybe_evex instead of vex
25423 in prefix.
25424
25425 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
25426 v instead of x in vex or maybe_vex alternatives, use
25427 maybe_evex instead of vex in prefix.
25428
25429 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
25430 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
25431 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
25432 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
25433 alternatives, use maybe_evex instead of vex in prefix.
25434
25435 * config/i386/sse.md (vec_interleave_lowv4sf,
25436 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
25437 v instead of x in vex or maybe_vex alternatives, use
25438 maybe_evex instead of vex in prefix.
25439
25440 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
25441 v instead of x in vex or maybe_vex alternatives, use
25442 maybe_evex instead of vex in prefix.
25443
25444 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
25445 v constraint instead of x.
25446
25447 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
25448
25449 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
25450 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
25451 equality first.
25452
25453 2016-05-06 Richard Biener <rguenther@suse.de>
25454
25455 PR tree-optimization/70948
25456 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
25457 Properly clobber all fields of va_list for __builtin_va_start.
25458
25459 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
25460
25461 PR debug/70935
25462 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
25463 loop latch destination.
25464
25465 2016-05-06 Martin Liska <mliska@suse.cz>
25466
25467 * tree-ssa-uninit.c: Apply manual changes
25468 to the GNU coding style.
25469 (prune_uninit_phi_opnds): Rename from
25470 prune_uninit_phi_opnds_in_unrealizable_paths.
25471
25472 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25473
25474 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
25475 mspace): Remove deprecated options.
25476 * doc/invoke.texi (SH options): Remove -mspace.
25477
25478 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25479
25480 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
25481
25482 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25483
25484 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
25485 corresponding combine split pattern.
25486
25487 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25488
25489 PR target/58219
25490 * config/sh/predicates.md (long_displacement_mem_operand): New.
25491 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
25492 Add movi20, movi20s alternatives. Adjust length attribute for
25493 alternatives.
25494 (movsi_ie): Allow for any FPU. Adjust length attribute for
25495 alternatives.
25496 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
25497 attribute for alternatives.
25498 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
25499 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
25500 length attribute for alternatives.
25501
25502 2016-05-06 Richard Biener <rguenther@suse.de>
25503
25504 PR tree-optimization/70960
25505 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
25506
25507 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25508
25509 PR target/52933
25510 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
25511 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
25512
25513 2016-05-06 Marek Polacek <polacek@redhat.com>
25514
25515 PR sanitizer/70875
25516 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
25517
25518 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25519
25520 PR target/54089
25521 * config/sh/sh.md (*rotcr): Add another variant.
25522
25523 2016-05-06 Richard Biener <rguenther@suse.de>
25524
25525 PR middle-end/70931
25526 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
25527
25528 2016-05-06 Richard Biener <rguenther@suse.de>
25529
25530 PR middle-end/70941
25531 * fold-const.c (split_tree): Always convert to the original type
25532 before negating.
25533
25534 2016-05-06 Richard Biener <rguenther@suse.de>
25535
25536 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
25537 (fwprop_addr): Likewise.
25538
25539 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
25540
25541 PR target/70873
25542 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
25543 New prototype.
25544 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
25545 * config/i386/i386.md (push mem splitter): Use find_constant_src in
25546 the splitter condition.
25547 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
25548 the splitter condition.
25549 (FP float_extend load splitter): Ditto.
25550
25551 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
25552
25553 * config/i386/i386.md (peehole2 patterns): Change true_regnum
25554 to REGNO in all peephole2 patterns.
25555 (post-reload splitters): Change true_regnum to REGNO in
25556 post-reload splitters.
25557 (zero_extend splitters): Use general_reg_operand and
25558 nonimmediate_gr_operand predicates.
25559
25560 2016-05-05 Jakub Jelinek <jakub@redhat.com>
25561
25562 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
25563 v constraint instead of x.
25564
25565 2016-05-05 Alan Modra <amodra@gmail.com>
25566
25567 PR target/68662
25568 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
25569 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
25570 TARGET_NO_FP_IN_TOC for -mrelocatable.
25571 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
25572 TARGET_RELOCATABLE test.
25573 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25574 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
25575 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
25576 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25577 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
25578 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
25579 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25580 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
25581 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
25582 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
25583 Likewise.
25584 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
25585 (rs6000_stack_info): Likewise.
25586 (rs6000_elf_asm_out_constructor): Likewise.
25587 (rs6000_elf_asm_out_destructor): Likewise.
25588 (rs6000_elf_declare_function_name): Likewise.
25589 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
25590 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
25591 Don't define.
25592
25593 2016-05-05 Alan Modra <amodra@gmail.com>
25594
25595 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
25596
25597 2016-05-05 Alan Modra <amodra@gmail.com>
25598
25599 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
25600 out-of-line gpr restore for one or two regs if that would add
25601 a save of lr.
25602
25603 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
25604
25605 PR target/70873
25606 * config/i386/i386.md
25607 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
25608 Change to post-epilogue_completed late splitter. Use sse_reg_operand
25609 as operand 0 predicate.
25610 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
25611 Ditto.
25612 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
25613 Ditto. Emit the pattern using RTX.
25614
25615 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
25616 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
25617 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
25618 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
25619 Ditto.
25620 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
25621 sse_reg_operand as operand 0 predicate.
25622
25623 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
25624 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
25625 instead of gen_rtx_REG.
25626 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
25627 Ditto.
25628
25629 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
25630
25631 * function.c (emit_use_return_register_into_block): Delete.
25632 (gen_return_pattern): Delete.
25633 (emit_return_into_block): Delete.
25634 (active_insn_between): Delete.
25635 (convert_jumps_to_returns): Delete.
25636 (emit_return_for_exit): Delete.
25637 (thread_prologue_and_epilogue_insns): Delete all code dealing with
25638 simple_return for shrink-wrapped blocks.
25639 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
25640 end of blocks that need one.
25641 (get_unconverted_simple_return): Delete.
25642 (convert_to_simple_return): Delete.
25643 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
25644 (convert_to_simple_return): Ditto.
25645
25646 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
25647
25648 * cfgcleanup.c (bb_is_just_return): New function.
25649 (try_optimize_cfg): Simplify jumps to return, branches to return,
25650 and branches around return.
25651
25652 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
25653
25654 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
25655 branch to a return.
25656
25657 2016-05-04 Jakub Jelinek <jakub@redhat.com>
25658
25659 PR c++/70906
25660 PR c++/70933
25661 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
25662 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
25663 assert flags & OEP_HASH_CHECK, instead of asserting it
25664 never happens. Handle TARGET_EXPR.
25665 * fold-const.c (operand_equal_p): For hash verification,
25666 or in OEP_HASH_CHECK into flags.
25667
25668 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
25669
25670 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
25671 comment.
25672 (compute_samebase_partition_bases): Fix typo.
25673
25674 2016-05-04 Jakub Jelinek <jakub@redhat.com>
25675
25676 * config/i386/sse.md (vec_interleave_highv8sf,
25677 vec_interleave_lowv8sf, vec_interleave_highv4df,
25678 vec_interleave_lowv4df): Remove constraints from expanders.
25679
25680 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
25681
25682 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
25683
25684 * tree-inline.c (expand_call_inline): Fix path dealing with
25685 making lhs of call statement undefined.
25686
25687 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
25688
25689 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
25690 Check availability on NODE, too.
25691 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
25692 (cgraph_node::call_for_symbol_and_aliases): Likewise.
25693 (varpool_node::call_for_symbol_and_aliase): Likewise.
25694 * ipa-pure-const.c (add_new_function): Analyze all bodies.
25695 (propagate_pure_const): Propagate across interposable functions, too.
25696 (skip_function_for_local_pure_const): Do not skip interposable bodies
25697 with aliases.
25698 (pass_local_pure_const::execute): Update.
25699
25700 2016-05-04 Marek Polacek <polacek@redhat.com>
25701
25702 * doc/invoke.texi: Document -Wdangling-else.
25703
25704 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
25705
25706 * config.gcc: Error out when conflicting multilib is detected. Do not
25707 loop over multilibs since no combination is legal.
25708
25709 2016-05-04 Alan Modra <amodra@gmail.com>
25710
25711 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
25712 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
25713 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
25714 Align .toc.
25715
25716 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
25717
25718 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
25719 Clean up p5600 comments.
25720
25721 2016-05-04 Richard Biener <rguenther@suse.de>
25722
25723 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
25724 constructor simplifications.
25725 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
25726
25727 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
25728
25729 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
25730 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
25731 result.set_rtx is null instead of aborting.
25732 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
25733 Always enable.
25734 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
25735 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
25736 *mov<mode>_store_postinc): New patterns.
25737
25738 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
25739
25740 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
25741 as commutative. Check both conversions are NOP.
25742 ((A & B) OP (C & B)): Remove.
25743
25744 2016-05-04 Alan Modra <amodra@gmail.com>
25745
25746 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
25747
25748 2016-05-04 Alan Modra <amodra@gmail.com>
25749
25750 PR target/70866
25751 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
25752 when cr2,3,4 are all fixed regs.
25753
25754 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
25755
25756 PR rtl-optimization/57193
25757 * opts.c (default_options_table): Revert OPT_frename_registers change.
25758 * doc/invoke.texi (-frename-registers, -O2): Likewise.
25759
25760 2016-05-03 Martin Sebor <msebor@redhat.com>
25761
25762 PR c++/66561
25763 * builtins.c (fold_builtin_FILE): New function.
25764 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
25765 (fold_builtin_0): Call them.
25766 * gimplify.c (gimplify_call_expr): Remove the handling of
25767 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
25768
25769 PR c++/66561
25770 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
25771 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
25772 constants.
25773
25774 PR c++/66639
25775 * doc/extend.texi (Function Names as Strings): Update __func__,
25776 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
25777 constants.
25778
25779 2016-05-03 Jakub Jelinek <jakub@redhat.com>
25780 Richard Biener <rguenther@suse.de>
25781
25782 PR tree-optimization/70916
25783 * tree-if-conv.c: Include cfganal.h.
25784 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
25785 and remove_fake_exit_edges around the optimization pass.
25786
25787 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
25788
25789 * cgraph.c (symbol_table::create_edge): Set inline_failed.
25790 (cgraph_edge::make_direct): Likewise.
25791 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
25792 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
25793 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
25794 (CIF_THUNK): New code.
25795 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
25796 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
25797 (compute_inline_parameters): Set inline_failed for thunks.
25798 (inline_analyze_function): Cleanup.
25799 * ipa-inline.c (can_inline_edge_p): Do not deal with
25800 call_stmt_cannot_inline_p.
25801 (can_early_inline_edge_p): Likewise.
25802 (early_inliner): Initialize inline_failed.
25803 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
25804
25805 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
25806
25807 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
25808 from nonimm_ssenomem_operand.
25809 (nonimm_ssenomem_operand): New predicate.
25810 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
25811 as operand 0 predicate.
25812 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
25813 Disable unsupported alternatives using "enabled" attribute.
25814 Use register_ssemem_operand as operand 0 predicate.
25815 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
25816
25817 2016-05-03 Marek Polacek <polacek@redhat.com>
25818
25819 PR c/70859
25820 * input.c (expansion_point_location): New function.
25821 * input.h (expansion_point_location): Declare.
25822
25823 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
25824
25825 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
25826 occurence with frame_offset_ ones.
25827
25828 2016-05-03 Alan Modra <amodra@gmail.com>
25829
25830 PR rtl-optimization/70890
25831 * ira.c (combine_and_move_insns): When moving def_insn, remove
25832 equivs on use_insn.
25833
25834 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
25835
25836 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
25837 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
25838 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
25839 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
25840
25841 2016-05-03 Alan Modra <amodra@gmail.com>
25842
25843 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
25844 for SAVE_MULTIPLE/STORE_MULTIPLE.
25845
25846 2016-05-03 Jakub Jelinek <jakub@redhat.com>
25847
25848 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
25849 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
25850
25851 2016-05-03 Richard Biener <rguenther@suse.de>
25852
25853 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
25854 default true.
25855 (gimplify_arg): Likewise.
25856 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
25857 re-writing the result to a decl if required.
25858 (internal_get_tmp_var): Add allow_ssa parameter
25859 and override into_ssa with it.
25860 (get_formal_tmp_var): Adjust.
25861 (get_initialized_tmp_var): Add allow_ssa parameter.
25862 (gimplify_arg): Add allow_ssa parameter and avoid generating
25863 SSA names for the result false.
25864 (gimplify_call_expr): If the call may return twice do not
25865 gimplify parameters into SSA.
25866 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
25867 (gimplify_modify_expr): Adjust assert. For noreturn calls
25868 with a SSA name LHS adjust its def.
25869 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
25870 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
25871 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
25872 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
25873 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
25874 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
25875 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
25876 (optimize_target_teams): Do not allow SSA names for clause operands.
25877 (gimplify_expr): Likewise for where we mark the result addressable.
25878 * passes.def (pass_init_datastructures): Remove.
25879 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
25880 (rewrite_stmt): Likewise.
25881 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
25882 (replace_locals_op): Replace SSA names.
25883 (copy_gimple_seq_and_replace_locals): Init src_cfun.
25884 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
25885 * cgraph.c (release_function_body): Free CFG annotations only
25886 when we have a CFG. Simplify.
25887 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
25888 force_gimple_operand instead of get_initialized_tmp_var.
25889 * tree-pass.h (make_pass_init_datastructures): Remove.
25890 * tree-ssa.c (execute_init_datastructures): Remove.
25891 (pass_data_init_datastructures): Likewise.
25892 (class pass_init_datastructures): Likewise.
25893 (make_pass_init_datastructures): Likewise.
25894 * omp-low.c (create_omp_child_function): Init SSA data structures.
25895 (grid_expand_target_grid_body): Likewise.
25896 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
25897 name before adding it to names_to_release.
25898 (remove_bb): Always release SSA defs.
25899 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
25900 before dereferencing it.
25901 * cgraphunit.c (init_lowered_empty_function): Always
25902 int SSA data structures.
25903 * tree-ssanames.c (release_defs): Remove assert that we are in
25904 SSA form.
25905 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
25906
25907 2016-05-03 Jakub Jelinek <jakub@redhat.com>
25908 Uros Bizjak <ubizjak@gmail.com>
25909
25910 PR rtl-optimization/70467
25911 * config/i386/predicates.md (x86_64_hilo_int_operand,
25912 x86_64_hilo_general_operand): New predicates.
25913 * config/i386/constraints.md (Wd): New constraint.
25914 * config/i386/i386.md (mode attr di): Use Wd instead of e.
25915 (general_hilo_operand): New mode attr.
25916 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
25917 instead of <general_operand>.
25918 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
25919 x86_64_hilo_general_operand instead of <general_operand>.
25920
25921 2016-05-03 Jakub Jelinek <jakub@redhat.com>
25922
25923 PR tree-optimization/70916
25924 * tree-if-conv.c (constant_or_ssa_name): Removed.
25925 (fold_build_cond_expr): Use is_gimple_val instead of
25926 constant_or_ssa_name.
25927
25928 PR tree-optimization/70916
25929 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
25930 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
25931
25932 PR target/49244
25933 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
25934 (optimize_atomic_bit_test_and): New function.
25935 (pass_fold_builtins::execute): Use it.
25936 * optabs.def (atomic_bit_test_and_set_optab,
25937 atomic_bit_test_and_complement_optab,
25938 atomic_bit_test_and_reset_optab): New optabs.
25939 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
25940 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
25941 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
25942 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
25943 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
25944 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
25945 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
25946 * doc/md.texi (atomic_bit_test_and_set@var{mode},
25947 atomic_bit_test_and_complement@var{mode},
25948 atomic_bit_test_and_reset@var{mode}): Document.
25949 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
25950 atomic_bit_test_and_complement<mode>,
25951 atomic_bit_test_and_reset<mode>): New expanders.
25952 (atomic_bit_test_and_set<mode>_1,
25953 atomic_bit_test_and_complement<mode>_1,
25954 atomic_bit_test_and_reset<mode>_1): New insns.
25955
25956 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
25957
25958 PR rtl-optimization/70687
25959 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
25960 instead of unsigned HOST_WIDE_INT.
25961
25962 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
25963
25964 PR rtl-optimization/44281
25965 * hard-reg-set.h (struct target_hard_regs): New field
25966 x_fixed_nonglobal_reg_set.
25967 (fixed_nonglobal_reg_set): New macro.
25968 * reginfo.c (init_reg_sets_1): Initialize it.
25969 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
25970 of fixed_reg_set.
25971 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
25972
25973 2016-05-03 Bin Cheng <bin.cheng@arm.com>
25974
25975 PR tree-optimization/56541
25976 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
25977 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
25978 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
25979 (any_complicated_phi): new static variable.
25980 (aggressive_if_conv): delete.
25981 (if_convertible_phi_p): support phis with more than two arguments.
25982 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
25983 critical pred edges.
25984 (ifcvt_split_critical_edges): support phis with more than two
25985 arguments by checking new parameter. only split critical edges
25986 if needed.
25987 (tree_if_conversion): handle simd pragma marked loop using new
25988 local variable aggressive_if_conv. check any_complicated_phi.
25989
25990 2016-05-03 Bin Cheng <bin.cheng@arm.com>
25991
25992 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
25993 before using it.
25994
25995 2016-05-03 Bin Cheng <bin.cheng@arm.com>
25996
25997 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
25998 cbase.
25999
26000 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
26001
26002 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
26003 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
26004 define_insn_and_split.
26005 (mulsi3_i): New define_insn_and_split.
26006 (mulsi3_call): Convert to define_insn.
26007 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
26008 Remove constraints.
26009
26010 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
26011
26012 * machmode.h (mode_complex): Add support to give the complex mode
26013 for a given mode.
26014 (GET_MODE_COMPLEX_MODE): Likewise.
26015 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
26016 stored by build_complex_type and gfc_build_complex_type instead of
26017 trying to figure out the appropriate mode based on the size. Raise
26018 an assertion error, if the type was not set.
26019 * genmodes.c (struct mode_data): Add field for the complex type of
26020 the given type.
26021 (blank_mode): Likewise.
26022 (make_complex_modes): Remember the complex mode created in the
26023 base type.
26024 (emit_mode_complex): Write out the mode_complex array to map a
26025 type mode to the complex version.
26026 (emit_insn_modes_c): Likewise.
26027 * tree.c (build_complex_type): Set the complex type to use before
26028 calling layout_type.
26029 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
26030 support for __float128 complex datatypes.
26031 (rs6000_hard_regno_mode_ok): Likewise.
26032 (rs6000_setup_reg_addr_masks): Likewise.
26033 (rs6000_complex_function_value): Likewise.
26034 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
26035 __float128 and __ibm128 complex.
26036 (FLOAT128_IBM_P): Likewise.
26037 (ALTIVEC_ARG_MAX_RETURN): Likewise.
26038 * doc/extend.texi (Additional Floating Types): Document that
26039 -mfloat128 must be used to enable __float128. Document complex
26040 __float128 and __ibm128 support.
26041
26042 2016-05-02 Jakub Jelinek <jakub@redhat.com>
26043
26044 PR target/49244
26045 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
26046 char/short arguments promoted to int because of promote_prototypes.
26047
26048 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
26049
26050 * config/i386/predicates.md (register_ssemem_operand): New predicate.
26051 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
26052 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
26053 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
26054 alternatives using "enabled" attribute. Use register_ssemem_operand
26055 as operand 1 predicate.
26056 (*cmpi<unord>xf_i387): Split XFmode pattern from
26057 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
26058 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
26059 *absneg<mode>2_i387. Disable unsupported alternatives using
26060 "enabled" attribute.
26061 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
26062
26063 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
26064
26065 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
26066 marker.
26067 (oacc_loop_process): Check mask for loop termination.
26068
26069 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
26070
26071 * cif-code.def (CIF_THUNK): Add.
26072 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
26073 accidental change.
26074
26075 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
26076
26077 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
26078 (dump_inline_summary): Dump it.
26079 (fp_expression_p): New predicate.
26080 (estimate_function_body_sizes): Use it.
26081 (inline_merge_summary): Merge fp_expressions.
26082 (inline_read_section): Read fp_expressions.
26083 (inline_write_summary): Write fp_expressions.
26084 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
26085 codegen boundary if either caller or callee is !fp_expressions.
26086 * ipa-inline.h (inline_summary): Add fp_expressions.
26087 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
26088 to fp_expressions be sure the fp generation flags are updated.
26089
26090 2016-05-02 Jakub Jelinek <jakub@redhat.com>
26091
26092 PR rtl-optimization/70467
26093 * cse.c (cse_insn): Handle no-op MEM moves after folding.
26094
26095 PR rtl-optimization/70467
26096 * ipa-pure-const.c (check_call): Handle internal calls even in
26097 ipa mode like in local mode.
26098
26099 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
26100
26101 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
26102
26103 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
26104
26105 * match.pd (X u< X, X u> X): New transformations.
26106
26107 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
26108
26109 * flag-types.h (enum warn_strict_overflow_code): Move ...
26110 * coretypes.h: ... here.
26111 * fold-const.h (fold_overflow_warning): Declare.
26112 * fold-const.c (fold_overflow_warning): Make non-static.
26113 (fold_comparison): Move the transformation of X +- C1 CMP C2
26114 into X CMP C2 -+ C1 ...
26115 * match.pd: ... here.
26116 * gimple-fold.c (fold_stmt_1): Protect with
26117 fold_defer_overflow_warnings.
26118
26119 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
26120
26121 * omp-low.c (struct oacc_loop): Add 'inner' field.
26122 (new_oacc_loop_raw): Initialize it to zero.
26123 (oacc_loop_fixed_partitions): Initialize it.
26124 (oacc_loop_auto_partitions): Partition outermost loop to outermost
26125 available partitioning.
26126
26127 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
26128
26129 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
26130 register_operand.
26131 (umulsidi3): Likewise.
26132 (indirect_jump): Fix jump instruction assembly patterns.
26133
26134 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
26135
26136 PR target/70860
26137 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
26138 (nvptx_function_value): Assert non-NULL cfun.
26139
26140 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
26141
26142 PR rtl-optimization/70886
26143 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
26144
26145 * cselib.h (rtx_equal_for_cselib_1): Declare.
26146 (rtx_equal_for_cselib_p: New inline function.
26147 * cselib.c (rtx_equal_for_cselib_p): Delete.
26148 (rtx_equal_for_cselib_1): Make public.
26149
26150 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
26151
26152 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
26153 (register_mixssei387nonimm_operand): Remove predicate.
26154 * config/i386/i386.md (*fop_<mode>_comm): Merge from
26155 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
26156 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
26157 for TARGET_MIX_SSE_I387 alternatives.
26158 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
26159 Disable unsupported alternatives using "enabled" attribute. Use
26160 nonimm_ssenomem_operand as operand 1 predicate. Also check
26161 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
26162
26163 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
26164
26165 * tree.c (cst_and_fits_in_hwi): Simplify.
26166
26167 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
26168
26169 * tree.h (wi::to_wide): New function.
26170 * expr.c (expand_expr_real_1): Use wi::to_wide.
26171 * fold-const.c (int_const_binop_1): Likewise.
26172 (extract_muldiv_1): Likewise.
26173
26174 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
26175
26176 * wide-int.h: Update offset_int and widest_int documentation.
26177 (WI_SIGNED_SHIFT_RESULT): New macro.
26178 (wi::binary_shift): Define signed_shift_result_type for
26179 shifts on offset_int- and widest_int-like types.
26180 (generic_wide_int): Support <<= and >>= if << and >> are supported.
26181 * tree.h (int_bit_position): Use shift operators instead of wi::
26182 shifts.
26183 * alias.c (adjust_offset_for_component_ref): Likewise.
26184 * expr.c (get_inner_reference): Likewise.
26185 * fold-const.c (fold_comparison): Likewise.
26186 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
26187 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
26188 * tree-dfa.c (get_ref_base_and_extent): Likewise.
26189 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
26190 (stmt_kills_ref_p): Likewise.
26191 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
26192 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
26193 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
26194 (ao_ref_init_from_vn_reference): Likewise.
26195
26196 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
26197
26198 * wide-int.h: Update offset_int and widest_int documentation.
26199 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
26200 (wi::binary_traits): Allow ordered comparisons between offset_int and
26201 offset_int, between widest_int and widest_int, and between either
26202 of these types and basic C types.
26203 (operator <, <=, >, >=): Define for the same combinations.
26204 * tree.h (tree_int_cst_lt): Use comparison operators instead
26205 of wi:: comparisons.
26206 (tree_int_cst_le): Likewise.
26207 * gimple-fold.c (fold_array_ctor_reference): Likewise.
26208 (fold_nonarray_ctor_reference): Likewise.
26209 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
26210 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
26211 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
26212 * tree-sra.c (completely_scalarize): Likewise.
26213 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
26214 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
26215 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
26216 (check_for_binary_op_overflow): Likewise.
26217 (search_for_addr_array): Likewise.
26218 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
26219
26220 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
26221
26222 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
26223 (arc_save_restore): Likewise.
26224 (arc_dwarf_register_span): Likewise.
26225 (arc_output_pic_addr_const): Initialize suffix variable.
26226
26227 2016-05-02 Martin Liska <mliska@suse.cz>
26228
26229 * symbol-summary.h (function_summary::function_summary):
26230 Remove checking assert for all cgraph nodes.
26231 (function_summary::get): Check summary_uid.
26232 (symtab_insertion): Check summary_uid.
26233
26234 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
26235
26236 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
26237 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
26238 bmaskn instruction.
26239 (arc_dwarf_register_span): Remove enum keyword.
26240 (compact_memory_operand_p): New function.
26241 * config/arc/arc.h (reg_class): Add code density register classes.
26242 (REG_CLASS_NAMES): Likewise.
26243 (REG_CLASS_CONTENTS): Likewise.
26244 * config/arc/arc.md (*movqi_insn): Add code density instructions.
26245 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
26246 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
26247 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
26248 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
26249 constraints.
26250 (h, Rcd, Rsd, Rzd): New register constraints.
26251 (T): Use compact_memory_operand_p function.
26252 * config/arc/predicates.md (compact_load_memory_operand): Remove.
26253
26254 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
26255
26256 * config/sh/sh.md (*negnegt, *movtt): Remove.
26257
26258 2016-05-02 Marek Polacek <polacek@redhat.com>
26259 Tom de Vries <tom@codesourcery.com>
26260
26261 PR tree-optimization/70700
26262 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
26263 bigger than FIRST_REF_NODE.
26264
26265 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
26266
26267 PR target/52898
26268 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
26269 TARGET_CMPEQDI_T.
26270 (prepare_cbranch_operands): Don't use scratch register. Assume that
26271 function is used when pseudos can be created.
26272 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
26273 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
26274 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
26275 define_expand. Allow it only when pseudos can be created.
26276 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
26277
26278 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
26279
26280 * config/i386/constraints.md (BC): Only allow -1 operands.
26281 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
26282 Add "enabled" attribute. Update XI mode attribute calculation.
26283 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
26284 (*movoi_internal_avx): Update XI mode attribute calculation.
26285 (*movti_internal): Ditto.
26286
26287 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
26288
26289 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
26290 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
26291
26292 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
26293
26294 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
26295 statement on instruction code. Remove trailing spaces.
26296 (altivec_expand_stv_builtin): Likewise.
26297
26298 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
26299
26300 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
26301 (TARGET_FPU_DOUBLE): Simplify.
26302 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
26303 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
26304 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
26305 with 'TARGET_FPU_DOUBLE'.
26306 * config/sh/sh.md: Likewise.
26307
26308 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
26309
26310 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
26311 SH_DIV_STR_FOR_SIZE): Remove.
26312 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
26313 SH_DIV_STR_FOR_SIZE): Remove.
26314
26315 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
26316
26317 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
26318 logical_reg_operand): Delete.
26319 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
26320 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
26321 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
26322 match_operand and match_test.
26323 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
26324 variables on their first use. Return bool values.
26325 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
26326 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
26327 arith_reg_operand for input operand. Remove empty constraints.
26328 (xorsi3): Delete.
26329 (*xorsi3_compact): Rename to xorsi3.
26330 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
26331 (*zero_extend<mode>si2_disp_mem): Update comment.
26332 (mov_nop): Delete.
26333
26334 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
26335
26336 * config/sh/t-sh: Remove SH5 support.
26337 * config.gcc: Likewise.
26338 * configure: Likewise.
26339
26340 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26341
26342 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
26343
26344 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
26345
26346 * config/sh/sh.c (register_sh_passes, sh_option_override,
26347 sh_print_operand, prepare_move_operands,
26348 sh_can_follow_jump): Remove TARGET_SH1 checks.
26349 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
26350 PROMOTE_MODE): Likewise.
26351 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
26352 movdi): Likewise.
26353
26354 2016-04-30 Alan Modra <amodra@gmail.com>
26355
26356 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
26357 restoring when fixed_reg_p, but allow out-of-line or stmw save.
26358 Check for user regs later to avoid unnecessary looping over regs.
26359 Merge user reg check with non-saved reg check. Don't force
26360 inline VR restore when static chain used.
26361 (rs6000_frame_related): Omit eh_frame info for user regs when
26362 saving.
26363 (fixed_regs_p): Delete.
26364
26365 2016-04-30 Alan Modra <amodra@gmail.com>
26366
26367 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
26368 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
26369 Update all uses.
26370
26371 2016-04-30 Alan Modra <amodra@gmail.com>
26372
26373 PR target/69645
26374 * config/rs6000/rs6000.c (fixed_reg_p): New function.
26375 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
26376 Update all uses.
26377
26378 2016-04-30 Alan Modra <amodra@gmail.com>
26379
26380 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
26381 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
26382 flag_pic test for Darwin.
26383
26384 2016-04-30 Alan Modra <amodra@gmail.com>
26385
26386 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
26387 throw_calls_crossed.
26388 (REG_FREQ_CALLS_CROSSED): Delete.
26389 (REG_N_THROWING_CALLS_CROSSED): Delete.
26390 * regstat.c (regstat_bb_compute_ri): Don't calculate
26391 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
26392 (dump_reg_info): Don't print call cross frequency.
26393 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
26394 and REG_N_THROWING_CALLS_CROSSED.
26395
26396 2016-04-30 Alan Modra <amodra@gmail.com>
26397
26398 * regs.h (struct reg_info_t): Delete live_length.
26399 (REG_LIVE_LENGTH): Delete macro.
26400 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
26401 local_live, local_processed and local_live_last_luid params.
26402 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
26403 Formatting fixes.
26404 (regstat_compute_ri): Adjust for above. Don't set
26405 REG_LIVE_LENGTH.
26406 (dump_reg_info): Don't print live length.
26407 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
26408 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
26409 Localize loop_depth var.
26410
26411 2016-04-30 Alan Modra <amodra@gmail.com>
26412
26413 * ira.c (enum valid_equiv): New.
26414 (validate_equiv_mem): Return enum.
26415 (update_equiv_mem): Create replacement in more cases.
26416 (add_store_equivs): Update validate_equiv_mem call.
26417
26418 2016-04-30 Alan Modra <amodra@gmail.com>
26419
26420 * ira.c (combine_and_move_insns): Rather than scanning insns,
26421 use DF infrastucture to find use and def insns.
26422
26423 2016-04-30 Alan Modra <amodra@gmail.com>
26424
26425 ira.c (combine_and_move_insns): Move invariant conditions..
26426 (ira.c): ..to here. Call combine_and_move_insns before
26427 add_store_equivs. Call grow_reg_equivs later. Allocate
26428 req_equiv later using max_reg_num() rather than global max_regno.
26429 (contains_replace_regs): Delete.
26430 (add_store_equivs): Remove contains_replace_regs test.
26431
26432 2016-04-30 Alan Modra <amodra@gmail.com>
26433
26434 * ira.c (struct equiv_mem_data): New.
26435 (equiv_mem, equiv_mem_modified): Delete static vars.
26436 (validate_equiv_mem_from_store): Use "data" param to communicate..
26437 (validate_equiv_mem): ..from here.
26438
26439 2016-04-30 Alan Modra <amodra@gmail.com>
26440
26441 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
26442 split out from..
26443 (update_reg_equivs): ..here. Move allocation and freeing of
26444 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
26445 end_alias_analysis to..
26446 (ira): ..here.
26447
26448 2016-04-30 Alan Modra <amodra@gmail.com>
26449
26450 * ira.c (pdx_subregs): Delete.
26451 (struct equivalence): Add pdx_subregs field.
26452 (set_paradoxical_subreg): Remove pdx_subregs param. Update
26453 pdx_subregs access.
26454 (update_equiv_regs): Don't create or free pdx_subregs. Update
26455 pdx_subregs access.
26456
26457 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26458
26459 * config/rs6000/altivec.h: Change definitions of vec_xl and
26460 vec_xst.
26461 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
26462 (LD_ELEMREV_V2DI): New.
26463 (LD_ELEMREV_V4SF): New.
26464 (LD_ELEMREV_V4SI): New.
26465 (LD_ELEMREV_V8HI): New.
26466 (LD_ELEMREV_V16QI): New.
26467 (ST_ELEMREV_V2DF): New.
26468 (ST_ELEMREV_V2DI): New.
26469 (ST_ELEMREV_V4SF): New.
26470 (ST_ELEMREV_V4SI): New.
26471 (ST_ELEMREV_V8HI): New.
26472 (ST_ELEMREV_V16QI): New.
26473 (XL): New.
26474 (XST): New.
26475 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
26476 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
26477 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
26478 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
26479 (altivec_expand_builtin): Add handling for
26480 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
26481 (rs6000_invalid_builtin): Add error-checking for
26482 RS6000_BTM_P9_VECTOR.
26483 (altivec_init_builtins): Define builtins used to implement vec_xl
26484 and vec_xst.
26485 (rs6000_builtin_mask_names): Define power9-vector.
26486 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
26487 (RS6000_BTM_P9_VECTOR): Define.
26488 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
26489 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
26490 (vsx_ld_elemrev_v2df): Likewise.
26491 (vsx_ld_elemrev_v4sf): Likewise.
26492 (vsx_ld_elemrev_v4si): Likewise.
26493 (vsx_ld_elemrev_v8hi): Likewise.
26494 (vsx_ld_elemrev_v16qi): Likewise.
26495 (vsx_st_elemrev_v2df): Likewise.
26496 (vsx_st_elemrev_v2di): Likewise.
26497 (vsx_st_elemrev_v4sf): Likewise.
26498 (vsx_st_elemrev_v4si): Likewise.
26499 (vsx_st_elemrev_v8hi): Likewise.
26500 (vsx_st_elemrev_v16qi): Likewise.
26501 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
26502 grammar.
26503
26504 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
26505
26506 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
26507 out into ...
26508 (simplify_control_stmt_condition_1): ... here. Recurse into
26509 BIT_AND_EXPRs and BIT_IOR_EXPRs.
26510
26511 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
26512
26513 PR target/69810
26514 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
26515 (zero_extendqi<mode>2_dot): Revert earlier conversion from
26516 define_insn_and_split to define_insn.
26517 (zero_extendqi<mode>2_dot2): Same.
26518 (extendqi<mode>2_dot): Same.
26519 (extendqi<mode>2_dot2): Same.
26520
26521 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
26522
26523 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
26524 (probe_stack): New expander.
26525 (probe_stack_<mode>): New insn pattern.
26526
26527 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
26528
26529 * config/i386/i386.md
26530 (operations with memory inputs setting flags peephole2):
26531 Remove uneeded REG_P checks. Cleanup pattern generation.
26532
26533 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
26534
26535 * tree-vect-loop.c (vect_transform_loop): Fix
26536 nb_iterations_upper_bound computation for vectorized loop.
26537
26538 2016-04-29 Marek Polacek <polacek@redhat.com>
26539 Jakub Jelinek <jakub@redhat.com>
26540
26541 PR sanitizer/70342
26542 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
26543 TARGET_EXPR_SLOT as a base.
26544
26545 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
26546
26547 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
26548 with 'rCm2' constraints to limit possible immediate size.
26549 (*load_zeroextendqisi_update): Likewise.
26550 (*load_signextendqisi_update): Likewise.
26551 (*loadhi_update): Likewise.
26552 (*load_zeroextendhisi_update): Likewise.
26553 (*load_signextendhisi_update): Likewise.
26554 (*loadsi_update): Likewise.
26555 (*loadsf_update): Likewise.
26556
26557 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
26558
26559 * config/i386/predicates.md (constm1_operand): Fix comparison.
26560
26561 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
26562
26563 * testsuite/gcc.target/arc/ieee_eq.c: New test.
26564
26565 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
26566
26567 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
26568 remaining SH5 related settings.
26569 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
26570 shmedia_prepare_call_address): Delete.
26571 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
26572 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
26573 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
26574 UNSUPPORTED_SH2A): Remove m5 checks.
26575 (sh_divide_strategy_e): Remove SH5 division strategies.
26576 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
26577 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
26578
26579 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
26580
26581 * config/s390/s390.c (s390_rtx_costs): Update documentation.
26582
26583 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26584
26585 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
26586 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
26587 Change lder to ldr.
26588 * config/s390/vector.md ("mov<mode>"): Likewise.
26589
26590 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
26591
26592 * config/s390/constraints.md ("U", "W"): Invoke
26593 s390_mem_constraint with "ZR" and "ZT".
26594 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
26595 addresses when using LRA. Accept also short displacements for S
26596 and T constraints. Do not check for long displacement target for
26597 S and T constraints.
26598 (s390_mem_constraint): Remove handling of U and W constraints.
26599 * config/s390/s390.md (various patterns): Remove the short
26600 displacement constraints (Q and R) if a long displacement
26601 constraint is present. Add longdisp as required CPU capability.
26602 * config/s390/vector.md: Likewise.
26603 * config/s390/vx-builtins.md: Likewise.
26604
26605 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
26606
26607 PR target/60040
26608 * reload1.c (reload): Call finish_spills before
26609 restarting reload loop. Skip select_reload_regs
26610 if update_eliminables_and_spill returns true.
26611
26612 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
26613
26614 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
26615 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
26616 (umulhisi3_imm): Update predicates and constraint letters.
26617 (umulhisi3_reg): Declare instruction as commutative.
26618 * config/arc/constraints.md (J12, J16): New constraints.
26619 * config/arc/predicates.md (short_unsigned_const_operand): New
26620 predicate.
26621 (arc_short_operand): Likewise.
26622 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
26623
26624 2016-04-29 Richard Biener <rguenther@suse.de>
26625
26626 PR tree-optimization/13962
26627 PR tree-optimization/65686
26628 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
26629 * tree-ssa-alias.c (ptrs_compare_unequal): New function
26630 using PTA to compare pointers.
26631 * match.pd: Add pattern for pointer equality compare simplification
26632 using ptrs_compare_unequal.
26633
26634 2016-04-29 Richard Biener <rguenther@suse.de>
26635
26636 * stor-layout.c (layout_type): Do not build a pointer-to-element
26637 type for arrays.
26638
26639 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
26640
26641 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
26642 Use SWI mode iterator. Use general_reg_operand predicate.
26643 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
26644 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
26645 predicates.
26646
26647 2016-04-29 Jakub Jelinek <jakub@redhat.com>
26648
26649 PR middle-end/70843
26650 * fold-const.c (operand_equal_p): Don't verify hash value equality
26651 if arg0 == arg1.
26652 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
26653 and OMP_CLAUSE.
26654
26655 2016-04-28 Jakub Jelinek <jakub@redhat.com>
26656
26657 PR target/70858
26658 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
26659 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
26660 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
26661 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
26662 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
26663
26664 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
26665
26666 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
26667 to info. Don't initialize separate fields to 0. Clean up
26668 formatting a bit.
26669
26670 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
26671
26672 * config/i386/i386.md (peephole2s for operations with memory inputs):
26673 Use SWI mode iterator.
26674 (peephole2s for operations with memory outputs): Ditto.
26675 Do not check for stack checking probe.
26676
26677 (probe_stack): Remove expander.
26678
26679 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
26680 Andrew Burgess <andrew.burgess@embecosm.com>
26681
26682 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
26683 operands as 32-bits.
26684
26685 2016-04-28 Jason Merrill <jason@redhat.com>
26686
26687 * gdbinit.in: Skip line-map.h.
26688
26689 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
26690 Andrew Burgess <andrew.burgess@embecosm.com>
26691
26692 * config/arc/arc.c (arc_conditional_register_usage): Take
26693 TARGET_RRQ_CLASS into account.
26694 (arc_print_operand): Support printing 'p' and 's' operands.
26695 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
26696 as 0.
26697 (TARGET_RRQ_CLASS): Define.
26698 (IS_POWEROF2_OR_0_P): Define.
26699 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
26700 alternatives.
26701 (*tst_movb): New define_insn.
26702 (*tst): Avoid recognition if it could prevent '*tst_movb'
26703 combination; replace c/CnL with c/Chs alternative.
26704 (*tst_bitfield_tst): New define_insn.
26705 (*tst_bitfield_asr): New define_insn.
26706 (*tst_bitfield): New define_insn.
26707 (andsi3_i): Add Rrq variant.
26708 (extzv): New define_expand.
26709 (insv): New define_expand.
26710 (*insv_i): New define_insn.
26711 (*movb): New define_insn.
26712 (*movb_signed): New define_insn.
26713 (*movb_high): New define_insn.
26714 (*movb_high_signed): New define_insn.
26715 (*movb_high_signed + 1): New define_split pattern.
26716 (*mrgb): New define_insn.
26717 (*mrgb + 1): New define_peephole2 pattern.
26718 (*mrgb + 2): New define_peephole2 pattern.
26719 * config/arc/arc.opt (mbitops): New option for nps400, uses
26720 TARGET_NPS_BITOPS_DEFAULT.
26721 * config/arc/constraints.md (q): Make register class conditional.
26722 (Rrq): New register constraint.
26723 (Chs): New constraint.
26724 (Clo): New constraint.
26725 (Chi): New constraint.
26726 (Cbf): New constraint.
26727 (Cbn): New constraint.
26728 (C18): New constraint.
26729 (Cbi): New constraint.
26730
26731 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
26732
26733 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
26734 dst->popcount.
26735 (bitmap_intersection_of_preds): Ditto.
26736 (bitmap_union_of_succs): Ditto.
26737 (bitmap_union_of_preds): Ditto.
26738 * sbitmap.c (do_popcount): Delete.
26739 (BITMAP_DEBUGGING): Delete.
26740 (sbitmap_verify_popcount): Delete.
26741 (sbitmap_alloc): Don't initialize the popcount field.
26742 (sbitmap_alloc_with_popcount): Delete.
26743 (sbitmap_resize): Don't resize the popcount array.
26744 (sbitmap_vector_alloc): Don't initialize the popcount field.
26745 (bitmap_copy): Don't copy the popcount array.
26746 (bitmap_clear): Don't clear the popcount array.
26747 (bitmap_clear): Delete the popcount array handling.
26748 (bitmap_ior_and_compl): Delete the popcount assert.
26749 (bitmap_not): Ditto.
26750 (bitmap_and_compl): Ditto.
26751 (bitmap_and): Delete the popcount array handling.
26752 (bitmap_xor): Ditto.
26753 (bitmap_ior): Ditto.
26754 (bitmap_or_and): Delete the popcount assert.
26755 (bitmap_and_or): Ditto.
26756 (popcount_table): Delete.
26757 (sbitmap_elt_popcount): Delete.
26758 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
26759 (bitmap_set_bit): Delete the popcount assert.
26760 (bitmap_clear_bit): Ditto.
26761 (sbitmap_free): Don't free the popcount array.
26762 (sbitmap_alloc_with_popcount): Delete declaration.
26763 (sbitmap_popcount): Ditto.
26764
26765 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
26766 Andrew Burgess <andrew.burgess@embecosm.com>
26767
26768 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
26769 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
26770 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
26771 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
26772 * config/arc/arc.opt (mcmem): New option.
26773 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
26774 supply length for r/m alternative.
26775 (*extendqisi2_ac): Likewise.
26776 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
26777 r/Uex alternative.
26778 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
26779 (movhi_insn): Likewise.
26780 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
26781 (*zero_extendqihi2_i): Add r/Ucm alternative.
26782 (*zero_extendqisi2_ac): Likewise.
26783 (*zero_extendhisi2_i): Likewise.
26784 * config/arc/constraints.md (Uex): New memory constraint.
26785 (Ucm): New define_constraint.
26786 * config/arc/predicates.md (long_immediate_loadstore_operand):
26787 Return 0 for MEM with cmem_address address.
26788 (cmem_address_0): New predicates.
26789 (cmem_address_1): Likewise.
26790 (cmem_address_2): Likewise.
26791 (cmem_address): Likewise.
26792
26793 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
26794
26795 * config/rs6000/rs6000.c (machine_function): Rename
26796 insn_chain_scanned_p to spe_insn_chain_scanned_p.
26797 (rs6000_stack_info): Adjust.
26798
26799 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
26800 Andrew Burgess <andrew.burgess@embecosm.com>
26801
26802 * config/arc/constraints.md (Usd): Convert to define_constraint.
26803 (Us<): Likewise.
26804 (Us>): Likewise.
26805
26806 2016-04-28 Jakub Jelinek <jakub@redhat.com>
26807
26808 PR target/70821
26809 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
26810 Add new peephole2 where the first insn is *mov<mode>_or instead of
26811 *mov<mode>_internal.
26812
26813 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
26814
26815 * tracer.c (bb_seen): Make static.
26816
26817 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
26818
26819 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
26820 support, setup defaults.
26821 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
26822 * config/arc/arc.c (arc_init): Add NPS400 support.
26823 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
26824 (TARGET_ARC700): NPS400 is also an ARC700.
26825 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
26826
26827 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
26828
26829 PR target/70668
26830 * config/nds32/nds32.md (casesi): Don't access the operands array
26831 out of bounds.
26832
26833 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
26834
26835 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
26836 (or $-1,reg peephole2): Ditto.
26837 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
26838
26839 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
26840
26841 * doc/extend.texi (Common Function Attributes) [optimize]:
26842 Discourage use of the optimize attribute.
26843
26844 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
26845
26846 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
26847 special case builtin.
26848 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
26849 ALTIVEC_BUILTIN_VEC_ADDE.
26850 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
26851 support for ALTIVEC_BUILTIN_VEC_ADDE.
26852 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
26853 for __builtin_vec_adde.
26854
26855 2016-04-28 Jakub Jelinek <jakub@redhat.com>
26856
26857 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
26858 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
26859
26860 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26861
26862 PR testsuite/70595
26863 * doc/sourcebuild.texi (Effective-Target Keywords, Other
26864 attributes): Document cilkplus_runtime.
26865
26866 2016-04-28 Martin Jambor <mjambor@suse.cz>
26867
26868 * tree-cfg.c (verify_expr): Verify that local declarations belong to
26869 this function. Call verify_expr on MEM_REFs and bases of other
26870 handled_components.
26871
26872 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26873
26874 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
26875 for WORD_REGISTER_OPERATIONS to runtime check.
26876
26877 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26878
26879 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
26880
26881 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26882
26883 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
26884 big-endian compilation.
26885 * config/arc/arc.md (addf3): Likewise.
26886 (subdf3): Likewise.
26887 (muldf3): Likewise.
26888
26889 2016-04-28 Richard Biener <rguenther@suse.de>
26890
26891 PR tree-optimization/70840
26892 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
26893 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
26894 Mark x * pow(x,c) -> pow(x,c+1) commutative.
26895 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
26896
26897 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26898
26899 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
26900 and explain why in a comment.
26901
26902 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26903
26904 * config/arc/arc.md (cpu_facility): Add fpx variant.
26905 (subdf3): Prohibit use reverse sub when assist operations option
26906 is enabled.
26907 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
26908 instructions only when FPX is enabled.
26909 * testsuite/gcc.target/arc/trsub.c: New test.
26910
26911 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
26912
26913 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
26914 mult_operator when calculating "type" attribute.
26915 (*fop_<mode>_1_i387): Ditto.
26916 (*fop_xf_1_i387): Ditto.
26917 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
26918 Use std::swap to swap operands. Use RTL expressions to generate
26919 converted pattern.
26920
26921 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26922 Joern Rennecke <joern.rennecke@embecosm.com>
26923
26924 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
26925 declaration.
26926 (emit_pic_move): Remove.
26927 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
26928 * config/arc/arc.c (emit_pic_move): Removed.
26929 (TARGET_HAVE_TLS): Define.
26930 (arc_conditional_register_usage): Test for arc_tp_regno.
26931 (arc_print_operand, arc_print_operand_address): Handle TLS
26932 unspecs.
26933 (arc_needs_pcl_p): New function.
26934 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
26935 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
26936 (arc_raw_symbolic_reference_mentioned_p): Likewise.
26937 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
26938 (arc_legitimize_tls_address): Likewise.
26939 (DTPOFF_ZERO_SYM): Define.
26940 (arc_legitimize_pic_address): Make it static, handle TLS cases.
26941 (arc_output_pic_addr_const): Print TLS unspecs.
26942 (prepare_pic_move): New function, replaces emit_pic_move.
26943 (arc_legitimate_constant_p): Handle TLS unspecs.
26944 (arc_legitimate_address_p): Likewise.
26945 (arc_rewrite_small_data_p): Use assert for TLS constants.
26946 (prepare_move_operands): Use prepare_pic_move.
26947 (arc_legitimize_address): Legitimize tls addresses.
26948 (arc_epilogue_uses): Check for arc_tp_regno.
26949 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
26950 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
26951 Define.
26952 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
26953 Likewise.
26954 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
26955 %(arc_tls_extra_start_spec).
26956 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
26957 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
26958 (EH_USES): Define.
26959 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
26960 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
26961 (UNSPEC_TLS_OFF): Add.
26962 (R10_REG): Define.
26963 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
26964 (get_thread_pointersi): New patterns.
26965 * config/arc/arc.opt (mtp-regno): New option.
26966 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
26967 (move_dest_operand): Likewise.
26968 * configure: Regenerate.
26969 * configure.ac: Add arc*-*-* case to test for tls.
26970 * doc/invoke.texi (ARC options): Document mtp-regno.
26971
26972 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26973
26974 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
26975 the new ARC HS SIMD instructions.
26976 (arc_preferred_simd_mode): New function.
26977 (arc_autovectorize_vector_sizes): Likewise.
26978 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
26979 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
26980 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
26981 (arc_init_builtins): Add new SIMD builtin types.
26982 (arc_split_move): Handle 64 bit vector moves.
26983 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
26984 (TARGET_PLUS_QMACW): Define.
26985 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
26986 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
26987 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
26988 (VSUBADD4H): New builtins.
26989 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
26990 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
26991
26992 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
26993 Matthias Klose <doko@debian.org>
26994
26995 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
26996
26997 2016-04-28 Richard Biener <rguenther@suse.de>
26998
26999 PR middle-end/70777
27000 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
27001 canonicalization.
27002
27003 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
27004
27005 * common/config/sh/sh-common.c: Remove SH5 support.
27006 * config/sh/constraints.md: Likewise.
27007 * config/sh/config/sh/elf.h: Likewise.
27008 * config/sh/linux.h: Likewise.
27009 * config/sh/netbsd-elf.h: Likewise.
27010 * config/sh/predicates.md: Likewise.
27011 * config/sh/sh-c.c: Likewise.
27012 * config/sh/sh-protos.h: Likewise.
27013 * config/sh/sh.c: Likewise.
27014 * config/sh/sh.h: Likewise.
27015 * config/sh/sh.md: Likewise.
27016 * config/sh/sh.opt: Likewise.
27017 * config/sh/sync.md: Likewise.
27018 * config/sh/sh64.h: Delete.
27019 * config/sh/shmedia.h: Likewise.
27020 * config/sh/shmedia.md: Likewise.
27021 * config/sh/sshmedia.h: Likewise.
27022 * config/sh/t-netbsd-sh5-64: Likewise.
27023 * config/sh/t-sh64: Likewise.
27024 * config/sh/ushmedia.h: Likewise.
27025
27026 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
27027
27028 * config/i386/i386.md (sign_extend to memory peephole2s): Use
27029 general_reg_operand instead of register_operand predicate.
27030
27031 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27032
27033 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
27034
27035 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
27036
27037 * match.pd (A - B > A, A + B < A): New transformations.
27038
27039 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
27040
27041 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
27042 which defaults to true. Emit an outer pair of parentheses only if
27043 EMIT_PARENS. When continuing a chain of && or || (or & or |),
27044 don't emit parentheses for the right-hand operand.
27045
27046 2016-04-27 Jeff Law <law@redhat.com>
27047
27048 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
27049
27050 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27051
27052 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
27053 (altivec_lvx_<mode>_internal): Document.
27054 (altivec_lvx_<mode>_2op): New define_insn.
27055 (altivec_lvx_<mode>_1op): Likewise.
27056 (altivec_lvx_<mode>_2op_si): Likewise.
27057 (altivec_lvx_<mode>_1op_si): Likewise.
27058 (altivec_stvx_<mode>): Remove.
27059 (altivec_stvx_<mode>_internal): Document.
27060 (altivec_stvx_<mode>_2op): New define_insn.
27061 (altivec_stvx_<mode>_1op): Likewise.
27062 (altivec_stvx_<mode>_2op_si): Likewise.
27063 (altivec_stvx_<mode>_1op_si): Likewise.
27064 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27065 Expand vec_ld and vec_st during parsing.
27066 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
27067 changes.
27068 (altivec_expand_stvx_be): Likewise.
27069 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
27070 address-masking behavior in RTL.
27071 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
27072 address-masking behavior in RTL.
27073 (altivec_expand_builtin): Change builtin code arguments for calls
27074 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
27075 (insn_is_swappable_p): Avoid incorrect swap optimization in the
27076 presence of lvx/stvx patterns.
27077 (alignment_with_canonical_addr): New function.
27078 (alignment_mask): Likewise.
27079 (find_alignment_op): Likewise.
27080 (recombine_lvx_pattern): Likewise.
27081 (recombine_stvx_pattern): Likewise.
27082 (recombine_lvx_stvx_patterns): Likewise.
27083 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
27084 stvx patterns from expand.
27085 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
27086 expansions.
27087 (vector_altivec_store_<mode>): Likewise.
27088
27089 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
27090
27091 * config/aarch64/aarch64.md
27092 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
27093 remove the "fp" attributes.
27094 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
27095 add the "simd" attributes.
27096 (*movdf_aarch64): Likewise.
27097 (*movtf_aarch64): Remove the "fp" attributes.
27098 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
27099 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
27100
27101 2016-04-27 David Malcolm <dmalcolm@redhat.com>
27102
27103 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
27104 rtx to rtx_code_label *.
27105 * rtl.h (maybe_set_first_label_num): Likewise.
27106
27107 2016-04-27 David Malcolm <dmalcolm@redhat.com>
27108
27109 * df-core.c (df_add_problem): Make the problem param be const.
27110 (df_remove_problem): Make local "problem" be const.
27111 * df-problems.c (problem_RD): Make const.
27112 (problem_LR): Likewise.
27113 (problem_LIVE): Likewise.
27114 (problem_MIR): Likewise.
27115 (problem_CHAIN): Likewise.
27116 (problem_WORD_LR): Likewise.
27117 (problem_NOTE): Likewise.
27118 (problem_MD): Likewise.
27119 * df-scan.c (problem_SCAN): Likewise.
27120 * df.h (struct df_problem): Make field "dependent_problem" be
27121 const.
27122 (struct dataflow): Likewise for field "problem".
27123 (df_add_problem): Make param const.
27124
27125 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
27126
27127 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
27128 inter-unit moves to/from vector registers are enabled. Do not disable
27129 for TARGET_MMX.
27130
27131 2016-04-27 David Malcolm <dmalcolm@redhat.com>
27132
27133 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
27134 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
27135 #define to...
27136 (enum df_problem_id): ...this new enum.
27137 (struct df_problem): Convert field "id" from "int" to
27138 enum df_problem_id.
27139
27140 2016-04-27 David Malcolm <dmalcolm@redhat.com>
27141
27142 * rtl.def: Update comment for "things in the instruction chain" to
27143 reflect the removal of the leading "i" field for INSN_UID in
27144 r210360. Fix bogus apostrophe.
27145
27146 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
27147
27148 * config/i386/i386.md
27149 (lea arith with mem operand + setcc peephole2): Set operator mode.
27150
27151 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
27152
27153 PR target/70155
27154 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
27155 (dimode_scalar_to_vector_candidate_p): This.
27156 (timode_scalar_to_vector_candidate_p): New function.
27157 (scalar_to_vector_candidate_p): Likewise.
27158 (timode_check_non_convertible_regs): Likewise.
27159 (timode_remove_non_convertible_regs): Likewise.
27160 (remove_non_convertible_regs): Likewise.
27161 (remove_non_convertible_regs): Renamed to ...
27162 (dimode_remove_non_convertible_regs): This.
27163 (scalar_chain::~scalar_chain): Make it virtual.
27164 (scalar_chain::compute_convert_gain): Make it pure virtual.
27165 (scalar_chain::mark_dual_mode_def): Likewise.
27166 (scalar_chain::convert_insn): Likewise.
27167 (scalar_chain::convert_registers): Likewise.
27168 (scalar_chain::add_to_queue): Make it protected.
27169 (scalar_chain::emit_conversion_insns): Likewise.
27170 (scalar_chain::replace_with_subreg): Likewise.
27171 (scalar_chain::replace_with_subreg_in_insn): Likewise.
27172 (scalar_chain::convert_op): Likewise.
27173 (scalar_chain::convert_reg): Likewise.
27174 (scalar_chain::make_vector_copies): Likewise.
27175 (scalar_chain::convert_registers): New pure virtual function.
27176 (class dimode_scalar_chain): New class.
27177 (class timode_scalar_chain): Likewise.
27178 (scalar_chain::mark_dual_mode_def): Renamed to ...
27179 (dimode_scalar_chain::mark_dual_mode_def): This.
27180 (timode_scalar_chain::mark_dual_mode_def): New function.
27181 (timode_scalar_chain::convert_insn): Likewise.
27182 (dimode_scalar_chain::convert_registers): Likewise.
27183 (scalar_chain::compute_convert_gain): Renamed to ...
27184 (dimode_scalar_chain::compute_convert_gain): This.
27185 (scalar_chain::replace_with_subreg): Renamed to ...
27186 (dimode_scalar_chain::replace_with_subreg): This.
27187 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
27188 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
27189 (scalar_chain::make_vector_copies): Renamed to ...
27190 (dimode_scalar_chain::make_vector_copies): This.
27191 (scalar_chain::convert_reg): Renamed to ...
27192 (dimode_scalar_chain::convert_reg ): This.
27193 (scalar_chain::convert_op): Renamed to ...
27194 (dimode_scalar_chain::convert_op): This.
27195 (scalar_chain::convert_insn): Renamed to ...
27196 (dimode_scalar_chain::convert_insn): This.
27197 (scalar_chain::convert): Call convert_registers.
27198 (convert_scalars_to_vector): Change to scalar_chain pointer to
27199 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
27200 in 32-bit mode. Delete scalar_chain pointer. Call
27201 free_dominance_info in 64-bit mode.
27202 (pass_stv::gate): Remove TARGET_64BIT check.
27203 (ix86_option_override): Put the 64-bit STV pass before the CSE
27204 pass.
27205
27206 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
27207
27208 * dwarf2out.h (struct dw_loc_descr_node): Remove the
27209 dw_loc_frame_offset field.
27210 * dwarf2out.c (new_loc_descr): Likewise.
27211 (resolve_args_picking_1): Turn the VISITED hash set into a
27212 FRAME_OFFSET hash map. Use it to associate a frame offset to
27213 visited nodes. Remove uses of the CHECKING_P macro.
27214 (resolve_args_picking): Update call to resolve_args_picking_1.
27215
27216 2016-04-27 Martin Liska <mliska@suse.cz>
27217
27218 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
27219 (free_loop_data): Release vuses of groups.
27220
27221 2016-04-27 Bin Cheng <bin.cheng@arm.com>
27222
27223 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
27224 instead of redundant use_id and boolean have_use_for.
27225 (struct iv_use): Change sub_id into group_id. Remove field next.
27226 Move fields: related_cands, n_map_members, cost_map and selected
27227 to ...
27228 (struct iv_group): ... here. New structure.
27229 (struct iv_common_cand): Use structure declaration directly.
27230 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
27231 (MAX_CONSIDERED_USES): Rename macro to ...
27232 (MAX_CONSIDERED_GROUPS): ... here.
27233 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
27234 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
27235 (dump_uses): Rename to ...
27236 (dump_groups): ... here. Update all uses.
27237 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
27238 (find_induction_variables): Refactor format of dump information.
27239 (record_sub_use): Delete.
27240 (record_use): Update all uses.
27241 (record_group): New function.
27242 (record_group_use, find_interesting_uses_op): Call above functions.
27243 Update all uses.
27244 (find_interesting_uses_cond): Ditto.
27245 (group_compare_offset): New function.
27246 (split_all_small_groups): Rename to ...
27247 (split_small_address_groups_p): ... here. Update all uses.
27248 (split_address_groups): Update all uses.
27249 (find_interesting_uses): Refactor format of dump information.
27250 (add_candidate_1): Update all uses. Remove redundant check on iv,
27251 base and step.
27252 (add_candidate, record_common_cand): Remove redundant assert.
27253 (add_iv_candidate_for_biv): Update use.
27254 (add_iv_candidate_derived_from_uses): Update all uses.
27255 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
27256 (alloc_use_cost_map): Ditto.
27257 (set_use_iv_cost, get_use_iv_cost): Rename to ...
27258 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
27259 (determine_use_iv_cost_generic): Ditto.
27260 (determine_group_iv_cost_generic): Ditto.
27261 (determine_use_iv_cost_address): Ditto.
27262 (determine_group_iv_cost_address): Ditto.
27263 (determine_use_iv_cost_condition): Ditto.
27264 (determine_group_iv_cost_cond): Ditto.
27265 (determine_use_iv_cost): Ditto.
27266 (determine_group_iv_cost): Ditto.
27267 (set_autoinc_for_original_candidates): Update all uses.
27268 (find_iv_candidates): Update all uses. Refactor dump information.
27269 (determine_use_iv_costs): Ditto.
27270 (determine_iv_costs): Ditto.
27271 (iv_ca_cand_for_use): Rename to ...
27272 (iv_ca_cand_for_group): ... here. Update all uses.
27273 (iv_ca_add_use, iv_ca_add_group): Ditto.
27274 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
27275 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
27276 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
27277 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
27278 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
27279 (create_new_iv, adjust_iv_update_pos): Ditto.
27280 (rewrite_use_address): Delete.
27281 (rewrite_use_address_1): Rename to ...
27282 (rewrite_use_address): ... here.
27283 (rewrite_use_compare): Update all uses.
27284 (rewrite_use): Delete.
27285 (rewrite_uses): Rename to ...
27286 (rewrite_groups): ... here. Update all uses.
27287 (remove_unused_ivs, free_loop_data): Update all uses.
27288 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
27289
27290 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27291
27292 * rtlanal.c (nonzero_bits1): Convert preprocessor check
27293 for WORD_REGISTER_OPERATIONS to runtime check.
27294
27295 2016-04-27 Richard Biener <rguenther@suse.de>
27296
27297 PR ipa/70760
27298 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
27299 aggregate_value_p to determine if a function result is
27300 returned by reference.
27301 (ipa_pta_execute): Functions having their address taken are
27302 not automatically nonlocal.
27303
27304 2016-04-27 Jakub Jelinek <jakub@redhat.com>
27305
27306 PR sanitizer/70683
27307 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
27308 * fold-const.c (operand_equal_p): If flag_checking and
27309 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
27310 and if it returns non-zero, assert iterative_hash_expr on both
27311 args is the same.
27312
27313 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
27314
27315 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
27316
27317 2016-04-27 Nick Clifton <nickc@redhat.com>
27318
27319 PR middle-end/49889
27320 * varasm.c (merge_weak): Generate an error if an attempt is made
27321 to convert a non-weak static function into a weak, public function.
27322
27323 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27324
27325 * params.def (MAX_PARTITION_SIZE): New param.
27326 * doc/invoke.texi: Document lto-max-partition.
27327
27328 2016-04-27 Richard Biener <rguenther@suse.de>
27329
27330 PR ipa/70785
27331 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
27332 function cummulating used_from_other_partition, externally_visible
27333 and force_output from aliases.
27334 (refered_from_nonlocal_var): Likewise.
27335 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
27336 node flags properly.
27337
27338 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
27339
27340 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
27341 (-Wmemset-elt-size): New item.
27342
27343 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
27344
27345 PR ada/70759
27346 * stor-layout.h (internal_reference_types): Delete.
27347 * stor-layout.c (reference_types_internal): Likewise.
27348 (internal_reference_types): Likewise.
27349 (layout_type) <REFERENCE_TYPE>: Adjust.
27350
27351 2016-04-27 Jakub Jelinek <jakub@redhat.com>
27352
27353 PR sanitizer/70683
27354 * tree.h (inchash::add_expr): Add FLAGS argument.
27355 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
27356 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
27357 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
27358 Formatting fix. Adjust recursive calls. For tcc_comparison,
27359 if swap_tree_comparison (code) is smaller than code, hash that
27360 and arguments in the other order. Hash CONVERT_EXPR the same
27361 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
27362 of ADDR_EXPR of decl as the decl itself. Add or remove
27363 OEP_ADDRESS_OF from recursive flags as needed. For
27364 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
27365 operands commutatively and only the third one normally.
27366 For internal CALL_EXPR hash in CALL_EXPR_IFN.
27367
27368 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
27369
27370 * config/rtems.h (LIB_SPEC): Add -latomic.
27371
27372 2016-04-27 Joel Sherrill <joel@rtems.org>
27373
27374 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
27375 xilink.ld and flags not relevant to RTEMS.
27376
27377 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
27378
27379 * toplev.c (backend_init_target): Avoid calling init_reload when using
27380 LRA.
27381
27382 2016-04-26 Jakub Jelinek <jakub@redhat.com>
27383
27384 * reorg.c (try_merge_delay_insns): Declare i and j inside the
27385 for loops rather than one for the whole function.
27386
27387 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
27388
27389 * match.pd (X + CST CMP X): New transformation.
27390
27391 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
27392
27393 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
27394 * fold-const.c (fold_binary_loc): Remove 2 transformations
27395 superseded by match.pd.
27396 * match.pd (x+x -> x*2): Generalize to integers.
27397
27398 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
27399
27400 * config/i386/i386.md (operation on memory peephole): Duplicate an
27401 existing peephole and adapt it to match lea rather than an operation
27402 that clobbers CC.
27403
27404 PR rtl-optimization/57193
27405 * opts.c (default_options_table): Add OPT_frename_registers at -O2
27406 and above.
27407 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
27408
27409 2016-04-26 Bin Cheng <bin.cheng@arm.com>
27410
27411 * tree-if-conv.c (any_pred_load_store): New static variable.
27412 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
27413 any_pred_load_store instead of and_mask_load_store.
27414 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
27415 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
27416 (combine_blocks, tree_if_conversion): Ditto.
27417
27418 2016-04-26 Bin Cheng <bin.cheng@arm.com>
27419
27420 PR tree-optimization/70771
27421 PR tree-optimization/70775
27422 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
27423 virtual PHI nodes. Delete parameter.
27424 (if_convertible_loop_p_1): Delete argument to above function.
27425 (predicate_all_scalar_phis): Delete code handling single-argument
27426 PHIs.
27427 (tree_if_conversion): Mark and update virtual SSA.
27428
27429 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27430
27431 PR target/61821
27432 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
27433 (x86_elf_aligned_common): Rename to ...
27434 (x86_elf_aligned_decl_common): ... this.
27435 Add decl arg. Switch to .lbss for largecomm object. Use
27436 LARGECOMM_SECTION_ASM_OP.
27437 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
27438 renaming.
27439 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
27440 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
27441 Pass new decl arg.
27442 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
27443 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
27444
27445 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27446
27447 PR target/59407
27448 * config/i386/i386.c (SECTION_LARGE): Define.
27449 (x86_64_elf_select_section): Set it for large data/bss sections.
27450 Only clear SECTION_WRITE for .lrodata.
27451 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
27452 data/bss sections.
27453 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
27454 * varasm.c (default_elf_asm_named_section): Grow flagchars.
27455 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
27456 SECTION_MACH_DEP.
27457 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
27458 * doc/tm.texi: Regenerate.
27459
27460 2016-04-26 Jakub Jelinek <jakub@redhat.com>
27461
27462 PR bootstrap/70704
27463 * configure.ac (--enable-checking): Document extra flag, for
27464 non-release builds default to --enable-checking=yes,extra.
27465 If misc checking and extra checking, define CHECKING_P to 2 instead
27466 of 1.
27467 * common.opt (fchecking=): Add.
27468 * doc/invoke.texi (-fchecking=): Document.
27469 * doc/install.texi: Document --enable-checking changes.
27470 * configure: Regenerated.
27471 * config.in: Regenerated.
27472
27473 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
27474
27475 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
27476 attribute instead of which_alternative.
27477 * config/i386/sse.md (*mov<mode>_internal): Ditto.
27478 Use EXT_REX_SSE_REG_P where appropriate.
27479
27480 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
27481
27482 * config/i386/predicates.md (const0_operand): Do not match
27483 const_wide_int code.
27484 (const1_operand): Ditto.
27485
27486 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
27487
27488 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
27489 for SSE constm1 operands and TARGET_AVX512VL.
27490 (*movti_internal): Ditto.
27491 (*mov<mode>_or): Use constm1_operand predicate.
27492 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
27493 for SSE vector_all_ones operands and TARGET_AVX512VL.
27494 * config/i386/predicates.md (constm1_operand): New predicate.
27495 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
27496 emission of constant -1 load.
27497
27498 2016-04-25 Jason Merrill <jason@redhat.com>
27499
27500 * gdbinit.in: Skip is-a.h.
27501
27502 * attribs.c (register_scoped_attributes): Fix logic.
27503 * attribs.h: Declare register_scoped_attributes.
27504
27505 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27506
27507 * config/rs6000/rs6000-builtin.def: Correct pasto error for
27508 stxvd2x and stxvw4x built-in functions.
27509
27510 2016-04-25 DJ Delorie <dj@redhat.com>
27511
27512 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
27513 (ashrhi3): Likewise.
27514 (lshrhi3): Likewise.
27515
27516 2016-04-25 Richard Biener <rguenther@suse.de>
27517
27518 PR tree-optimization/70780
27519 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
27520 wasn't visited yet.
27521 (compute_antic): Mark blocks with abnormal preds as visited as
27522 they have a final empty antic-in solution already.
27523
27524 2016-04-25 Michael Collison <michael.collison@linaro.org>
27525
27526 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
27527
27528 2016-04-25 Michael Collison <michael.collison@linaro.org>
27529
27530 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
27531 mode is VQI to improve mixed mode vectorization.
27532 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
27533 define_insn to match low half of signed vaddw.
27534 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
27535 define_insn to match high half of signed vaddw.
27536 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
27537 define_insn to match low half of unsigned vaddw.
27538 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
27539 define_insn to match high half of unsigned vaddw.
27540 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
27541 (arm_simd_check_vect_par_cnst_half_p): Likewise.
27542 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
27543 for new function.
27544 (arm_simd_check_vect_par_cnst_half_p): Likewise.
27545 * config/arm/predicates.md (vect_par_constant_high): Support
27546 big endian and simplify by calling
27547 arm_simd_check_vect_par_cnst_half
27548 (vect_par_constant_low): Likewise.
27549
27550 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
27551
27552 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
27553 predicate for operand 2.
27554
27555 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
27556 H.J. Lu <hongjiu.lu@intel.com>
27557
27558 * config/i386/i386-protos.h (standard_sse_constant_p): Add
27559 machine_mode argument.
27560 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
27561 constm1_rtx operands. For VOIDmode constants, get mode from
27562 pred_mode. Check mode size if the mode is supported by ABI.
27563 (standard_sse_constant_opcode): Do not use standard_constant_p.
27564 Strictly check ABI support for all-ones operands.
27565 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
27566 immediates. Update calls to standard_sse_constant_p.
27567 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
27568 (ix86_rtx_costs): Ditto.
27569 * config/i386/i386.md (*movxi_internal_avx512f): Use
27570 nonimmediate_or_sse_const_operand instead of vector_move_operand.
27571 Use (v,BC) alternative instead of (v,C). Use register_operand
27572 checks instead of MEM_P.
27573 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
27574 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
27575 isa attribute. Use register_operand checks instead of MEM_P.
27576 (*movti_internal): Use nonimmediate_or_sse_const_operand for
27577 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
27578 alternative and corresponding sse2 isa attribute.
27579 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
27580 to standard_sse_constant_p.
27581 (FP constant splitters): Ditto.
27582 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
27583 (C): Ditto.
27584 * config/i386/predicates.md (constm1_operand): Remove.
27585 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
27586 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
27587 vector_all_ones_operand instead of constm1_operand.
27588
27589 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27590
27591 * print-rtl.c (print_rtx_insn_vec): New function.
27592 * print-rtl.h: New prototype.
27593 * store-motion.c (struct st_expr): Make avail_stores a vector.
27594 (st_expr_entry): Adjust.
27595 (free_st_expr_entry): Likewise.
27596 (print_store_motion_mems): Likewise.
27597 (find_moveable_store): Likewise.
27598 (compute_store_table): Likewise.
27599 (delete_store): Likewise.
27600 (build_store_vectors): Likewise.
27601
27602 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27603
27604 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
27605
27606 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27607
27608 * vec.h (vec_safe_contains): New function.
27609 (vec::contains): Likewise.
27610 (vec::begin): Likewise.
27611 (vec::end): Likewise.
27612
27613 2016-04-23 Jakub Jelinek <jakub@redhat.com>
27614
27615 PR sanitizer/70712
27616 * cfgexpand.c (expand_stack_vars): Fix typo.
27617
27618 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
27619
27620 * system.h (list, map, set, vector): Include conditionally.
27621 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
27622 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
27623 * ipa-icf.c (INCLUDE_LIST): Define.
27624 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
27625 * config/sh/sh.c (INCLUDE_VECTOR): Define.
27626 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
27627 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
27628 * cp/logic.cc (INCLUDE_LIST): Define.
27629 * fortran/trans-common.c (INCLUDE_MAP): Define.
27630
27631 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
27632
27633 * auto-profile.c: Remove <string.h> include.
27634 * ipa-icf-gimple.c: Remove <list> include.
27635 * diagnostic.c: Remove <new> include.
27636 * genmatch.c: Likewise.
27637 * pretty-print.c: Likewise.
27638 * toplev.c: Likewise
27639 * c/c-objc-common.c: Likewise.
27640 * cp/error.c: Likewise.
27641 * fortran/error.c: Likewise.
27642
27643 2016-04-22 Richard Biener <rguenther@suse.de>
27644
27645 * lto-streamer-in.c (input_ssa_names): Do not allocate
27646 GIMPLE_NOP for all SSA names.
27647 * lto-streamer-out.c (output_ssa_names): Do not output
27648 SSA names that should have been released.
27649
27650 2016-04-22 Richard Biener <rguenther@suse.de>
27651
27652 PR tree-optimization/70740
27653 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
27654 VDEF.
27655
27656 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
27657
27658 PR target/70750
27659 * config/i386/predicates.md (call_insn_operand): Replace
27660 sibcall_memory_operand with memory_operand.
27661
27662 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
27663
27664 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
27665 has_single_use() tests.
27666 (register_edge_assert_for_1): Likewise.
27667 (find_assert_locations_1): Check the liveness bitmap instead of
27668 checking has_single_use().
27669
27670 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
27671
27672 PR target/70728
27673 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
27674 Extract AVX-512BW constraint from AVX.
27675
27676 2016-04-21 Richard Biener <rguenther@suse.de>
27677
27678 PR tree-optimization/70725
27679 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
27680 for phi_convertible_by_degenerating_args.
27681 (predicate_all_scalar_phis): Handle single-argument PHIs.
27682
27683 2016-04-21 Richard Biener <rguenther@suse.de>
27684
27685 PR middle-end/70747
27686 * fold-const.c (fold_comparison): Return properly typed
27687 constant boolean.
27688
27689 2016-04-21 Bin Cheng <bin.cheng@arm.com>
27690
27691 PR tree-optimization/70715
27692 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
27693 after expanding BASE using expand_simple_operations.
27694
27695 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
27696
27697 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
27698 New transformations.
27699
27700 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
27701
27702 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
27703
27704 2016-04-20 Jan Hubicka <jh@suse.cz>
27705
27706 * ipa-inline.c (can_inline_edge_p): Pass caller info to
27707 ultiimate_alias_target.
27708 (update_callee_keys): Likewise.
27709 (lookup_recursive_calls): Likewise.
27710 (speculation_useful_p): Likewise.
27711
27712 2016-04-20 Jan Hubicka <jh@suse.cz>
27713
27714 PR ipa/70018
27715 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
27716 (set_nothrow_flag_1): ... this; handle interposition correctly;
27717 recurse on aliases and thunks.
27718 (cgraph_node::set_nothrow_flag): New.
27719 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
27720 functions compiled with non-call exceptions that binds to current
27721 def.
27722 (propagate_nothrow): Be safe WRT interposition.
27723 * cgraph.h (set_nothrow_flag): Update prototype.
27724
27725 2016-04-18 Jan Hubicka <jh@suse.cz>
27726
27727 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
27728 max_loop_iterations_int.
27729 (tree_unswitch_outer_loop): Likewise.
27730
27731 2016-04-20 Bin Cheng <bin.cheng@arm.com>
27732
27733 PR tree-optimization/69489
27734 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
27735 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
27736 Revise dump message.
27737 (if_convertible_bb_p): Remove check on edge count of basic block's
27738 predecessors.
27739
27740 2016-04-20 Bin Cheng <bin.cheng@arm.com>
27741
27742 PR tree-optimization/56625
27743 PR tree-optimization/69489
27744 * tree-data-ref.h (DR_INNERMOST): New macro.
27745 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
27746 hashing struct innermost_loop_behavior.
27747 (ref_DR_map): Remove.
27748 (innermost_DR_map): New map.
27749 (baseref_DR_map): Revise comment.
27750 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
27751 to innermost_DR_map accroding to its innermost loop behavior.
27752 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
27753 to its innermost loop behavior.
27754 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
27755 Add initialization for innermost_DR_map. Record memory reference
27756 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
27757 have innermost loop behavior.
27758 (if_convertible_loop_p): Remove release for ref_DR_map. Release
27759 innermost_DR_map.
27760
27761 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
27762
27763 * config/i386/i386.md (*lea<mode>_general_1): Rename from
27764 *lea_general_1. Use explicit SWI12 mode interator.
27765 (*lea<mode>_general_2): Rename from *lea_general_2.
27766 Use explicit SWI12 mode interator.
27767 (*lea<mode>_general_3): Rename from *lea_general_3.
27768 Use explicit SWI12 mode interator.
27769 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
27770 Use explicit SWI12 mode interator.
27771 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
27772 Use explicit SWI48 mode interator.
27773
27774 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
27775
27776 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
27777 Short-cut unaligned load and store cases. Handle all integer
27778 vector modes.
27779 (ix86_expand_vector_move_misalign): Short-cut unaligned load
27780 and store cases. Call ix86_avx256_split_vector_move_misalign
27781 directly without checking mode class.
27782
27783 2016-04-20 Andrew Pinski <apinski@cavium.com>
27784 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27785
27786 PR target/64971
27787 * config/aarch64/aarch64.md (sibcall): Force call
27788 address to be DImode for ILP32.
27789 (sibcall_value): Likewise.
27790
27791 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
27792
27793 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
27794
27795 2016-04-20 Richard Biener <rguenther@suse.de>
27796
27797 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
27798 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
27799 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
27800 (maybe_push_res_to_seq): Adjust.
27801 * gimple-fold.c (maybe_build_generic_op): Likewise.
27802
27803 2016-04-20 Marek Polacek <polacek@redhat.com>
27804
27805 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
27806 rather than true.
27807
27808 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
27809
27810 * config/i386/sse.md (vec_unpacks_lo_hi): Always
27811 use kmovw to support AVX512F target.
27812
27813 2016-04-20 Bin Cheng <bin.cheng@arm.com>
27814
27815 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
27816
27817 2016-04-20 Marek Polacek <polacek@redhat.com>
27818
27819 PR tree-optimization/70725
27820 * tree-if-conv.c (is_false_predicate): New function.
27821 (predicate_mem_writes): Use it.
27822
27823 2016-04-20 Richard Biener <rguenther@suse.de>
27824
27825 PR tree-optimization/70726
27826 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
27827 shift amounts from a pattern stmt operand.
27828
27829 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27830
27831 PR target/70674
27832 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
27833 stack_restore_from_fpr pattern when restoring r15.
27834 (s390_optimize_prologue): Strip away the memory barrier in the
27835 parallel when trying to get rid of restore insns.
27836 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
27837 definition for loading the stack pointer from an FPR. Compared to
27838 the normal move insn this pattern includes a full memory barrier.
27839
27840 2016-04-19 Jakub Jelinek <jakub@redhat.com>
27841
27842 PR middle-end/70680
27843 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
27844 implicitly linear or lastprivate iterator on the outer context.
27845
27846 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
27847
27848 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
27849 alignment check.
27850 * config/i386/i386.md (ssememalign): Removed.
27851 * config/i386/sse.md: Remove ssememalign attribute from patterns.
27852
27853 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
27854
27855 PR target/69201
27856 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
27857 const short * to __builtin_ia32_loaddquhi512_mask.
27858 (_mm512_maskz_loadu_epi16): Likewise.
27859 (_mm512_mask_storeu_epi16): Pass short * to
27860 __builtin_ia32_storedquhi512_mask.
27861 (_mm512_mask_loadu_epi8): Pass const char * to
27862 __builtin_ia32_loaddquqi512_mask.
27863 (_mm512_maskz_loadu_epi8): Likewise.
27864 (_mm512_mask_storeu_epi8): Pass char * to
27865 __builtin_ia32_storedquqi512_mask.
27866 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
27867 const double * to __builtin_ia32_loadupd512_mask.
27868 (_mm512_mask_loadu_pd): Likewise.
27869 (_mm512_maskz_loadu_pd): Likewise.
27870 (_mm512_storeu_pd): Pass double * to
27871 __builtin_ia32_storeupd512_mask.
27872 (_mm512_mask_storeu_pd): Likewise.
27873 (_mm512_loadu_ps): Pass const float * to
27874 __builtin_ia32_loadups512_mask.
27875 (_mm512_mask_loadu_ps): Likewise.
27876 (_mm512_maskz_loadu_ps): Likewise.
27877 (_mm512_storeu_ps): Pass float * to
27878 __builtin_ia32_storeups512_mask.
27879 (_mm512_mask_storeu_ps): Likewise.
27880 (_mm512_mask_loadu_epi64): Pass const long long * to
27881 __builtin_ia32_loaddqudi512_mask.
27882 (_mm512_maskz_loadu_epi64): Likewise.
27883 (_mm512_mask_storeu_epi64): Pass long long *
27884 to __builtin_ia32_storedqudi512_mask.
27885 (_mm512_loadu_si512): Pass const int * to
27886 __builtin_ia32_loaddqusi512_mask.
27887 (_mm512_mask_loadu_epi32): Likewise.
27888 (_mm512_maskz_loadu_epi32): Likewise.
27889 (_mm512_storeu_si512): Pass int * to
27890 __builtin_ia32_storedqusi512_mask.
27891 (_mm512_mask_storeu_epi32): Likewise.
27892 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
27893 char * to __builtin_ia32_storedquqi256_mask.
27894 (_mm_mask_storeu_epi8): Likewise.
27895 (_mm256_mask_loadu_epi16): Pass const short * to
27896 __builtin_ia32_loaddquhi256_mask.
27897 (_mm256_maskz_loadu_epi16): Likewise.
27898 (_mm_mask_loadu_epi16): Pass const short * to
27899 __builtin_ia32_loaddquhi128_mask.
27900 (_mm_maskz_loadu_epi16): Likewise.
27901 (_mm256_mask_loadu_epi8): Pass const char * to
27902 __builtin_ia32_loaddquqi256_mask.
27903 (_mm256_maskz_loadu_epi8): Likewise.
27904 (_mm_mask_loadu_epi8): Pass const char * to
27905 __builtin_ia32_loaddquqi128_mask.
27906 (_mm_maskz_loadu_epi8): Likewise.
27907 (_mm256_mask_storeu_epi16): Pass short * to.
27908 __builtin_ia32_storedquhi256_mask.
27909 (_mm_mask_storeu_epi16): Pass short * to.
27910 __builtin_ia32_storedquhi128_mask.
27911 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
27912 const double * to __builtin_ia32_loadupd256_mask.
27913 (_mm256_maskz_loadu_pd): Likewise.
27914 (_mm_mask_loadu_pd): Pass onst double * to
27915 __builtin_ia32_loadupd128_mask.
27916 (_mm_maskz_loadu_pd): Likewise.
27917 (_mm256_mask_storeu_pd): Pass double * to
27918 __builtin_ia32_storeupd256_mask.
27919 (_mm_mask_storeu_pd): Pass double * to
27920 __builtin_ia32_storeupd128_mask.
27921 (_mm256_mask_loadu_ps): Pass const float * to
27922 __builtin_ia32_loadups256_mask.
27923 (_mm256_maskz_loadu_ps): Likewise.
27924 (_mm_mask_loadu_ps): Pass const float * to
27925 __builtin_ia32_loadups128_mask.
27926 (_mm_maskz_loadu_ps): Likewise.
27927 (_mm256_mask_storeu_ps): Pass float * to
27928 __builtin_ia32_storeups256_mask.
27929 (_mm_mask_storeu_ps): ass float * to
27930 __builtin_ia32_storeups128_mask.
27931 (_mm256_mask_loadu_epi64): Pass const long long * to
27932 __builtin_ia32_loaddqudi256_mask.
27933 (_mm256_maskz_loadu_epi64): Likewise.
27934 (_mm_mask_loadu_epi64): Pass const long long * to
27935 __builtin_ia32_loaddqudi128_mask.
27936 (_mm_maskz_loadu_epi64): Likewise.
27937 (_mm256_mask_storeu_epi64): Pass long long * to
27938 __builtin_ia32_storedqudi256_mask.
27939 (_mm_mask_storeu_epi64): Pass long long * to
27940 __builtin_ia32_storedqudi128_mask.
27941 (_mm256_mask_loadu_epi32): Pass const int * to
27942 __builtin_ia32_loaddqusi256_mask.
27943 (_mm256_maskz_loadu_epi32): Likewise.
27944 (_mm_mask_loadu_epi32): Pass const int * to
27945 __builtin_ia32_loaddqusi128_mask.
27946 (_mm_maskz_loadu_epi32): Likewise.
27947 (_mm256_mask_storeu_epi32): Pass int * to
27948 __builtin_ia32_storedqusi256_mask.
27949 (_mm_mask_storeu_epi32): Pass int * to
27950 __builtin_ia32_storedqusi128_mask.
27951 * config/i386/i386-builtin-types.def (PCSHORT): New.
27952 (PINT64): Likewise.
27953 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
27954 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
27955 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
27956 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
27957 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
27958 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
27959 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
27960 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
27961 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
27962 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
27963 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
27964 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
27965 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
27966 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
27967 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
27968 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
27969 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
27970 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
27971 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
27972 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
27973 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
27974 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
27975 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
27976 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
27977 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
27978 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
27979 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
27980 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
27981 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
27982 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
27983 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
27984 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
27985 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
27986 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
27987 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
27988 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
27989 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
27990 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
27991 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
27992 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
27993 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
27994 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
27995 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
27996 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
27997 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
27998 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
27999 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
28000 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
28001 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
28002 use UNSPEC_STOREU.
28003 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
28004 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
28005 load nor store.
28006 (ix86_expand_vector_move_misalign): Likewise.
28007 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
28008 to scalar function prototype for unaligned load/store builtins.
28009 (ix86_expand_special_args_builtin): Updated.
28010 * config/i386/sse.md (UNSPEC_LOADU): Removed.
28011 (UNSPEC_STOREU): Likewise.
28012 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
28013 (VI_ULOADSTORE_F_AVX512VL): Likewise.
28014 (ssescalarsize): Handle V4TI, V2TI and V1TI.
28015 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
28016 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
28017 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
28018 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
28019 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
28020 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
28021 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
28022 (<avx512>_storedqu<mode>_mask): Likewise.
28023 (*sse4_2_pcmpestr_unaligned): Likewise.
28024 (*sse4_2_pcmpistr_unaligned): Likewise.
28025 (*mov<mode>_internal): Renamed to ...
28026 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
28027 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
28028 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
28029 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
28030
28031 2016-04-19 Richard Biener <rguenther@suse.de>
28032
28033 PR tree-optimization/70171
28034 * tree-ssa-phiprop.c: Include stor-layout.h.
28035 (phiprop_insert_phi): Handle the aggregate copy case.
28036 (propagate_with_phi): Likewise.
28037
28038 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
28039
28040 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
28041 instead of simplify_gen_subreg (... , 0).
28042 (ix86_delegitimize_address): Ditto.
28043 (ix86_split_divmod): Ditto.
28044 (ix86_split_copysign_const): Ditto.
28045 (ix86_split_copysign_var): Ditto.
28046 (ix86_expand_args_builtin): Ditto.
28047 (ix86_expand_round_builtin): Ditto.
28048 (ix86_expand_special_args_builtin): Ditto.
28049 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
28050 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
28051 (udivmodqi4): Ditto.
28052 (absneg splitters): Ditto.
28053 (*jcc_bt<mode>_1): Ditto.
28054
28055 2016-04-19 Richard Biener <rguenther@suse.de>
28056
28057 PR tree-optimization/70724
28058 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
28059 restoring out from ...
28060 (free_scc_vn): ... here.
28061 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
28062 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
28063 tail merging.
28064 (pass_fre::execute): Restore SSA info.
28065
28066 2016-04-19 Richard Biener <rguenther@suse.de>
28067
28068 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
28069 * gimple-walk.c (walk_gimple_op): Initialize it.
28070 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
28071 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
28072 remapping SSA names of defs.
28073 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
28074 adjustment.
28075
28076 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
28077
28078 PR middle-end/70689
28079 * lra-constraints.c (equiv_substition_p): New.
28080 (process_alt_operands): Use it.
28081 (swap_operands): Swap it.
28082 (curr_insn_transform): Update it.
28083
28084 2016-04-18 Michael Matz <matz@suse.de>
28085
28086 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
28087 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
28088 * tree-core.h (tree_type_common.align): Use bit-field.
28089 (tree_type_common.spare): New.
28090 (tree_decl_common.off_align): Make smaller.
28091 (tree_decl_common.align): Use bit-field.
28092
28093 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
28094 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
28095 (scan_sharing_clauses): Ditto.
28096 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
28097 (omp_finish_file): Ditto.
28098 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
28099 (layout_decl): Ditto.
28100 (relayout_decl): Ditto.
28101 (finalize_record_size): Use SET_TYPE_ALIGN.
28102 (finalize_type_size): Ditto.
28103 (finish_builtin_struct): Ditto.
28104 (layout_type): Ditto.
28105 (initialize_sizetypes): Ditto.
28106 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
28107 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
28108 (lookup_field_for_decl): Use SET_DECL_ALIGN.
28109 (get_chain_field): Ditto.
28110 (get_trampoline_type): Ditto.
28111 (get_nl_goto_field): Ditto.
28112 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
28113 SET_DECL_ALIGN.
28114 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
28115 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
28116 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
28117 (build_qualified_type): Use SET_TYPE_ALIGN.
28118 (build_aligned_type, build_range_type_1): Ditto.
28119 (build_atomic_base): Ditto.
28120 (build_common_tree_nodes): Ditto.
28121 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
28122 (expand_one_stack_var_at): Ditto.
28123 * coverage.c (build_var): Use SET_DECL_ALIGN.
28124 * except.c (init_eh): Ditto.
28125 * function.c (assign_parm_setup_block): Ditto.
28126 * symtab.c (increase_alignment_1): Ditto.
28127 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
28128 * tree-vect-stmts.c (ensure_base_align): Ditto.
28129 * varasm.c (align_variable): Ditto.
28130 (assemble_variable): Ditto.
28131 (build_constant_desc): Ditto.
28132 (output_constant_def_contents): Ditto.
28133
28134 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
28135 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
28136 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
28137 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
28138 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
28139
28140 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
28141
28142 PR target/70708
28143 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
28144 replace %vmovsd with "%vmovq".
28145 (vec_concatv2df): Likewise.
28146
28147 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
28148
28149 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
28150 (*vec_extractv2si_0): Ditto.
28151 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
28152 (zero_extended_scalar_load_operand splitters): Ditto.
28153 (vec_extract splitters): Ditto.
28154 (*vec_extractv4si_0_zext): Ditto.
28155 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
28156 and lowpart_subreg.
28157 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
28158 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
28159 (*sse4_1_extractps): Use lowpart_subreg.
28160 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
28161
28162 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28163
28164 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
28165 gld requirements.
28166 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
28167 Mention Solaris 11 packaging changes.
28168 Update gas and gld requirements.
28169 Remove reference to pre-Solaris 10 bug.
28170 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
28171 systems and bugs.
28172 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
28173 with cc.
28174
28175 2016-04-17 Jan Hubicka <jh@suse.cz>
28176
28177 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
28178 max_loop_iterations_int.
28179
28180 2016-04-18 Richard Biener <rguenther@suse.de>
28181
28182 PR tree-optimization/43434
28183 * tree-ssa-structalias.c (struct vls_data): New.
28184 (visit_loadstore): Handle all pointer-based accesses.
28185 (compute_dependence_clique): Compute a bitmap of restrict tags
28186 assigned bases and pass it to visit_loadstore.
28187
28188 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
28189
28190 PR target/70711
28191 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
28192 armv8.1-a and armv8.1-a+crc.
28193
28194 2016-04-18 Richard Biener <rguenther@suse.de>
28195
28196 PR tree-optimization/70701
28197 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
28198 references after translating through a memcpy.
28199
28200 2016-04-18 Richard Biener <rguenther@suse.de>
28201
28202 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
28203 (compute_antic): ... here. For partial antic use regular
28204 postorder and scrap iteration.
28205 (compute_partial_antic_aux): Remove unused return value.
28206 (init_pre): Do not allocate postorder.
28207 (fini_pre): Do not free postorder.
28208
28209 2016-04-18 Richard Biener <rguenther@suse.de>
28210
28211 PR middle-end/37870
28212 * expmed.c (extract_bit_field_1): Remove broken case
28213 using a wider MODE_INT mode.
28214
28215 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
28216
28217 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
28218 unless compiling with at least GCC-4.8.
28219
28220 2016-04-17 Jan Hubicka <jh@suse.cz>
28221
28222 PR bootstrap/70706
28223 * graphite.c (graphite_finalize): Update call to
28224 tree_estimate_probability.
28225 * predict.h (tree_estimate_probability): Update prototype.
28226
28227 2016-04-17 Jan Hubicka <jh@suse.cz>
28228
28229 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
28230 (tree_estimate_probability): Likewise.
28231 (pass_profile::execute): Update.
28232 (report_predictor_hitrates): New function.
28233 * profile.c (compute_branch_probabilities): Use it.
28234 * predict.h (report_predictor_hitrates): Declare.
28235
28236 2016-04-17 Jan Hubicka <jh@suse.cz>
28237
28238 PR ipa/70018
28239 * cgraph.h (cgraph_node::set_const_flag,
28240 cgraph_node::set_pure_flag): Update prototype to return bool;
28241 update comment.
28242 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
28243 of interposable symbol are interposable, too.
28244 (cgraph_set_const_flag_1): Rename to ...
28245 (set_const_flag_1): ... this one; change to self recursive function
28246 instead of call_for_symbol_thunks_and_aliases. Handle correctly
28247 clearnig the flag in all variants and also virtual thunks of const
28248 functions are pure; track if any change was done.
28249 (cgraph_node::set_const_flag): Update.
28250 (struct set_pure_flag_info): New struct.
28251 (cgraph_set_pure_flag_1): Rename to ...
28252 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
28253 rather than pointer encoded flags; track if any changes was done;
28254 handle correctly clearning flag and setting flag of aliases already
28255 declared const.
28256 (cgraph_node::set_pure_flag): Update.
28257 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
28258
28259 2016-04-17 Tom de Vries <tom@codesourcery.com>
28260
28261 PR other/70433
28262 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
28263 backslash in label.
28264
28265 2016-04-17 Tom de Vries <tom@codesourcery.com>
28266
28267 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
28268 '{}<> ' as escape-for-record.
28269
28270 2016-04-17 Tom de Vries <tom@codesourcery.com>
28271
28272 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
28273 structure.
28274
28275 2016-04-17 Tom de Vries <tom@codesourcery.com>
28276
28277 PR other/70185
28278 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
28279 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
28280 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
28281 * passes.c (finish_optimization_passes): Only call
28282 finish_graph_dump_file if dfi->graph_dump_initialized.
28283 (execute_function_dump, pass_init_dump_file): Use
28284 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
28285
28286 2016-04-17 Tom de Vries <tom@codesourcery.com>
28287
28288 PR tree-optimization/70256
28289 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
28290 (debug_varmap): New function.
28291
28292 2016-04-17 Tom de Vries <tom@codesourcery.com>
28293
28294 PR other/70183
28295 * passes.c (pass_manager::register_pass): Propagate pflags.
28296
28297 2016-04-17 Tom de Vries <tom@codesourcery.com>
28298
28299 PR other/68875
28300 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
28301 * passes.c (pass_manager::pass_manager): Declare and init p_start in
28302 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
28303 check if it's equal to p_start.
28304 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
28305
28306 2016-04-15 Jan Hubicka <jh@suse.cz>
28307
28308 PR ipa/70018
28309 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
28310 function does not bind to current def.
28311 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
28312 handle conservatively calls to functions that does not need to bind
28313 to current def.
28314 (check_call): Update call of worse_state.
28315 (ignore_edge_for_nothrow): Update.
28316 (ignore_edge_for_pure_const): Likewise.
28317 (propagate_pure_const): Update calls to worse_state.
28318 (skip_function_for_local_pure_const): Reformat comments.
28319
28320 2016-04-15 Jan Hubicka <jh@suse.cz>
28321
28322 PR ipa/70018
28323 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
28324 (cgraph_node::function_symbol): Likewise.
28325 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
28326 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
28327 (symtab_node::ultimate_alias_target): Add REF parameter.
28328 (symtab_node::binds_to_current_def_p): Declare.
28329 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
28330 (cgraph_node::function_symbol): Likewise.
28331 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
28332 (cgraph_node::get_availability): Likewise.
28333 (cgraph_edge::binds_to_current_def_p): New inline function.
28334 (varpool_node::get_availability): Add REF parameter.
28335 (varpool_node::ultimate_alias_target): Likewise.
28336 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
28337 (symtab_node::binds_to_current_def_p): Likewise.
28338 * varpool.c (varpool_node::get_availability): Likewise.
28339
28340 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
28341
28342 PR target/70662
28343 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
28344 Fix mode size check.
28345
28346 2016-04-15 Jakub Jelinek <jakub@redhat.com>
28347
28348 * BASE-VER: Set to 7.0.0.
28349
28350 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
28351
28352 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
28353
28354 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28355
28356 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
28357 architecture revisions.
28358
28359 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
28360
28361 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
28362 * config/i386/i386.c (ix86_using_red_zone): No longer static.
28363 * config/i386/i386.md (stack decrement to push peepholes): Guard
28364 with !x86_using_red_zone ().
28365
28366 2016-04-15 Jakub Jelinek <jakub@redhat.com>
28367
28368 PR c++/70675
28369 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
28370 to dump_generic_node.
28371 (NIY): Pass also flags to do_niy.
28372
28373 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
28374
28375 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
28376 (simd_clone_vector_of_formal_parm_types)
28377 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
28378 (simd_clone_mangle, simd_clone_create)
28379 (simd_clone_adjust_return_type, create_tmp_simd_array)
28380 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
28381 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
28382 (ipa_simd_modify_function_body, simd_clone_linear_addend)
28383 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
28384 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
28385 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
28386 * omp-simd-clone.c: ... this new file.
28387 (simd_clone_vector_of_formal_parm_types): Make it static.
28388 * Makefile.in (OBJS): Add omp-simd-clone.o.
28389
28390 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
28391
28392 PR target/70662
28393 * config/i386/sse.md: Use proper memory operand modifiers.
28394
28395
28396 2016-04-15 Richard Biener <rguenther@suse.de>
28397 Alan Modra <amodra@gmail.com>
28398
28399 PR tree-optimization/70130
28400 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
28401 when alignment stays not the same and no not use the realign
28402 scheme then.
28403
28404 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
28405
28406 PR target/70669
28407 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
28408 direct move handlers for KFmode. Change TFmode handlers test from
28409 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
28410
28411 2016-04-14 Jakub Jelinek <jakub@redhat.com>
28412
28413 PR c++/70594
28414 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
28415 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
28416 (inlined_polymorphic_ctor_dtor_block_p): Use it.
28417 * tree-ssa-live.c (remove_unused_scope_block_p): When
28418 in_ctor_dtor_block, avoid discarding not just BLOCKs with
28419 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
28420 block_ultimate_origin is FUNCTION_DECL.
28421 (remove_unused_locals): If current_function_decl is
28422 polymorphic_ctor_dtor_p, pass initial true to
28423 remove_unused_scope_block_p' is_ctor_dtor_block.
28424
28425 2016-04-14 Martin Sebor <msebor@redhat.com>
28426
28427 PR c++/69517
28428 PR c++/70019
28429 PR c++/70588
28430 * doc/extend.texi (Variable Length): Revert.
28431
28432 2016-04-14 Marek Polacek <polacek@redhat.com>
28433 Jan Hubicka <hubicka@ucw.cz>
28434
28435 PR c++/70029
28436 * tree.c (verify_type): Disable the canonical type of main variant
28437 check.
28438
28439 2016-04-14 Jason Merrill <jason@redhat.com>
28440
28441 * cfgexpand.c, expr.c: Revert previous change.
28442
28443 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
28444
28445 PR middle-end/70643
28446 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
28447 when building a mem ref for the incoming reduction variable.
28448
28449 2016-04-14 Richard Biener <rguenther@suse.de>
28450
28451 PR tree-optimization/70614
28452 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
28453 loop if the evolution dropped to chrec_dont_know.
28454 (interpret_condition_phi): Likewise.
28455
28456 2016-04-14 Richard Biener <rguenther@suse.de>
28457
28458 PR tree-optimization/70623
28459 * tree-ssa-pre.c (changed_blocks): Make global ...
28460 (compute_antic): ... local here. Move and fix worklist
28461 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
28462 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
28463 worklist handling, dump when ANTIC_IN changed.
28464 (compute_partial_antic_aux): Remove worklist handling.
28465 (init_pre): Do not compute post dominators. Add a comment about
28466 the CFG order chosen.
28467 (fini_pre): Do not free post dominators.
28468
28469 2016-04-13 Martin Sebor <msebor@redhat.com>
28470
28471 PR c++/69517
28472 PR c++/70019
28473 PR c++/70588
28474 * doc/extend.texi (Variable Length): Document C++ specifics.
28475
28476 2016-04-13 Jakub Jelinek <jakub@redhat.com>
28477
28478 PR c++/70641
28479 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
28480 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
28481 eh edges have been purged.
28482
28483 PR c++/70594
28484 * tree-sra.c (create_access_replacement,
28485 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
28486 gets fancy name.
28487 * tree-pretty-print.c (dump_fancy_name): New function.
28488 (dump_decl_name, dump_generic_node): Use it.
28489
28490 2016-04-13 Jason Merrill <jason@redhat.com>
28491
28492 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
28493 * expr.c (expand_expr_real_1): Likewise.
28494
28495 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
28496
28497 * config/i386/i386.md (kunpckhi): Swap operands.
28498 (kunpcksi): Likewise.
28499 (kunpckdi): Likewise.
28500 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
28501 (vec_pack_trunc_<mode>): Likewise.
28502
28503 2016-04-13 Jakub Jelinek <jakub@redhat.com>
28504
28505 PR debug/70628
28506 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
28507
28508 PR middle-end/70633
28509 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
28510 gimplification turns some element into non-constant.
28511
28512 PR debug/70628
28513 * rtl.h (convert_memory_address_addr_space_1): New prototype.
28514 * explow.c (convert_memory_address_addr_space_1): No longer static,
28515 add NO_EMIT argument and don't call convert_modes if true, pass
28516 it down recursively, remove break after return.
28517 (convert_memory_address_addr_space): Adjust caller.
28518 * simplify-rtx.c (simplify_unary_operation_1): Call
28519 convert_memory_address_addr_space_1 instead of convert_memory_address,
28520 if it returns NULL, don't simplify.
28521
28522 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
28523
28524 PR target/70630
28525 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
28526
28527 2016-04-12 Jakub Jelinek <jakub@redhat.com>
28528
28529 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
28530 Bump the upper SIMDLEN limits, so that if the return type or
28531 characteristic type if the return type is void can be passed in
28532 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
28533 allowed.
28534
28535 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
28536
28537 PR target/70640
28538 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
28539 Do not use "=" constraint on an input constraint.
28540 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
28541 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
28542 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
28543 generates (neg (abs ...)) instead of (abs ...).
28544
28545 2016-04-12 Jakub Jelinek <jakub@redhat.com>
28546
28547 PR rtl-optimization/70596
28548 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
28549 just invalidate LRA data and reset them. Adjust dump wording.
28550
28551 2016-04-12 Martin Liska <mliska@suse.cz>
28552
28553 Revert
28554 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
28555
28556 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
28557 estimates here.
28558 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
28559 max_loop_iterations_int.
28560 (tree_unswitch_outer_loop): Likewise.
28561 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
28562 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
28563
28564 2016-04-12 Tom de Vries <tom@codesourcery.com>
28565
28566 PR tree-optimization/68756
28567 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
28568 instead of new_name.
28569
28570 2016-04-12 Jakub Jelinek <jakub@redhat.com>
28571
28572 PR tree-optimization/70602
28573 * tree-sra.c (generate_subtree_copies): Don't write anything into
28574 constant pool decls.
28575
28576 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
28577 regardless whether there are depend clauses or not.
28578
28579 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
28580
28581 PR target/70381
28582 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
28583 target attribute and pragma from changing the -mfloat128
28584 and -mfloat128-hardware options.
28585
28586 * doc/extend.texi (Additional Floating Types): Document PowerPC
28587 __float128 restrictions.
28588
28589 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
28590
28591 PR target/70133
28592 * config/aarch64/driver-aarch64.c
28593 (aarch64_get_extension_string_for_isa_flags): New.
28594 (arch_extension): Rename to...
28595 (aarch64_arch_extension): ...This.
28596 (ext_to_feat_string): Rename to...
28597 (aarch64_extensions): ...This.
28598 (aarch64_core_data): Keep track of architecture extension flags.
28599 (cpu_data): Rename to...
28600 (aarch64_cpu_data): ...This.
28601 (aarch64_arch_driver_info): Keep track of architecture extension
28602 flags.
28603 (get_arch_name_from_id): Rename to...
28604 (get_arch_from_id): ...This, change return type.
28605 (host_detect_local_cpu): Update and reformat for renames, handle
28606 extensions through common infrastructure.
28607
28608 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
28609
28610 PR target/70133
28611 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
28612 track of a canonical flag name.
28613 (all_extensions): Likewise.
28614 (arch_to_arch_name): Also track extension flags enabled by the arch.
28615 (all_architectures): Likewise.
28616 (aarch64_parse_extension): Move to here.
28617 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
28618 rework.
28619 (aarch64_rewrite_selected_cpu): Update for above change.
28620 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
28621 are handled, such that the single explicit value enabled by an
28622 extension is kept seperate from the implicit values it also enables.
28623 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
28624 to here.
28625 (aarch64_parse_extension): New.
28626 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
28627 here to config/aarch64/aarch64-protos.h.
28628 (aarch64_parse_extension): Move from here to
28629 common/config/aarch64/aarch64-common.c.
28630 (aarch64_option_print): Update.
28631 (aarch64_declare_function_name): Likewise.
28632 (aarch64_start_file): Likewise.
28633 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
28634 the canonical flag for extensions.
28635 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
28636 flags.
28637
28638 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
28639
28640 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
28641 AARCH64_FL_CRC.
28642
28643 2016-04-09 Tom de Vries <tom@codesourcery.com>
28644
28645 PR tree-optimization/68953
28646 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
28647 first to last subscript.
28648
28649 2016-04-09 Jakub Jelinek <jakub@redhat.com>
28650
28651 PR tree-optimization/70586
28652 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
28653 for any calls.
28654
28655 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
28656
28657 PR lto/70289
28658 PR ipa/70348
28659 PR tree-optimization/70373
28660 PR middle-end/70533
28661 PR middle-end/70534
28662 PR middle-end/70535
28663 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
28664 clauses for acc parallel reductions as necessary. Error on those
28665 that are private.
28666 * omp-low.c (scan_sharing_clauses): Don't install variables which
28667 are used in acc parallel reductions.
28668 (lower_rec_input_clauses): Remove dead code.
28669 (lower_oacc_reductions): Add support for reference reductions.
28670 (lower_reduction_clauses): Remove dead code.
28671 (lower_omp_target): Don't remap variables appearing in acc parallel
28672 reductions.
28673 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
28674
28675 2016-04-08 Jakub Jelinek <jakub@redhat.com>
28676
28677 PR middle-end/70593
28678 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
28679 with multiple SSA_NAME defs, force the outputs other than first
28680 to be live before calling live_track_process_def on each output.
28681
28682 PR rtl-optimization/70574
28683 * fwprop.c (forward_propagate_and_simplify): Don't add
28684 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
28685 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
28686 paradoxical subregs within *loc.
28687
28688 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
28689
28690 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
28691 -ftree-parallelize-loops={0,1}.
28692 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
28693 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
28694 * config/ia64/hpux.h (LIB_SPEC): Likewise.
28695 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
28696 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
28697
28698 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
28699
28700 PR sanitizer/70541
28701 * asan.c (instrument_derefs): If we get unknown location, extract it
28702 with EXPR_LOCATION.
28703 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
28704
28705 2016-04-08 Tom de Vries <tom@codesourcery.com>
28706
28707 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
28708 implicit firstprivate clause.
28709
28710 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28711
28712 PR target/70566
28713 * config/arm/thumb2.md (tst + branch-> lsls + branch
28714 peephole below *orsi_not_shiftsi_si): Require that condition
28715 register is dead after the peephole.
28716 (second peephole after the above): Likewise.
28717
28718 2016-04-08 Alan Modra <amodra@gmail.com>
28719
28720 PR target/70117
28721 * builtins.c (fold_builtin_classify): For IBM extended precision,
28722 look at just the high-order double to test for NaN.
28723 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
28724 test just the high double for Inf but both doubles for subnormal
28725 limit.
28726
28727 2016-04-07 Jakub Jelinek <jakub@redhat.com>
28728
28729 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
28730 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
28731 node->simdclone->mask_mode != VOIDmode masks.
28732 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
28733 earlier, use it instead of node->simdclone.
28734 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
28735 Set clonei->mask_mode.
28736
28737 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
28738
28739 PR c/70436
28740 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
28741 Pass it through to cp_parser_already_scoped_statement.
28742 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
28743 it through to cp_parser_statement.
28744 (cp_parser_statement): Pass IF_P through to
28745 cp_parser_iteration_statement.
28746 (cp_parser_pragma): Adjust call to
28747 cp_parser_iteration_statement.
28748
28749 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
28750
28751 PR c/70436
28752 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
28753 resolve a future -Wparentheses warning.
28754 * omp-low.c (scan_sharing_clauses): Likewise.
28755 * tree-parloops.c (eliminate_local_variables): Likewise.
28756
28757 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
28758
28759 PR rtl-optimization/70398
28760 * lra-constraints.c (process_address_1): Check zero scale and code
28761 for reloading with zero scale.
28762
28763 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
28764
28765 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
28766 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
28767
28768 2016-04-06 Jakub Jelinek <jakub@redhat.com>
28769
28770 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
28771 Add support for AVX512F clones, include them by default for
28772 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
28773 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
28774 up to 128.
28775
28776 PR middle-end/70550
28777 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
28778 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
28779 firstprivate clauses.
28780 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
28781 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
28782 (lower_omp_target): Set TREE_NO_WARNING for
28783 non-addressable possibly uninitialized vars which are copied into
28784 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
28785
28786 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
28787
28788 * config/pa/predicates.md (integer_store_memory_operand): Accept
28789 REG+D operands with a large offset when reload_in_progress is true.
28790 (floating_point_store_memory_operand): Likewise.
28791
28792 2016-04-05 Jakub Jelinek <jakub@redhat.com>
28793
28794 PR c++/70336
28795 * match.pd (nested int casts): Limit to GIMPLE.
28796
28797 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
28798
28799 PR ipa/66223
28800 * ipa-devirt.c (maybe_record_node): Fix comment; use
28801 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
28802
28803 2016-04-05 Jakub Jelinek <jakub@redhat.com>
28804
28805 PR rtl-optimization/70542
28806 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
28807 if there are any uses other than insn or debug insns.
28808
28809 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
28810 Jakub Jelinek <jakub@redhat.com>
28811
28812 PR tree-optimization/70509
28813 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
28814 Shift HOST_WIDE_INT_1U instead of 1.
28815
28816 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
28817
28818 PR tree-optimization/70509
28819 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
28820 of the vector base type for index.
28821
28822 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
28823
28824 PR target/70510
28825 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
28826
28827 2016-04-05 Richard Biener <rguenther@suse.de>
28828
28829 PR tree-optimization/70526
28830 * tree-sra.c (build_ref_for_offset): Use prev_base to
28831 extract the alias pointer type.
28832
28833 2016-04-05 Richard Biener <rguenther@suse.de>
28834
28835 * dse.c (struct store_info): Remove alias_set member.
28836 (struct read_info_type): Likewise.
28837 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
28838 spill_deleted, clear_alias_set_lookup): Remove.
28839 (get_group_info): Remove dead base == NULL_RTX case.
28840 (dse_step0): Remove initialization of removed variables.
28841 (delete_dead_store_insn): Reomve alias set dumping.
28842 (free_read_records): Remove alias_set handling.
28843 (canon_address): Remove alias_set_out parameter.
28844 (record_store): Remove spill_alias_set, it's always zero.
28845 (check_mem_read_rtx): Likewise.
28846 (dse_step2): Rename from ...
28847 (dse_step2_nospill): ... this. Adjust.
28848 (scan_stores): Rename from ...
28849 (scan_stores_nospill): ... this.
28850 (scan_reads): Rename from ...
28851 (scan_reads_nospill): ... this.
28852 (scan_stores_spill, scan_reads_spill): Remove.
28853 (dse_step3_scan): Remove for_spills argument which is always false.
28854 (dse_step3): Likewise.
28855 (dse_step5): Rename from ...
28856 (dse_step5_nospill): ... this. Remove alias_set handling.
28857 (rest_of_handle_dse): Adjust.
28858
28859 2016-04-05 Jakub Jelinek <jakub@redhat.com>
28860
28861 PR target/70525
28862 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
28863 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
28864 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
28865 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
28866
28867 2016-04-05 Richard Biener <rguenther@suse.de>
28868
28869 PR middle-end/70499
28870 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
28871 non-register type temporaries into SSA.
28872
28873 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
28874
28875 PR ipa/66223
28876 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
28877 calls when sanitizing.
28878 (possible_polymorphic_call_target_p): Fix formatting.
28879
28880 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28881 Jakub Jelinek <jakub@redhat.com>
28882
28883 PR middle-end/70457
28884 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
28885 to ensure a call statement is compatible with a built-in's
28886 prototype.
28887 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
28888 Likewise.
28889
28890 2016-04-04 Richard Biener <rguenther@suse.de>
28891
28892 PR rtl-optimization/70484
28893 * rtl.h (canon_output_dependence): Declare.
28894 * alias.c (canon_output_dependence): New function.
28895 * dse.c (record_store): Use canon_output_dependence rather
28896 than canon_true_dependence.
28897
28898 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
28899
28900 PR ipa/68881
28901 * cgraph.h (symtab_node::copy_visibility_from): New function.
28902 * symtab.c (symtab_node::copy_visibility_from): New function.
28903 * ipa-visibility.c (optimize_weakref): New function.
28904 (function_and_variable_visibility): Use it.
28905
28906 2016-04-04 Martin Liska <mliska@suse.cz>
28907
28908 PR hsa/70402
28909 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
28910 value that is really in range handled by SBR instruction.
28911 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
28912 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
28913 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
28914
28915 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
28916
28917 PR target/70416
28918 PR target/67391
28919 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
28920 set, but not for SP_REG operands.
28921
28922 2016-04-02 Martin Sebor <msebor@redhat.com>
28923
28924 PR c++/67376
28925 * fold-const.c (maybe_nonzero_address): New function.
28926 (fold_comparison): Call it. Fold equality and relational
28927 expressions involving null pointers.
28928 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
28929
28930 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
28931
28932 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
28933 the "Y" constraint (scalar FP 0.0 immediate).
28934
28935 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
28936 Add the "const_double" to the list of operand constraints.
28937
28938 2016-04-01 Jakub Jelinek <jakub@redhat.com>
28939
28940 PR rtl-optimization/70467
28941 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
28942 If low word of the last operand is 0, just emit addition/subtraction
28943 for the high word.
28944
28945 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28946
28947 PR target/70404
28948 * config/s390/s390.c (s390_expand_insv): Check for everything
28949 constant instead of just VOIDmode stuff.
28950
28951 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28952
28953 PR target/70496
28954 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
28955
28956 2016-04-01 Nathan Sidwell <nathan@acm.org>
28957
28958 * tree.def (TRY_CATCH_EXPR): Correct documentation.
28959
28960 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
28961
28962 PR rtl-optimization/70461
28963 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
28964 is necessary.
28965
28966 2016-03-31 Martin Liska <mliska@suse.cz>
28967
28968 PR hsa/70399
28969 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
28970 a tree value or an immediate integer value to a buffer
28971 that is eventually copied to a BRIG section.
28972 (emit_immediate_operand): Call the function here.
28973 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
28974 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
28975 of class' fields that are removed.
28976 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
28977 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
28978 m_brig_repr_size fields.
28979
28980 2016-03-31 Martin Liska <mliska@suse.cz>
28981
28982 PR hsa/70391
28983 * hsa-gen.c (hsa_function_representation::update_dominance): New
28984 function.
28985 (convert_addr_to_flat_segment): Likewise.
28986 (gen_hsa_memory_set): New alignment argument.
28987 (gen_hsa_ctor_assignment): Likewise.
28988 (gen_hsa_insns_for_single_assignment): Provide alignment
28989 to gen_hsa_ctor_assignment.
28990 (gen_hsa_insns_for_direct_call): Add new argument.
28991 (expand_lhs_of_string_op): New function.
28992 (expand_string_operation_builtin): Likewise.
28993 (expand_memory_copy): New function.
28994 (expand_memory_set): New function.
28995 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
28996 (convert_switch_statements): Change signature.
28997 (generate_hsa): Use a return value of the function.
28998 (pass_gen_hsail::execute): Do not call
28999 convert_switch_statements here.
29000 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
29001 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
29002 (hsa_function_representation::update_dominance): New function.
29003
29004 2016-03-31 Martin Liska <mliska@suse.cz>
29005
29006 PR hsa/70391
29007 * hsa-brig.c (emit_directive_variable): Emit alignment
29008 according to hsa_symbol::m_align.
29009 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
29010 (dump_hsa_symbol): Dump alignment of HSA symbols.
29011 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
29012 (gen_hsa_addr_with_align): New function.
29013 (hsa_bitmemref_alignment): Use newly added function.
29014 (gen_hsa_insns_for_load): Likewise.
29015 (gen_hsa_insns_for_store): Likewise.
29016 (gen_hsa_memory_copy): New argument added.
29017 (gen_hsa_insns_for_single_assignment): Respect
29018 alignment for assignments processed via gen_hsa_memory_copy.
29019 (gen_hsa_insns_for_direct_call): Likewise.
29020 (gen_hsa_insns_for_return): Likewise.
29021 (gen_function_def_parameters): Set default alignment.
29022 * hsa.c (hsa_object_alignment): New function.
29023 (hsa_byte_alignment): Pasted function.
29024 * hsa.h (hsa_symbol::m_align): New field.
29025
29026 2016-03-31 Bin Cheng <bin.cheng@arm.com>
29027
29028 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
29029 scratch field for goto case.
29030
29031 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
29032
29033 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
29034
29035 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
29036
29037 PR target/70442
29038 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
29039 (scalar_chain::convert_insn): Call convert_op for reg
29040 moves to handle undefined registers.
29041
29042 2016-03-31 Nathan Sidwell <nathan@acm.org>
29043
29044 PR c++/70393
29045 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
29046 Assert we don't want to move backwards.
29047
29048 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
29049
29050 PR target/70453
29051 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
29052
29053 2016-03-31 Jakub Jelinek <jakub@redhat.com>
29054
29055 PR rtl-optimization/70460
29056 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
29057 with operand from REG_LABEL_OPERAND, instead substitute
29058 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
29059 Don't do anything for REG_NON_LOCAL_GOTO jumps.
29060
29061 2016-03-31 Martin Liska <mliska@suse.cz>
29062
29063 * passes.c (execute_one_pass): Do not call
29064 todo_after for a discarded function.
29065
29066 2016-03-31 Bin Cheng <bin.cheng@arm.com>
29067
29068 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
29069 (no_cost, infinite_cost): Initialize the new field.
29070 (get_computation_cost_at): Record setup cost.
29071 (determine_use_iv_cost_address): Skip cost computation for sub
29072 uses if we can estimate it without losing accuracy.
29073
29074 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
29075
29076 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
29077 estimates here.
29078 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
29079 max_loop_iterations_int.
29080 (tree_unswitch_outer_loop): Likewise.
29081 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
29082 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
29083
29084 2016-03-30 Richard Biener <rguenther@suse.de>
29085
29086 PR middle-end/70450
29087 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
29088
29089 2016-03-30 Jakub Jelinek <jakub@redhat.com>
29090
29091 PR target/70421
29092 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
29093 in gen_blendm expander.
29094
29095 2016-03-30 Nick Clifton <nickc@redhat.com>
29096
29097 PR target/62254
29098 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
29099 case where we are already provided with an SImode SUBREG.
29100
29101 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
29102
29103 PR target/70439
29104 * config/i386/i386.c (ix86_expand_epilogue): Properly check
29105 conflict between DRAP register and __builtin_eh_return.
29106
29107 2016-03-30 Michael Matz <matz@suse.de>
29108 Richard Biener <rguenther@suse.de>
29109
29110 PR ipa/12392
29111 * ipa-polymorphic-call.c (struct type_change_info): Change
29112 speculative to an unsigned allowing to limit the work we do.
29113 (csftc_abort_walking_p): New inline function..
29114 (check_stmt_for_type_change): Limit the number of may-defs
29115 skipped for speculative devirtualization to
29116 max-speculative-devirt-maydefs.
29117 * params.def (max-speculative-devirt-maydefs): New param.
29118 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
29119
29120 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
29121
29122 PR target/63890
29123 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
29124 and TARGET_MACHO.
29125
29126 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
29127
29128 PR tree-optimization/59124
29129 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
29130 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
29131
29132 2016-03-29 Jeff Law <law@redhat.com>
29133
29134 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
29135
29136 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
29137
29138 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
29139 to HOST_WIDE_INT.
29140
29141 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
29142
29143 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
29144 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
29145 gcrt0.o if linking dynamically.
29146
29147 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
29148
29149 PR ipa/70283
29150 * ipa-devirt.c (methods_equal_p): New function.
29151 (compare_virtual_tables): Use it.
29152 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
29153 * cgraphclones.c (clone_function_name_1): Use
29154 symbol_table::symbol_suffix_separator.
29155 * coverage.c (build_var): Likewise.
29156 * symtab.c (symbol_table::symbol_suffix_separator): New.
29157
29158 2016-03-29 Jakub Jelinek <jakub@redhat.com>
29159
29160 PR rtl-optimization/70429
29161 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
29162 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
29163 mode != result_mode.
29164
29165 PR c++/70353
29166 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
29167
29168 PR tree-optimization/70405
29169 * ssa-iterators.h (num_imm_uses): Add missing braces.
29170
29171 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
29172
29173 PR rtl-optimization/68695
29174 * ira-color.c (allocno_copy_cost_saving): New.
29175 (improve_allocation): Use it.
29176
29177 2016-03-29 Richard Henderson <rth@redhat.com>
29178
29179 PR middle-end/70355
29180 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
29181
29182 2016-03-29 Richard Biener <rguenther@suse.de>
29183
29184 PR middle-end/70424
29185 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
29186 use alignment returned by get_pointer_alignment_1 if it is
29187 bigger than BITS_PER_UNIT.
29188 * builtins.c (get_pointer_alignment_1): Do not return true
29189 for alignment extracted from SSA info.
29190
29191 2016-03-28 James Bowman <james.bowman@ftdichip.com>
29192
29193 * config/ft32/ft32.opt (mnodiv): New.
29194 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
29195 * doc/invoke.texi (FT32 Options -mnodiv): New.
29196
29197 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
29198
29199 PR target/70406
29200 * config/i386/i386.md (define_split, andn): Fix modes.
29201
29202 2016-03-26 Richard Biener <rguenther@suse.de>
29203 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
29204
29205 PR ipa/70366
29206 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
29207 instead of
29208 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
29209 as 2nd argument to cl_optimization_restore().
29210
29211 2016-03-25 Richard Henderson <rth@redhat.com>
29212
29213 PR target/70120
29214 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
29215 * config/aarch64/aarch64-protos.h: Declare it.
29216 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
29217
29218 2016-03-25 Alan Modra <amodra@gmail.com>
29219
29220 PR target/70052
29221 * config/rs6000/constraints.md (j): Simplify.
29222 * config/rs6000/predicates.md (easy_fp_constant): Exclude
29223 decimal float 0.D.
29224 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
29225 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
29226 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
29227 in all constraint alternatives.
29228 (movtd_64bit_nodm): Delete "j" constraint alternative.
29229
29230 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
29231
29232 * tree-ssa-propagate.c: Enhance docs for
29233 SSA_PROP_NOT_INTERESTING.
29234
29235 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
29236
29237 * doc/extend.texi: Fix typo in documentation to pure attribute.
29238
29239 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
29240
29241 PR target/70319
29242 * config/pa/pa.md (bswapdi2): Use a scratch register.
29243
29244 2016-03-24 Richard Henderson <rth@redhat.com>
29245
29246 PR middle-end/69845
29247 * fold-const.c (extract_muldiv_1): Correct test for multiplication
29248 overflow.
29249
29250 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
29251
29252 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
29253 using ix86_expand_binary_operator instead of gen_andsi3.
29254
29255 2016-03-24 Richard Biener <rguenther@suse.de>
29256
29257 PR tree-optimization/70396
29258 * tree-vect-stmts.c (vectorizable_comparison): Use
29259 get_vectype_for_scalar_type.
29260
29261 2016-03-24 Richard Biener <rguenther@suse.de>
29262
29263 PR middle-end/70370
29264 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
29265 with register bases.
29266
29267 2016-03-24 Richard Biener <rguenther@suse.de>
29268
29269 PR tree-optimization/70372
29270 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
29271 build_all_ones_cst to also handle vector types correctly.
29272
29273 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
29274
29275 PR target/70381
29276 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
29277 -mfloat128 here.
29278
29279 2016-03-23 Marek Polacek <polacek@redhat.com>
29280
29281 PR c++/69884
29282 * doc/invoke.texi: Document -Wignored-attributes.
29283
29284 2016-03-23 Bin Cheng <bin.cheng@arm.com>
29285
29286 PR tree-optimization/69042
29287 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
29288 parameter from 30 to 40.
29289
29290 2016-03-23 Bin Cheng <bin.cheng@arm.com>
29291
29292 PR tree-optimization/69042
29293 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
29294 for use with constant offset stripped in base.
29295
29296 2016-03-23 Richard Biener <rguenther@suse.de>
29297
29298 PR middle-end/70251
29299 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
29300 mode compatibility check.
29301 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
29302
29303 2016-03-23 Jeff Law <law@redhat.com>
29304
29305 PR tree-optimization/64058
29306 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
29307 CONFLICT_COUNT.
29308 (struct ssa_conflicts): Move up earlier in the file.
29309 (conflicts_, var_map_): New static variables.
29310 (initialize_conflict_count): New function to initialize the
29311 CONFLICT_COUNT field for each conflict pair.
29312 (compare_pairs): Lazily initialize the conflict count and use it
29313 as the first tie-breaker.
29314 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
29315 and wipe conflicts_ and map_ around the call to qsort. Remove
29316 special case for 2 coalesce pairs.
29317 * bitmap.c (bitmap_count_unique_bits): New function.
29318 (bitmap_count_bits_in_word): New function, extracted from
29319 bitmap_count_bits.
29320 (bitmap_count_bits): Use bitmap_count_bits_in_word.
29321 * bitmap.h (bitmap_count_unique_bits): Declare it.
29322
29323 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
29324
29325 PR target/69917
29326 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
29327 transparent alias chain for decl assembler name.
29328 * config/sol2.c (solaris_assemble_visibility): Likewise.
29329
29330 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29331
29332 * config/arm/arm1020e.md (1020call_op): Reduce reservation
29333 duration.
29334 (v10_fdivs): Likewise.
29335 (v10_fdivd): Likewise.
29336
29337 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29338
29339 PR driver/70132
29340 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
29341 to not call fclose twice on file.
29342
29343 2016-03-23 Jakub Jelinek <jakub@redhat.com>
29344
29345 PR tree-optimization/70354
29346 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
29347 oprnd0 is wider than oprnd1 and there is a cast from the wider
29348 type to oprnd1, mask it with the mask of the narrower type.
29349
29350 PR target/70321
29351 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
29352 Optimize TARGET_STV splitters, if high or low word of last argument
29353 is 0 or -1.
29354
29355 2016-03-22 Jeff Law <law@redhat.com>
29356
29357 PR target/70232
29358 tree-ssa-threadbackward.c
29359 (fsm_find_control_statement_thread_paths): Correctly distinguish
29360 between old style jump threads vs FSM jump threads.
29361
29362 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
29363
29364 PR target/70302
29365 * config/i386/i386.c (scalar_chain::convert_op): Support
29366 uninitialized register usage case.
29367
29368 2016-03-22 Richard Biener <rguenther@suse.de>
29369
29370 PR middle-end/70251
29371 * genmatch.c (gen_transform): Adjust last parameter to a three-state
29372 int...
29373 (capture::gen_transform): ... to change behavior when substituting
29374 a condition into cond or not-cond expr context.
29375 (dt_simplify::gen_1): Adjust.
29376 * gimple-match-head.c: Include gimplify.h for unshare_expr.
29377 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
29378 last change and instead change to
29379 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
29380 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
29381
29382 2016-03-22 Anthony Green <green@moxielogic.com>
29383
29384 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
29385 issue for moxiebox targets.
29386 (CC1PLUS_SPEC): Ditto.
29387
29388 2016-03-22 Richard Biener <rguenther@suse.de>
29389
29390 PR middle-end/70333
29391 * fold-const.c (extract_muldiv_1): Properly perform multiplication
29392 in the wide type.
29393
29394 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
29395
29396 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
29397
29398 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
29399
29400 PR target/70325
29401 * config/i386/i386.c (def_builtin): Handle
29402 OPTION_MASK_ISA_AVX512VL to be and-ed with other
29403 bits.
29404 (const struct builtin_description bdesc_special_args[]):
29405 Remove duplicate ISA bits.
29406
29407 2016-03-22 Jakub Jelinek <jakub@redhat.com>
29408
29409 PR target/70329
29410 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
29411 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
29412 in a way that works also for AVX512BW.
29413
29414 PR target/70300
29415 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
29416 instead of source if operands[1] is xmm16 and above and
29417 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
29418 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
29419
29420 PR c++/70295
29421 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
29422 on assign if (*from_p) is a comparison, set it to
29423 TREE_NO_WARNING (*from_p).
29424
29425 2016-03-21 Jakub Jelinek <jakub@redhat.com>
29426
29427 PR middle-end/70326
29428 * lra.c (restore_scratches): Ignore deleted insns.
29429
29430 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
29431 Jakub Jelinek <jakub@redhat.com>
29432
29433 PR tree-optimization/70317
29434 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
29435 to HONOR_NANS.
29436
29437 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
29438
29439 PR target/70327
29440 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
29441 of ix86_expand_move.
29442 (movoi): Ditto.
29443 (movti): Use general_operand for operand 1 predicate.
29444
29445 2016-03-21 Martin Liska <mliska@suse.cz>
29446
29447 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
29448 insns.
29449 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
29450
29451 2016-03-21 Martin Liska <mliska@suse.cz>
29452
29453 PR ipa/70306
29454 * ipa-icf.c (sem_function::parse): Skip static
29455 constructors and destructors.
29456
29457 2016-03-21 Jakub Jelinek <jakub@redhat.com>
29458
29459 PR target/70296
29460 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
29461 function-like macro, peek following token(s) if it is followed
29462 by CPP_OPEN_PAREN token with optional padding in between, and
29463 if not, don't treat it like a macro.
29464
29465 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
29466 Alexander Monakov <amonakov@ispras.ru>
29467
29468 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
29469 for the stabs debug format.
29470
29471 2016-03-21 Richard Biener <rguenther@suse.de>
29472
29473 PR tree-optimization/70310
29474 * tree-vect-generic.c (expand_vector_condition): Fold the built
29475 condition.
29476
29477 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
29478
29479 PR target/70293
29480 * config/i386/sse.md (define_insn "*vec_dup<mode>"/AVX2):
29481 Block third alternative for AVX-512VL target,
29482
29483 2016-03-21 Martin Liska <mliska@suse.cz>
29484
29485 PR hsa/70234
29486 * hsa-brig.c (emit_function_directives): Mark unemitted
29487 global variables for emission.
29488 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
29489 (get_symbol_for_decl): Likewise.
29490 * hsa.h (struct hsa_symbol): New flag.
29491
29492 2016-03-21 Richard Biener <rguenther@suse.de>
29493
29494 PR tree-optimization/70288
29495 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
29496 we do not estimate unsimplified all-constant conditionals or
29497 switches as optimized away.
29498
29499 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
29500
29501 PR rtl-optimization/69102
29502 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
29503 when we have a readonly dependency context.
29504
29505 2016-03-18 Jeff Law <law@redhat.com>
29506
29507 PR rtl-optimization/70263
29508 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
29509 (update_equiv_regs): When trying to move a store to after the insn
29510 that sets the source of the store, make sure the store occurs after
29511 the insn that sets the source of the store. When successful note
29512 the REG_EQUIV note created in the dump file.
29513
29514 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
29515 Bernd Schmidt <bschmidt@redhat.com>
29516
29517 * doc/extend.texi: Document more potential problems with basic asms.
29518
29519 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
29520
29521 PR rtl-optimization/70278
29522 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
29523 VOIDmode.
29524
29525 2016-03-18 Jason Merrill <jason@redhat.com>
29526
29527 * calls.c (load_register_parameters): Fix zero size sibcall logic.
29528
29529 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
29530
29531 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
29532 values to 128b regs.
29533
29534 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
29535
29536 PR tree-optimization/70252
29537 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
29538 boolean vector has a proper number of elements.
29539 (supportable_narrowing_operation): Likewise.
29540
29541 2016-03-18 Tom de Vries <tom@codesourcery.com>
29542
29543 PR ipa/70269
29544 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
29545
29546 2016-03-18 Jakub Jelinek <jakub@redhat.com>
29547
29548 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
29549 instead of replace_rtx for DEBUG_INSNs.
29550
29551 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
29552
29553 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
29554 load type reservations.
29555
29556 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
29557
29558 PR target/70188
29559 * config/pa/constraints.md: Revert 2015-02-13 change. Use
29560 define_constraint for "Q" and "T" constraints.
29561
29562 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
29563
29564 Tweak the pipeline model for Exynos M1
29565
29566 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
29567 model.
29568
29569 2016-03-17 David Malcolm <dmalcolm@redhat.com>
29570
29571 PR c/70264
29572 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
29573 where one or both locations aren't within a line_map.
29574
29575 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
29576
29577 PR driver/70192
29578 * opts.c (finish_options): Don't set flag_pie to the default if
29579 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
29580 if it is -1.
29581
29582 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
29583
29584 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
29585 true as ALL_REGS argument to replace_rtx.
29586
29587 2016-03-17 Richard Biener <rguenther@suse.de>
29588
29589 PR debug/70271
29590 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
29591 last.
29592
29593 2016-03-17 Jakub Jelinek <jakub@redhat.com>
29594
29595 PR target/70245
29596 * rtl.h (replace_rtx): Add ALL_REGS argument.
29597 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
29598 equality and assert mode is the same, instead of just rtx pointer
29599 equality.
29600 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
29601 true as ALL_REGS argument to replace_rtx.
29602
29603 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
29604
29605 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
29606 for boolean vector with vector mode only.
29607 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
29608
29609 2016-03-17 Nick Clifton <nickc@redhat.com>
29610
29611 PR target/70162
29612 * config/rx/rx.c (rx_print_integer): Print negative constants in
29613 decimal.
29614
29615 2016-03-17 Jakub Jelinek <jakub@redhat.com>
29616
29617 PR target/70261
29618 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
29619
29620 2016-03-16 Richard Henderson <rth@redhat.com>
29621 Richard Biener <rguenth@suse.de>
29622
29623 PR middle-end/70240
29624 PR middle-end/68215
29625 PR tree-opt/68714
29626 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
29627 first operand as is_gimple_condexpr.
29628
29629 PR middle-end/70240
29630 PR middle-end/68215
29631 Revert r231575
29632 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
29633 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
29634 Do not gimplify the result.
29635 (do_unop): Adjust call to tree_vec_extract.
29636 (do_binop): Likewise.
29637 (do_compare): Likewise.
29638 (do_plus_minus): Likewise.
29639 (do_negate): Likewise.
29640 (expand_vector_condition): Likewise.
29641 (do_cond): Likewise.
29642
29643 2016-03-16 Richard Henderson <rth@redhat.com>
29644
29645 PR target/70048
29646 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
29647 (aarch64_classify_address): Use it.
29648 (aarch64_legitimize_address): Force all subexpressions of PLUS
29649 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
29650
29651 2016-03-16 Jakub Jelinek <jakub@redhat.com>
29652 Richard Biener <rguenth@suse.de>
29653
29654 PR target/70245
29655 * rtlanal.c (replace_rtx): For REG, if from is a REG,
29656 return to even if only REGNO is equal, and assert
29657 mode is the same.
29658
29659 2016-03-11 Jeff Law <law@redhat.com>
29660
29661 PR rtl-optimization/70224
29662 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
29663
29664 2016-03-16 Richard Henderson <rth@redhat.com>
29665
29666 PR middle-end/70199
29667 * function.h (struct function): Add has_forced_label_in_static.
29668 * gimplify.c (force_labels_r): Set it.
29669 * lto-streamer-in.c (input_struct_function_base): Read it.
29670 * lto-streamer-out.c (output_struct_function_base): Write it.
29671 * tree-inline.c (has_label_address_in_static_1): Remove.
29672 (copy_forbidden): Remove fndecl parameter; test
29673 has_forced_label_in_static.
29674 (inline_forbidden_p): Update call to copy_forbidden.
29675 (tree_versionable_function_p): Likewise.
29676 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
29677 (chkp_versioning): Likewise.
29678 * tree-inline.h (copy_forbidden): Update decl.
29679
29680 2016-03-16 Marek Polacek <polacek@redhat.com>
29681
29682 PR c/70093
29683 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
29684 function being thunked if the result type doesn't have fixed size.
29685 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
29686 doesn't have fixed size.
29687
29688 2016-03-16 Bin Cheng <bin.cheng@arm.com>
29689
29690 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
29691 reporting malformed loop nest.
29692
29693 2016-03-16 Tom de Vries <tom@codesourcery.com>
29694
29695 PR lto/70187
29696 * ipa-devirt.c (possible_polymorphic_call_targets): Move
29697 nodes.length () == 1 test to before first nodes[0] access.
29698
29699 2016-03-16 Tom de Vries <tom@codesourcery.com>
29700
29701 PR tree-optimization/68715
29702 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
29703 single_pred_p test.
29704
29705 2016-03-16 Tom de Vries <tom@codesourcery.com>
29706
29707 PR tree-optimization/68809
29708 * graphite-scop-detection.c (same_close_phi_node): Test if result types
29709 are the same.
29710
29711 2016-03-16 Carlos O'Donell <carlos@redhat.com>
29712 Sandra Loosemore <sandra@codesourcery.com>
29713
29714 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
29715 on leaf attribute. Mention ELF interposition problems.
29716
29717 2016-03-16 Alan Modra <amodra@gmail.com>
29718
29719 PR rtl-optimization/69195
29720 PR rtl-optimization/47992
29721 * ira.c (indirect_jump_optimize): Ignore artificial defs.
29722 Add comments.
29723
29724 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
29725
29726 PR bootstrap/69513
29727 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
29728
29729 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
29730
29731 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
29732
29733 2016-03-15 Jakub Jelinek <jakub@redhat.com>
29734
29735 PR rtl-optimization/70222
29736 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
29737 optimization if mode is different from result_mode, queue up masking
29738 of the result in outer_op. Formatting fix.
29739
29740 PR middle-end/70239
29741 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
29742 of safe_grow.
29743
29744 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
29745
29746 PR rtl-optimization/69032
29747 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
29748 looping backwards over basic block insns.
29749
29750 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
29751
29752 PR target/66660
29753 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
29754 to non-speculative when propagating trap bits.
29755
29756 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
29757
29758 PR rtl-optimization/63384
29759 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
29760 DEBUG_INSN_P insns.
29761
29762 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
29763
29764 PR target/64411
29765 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
29766 factored out from ...
29767 (sched_analyze_insn): ... here.
29768 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
29769 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
29770 get_implicit_reg_pending_clobbers in it.
29771 (setup_id_reg_sets): Use setup_id_implicit_regs.
29772 (deps_init_id): Ditto.
29773
29774 2016-03-15 Tom de Vries <tom@codesourcery.com>
29775
29776 PR ipa/70161
29777 * cgraph.c (cgraph_node::get_body): Save, reset and restore
29778 dump_file_name.
29779 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
29780 execute_function_dump.
29781 (execute_one_pass): Don't dump function if it will be dumped after ipa
29782 transform.
29783
29784 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
29785
29786 * genrecog.c (match_pattern_2): If pred is NULL don't call
29787 safe_predicate_mode on it.
29788
29789 2016-03-14 Jakub Jelinek <jakub@redhat.com>
29790
29791 PR middle-end/70219
29792 * lra-constraints.c (delete_move_and_clobber): Change assertion
29793 to also allow dregno == 0.
29794
29795 2016-03-14 Richard Henderson <rth@redhat.com>
29796
29797 PR tree-opt/68714
29798 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
29799 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
29800 (reassociate_bb): Use optimize_vec_cond_expr; avoid
29801 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
29802 on vectors.
29803
29804 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
29805
29806 PR target/70083
29807 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
29808 regs.
29809 (lra_create_live_ranges_1): initialize hard register biggest_mode to
29810 VOIDmode.
29811 * lra-constraints.c (split_reg): For hard regs, try to find the
29812 biggest single-register mode used in the function.
29813
29814 2016-03-14 Richard Biener <rguenther@suse.de>
29815
29816 PR tree-optimization/56365
29817 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
29818 constants to compare against.
29819
29820 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
29821
29822 PR target/70098
29823 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
29824 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
29825 (define_split for the GPR case): Use int_reg_operand instead of
29826 gpc_reg_operand for the output.
29827
29828 2016-03-14 Tom de Vries <tom@codesourcery.com>
29829
29830 PR tree-optimization/70045
29831 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
29832 create_empty_if_region_on_edge argument.
29833
29834 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
29835
29836 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
29837 (STACK_CHECK_PROTECT): Likewise.
29838 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
29839 (STACK_CHECK_PROTECT): Likewise.
29840 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
29841 (STACK_CHECK_PROTECT): Likewise.
29842 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
29843 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
29844 (STACK_CHECK_PROTECT): Likewise.
29845
29846 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
29847
29848 PR rtl-optimization/69307
29849 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
29850 registers in modes that span more than one register.
29851
29852 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
29853
29854 PR target/69614
29855 * lra-constraints.c (delete_move_and_clobber): New.
29856 (remove_inheritance_pseudos): Use it.
29857
29858 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
29859
29860 PR ada/70017
29861 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
29862 the libcall is LCT_THROW.
29863 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
29864 for the checking routine.
29865
29866 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
29867
29868 PR target/70131
29869 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
29870 optimization if we have direct move.
29871 (roundu32<mode>2_fprs): Likewise.
29872
29873 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
29874
29875 PR target/70123
29876 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
29877 be rematerialized.
29878 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
29879 Arguments swapped. All callers changed. Take reg_renumber into
29880 account, and Calculate and compare register ranges for hard regs.
29881
29882 2016-03-11 Jeff Law <law@redhat.com>
29883
29884 PR tree-optimization/70190
29885 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
29886 Handle cases where we can not extract the taken edge, even though we
29887 found a constant value.
29888
29889 PR tree-optimization/64058
29890 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
29891 (num_coalesce_pairs): Move up earlier in file.
29892 (find_coalesce_pair): Initialize the INDEX field for each pair
29893 discovered.
29894 (compare_pairs): No longer sort on the elements in each pair.
29895 Instead break ties with the index of the coalesce pair.
29896
29897 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29898
29899 PR target/70002
29900 * config/aarch64/aarch64-protos.h
29901 (aarch64_save_restore_target_globals): New prototype.
29902 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
29903 Call the above when popping pragma.
29904 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
29905 New function.
29906 (aarch64_set_current_function): Rewrite using the above.
29907
29908 2016-03-11 Jakub Jelinek <jakub@redhat.com>
29909
29910 PR tree-optimization/70177
29911 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
29912 (extract_ops_from_tree): ... this. In the 2 argument
29913 overload remove _1 suffix.
29914 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
29915 (extract_ops_from_tree): ... this.
29916 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
29917 Adjust callers.
29918 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
29919 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
29920 extract_ops_from_tree instead of 2 operand one.
29921
29922 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
29923
29924 PR tree-optimization/70013
29925 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
29926 for constant-pool entries.
29927
29928 2016-03-11 Jakub Jelinek <jakub@redhat.com>
29929
29930 PR rtl-optimization/70174
29931 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
29932 followed by gen_lowpart on force_reg instead of just gen_lowpart.
29933
29934 PR tree-optimization/70169
29935 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
29936 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
29937 for unknown codes.
29938
29939 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
29940 Jakub Jelinek <jakub@redhat.com>
29941
29942 PR target/70160
29943 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
29944 of uninitialized values.
29945
29946 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29947
29948 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
29949 define_expand.
29950 ("*trunctddd2"): New pattern definition.
29951 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
29952 TD->DD truncation.
29953
29954 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29955
29956 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
29957 definitions for BFP and DFP rounding modes.
29958 ("fixuns_truncdddi2", "fixuns_trunctddi2")
29959 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
29960 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
29961 ("fix_trunctf<mode>2"): Use the new constants instead of magic
29962 numbers.
29963
29964 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29965
29966 * config/s390/constraints.md: Adjust comment.
29967 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
29968 s390_decompose_addrstyle_without_index.
29969 * config/s390/predicates.md (shift_count_or_setmem_operand):
29970 Rename to setmem_operand.
29971 * config/s390/s390-protos.h
29972 (s390_decompose_shift_count): Rename to
29973 s390_decompose_addrstyle_without_index.
29974 * config/s390/s390.c (s390_decompose_shift_count)
29975 (s390_mem_constraint, print_shift_count_operand)
29976 (print_operand_address, print_operand): Rename
29977 s390_decompose_shift_count to
29978 s390_decompose_addrstyle_without_index and rename
29979 print_shift_count_operand to print_addrstyle_operand troughout the
29980 file.
29981 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
29982 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
29983 Rename shift_count_or_setmem_operand to setmem_operand.
29984 * config/s390/vx-builtins.md ("vec_insert<mode>")
29985 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
29986 nonmemory_operand.
29987
29988 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29989
29990 PR target/70168
29991 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
29992 Handle overlapping retval and newval.
29993
29994 2016-03-10 Nick Clifton <nickc@redhat.com>
29995
29996 PR target/7044
29997 * config/aarch64/aarch64.c
29998 (aarch64_override_options_after_change_1): When forcing
29999 flag_omit_frame_pointer to be true, use a special value that can
30000 be detected if this function is called again, thus preventing
30001 flag_omit_leaf_frame_pointer from being forced to be false.
30002
30003 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30004
30005 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
30006 Set x_flag_omit_leaf_frame_pointer when handling
30007 -momit-leaf-frame-pointer.
30008
30009 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
30010
30011 PR lto/69589
30012 * cgraph.c (cgraph_node::dump): Dump split_part and
30013 indirect_call_target.
30014 * cgraph.h (cgraph_node): Add indirect_call_target flag.
30015 * ipa.c (has_addr_references_p): Cleanup.
30016 (is_indirect_call_target_p): New.
30017 (walk_polymorphic_call_targets): Do not mark virtuals that may be
30018 called indirectly as local.
30019 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
30020
30021 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
30022
30023 PR ipa/69630
30024 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
30025 on cxa_pure_virtual.
30026
30027 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
30028
30029 PR lto/69589
30030 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
30031
30032 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
30033
30034 PR lto/69589
30035 * tree.c (need_assembler_name_p): Only record main variant type names.
30036
30037 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
30038
30039 PR target/70113.
30040 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
30041 Always define to 0 or 1.
30042 (TARGET_FIX_ERR_A53_843419): New macro.
30043 * config/aarch64/aarch64-elf-raw.h
30044 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
30045 * config/aarch64/aarch64-linux.h: Likewise.
30046 * config/aarch64/aarch64.c
30047 (aarch64_override_options_after_change_1): Do not default
30048 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
30049 843419 is on.
30050 (aarch64_attributes): Handle fix-cortex-a53-843419.
30051 (aarch64_can_inline_p): Likewise.
30052 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
30053
30054 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
30055 Jakub Jelinek <jakub@redhat.com>
30056
30057 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
30058 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
30059 DECL_COMMONS if flag_unconstrained_commons is set.
30060 * tree-dfa.c (get_ref_base_and_extent): Likewise.
30061 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
30062 (funconstrained-commons): Document.
30063
30064 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
30065
30066 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
30067 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
30068
30069 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
30070
30071 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
30072 has a proper number of elements.
30073
30074 2016-03-10 Alan Modra <amodra@gmail.com>
30075
30076 PR rtl-optimization/69195
30077 PR rtl-optimization/47992
30078 * ira.c (recorded_label_ref): Delete.
30079 (update_equiv_regs): Return void.
30080 (indirect_jump_optimize): New function.
30081 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
30082 before regstat_compute_ri. Don't rebuild_jump_labels here.
30083 Delete update_regstat.
30084
30085 2016-03-10 Richard Biener <rguenther@suse.de>
30086
30087 PR tree-optimization/70128
30088 * tree-ssa-structalias.c (set_uids_in_ptset): Set
30089 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
30090
30091 2016-03-09 Jakub Jelinek <jakub@redhat.com>
30092
30093 PR tree-optimization/70152
30094 * tree-sra.c (replace_removed_params_ssa_names): Copy over
30095 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
30096
30097 PR target/70086
30098 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
30099 instead of gen_sse2_loadlpd.
30100 * config/i386/sse.md (*vec_concatv2df): Rename to...
30101 (vec_concatv2df): ... this.
30102
30103 PR tree-optimization/70127
30104 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
30105
30106 2016-03-09 David Malcolm <dmalcolm@redhat.com>
30107
30108 PR c/68473
30109 PR c++/70105
30110 * diagnostic-show-locus.c (compatible_locations_p): New function.
30111 (layout::layout): Sanitize ranges using compatible_locations_p.
30112
30113 2016-03-09 David Malcolm <dmalcolm@redhat.com>
30114
30115 PR c/68473
30116 PR c++/70105
30117 * diagnostic-show-locus.c (layout_range::layout_range): Replace
30118 location_range param with three const expanded_locations * and a
30119 bool.
30120 (layout::layout): Replace call to
30121 rich_location::lazily_expand_location with get_expanded_location.
30122 Extract the range and perform location expansion here, passing
30123 the results to the layout_range ctor.
30124 * diagnostic.c (source_range::debug): Delete.
30125 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
30126 of rich_location::get_expanded_location.
30127 * gcc-rich-location.c (get_range_for_expr): Delete.
30128 (gcc_rich_location::add_expr): Reimplement to avoid the
30129 rich_location::add_range overload that took a location_range,
30130 passing a location_t instead.
30131
30132 2016-03-09 Richard Biener <rguenther@suse.de>
30133 Jakub Jelinek <jakub@redhat.com>
30134
30135 PR tree-optimization/70138
30136 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
30137 Also skip vect_double_reduction_def.
30138
30139 2016-03-09 Jakub Jelinek <jakub@redhat.com>
30140
30141 PR target/70049
30142 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
30143 if the operand is "m".
30144
30145 2016-03-09 Nathan Sidwell <nathan@acm.org>
30146
30147 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
30148
30149 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
30150
30151 * config/i386/i386.c (processor_target_table): Fix cost table
30152 intialization order for znver1.
30153
30154 2016-03-08 Jakub Jelinek <jakub@redhat.com>
30155
30156 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
30157 - becuase -> because.
30158 * ipa-reference.c (ignore_module_statics): Likewise.
30159 * cgraph.c (cgraph_node::get_body): Likewise.
30160 * ipa-inline.c (early_inliner): Likewise.
30161 * ipa-devirt.c (types_same_for_odr): Likewise.
30162 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
30163 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
30164
30165 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30166
30167 * tree-ssa-math-opts.c: Fix typo in comment.
30168
30169 2016-03-08 Jakub Jelinek <jakub@redhat.com>
30170
30171 PR target/70110
30172 * config/i386/i386.c (scalar_chain::make_vector_copies,
30173 scalar_chain::convert_reg): Call end_sequence in between
30174 get_insns and emit_conversion_insns rather than after both
30175 calls.
30176
30177 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
30178
30179 PR target/70064
30180 * config/i386/i386.h (machine_function): Add
30181 pc_thunk_call_expanded flag.
30182 (ix86_pc_thunk_call_expanded): New define.
30183 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
30184 (*set_got): Rename insn pattern from set_got.
30185 (*set_got_labelled): Rename inst pattern from set_got_labelled.
30186 * config/i386/i386.c (ix86_compute_frame_layout): Use
30187 ix86_pc_thunk_call_expanded to prevent red-zone.
30188
30189 2016-03-07 Martin Jambor <mjambor@suse.cz>
30190
30191 * hsa.h (hsa_get_ctor_statements): Declare.
30192 (hsa_get_dtor_statements): Likewise.
30193 (hsa_get_kernel_dispatch_type): Likewise.
30194 * hsa.c (hsa_get_ctor_statements): New function.
30195 (hsa_get_dtor_statements): Likewise.
30196 (hsa_get_kernel_dispatch_type): Likewise.
30197 * hsa-brig.c (hsa_cdtor_statements): Removed.
30198 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
30199 hsa_get_dtor_statements.
30200 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
30201 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
30202
30203 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
30204
30205 * config/arm/arm-cores.def (cortex-r8): New.
30206 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
30207 * config/arm/arm-tune.md: Likewise.
30208 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
30209
30210 2016-03-07 Martin Sebor <msebor@redhat.com>
30211
30212 PR rtl-optimization/19705
30213 * doc/invoke.texi (Options That Control Optimization): Clarify
30214 -fno-branch-count-reg.
30215
30216 2016-02-26 Richard Biener <rguenther@suse.de>
30217 Jeff Law <law@redhat.com>
30218
30219 PR tree-optimization/69740
30220 * cfghooks.c (remove_edge): Request loop fixups if we delete
30221 an edge that might turn an irreducible loop into a natural
30222 loop.
30223 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
30224 Move after definition of loops_state_clear.
30225
30226 2016-03-07 Bin Cheng <bin.cheng@arm.com>
30227
30228 PR rtl-optimization/69052
30229 * rtlanal.c (commutative_operand_precedence): Set higher precedence
30230 to CONST_WIDE_INT.
30231
30232 2016-03-07 Tom de Vries <tom@codesourcery.com>
30233
30234 PR tree-optimization/70116
30235 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
30236 is_tm_ending stmts and ubsan/asan internal functions.
30237 (find_duplicate): Use it. Don't test is_tm_ending here.
30238
30239 2016-03-07 Richard Biener <rguenther@suse.de>
30240
30241 PR tree-optimization/70115
30242 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
30243 (propagate_constants_for_unrolling): Use replace_uses_by.
30244
30245 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
30246
30247 PR middle-end/69916
30248 * omp-low.c (struct oacc_loop): Add ifns.
30249 (new_oacc_loop_raw): Initialize it.
30250 (finish_oacc_loop): Clear mask & flags if no ifns.
30251 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
30252 (oacc_loop_xform_loop): Add ifns arg & adjust.
30253 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
30254
30255 2016-03-07 Richard Henderson <rth@redhat.com>
30256
30257 PR rtl-opt/70061
30258 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
30259 (insert_value_copy_on_edge): Likewise.
30260
30261 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30262
30263 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
30264
30265 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30266
30267 PR target/62281
30268 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
30269
30270 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
30271
30272 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
30273
30274 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
30275
30276 Fix sseimul type attribute.
30277 * config/i386/znver1.md
30278 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
30279 znver1_sseimul_avx256_load) : Fix the type attribute.
30280 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
30281 pipe usage and latency.
30282
30283 2016-03-05 Jakub Jelinek <jakub@redhat.com>
30284
30285 PR c++/70084
30286 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
30287 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
30288 to the right type.
30289
30290 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
30291
30292 PR c/69973
30293 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
30294
30295 PR rtl-optimization/69941
30296 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
30297 the reg share its mode.
30298
30299 2016-03-04 Jeff Law <law@redhat.com>
30300
30301 PR tree-optimization/69196
30302 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
30303 If the both SSA_NAMEs are anonymous, then consider them unassociated
30304 and include the PHI in the statement count.
30305
30306 2016-03-05 Tom de Vries <tom@codesourcery.com>
30307
30308 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
30309 construct in oacc routine. Check for oacc region in oacc routine.
30310
30311 2016-03-04 Jakub Jelinek <jakub@redhat.com>
30312
30313 PR target/70062
30314 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
30315 2016-02-22 changes, instead don't recurse if RECUR is already true.
30316 Don't change *dynamic_check if RECUR. Adjust recursive caller
30317 to pass true to the new argument.
30318 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
30319
30320 PR target/70059
30321 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
30322 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
30323 fixes.
30324 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
30325
30326 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
30327
30328 PR rtl-optimization/57676
30329 * lra-assigns.c (lra_assign): Guard test for maximum iterations
30330 with flag_checking.
30331
30332 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
30333
30334 * tree-vect-patterns.c (search_type_for_mask): Handle
30335 comparison of booleans.
30336
30337 2016-03-04 Jakub Jelinek <jakub@redhat.com>
30338
30339 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
30340 Fix @xref usage.
30341
30342 PR debug/69947
30343 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
30344 all other ops that have dw_val_class_die_ref operands,
30345 and DW_OP_GNU_entry_value.
30346
30347 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30348
30349 PR rtl-optimization/69904
30350 * config/arm/arm.c (arm_cannot_copy_insn_p):
30351 Return true for load-exclusive instructions.
30352
30353 2016-03-03 Jakub Jelinek <jakub@redhat.com>
30354
30355 PR target/70021
30356 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
30357 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
30358 the pattern no matter if it is used just by non-pattern, pattern
30359 or mix thereof.
30360 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
30361 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
30362 oprnd1 def_stmt is in pattern, don't look through it.
30363
30364 2016-03-03 Marek Polacek <polacek@redhat.com>
30365
30366 PR middle-end/70050
30367 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
30368
30369 2016-03-03 Martin Liska <mliska@suse.cz>
30370
30371 PR tree-optimization/70043
30372 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
30373 previous statement if we see a debug statement.
30374
30375 2016-03-03 Richard Biener <rguenther@suse.de>
30376
30377 PR tree-optimization/55936
30378 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
30379 parameter and guard unsafe equivalence use.
30380 (vrp_evaluate_conditional_warnv_with_ops): Always use
30381 safe equivalences but not via the quadratic compare_names
30382 helper.
30383
30384 2016-03-03 Michael Collison <michael.collison@linaro.org>
30385
30386 PR target/70014
30387 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
30388 for operand 1 to s_register_operand. Change predicate for operand
30389 2 to arm_not_immediate_operand.
30390
30391 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
30392
30393 * doc/tm.texi: Regenerated.
30394
30395 2016-03-02 Richard Henderson <rth@redhat.com>
30396
30397 PR rtl-opt/67145
30398 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
30399 simplification when all args are positive non-fixed registers.
30400
30401 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
30402
30403 * target.def (lra_p): Specify that new ports should use LRA.
30404
30405 2016-03-02 Jakub Jelinek <jakub@redhat.com>
30406
30407 PR libgomp/69555
30408 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
30409 gimplify_type_sizes the type they refer to.
30410 (omp_notice_variable): Handle reference vars to VLAs.
30411 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
30412 reference to VLA decls in the second pass instead of first pass.
30413
30414 2016-03-02 Tom de Vries <tom@codesourcery.com>
30415
30416 PR tree-optimization/68659
30417 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
30418 new_expr == NULL_TREE.
30419 (get_new_name): Handle ADDR_EXPR.
30420
30421 2016-03-02 Bin Cheng <bin.cheng@arm.com>
30422
30423 PR rtl-optimization/69052
30424 * loop-invariant.c (canonicalize_address): New function.
30425 (inv_can_prop_to_addr_use): Check validity of address expression
30426 which is canonicalized by above function.
30427
30428 2016-03-02 Alan Modra <amodra@gmail.com>
30429
30430 PR ipa/69990
30431 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
30432 larger alignment.
30433
30434 2016-03-02 Jakub Jelinek <jakub@redhat.com>
30435
30436 PR target/70028
30437 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
30438 (*movhi_internal): Put mask moves from and to memory separately
30439 from moves from/to GPRs.
30440
30441 2016-03-02 Richard Biener <rguenther@suse.de>
30442
30443 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
30444 GENERIC expressions in GIMPLE.
30445
30446 2016-03-02 Richard Biener <rguenther@suse.de>
30447
30448 * config/i386/i386.c (type_natural_mode): Fix typo.
30449
30450 2016-03-02 Nick Clifton <nickc@redhat.com>
30451
30452 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
30453
30454 2016-03-02 Richard Biener <rguenther@suse.de>
30455 Uros Bizjak <ubizjak@gmail.com>
30456
30457 PR target/67278
30458 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
30459
30460 2016-03-02 Richard Biener <rguenther@suse.de>
30461
30462 PR middle-end/67278
30463 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
30464
30465 2016-03-02 Marek Polacek <polacek@redhat.com>
30466
30467 PR c/67854
30468 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
30469 "is promoted to" warning.
30470
30471 2016-03-01 DJ Delorie <dj@redhat.com>
30472
30473 * config.gcc: Deprecate mep-*.
30474
30475 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
30476
30477 PR middle-end/70025
30478 * lra-constraints.c (regno_val_use_in): New.
30479 (match_reload): Use it instead of regno_use_in.
30480
30481 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
30482
30483 PR rtl-optimization/70007
30484 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
30485 references present in REG_EQUAL notes attached to non-SET patterns.
30486
30487 2016-03-01 Jeff Law <law@redhat.com>
30488
30489 PR tree-optimization/69196
30490 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
30491 Appropriately clamp the number of statements to copy when the
30492 thread path does not traverse a loop backedge.
30493
30494 PR tree-optimization/69196
30495 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
30496 Do count some PHIs in the thread path against the insn count. Decrease
30497 final statement count by one as the control statement in the last
30498 block will get removed. Remove special cased code for handling PHIs
30499 in the last block.
30500
30501 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
30502
30503 PR target/70027
30504 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
30505 asm dialect alternatives to explicit GOTPCREL calls.
30506
30507 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
30508
30509 PR ada/70017
30510 * ira.c (do_reload): Issue warning for generic stack checking here...
30511 * reload1.c (reload): ...instead of here and streamline it.
30512
30513 2016-03-01 Nick Clifton <nickc@redhat.com>
30514
30515 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
30516
30517 2016-03-01 Richard Biener <rguenther@suse.de>
30518
30519 PR tree-optimization/69983
30520 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
30521 types and fall back to operand_equal_p.
30522
30523 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30524
30525 Revert
30526 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30527
30528 * config/s390/constraints.md ("jm8"): New constraint.
30529 * config/s390/predicates.md ("const_int_8bitset_operand"): New
30530 predicate.
30531 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
30532 into ...
30533 ("*setmem_long<setmem_and>"): New pattern.
30534 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
30535 into ...
30536 ("*setmem_long_31z<setmem_and>"): New pattern.
30537 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
30538 New substitution rules with the required attributes.
30539
30540
30541 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30542
30543 Revert
30544 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30545
30546 * gensupport.c (process_substs_on_one_elem): Split loop to
30547 complete mark_operands_used_in_match_dup on all expressions in the
30548 vector first.
30549 (adjust_operands_numbers): Inline into process_substs_on_one_elem
30550 and remove function.
30551
30552 2016-03-01 Richard Biener <rguenther@suse.de>
30553
30554 PR middle-end/70022
30555 * fold-const.c (fold_indirect_ref_1): Fix range checking for
30556 vector BIT_FIELD_REF extract.
30557
30558 2016-03-01 Richard Biener <rguenther@suse.de>
30559
30560 PR tree-optimization/69994
30561 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
30562
30563 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
30564
30565 PR tree-optimization/69956
30566 * tree-vect-stmts.c (supportable_widening_operation): Support
30567 multi-step conversion of boolean vectors.
30568 (supportable_narrowing_operation): Likewise.
30569
30570 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30571
30572 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
30573 anymore.
30574
30575 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30576
30577 * config/s390/subst.md (DSI_VI): New mode iterator.
30578 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
30579 * config/s390/vector.md ("vec_set<mode>"): Move expander before
30580 the insn definition.
30581 ("*vec_set<mode>"): Change predicate and add alternative to
30582 support only either register or const_int operands as element
30583 selector.
30584 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
30585 operands.
30586 ("vec_extract<mode>"): New expander.
30587 ("*vec_extract<mode>"): New insn definition supporting reg and
30588 const_int element selectors.
30589 ("*vec_extract<mode>_plus"): New insn definition supporting
30590 reg+const_int element selectors.
30591 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
30592 following expander+insn definition.
30593 ("<vec_shifts_name><mode>3"): New expander.
30594 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
30595
30596 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30597
30598 * config/s390/s390.md ("*tabort_1"): Change predicate to
30599 nonmemory_operand. Add a second alternative to cover
30600 register as well as const int operands.
30601 ("*tabort_1_plus"): New pattern definition.
30602
30603 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30604
30605 * config/s390/s390.md ("*ashrdi3_cc_31")
30606 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
30607 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
30608 Merge insn definitions into ...
30609 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
30610 New pattern definition.
30611 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
30612 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
30613 ("*ashr<mode>3_and"): Merge insn definitions into ...
30614 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
30615 New pattern definition.
30616 * config/s390/subst.md ("addr_style_op_cc_subst")
30617 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
30618 substitutions patterns plus attributes.
30619 Add ashiftrt to SUBST iterator.
30620
30621 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30622
30623 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
30624 op2 to nonmemory_operand.
30625 ("*<shift>di3_31", "*<shift>di3_31_and"):
30626 Merge into single pattern definition ...
30627 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
30628 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
30629 pattern definition ...
30630 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
30631 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
30632 iterator.
30633
30634 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30635
30636 * config/s390/predicates.md (const_int_6bitset_operand): New
30637 predicate.
30638 * config/s390/s390.md: Include subst.md.
30639 ("rotl<mode>3"): New expander.
30640 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
30641 ...
30642 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
30643 * config/s390/subst.md: New file.
30644
30645 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30646
30647 * config/s390/s390.md ("op_type", "atype", "length" attributes):
30648 Remove RRR type. It doesn't really exist.
30649 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
30650 attributes.
30651 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
30652 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
30653 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
30654 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
30655 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
30656 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
30657 `enabled' attribute.
30658
30659 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30660
30661 * gensupport.c (process_substs_on_one_elem): Split loop to
30662 complete mark_operands_used_in_match_dup on all expressions in the
30663 vector first.
30664 (adjust_operands_numbers): Inline into process_substs_on_one_elem
30665 and remove function.
30666
30667 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
30668
30669 PR target/69706
30670 * config/sparc/sparc.c (NWORDS_UP): Rename to...
30671 (CEIL_NWORDS): ...this. Use CEIL macro.
30672 (compute_fp_layout): Adjust to above renaming.
30673 (function_arg_union_value): Likewise.
30674 (sparc_arg_partial_bytes): Likewise.
30675 (sparc_function_arg_advance): Likewise.
30676
30677 2016-02-29 Jeff Law <law@redhat.com>
30678
30679 PR tree-optimization/70005
30680 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
30681 where an object with a boolean range is compared against a value
30682 outside [0..1].
30683
30684 PR tree-optimization/69999
30685 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
30686 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
30687 loop cleanups.
30688
30689 2016-02-29 Richard Biener <rguenther@suse.de>
30690
30691 PR tree-optimization/69994
30692 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
30693 (get_unary_op): Look through nop conversions.
30694 (ops_equal_values_p): New function, look for equality diregarding
30695 nop conversions.
30696 (eliminate_plus_minus_pair): Use ops_equal_values_p
30697 (repropagate_negates): Do not use get_unary_op here.
30698
30699 2016-02-29 Martin Liska <mliska@suse.cz>
30700
30701 * system.h: Poison ENABLE_CHECKING macro.
30702
30703 2016-02-29 Martin Liska <mliska@suse.cz>
30704
30705 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
30706 is presented in dump flags.
30707 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
30708 (hsa_regalloc): Likewise.
30709
30710 2016-02-19 Richard Biener <rguenther@suse.de>
30711
30712 PR tree-optimization/69980
30713 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
30714 permutation of those we need to keep.
30715
30716 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
30717
30718 PR target/69706
30719 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
30720 (NWORDS_UP): ...this
30721 (init_cumulative_args): Minor tweaks.
30722 (sparc_promote_function_mode): Likewise.
30723 (scan_record_type): Delete.
30724 (traverse_record_type): New function template.
30725 (classify_data_t): New structure type.
30726 (classify_registers): New inline function.
30727 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
30728 exhausted. Instantiate traverse_record_type on classify_registers and
30729 deal with the case of a structure passed in slot #15 with no FP field
30730 in the first word.
30731 (assign_data_t): New structure type.
30732 (compute_int_layout): New static function.
30733 (compute_fp_layout): Likewise.
30734 (count_registers): New inline function.
30735 (assign_int_registers): New static function.
30736 (assign_fp_registers): Likewise.
30737 (assign_registers): New inline function.
30738 (function_arg_record_value_1): Delete.
30739 (function_arg_record_value_2): Likewise.
30740 (function_arg_record_value_3): Likewise.
30741 (function_arg_record_value): Adjust to above changes. Instantiate
30742 traverse_record_type on count_registers to first count the number of
30743 registers to be used and then on assign_registers to assign them.
30744 (function_arg_union_value): Adjust to above renaming.
30745 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
30746 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
30747 case of a structure passed in slot #15
30748 (sparc_function_arg_advance): Likewise.
30749 (function_arg_padding): Minor tweak.
30750
30751 2016-02-29 Richard Biener <rguenther@suse.de>
30752
30753 PR tree-optimization/69720
30754 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
30755 the adjustment_def path for possibly vectorized defs.
30756 (vect_create_epilog_for_reduction): Handle vectorized initial
30757 defs properly.
30758
30759 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
30760
30761 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
30762
30763 2016-02-27 Jeff Law <law@redhat.com>
30764
30765 Revert
30766 2016-02-26 Richard Biener <rguenther@suse.de>
30767 Jeff Law <law@redhat.com>
30768
30769 PR tree-optimization/69740
30770 * cfghooks.c (remove_edge): Request loop fixups if we delete
30771 an edge that might turn an irreducible loop into a natural
30772 loop.
30773
30774 2016-02-27 Jakub Jelinek <jakub@redhat.com>
30775
30776 PR rtl-optimization/69896
30777 * tree-vect-generic.c (get_compute_type): Avoid single element
30778 vector types.
30779
30780 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
30781
30782 Rename the AArch64 tuning option and related functions to enable the
30783 Newton series for the reciprocal square root to reflect its
30784 approximative characteristic.
30785
30786 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
30787 function to "aarch64_emit_approx_rsqrt".
30788 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
30789 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
30790 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
30791 (xgene1_tunings): Likewise.
30792 (use_rsqrt_p): Likewise.
30793 (aarch64_emit_swrsqrt): Use new function name.
30794 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
30795 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
30796 text explaining this option.
30797 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
30798
30799 2016-02-26 Jakub Jelinek <jakub@redhat.com>
30800
30801 PR target/69969
30802 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
30803 complain about -mallow-movmisalign without -mvsx if
30804 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
30805
30806 2016-02-26 Joel Sherrill <joel@rtems.org>
30807
30808 * config.gcc: Add x86_64-*-rtems*.
30809 * config/i386/rtems-64.h: New file.
30810
30811 2016-02-26 Joel Sherrill <joel@rtems.org>
30812
30813 * config.gcc: Add aarch64-*-rtems*.
30814 * config/aarch64/rtems.h: New file.
30815
30816 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
30817
30818 PR target/69946
30819 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
30820 shift amount using %h. Add comment.
30821
30822 2016-02-26 Richard Biener <rguenther@suse.de>
30823 Jeff Law <law@redhat.com>
30824
30825 PR tree-optimization/69740
30826 * cfghooks.c (remove_edge): Request loop fixups if we delete
30827 an edge that might turn an irreducible loop into a natural
30828 loop.
30829
30830 2016-02-26 Martin Jambor <mjambor@suse.cz>
30831
30832 PR middle-end/69920
30833 * tree-sra.c (sra_modify_assign): Do not remove loads of
30834 uninitialized aggregates to SSA_NAMEs.
30835
30836 2016-02-26 Richard Henderson <rth@redhat.com>
30837
30838 PR target/69709
30839 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
30840 pseudo in case the target rtx matches the source of the left
30841 shift.
30842
30843 2016-02-26 Martin Jambor <mjambor@suse.cz>
30844
30845 PR hsa/69568
30846 * hsa.h (hsa_type_packed_p): Declare.
30847 * hsa.c (hsa_type_packed_p): New function.
30848 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
30849 loads.
30850 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
30851 * hsa-brig.c (emit_basic_insn): Likewise.
30852
30853 2016-02-26 Martin Jambor <mjambor@suse.cz>
30854
30855 pr hsa/69674
30856 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
30857 pointers.
30858 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
30859
30860 2016-02-26 Martin Jambor <mjambor@suse.cz>
30861
30862 * hsa.h (is_a_helper): New overload for hsa_op_immed for
30863 hsa_op_with_type operands.
30864 (hsa_unsigned_type_for_type): Declare.
30865 * hsa.c (hsa_unsigned_type_for_type): New function.
30866 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
30867 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
30868 the finalizer. Do not emit extra move.
30869
30870 2016-02-26 Martin Jambor <mjambor@suse.cz>
30871
30872 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
30873 atomic operations in private segment.
30874
30875 2016-02-26 Martin Jambor <mjambor@suse.cz>
30876
30877 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
30878 statements to wi->info. Also disallow omp simd constructs.
30879 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
30880 for not gridifying. Dump special string for omp_for.
30881
30882 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30883
30884 PR target/69245
30885 * config/aarch64/aarch64.c (aarch64_set_current_function):
30886 Save/restore target globals when switching to
30887 target_option_default_node.
30888
30889 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30890
30891 PR target/69613
30892 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
30893 Return 0 if !SHIFT_COUNT_TRUNCATED.
30894
30895 2016-02-26 Jakub Jelinek <jakub@redhat.com>
30896 Eric Botcazou <ebotcazou@adacore.com>
30897
30898 PR rtl-optimization/69891
30899 * dse.c (scan_insn): If we can't figure out memset arguments
30900 or they are non-constant, call clear_rhs_from_active_local_stores.
30901
30902 2016-02-26 Martin Liska <mliska@suse.cz>
30903
30904 * doc/extend.texi: Mention clog10, clog10f an clog10l
30905 in Builtins section.
30906
30907 2016-02-26 Martin Liska <mliska@suse.cz>
30908
30909 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
30910 CHECKING_P.
30911 (resolve_args_picking_1): Likewise.
30912 * dwarf2out.h (struct GTY): Likewise.
30913
30914 2016-02-26 Martin Liska <mliska@suse.cz>
30915
30916 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
30917 with flag_checking.
30918 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
30919
30920 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
30921 Martin Liska <mliska@suse.cz>
30922
30923 * doc/install.texi: Mention --enable-valgrind-annotations.
30924
30925 2016-02-26 Richard Biener <rguenther@suse.de>
30926
30927 PR tree-optimization/69551
30928 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
30929 looking through aliases adjust DECL_PT_UID to refer to the
30930 ultimate alias target.
30931
30932 2016-02-25 Martin Liska <mliska@suse.cz>
30933
30934 PR middle-end/69919
30935 * alloc-pool.c (after_memory_report): New variable.
30936 * alloc-pool.h (base_pool_allocator ::release): Do not use
30937 the infrastructure if after_memory_report.
30938 * toplev.c (toplev::main): Mark after memory report.
30939
30940 2016-02-25 Richard Biener <rguenther@suse.de>
30941
30942 PR tree-optimization/48795
30943 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
30944
30945 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
30946
30947 PR driver/68463
30948 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
30949 offloading is enabled and -fopenacc or -fopenmp is specified.
30950 (CRTOFFLOADEND): Likewise.
30951 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
30952 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
30953 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
30954 (offload_objects_file_name): New static var.
30955 (tool_cleanup): Remove offload_objects_file_name file.
30956 (find_offloadbeginend): Replace with ...
30957 (find_crtoffloadtable): ... this.
30958 (run_gcc): Remove offload_argc and offload_argv.
30959 Get offload_objects_file_name from -foffload-objects=... option.
30960 Read names of object files with offload from this file, pass them to
30961 compile_images_for_offload_targets. Don't call find_offloadbeginend and
30962 don't pass offloadbegin and offloadend to the linker. Don't pass
30963 offload non-LTO files to the linker, because now they're not claimed.
30964
30965 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
30966
30967 PR ipa/69630
30968 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
30969 on builtin_unreachable.
30970
30971 2016-02-25 Jakub Jelinek <jakub@redhat.com>
30972
30973 PR rtl-optimization/69896
30974 * regcprop.c: Include cfgrtl.h.
30975 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
30976 than remembered mode, either delete it (if noop_move_p), or
30977 treat like copy_p but not noop_p instruction.
30978
30979 2016-02-24 Jakub Jelinek <jakub@redhat.com>
30980
30981 PR debug/69705
30982 * dwarf2out.c (gen_variable_die): Work around buggy LTO
30983 - allow NULL decl for Fortran DW_TAG_common_block variables.
30984
30985 2016-02-24 Jason Merrill <jason@redhat.com>
30986
30987 * common.opt (flifetime-dse): Add -flifetime-dse=1.
30988
30989 2016-02-24 Richard Biener <rguenther@suse.de>
30990 Jakub Jelinek <jakub@redhat.com>
30991
30992 PR middle-end/69760
30993 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
30994 conditionally executed ops to well-defined overflow behavior.
30995
30996 2016-02-24 Jakub Jelinek <jakub@redhat.com>
30997
30998 PR middle-end/69915
30999 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
31000 elements.
31001
31002 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31003
31004 PR rtl-optimization/69886
31005 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
31006 argument. Use it when checking validity of set instructions.
31007 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
31008 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
31009 callsite.
31010 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
31011 * store-motion.c (find_moveable_store): Update
31012 can_assign_to_reg_without_clobbers_p callsite.
31013
31014 2016-02-24 Richard Biener <rguenther@suse.de>
31015
31016 PR middle-end/68963
31017 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
31018 bogus check.
31019 (record_nonwrapping_iv): Do not fall back to the low/high bound
31020 for non-constant IV bases if the stmt is not always executed.
31021
31022 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31023
31024 * config/arm/arm-cores.def (cortex-a32): New entry.
31025 * config/arm/arm-tables.opt: Regenerate.
31026 * config/arm/arm-tune.md: Regenerate.
31027 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
31028 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
31029 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
31030 for -mcpu and -mtune.
31031
31032 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31033
31034 PR target/69875
31035 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
31036 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
31037 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
31038 (atomic_loaddi_1): Delete.
31039 (atomic_loaddi): Rewrite expander using the above changes.
31040
31041 2016-02-24 Jakub Jelinek <jakub@redhat.com>
31042
31043 PR c/69918
31044 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
31045 2 to 3.
31046
31047 2016-02-24 Jakub Jelinek <jakub@redhat.com>
31048 Richard Biener <rguenth@suse.de>
31049
31050 PR middle-end/69909
31051 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
31052 set_mem_attributes if tem is SSA_NAME which got expanded
31053 as a MEM.
31054
31055 2016-02-24 Richard Biener <rguenther@suse.de>
31056
31057 PR tree-optimization/69907
31058 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
31059 end of permutations for BB vectorization.
31060
31061 2016-02-24 Christian Bruel <christian.bruel@st.com>
31062
31063 * config/arm/arm-c.c (arm_option_override): Initialize
31064 target_option_current_node.
31065 * config/arm/arm.c (arm_pragma_target_parse): Replace
31066 build_target_option_node call by target_option_current_node.
31067 Set target_option_current_node.
31068 Fix comments.
31069
31070 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
31071
31072 PR target/69810
31073 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
31074 define_insn_and_split to define_insn.
31075 (zero_extendqi<mode>2_dot2): Same.
31076 (extendqi<mode>2_dot): Same.
31077 (extendqi<mode>2_dot2): Same.
31078
31079 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
31080
31081 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
31082 and add bypass for AES{D,E} and AESMC pairs.
31083 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
31084 and AESMC pairs.
31085
31086 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
31087
31088 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
31089 series for reciprocal square root in Exynos M1.
31090
31091 2016-02-23 Martin Sebor <msebor@redhat.com>
31092
31093 PR c/69759
31094 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
31095 __builtin_alloca_with_align.
31096
31097 2016-02-23 Richard Henderson <rth@redhat.com>
31098
31099 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
31100 (ix86_register_pragmas): Remove __seg_tls.
31101 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
31102 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
31103 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
31104 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
31105 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
31106 * doc/extend.texi (__seg_tls): Remove item.
31107
31108 2016-02-23 Richard Biener <rguenther@suse.de>
31109
31110 * alloc-pool.h (struct allocation_object): Make id member
31111 conditional on CHECKING_P again.
31112 (get_instance): Adjust.
31113 (base_pool_allocator): Likewise.
31114
31115 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
31116
31117 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
31118 (parallelize_loops): In OpenACC kernels mode, set n_threads to
31119 zero.
31120 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
31121 flag_openacc.
31122 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
31123
31124 2016-02-23 Richard Biener <rguenther@suse.de>
31125
31126 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
31127 * bitmap.h (struct bitmap_usage): Likewise.
31128 (bitmap_move): Declare.
31129 * bitmap.c (register_overhead): Take size_t argument.
31130 (bitmap_move): New function.
31131 * df-problems.c (df_rd_transfer_function): Use bitmap_move
31132 to properly account overhead.
31133 * tree.c (free_node): Use tree_size.
31134
31135 2016-02-23 Jakub Jelinek <jakub@redhat.com>
31136
31137 PR c++/69902
31138 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
31139 when inverting comparison.
31140
31141 PR c/69900
31142 * common.opt (Wunreachable-code): Add Warning flag.
31143
31144 2016-02-23 Mark Wielaard <mjw@redhat.com>
31145 Jakub Jelinek <jakub@redhat.com>
31146
31147 PR c/69911
31148 * cgraphunit.c (check_global_declaration): Check main_input_filename
31149 and DECL_SOURCE_FILE are not NULL.
31150
31151 2016-02-23 Martin Jambor <mjambor@suse.cz>
31152
31153 PR tree-optimization/69666
31154 * tree-sra.c (sra_modify_assign): Do not attempt to create
31155 default_def replacements for unscalarizable regions.
31156
31157 2016-02-20 Mark Wielaard <mjw@redhat.com>
31158
31159 PR c/28901
31160 * cgraphunit.c (check_global_declaration): Check level of
31161 warn_unused_const_variable and main_input_filename.
31162 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
31163 (-Wunused-variable): For C implies -Wunused-const-variable=1.
31164 (-Wunused-const-variable): Explain levels 1 and 2.
31165
31166 2016-02-22 Jakub Jelinek <jakub@redhat.com>
31167
31168 PR target/69888
31169 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
31170 identical arguments. Formatting and spelling fixes.
31171
31172 PR target/69885
31173 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
31174 be specified.
31175
31176 PR target/69894
31177 PR target/69895
31178 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
31179 and m68k-devices.def.
31180 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
31181 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
31182
31183 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
31184
31185 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
31186 and HImode registers.
31187
31188 2016-02-22 Richard Biener <rguenther@suse.de>
31189
31190 PR tree-optimization/69882
31191 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
31192 preserve permutations present because of gaps.
31193 (vect_supported_load_permutation_p): Always continue checking
31194 permutations after vect_attempt_slp_rearrange_stmts.
31195
31196 2016-02-22 Bin Cheng <bin.cheng@arm.com>
31197
31198 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
31199 min_profitable_estimate, rather than min_profitable_iters.
31200
31201 2016-02-22 Jakub Jelinek <jakub@redhat.com>
31202
31203 PR target/69885
31204 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
31205 SImode for last match_operand.
31206
31207 2016-02-22 Martin Liska <mliska@suse.cz>
31208
31209 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
31210 return bitsize - 1 as the return value.
31211
31212 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
31213
31214 PR target/69806
31215 PR target/54089
31216 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
31217 Handle negative shift counts.
31218 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
31219 force_reg on the shift constant.
31220 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
31221 (lshrsi3_d): Handle negative shift counts.
31222
31223 2016-02-22 Richard Biener <rguenther@suse.de>
31224 Tom de Vries <tom@codesourcery.com>
31225
31226 * graph.c: Include dumpfile.h.
31227 (print_graph_cfg): Split into three overloads.
31228 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
31229
31230 2016-02-22 Tom de Vries <tom@codesourcery.com>
31231
31232 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
31233 dump-fn.
31234
31235 2016-02-22 Richard Biener <rguenther@suse.de>
31236
31237 PR ipa/37448
31238 * ipa-inline-transform.c (inline_call): When not updating
31239 overall summaries adjust self size by the growth estimate.
31240 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
31241 hash-set, do not update overall summaries here. Renamed from ...
31242 (inline_to_all_callers): ... this which is now wrapping the
31243 above and performing delayed overall summary update.
31244 (early_inline_small_functions): Delay updating of the overall
31245 summary.
31246
31247 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
31248
31249 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
31250 variable.
31251
31252 2016-02-19 Jakub Jelinek <jakub@redhat.com>
31253
31254 PR driver/69805
31255 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
31256 :%* in %:gt() argument.
31257 (greater_than_spec_func): Adjust for expecting only numbers,
31258 if there are more than two numbers, compare the last two.
31259
31260 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
31261
31262 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
31263 -Wnarrowing with -std.
31264
31265 2016-02-19 Jakub Jelinek <jakub@redhat.com>
31266
31267 PR c++/69851
31268 * expr.c (store_field): Don't use bit-field path if exp is
31269 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
31270 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
31271 and the assignment can be performed by bitwise copy. Formatting
31272 fix.
31273
31274 PR middle-end/69838
31275 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
31276 call copy_reg_eh_region_note_forward on before and/or after sequences
31277 and remove note from insn if it no longer can throw.
31278
31279 PR target/69820
31280 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
31281 if TARGET_AVX512BW.
31282
31283 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31284
31285 * config/s390/vector.md: Add missing commutative operand markers
31286 to the patterns which qualify for one.
31287 * config/s390/vx-builtins.md: Likewise.
31288
31289 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31290
31291 * config/s390/vector.md (VI, VI_QHS): Add single element vector
31292 types to mode iterators.
31293 (vec_double): ... and mode attribute.
31294 * config/s390/vx-builtins.md (non_vec_int): Likewise.
31295
31296 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31297
31298 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
31299 Change the predicate of op2 from nonimmediate to general and let
31300 reload fix it if necessary.
31301
31302 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31303
31304 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
31305
31306 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31307
31308 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
31309 mode.
31310
31311 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31312
31313 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
31314 * config/s390/s390.c (s390_expand_vec_movstr): New function.
31315 * config/s390/s390.md ("movstr<P:mode>"): Call
31316 s390_expand_vec_movstr.
31317
31318 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31319
31320 * config/s390/s390.md: Add missing output modifier for operand 1
31321 to print it as address properly.
31322
31323 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31324
31325 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
31326 * config/s390/2964.md: New file.
31327 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
31328 of insn grouping attributes depending on the CPU level.
31329 (s390_get_unit_mask): New function.
31330 (s390_sched_score): Remove the OOO from the scheduling macros.
31331 Add loop to calculate a score for the instruction mix.
31332 (s390_sched_reorder): Likewise plus improve debug output.
31333 (s390_sched_variable_issue): Rename macros as above. Calculate
31334 the unit distances after actually scheduling an insn. Improve
31335 debug output.
31336 (s390_sched_init): Clear last_scheduled_unit_distance array.
31337 * config/s390/s390.md: Include 2964.md.
31338
31339 2016-02-18 Jakub Jelinek <jakub@redhat.com>
31340
31341 PR target/69671
31342 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
31343 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
31344 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
31345 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
31346 *avx512f_<code>v8div16qi2_mask_1): New insns.
31347
31348 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
31349
31350 PR target/68404
31351 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
31352 2016-02-09 change.
31353
31354 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
31355 earlyclobber from target. Use wF constraint for fused memory
31356 address.
31357 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
31358
31359 2016-02-18 Jakub Jelinek <jakub@redhat.com>
31360 Martin Liska <mliska@suse.cz>
31361
31362 PR sanitizer/69863
31363 * cfgexpand.c (asan_sanitize_stack_p): New function.
31364 (partition_stack_vars): Use the function.
31365 (expand_stack_vars): Likewise.
31366 (defer_stack_allocation): Likewise.
31367 (expand_used_vars): Likewise.
31368
31369 2016-02-18 Richard Biener <rguenther@suse.de>
31370
31371 PR middle-end/69553
31372 * fold-const.c (operand_equal_p): Properly compare offsets for
31373 IMAGPART_EXPR and ARRAY_REF.
31374
31375 2016-02-18 Nick Clifton <nickc@redhat.com>
31376
31377 PR target/62254
31378 PR target/69610
31379 * config/arm/arm.c (arm_option_override_internal): Disable
31380 interworking if the target does not support thumb instructions.
31381 (arm_reload_in_hi): Handle the case where a register to register
31382 move needs reloading because there is no simple pattern to handle
31383 it.
31384 (arm_reload_out_hi): Likewise.
31385
31386 2016-02-18 Richard Biener <rguenther@suse.de>
31387
31388 PR middle-end/69854
31389 * match.pd: Don't use fold_binary or fold_unary for folding
31390 constants.
31391
31392 2016-02-17 Jakub Jelinek <jakub@redhat.com>
31393
31394 PR c++/69850
31395 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
31396 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
31397 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
31398 warn on gimple_no_warning_p statements.
31399
31400 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
31401
31402 * doc/extend.texi (C++ Attributes): Correct description of
31403 warn_unused type attribute.
31404
31405 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31406
31407 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
31408 correct instruction.
31409
31410 2016-02-17 Richard Biener <rguenther@suse.de>
31411
31412 PR rtl-optimization/69609
31413 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
31414 (find_traces_1_round): When ending a trace update cached priority
31415 of successors.
31416 (bb_to_key): Use cached priority when available.
31417 (copy_bb): Initialize cached priority.
31418 (reorder_basic_blocks_software_trace_cache): Likewise.
31419
31420 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31421
31422 PR target/69161
31423 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
31424 New predicate.
31425 (aarch64_comparison_operator): Break overly long line into two.
31426 (aarch64_comparison_operation): Likewise.
31427 * config/aarch64/aarch64.md (cstorecc4): Use
31428 aarch64_comparison_operator_mode instead of
31429 aarch64_comparison_operator.
31430 (cstore<mode>4): Likewise.
31431 (aarch64_cstore<mode>): Likewise.
31432 (*cstoresi_insn_uxtw): Likewise.
31433 (cstore<mode>_neg): Likewise.
31434 (*cstoresi_neg_uxtw): Likewise.
31435
31436 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31437
31438 PR target/69161
31439 * config/arm/predicates.md (arm_comparison_operator_mode):
31440 New predicate.
31441 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
31442 instead of arm_comparison_operator.
31443 (*mov_negscc): Likewise.
31444 (*mov_notscc): Likewise.
31445 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
31446 (*thumb2_mov_negscc): Likewise.
31447 (*thumb2_mov_negscc_strict_it): Likewise.
31448 (*thumb2_mov_notscc): Likewise.
31449 (*thumb2_mov_notscc_strict_it): Likewise.
31450
31451 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
31452
31453 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
31454 Add missing return.
31455
31456 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
31457
31458 * config/visium/visium.c (machine_libfunc_index): New enum.
31459 (machine_libfuncs): New structure.
31460 (visium_libfuncs): New static variable.
31461 (TARGET_INIT_LIBFUNCS): Define to...
31462 (visium_init_libfuncs): ...this. New function.
31463 (expand_block_move_4): Use the appropriate libfunc.
31464 (expand_block_move_2): Likewise.
31465 (expand_block_move_1): Likewise.
31466 (expand_block_set_4): Likewise.
31467 (expand_block_set_2): Likewise.
31468 (expand_block_set_1): Likewise.
31469 (visium_trampoline_init): Likewise.
31470
31471 2016-02-17 Nick Clifton <nickc@redhat.com>
31472
31473 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
31474 TI's devices.csv file as of March 2016.
31475
31476 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
31477
31478 PR Target/48344
31479 * opts-global.c (handle_common_deferred_options): Introduce and
31480 initialize two global variables to remember command-line options
31481 specifying a stack-limiting register.
31482 * opts.h: Add extern declarations of the two new global variables.
31483 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
31484 variable based on the values of the two new global variables.
31485
31486 2016-02-16 Jakub Jelinek <jakub@redhat.com>
31487
31488 PR c/69835
31489 * common.opt (Wnonnull-compare): New warning.
31490 * doc/invoke.texi (-Wnonnull): Remove text about comparison
31491 of arguments against NULL.
31492 (-Wnonnull-compare): Document.
31493 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
31494 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
31495 * passes.def (pass_warn_nonnull_compare): Add.
31496 * gimple-ssa-nonnull-compare.c: New file.
31497
31498 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
31499
31500 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
31501 AARCH64_EXTRA_TUNE_RECIP_SQRT.
31502
31503 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
31504
31505 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
31506 reciprocal sqrt for -mlow-precision-recip-sqrt.
31507
31508 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
31509 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31510
31511 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
31512 always use lane loads to construct non-constant vectors.
31513
31514 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
31515
31516 * config/aarch64/aarch64.md
31517 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
31518 constraints for operand 3.
31519 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
31520
31521 2016-02-16 Jakub Jelinek <jakub@redhat.com>
31522 Richard Biener <rguenther@suse.de>
31523
31524 PR tree-optimization/69820
31525 * tree-vect-patterns.c (type_conversion_p): Return false if
31526 *orig_type is unsigned single precision or boolean.
31527 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
31528 Formatting fix.
31529
31530 2016-02-16 Jakub Jelinek <jakub@redhat.com>
31531
31532 PR rtl-optimization/69764
31533 PR rtl-optimization/69771
31534 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
31535 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
31536
31537 2016-02-16 Richard Biener <rguenther@suse.de>
31538
31539 PR tree-optimization/69776
31540 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
31541 sets from caller.
31542 (indirect_refs_may_alias_p): Likewise.
31543 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
31544 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
31545 according to tbaa_p.
31546 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
31547 (optimize_stmt): For redundant store discovery do not allow tbaa.
31548
31549 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
31550
31551 PR tree-optimization/69714
31552 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
31553 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
31554
31555 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
31556
31557 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
31558 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
31559 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
31560 * config/arc/arc.c (arc_init): Check FPU options.
31561 (get_arc_condition_code): Handle new CC_FPU* modes.
31562 (arc_select_cc_mode): Likewise.
31563 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
31564 register pair only. Allow access for ARCv2 accumulator.
31565 (gen_compare_reg): Whenever we have FPU support use FPU compare
31566 instructions.
31567 (arc_reorg): Don't generate brcc insns when FPU compare
31568 instructions are involved.
31569 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
31570 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
31571 floating point emulation.
31572 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
31573 (REVERSE_CONDITION): Add new CC_FPU* modes.
31574 (TARGET_FP_SP_BASE): Define.
31575 (TARGET_FP_DP_BASE): Likewise.
31576 (TARGET_FP_SP_FUSED): Likewise.
31577 (TARGET_FP_DP_FUSED): Likewise.
31578 (TARGET_FP_SP_CONV): Likewise.
31579 (TARGET_FP_DP_CONV): Likewise.
31580 (TARGET_FP_SP_SQRT): Likewise.
31581 (TARGET_FP_DP_SQRT): Likewise.
31582 (TARGET_FP_DP_AX): Likewise.
31583 * config/arc/arc.md (ARCV2_ACC): New constant.
31584 (type): New fpu type attribute.
31585 (SDF): Conditional iterator.
31586 (cstore<mode>, cbranch<mode>): Change expand condition.
31587 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
31588 handles FPU/FPX cases as well.
31589 * config/arc/arc.opt (mfpu): New option.
31590 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
31591 Renamed.
31592 (adddf3, muldf3, subdf3): Removed.
31593 * config/arc/predicates.md (proper_comparison_operator): Recognize
31594 CC_FPU* modes.
31595 * config/arc/fpu.md: New file.
31596 * doc/invoke.texi (ARC Options): Document mfpu option.
31597
31598 2016-02-16 Richard Biener <rguenther@suse.de>
31599
31600 PR rtl-optimization/69291
31601 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
31602 noce_operand_ok check.
31603
31604 2016-02-16 Tom de Vries <tom@codesourcery.com>
31605
31606 PR lto/67709
31607 * omp-low.c (simd_clone_create): Remove call to
31608 symtab->call_cgraph_insertion_hooks.
31609
31610 2016-02-16 Jakub Jelinek <jakub@redhat.com>
31611
31612 PR tree-optimization/69802
31613 * tree-ssa-reassoc.c (update_range_test): If op is
31614 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
31615 op == 1 test of precision 1 integral op, otherwise handle
31616 that case as op itself. Fix up formatting.
31617 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
31618 up formatting.
31619
31620 2016-02-16 Richard Biener <rguenther@suse.de>
31621
31622 PR tree-optimization/69586
31623 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
31624 types for conversion sources.
31625
31626 2016-02-16 Richard Biener <rguenther@suse.de>
31627
31628 PR middle-end/69801
31629 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
31630 mask OEP_ADDRESS_OF.
31631
31632 2016-02-16 Alan Modra <amodra@gmail.com>
31633
31634 PR target/68973
31635 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
31636 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
31637 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
31638 (p8_mtvsrwz): New.
31639 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
31640 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
31641 (p8_fmrgow_<mode>): Likewise.
31642 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
31643 changes.
31644 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
31645 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
31646 to use movdi_internal64. Remove op0_di.
31647 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
31648
31649 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
31650
31651 Add support for the FCCMP insn types
31652
31653 * config/aarch64/aarch64.md (fccmp): Change insn type.
31654 (fccmpe): Likewise.
31655 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
31656 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
31657 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
31658 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
31659 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
31660 * config/arm/types.md (fccmps): Add new insn type.
31661 (fccmpd): Likewise.
31662
31663 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
31664
31665 * alias.c (get_alias_set): Fix a typo in comment.
31666
31667 2016-02-15 Richard Biener <rguenther@suse.de>
31668
31669 PR tree-optimization/69595
31670 * match.pd: Complete range test simplification to true.
31671
31672 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
31673
31674 PR rtl-optimization/69648
31675 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
31676 pic_offset_table_rtx.
31677
31678 PR rtl-optimization/69752
31679 * ira.c (update_equiv_regs): When looking for more than a single SET,
31680 also take other side effects into account.
31681
31682 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
31683
31684 * config/s390/s390.c (s390_function_profiler): Add a new sequence
31685 for z900+ CPUs in 31-bit mode.
31686
31687 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
31688
31689 * common/config/s390/s390-common.c (s390_supports_split_stack):
31690 New function.
31691 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
31692 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
31693 * config/s390/s390.c (struct machine_function): New field
31694 split_stack_varargs_pointer.
31695 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
31696 in s390_emit_prologue.
31697 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
31698 vararg pointer.
31699 (morestack_ref): New global.
31700 (SPLIT_STACK_AVAILABLE): New macro.
31701 (s390_expand_split_stack_prologue): New function.
31702 (s390_live_on_entry): New function.
31703 (s390_va_start): Use split-stack vararg pointer if appropriate.
31704 (s390_asm_file_end): Emit the split-stack note sections.
31705 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
31706 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
31707 (UNSPECV_SPLIT_STACK_CALL): New unspec.
31708 (UNSPECV_SPLIT_STACK_DATA): New unspec.
31709 (split_stack_prologue): New expand.
31710 (split_stack_space_check): New expand.
31711 (split_stack_data): New insn.
31712 (split_stack_call): New expand.
31713 (split_stack_call_*): New insn.
31714 (split_stack_cond_call): New expand.
31715 (split_stack_cond_call_*): New insn.
31716
31717 2016-02-15 Richard Biener <rguenther@suse.de>
31718
31719 PR tree-optimization/69783
31720 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
31721 Add trivially correct cases.
31722
31723 2016-02-15 Tom de Vries <tom@codesourcery.com>
31724
31725 PR lto/69655
31726 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
31727 do_force_output.
31728 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
31729
31730 2016-02-15 Richard Biener <rguenther@suse.de>
31731
31732 PR tree-optimization/69776
31733 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
31734 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
31735 indicate whether we can use TBAA to disambiguate against stores.
31736 Use alias-set zero if not.
31737 (visit_reference_op_store): Do not use TBAA when looking up
31738 redundant stores.
31739 * tree-ssa-pre.c (compute_avail): Use TBAA here.
31740 (eliminate_dom_walker::before_dom_children): But not when looking
31741 up redundant stores.
31742
31743 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
31744
31745 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
31746
31747 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
31748
31749 * config/i386/znver1.md
31750 (znver1_pop, znver1_pop_mem,
31751 znver1_load_imov_double_store,
31752 znver1_load_imov_direct_store,
31753 znver1_load_imov_direct_load,
31754 znver1_load_imov_double_load): Add new.
31755 (znver1_insn, znver1_insn_load): Add icmov type.
31756 (znver1_sseavx_fma,
31757 znver1_sseavx_fma_load,
31758 znver1_avx256_fma,
31759 znver1_avx256_fma_load): Fix pipe usage.
31760
31761 2016-02-14 Alan Modra <amodra@gmail.com>
31762
31763 PR target/68973
31764 * reload.c (find_reloads_address_1): For pre/post-inc/dec
31765 with an invalid hard reg, reload just the reg not the entire
31766 pre/post-inc/dec address expression.
31767
31768 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
31769
31770 PR target/67260
31771 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
31772 fixed R1_REG scratch reg.
31773 (sibcall_value_pcrel_fdpic): Likewise.
31774
31775 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
31776
31777 PR target/67636
31778 PR target/64345
31779 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
31780
31781 2016-02-12 Walter Lee <walt@tilera.com>
31782
31783 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
31784 * config/tilegx/t-tilegx: Likewise.
31785
31786 2016-02-12 David Malcolm <dmalcolm@redhat.com>
31787
31788 PR other/69554
31789 * diagnostic-show-locus.c (struct line_span): New struct.
31790 (layout::get_first_line): Delete.
31791 (layout::get_last_line): Delete.
31792 (layout::get_num_line_spans): New member function.
31793 (layout::get_line_span): Likewise.
31794 (layout::print_heading_for_line_span_index_p): Likewise.
31795 (layout::get_expanded_location): Likewise.
31796 (layout::calculate_line_spans): Likewise.
31797 (layout::m_first_line): Delete.
31798 (layout::m_last_line): Delete.
31799 (layout::m_line_spans): New field.
31800 (layout::layout): Update comment. Replace m_first_line and
31801 m_last_line with m_line_spans, replacing their initialization
31802 with a call to calculate_line_spans.
31803 (diagnostic_show_locus): When printing source lines and
31804 annotations, rather than looping over a single span
31805 of lines, instead loop over each line_span within
31806 the layout, with an inner loop over the lines within them.
31807 Call the context's start_span callback when changing line spans.
31808 * diagnostic.c (diagnostic_initialize): Initialize start_span.
31809 (diagnostic_build_prefix): Break out the building of the location
31810 part of the string into...
31811 (diagnostic_get_location_text): ...this new function, rewriting
31812 it from nested ternary expressions to a sequence of "if"
31813 statements.
31814 (default_diagnostic_start_span_fn): New function.
31815 * diagnostic.h (diagnostic_start_span_fn): New typedef.
31816 (diagnostic_context::start_span): New field.
31817 (default_diagnostic_start_span_fn): New prototype.
31818
31819 2016-02-12 David Malcolm <dmalcolm@redhat.com>
31820
31821 PR driver/69779
31822 * gcc.c (driver::finalize): Fix cleanup of "specs".
31823
31824 2016-02-12 David Malcolm <dmalcolm@redhat.com>
31825
31826 PR driver/69265
31827 PR driver/69453
31828 * gcc.c (driver::driver): Initialize m_option_suggestions.
31829 (driver::~driver): Clean up m_option_suggestions.
31830 (suggest_option): Convert to...
31831 (driver::suggest_option): ...this, and split out into
31832 driver::build_option_suggestions and find_closest_string.
31833 (driver::build_option_suggestions): New function, from
31834 first half of suggest_option. Special-case
31835 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
31836 the sanitizer_opts array. For options of enum types, add the
31837 various enum values to the candidate strings.
31838 (driver::handle_unrecognized_options): Remove "const".
31839 * gcc.h (driver::handle_unrecognized_options): Likewise.
31840 (driver::build_option_suggestions): New decl.
31841 (driver::suggest_option): New decl.
31842 (driver::m_option_suggestions): New field.
31843 * opts-common.c (add_misspelling_candidates): New function.
31844 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
31845 and make non-static.
31846 * opts.h (sanitizer_opts): New array decl.
31847 (add_misspelling_candidates): New function decl.
31848 * spellcheck.c (find_closest_string): New function.
31849 * spellcheck.h (find_closest_string): New function decl.
31850
31851 2016-02-12 Jakub Jelinek <jakub@redhat.com>
31852
31853 PR rtl-optimization/69764
31854 PR rtl-optimization/69771
31855 * optabs.c (expand_binop_directly): For shift_optab_p, force
31856 convert_modes with VOIDmode if xop1 has VOIDmode.
31857
31858 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
31859
31860 PR target/69729
31861 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
31862 to correctly determine instrumentation thunks.
31863
31864 2016-02-12 Jakub Jelinek <jakub@redhat.com>
31865
31866 PR ipa/69241
31867 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
31868 type by reference, force lhs on the call.
31869
31870 PR ipa/68672
31871 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
31872 Compute retval and retbnd early in all cases if split_part_return_p
31873 and return_bb is not EXIT. Remove all clobber stmts and reset
31874 all debug stmts that refer to SSA_NAMEs defined in split part,
31875 except if it is retval, in that case replace the old retval with the
31876 lhs of the call to the split part.
31877
31878 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
31879
31880 revert:
31881 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
31882
31883 PR middle-end/66726
31884 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
31885 whose result is used in PHI.
31886 (maybe_optimize_range_tests): Likewise.
31887 (final_range_test_p): Likweise.
31888
31889 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
31890
31891 PR middle-end/66726
31892 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
31893 whose result is used in PHI.
31894 (maybe_optimize_range_tests): Likewise.
31895 (final_range_test_p): Likweise.
31896
31897 2016-02-12 Jakub Jelinek <jakub@redhat.com>
31898
31899 * cgraph.c: Spelling fixes - behaviour -> behavior and
31900 neighbour -> neighbor.
31901 * target.def: Likewise.
31902 * sel-sched.c: Likewise.
31903 * config/mips/mips.c: Likewise.
31904 * config/arc/arc.md: Likewise.
31905 * config/arm/cortex-a57.md: Likewise.
31906 * config/arm/arm.c: Likewise.
31907 * config/arm/neon.md: Likewise.
31908 * config/arm/arm-c.c: Likewise.
31909 * config/vms/vms-c.c: Likewise.
31910 * config/s390/s390.c: Likewise.
31911 * config/i386/znver1.md: Likewise.
31912 * config/i386/i386.c: Likewise.
31913 * config/ia64/hpux-unix2003.h: Likewise.
31914 * config/msp430/msp430.md: Likewise.
31915 * config/rx/rx.c: Likewise.
31916 * config/rx/rx.md: Likewise.
31917 * config/aarch64/aarch64-simd.md: Likewise.
31918 * config/aarch64/aarch64.c: Likewise.
31919 * config/nvptx/nvptx.c: Likewise.
31920 * config/bfin/bfin.c: Likewise.
31921 * config/cris/cris.opt: Likewise.
31922 * config/rs6000/rs6000.c: Likewise.
31923 * target.h: Likewise.
31924 * spellcheck.c: Likewise.
31925 * ira-build.c: Likewise.
31926 * tree-inline.c: Likewise.
31927 * builtins.c: Likewise.
31928 * lra-constraints.c: Likewise.
31929 * explow.c: Likewise.
31930 * hwint.h: Likewise.
31931 * targhooks.c: Likewise.
31932 * tree-vect-data-refs.c: Likewise.
31933 * expr.c: Likewise.
31934 * doc/tm.texi: Likewise.
31935 * doc/extend.texi: Likewise.
31936 * doc/install.texi: Likewise.
31937 * doc/md.texi: Likewise.
31938 * tree-ssa-tail-merge.c: Likewise.
31939 * sched-int.h: Likewise.
31940 * match.pd: Likewise.
31941 * sched-ebb.c: Likewise.
31942 * target.def (omit_struct_return_reg): Likewise.
31943 * gimple-ssa-isolate-paths.c: Likewise.
31944 (find_implicit_erroneous_behaviour): Renamed to...
31945 (find_implicit_erroneous_behavior): ... this.
31946 (find_explicit_erroneous_behaviour): Renamed to...
31947 (find_explicit_erroneous_behavior): ... this.
31948 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
31949
31950 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
31951
31952 PR rtl-optimization/64682
31953 PR rtl-optimization/69567
31954 PR rtl-optimization/69737
31955 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
31956 in I2 as well, just lose it.
31957
31958 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31959
31960 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
31961 New variable.
31962 (aarch64_last_printed_tune_string): Likewise.
31963 (aarch64_declare_function_name): Only output .arch assembler
31964 directive if it will be different from the previously output
31965 directive. Same for .tune comment but only if -dA is set.
31966 (aarch64_start_file): New function.
31967 (TARGET_ASM_FILE_START): Define.
31968
31969 2016-02-11 David Malcolm <dmalcolm@redhat.com>
31970
31971 PR plugins/69758
31972 * Makefile.in (PLUGIN_HEADERS): Add params.list.
31973
31974 2016-02-11 Jakub Jelinek <jakub@redhat.com>
31975
31976 PR target/65313
31977 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
31978 -Wmaybe-uninitialized warning.
31979
31980 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
31981
31982 PR target/69713
31983 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
31984
31985 2016-02-11 Richard Biener <rguenther@suse.de>
31986
31987 PR rtl-optimization/69291
31988 * ifcvt.c (noce_try_store_flag_constants): Do not allow
31989 subexpressions affected by changing the result.
31990
31991 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
31992
31993 PR target/69148
31994 * lra-constraints.c (curr_insn_transform): Find in/out operands
31995 for secondary memory moves. Update dups.
31996
31997 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
31998
31999 PR tree-optimization/69652
32000 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
32001 to nested loop, did source re-formatting, skip debug statements,
32002 add check on statement with volatile operand, remove dead scalar
32003 statements.
32004
32005 2016-02-10 Jakub Jelinek <jakub@redhat.com>
32006 Patrick Palka <ppalka@gcc.gnu.org>
32007
32008 PR ipa/69241
32009 PR c++/69649
32010 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
32011 calls if the return type is TREE_ADDRESSABLE.
32012 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
32013 * ipa-split.c (split_function): Fix doubled "we" in comment.
32014 Use void return type for the split part even if
32015 !split_point->split_part_set_retval.
32016
32017 2016-02-10 Bin Cheng <bin.cheng@arm.com>
32018
32019 PR tree-optimization/68021
32020 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
32021 when computing the value of biv cand by itself.
32022
32023 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
32024
32025 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
32026 (cortexa57_tunings): Likewise.
32027 (cortexa72_tunings): Likewise.
32028 (arch_macro_fusion_pair_p): Add support for AES fusion.
32029 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
32030 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
32031 Allow virtual registers before reload so early scheduling works.
32032 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
32033 correct latency and pipeline.
32034 (cortex_a57_crypto_complex): Likewise.
32035 (cortex_a57_crypto_xor): Likewise.
32036 (define_bypass): Add AES bypass.
32037
32038 2016-02-10 Richard Biener <rguenther@suse.de>
32039
32040 PR tree-optimization/69726
32041 * passes.def: Add DCE pass before late uninit.
32042 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
32043 really fixup if-conversions job.
32044
32045 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
32046
32047 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
32048 (arm_cortex_a57_tune): Likewise.
32049 (aarch_macro_fusion_pair_p): Add support for AES fusion.
32050 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
32051
32052 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
32053
32054 * timevar.def (TV_PHASE_DBGINFO): Delete.
32055 (TV_PHASE_CHECK_DBGINFO): Likewise.
32056 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
32057
32058 2016-02-10 Richard Biener <rguenther@suse.de>
32059
32060 PR tree-optimization/69719
32061 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
32062 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
32063
32064 2016-02-09 Andrew Pinski <apinski@cavium.com>
32065
32066 PR tree-opt/69282
32067 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
32068 get_vcond_mask_icode returns false.
32069
32070 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
32071
32072 PR target/68404
32073 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
32074 an ADDIS that adds a pointer to a large constant that sets the
32075 upper16 bits with a load operation.
32076
32077 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
32078
32079 PR target/68532
32080 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
32081 order.
32082 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
32083 endian.
32084 (vzipq_s16): Likewise.
32085 (vzipq_s32): Likewise.
32086 (vzipq_f32): Likewise.
32087 (vzipq_u8): Likewise.
32088 (vzipq_u16): Likewise.
32089 (vzipq_u32): Likewise.
32090 (vzipq_p8): Likewise.
32091 (vzipq_p16): Likewise.
32092
32093 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
32094
32095 PR target/68532
32096 * config/arm/arm.c (neon_endian_lane_map): New function.
32097 (neon_vector_pair_endian_lane_map): New function.
32098 (arm_evpc_neon_vuzp): Allow for big endian lane order.
32099 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
32100 endian.
32101 (vuzpq_s16): Likewise.
32102 (vuzpq_s32): Likewise.
32103 (vuzpq_f32): Likewise.
32104 (vuzpq_u8): Likewise.
32105 (vuzpq_u16): Likewise.
32106 (vuzpq_u32): Likewise.
32107 (vuzpq_p8): Likewise.
32108 (vuzpq_p16): Likewise.
32109
32110 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
32111
32112 PR target/69634
32113 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
32114 debug insns.
32115
32116 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
32117
32118 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
32119 truncate const_int operand 1 to QImode.
32120
32121 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
32122
32123 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
32124 corresponding to an abnormal edge.
32125
32126 2016-02-09 Tom de Vries <tom@codesourcery.com>
32127
32128 PR tree-optimization/69599
32129 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
32130 function.
32131 (find_func_aliases_for_builtin_call, find_func_clobbers)
32132 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
32133 partition.
32134
32135 2016-02-09 Richard Biener <rguenther@suse.de>
32136
32137 PR tree-optimization/69715
32138 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
32139 LHS on calls as non-rewritable.
32140
32141 2016-02-09 Tom de Vries <tom@codesourcery.com>
32142
32143 PR lto/69707
32144 * lto-wrapper.c (append_diag_options): New function.
32145 (compile_offload_image): Call append_diag_options.
32146
32147 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
32148
32149 PR other/69722
32150 * doc/extend.texi (Flag Output Operands): Correct sectioning.
32151 Minor copy-edit to fix verb tenses.
32152
32153 2016-02-08 Jakub Jelinek <jakub@redhat.com>
32154
32155 PR tree-optimization/69209
32156 * ipa-split.c (split_function): If split part is not
32157 returning retval, retval has gimple type but is not
32158 gimple value, force it into a SSA_NAME first.
32159
32160 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
32161
32162 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
32163 outdated section.
32164
32165 2016-02-08 Jason Merrill <jason@redhat.com>
32166
32167 PR c++/69631
32168 * convert.c (convert_to_integer_1): Check dofold on truncation
32169 distribution.
32170 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
32171 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
32172 Rename from *_nofold.
32173 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
32174 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
32175
32176 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
32177
32178 PR target/60410
32179 * tree.c (build_common_tree_nodes): Remove short_double argument.
32180 All callers changed.
32181 * tree.h (build_common_tree_nodes): Adjust declaration.
32182 * doc/invoke.texi (-fshort-double): Remove documentation.
32183 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
32184 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
32185 * lto-wrapper.c (merge_and_complain, append_compiler_options)
32186 (append_linker_options): Don't handle OPT_fshort_double.
32187
32188 PR rtl-optimization/68730
32189 * lra-remat.c (insn_to_cand_activation): New static variable.
32190 (lra_remat): Allocate and free it.
32191 (create_cand): New arg activation. Initialize a field in
32192 insn_to_cand_activation if it is nonnull.
32193 (create_cands): Pass the activation insn to create_cand when making
32194 a candidate involving an output reload. Reorganize code a little.
32195 (do_remat): Keep track of active status of candidates in a separate
32196 bitmap.
32197
32198 2016-02-08 Richard Biener <rguenther@suse.de>
32199
32200 PR tree-optimization/69719
32201 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
32202 Properly use absolute of the difference of the two offsets to
32203 compare or adjust the segment length.
32204
32205 2016-02-08 Richard Biener <rguenther@suse.de>
32206 Jeff Law <law@redhat.com>
32207
32208 PR target/68273
32209 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
32210 types for anonymous SSA names.
32211
32212 2016-02-08 Richard Biener <rguenther@suse.de>
32213
32214 PR rtl-optimization/69274
32215 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
32216
32217 2016-02-08 Jeff Law <law@redhat.com>
32218
32219 PR tree-optimization/65917
32220 * tree-ssa-dom.c (record_temporary_equivalences): Record both
32221 equivalences from if (x == y) style conditionals.
32222 (loop_depth_of_name): Remove.
32223 (record_equality): Remove loop depth check.
32224 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
32225 (const_and_copies::record_const_or_copy_raw): New member function.
32226 * tree-ssa-scopedtables.c
32227 (const_and_copies::record_const_or_copy_raw): New, factored out of
32228 (const_and_copies::record_const_or_copy): Call new member function.
32229
32230 2016-02-05 Jeff Law <law@redhat.com>
32231
32232 PR tree-optimization/68541
32233 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
32234 (count_stmts_in_block): New function.
32235 (poor_ifcvt_candidate_code): Likewise.
32236 (is_feasible_trace): Add some heuristics to determine when path
32237 splitting is profitable.
32238 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
32239 is a diamond with a single exit.
32240
32241 2016-02-05 Martin Sebor <msebor@redhat.com>
32242
32243 PR c++/69662
32244 * doc/invoke.texi: Update -Wplacement-new to take an optional
32245 argument.
32246
32247 2016-02-06 Richard Henderson <rth@redhat.com>
32248
32249 PR c/69643
32250 * tree.c (tree_nop_conversion_p): Do not strip casts into or
32251 out of non-standard address spaces.
32252
32253 2016-02-05 Jakub Jelinek <jakub@redhat.com>
32254
32255 PR rtl-optimization/69691
32256 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
32257
32258 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
32259
32260 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
32261 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
32262 (*ieee128_mfvsrd_64bit): Likewise.
32263 (*ieee128_mfvsrd_32bit): Likewise.
32264
32265 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
32266
32267 PR target/69369
32268 Revert r232560:
32269 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
32270
32271 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
32272 instrumented_version.
32273
32274 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
32275
32276 * doc/invoke.texi (Optimize Options): In table of --param options
32277 rename second occurrence of tracer-min-branch-ratio to
32278 tracer-min-branch-probability, rename
32279 tracer-min-branch-ratio-feedback to
32280 tracer-min-branch-probability-feedback and clarify description,
32281 rename sched-spec-state-edge-prob-cutoff to
32282 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
32283 to selsched-insns-to-rename, rename lto-minpartition to
32284 lto-min-partition, delete reorder-blocks-duplicate and
32285 reorder-blocks-duplicate-feedback.
32286
32287 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32288
32289 * config/s390/s390.c (s390_register_info_set_ranges): Remove
32290 superfluous loops.
32291
32292 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
32293
32294 * doc/extend.texi: S/390: Correct some typos.
32295
32296 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32297
32298 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
32299
32300 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32301
32302 PR target/69625
32303 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
32304 (s390_register_info_gprtofpr): Use new macros above.
32305 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
32306 its name.
32307 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
32308 its name. Adjust restore and save gpr ranges.
32309 (s390_register_info_set_ranges): New function.
32310 (s390_register_info): Use new macros above. Call
32311 s390_register_info_set_ranges.
32312 (s390_optimize_register_info): Likewise.
32313 (s390_hard_regno_rename_ok): Use new macros.
32314 (s390_hard_regno_scratch_ok): Likewise.
32315 (s390_emit_epilogue): Likewise.
32316 (s390_can_use_return_insn): Likewise.
32317 (s390_optimize_prologue): Likewise.
32318 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
32319
32320 2016-02-05 Jakub Jelinek <jakub@redhat.com>
32321
32322 PR bootstrap/69677
32323 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
32324 alignment fixes.
32325 (ix86_option_override_internal): Disable TARGET_STV even for
32326 -m{incoming,preferred}-stack-boundary=3.
32327
32328 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32329
32330 * config.gcc: Mark deprecated rtems targets as obsolete.
32331
32332 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
32333
32334 PR rtl-optimization/64682
32335 PR rtl-optimization/69567
32336 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
32337 before I2 only if the register is both used and set in I2.
32338
32339 2016-02-04 DJ Delorie <dj@redhat.com>
32340
32341 * config/msp430/msp430.c (msp430_start_function): Add function type.
32342
32343 2016-02-04 Jakub Jelinek <jakub@redhat.com>
32344
32345 PR fortran/69368
32346 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
32347
32348 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
32349
32350 PR rtl-optimization/69577
32351 Revert:
32352 2015-10-29 Richard Henderson <rth@redhat.com>
32353
32354 PR target/68124
32355 PR rtl-opt/67609
32356 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
32357 sse check to the exact conditions of PR 67609.
32358
32359 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
32360
32361 PR target/69667
32362 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
32363 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
32364 not allowed into the traditional Altivec registers.
32365 (movtd_64bit_nodm): Likewise.
32366 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
32367
32368 2016-02-04 David Malcolm <dmalcolm@redhat.com>
32369
32370 * config/aarch64/cortex-a57-fma-steering.c
32371 (aarch64_register_fma_steering): Remove "static" from arguments
32372 to register_pass.
32373
32374 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
32375
32376 PR target/69619
32377 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
32378 twice when complex.
32379
32380 2016-02-04 Mike Frysinger <vapier@gentoo.org>
32381
32382 * doc/invoke.texi: Delete -mno-fma4.
32383
32384 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
32385
32386 PR rtl-optimization/69577
32387 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
32388 (find_subregs_of_mode): Update accordingly. Iterate over partial
32389 definitions.
32390
32391 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
32392
32393 * config/arm/arm-protos.h (neon_reinterpret): Remove.
32394 * config/arm/arm.c (neon_reinterpret): Remove.
32395 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
32396 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
32397 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
32398 vreinterpretti): Remove.
32399 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
32400 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
32401 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
32402 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
32403 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
32404 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
32405 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
32406 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
32407 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
32408 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
32409 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
32410 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
32411 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
32412 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
32413 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
32414 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
32415 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
32416 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
32417 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
32418 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
32419 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
32420 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
32421 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
32422 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
32423 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
32424 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
32425 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
32426 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
32427 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
32428 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
32429 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
32430 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
32431 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
32432 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
32433 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
32434 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
32435 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
32436 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
32437 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
32438 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
32439 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
32440 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
32441 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
32442 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
32443 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
32444 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
32445 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
32446 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
32447 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
32448 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
32449 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
32450 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
32451 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
32452 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
32453 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
32454 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
32455 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
32456 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
32457 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
32458 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
32459 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
32460 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
32461 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
32462 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
32463 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
32464 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
32465 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
32466 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
32467 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
32468 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
32469 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
32470 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
32471 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
32472 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
32473 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
32474 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
32475 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
32476 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
32477 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
32478 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
32479 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
32480 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
32481 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
32482 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
32483 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
32484 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
32485 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
32486 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
32487 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
32488 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
32489 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
32490 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
32491 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
32492 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
32493 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
32494 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
32495 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
32496 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
32497 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
32498 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
32499 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
32500 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
32501 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
32502
32503 2016-02-04 Martin Liska <mliska@suse.cz>
32504
32505 PR sanitizer/69276
32506 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
32507 that are gimple_store_p.
32508 (maybe_instrument_call): Likewise.
32509
32510 2016-02-04 Bin Cheng <bin.cheng@arm.com>
32511
32512 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
32513 register scaling out of memory reference and comment why.
32514
32515 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32516
32517 PR target/65932
32518 PR target/67714
32519 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
32520 folding the source of a SET.
32521
32522 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32523
32524 PR target/65932
32525 PR target/67714
32526 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
32527 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
32528
32529 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
32530
32531 PR target/65932
32532 PR target/67714
32533 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
32534 HImode.
32535
32536 2016-02-04 Christian Bruel <christian.bruel@st.com>
32537
32538 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
32539 * config/arm/arm.c (arm_set_current_function): Likewise.
32540
32541 2016-02-04 Jakub Jelinek <jakub@redhat.com>
32542 Ilya Enkovich <enkovich.gnu@gmail.com>
32543 H.J. Lu <hongjiu.lu@intel.com>
32544
32545 PR target/69454
32546 * config/i386/i386.c (convert_scalars_to_vector): Remove
32547 stack alignment fixes.
32548 (ix86_option_override_internal): Disable TARGET_STV if stack
32549 might not be aligned enough.
32550 (ix86_minimum_alignment): Assert that TARGET_STV is false.
32551
32552 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
32553
32554 * config/i386/x86-tune.def: Disable default prefetching
32555 for -march=znver1.
32556
32557 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
32558 Vladimir Makarov <vmakarov@redhat.com>
32559
32560 PR target/69461
32561 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
32562 in validating fused toc addresses.
32563
32564 2016-02-03 Jakub Jelinek <jakub@redhat.com>
32565
32566 PR c/69627
32567 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
32568 range->m_caret fields if range->m_show_caret_p is false.
32569
32570 PR target/69644
32571 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
32572 Force oldval into register if it does not satisfy reg_or_short_operand
32573 predicate. Fix up formatting.
32574
32575 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
32576 Alexandre Oliva <aoliva@redhat.com>
32577
32578 PR target/69461
32579 * lra-constraints.c (simplify_operand_subreg): Check additionally
32580 address validity after potential reloading.
32581 (process_address_1): Check insns validity. In case of failure do
32582 nothing.
32583
32584 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
32585
32586 PR target/69118
32587 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
32588 Fix target.
32589
32590 2016-02-02 Jakub Jelinek <jakub@redhat.com>
32591
32592 * wide-int.cc (canonize_uhwi): New function.
32593 (wi::divmod_internal): Use it.
32594
32595 2016-02-02 James Norris <jnorris@codesourcery.com>
32596
32597 * gimplify.c (omp_notice_variable): Add usage check.
32598
32599 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
32600
32601 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
32602 like LE, GE, LT, GT when emitting relational operator.
32603
32604 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
32605
32606 * ira-costs.c (find_costs_and_classes): Add extra argument.
32607 * target.def (ira_change_pseudo_allocno_class): Add parameter.
32608 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
32609 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
32610 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
32611 Add best_class parameter, and return it if not ALL_REGS.
32612 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
32613 Add parameter.
32614 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
32615 Update target hook.
32616
32617 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
32618
32619 * config/aarch64/aarch64.c
32620 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
32621 (aarch64_ira_change_pseudo_allocno_class): New function.
32622
32623 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
32624
32625 PR target/67032
32626 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
32627
32628 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
32629
32630 * config/avr/avr.c (avr_option_override): Set
32631 PARAM_ALLOW_STORE_DATA_RACES to 1.
32632
32633 2016-02-02 Richard Biener <rguenther@suse.de>
32634
32635 PR tree-optimization/69595
32636 * match.pd: Add range test simplifications to true/false.
32637
32638 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
32639
32640 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
32641 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
32642 instead.
32643
32644 2016-02-02 Richard Biener <rguenther@suse.de>
32645
32646 PR tree-optimization/69606
32647 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
32648 info on the result before moving a stmt.
32649
32650 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
32651
32652 PR middle-end/68542
32653 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
32654 branch with vector comparison.
32655 * config/i386/sse.md (VI48_AVX): New mode iterator.
32656 (define_expand "cbranch<mode>4): Add support for conditional branch
32657 with vector comparison.
32658 * tree-vect-loop.c (optimize_mask_stores): New function.
32659 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
32660 has_mask_store field of vect_info.
32661 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
32662 vectorized loops having masked stores after vec_info destroy.
32663 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
32664 correspondent macros.
32665 (optimize_mask_stores): Add prototype.
32666
32667 2016-02-02 Alan Modra <amodra@gmail.com>
32668
32669 PR target/69548
32670 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
32671 allow subregs.
32672
32673 2016-02-02 Alan Modra <amodra@gmail.com>
32674
32675 PR target/68662
32676 * config/rs6000/rs6000.c (need_toc_init): New var, set it
32677 whenever toc_label_name used.
32678 (rs6000_file_start): Don't set up toc section here,
32679 (rs6000_output_function_epilogue): do so here instead,
32680 (rs6000_xcoff_file_start): and here.
32681 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
32682 (load_toc_aix_di): Likewise.
32683
32684 2016-02-01 Jakub Jelinek <jakub@redhat.com>
32685
32686 PR rtl-optimization/69592
32687 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
32688 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
32689 (num_sign_bit_copies_binary_arith_p): New inline function.
32690 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
32691
32692 2016-02-01 Jeff Law <law@redhat.com>
32693
32694 PR tree-optimization/69580
32695 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
32696 * tree-ssa-threadbackward.c
32697 (fsm_find_control_statement_thread_paths): Do not try to walk
32698 through large PHI nodes.
32699
32700 2016-02-01 Jakub Jelinek <jakub@redhat.com>
32701
32702 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
32703 when count is incremented above limit, don't analyze further
32704 insns afterwards.
32705
32706 * omp-low.c (oacc_parse_default_dims): Avoid
32707 -Wsign-compare warning, make sure value fits into int
32708 rather than just unsigned int.
32709
32710 2016-02-01 Bin Cheng <bin.cheng@arm.com>
32711
32712 PR tree-optimization/67921
32713 * fold-const.c (split_tree): New parameters. Convert pointer
32714 type variable part to proper type before negating.
32715 (fold_binary_loc): Pass new arguments to split_tree.
32716
32717 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
32718
32719 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
32720 (nvptx_goacc_validate_dims): Extend to handle global defaults.
32721 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
32722 * doc/tm.texti: Rebuilt.
32723 * doc/invoke.texi (fopenacc-dim): Document.
32724 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
32725 (append_compiler_options): Likewise.
32726 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
32727 (oacc_parse_default_dims): New.
32728 (oacc_validate_dims): Add USED arg. Select non-unity default when
32729 possible.
32730 (oacc_loop_fixed_partitions): Return mask of used partitions.
32731 (oacc_loop_auto_partitions): Emit dump info.
32732 (oacc_loop_partition): Return mask of used partitions.
32733 (execute_oacc_device_lower): Parse default dimension arg. Adjust
32734 loop partitioning and validation calls.
32735
32736 2016-02-01 Richard Biener <rguenther@suse.de>
32737
32738 PR middle-end/69556
32739 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
32740
32741 2016-02-01 Richard Biener <rguenther@suse.de>
32742
32743 PR tree-optimization/69574
32744 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
32745 of asserting return chrec_dont_know.
32746
32747 2016-02-01 Martin Liska <mliska@suse.cz>
32748
32749 * mem-stats-traits.h: Add copyright header.
32750 * mem-stats.h: Likewise.
32751
32752 2016-02-01 Richard Biener <rguenther@suse.de>
32753
32754 PR tree-optimization/69579
32755 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
32756 Do not propagate through abnormal PHI results.
32757
32758 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
32759
32760 * postreload.c (reload_cse_simplify): Remove dead code.
32761
32762 2016-02-01 Jakub Jelinek <jakub@redhat.com>
32763
32764 PR rtl-optimization/69570
32765 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
32766 if there is more than one set, not if there is a single set.
32767
32768 2016-02-01 Richard Henderson <rth@redhat.com>
32769
32770 PR rtl-opt/69535
32771 * combine.c (make_compound_operation): When looking through a
32772 subreg, make sure to re-extend to the width of the outer mode.
32773
32774 2016-01-30 Jakub Jelinek <jakub@redhat.com>
32775
32776 PR tree-optimization/69546
32777 * wide-int.cc (wi::divmod_internal): For unsigned division
32778 where both operands fit into uhwi, if o1 is 1 and o0 has
32779 msb set, if divident_prec is larger than bits per hwi,
32780 clear another quotient word and return 2 instead of 1.
32781 Similarly for remainder with msb in HWI set, if dividend_prec
32782 is larger than bits per hwi.
32783
32784 2016-01-29 Martin Jambor <mjambor@suse.cz>
32785
32786 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
32787 Use short lowercase names.
32788 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
32789 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
32790 acq_rel one. Protect warning agains segfaults if
32791 get_memory_order_name returns NULL.
32792 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
32793 with release semantics. Do not warn if get_memory_order already did.
32794 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
32795 semantics. Fix check for relaxed or acquire semantics. Do not warn
32796 if get_memory_order already did.
32797
32798 2016-01-29 Sebastian Pop <s.pop@samsung.com>
32799
32800 * doc/install.texi: Document that isl-0.16 is supported.
32801
32802 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
32803
32804 PR target/69299
32805 * config/i386/constraints.md (Bm): Describe as special memory
32806 constraint.
32807 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
32808 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
32809 * genpreds.c (struct constraint_data): Add is_special_memory.
32810 (have_special_memory_constraints, special_memory_start): New
32811 static vars.
32812 (special_memory_end): Ditto.
32813 (add_constraint): Add new arg is_special_memory. Add code to
32814 process its true value. Update have_special_memory_constraints.
32815 (process_define_constraint): Pass the new arg.
32816 (process_define_register_constraint): Ditto.
32817 (choose_enum_order): Process special memory.
32818 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
32819 function insn_extra_special_memory_constraint.
32820 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
32821 * gensupport.c (process_rtx): Process
32822 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
32823 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
32824 * ira-lives.c (single_reg_class): Use
32825 insn_extra_special_memory_constraint.
32826 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
32827 * lra-constraints.c (process_alt_operands): Ditto.
32828 (curr_insn_transform): Use insn_extra_special_memory_constraint.
32829 * recog.c (asm_operand_ok, preprocess_constraints): Process
32830 CT_SPECIAL_MEMORY.
32831 * reload.c (find_reloads): Ditto.
32832 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
32833 * stmt.c (parse_input_constraint): Use
32834 insn_extra_special_memory_constraint.
32835
32836 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
32837
32838 PR target/69530
32839 * lra-splill.c (lra_final_code_change): Revert r229087 by
32840 removing all sub-registers.
32841
32842 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
32843
32844 PR target/65604
32845 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
32846
32847 2016-01-29 Jakub Jelinek <jakub@redhat.com>
32848
32849 PR target/69551
32850 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
32851 SSE1, copy target into the temporary reg first before recursing
32852 on it.
32853
32854 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
32855
32856 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
32857 with vm.
32858
32859 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
32860
32861 * ginclude/stdarg.h: Test __cplusplus instead of
32862 __GXX_EXPERIMENTAL_CXX0X__.
32863
32864 2016-01-29 Richard Biener <rguenther@suse.de>
32865
32866 PR tree-optimization/69547
32867 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
32868 Do not mark clobbers necessary.
32869 (mark_all_reaching_defs_necessary_1): Likewise.
32870
32871 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
32872
32873 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
32874 declaration name with %qs and print it in both error messages.
32875 Also fix indentation.
32876
32877 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
32878
32879 PR other/69006
32880 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
32881 trailing blank line from error message.
32882
32883 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
32884
32885 PR c++/69462
32886 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
32887 for C++-11.
32888
32889 2016-01-29 Richard Biener <rguenther@suse.de>
32890
32891 PR middle-end/69537
32892 * match.pd: Allow all integral types when simplifying a
32893 widening or sign-changing conversion.
32894
32895 2016-01-28 Sebastian Pop <s.pop@samsung.com>
32896
32897 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
32898 back to setting codegen_error to fail codegen.
32899
32900 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
32901
32902 PR target/69459
32903 * config/i386/constraints.md (C): Only accept constant zero operand.
32904 (BC): New constraint.
32905 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
32906 instead of C constraint.
32907 * doc/md.texi (Machine Constraints): Update description
32908 of C constraint.
32909
32910 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
32911
32912 PR target/68400
32913 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
32914
32915 2016-01-28 Jakub Jelinek <jakub@redhat.com>
32916
32917 PR middle-end/69542
32918 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
32919 non-debug insns.
32920
32921 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
32922
32923 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
32924 branches if using guessed profile.
32925
32926 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
32927
32928 * graphite-optimize-isl.c (optimize_isl): Fix dump.
32929
32930 2016-01-28 Richard Henderson <rth@redhat.com>
32931
32932 PR target/69305
32933 * config/aarch64/aarch64-modes.def (CC_Cmode): New
32934 * config/aarch64/aarch64-protos.h: Update.
32935 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
32936 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
32937 (aarch64_get_condition_code_1): Handle CC_Cmode.
32938 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
32939 (*add<mode>3_compareC_cconly_imm): New.
32940 (*add<mode>3_compareC_cconly): New.
32941 (*add<mode>3_compareC_imm): New.
32942 (add<mode>3_compareC): New.
32943 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
32944 to be first. Use aarch64_carry_operation.
32945 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
32946 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
32947 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
32948 (subti3): Use subdi3_compare1.
32949 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
32950 (sub<mode>3_compare1): New.
32951 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
32952 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
32953 (*subsi3_carryin_uxtw): Likewise.
32954 (*ngc<mode>, *ngcsi_uxtw): Likewise.
32955 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
32956 * config/aarch64/iterators.md (DWI): New.
32957 * config/aarch64/predicates.md (aarch64_carry_operation): New.
32958 (aarch64_borrow_operation): New.
32959
32960 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
32961
32962 * graphite-optimize-isl.c (optimize_isl): Print a different debug
32963 message when isl does not return a valid schedule.
32964
32965 2016-01-28 Sebastian Pop <s.pop@samsung.com>
32966
32967 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
32968 Remove comments from class declarations: they are already in the code
32969 close by the defs.
32970
32971 2016-01-28 Sebastian Pop <s.pop@samsung.com>
32972
32973 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
32974 codegen_error_p.
32975 (ternary_op_to_tree): Same.
32976 (unary_op_to_tree): Same.
32977 (nary_op_to_tree): Same.
32978 (gcc_expression_from_isl_expr_op): Same.
32979 (gcc_expression_from_isl_expression): Same.
32980 (graphite_create_new_loop): Same.
32981 (graphite_create_new_loop_guard): Same.
32982 (build_iv_mapping): Same.
32983 (graphite_create_new_guard): Same.
32984 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
32985 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
32986
32987 2016-01-28 Sebastian Pop <s.pop@samsung.com>
32988
32989 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
32990 instead of setting codegen_error to fail codegen.
32991
32992 2016-01-28 Jason Merrill <jason@redhat.com>
32993
32994 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
32995
32996 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
32997
32998 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
32999 Remove CONST_INT_P check in CCMP cost calculation.
33000
33001 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
33002
33003 * config/aarch64/aarch64.c (generic_vector_cost):
33004 Set vec_permute_cost.
33005 (cortexa57_vector_cost): Likewise.
33006 (exynosm1_vector_cost): Likewise.
33007 (xgene1_vector_cost): Likewise.
33008 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
33009 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
33010 Add vec_permute_cost entry.
33011
33012 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
33013
33014 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
33015 immediate as %1.
33016 (add<mode>3_compare0): Likewise.
33017 (addsi3_compare0_uxtw): Likewise.
33018 (add<mode>3nr_compare0): Likewise.
33019 (compare_neg<mode>): Likewise.
33020 (<optab><mode>3): Likewise.
33021
33022 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
33023
33024 * tree-vect-stmts.c (vectorizable_comparison): Add
33025 NULL check for vectype.
33026
33027 2016-01-28 Richard Biener <rguenther@suse.de>
33028
33029 PR tree-optimization/69466
33030 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
33031 Account for PHIs we couldn't duplicate.
33032
33033 2016-01-28 Martin Liska <mliska@suse.cz>
33034
33035 PR pch/68758
33036 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
33037 instead of ENABLE_VALGRIND_CHECKING.
33038
33039 2016-01-27 Richard Henderson <rth@redhat.com>
33040
33041 PR rtl-opt/69447
33042 * lra-remat.c (subreg_regs): New.
33043 (dump_candidates_and_remat_bb_data): Dump it.
33044 (operand_to_remat): Reject if operand in subreg_regs.
33045 (set_bb_regs): Collect subreg_regs.
33046 (lra_remat): Init and free subreg_regs. Compute
33047 calculate_local_reg_remat_bb_data before create_cands.
33048
33049 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
33050
33051 PR target/68986
33052 * config/i386/i386.c (ix86_update_stack_boundary): Don't
33053 change stack_alignment_needed for __tls_get_addr call.
33054
33055 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
33056
33057 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
33058
33059 2016-01-27 Jeff Law <law@redhat.com>
33060
33061 PR tree-optimization/68398
33062 PR tree-optimization/69196
33063 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
33064 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
33065 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
33066 Only count PHIs in the last block in the path. The others will
33067 const/copy propagate away. Add heuristic to allow more irreducible
33068 subloops to be created when it is likely profitable to do so.
33069
33070 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
33071 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
33072 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
33073
33074 2016-01-27 Jakub Jelinek <jakub@redhat.com>
33075
33076 PR lto/69254
33077 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
33078 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
33079 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
33080 * tree-streamer-in.c: Include asan.h.
33081 (streamer_get_builtin_tree): For builtins in sanitizer
33082 range call initialize_sanitizer_builtins and retry.
33083
33084 2016-01-27 Ian Lance Taylor <iant@google.com>
33085
33086 * common.opt (fkeep-gc-roots-live): New undocumented option.
33087 * tree-ssa-loop-ivopts.c (add_candidate_1): If
33088 -fkeep-gc-roots-live, skip pointers.
33089 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
33090 NULL.
33091
33092 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
33093
33094 PR target/69512
33095 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
33096 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
33097
33098 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
33099
33100 PR target/68380
33101 * configure.ac: NetBSD provides SSP in its C library.
33102 * configure: Updated.
33103
33104 2016-01-27 Richard Biener <rguenther@suse.de>
33105
33106 PR tree-optimization/69166
33107 * tree-vect-loop.c (vect_is_simple_reduction): Always check
33108 reduction code for commutativity / associativity.
33109
33110 2016-01-27 Martin Jambor <mjambor@suse.cz>
33111
33112 PR tree-optimization/69355
33113 * tree-sra.c (analyze_access_subtree): Correct hole detection when
33114 total_scalarization fails.
33115
33116 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
33117
33118 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
33119 power9.
33120
33121 2016-01-27 Christian Bruel <christian.bruel@st.com>
33122
33123 PR target/69245
33124 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
33125 Move arm_reset_previous_fndecl and set_target_option_current_node in
33126 the conditional part. Call save_restore_target_globals.
33127 * config/arm/arm.c (arm_set_current_function):
33128 Refactor to better support #pragma target and attribute mix.
33129 Call save_restore_target_globals.
33130 * config/arm/arm-protos.h (save_restore_target_globals): New function.
33131
33132 2016-01-27 Martin Liska <mliska@suse.cz>
33133
33134 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
33135 reference for an HSA kernel and its host function.
33136
33137 2016-01-27 Jakub Jelinek <jakub@redhat.com>
33138
33139 PR tree-optimization/69399
33140 * wide-int.h (wi::lrshift): For larger precisions, only
33141 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
33142
33143 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
33144
33145 * config/arc/predicates.md (proper_comparison_operator): Reject
33146 constant-constant comparison.
33147
33148 2016-01-26 Tom de Vries <tom@codesourcery.com>
33149
33150 PR tree-optimization/69110
33151 * tree-data-ref.c (initialize_data_dependence_relation): Handle
33152 DR_NUM_DIMENSIONS == 0.
33153
33154 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
33155 Sebastian Pop <s.pop@samsung.com>
33156
33157 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
33158 isl_ast_op_cond and isl_ast_op_select.
33159 (gcc_expression_from_isl_expr_op): Same.
33160
33161 2016-01-26 Jason Merrill <jason@redhat.com>
33162
33163 PR c++/68782
33164 * tree.c (recompute_constructor_flags): Split out from
33165 build_constructor.
33166 (verify_constructor_flags): New.
33167 * tree.h: Declare them.
33168
33169 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
33170
33171 PR rtl-optimization/69217
33172 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
33173 are no TYPE_FIELDS set for the record type.
33174
33175 2016-01-26 Jakub Jelinek <jakub@redhat.com>
33176
33177 PR target/68662
33178 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
33179 toc_label_name unconditionally.
33180 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
33181 SYMBOL_REF string. Use toc_label_name instead of constructing
33182 LCTOC1.
33183 (rs6000_elf_declare_function_name): Use toc_label_name instead of
33184 constructing LCTOC1.
33185
33186 2016-01-26 Martin Sebor <msebor@redhat.com>
33187
33188 PR other/69477
33189 * doc/extend.texi (Common Type Attributes): Move text that talks about
33190 attribute packed from attribute aligned to the section discussing
33191 the former attribute for clarity.
33192
33193 2016-01-26 Richard Henderson <rth@redhat.com>
33194
33195 PR middle-end/60908
33196 * trans-mem.c (tm_region_init): Mark entry block as visited.
33197
33198 2016-01-26 David Malcolm <dmalcolm@redhat.com>
33199
33200 PR other/69006
33201 * diagnostic-show-locus.c (layout::print_source_line): Replace
33202 call to pp_newline with call to layout::print_newline.
33203 (layout::print_annotation_line): Likewise.
33204 (layout::move_to_column): Likewise.
33205 (layout::print_any_fixits): After printing any fixits, print a
33206 trailing newline, if necessary.
33207 (layout::print_newline): New method, resetting any colorization
33208 before a newline.
33209 (diagnostic_show_locus): Move the pp_newline to before the
33210 early bailout. Remove dummy block enclosing the layout instance.
33211 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
33212 of pp_newline_and_flush with pp_flush.
33213 (diagnostic_append_note): Delete use of pp_newline.
33214 (diagnostic_append_note_at_rich_loc): Delete.
33215 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
33216 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
33217 when newline characters are added to the buffer.
33218
33219 2016-01-26 Michael Matz <matz@suse.de>
33220
33221 * configure.ac (ac_cv_std_swap_in_utility): New test.
33222 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
33223 * configure: Regenerate.
33224 * config.in: Regenerate.
33225
33226 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
33227
33228 * config/arc/arc.md (cstoresi4): Force operand into register.
33229 (arcset<code>): Fix predicate.
33230 (arcsetltu): Likewise.
33231 (arcsetgeu): Likewise.
33232 (arcsethi): Likewise.
33233 (arcsetls): Likewise.
33234
33235 2016-01-26 Jakub Jelinek <jakub@redhat.com>
33236
33237 PR tree-optimization/69483
33238 * gimple-fold.c (canonicalize_constructor_val): Return NULL
33239 if base has error_mark_node type.
33240
33241 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
33242
33243 PR target/68620
33244 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
33245 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
33246 New helper macros.
33247 (vget_lane_f16): Handle big-endian.
33248 (vgetq_lane_f16): Likewise.
33249 (vset_lane_f16): Likewise.
33250 (vsetq_lane_f16): Likewise.
33251 * config/arm/iterators.md (VQXMOV): Add V8HF.
33252 (VDQ): Add V4HF and V8HF.
33253 (V_reg): Handle V4HF and V8HF.
33254 (Is_float_mode): Likewise.
33255 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
33256 neon_vdup_nv8hf): New patterns.
33257 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
33258 Use VD_LANE iterator.
33259 (neon_vld1_dup<mode>): Use VQ2 iterator.
33260
33261 2016-01-26 Nathan Sidwell <nathan@acm.org>
33262
33263 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
33264 (set_oacc_fn_attrib): Add IS_KERNEL arg.
33265 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
33266 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
33267 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
33268 (oacc_validate_dims): Add LEVEL arg, don't return level.
33269 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
33270 oacc_validate_dims.
33271 (execute_oacc_device_lower): Adjust, add more dump output.
33272 * tree-ssa-loop.c (gate_oacc_kernels): Use
33273 oacc_fn_attrib_kernels_p.
33274 * tree-parloops.c (create_parallel_loop): Adjust
33275 set_oacc_fn_attrib call.
33276
33277 2016-01-26 Jakub Jelinek <jakub@redhat.com>
33278
33279 PR lto/69254
33280 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
33281 (append_compiler_options): Handle -fcilkplus.
33282 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
33283
33284 2016-01-26 Nick Clifton <nickc@redhat.com>
33285
33286 PR target/66655
33287 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
33288 been marked as DECL_ONE_ONLY but we do not the means to make it
33289 so, then do not allow it to bind locally.
33290
33291 2016-01-26 Jakub Jelinek <jakub@redhat.com>
33292
33293 PR lto/69254
33294 * opts.h (parse_sanitizer_options): New prototype.
33295 * opts.c (sanitizer_opts): New array.
33296 (parse_sanitizer_options): New function.
33297 (common_handle_option): Use parse_sanitizer_options.
33298
33299 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
33300
33301 PR target/68986
33302 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
33303 alignment adjustment to ...
33304 (ix86_update_stack_boundary): Here. Don't over-align stack for
33305 __tls_get_addr.
33306 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
33307 if __tls_get_addr is called.
33308
33309 2016-01-26 Christian Bruel <christian.bruel@st.com>
33310
33311 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
33312
33313 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
33314
33315 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
33316
33317 2016-01-26 Richard Biener <rguenther@suse.de>
33318
33319 PR middle-end/69467
33320 * match.pd: Guard X * CST CMP 0 pattern with single_use.
33321
33322 2016-01-26 Richard Biener <rguenther@suse.de>
33323
33324 PR tree-optimization/69452
33325 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
33326 (move_computations_dom_walker::before_dom_children): Rename
33327 to ...
33328 (move_computations_worker): This.
33329 (move_computations): Perform an RPO rather than a DOM walk.
33330
33331 2016-01-26 Jakub Jelinek <jakub@redhat.com>
33332
33333 PR target/69442
33334 * combine.c (combine_instructions): For REG_EQUAL note with
33335 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
33336 to the underlying register.
33337 * doc/rtl.texi (REG_EQUAL): Document the behavior of
33338 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
33339
33340 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
33341
33342 PR target/67896
33343 * config/aarch64/aarch64-builtins.c
33344 (aarch64_init_simd_builtin_types): Do not set structural
33345 equality to __Poly{8,16,64,128}_t types.
33346
33347 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
33348
33349 PR tree-optimization/69400
33350 * wide-int.cc (wi_pack): Take the precision as argument and
33351 perform canonicalization here rather than in the callers.
33352 Use the main loop to handle all full-width HWIs. Add a
33353 zero HWI if in_len isn't a full result.
33354 (wi::divmod_internal): Update accordingly.
33355 (wi::mul_internal): Likewise. Simplify.
33356
33357 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
33358 Sebastian Pop <s.pop@samsung.com>
33359
33360 * graphite-poly.c (apply_poly_transforms): Simplify.
33361 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
33362 (print_isl_map): Same.
33363 (print_isl_union_map): Same.
33364 (print_isl_schedule): New.
33365 (debug_isl_schedule): New.
33366 * graphite-dependences.c (scop_get_reads): Do not call
33367 isl_union_map_add_map that is undocumented isl functionality.
33368 (scop_get_must_writes): Same.
33369 (scop_get_may_writes): Same.
33370 (scop_get_original_schedule): Remove.
33371 (scop_get_dependences): Do not call isl_union_map_compute_flow that
33372 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
33373 (compute_deps): Remove.
33374 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
33375 (debug_schedule_ast): New.
33376 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
33377 set_separate_option.
33378 (graphite_regenerate_ast_isl): Add dump.
33379 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
33380 from scop->transformed_schedule.
33381 (graphite_regenerate_ast_isl): Add more dump.
33382 * graphite-optimize-isl.c (optimize_isl): Set
33383 scop->transformed_schedule. Check whether schedules are equal.
33384 (apply_poly_transforms): Move here.
33385 * graphite-poly.c (apply_poly_transforms): ... from here.
33386 (free_poly_bb): Static.
33387 (free_scop): Static.
33388 (pbb_number_of_iterations_at_time): Remove.
33389 (print_isl_ast): New.
33390 (debug_isl_ast): New.
33391 (debug_scop_pbb): New.
33392 * graphite-scop-detection.c (print_edge): Move.
33393 (print_sese): Move.
33394 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
33395 (build_scop_scattering): Remove.
33396 (create_pw_aff_from_tree): Assert instead of bailing out.
33397 (add_condition_to_pbb): Remove unused code, do not fail.
33398 (add_conditions_to_domain): Same.
33399 (add_conditions_to_constraints): Remove.
33400 (build_scop_context): New.
33401 (add_iter_domain_dimension): New.
33402 (build_iteration_domains): Initialize pbb->iterators.
33403 Call add_conditions_to_domain.
33404 (nested_in): New.
33405 (loop_at): New.
33406 (index_outermost_in_loop): New.
33407 (index_pbb_in_loop): New.
33408 (outermost_pbb_in): New.
33409 (add_in_sequence): New.
33410 (add_outer_projection): New.
33411 (outer_projection_mupa): New.
33412 (add_loop_schedule): New.
33413 (build_schedule_pbb): New.
33414 (build_schedule_loop): New.
33415 (embed_in_surrounding_loops): New.
33416 (build_schedule_loop_nest): New.
33417 (build_original_schedule): New.
33418 (build_poly_scop): Call build_original_schedule.
33419 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
33420 (free_poly_dr): Remove.
33421 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
33422 (free_poly_bb): Remove.
33423 (debug_loop_vec): Remove.
33424 (print_isl_ast): Declare.
33425 (debug_isl_ast): Declare.
33426 (scop_do_interchange): Remove.
33427 (scop_do_strip_mine): Remove.
33428 (scop_do_block): Remove.
33429 (flatten_all_loops): Remove.
33430 (optimize_isl): Remove.
33431 (pbb_number_of_iterations_at_time): Remove.
33432 (debug_scop_pbb): Declare.
33433 (print_schedule_ast): Declare.
33434 (debug_schedule_ast): Declare.
33435 (struct scop): Remove schedule. Add original_schedule,
33436 transformed_schedule.
33437 (free_gimple_poly_bb): Remove.
33438 (print_generated_program): Remove.
33439 (debug_generated_program): Remove.
33440 (unify_scattering_dimensions): Remove.
33441 * sese.c (print_edge): ... here.
33442 (print_sese): ... here.
33443 (debug_edge): ... here.
33444 (debug_sese): ... here.
33445 * sese.h (print_edge): Declare.
33446 (print_sese): Declare.
33447 (dump_edge): Declare.
33448 (dump_sese): Declare.
33449
33450 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
33451 Sebastian Pop <s.pop@samsung.com>
33452
33453 * Makefile.in: Set ISLVER in site.exp.
33454
33455 2016-01-25 Jakub Jelinek <jakub@redhat.com>
33456
33457 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
33458 DECL_VALUE_EXPR of new_var even for the non-array case. Look
33459 through DECL_VALUE_EXPR for expansion.
33460
33461 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
33462
33463 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
33464 the frame info after reload completed.
33465
33466 2016-01-25 Jeff Law <law@redhat.com>
33467
33468 PR tree-optimization/69196
33469 PR tree-optimization/68398
33470 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
33471 tree-ssa-threadupdate.c.
33472 (determine_bb_domination_status): Prototype
33473 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
33474 (determine_bb_domination_status): No longer static.
33475 (valid_jump_thread_path): Remove code to detect characteristics
33476 of the jump thread path not associated with correctness.
33477 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
33478 Correct test for thread path length. Count PHIs for real operands as
33479 statements that need to be copied. Do not count ASSERT_EXPRs.
33480 Look at all the blocks in the thread path. Compute and selectively
33481 filter thread paths based on threading through the latch, threading
33482 a multiway branch or crossing a multiway branch.
33483
33484 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33485
33486 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
33487 decl with __attribute__ ((unused)) annotation.
33488
33489 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
33490
33491 PR target/69421
33492 * tree-vect-stmts.c (vectorizable_condition): Check vectype
33493 of operands is compatible with a statement vectype.
33494
33495 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
33496
33497 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
33498 improve wording for mixed storage order support.
33499
33500 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
33501
33502 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
33503 (vcvt_u64_f64): Likewise.
33504 (vcvta_s64_f64): Likewise.
33505 (vcvta_u64_f64): Likewise.
33506 (vcvtm_s64_f64): Likewise.
33507 (vcvtm_u64_f64): Likewise.
33508 (vcvtn_s64_f64): Likewise.
33509 (vcvtn_u64_f64): Likewise.
33510 (vcvtp_s64_f64): Likewise.
33511 (vcvtp_u64_f64): Likewise.
33512
33513 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
33514
33515 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
33516 (arc_init): Check validity mll64 option.
33517 (arc_save_restore): Use double load/store instruction.
33518 (arc_expand_movmem): Likewise.
33519 (arc_split_move): Don't split if we have double load/store
33520 instructions. Returns a boolean.
33521 (arc_process_double_reg_moves): Change function to return boolean
33522 instead of a sequence of instructions.
33523 (arc_dwarf_register_span): New function.
33524 * config/arc/arc-protos.h (arc_split_move): Change prototype.
33525 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
33526 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
33527 (*movdf_insn): Likewise.
33528 * config/arc/arc.opt (mll64): New option.
33529 * config/arc/predicates.md (even_register_operand): New predicate.
33530 * doc/invoke.texi (ARC Options): Add mll64 documentation.
33531
33532 2016-01-25 Richard Biener <rguenther@suse.de>
33533
33534 PR lto/69393
33535 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
33536 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
33537 DECL_NAMELESS.
33538 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
33539
33540 2016-01-25 Richard Biener <rguenther@suse.de>
33541
33542 PR tree-optimization/69376
33543 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
33544 flag.
33545 (VN_INFO_ANTI_RANGE_P): New inline.
33546 (VN_INFO_RANGE_TYPE): Likewise.
33547 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
33548 SSA_NAME_ANTI_RANGE_P.
33549 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
33550 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
33551 Properly query VN_INFO_RANGE_TYPE.
33552
33553 2016-01-25 Nick Clifton <nickc@redhat.com>
33554
33555 PR target/66655
33556 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
33557
33558 2016-01-23 Tom de Vries <tom@codesourcery.com>
33559
33560 PR tree-optimization/69426
33561 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
33562 removed clobber.
33563
33564 2016-01-23 Jakub Jelinek <jakub@redhat.com>
33565
33566 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
33567 "the the" with "the" in the comments.
33568 * ipa-devirt.c (build_type_inheritance_graph,
33569 update_type_inheritance_graph): Likewise.
33570 * tree.c (build_function_type_list_1): Likewise.
33571 * cfgloopmanip.c (scale_loop_profile): Likewise.
33572 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
33573 * gimple-ssa-split-paths.c
33574 (find_block_to_duplicate_for_splitting_paths): Likewise.
33575 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
33576 * expr.c (convert_move): Likewise.
33577 * var-tracking.c (vt_stack_adjustments): Likewise.
33578 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
33579 * tree-vrp.c (test_for_singularity): Likewise.
33580
33581 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
33582 directly instead of building a temporary tree.
33583
33584 PR bootstrap/69434
33585 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
33586 remove <algorithm> include.
33587
33588 2016-01-22 Jakub Jelinek <jakub@redhat.com>
33589
33590 PR target/69432
33591 * config/i386/i386.c: Include dojump.h.
33592 (expand_small_movmem_or_setmem,
33593 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
33594 fixes.
33595 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
33596 if dynamic_check != -1.
33597
33598 2016-01-21 Jeff Law <law@redhat.com>
33599
33600 PR middle-end/69347
33601 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
33602 record_temporary_equivalences. Rewritten to avoid unnecessary calls
33603 into dominated_by_p.
33604 (cprop_into_successor_phis): Avoid unnecessary tests.
33605
33606 2016-01-22 Richard Henderson <rth@redhat.com>
33607
33608 PR target/69416
33609 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
33610 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
33611
33612 2016-01-22 Michael Matz <matz@suse.de>
33613
33614 * system.h (string, algorithm): Include only conditionally.
33615 (new): Include always under C++.
33616 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
33617 * final.c (toplevel): Ditto.
33618 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
33619 * genconditions.c (write_header): Make gencondmd.c define
33620 INCLUDE_STRING.
33621 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
33622
33623 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
33624 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
33625
33626 2016-01-22 Christian Bruel <christian.bruel@st.com>
33627
33628 PR target/68674
33629 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
33630
33631 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33632
33633 PR target/69403
33634 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
33635 define_insn_and_split. Ensure operands[1] and operands[0] do not
33636 get assigned the same register.
33637
33638 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
33639
33640 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
33641
33642 2016-01-22 Christian Bruel <christian.bruel@st.com>
33643
33644 * config/arm/arm-c.c (arm_pragma_target_parse):
33645 Remove warn_builtin_macro_redefined overwrite.
33646
33647 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
33648
33649 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
33650 flag_non_call_exceptions compatibility.
33651
33652 2016-01-22 Jakub Jelinek <jakub@redhat.com>
33653
33654 PR debug/66668
33655 * dwarf2out.c (add_child_die_after): New function.
33656 (dwarf_qual_info_t): New type.
33657 (dwarf_qual_info): New variable.
33658 (qualified_die_p): New function.
33659 (modified_type_die): For -fdebug-types-section, ensure
33660 canonical order of qualifiers. Put qualified DIEs adjacent
33661 to the corresponding non-qualified type DIE and search there
33662 for existing qualified DIEs.
33663
33664 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
33665
33666 * doc/extend.texi (scalar_storage_order type attribute): Document
33667 restriction on type punning and aliasing, and remove future tense.
33668
33669 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
33670
33671 PR target/69252
33672 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
33673 first stage.
33674
33675 2016-01-21 Jeff Law <law@redhat.com>
33676
33677 PR middle-end/69347
33678 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
33679 useless call to record_temporary_equivalences.
33680 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
33681 allocate 10 slots in the bb_path vector and let it grow as needed.
33682 (fsm_find_control_statement_thread_paths): Similarly for the next_path
33683 vector.
33684
33685 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
33686
33687 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
33688 Detangle.
33689 * configure: Regenerate.
33690
33691 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
33692
33693 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
33694 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
33695
33696 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
33697
33698 PR middle-end/66178
33699 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
33700 drop EXPAND_INITIALIZER.
33701 * rtl.h (contains_symbolic_reference_p): Declare.
33702 * rtlanal.c (contains_symbolic_reference_p): New function.
33703 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
33704 a subtraction into a NOT if symbolic constants are involved.
33705
33706 2016-01-21 Anton Blanchard <anton@samba.org>
33707 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33708
33709 PR target/63354
33710 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
33711 #define.
33712 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
33713 function.
33714
33715 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
33716
33717 * config/microblaze/microblaze.c
33718 (get_branch_target): New.
33719 (insert_wic_for_ilb_runout): New.
33720 (insert_wic): New.
33721 (microblaze_machine_dependent_reorg): New.
33722 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
33723 * config/microblaze/microblaze.md
33724 (UNSPEC_IPREFETCH): Define.
33725 (iprefetch): New pattern
33726 * config/microblaze/microblaze.opt
33727 (mxl-prefetch): New flag.
33728
33729 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
33730
33731 * config/microblaze/microblaze.h
33732 (FIXED_REGISTERS): Update in macro.
33733 (CALL_USED_REGISTERS): Update in macro.
33734
33735 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
33736
33737 PR rtl-optimization/68920
33738 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
33739 moves.
33740
33741 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
33742
33743 PR rtl-optimization/68990
33744 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
33745 pseudo instead of inheritance ones.
33746
33747 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
33748 Nick Clifton <nickc@redhat.com>
33749
33750 PR target/69129
33751 PR target/69012
33752 * config/mips/mips.c (mips_compute_frame_info): Initialise
33753 args_size and hard_frame_pointer_offset fields of the frame
33754 structure before calling mips_global_pointer.
33755
33756 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
33757
33758 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
33759 label reference.
33760 * configure: Regenerate.
33761
33762 2016-01-21 Richard Biener <rguenther@suse.de>
33763
33764 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
33765
33766 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
33767
33768 * config/s390/s390.c (s390_asm_declare_function_size): Add code
33769 to actually emit the .size directive.
33770
33771 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
33772 Jakub Jelinek <jakub@redhat.com>
33773
33774 PR target/69187
33775 PR target/65624
33776 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
33777 args array size by one to avoid buffer overflow.
33778
33779 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
33780
33781 * config/s390/s390.md (pool_section_start): Use switch_to_section
33782 to select proper read-only data section instead of hardcoding
33783 .rodata.
33784 (pool_section_end): Use switch_to_section to match the above.
33785
33786 2016-01-21 Richard Biener <rguenther@suse.de>
33787
33788 PR tree-optimization/69378
33789 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
33790 (set_ssa_val_to): Use it for dominance checks taking into
33791 account not executable edges.
33792
33793 2016-01-21 Jakub Jelinek <jakub@redhat.com>
33794
33795 PR c++/69355
33796 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
33797 for bitsize instead of GET_MODE_PRECISION (mode).
33798
33799 2016-01-20 Martin Sebor <msebor@redhat.com>
33800
33801 PR c/52291
33802 * extend.texi (__sync Builtins): Clarify the semantics of
33803 __sync_fetch_and_OP built-ins on pointers.
33804 (__atomic Builtins): Same.
33805
33806 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33807 Sebastian Pop <s.pop@samsung.com>
33808
33809 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
33810 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
33811 (is_valid_rename): Same.
33812 (translate_isl_ast_to_gimple::get_rename): Same.
33813 (translate_isl_ast_to_gimple::rename_all_uses): Same.
33814 (translate_isl_ast_to_gimple::rename_uses): Same.
33815 (get_new_name): Check for close_phi nodes.
33816 (copy_loop_phi_args): Use phi_node_kind.
33817 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
33818 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
33819
33820 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33821 Sebastian Pop <s.pop@samsung.com>
33822
33823 Revert commit r229783.
33824 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
33825 Remove use of parameter_rename_map.
33826 (copy_def): Remove.
33827 (copy_internal_parameters): Remove.
33828 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
33829 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
33830 (free_sese_info): Do not free parameter_rename_map.
33831 (set_rename): Do not use parameter_rename_map.
33832 (rename_uses): Update call to set_rename.
33833 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
33834 * sese.h (parameter_rename_map_t): Remove.
33835 (struct sese_info_t): Remove field parameter_rename_map.
33836
33837 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33838 Sebastian Pop <s.pop@samsung.com>
33839
33840 * graphite-isl-ast-to-gimple.c: Fix comment.
33841 * graphite-scop-detection.c (defined_in_loop_p): New.
33842 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
33843 names defined in loop.
33844
33845 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33846 Sebastian Pop <s.pop@samsung.com>
33847
33848 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
33849 Discard unstructured if-then-else regions.
33850
33851 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33852 Sebastian Pop <s.pop@samsung.com>
33853
33854 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
33855 (cleanup_loop_iter_dom): Remove.
33856 (build_loop_iteration_domains): Remove.
33857 (build_scop_context): Remove.
33858 (build_scop_iteration_domain): Remove.
33859 (add_loop_constraints): New.
33860 (build_iteration_domains): New.
33861 (build_poly_scop): Call build_iteration_domains.
33862
33863 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33864 Sebastian Pop <s.pop@samsung.com>
33865
33866 * graphite-scop-detection.c
33867 (scop_detection::harmful_loop_in_region): Free dom and loops.
33868 (scop_detection::loop_body_is_valid_scop): Free bbs.
33869
33870 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33871 Sebastian Pop <s.pop@samsung.com>
33872
33873 * graphite-scop-detection.c (record_loop_in_sese): New.
33874 (gather_bbs::before_dom_children): Call record_loop_in_sese.
33875 (build_scops): Remove call to build_sese_loop_nests.
33876 * sese.c (sese_record_loop): Remove.
33877 (build_sese_loop_nests): Remove.
33878 (new_sese_info): Remove region->loops.
33879 (free_sese_info): Same.
33880 * sese.h (sese_contains_loop): Same.
33881 (build_sese_loop_nests): Remove.
33882 (sese_contains_loop): Remove.
33883
33884 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33885 Sebastian Pop <s.pop@samsung.com>
33886
33887 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
33888 loop_is_valid_in_scop.
33889 (scop_detection::harmful_stmt_in_region): Renamed
33890 harmful_loop_in_region.
33891 Call loop_is_valid_in_scop.
33892
33893 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33894 Sebastian Pop <s.pop@samsung.com>
33895
33896 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
33897 isl_ast_node_mark.
33898
33899 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33900 Sebastian Pop <s.pop@samsung.com>
33901
33902 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
33903 * graphite.h (struct poly_bb): Remove field is_reduction.
33904 (PBB_IS_REDUCTION): Remove.
33905
33906 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33907 Sebastian Pop <s.pop@samsung.com>
33908
33909 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
33910 (add_pdr_constraints): Same.
33911 (scop_get_reads): Same.
33912 (scop_get_must_writes): Same.
33913 (scop_get_may_writes): Same.
33914 (scop_get_original_schedule): Same.
33915 (extend_schedule): Same.
33916 (apply_schedule_on_deps): Same.
33917 (carries_deps): Same.
33918 (compute_deps): Same.
33919 (scop_get_dependences): Same.
33920 * graphite-isl-ast-to-gimple.c
33921 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
33922 * graphite-optimize-isl.c (get_schedule_for_band): Same.
33923 (get_schedule_for_band_list): Same.
33924 (get_schedule_map): Same.
33925 (apply_schedule_map_to_scop): Same.
33926 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
33927 (build_loop_iteration_domains): Same.
33928 (add_condition_to_pbb): Same.
33929 (add_param_constraints): Same.
33930 (pdr_add_memory_accesses): Same.
33931 (pdr_add_data_dimensions): Same.
33932
33933 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
33934
33935 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
33936 requirements.
33937
33938 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
33939
33940 * common.opt (feliminate-dwarf2-dups): Replace references to
33941 "DWARF 2" with just "DWARF".
33942 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
33943 * doc/extend.texi: Likewise.
33944 * doc/cpp.texi: Likewise.
33945 * doc/invoke.texi: Likewise.
33946 (Option Summary): Add -gdwarf to list of Debugging Options.
33947 (Debugging Options): Document -gdwarf.
33948 * doc/contrib.texi: Spell "DWARF" like that.
33949
33950 2016-01-21 Jakub Jelinek <jakub@redhat.com>
33951
33952 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
33953 warning. Fix up formatting.
33954
33955 PR middle-end/67653
33956 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
33957 attempt to mark memory input operand addressable and
33958 call prepare_gimple_addressable in that case. Don't adjust
33959 input_location for diagnostics, use error_at instead.
33960
33961 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
33962
33963 * config/rs6000/ppc-auxv.h: New file.
33964 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
33965 (cpu_is): Likewise.
33966 (cpu_supports): Likewise.
33967 * config/rs6000/rs6000.c: include "ppc-auxv.h".
33968 (cpu_is_info): New variable.
33969 (cpu_supports_info): Likewise.
33970 (tcb_verification_symbol): Likewise.
33971 (cpu_builtin_p): Likewise.
33972 (cpu_expand_builtin): New function.
33973 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
33974 (rs6000_init_builtins): Likewise.
33975 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
33976 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
33977 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
33978 * configure: Regenerate.
33979 * config.in: Likewise.
33980 * doc/extend.texi (PowerPC Built-in Functions): Document
33981 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
33982
33983 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
33984
33985 PR target/68609
33986 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
33987 domain check.
33988 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
33989 for V4SFmode.
33990
33991 2016-01-20 Richard Henderson <rth@redhat.com>
33992
33993 PR bootstrap/69343
33994 PR bootstrap/69339
33995 PR tree-opt/68964
33996 Revert:
33997 * tree.c (tm_define_builtin): New.
33998 (find_tm_vector_type): New.
33999 (build_tm_vector_builtins): New.
34000 (build_common_builtin_nodes): Call it.
34001
34002 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
34003
34004 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
34005 (arm_fp_ok): Likewise.
34006 (arm_fp): Likewise.
34007 (arm_crypto): Likewise.
34008
34009 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
34010 Richard Biener <rguenther@suse.de>
34011
34012 PR tree-optimization/69328
34013 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
34014 vectors have same number of elements.
34015 (vectorizable_condition): Fix masked version recognition.
34016
34017 2016-01-20 Richard Biener <rguenther@suse.de>
34018
34019 PR tree-optimization/69345
34020 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
34021 (VN_INFO_PTR_INFO): Likewise.
34022 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
34023 info when it is equal between non-dominating SSA names.
34024 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
34025 Make sure to look at original SSA infos.
34026
34027 2016-01-20 Jeff Law <law@redhat.com>
34028
34029 PR target/25114
34030 * config/m68k/predicates.md (pow2_m1_operand): New predicate
34031 extracted from ...
34032 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
34033 (pc_or_label_operand): New predicate.
34034 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
34035 tests for small integers that are 2^n - 1.
34036
34037 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
34038
34039 * doc/invoke.texi (Options Summary): Add '.' after @xref.
34040
34041 2016-01-19 Jeff Law <law@redhat.com>
34042
34043 PR middle-end/69347
34044 * tree-ssa-threadbackwards.c
34045 (fsm_find_control_statement_thread_paths): Do not try to lookup
34046 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
34047
34048 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
34049
34050 * doc/lto.texi: Remove text that says only Gold has linker plugin
34051 support.
34052
34053 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
34054
34055 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
34056 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
34057 the DIE accordingly.
34058 (modified_type_die): Add REVERSE parameter and pass it recursively,
34059 as well as to base_type_die. Adjust presence check accordingly.
34060 (base_type_for_mode): Adjust call to modified_type_die.
34061 (add_type_attribute): Add REVERSE parameter and pass it to
34062 modified_type_die.
34063 (generic_parameter_die): Adjust call to add_type_attribute.
34064 (add_scalar_info): Likewise.
34065 (add_subscript_info): Likewise.
34066 (gen_array_type_die): Likewise.
34067 (gen_descr_array_type_die): Likewise.
34068 (gen_entry_point_die): Likewise.
34069 (gen_enumeration_type_die): Likewise.
34070 (gen_formal_parameter_die): Likewise.
34071 (gen_subprogram_die): Likewise.
34072 (gen_variable_die ): Likewise.
34073 (gen_const_die): Likewise.
34074 (gen_field_die): Likewise.
34075 (gen_pointer_type_die): Likewise.
34076 (gen_reference_type_die): Likewise.
34077 (gen_ptr_to_mbr_type_die): Likewise.
34078 (gen_inheritance_die): Likewise.
34079 (gen_subroutine_type_die): Likewise.
34080 (gen_typedef_die): Likewise.
34081 (force_type_die): Adjust call to modified_type_die.
34082
34083 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
34084
34085 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
34086 flow throughout the file. Fix broken link to Objective-C 2.0
34087 documentation.
34088 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
34089 errors.
34090
34091 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
34092
34093 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
34094
34095 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
34096
34097 PR ipa/66223
34098 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
34099 (maybe_record_node): Record cxa_pure_virtual as the only possible
34100 target if there are not ohter candidates.
34101 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
34102
34103 2016-01-19 Richard Biener <rguenther@suse.de>
34104
34105 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
34106 (get_memory_order): Likewise.
34107
34108 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
34109
34110 * tree-vect-stmts.c (vectorizable_store): Check
34111 rhs vectype.
34112
34113 2016-01-19 David Malcolm <dmalcolm@redhat.com>
34114
34115 PR jit/68446
34116 * gcc.c (driver::decode_argv): Add call to
34117 init_opts_obstack before init_options_struct.
34118 * opts.c (init_opts_obstack): Remove idempotency.
34119 (init_options_struct): Replace call to init_opts_obstack
34120 with a gcc_assert to verify that it has already been called.
34121 * toplev.c (toplev::main): Add call to init_opts_obstack before
34122 calls to init_options_struct.
34123 (toplev::finalize): Move cleanup of opts_obstack next to
34124 cleanup of save_decoded_options, clearing the latter, and
34125 save_decoded_options_count.
34126
34127 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34128
34129 PR target/69135
34130 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
34131 attribute to unconditional. Remove %? from output template.
34132
34133 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
34134 Jiong Wang <jiong.wang@arm.com>
34135
34136 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
34137 generated from different expand order.
34138
34139 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
34140
34141 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
34142 Add support for CCMP costing.
34143
34144 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
34145
34146 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
34147 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
34148 (fccmpe<mode>): Likewise.
34149 (fcmp): Rename to fcmp and globalize pattern.
34150 (fcmpe): Likewise.
34151 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
34152 (aarch64_gen_ccmp_next): Add FP support.
34153
34154 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
34155
34156 * target.def (gen_ccmp_first): Update documentation.
34157 (gen_ccmp_next): Likewise.
34158 * doc/tm.texi (gen_ccmp_first): Update documentation.
34159 (gen_ccmp_next): Likewise.
34160 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
34161 expand_ccmp_expr_1. Improve comments.
34162 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
34163 (ccmp_ior<mode>): Remove pattern.
34164 (cmp<mode>): Remove expand.
34165 (cmp): Globalize pattern.
34166 (cstorecc4): Use cc_register.
34167 (mov<mode>cc): Remove ccmp_cc_register check.
34168 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
34169 Simplify after removal of CC_DNE/* modes.
34170 (aarch64_ccmp_mode_to_code): Remove.
34171 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
34172 In 'k' case use integer as condition.
34173 (aarch64_nzcv_codes): Remove inverted cases.
34174 (aarch64_code_to_ccmode): Remove.
34175 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
34176 comparison with CC register to be used in folowing CCMP/branch/CSEL.
34177 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
34178 pattern. Return the comparison with CC register. Invert conditions
34179 when bitcode is OR.
34180 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
34181 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
34182
34183 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
34184
34185 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
34186 instrumented_version.
34187
34188 2016-01-19 Richard Biener <rguenther@suse.de>
34189
34190 PR tree-optimization/69336
34191 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
34192 handled components with get_ref_base_and_extent.
34193 (equal_mem_array_ref_p): Adjust.
34194
34195 2016-01-19 Jakub Jelinek <jakub@redhat.com>
34196
34197 PR debug/65779
34198 * shrink-wrap.c: Include valtrack.h.
34199 (move_insn_for_shrink_wrap): Add DEBUG argument. If
34200 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
34201 in between insn and where it will be moved to. Call
34202 dead_debug_insert_temp.
34203 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
34204 first and dead_debug_local_finish at the end.
34205 For uses and defs bitmap, handle all regs in between REGNO and
34206 END_REGNO, not just the first one.
34207
34208 2016-01-19 Richard Biener <rguenther@suse.de>
34209
34210 PR tree-optimization/69352
34211 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
34212 (equal_mem_array_ref_p): Constrain size and max size properly.
34213 Compare the reverse flag.
34214
34215 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
34216
34217 * ira.c (ira): Update regstat data if we deleted insns.
34218
34219 2016-01-19 Jakub Jelinek <jakub@redhat.com>
34220
34221 PR rtl-optimization/68955
34222 PR rtl-optimization/64557
34223 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
34224 here. Fix up formatting.
34225 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
34226
34227 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
34228
34229 PR lto/69133
34230 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
34231 assume that the node has body.
34232 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
34233 check.
34234
34235 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
34236
34237 * lto-streamer-out.c (lto_output): Do not stream instrumentation
34238 thunks.
34239
34240 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
34241
34242 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
34243 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
34244
34245 2016-01-19 Martin Jambor <mjambor@suse.cz>
34246 Martin Liska <mliska@suse.cz>
34247 Michael Matz <matz@suse.de>
34248
34249 * Makefile.in (OBJS): Add new source files.
34250 (GTFILES): Add hsa.c.
34251 * common.opt (disable_hsa): New variable.
34252 (-Whsa): New warning.
34253 * config.in (ENABLE_HSA): New.
34254 * configure.ac: Treat hsa differently from other accelerators.
34255 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
34256 $enable_offloading.
34257 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
34258 * doc/install.texi (Configuration): Document --with-hsa-runtime,
34259 --with-hsa-runtime-include, --with-hsa-runtime-lib and
34260 --with-hsa-kmt-lib.
34261 * doc/invoke.texi (-Whsa): Document.
34262 (hsa-gen-debug-stores): Likewise.
34263 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
34264 to invoke offload compiler for hsa acclerator.
34265 * opts.c (common_handle_option): Determine whether HSA offloading
34266 should be performed.
34267 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
34268 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
34269 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
34270 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
34271 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
34272 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
34273 GF_OMP_FOR_KIND_GRID_LOOP.
34274 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
34275 (pp_gimple_stmt_1): Likewise.
34276 * gimple-walk.c (walk_gimple_stmt): Likewise.
34277 * gimple.c (gimple_build_omp_grid_body): New function.
34278 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
34279 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
34280 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
34281 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
34282 GF_OMP_TEAMS_GRID_PHONY.
34283 (gimple_statement_omp_single_layout): Updated comments.
34284 (gimple_build_omp_grid_body): New function.
34285 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
34286 (gimple_omp_for_grid_phony): New function.
34287 (gimple_omp_for_set_grid_phony): Likewise.
34288 (gimple_omp_parallel_grid_phony): Likewise.
34289 (gimple_omp_parallel_set_grid_phony): Likewise.
34290 (gimple_omp_teams_grid_phony): Likewise.
34291 (gimple_omp_teams_set_grid_phony): Likewise.
34292 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
34293 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
34294 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
34295 (BUILT_IN_GOMP_TARGET): Updated type.
34296 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
34297 (adjust_for_condition): New function.
34298 (get_omp_for_step_from_incr): Likewise.
34299 (extract_omp_for_data): Moved parts to adjust_for_condition and
34300 get_omp_for_step_from_incr.
34301 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
34302 (fixup_child_record_type): Bail out if receiver_decl is NULL.
34303 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
34304 (scan_omp_parallel): Do not create child functions for phony
34305 constructs.
34306 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
34307 (scan_omp_1_op): Checking assert we are not remapping to
34308 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
34309 (parallel_needs_hsa_kernel_p): New function.
34310 (expand_parallel_call): Register apprpriate parallel child
34311 functions as HSA kernels.
34312 (grid_launch_attributes_trees): New type.
34313 (grid_attr_trees): New variable.
34314 (grid_create_kernel_launch_attr_types): New function.
34315 (grid_insert_store_range_dim): Likewise.
34316 (grid_get_kernel_launch_attributes): Likewise.
34317 (get_target_argument_identifier_1): Likewise.
34318 (get_target_argument_identifier): Likewise.
34319 (get_target_argument_value): Likewise.
34320 (push_target_argument_according_to_value): Likewise.
34321 (get_target_arguments): Likewise.
34322 (expand_omp_target): Call get_target_arguments instead of looking
34323 up for teams and thread limit.
34324 (grid_expand_omp_for_loop): New function.
34325 (grid_arg_decl_map): New type.
34326 (grid_remap_kernel_arg_accesses): New function.
34327 (grid_expand_target_kernel_body): New function.
34328 (expand_omp): Call it.
34329 (lower_omp_for): Do not emit phony constructs.
34330 (lower_omp_taskreg): Do not emit phony constructs but create for them
34331 a temporary variable receiver_decl.
34332 (lower_omp_taskreg): Do not emit phony constructs.
34333 (lower_omp_teams): Likewise.
34334 (lower_omp_grid_body): New function.
34335 (lower_omp_1): Call it.
34336 (grid_reg_assignment_to_local_var_p): New function.
34337 (grid_seq_only_contains_local_assignments): Likewise.
34338 (grid_find_single_omp_among_assignments_1): Likewise.
34339 (grid_find_single_omp_among_assignments): Likewise.
34340 (grid_find_ungridifiable_statement): Likewise.
34341 (grid_target_follows_gridifiable_pattern): Likewise.
34342 (grid_remap_prebody_decls): Likewise.
34343 (grid_copy_leading_local_assignments): Likewise.
34344 (grid_process_kernel_body_copy): Likewise.
34345 (grid_attempt_target_gridification): Likewise.
34346 (grid_gridify_all_targets_stmt): Likewise.
34347 (grid_gridify_all_targets): Likewise.
34348 (execute_lower_omp): Call grid_gridify_all_targets.
34349 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
34350 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
34351 (tree_omp_clause): Added union field dimension.
34352 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
34353 * tree.c (omp_clause_num_ops): Added number of arguments of
34354 OMP_CLAUSE__GRIDDIM_.
34355 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
34356 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
34357 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
34358 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
34359 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
34360 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
34361 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
34362 * tree-pass.h (make_pass_gen_hsail): Declare.
34363 (make_pass_ipa_hsa): Likewise.
34364 * ipa-hsa.c: New file.
34365 * lto-section-in.c (lto_section_name): Add hsa section name.
34366 * lto-streamer.h (lto_section_type): Add hsa section.
34367 * timevar.def (TV_IPA_HSA): New.
34368 * hsa-brig-format.h: New file.
34369 * hsa-brig.c: New file.
34370 * hsa-dump.c: Likewise.
34371 * hsa-gen.c: Likewise.
34372 * hsa.c: Likewise.
34373 * hsa.h: Likewise.
34374 * toplev.c (compile_file): Call hsa_output_brig.
34375 * hsa-regalloc.c: New file.
34376
34377 2016-01-18 Jeff Law <law@redhat.com>
34378
34379 PR tree-optimization/69320
34380 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
34381 ranged object, do nothing if the RHS constant is not [0..1].
34382 (optimize_stmt): Comparing a boolean ranged object against a
34383 constant outside [0..1] results in a compile-time constant.
34384
34385 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
34386 test.
34387
34388 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
34389
34390 * doc/invoke.texi (Invoking GCC): Add new section to menu.
34391 (Option Summary): Update to reflect new section and moved options.
34392 (C++ Dialect Options): Move -fstats to new section.
34393 (Debugging Options): Move all dump, statistics, and other GCC
34394 developer options to new section. Rewrite section introduction
34395 and re-order remaining options to put the more basic ones first.
34396 (Optimization Options): Move -fira-verbose and -flto-report* to
34397 new section.
34398 (Developer Options): New section incorporating moved options.
34399 * doc/cppopts.texi (-dM): Update cross-reference.
34400
34401 2016-01-18 Richard Henderson <rth@redhat.com>
34402
34403 PR target/69176
34404 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
34405 operands to pseudo only if CSE is expected. Split long immediate
34406 operands only after reload, and for the stack pointer.
34407 (*add<GPI>3_pluslong): Remove.
34408 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
34409 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
34410 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
34411 (*add<GPI>3 peepholes): New.
34412 (*add<GPI>3 splitters): New.
34413 * config/aarch64/constraints.md (Upl): New.
34414 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
34415
34416 2016-01-18 Richard Biener <rguenther@suse.de>
34417
34418 PR tree-optimization/69297
34419 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
34420 stmt at most once.
34421 (vect_bb_vectorization_profitable_p): Clear visited flag again.
34422
34423 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
34424
34425 PR middle-end/68542
34426 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
34427 of mixind vector and scalar types.
34428 (fold_relational_const): Add handling of vector
34429 comparison with boolean result.
34430 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
34431 comparison of vector operands with boolean result for EQ/NE only.
34432 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
34433 (verify_gimple_cond): Likewise.
34434 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
34435 valid type of VAL.
34436
34437 2016-01-18 Joseph Myers <joseph@codesourcery.com>
34438
34439 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
34440 !TARGET_OCTEON.
34441
34442 2016-01-18 Richard Biener <rguenther@suse.de>
34443
34444 PR middle-end/69308
34445 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
34446
34447 2016-01-18 Tom de Vries <tom@codesourcery.com>
34448
34449 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
34450
34451 2016-01-18 Tom de Vries <tom@codesourcery.com>
34452
34453 * omp-low.c (set_oacc_fn_attrib): Make extern.
34454 * omp-low.h (set_oacc_fn_attrib): Declare.
34455 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
34456 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
34457 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
34458 Add and handle function parameter oacc_kernels_p.
34459 (find_reduc_addr, get_omp_data_i_param): New function.
34460 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
34461 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
34462 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
34463 Calculate dominance info. Skip loops that are not in a kernels region
34464 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
34465 (pass_parallelize_loops::execute): Call parallelize_loops with
34466 oacc_kernels_p argument.
34467 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
34468 New member function.
34469 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
34470 * passes.def: Add argument to pass_parallelize_loops instantation.
34471
34472 2016-01-18 Tom de Vries <tom@codesourcery.com>
34473
34474 * tree-parloops.c (pass_parallelize_loops::execute): Allow
34475 pass_parallelize_loops to be run outside the loop pipeline.
34476
34477 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
34478
34479 * tree-scalar-evolution.c (follow_copies_to_constant): New.
34480 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
34481
34482 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
34483
34484 PR target/63679
34485 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
34486 using get_ref_base_and_extent.
34487 (equal_mem_array_ref_p): New.
34488 (hashable_expr_equal_p): Add call to previous.
34489
34490 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
34491
34492 PR target/63679
34493 * tree-sra.c (disqualified_constants, constant_decl_p): New.
34494 (sra_initialize): Allocate disqualified_constants.
34495 (sra_deinitialize): Free disqualified_constants.
34496 (disqualify_candidate): Update disqualified_constants when appropriate.
34497 (create_access): Scan for constant-pool entries as we go along.
34498 (scalarizable_type_p): Add check against type_contains_placeholder_p.
34499 (maybe_add_sra_candidate): Allow constant-pool entries.
34500 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
34501 (initialize_constant_pool_replacements): New.
34502 (sra_modify_assign): Avoid mangling assignments created by previous,
34503 and don't generate writes into constant pool.
34504 (sra_modify_function_body): Call initialize_constant_pool_replacements.
34505
34506 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
34507
34508 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
34509 andnot instruction.
34510 (scalar_chain::convert_op): Likewise.
34511 * config/i386/i386.md (*andndi3_doubleword): New.
34512
34513 2016-01-18 Richard Biener <rguenther@suse.de>
34514
34515 PR tree-optimization/69170
34516 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
34517 building a vector from scalar results of a pattern stmt.
34518
34519 2016-01-18 Jakub Jelinek <jakub@redhat.com>
34520
34521 * haifa-sched.c (autopref_multipass_init): Work around
34522 -Wmaybe-uninitialized warning.
34523
34524 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
34525
34526 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
34527 against the constant 0.
34528
34529 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34530
34531 PR tree-optimization/68799
34532 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
34533 look up phi candidates in the statement-candidate map.
34534 (phi_add_costs): Likewise.
34535 (record_phi_increments): Likewise.
34536 (phi_incr_cost): Likewise.
34537 (ncd_with_phi): Likewise.
34538 (all_phi_incrs_profitable): Likewise.
34539
34540 2016-01-17 Jakub Jelinek <jakub@redhat.com>
34541
34542 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
34543 -Wmaybe-uninitialized warning.
34544
34545 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
34546
34547 * doc/invoke.texi (Invoking GCC): Add new section to menu.
34548 (Option Summary): Update to reflect new section and moved options.
34549 (C++ Dialect Options): Move -fvtable-verify and related options.
34550 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
34551 and profiling-related options.
34552 (Optimization Options): Move profile generation options and
34553 -fstack-protector and related options.
34554 (Instrumentation Options): New section incorporating moved options.
34555 (Code Generation Options): Move -finstrument-functions and
34556 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
34557
34558 2016-01-16 Tom de Vries <tom@codesourcery.com>
34559
34560 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
34561
34562 2016-01-16 Tom de Vries <tom@codesourcery.com>
34563
34564 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
34565
34566 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
34567
34568 * hash-table.h (hash_table::empty): Turn into an inline wrapper
34569 that checks whether the table is already empty. Rename the
34570 original implementation to...
34571 (hash_table::empty_slot): ...this new private function.
34572
34573 2016-01-15 David Malcolm <dmalcolm@redhat.com>
34574
34575 PR diagnostic/68899
34576 * diagnostic-show-locus.c (layout::print_source_line): Move x
34577 offset of line until after call to
34578 get_line_width_without_trailing_whitespace.
34579
34580 2016-01-15 Jeff Law <law@redhat.com>
34581
34582 PR tree-optimization/69270
34583 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
34584 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
34585 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
34586 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
34587 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
34588 ssa_name_has_boolean_range and constant_boolean_node.
34589
34590 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
34591
34592 PR rtl-optimization/69030
34593 * lra-spills.c (remove_pseudos): Check nrefs and make the function
34594 returning bool.
34595 (spill_pseudos): Delete debug insn for dead pseudo.
34596 (lra_spill): Initiate spill_hard_reg and slots memory separately.
34597
34598 2016-01-15 Jiong Wang <jiong.wang@arm.com>
34599
34600 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
34601 New.
34602 (TYPES_UNOPUS): Likewise.
34603 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
34604 builtin type, from UNOP to UNOPUS.
34605 (lbtruncuv4sf): Likewise.
34606 (lbtruncuv2df): Likewise.
34607 (lrounduv2sf): Likewise.
34608 (lrounduv4sf): Likewise.
34609 (lrounduv2df): Likewise.
34610 (lroundusf): Likewise.
34611 (lroundusf): Likewise.
34612 (lceiluv2sf): Likewise.
34613 (lceiluv4sf): Likewise.
34614 (lceiluv2df): Likewise.
34615 (lceilusf): Likewise.
34616 (lceiludf): Likewise.
34617 (lflooruv2sf): Likewise.
34618 (lflooruv4sf): Likewise.
34619 (lflooruv2df): Likewise.
34620 (lfloorusf): Likewise.
34621 (lfloorudf): Likewise.
34622 (lfrintnuv2sf): Likewise.
34623 (lfrintnuv4sf): Likewise.
34624 (lfrintnuv2df): Likewise.
34625 (lfrintnusf): Likewise.
34626 (lfrintnudf): Likewise.
34627 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
34628 conversion.
34629 (vcvtq_u32_f32): Likewise.
34630 (vcvtq_u64_f64): Likewise.
34631 (vcvta_u32_f32): Likewise.
34632 (vcvtaq_u32_f32): Likewise.
34633 (vcvtaq_u64_f64): Likewise.
34634 (vcvtm_u32_f32): Likewise.
34635 (vcvtmq_u32_f32): Likewise.
34636 (vcvtmq_u64_f64): Likewise.
34637 (vcvtn_u32_f32): Likwise.
34638 (vcvtnq_u32_f32): Likewise.
34639 (vcvtnq_u64_f64): Likewise.
34640 (vcvtp_u32_f32): Likewise.
34641 (vcvtpq_u32_f32): Likewise.
34642 (vcvtpq_u64_f64): Likewise.
34643 (vcvtmd_u64_f64): Likewise.
34644 (vcvtms_u32_f32): Likewise.
34645 (vcvtad_u64_f64): Likewise.
34646 (vcvtas_u32_f32): Likewise.
34647 (vcvtnd_u64_f64): Likewise.
34648 (vcvtns_u32_f32): Likewise.
34649 (vcvtpd_u64_f64): Likewise.
34650 (vcvtps_u32_f32): Likewise.
34651
34652 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34653
34654 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
34655 CSEL of zero_extended registers.
34656
34657 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34658
34659 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
34660 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
34661
34662 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34663
34664 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
34665 false when argument string is not found in the attributes table
34666 at all.
34667
34668 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
34669
34670 PR target/68609
34671 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
34672 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
34673 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
34674 precision estimate.
34675
34676 2016-01-15 Richard Biener <rguenther@suse.de>
34677
34678 PR tree-optimization/66856
34679 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
34680 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
34681 (vect_create_new_slp_node): Increment stmt reference count.
34682 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
34683 an SLP tree before swapping operands.
34684 (vect_build_slp_tree): Likewise.
34685 (destroy_bb_vec_info): Free stmt info after SLP instances.
34686 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
34687 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
34688 (STMT_VINFO_NUM_SLP_USES): New macro.
34689
34690 2016-01-15 Richard Biener <rguenther@suse.de>
34691
34692 PR debug/69137
34693 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
34694 (add_linkage_name): ... here.
34695 (gen_typedef_die): Use add_linkage_name_raw instead of
34696 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
34697 if necessary.
34698
34699 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
34700
34701 * gimplify.c (oacc_default_clause): Decode reference and pointer
34702 types for both kernels and parallel regions.
34703
34704 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
34705
34706 PR middle-end/69246
34707 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
34708
34709 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
34710
34711 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
34712 (convert_scalars_to_vector): Likewise.
34713
34714 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
34715
34716 * doc/extend.texi (Type Traits): Fix grammar.
34717
34718 2016-01-15 Martin Jambor <mjambor@suse.cz>
34719
34720 * tree-inline.c (remap_decl): Use existing dclarations if
34721 remapping a type and prevent_decl_creation_for_types.
34722 (replace_locals_stmt): Do an initial remapping of non-VLA typed
34723 decls first. Do real remapping with
34724 prevent_decl_creation_for_types set.
34725 * tree-inline.h (copy_body_data): New field
34726 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
34727 padding.
34728
34729 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
34730
34731 * config/s390/s390.opt (mmvcle): More verbose help text.
34732
34733 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
34734
34735 * config/s390/s390.opt: Add period to -mzvector option text.
34736
34737 2016-01-15 Richard Biener <rguenther@suse.de>
34738
34739 PR tree-optimization/68961
34740 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
34741 of invariants in stores again.
34742
34743 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
34744
34745 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
34746
34747 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
34748
34749 * config/i386/i386.c (ix86_expand_branch): Don't split
34750 DI mode xor instruction to SI mode.
34751
34752 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
34753
34754 PR ipa/68148
34755 * ipa-icf.c (sem_function::merge): Virtual functions may become
34756 reachable even if they address is not taken and there are no
34757 idrect calls.
34758
34759 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
34760
34761 * lto-streamer-out.c (subtract_estimated_size): New function.
34762 (get_symbol_initial_value): Use it.
34763
34764 2016-01-15 Christian Bruel <christian.bruel@st.com>
34765
34766 PR target/65837
34767 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
34768 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
34769 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
34770 use add_builtin_function_ext_scope instead of add_builtin_function.
34771 (neon_set_p, neon_crypto_set_p): Remove.
34772 (arm_init_builtins): Always call arm_init_neon_builtins and
34773 arm_init_crypto_builtins.
34774 (arm_expand_builtin): Check that builtins are allowed for the arch.
34775 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
34776 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
34777 arm_init_neon_builtins call.
34778
34779 2016-01-15 Richard Biener <rguenther@suse.de>
34780
34781 PR tree-optimization/69117
34782 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
34783 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
34784 of the leader conservatively.
34785 (free_scc_vn): Restore original SSA name infos.
34786
34787 2016-01-14 Jeff Law <law@redhat.com>
34788
34789 PR tree-optimization/69270
34790 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
34791 single bit of precision, verify it's also unsigned.
34792 (record_edge_info): Use constant_boolean_node rather than fold_convert
34793 to convert boolean_true/boolean_false to the right type.
34794
34795 2016-01-14 Richard Henderson <rth@redhat.com>
34796
34797 PR rtl-opt/69014
34798 * loop-doloop.c (record_reg_sets): New.
34799 (doloop_optimize): Reject the transform if the sequence
34800 clobbers registers live at the end of the loop block.
34801 (doloop_optimize_loops): Enable df_live if needed.
34802
34803 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
34804
34805 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
34806 * config/rs6000/rs6000.c: Likewise.
34807 * config/rs6000/rs6000.h: Likewise.
34808 * config/rs6000/rs6000.md: Likewise.
34809 * doc/extend.texi: Likewsie.
34810
34811 2016-01-14 Jeff Law <law@redhat.com>
34812
34813 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
34814 typo.
34815
34816 2016-01-14 Richard Henderson <rth@redhat.com>
34817
34818 PR c/69272
34819 PR tree-opt/68964
34820 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
34821 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
34822 instead of builtin_decl_declared_p to test for declaration.
34823
34824 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
34825
34826 * doc/loop.texi (Loop Analysis and Representation): Document
34827 loop_depth function.
34828
34829 2016-01-14 Tom de Vries <tom@codesourcery.com>
34830
34831 PR tree-optimization/68773
34832 * omp-low.c (expand_omp_target): Don't set force_output.
34833 * varpool.c (varpool_node::get_create): Same.
34834 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
34835 offload_funcs with force_output.
34836
34837 2016-01-14 Jakub Jelinek <jakub@redhat.com>
34838
34839 PR debug/69244
34840 * lra-eliminations.c (move_plus_up): Don't change anything if either
34841 the outer or inner subreg mode is not MODE_INT.
34842 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
34843 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
34844
34845 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
34846
34847 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
34848 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
34849 reduc_uplus_@var{m}): Remove.
34850 * expr.c (expand_expr_real_2): Remove expansion path for
34851 reduc_[us](min|max|plus) optabs.
34852 * optabs-tree.c (scalar_reduc_to_vector): Remove.
34853 * optabs-tree.h (scalar_reduc_to_vector): Remove.
34854 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
34855 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
34856 * tree-vect-loop.c (vectorizable_reduction): Remove test for
34857 reduc_[us](min|max|plus) optabs.
34858
34859 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
34860
34861 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
34862 (reduc_plus_scal_v2sf): New.
34863 (reduc_smax_v2sf): Rename to...
34864 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
34865 (reduc_smin_v2sf): Rename to...
34866 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
34867
34868 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
34869
34870 * alias.c (compare_base_symbol_refs): New function.
34871 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
34872 it.
34873
34874 2016-01-14 Jakub Jelinek <jakub@redhat.com>
34875
34876 PR middle-end/68146
34877 PR tree-optimization/69155
34878 * tree-complex.c: Include cfganal.h.
34879 (phis_to_revisit): New variable.
34880 (extract_component): Add phiarg_p argument. Assert that returned
34881 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
34882 (update_phi_components): Partly rewrite to use loop over real/imag
34883 components instead of code duplication. If extract_component returns
34884 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
34885 create_tmp_reg into the PHI node instead, and mention the phi triplet
34886 in phis_to_revisit.
34887 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
34888 in phis_to_revisit at the end.
34889
34890 2016-01-14 Richard Biener <rguenther@suse.de>
34891
34892 PR tree-optimization/68060
34893 * tree-vect-loop.c (vect_is_simple_reduction): Check the
34894 outer loop reduction is only used in the inner loop before
34895 detecting a double reduction.
34896
34897 2016-01-14 Jakub Jelinek <jakub@redhat.com>
34898
34899 PR target/68269
34900 * combine.c (expand_field_assignment): Punt if compute_mode is
34901 unsupported scalar mode.
34902
34903 2016-01-14 Richard Biener <rguenther@suse.de>
34904
34905 PR tree-optimization/66856
34906 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
34907 SLP node only if it built successfully.
34908 (vect_analyze_slp_instance): Adjust.
34909
34910 2016-01-14 Jeff Law <law@redhat.com>
34911
34912 PR tree-optimization/69270
34913 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
34914 (record_edge_info): Use it. Convert boolean_{true,false}_node
34915 to the type of op0.
34916
34917 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
34918
34919 PR ipa/66487
34920 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
34921 use block_ultimate_origin
34922 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
34923
34924 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
34925
34926 * doc/invoke.texi (Submodel Options): Rename section to
34927 "Machine-Dependent Options" to better reflect its content.
34928 Rewrite introductory text to remove archaic CPU names.
34929 Update references.
34930
34931 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
34932
34933 * doc/invoke.texi (Code Gen Options): Move section up in file,
34934 before target-specific options. Update menu and option summary
34935 to reflect the new section ordering.
34936
34937 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
34938
34939 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
34940 (C++ Dialect Options): Add cross-reference to -std option.
34941 * doc/standards.texi (C++ Language): Document C++14 support.
34942
34943 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
34944
34945 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
34946 for pack/unpack functions for __ibm128.
34947 (PACK_IF): Likewise.
34948 (UNPACK_IF): Likewise.
34949
34950 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
34951 support for __ibm128 pack/unpack functions.
34952 (rs6000_invalid_builtin): Likewise.
34953 (rs6000_init_builtins): Likewise.
34954 (rs6000_opt_masks): Likewise.
34955
34956 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
34957 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
34958 functions
34959 (RS6000_BTM_COMMON): Likewise.
34960
34961 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
34962 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
34963 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
34964 128-bit floating point. Add support for the double values to be
34965 in Altivec registers for TF/IF packing and unpacking, but restrict
34966 TD packing sub-fields to be FPR registers. Don't allow overlapped
34967 register support for packing. Allow pack inputs to be memory
34968 locations. Don't build generator functions for unpack<mode>_dm
34969 and unpack<mode>_nodm.
34970 (unpack<mode>_dm): Likewise.
34971 (unpack<mode>_nodm): Likewise.
34972 (pack<mode>): Likewise.
34973
34974 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
34975 built-in functions to pack/unpack explicit __ibm128 values.
34976 (__builtin_unpack_ibm128): Likewise.
34977
34978 * doc/extend.texi (PowerPC Built-in Functions): Document
34979 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
34980
34981 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
34982
34983 PR c/66208
34984 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
34985 Add new arg loc and pass it down as context.
34986 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
34987 to the location to use for the warning.
34988 (check_function_arguments): New arg loc. All callers changed. Pass
34989 it to check_function_nonnull.
34990 * c-common.h (check_function_arguments): Adjust declaration.
34991
34992 2016-01-13 Jakub Jelinek <jakub@redhat.com>
34993
34994 PR tree-optimization/69156
34995 * gimple.c (validate_type): Removed.
34996 (gimple_builtin_call_types_compatible_p): Use
34997 useless_type_conversion_p instead of validate_type.
34998 * value-prof.c (gimple_stringop_fixed_value): Fold
34999 icall_size to correct type.
35000
35001 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
35002
35003 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
35004 effects.
35005
35006 2016-01-13 Richard Henderson <rth@redhat.com>
35007
35008 PR tree-opt/68964
35009 * target.def (builtin_tm_load, builtin_tm_store): Remove.
35010 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
35011 (ix86_builtin_tm_store): Remove.
35012 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
35013 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
35014 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
35015 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
35016 * doc/tm.texi: Rebuild.
35017
35018 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
35019 (BUILT_IN_TM_MEMCPY_RTWN): New.
35020 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
35021 fallback from vector to integer helpers.
35022 (build_tm_load): Handle vector types directly, instead of
35023 via target hook.
35024 (build_tm_store): Likewise.
35025 (expand_assign_tm): Prepare for register types not handled by
35026 the above. Copy them to memory and use memcpy.
35027 * tree.c (tm_define_builtin): New.
35028 (find_tm_vector_type): New.
35029 (build_tm_vector_builtins): New.
35030 (build_common_builtin_nodes): Call it.
35031
35032 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
35033
35034 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
35035 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
35036
35037 2016-01-13 Tom de Vries <tom@codesourcery.com>
35038
35039 PR tree-optimization/69169
35040 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
35041 handled_struct_type param.
35042 (create_variable_info_for, intra_create_variable_infos): Call
35043 create_variable_info_for_1 with extra arg.
35044
35045 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
35046
35047 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
35048 and "armv8.1-a+crc" entries.
35049
35050 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
35051
35052 PR target/69228
35053 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
35054 Change first operand predicate from register_or_constm1_operand
35055 to register_operand.
35056 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
35057 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
35058 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
35059 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
35060 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
35061 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
35062 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
35063 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
35064 comparison with constm1_rtx from vec_prefetch_gen part.
35065
35066 2016-01-13 Richard Biener <rguenther@suse.de>
35067
35068 PR tree-optimization/69013
35069 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
35070 Exchange assert for a test.
35071
35072 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
35073
35074 PR target/69247
35075 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
35076
35077 2016-01-13 Richard Biener <rguenther@suse.de>
35078
35079 PR tree-optimization/69242
35080 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
35081 assert with a check.
35082
35083 2016-01-13 Richard Biener <rguenther@suse.de>
35084
35085 PR tree-optimization/69186
35086 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
35087 Properly guard vect_update_misalignment_for_peel call.
35088
35089 2016-01-12 Jeff Law <law@redhat.com>
35090
35091 PR tree-optimization/pr67755
35092 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
35093 "need_profile_correction".
35094 (thread_block_1): Initialize new field to false by default. If we
35095 have multiple thread paths through a common joiner to different
35096 final targets, then set new field to true.
35097 (compute_path_counts): Only do count adjustment when it's really
35098 needed.
35099
35100 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
35101
35102 * doc/invoke.texi (Spec Files): Move section down in file, past
35103 all command-line option descriptions.
35104
35105 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35106
35107 PR middle-end/54809
35108 * doc/gty.texi: Remove documentation of mark_hook.
35109 * gengtype.c (struct write_types_data): Remove code to support
35110 mark_hook attribute.
35111 (walk_type): Likewise.
35112 (write_func_for_structure): Likewise.
35113
35114 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
35115
35116 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
35117 Directory Options, and -specs= to Overall Options.
35118 (Overall Options): Adjust similarly. Reorder to group related
35119 options together. Make -specs= cross-reference the spec file details.
35120 (Directory Options): Adjust similarly.
35121
35122 2016-01-12 Jeff Law <law@redhat.com>
35123
35124 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
35125
35126 2016-01-12 Olivier Hainque <hainque@adacore.com>
35127
35128 * gcc.c (spec_undefvar_allowed): New global.
35129 (process_command): Set to true when running for --version or --help,
35130 alone or together.
35131 (getenv_spec_function): When the variable is not defined, use the
35132 variable name as the variable value if we're allowed not to issue
35133 a fatal error.
35134
35135 2016-01-12 Bin Cheng <bin.cheng@arm.com>
35136
35137 PR tree-optimization/68911
35138 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
35139 information computed for expression "init + nit * step".
35140
35141 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
35142
35143 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
35144 about name of GCC executable. Remove deleted node from menu.
35145 (Directory Options) <-B>: Remove cross-reference to deleted node.
35146 (Target Options): Delete section.
35147
35148 2016-01-12 Christian Bruel <christian.bruel@st.com>
35149
35150 PR target/69180
35151 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
35152 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
35153
35154 2016-01-12 Jakub Jelinek <jakub@redhat.com>
35155
35156 PR target/69198
35157 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
35158 aligned_mem is properly set for AVX512-VL floating point masked
35159 stores.
35160
35161 PR target/69175
35162 * ifcvt.c (cond_exec_process_if_block): When removing the last
35163 insn from then_bb, remove also any possible barriers that follow it.
35164
35165 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
35166
35167 PR target/68456
35168 PR target/69226
35169 * config/i386/iamcu.h (SIZE_TYPE): New macro.
35170 (PTRDIFF_TYPE): Likewise.
35171 (WCHAR_TYPE): Likewise.
35172 (WCHAR_TYPE_SIZE): Likewise.
35173 (STDINT_LONG32): Likewise.
35174
35175 2016-01-12 Richard Biener <rguenther@suse.de>
35176
35177 PR tree-optimization/69053
35178 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
35179 convert initial value for cond reductions.
35180
35181 2016-01-12 Richard Biener <rguenther@suse.de>
35182
35183 PR tree-optimization/69007
35184 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
35185 widen_sum after dot_prod and sad.
35186
35187 2016-01-12 Richard Biener <rguenther@suse.de>
35188
35189 PR tree-optimization/69168
35190 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
35191 pattern stmt SLP type.
35192 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
35193 end up unused so cope with that case.
35194
35195 2016-01-12 Richard Biener <rguenther@suse.de>
35196
35197 PR tree-optimization/69157
35198 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
35199 stmts def type only during analyze phase.
35200 (vectorizable_call): Likewise.
35201 (vectorizable_simd_clone_call): Likewise.
35202 (vectorizable_conversion): Likewise.
35203 (vectorizable_assignment): Likewise.
35204 (vectorizable_shift): Likewise.
35205 (vectorizable_operation): Likewise.
35206 (vectorizable_store): Likewise.
35207 (vectorizable_load): Likewise.
35208
35209 2016-01-12 Richard Biener <rguenther@suse.de>
35210
35211 PR tree-optimization/69174
35212 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
35213 space.
35214 (vectorizable_load): Properly compute the number of loads needed
35215 for permuted strided SLP loads and do not spuriously assign
35216 to SLP_TREE_VEC_STMTS.
35217
35218 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
35219
35220 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
35221 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
35222 (MD_EXEC_PREFIX): Remove.
35223 (MD_STARTFILE_PREFIX) Removee.
35224 (FILE_NAME_ABSOLUTE_P): Remove.
35225 (CPP_SPEC): Do not read macros from sys/version.h.
35226 (LINK_COMMAND_SPEC): Remove.
35227 (LOCAL_INCLUDE_DIR): Remove.
35228 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
35229 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
35230 (POST_LINK_SPEC): Define to invoke stubify after linker
35231 (LIBSTDCXX): Remove define
35232 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
35233 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
35234 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
35235 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
35236 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
35237 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
35238 (i386_djgpp_asm_named_section): Add propotype of new procedure
35239
35240 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
35241 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
35242 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
35243 in config/i386/djgpp.h).
35244 (STANDARD_STARTFILE_PREFIX_2): Define identical to
35245 STANDARD_STARTFILE_PREFIX_1.
35246 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
35247 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
35248 installation errors.
35249 (MAX_OFILE_ALIGNMENT): Define to 128.
35250 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
35251
35252 * config/i386/djgpp.c: New file. Add implementation of
35253 i386_djgpp_asm_named_section.
35254
35255 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
35256
35257 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
35258 Add rule for building djgpp.o.
35259
35260 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35261
35262 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
35263 (rtx_is_swappable_p): Reductions are swappable.
35264 (insn_is_swappable_p): V2DF reductions are swappable.
35265
35266 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
35267
35268 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
35269 reloads for other unsupported memory operands.
35270
35271 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
35272 Jim Wilson <jim.wilson@linaro.org>
35273
35274 PR target/69194
35275 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
35276 copy_to_mode_reg instead of force_reg.
35277
35278 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
35279
35280 PR target/69225
35281 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
35282 TARGET_80387 is true.
35283
35284 2016-01-11 Jakub Jelinek <jakub@redhat.com>
35285
35286 PR target/69071
35287 * lra-eliminations.c (move_plus_up): Only move plus up
35288 if subreg of the constant can be simplified into constant
35289 and use the simplified subreg of the constant instead of
35290 the original constant.
35291
35292 * fold-const.c (fold_convertible_p): Don't return true
35293 for conversion of VECTOR_TYPE to same sized integral type.
35294 (fold_convert_loc): Fix up formatting. Fold conversion of
35295 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
35296 instead of NOP_EXPR.
35297
35298 PR tree-optimization/69214
35299 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
35300 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
35301 Formatting fix.
35302
35303 PR tree-optimization/69207
35304 * tree-vect-slp.c (vect_get_constant_vectors): For
35305 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
35306 fold_convertible_p to vector_type's element type, and always
35307 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
35308
35309 2016-01-11 Richard Biener <rguenther@suse.de>
35310
35311 PR tree-optimization/69173
35312 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
35313 fixup the cycle if all stmts are in a pattern.
35314
35315 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
35316
35317 PR middle-end/68999
35318 * alias.c (base_alias_check): Move check for addresses with
35319 alignment ANDs before the call for compare_base_decls.
35320 (memrefs_conflict_p): Return -1 for different decls
35321 that went through alignment adjustments.
35322
35323 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35324
35325 PR rtl-optimization/68796
35326 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
35327 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
35328 and QImode comparisons against zero with CC_NZmode.
35329 * config/aarch64/iterators.md (short_mask): New mode_attr.
35330
35331 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
35332
35333 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
35334 (<avx512>_store<mode>_mask): Likewise.
35335
35336 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
35337 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35338
35339 PR rtl-optimization/68841
35340 * ifcvt.c (struct noce_if_info): Add orig_x field.
35341 (bbs_ok_for_cmove_arith): Add to_rename parameter.
35342 Don't record conflicts on to_rename if it's present.
35343 Allow memory destinations in sets.
35344 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
35345 blocks, passing orig_x to the checks.
35346 (noce_process_if_block): Set if_info->orig_x appropriately.
35347
35348 2016-01-11 Tom de Vries <tom@codesourcery.com>
35349
35350 PR tree-optimization/69069
35351 * tree-parloops.c (create_parallel_loop): Add missing phi args.
35352
35353 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
35354
35355 PR rtl-optimization/68920
35356 * config/i386/i386.c (ix86_option_override_internal): Restrict number
35357 of conditional moves for RTL if-conversion to 1 for
35358 TARGET_ONE_IF_CONV_INSN.
35359 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
35360 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
35361 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
35362 parameter to restirct number of conditional moves for
35363 RTL if-conversion.
35364 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
35365 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
35366 conditionl moves.
35367
35368 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
35369
35370 PR bootstrap/69123
35371 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
35372 onepart vars. Fix typo in comment. Fix reversed condition in
35373 unshare test.
35374 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
35375
35376 PR bootstrap/69123
35377 * var-tracking.c (dump_onepart_variable_differences): New.
35378 (dataflow_set_different): If a detailed dump is requested,
35379 delay early returns and dump differences between onepart
35380 variables present before and after, and added variables.
35381
35382 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
35383
35384 PR target/69010
35385 * expr.c (expand_expr_real_1): For boolean vector constants
35386 with a scalar mode use const_scalar_mask_from_tree.
35387 (const_scalar_mask_from_tree): New.
35388 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
35389 assigned to a mask type to handle constants.
35390
35391 2016-01-11 Martin Jambor <mjambor@suse.cz>
35392
35393 PR ipa/69044
35394 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
35395 useless parameters if we cannot change function signature.
35396
35397 2016-01-11 Martin Jambor <mjambor@suse.cz>
35398
35399 PR ipa/66616
35400 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
35401 flag.
35402
35403 2016-01-11 Tom de Vries <tom@codesourcery.com>
35404
35405 PR tree-optimization/69109
35406 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
35407 latch with phi.
35408
35409 2016-01-11 Tom de Vries <tom@codesourcery.com>
35410
35411 PR tree-optimization/69108
35412 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
35413 res is not used in a phi.
35414
35415 2016-01-11 Yury Gribov <y.gribov@samsung.com>
35416
35417 PR 67425
35418 * common.opt (frandom-seed): Fix parameter name.
35419 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
35420
35421 2016-01-11 Tom de Vries <tom@codesourcery.com>
35422
35423 PR tree-optimization/69058
35424 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
35425 not supported.
35426
35427 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
35428
35429 * config/arc/arc.opt (mdiv-rem): Add period to the end.
35430 (mcode-density): Likewise.
35431
35432 2016-01-10 Tom de Vries <tom@codesourcery.com>
35433
35434 PR tree-optimization/69062
35435 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
35436 (parallelize_loops): Don't paralelize loop that has phi with address
35437 arg.
35438
35439 2016-01-10 Tom de Vries <tom@codesourcery.com>
35440
35441 PR tree-optimization/69039
35442 * tree-parloops.c (try_create_reduction_list): Only allow single exit
35443 phi for reduction.
35444
35445 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
35446
35447 PR middle-end/68743
35448 * match.pd: Require target has function_c99_misc before doing
35449 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
35450
35451 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
35452
35453 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
35454 use GMPINC.
35455 * configure: Regenerate.
35456
35457 2016-01-09 Jakub Jelinek <jakub@redhat.com>
35458
35459 PR middle-end/50865
35460 PR tree-optimization/69097
35461 * fold-const.h (expr_not_equal_to): New prototype.
35462 * fold-const.c: Include stringpool.h and tree-ssanames.h.
35463 (expr_not_equal_to): New function.
35464 * match.pd (X % -Y is the same as X % Y): Don't optimize
35465 unless X is known not to be equal to minimum or Y is known
35466 not to be equal to -1.
35467 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
35468 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
35469 (simplify_stmt_using_ranges): Adjust caller.
35470 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
35471 substitute_and_fold.
35472
35473 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
35474
35475 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
35476 w/o DECL_NAME.
35477
35478 2016-01-08 Jakub Jelinek <jakub@redhat.com>
35479
35480 PR tree-optimization/69167
35481 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
35482 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
35483 ops[0] comparison.
35484 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
35485
35486 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
35487 Richard Biener <rguenther@suse.de>
35488
35489 PR tree-optimization/68707
35490 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
35491 instances that can be handled via vect_load_lanes.
35492
35493 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
35494
35495 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
35496 if we can't determine address equivalence.
35497 * alias.c (compare_base_decl): Update for changed return value of
35498 symtab_node::equal_address_to.
35499
35500 2016-01-08 Jason Merrill <jason@redhat.com>
35501
35502 PR c++/68983
35503 PR c++/67557
35504 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
35505 * expr.c (store_field): Not here.
35506 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
35507 call with TREE_ADDRESSABLE type.
35508 * tree-cfg.c (verify_gimple_call): Adjust.
35509
35510 2016-01-08 Olivier Hainque <hainque@adacore.com>
35511
35512 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
35513 libc_internal.
35514
35515 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
35516
35517 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
35518 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
35519 (reduc_smin_v2sf): Rename to...
35520 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
35521 (reduc_splus_v2sf): Rename to...
35522 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
35523
35524 2016-01-08 Jakub Jelinek <jakub@redhat.com>
35525
35526 PR tree-optimization/69162
35527 * gimplify.c (gimplify_va_arg_expr): Encode original type of
35528 valist argument in another argument.
35529 (gimplify_modify_expr): Adjust for the above change. Cleanup.
35530 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
35531 to determine the va_list type, build a MEM_REF instead of
35532 build_fold_indirect_ref.
35533
35534 PR tree-optimization/69172
35535 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
35536 gimple_build.
35537
35538 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
35539
35540 PR tree-optimization/67781
35541 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
35542 and cmpnop in two steps: first the ones not accessed in original
35543 gimple expression in a endian independent way and then the ones not
35544 accessed in the final result in an endian-specific way.
35545
35546 2016-01-08 Jakub Jelinek <jakub@redhat.com>
35547
35548 PR tree-optimization/69083
35549 * tree-vect-slp.c (vect_get_constant_vectors): For
35550 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
35551 element type. If op is fold_convertible_p to vector_type's element
35552 type, use NOP_EXPR instead of VCE.
35553
35554 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
35555
35556 PR rtl-optimization/67778
35557 PR rtl-optimization/68634
35558 PR rtl-optimization/68909
35559 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
35560 block from the stack until done with it. Remove a superfluous
35561 bitmap set. Remove a superfluous bitmap test.
35562
35563 2016-01-07 Martin Sebor <msebor@redhat.com>
35564
35565 PR c/68966
35566 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
35567 constraint on the type of arguments.
35568
35569 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
35570
35571 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
35572 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
35573 unaligned_access on the gcc_options set.
35574 * config/arm/arm.c (arm_option_override_internal): Use
35575 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
35576
35577 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
35578
35579 PR target/69140
35580 * config/i386/i386.c (ix86_frame_pointer_required): Enable
35581 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
35582
35583 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
35584
35585 Revert
35586 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
35587
35588 PR target/69140
35589 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
35590 depending on frame_pointer_needed before remaining integer and SSE
35591 registers are saved.
35592
35593 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
35594
35595 PR 1078
35596 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
35597
35598 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
35599
35600 PR target/69171
35601 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
35602 Use the "xBm" constraint.
35603 (float<sseintvecmodelower><mode>2<mask_name><round_name):
35604 Likewise.
35605 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
35606 (sse_cvtsi2ssq<round_name>): Likewise.
35607 (sse_cvtss2si<round_name>): Likewise.
35608 (sse_cvtss2siq<round_name>): Likewise.
35609 (sse2_cvtsi2sdq<round_name>): Likewise.
35610 (sse2_cvtsd2si<round_name>): Likewise.
35611 (sse2_cvtsd2siq<round_name>): Likewise.
35612 * config/i386/subst.md (round_nimm_scalar_predicate): New
35613 predicate.
35614
35615 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
35616
35617 PR middle-end/67639
35618 * varasm.c (make_decl_rtl): Mark invalid register vars as
35619 DECL_EXTERNAL.
35620
35621 PR rtl-optimization/66206
35622 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
35623 All callers changed.
35624
35625 2016-01-07 Jakub Jelinek <jakub@redhat.com>
35626
35627 PR tree-optimization/69141
35628 * tree-ssa-pre.c: Include langhooks.h.
35629 (eliminate_dom_walker::before_dom_children): Use
35630 lang_hooks.decl_printable_name instead of
35631 cgraph_node::get ()->name ().
35632
35633 PR middle-end/68960
35634 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
35635 it and DECL_ALIGN too.
35636
35637 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
35638
35639 * config/mips/mips-ftypes.def: Sort to lexicographical order.
35640
35641 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
35642
35643 PR target/69140
35644 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
35645 depending on frame_pointer_needed before remaining integer and SSE
35646 registers are saved.
35647
35648 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35649
35650 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
35651 mode iterator with VSX_M2.
35652 (*p9_vecstore_<mode>): Likewise.
35653 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
35654 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
35655 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
35656 (define_split for VSX_LE128 stores): Likewise.
35657 (define_peephole2 for TImode LE swaps): Likewise.
35658 (define_split for VSX_LE128 post-reload stores): Likewise.
35659
35660 2016-01-06 Marek Polacek <polacek@redhat.com>
35661
35662 PR sanitizer/69099
35663 * convert.c (convert_to_integer_1): Adjust call to
35664 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
35665 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
35666 EXPR instead of ARG.
35667 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
35668
35669 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
35670
35671 PR 1078
35672 * doc/extend.texi (RL78 Variable Attributes): New section.
35673
35674 2016-01-05 Marek Polacek <polacek@redhat.com>
35675
35676 PR c/69104
35677 * builtins.c (get_memmodel): Use expansion point location rather than
35678 the input location. Call warning_at rather than warning.
35679 (expand_builtin_atomic_compare_exchange): Likewise.
35680 (expand_builtin_atomic_load): Likewise.
35681 (expand_builtin_atomic_store): Likewise.
35682 (expand_builtin_atomic_clear): Likewise.
35683
35684 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
35685
35686 PR target/68991
35687 * config/i386/i386.c (ix86_expand_vector_logical_operator):
35688 Replace nonimmediate_operand with vector_operand.
35689 * config/i386/predicates.md (vector_operand): New predicate.
35690 (general_vector_operand): Replace nonimmediate_operand with
35691 vector_operand.
35692 * config/i386/sse.md: Replace nonimmediate_operand with
35693 vector_operand and m constraint with Bm constraint on SSE
35694 patterns with 16-byte memory operand.
35695 * config/i386/subst.md (round_nimm_predicate): Replace
35696 nonimmediate_operand with vector_operand.
35697 (round_saeonly_nimm_predicate): Likewise.
35698 (round_saeonly_nimm_scalar_predicate): New.
35699
35700 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
35701
35702 PR target/68991
35703 * config/i386/constraints.md (Bm): New constraint.
35704 * config/i386/predicates.md (vector_memory_operand): New
35705 predicate.
35706 * config/i386/sse.md: Replace xm with xBm in plusminus and
35707 any_logic patterns.
35708
35709 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
35710
35711 PR 1078
35712 * doc/extend.texi (V850 Function Attributes): New section.
35713 (V850 Variable Attributes): New section.
35714
35715 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
35716
35717 PR 1078
35718 * doc/extend.texi (MicroBlaze Function Attributes): Document
35719 interrupt_handler and fast_interrupt attributes.
35720
35721 2016-01-05 Sergei Trofimovich <siarheit@google.com>
35722
35723 PR other/60465
35724 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
35725 for local symbolic operands.
35726 * config/ia64/predicates.md (local_symbolic_operand64): New
35727 predicate.
35728
35729 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35730
35731 PR rtl-optimization/68651
35732 * combine.c (combine_simplify_rtx): Canonicalize x + x into
35733 x << 1.
35734
35735 2016-01-05 Nathan Sidwell <nathan@acm.org>
35736
35737 * alias.c (compare_base_decls): Use symtab_node::get.
35738
35739 2016-01-05 Nick Clifton <nickc@redhat.com>
35740
35741 PR target/68770
35742 * ira-costs.c (copy_cost): Initialise the t_icode field of the
35743 secondary_reload_info structure.
35744
35745 PR target/66655
35746 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
35747 decls if weak support is available.
35748
35749 2016-01-04 Martin Sebor <msebor@redhat.com>
35750
35751 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
35752
35753 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
35754
35755 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
35756 OPTION_MASK_P9_DFORM.
35757
35758 * config/rs6000/constraints.md (wo constraint): New constraint for
35759 ISA 3.0 (power9).
35760
35761 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
35762 for wo constraint.
35763 (rs6000_init_hard_regno_mode_ok): Likewise.
35764
35765 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
35766 wo constraint.
35767
35768 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
35769 expanders not to have constraints. Add support for ISA 3.0 xxperm
35770 instruction. Add support for fusing xxlor with xxperm.
35771 (altivec_vperm_<mode>_internal): Likewise.
35772 (altivec_vperm_v8hiv16qi): Likewise.
35773 (altivec_vperm_<mode>v16q): Likewise.
35774 (altivec_vperm_<mode>_uns): Likewise.
35775 (vperm_v8hiv4si): Likewise.
35776 (vperm_v16qiv8hi): Likewise.
35777
35778 * doc/md.texi (RS/6000 constraints): Document wo constraint.
35779
35780 2016-01-04 Jakub Jelinek <jakub@redhat.com>
35781
35782 Update copyright years.
35783
35784 * gcc.c (process_command): Update copyright notice dates.
35785 * gcov-dump.c (print_version): Ditto.
35786 * gcov.c (print_version): Ditto.
35787 * gcov-tool.c (print_version): Ditto.
35788 * gengtype.c (create_file): Ditto.
35789 * doc/cpp.texi: Bump @copying's copyright year.
35790 * doc/cppinternals.texi: Ditto.
35791 * doc/gcc.texi: Ditto.
35792 * doc/gccint.texi: Ditto.
35793 * doc/gcov.texi: Ditto.
35794 * doc/install.texi: Ditto.
35795 * doc/invoke.texi: Ditto.
35796
35797 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
35798
35799 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
35800 modes larger than TImode as TImode if NEON is not enabled.
35801
35802 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
35803
35804 PR target/69100
35805 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
35806 mode for %f0-%f31 only if TARGET_FPU.
35807
35808 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
35809
35810 PR target/69072
35811 * config/sparc/sparc.c (scan_record_type): Take into account subfields
35812 to compute the PACKED_P predicate.
35813 (function_arg_record_value): Minor tweaks.
35814
35815 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
35816
35817 * doc/install.texi (--with-multilib-list): Describe the meaning of the
35818 option for arm*-*-* targets.
35819
35820 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
35821
35822 * doc/extend.texi (Common Function Attributes): Move docs for
35823 MSP430-specific attributes to....
35824 (MSP430 Function Attributes): ...here. Delete the redundant
35825 entries and copy-edit the remaining text.
35826 (MSP430 Variable Attributes): Use uniform format for index
35827 entries and add a cross-reference to the corresponding function
35828 attribute docs.
35829
35830 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
35831
35832 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
35833 -finite-math typo.
35834 (x86 Options): Likewise.
35835
35836 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
35837
35838 PR 1078
35839
35840 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
35841 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
35842 to corresponding attribute.
35843
35844 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
35845
35846 * doc/extend.texi (Common Function Attributes) <noplt>: Move
35847 to correct alphabetization of table. Copy-edit and correct
35848 markup.
35849 <stack_protect>: Likewise.
35850 <target_clones>: Likewise.
35851 <simd>: Likewise.
35852 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
35853 Correct punctuation.
35854 (Code Gen Options) <-fno-plt>: Copy-edit.
35855
35856 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
35857
35858 PR target/68917
35859 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
35860 SI values. Explicitly convert SI to DI and vice-versa.
35861
35862 2016-01-01 Jakub Jelinek <jakub@redhat.com>
35863
35864 PR tree-optimization/69070
35865 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
35866 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
35867
35868 PR sanitizer/69055
35869 * ubsan.c (ubsan_instrument_float_cast): Call
35870 initialize_sanitizer_builtins.
35871
35872 PR target/69015
35873 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
35874 \f
35875 Copyright (C) 2016 Free Software Foundation, Inc.
35876
35877 Copying and distribution of this file, with or without modification,
35878 are permitted in any medium without royalty provided the copyright
35879 notice and this notice are preserved.