c-common.c (get_source_date_epoch): New function...
[gcc.git] / gcc / ChangeLog
1 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
2 Matthias Klose <doko@debian.org>
3
4 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
5
6 2016-04-28 Richard Biener <rguenther@suse.de>
7
8 PR middle-end/70777
9 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
10 canonicalization.
11
12 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
13
14 * common/config/sh/sh-common.c: Remove SH5 support.
15 * config/sh/constraints.md: Likewise.
16 * config/sh/config/sh/elf.h: Likewise.
17 * config/sh/linux.h: Likewise.
18 * config/sh/netbsd-elf.h: Likewise.
19 * config/sh/predicates.md: Likewise.
20 * config/sh/sh-c.c: Likewise.
21 * config/sh/sh-protos.h: Likewise.
22 * config/sh/sh.c: Likewise.
23 * config/sh/sh.h: Likewise.
24 * config/sh/sh.md: Likewise.
25 * config/sh/sh.opt: Likewise.
26 * config/sh/sync.md: Likewise.
27 * config/sh/sh64.h: Delete.
28 * config/sh/shmedia.h: Likewise.
29 * config/sh/shmedia.md: Likewise.
30 * config/sh/sshmedia.h: Likewise.
31 * config/sh/t-netbsd-sh5-64: Likewise.
32 * config/sh/t-sh64: Likewise.
33 * config/sh/ushmedia.h: Likewise.
34
35 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
36
37 * config/i386/i386.md (sign_extend to memory peephole2s): Use
38 general_reg_operand instead of register_operand predicate.
39
40 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
41
42 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
43
44 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
45
46 * match.pd (A - B > A, A + B < A): New transformations.
47
48 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
49
50 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
51 which defaults to true. Emit an outer pair of parentheses only if
52 EMIT_PARENS. When continuing a chain of && or || (or & or |),
53 don't emit parentheses for the right-hand operand.
54
55 2016-04-27 Jeff Law <law@redhat.com>
56
57 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
58
59 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
60
61 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
62 (altivec_lvx_<mode>_internal): Document.
63 (altivec_lvx_<mode>_2op): New define_insn.
64 (altivec_lvx_<mode>_1op): Likewise.
65 (altivec_lvx_<mode>_2op_si): Likewise.
66 (altivec_lvx_<mode>_1op_si): Likewise.
67 (altivec_stvx_<mode>): Remove.
68 (altivec_stvx_<mode>_internal): Document.
69 (altivec_stvx_<mode>_2op): New define_insn.
70 (altivec_stvx_<mode>_1op): Likewise.
71 (altivec_stvx_<mode>_2op_si): Likewise.
72 (altivec_stvx_<mode>_1op_si): Likewise.
73 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
74 Expand vec_ld and vec_st during parsing.
75 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
76 changes.
77 (altivec_expand_stvx_be): Likewise.
78 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
79 address-masking behavior in RTL.
80 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
81 address-masking behavior in RTL.
82 (altivec_expand_builtin): Change builtin code arguments for calls
83 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
84 (insn_is_swappable_p): Avoid incorrect swap optimization in the
85 presence of lvx/stvx patterns.
86 (alignment_with_canonical_addr): New function.
87 (alignment_mask): Likewise.
88 (find_alignment_op): Likewise.
89 (recombine_lvx_pattern): Likewise.
90 (recombine_stvx_pattern): Likewise.
91 (recombine_lvx_stvx_patterns): Likewise.
92 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
93 stvx patterns from expand.
94 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
95 expansions.
96 (vector_altivec_store_<mode>): Likewise.
97
98 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
99
100 * config/aarch64/aarch64.md
101 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
102 remove the "fp" attributes.
103 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
104 add the "simd" attributes.
105 (*movdf_aarch64): Likewise.
106 (*movtf_aarch64): Remove the "fp" attributes.
107 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
108 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
109
110 2016-04-27 David Malcolm <dmalcolm@redhat.com>
111
112 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
113 rtx to rtx_code_label *.
114 * rtl.h (maybe_set_first_label_num): Likewise.
115
116 2016-04-27 David Malcolm <dmalcolm@redhat.com>
117
118 * df-core.c (df_add_problem): Make the problem param be const.
119 (df_remove_problem): Make local "problem" be const.
120 * df-problems.c (problem_RD): Make const.
121 (problem_LR): Likewise.
122 (problem_LIVE): Likewise.
123 (problem_MIR): Likewise.
124 (problem_CHAIN): Likewise.
125 (problem_WORD_LR): Likewise.
126 (problem_NOTE): Likewise.
127 (problem_MD): Likewise.
128 * df-scan.c (problem_SCAN): Likewise.
129 * df.h (struct df_problem): Make field "dependent_problem" be
130 const.
131 (struct dataflow): Likewise for field "problem".
132 (df_add_problem): Make param const.
133
134 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
135
136 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
137 inter-unit moves to/from vector registers are enabled. Do not disable
138 for TARGET_MMX.
139
140 2016-04-27 David Malcolm <dmalcolm@redhat.com>
141
142 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
143 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
144 #define to...
145 (enum df_problem_id): ...this new enum.
146 (struct df_problem): Convert field "id" from "int" to
147 enum df_problem_id.
148
149 2016-04-27 David Malcolm <dmalcolm@redhat.com>
150
151 * rtl.def: Update comment for "things in the instruction chain" to
152 reflect the removal of the leading "i" field for INSN_UID in
153 r210360. Fix bogus apostrophe.
154
155 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
156
157 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
158 inter-unit moves to/from vector registers are enabled. Do not disable
159 for TARGET_MMX.
160
161 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
162
163 * config/i386/i386.md
164 (lea arith with mem operand + setcc peephole2): Set operator mode.
165
166 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
167
168 PR target/70155
169 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
170 (dimode_scalar_to_vector_candidate_p): This.
171 (timode_scalar_to_vector_candidate_p): New function.
172 (scalar_to_vector_candidate_p): Likewise.
173 (timode_check_non_convertible_regs): Likewise.
174 (timode_remove_non_convertible_regs): Likewise.
175 (remove_non_convertible_regs): Likewise.
176 (remove_non_convertible_regs): Renamed to ...
177 (dimode_remove_non_convertible_regs): This.
178 (scalar_chain::~scalar_chain): Make it virtual.
179 (scalar_chain::compute_convert_gain): Make it pure virtual.
180 (scalar_chain::mark_dual_mode_def): Likewise.
181 (scalar_chain::convert_insn): Likewise.
182 (scalar_chain::convert_registers): Likewise.
183 (scalar_chain::add_to_queue): Make it protected.
184 (scalar_chain::emit_conversion_insns): Likewise.
185 (scalar_chain::replace_with_subreg): Likewise.
186 (scalar_chain::replace_with_subreg_in_insn): Likewise.
187 (scalar_chain::convert_op): Likewise.
188 (scalar_chain::convert_reg): Likewise.
189 (scalar_chain::make_vector_copies): Likewise.
190 (scalar_chain::convert_registers): New pure virtual function.
191 (class dimode_scalar_chain): New class.
192 (class timode_scalar_chain): Likewise.
193 (scalar_chain::mark_dual_mode_def): Renamed to ...
194 (dimode_scalar_chain::mark_dual_mode_def): This.
195 (timode_scalar_chain::mark_dual_mode_def): New function.
196 (timode_scalar_chain::convert_insn): Likewise.
197 (dimode_scalar_chain::convert_registers): Likewise.
198 (scalar_chain::compute_convert_gain): Renamed to ...
199 (dimode_scalar_chain::compute_convert_gain): This.
200 (scalar_chain::replace_with_subreg): Renamed to ...
201 (dimode_scalar_chain::replace_with_subreg): This.
202 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
203 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
204 (scalar_chain::make_vector_copies): Renamed to ...
205 (dimode_scalar_chain::make_vector_copies): This.
206 (scalar_chain::convert_reg): Renamed to ...
207 (dimode_scalar_chain::convert_reg ): This.
208 (scalar_chain::convert_op): Renamed to ...
209 (dimode_scalar_chain::convert_op): This.
210 (scalar_chain::convert_insn): Renamed to ...
211 (dimode_scalar_chain::convert_insn): This.
212 (scalar_chain::convert): Call convert_registers.
213 (convert_scalars_to_vector): Change to scalar_chain pointer to
214 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
215 in 32-bit mode. Delete scalar_chain pointer. Call
216 free_dominance_info in 64-bit mode.
217 (pass_stv::gate): Remove TARGET_64BIT check.
218 (ix86_option_override): Put the 64-bit STV pass before the CSE
219 pass.
220
221 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
222
223 * dwarf2out.h (struct dw_loc_descr_node): Remove the
224 dw_loc_frame_offset field.
225 * dwarf2out.c (new_loc_descr): Likewise.
226 (resolve_args_picking_1): Turn the VISITED hash set into a
227 FRAME_OFFSET hash map. Use it to associate a frame offset to
228 visited nodes. Remove uses of the CHECKING_P macro.
229 (resolve_args_picking): Update call to resolve_args_picking_1.
230
231 2016-04-27 Martin Liska <mliska@suse.cz>
232
233 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
234 (free_loop_data): Release vuses of groups.
235
236 2016-04-27 Bin Cheng <bin.cheng@arm.com>
237
238 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
239 instead of redundant use_id and boolean have_use_for.
240 (struct iv_use): Change sub_id into group_id. Remove field next.
241 Move fields: related_cands, n_map_members, cost_map and selected
242 to ...
243 (struct iv_group): ... here. New structure.
244 (struct iv_common_cand): Use structure declaration directly.
245 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
246 (MAX_CONSIDERED_USES): Rename macro to ...
247 (MAX_CONSIDERED_GROUPS): ... here.
248 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
249 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
250 (dump_uses): Rename to ...
251 (dump_groups): ... here. Update all uses.
252 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
253 (find_induction_variables): Refactor format of dump information.
254 (record_sub_use): Delete.
255 (record_use): Update all uses.
256 (record_group): New function.
257 (record_group_use, find_interesting_uses_op): Call above functions.
258 Update all uses.
259 (find_interesting_uses_cond): Ditto.
260 (group_compare_offset): New function.
261 (split_all_small_groups): Rename to ...
262 (split_small_address_groups_p): ... here. Update all uses.
263 (split_address_groups): Update all uses.
264 (find_interesting_uses): Refactor format of dump information.
265 (add_candidate_1): Update all uses. Remove redundant check on iv,
266 base and step.
267 (add_candidate, record_common_cand): Remove redundant assert.
268 (add_iv_candidate_for_biv): Update use.
269 (add_iv_candidate_derived_from_uses): Update all uses.
270 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
271 (alloc_use_cost_map): Ditto.
272 (set_use_iv_cost, get_use_iv_cost): Rename to ...
273 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
274 (determine_use_iv_cost_generic): Ditto.
275 (determine_group_iv_cost_generic): Ditto.
276 (determine_use_iv_cost_address): Ditto.
277 (determine_group_iv_cost_address): Ditto.
278 (determine_use_iv_cost_condition): Ditto.
279 (determine_group_iv_cost_cond): Ditto.
280 (determine_use_iv_cost): Ditto.
281 (determine_group_iv_cost): Ditto.
282 (set_autoinc_for_original_candidates): Update all uses.
283 (find_iv_candidates): Update all uses. Refactor dump information.
284 (determine_use_iv_costs): Ditto.
285 (determine_iv_costs): Ditto.
286 (iv_ca_cand_for_use): Rename to ...
287 (iv_ca_cand_for_group): ... here. Update all uses.
288 (iv_ca_add_use, iv_ca_add_group): Ditto.
289 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
290 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
291 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
292 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
293 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
294 (create_new_iv, adjust_iv_update_pos): Ditto.
295 (rewrite_use_address): Delete.
296 (rewrite_use_address_1): Rename to ...
297 (rewrite_use_address): ... here.
298 (rewrite_use_compare): Update all uses.
299 (rewrite_use): Delete.
300 (rewrite_uses): Rename to ...
301 (rewrite_groups): ... here. Update all uses.
302 (remove_unused_ivs, free_loop_data): Update all uses.
303 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
304
305 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
306
307 * rtlanal.c (nonzero_bits1): Convert preprocessor check
308 for WORD_REGISTER_OPERATIONS to runtime check.
309
310 2016-04-27 Richard Biener <rguenther@suse.de>
311
312 PR ipa/70760
313 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
314 aggregate_value_p to determine if a function result is
315 returned by reference.
316 (ipa_pta_execute): Functions having their address taken are
317 not automatically nonlocal.
318
319 2016-04-27 Jakub Jelinek <jakub@redhat.com>
320
321 PR sanitizer/70683
322 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
323 * fold-const.c (operand_equal_p): If flag_checking and
324 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
325 and if it returns non-zero, assert iterative_hash_expr on both
326 args is the same.
327
328 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
329
330 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
331
332 2016-04-27 Nick Clifton <nickc@redhat.com>
333
334 PR middle-end/49889
335 * varasm.c (merge_weak): Generate an error if an attempt is made
336 to convert a non-weak static function into a weak, public function.
337
338 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
339
340 * params.def (MAX_PARTITION_SIZE): New param.
341 * doc/invoke.texi: Document lto-max-partition.
342
343 2016-04-27 Richard Biener <rguenther@suse.de>
344
345 PR ipa/70785
346 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
347 function cummulating used_from_other_partition, externally_visible
348 and force_output from aliases.
349 (refered_from_nonlocal_var): Likewise.
350 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
351 node flags properly.
352
353 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
354
355 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
356 (-Wmemset-elt-size): New item.
357
358 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
359
360 PR ada/70759
361 * stor-layout.h (internal_reference_types): Delete.
362 * stor-layout.c (reference_types_internal): Likewise.
363 (internal_reference_types): Likewise.
364 (layout_type) <REFERENCE_TYPE>: Adjust.
365
366 2016-04-27 Jakub Jelinek <jakub@redhat.com>
367
368 PR sanitizer/70683
369 * tree.h (inchash::add_expr): Add FLAGS argument.
370 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
371 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
372 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
373 Formatting fix. Adjust recursive calls. For tcc_comparison,
374 if swap_tree_comparison (code) is smaller than code, hash that
375 and arguments in the other order. Hash CONVERT_EXPR the same
376 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
377 of ADDR_EXPR of decl as the decl itself. Add or remove
378 OEP_ADDRESS_OF from recursive flags as needed. For
379 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
380 operands commutatively and only the third one normally.
381 For internal CALL_EXPR hash in CALL_EXPR_IFN.
382
383 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
384
385 * config/rtems.h (LIB_SPEC): Add -latomic.
386
387 2016-04-27 Joel Sherrill <joel@rtems.org>
388
389 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
390 xilink.ld and flags not relevant to RTEMS.
391
392 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
393
394 * toplev.c (backend_init_target): Avoid calling init_reload when using
395 LRA.
396
397 2016-04-26 Jakub Jelinek <jakub@redhat.com>
398
399 * reorg.c (try_merge_delay_insns): Declare i and j inside the
400 for loops rather than one for the whole function.
401
402 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
403
404 * match.pd (X + CST CMP X): New transformation.
405
406 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
407
408 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
409 * fold-const.c (fold_binary_loc): Remove 2 transformations
410 superseded by match.pd.
411 * match.pd (x+x -> x*2): Generalize to integers.
412
413 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
414
415 * config/i386/i386.md (operation on memory peephole): Duplicate an
416 existing peephole and adapt it to match lea rather than an operation
417 that clobbers CC.
418
419 PR rtl-optimization/57193
420 * opts.c (default_options_table): Add OPT_frename_registers at -O2
421 and above.
422 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
423
424 2016-04-26 Bin Cheng <bin.cheng@arm.com>
425
426 * tree-if-conv.c (any_pred_load_store): New static variable.
427 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
428 any_pred_load_store instead of and_mask_load_store.
429 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
430 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
431 (combine_blocks, tree_if_conversion): Ditto.
432
433 2016-04-26 Bin Cheng <bin.cheng@arm.com>
434
435 PR tree-optimization/70771
436 PR tree-optimization/70775
437 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
438 virtual PHI nodes. Delete parameter.
439 (if_convertible_loop_p_1): Delete argument to above function.
440 (predicate_all_scalar_phis): Delete code handling single-argument
441 PHIs.
442 (tree_if_conversion): Mark and update virtual SSA.
443
444 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
445
446 PR target/61821
447 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
448 (x86_elf_aligned_common): Rename to ...
449 (x86_elf_aligned_decl_common): ... this.
450 Add decl arg. Switch to .lbss for largecomm object. Use
451 LARGECOMM_SECTION_ASM_OP.
452 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
453 renaming.
454 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
455 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
456 Pass new decl arg.
457 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
458 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
459
460 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
461
462 PR target/59407
463 * config/i386/i386.c (SECTION_LARGE): Define.
464 (x86_64_elf_select_section): Set it for large data/bss sections.
465 Only clear SECTION_WRITE for .lrodata.
466 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
467 data/bss sections.
468 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
469 * varasm.c (default_elf_asm_named_section): Grow flagchars.
470 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
471 SECTION_MACH_DEP.
472 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
473 * doc/tm.texi: Regenerate.
474
475 2016-04-26 Jakub Jelinek <jakub@redhat.com>
476
477 PR bootstrap/70704
478 * configure.ac (--enable-checking): Document extra flag, for
479 non-release builds default to --enable-checking=yes,extra.
480 If misc checking and extra checking, define CHECKING_P to 2 instead
481 of 1.
482 * common.opt (fchecking=): Add.
483 * doc/invoke.texi (-fchecking=): Document.
484 * doc/install.texi: Document --enable-checking changes.
485 * configure: Regenerated.
486 * config.in: Regenerated.
487
488 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
489
490 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
491 attribute instead of which_alternative.
492 * config/i386/sse.md (*mov<mode>_internal): Ditto.
493 Use EXT_REX_SSE_REG_P where appropriate.
494
495 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
496
497 * config/i386/predicates.md (const0_operand): Do not match
498 const_wide_int code.
499 (const1_operand): Ditto.
500
501 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
502
503 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
504 for SSE constm1 operands and TARGET_AVX512VL.
505 (*movti_internal): Ditto.
506 (*mov<mode>_or): Use constm1_operand predicate.
507 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
508 for SSE vector_all_ones operands and TARGET_AVX512VL.
509 * config/i386/predicates.md (constm1_operand): New predicate.
510 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
511 emission of constant -1 load.
512
513 2016-04-25 Jason Merrill <jason@redhat.com>
514
515 * gdbinit.in: Skip is-a.h.
516
517 * attribs.c (register_scoped_attributes): Fix logic.
518 * attribs.h: Declare register_scoped_attributes.
519
520 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
521
522 * config/rs6000/rs6000-builtin.def: Correct pasto error for
523 stxvd2x and stxvw4x built-in functions.
524
525 2016-04-25 DJ Delorie <dj@redhat.com>
526
527 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
528 (ashrhi3): Likewise.
529 (lshrhi3): Likewise.
530
531 2016-04-25 Richard Biener <rguenther@suse.de>
532
533 PR tree-optimization/70780
534 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
535 wasn't visited yet.
536 (compute_antic): Mark blocks with abnormal preds as visited as
537 they have a final empty antic-in solution already.
538
539 2016-04-25 Michael Collison <michael.collison@linaro.org>
540
541 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
542
543 2016-04-25 Michael Collison <michael.collison@linaro.org>
544
545 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
546 mode is VQI to improve mixed mode vectorization.
547 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
548 define_insn to match low half of signed vaddw.
549 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
550 define_insn to match high half of signed vaddw.
551 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
552 define_insn to match low half of unsigned vaddw.
553 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
554 define_insn to match high half of unsigned vaddw.
555 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
556 (arm_simd_check_vect_par_cnst_half_p): Likewise.
557 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
558 for new function.
559 (arm_simd_check_vect_par_cnst_half_p): Likewise.
560 * config/arm/predicates.md (vect_par_constant_high): Support
561 big endian and simplify by calling
562 arm_simd_check_vect_par_cnst_half
563 (vect_par_constant_low): Likewise.
564
565 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
566
567 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
568 predicate for operand 2.
569
570 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
571 H.J. Lu <hongjiu.lu@intel.com>
572
573 * config/i386/i386-protos.h (standard_sse_constant_p): Add
574 machine_mode argument.
575 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
576 constm1_rtx operands. For VOIDmode constants, get mode from
577 pred_mode. Check mode size if the mode is supported by ABI.
578 (standard_sse_constant_opcode): Do not use standard_constant_p.
579 Strictly check ABI support for all-ones operands.
580 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
581 immediates. Update calls to standard_sse_constant_p.
582 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
583 (ix86_rtx_costs): Ditto.
584 * config/i386/i386.md (*movxi_internal_avx512f): Use
585 nonimmediate_or_sse_const_operand instead of vector_move_operand.
586 Use (v,BC) alternative instead of (v,C). Use register_operand
587 checks instead of MEM_P.
588 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
589 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
590 isa attribute. Use register_operand checks instead of MEM_P.
591 (*movti_internal): Use nonimmediate_or_sse_const_operand for
592 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
593 alternative and corresponding sse2 isa attribute.
594 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
595 to standard_sse_constant_p.
596 (FP constant splitters): Ditto.
597 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
598 (C): Ditto.
599 * config/i386/predicates.md (constm1_operand): Remove.
600 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
601 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
602 vector_all_ones_operand instead of constm1_operand.
603
604 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
605
606 * print-rtl.c (print_rtx_insn_vec): New function.
607 * print-rtl.h: New prototype.
608 * store-motion.c (struct st_expr): Make avail_stores a vector.
609 (st_expr_entry): Adjust.
610 (free_st_expr_entry): Likewise.
611 (print_store_motion_mems): Likewise.
612 (find_moveable_store): Likewise.
613 (compute_store_table): Likewise.
614 (delete_store): Likewise.
615 (build_store_vectors): Likewise.
616
617 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
618
619 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
620
621 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
622
623 * vec.h (vec_safe_contains): New function.
624 (vec::contains): Likewise.
625 (vec::begin): Likewise.
626 (vec::end): Likewise.
627
628 2016-04-23 Jakub Jelinek <jakub@redhat.com>
629
630 PR sanitizer/70712
631 * cfgexpand.c (expand_stack_vars): Fix typo.
632
633 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
634
635 * system.h (list, map, set, vector): Include conditionally.
636 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
637 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
638 * ipa-icf.c (INCLUDE_LIST): Define.
639 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
640 * config/sh/sh.c (INCLUDE_VECTOR): Define.
641 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
642 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
643 * cp/logic.cc (INCLUDE_LIST): Define.
644 * fortran/trans-common.c (INCLUDE_MAP): Define.
645
646 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
647
648 * auto-profile.c: Remove <string.h> include.
649 * ipa-icf-gimple.c: Remove <list> include.
650 * diagnostic.c: Remove <new> include.
651 * genmatch.c: Likewise.
652 * pretty-print.c: Likewise.
653 * toplev.c: Likewise
654 * c/c-objc-common.c: Likewise.
655 * cp/error.c: Likewise.
656 * fortran/error.c: Likewise.
657
658 2016-04-22 Richard Biener <rguenther@suse.de>
659
660 * lto-streamer-in.c (input_ssa_names): Do not allocate
661 GIMPLE_NOP for all SSA names.
662 * lto-streamer-out.c (output_ssa_names): Do not output
663 SSA names that should have been released.
664
665 2016-04-22 Richard Biener <rguenther@suse.de>
666
667 PR tree-optimization/70740
668 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
669 VDEF.
670
671 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
672
673 PR target/70750
674 * config/i386/predicates.md (call_insn_operand): Replace
675 sibcall_memory_operand with memory_operand.
676
677 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
678
679 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
680 has_single_use() tests.
681 (register_edge_assert_for_1): Likewise.
682 (find_assert_locations_1): Check the liveness bitmap instead of
683 checking has_single_use().
684
685 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
686
687 PR target/70728
688 * gcc/config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
689 Extract AVX-512BW constraint from AVX.
690
691 2016-04-21 Richard Biener <rguenther@suse.de>
692
693 PR tree-optimization/70725
694 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
695 for phi_convertible_by_degenerating_args.
696 (predicate_all_scalar_phis): Handle single-argument PHIs.
697
698 2016-04-21 Richard Biener <rguenther@suse.de>
699
700 PR middle-end/70747
701 * fold-const.c (fold_comparison): Return properly typed
702 constant boolean.
703
704 2016-04-21 Bin Cheng <bin.cheng@arm.com>
705
706 PR tree-optimization/70715
707 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
708 after expanding BASE using expand_simple_operations.
709
710 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
711
712 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
713 New transformations.
714
715 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
716
717 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
718
719 2016-04-20 Jan Hubicka <jh@suse.cz>
720
721 * ipa-inline.c (can_inline_edge_p): Pass caller info to
722 ultiimate_alias_target.
723 (update_callee_keys): Likewise.
724 (lookup_recursive_calls): Likewise.
725 (speculation_useful_p): Likewise.
726
727 2016-04-20 Jan Hubicka <jh@suse.cz>
728
729 PR ipa/70018
730 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
731 (set_nothrow_flag_1): ... this; handle interposition correctly;
732 recurse on aliases and thunks.
733 (cgraph_node::set_nothrow_flag): New.
734 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
735 functions compiled with non-call exceptions that binds to current
736 def.
737 (propagate_nothrow): Be safe WRT interposition.
738 * cgraph.h (set_nothrow_flag): Update prototype.
739
740 2016-04-18 Jan Hubicka <jh@suse.cz>
741
742 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
743 max_loop_iterations_int.
744 (tree_unswitch_outer_loop): Likewise.
745
746 2016-04-20 Bin Cheng <bin.cheng@arm.com>
747
748 PR tree-optimization/69489
749 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
750 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
751 Revise dump message.
752 (if_convertible_bb_p): Remove check on edge count of basic block's
753 predecessors.
754
755 2016-04-20 Bin Cheng <bin.cheng@arm.com>
756
757 PR tree-optimization/56625
758 PR tree-optimization/69489
759 * tree-data-ref.h (DR_INNERMOST): New macro.
760 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
761 hashing struct innermost_loop_behavior.
762 (ref_DR_map): Remove.
763 (innermost_DR_map): New map.
764 (baseref_DR_map): Revise comment.
765 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
766 to innermost_DR_map accroding to its innermost loop behavior.
767 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
768 to its innermost loop behavior.
769 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
770 Add initialization for innermost_DR_map. Record memory reference
771 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
772 have innermost loop behavior.
773 (if_convertible_loop_p): Remove release for ref_DR_map. Release
774 innermost_DR_map.
775
776 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
777
778 * config/i386/i386.md (*lea<mode>_general_1): Rename from
779 *lea_general_1. Use explicit SWI12 mode interator.
780 (*lea<mode>_general_2): Rename from *lea_general_2.
781 Use explicit SWI12 mode interator.
782 (*lea<mode>_general_3): Rename from *lea_general_3.
783 Use explicit SWI12 mode interator.
784 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
785 Use explicit SWI12 mode interator.
786 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
787 Use explicit SWI48 mode interator.
788
789 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
790
791 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
792 Short-cut unaligned load and store cases. Handle all integer
793 vector modes.
794 (ix86_expand_vector_move_misalign): Short-cut unaligned load
795 and store cases. Call ix86_avx256_split_vector_move_misalign
796 directly without checking mode class.
797
798 2016-04-20 Andrew Pinski <apinski@cavium.com>
799 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
800
801 PR target/64971
802 * config/aarch64/aarch64.md (sibcall): Force call
803 address to be DImode for ILP32.
804 (sibcall_value): Likewise.
805
806 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
807
808 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
809
810 2016-04-20 Richard Biener <rguenther@suse.de>
811
812 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
813 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
814 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
815 (maybe_push_res_to_seq): Adjust.
816 * gimple-fold.c (maybe_build_generic_op): Likewise.
817
818 2016-04-20 Marek Polacek <polacek@redhat.com>
819
820 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
821 rather than true.
822
823 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
824
825 * config/i386/sse.md (vec_unpacks_lo_hi): Always
826 use kmovw to support AVX512F target.
827
828 2016-04-20 Bin Cheng <bin.cheng@arm.com>
829
830 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
831
832 2016-04-20 Marek Polacek <polacek@redhat.com>
833
834 PR tree-optimization/70725
835 * tree-if-conv.c (is_false_predicate): New function.
836 (predicate_mem_writes): Use it.
837
838 2016-04-20 Richard Biener <rguenther@suse.de>
839
840 PR tree-optimization/70726
841 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
842 shift amounts from a pattern stmt operand.
843
844 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
845
846 PR target/70674
847 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
848 stack_restore_from_fpr pattern when restoring r15.
849 (s390_optimize_prologue): Strip away the memory barrier in the
850 parallel when trying to get rid of restore insns.
851 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
852 definition for loading the stack pointer from an FPR. Compared to
853 the normal move insn this pattern includes a full memory barrier.
854
855 2016-04-19 Jakub Jelinek <jakub@redhat.com>
856
857 PR middle-end/70680
858 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
859 implicitly linear or lastprivate iterator on the outer context.
860
861 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
862
863 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
864 alignment check.
865 * config/i386/i386.md (ssememalign): Removed.
866 * config/i386/sse.md: Remove ssememalign attribute from patterns.
867
868 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
869
870 PR target/69201
871 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
872 const short * to __builtin_ia32_loaddquhi512_mask.
873 (_mm512_maskz_loadu_epi16): Likewise.
874 (_mm512_mask_storeu_epi16): Pass short * to
875 __builtin_ia32_storedquhi512_mask.
876 (_mm512_mask_loadu_epi8): Pass const char * to
877 __builtin_ia32_loaddquqi512_mask.
878 (_mm512_maskz_loadu_epi8): Likewise.
879 (_mm512_mask_storeu_epi8): Pass char * to
880 __builtin_ia32_storedquqi512_mask.
881 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
882 const double * to __builtin_ia32_loadupd512_mask.
883 (_mm512_mask_loadu_pd): Likewise.
884 (_mm512_maskz_loadu_pd): Likewise.
885 (_mm512_storeu_pd): Pass double * to
886 __builtin_ia32_storeupd512_mask.
887 (_mm512_mask_storeu_pd): Likewise.
888 (_mm512_loadu_ps): Pass const float * to
889 __builtin_ia32_loadups512_mask.
890 (_mm512_mask_loadu_ps): Likewise.
891 (_mm512_maskz_loadu_ps): Likewise.
892 (_mm512_storeu_ps): Pass float * to
893 __builtin_ia32_storeups512_mask.
894 (_mm512_mask_storeu_ps): Likewise.
895 (_mm512_mask_loadu_epi64): Pass const long long * to
896 __builtin_ia32_loaddqudi512_mask.
897 (_mm512_maskz_loadu_epi64): Likewise.
898 (_mm512_mask_storeu_epi64): Pass long long *
899 to __builtin_ia32_storedqudi512_mask.
900 (_mm512_loadu_si512): Pass const int * to
901 __builtin_ia32_loaddqusi512_mask.
902 (_mm512_mask_loadu_epi32): Likewise.
903 (_mm512_maskz_loadu_epi32): Likewise.
904 (_mm512_storeu_si512): Pass int * to
905 __builtin_ia32_storedqusi512_mask.
906 (_mm512_mask_storeu_epi32): Likewise.
907 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
908 char * to __builtin_ia32_storedquqi256_mask.
909 (_mm_mask_storeu_epi8): Likewise.
910 (_mm256_mask_loadu_epi16): Pass const short * to
911 __builtin_ia32_loaddquhi256_mask.
912 (_mm256_maskz_loadu_epi16): Likewise.
913 (_mm_mask_loadu_epi16): Pass const short * to
914 __builtin_ia32_loaddquhi128_mask.
915 (_mm_maskz_loadu_epi16): Likewise.
916 (_mm256_mask_loadu_epi8): Pass const char * to
917 __builtin_ia32_loaddquqi256_mask.
918 (_mm256_maskz_loadu_epi8): Likewise.
919 (_mm_mask_loadu_epi8): Pass const char * to
920 __builtin_ia32_loaddquqi128_mask.
921 (_mm_maskz_loadu_epi8): Likewise.
922 (_mm256_mask_storeu_epi16): Pass short * to.
923 __builtin_ia32_storedquhi256_mask.
924 (_mm_mask_storeu_epi16): Pass short * to.
925 __builtin_ia32_storedquhi128_mask.
926 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
927 const double * to __builtin_ia32_loadupd256_mask.
928 (_mm256_maskz_loadu_pd): Likewise.
929 (_mm_mask_loadu_pd): Pass onst double * to
930 __builtin_ia32_loadupd128_mask.
931 (_mm_maskz_loadu_pd): Likewise.
932 (_mm256_mask_storeu_pd): Pass double * to
933 __builtin_ia32_storeupd256_mask.
934 (_mm_mask_storeu_pd): Pass double * to
935 __builtin_ia32_storeupd128_mask.
936 (_mm256_mask_loadu_ps): Pass const float * to
937 __builtin_ia32_loadups256_mask.
938 (_mm256_maskz_loadu_ps): Likewise.
939 (_mm_mask_loadu_ps): Pass const float * to
940 __builtin_ia32_loadups128_mask.
941 (_mm_maskz_loadu_ps): Likewise.
942 (_mm256_mask_storeu_ps): Pass float * to
943 __builtin_ia32_storeups256_mask.
944 (_mm_mask_storeu_ps): ass float * to
945 __builtin_ia32_storeups128_mask.
946 (_mm256_mask_loadu_epi64): Pass const long long * to
947 __builtin_ia32_loaddqudi256_mask.
948 (_mm256_maskz_loadu_epi64): Likewise.
949 (_mm_mask_loadu_epi64): Pass const long long * to
950 __builtin_ia32_loaddqudi128_mask.
951 (_mm_maskz_loadu_epi64): Likewise.
952 (_mm256_mask_storeu_epi64): Pass long long * to
953 __builtin_ia32_storedqudi256_mask.
954 (_mm_mask_storeu_epi64): Pass long long * to
955 __builtin_ia32_storedqudi128_mask.
956 (_mm256_mask_loadu_epi32): Pass const int * to
957 __builtin_ia32_loaddqusi256_mask.
958 (_mm256_maskz_loadu_epi32): Likewise.
959 (_mm_mask_loadu_epi32): Pass const int * to
960 __builtin_ia32_loaddqusi128_mask.
961 (_mm_maskz_loadu_epi32): Likewise.
962 (_mm256_mask_storeu_epi32): Pass int * to
963 __builtin_ia32_storedqusi256_mask.
964 (_mm_mask_storeu_epi32): Pass int * to
965 __builtin_ia32_storedqusi128_mask.
966 * config/i386/i386-builtin-types.def (PCSHORT): New.
967 (PINT64): Likewise.
968 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
969 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
970 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
971 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
972 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
973 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
974 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
975 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
976 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
977 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
978 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
979 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
980 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
981 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
982 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
983 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
984 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
985 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
986 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
987 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
988 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
989 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
990 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
991 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
992 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
993 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
994 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
995 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
996 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
997 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
998 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
999 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
1000 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
1001 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
1002 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
1003 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
1004 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
1005 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
1006 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
1007 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
1008 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
1009 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
1010 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
1011 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
1012 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
1013 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
1014 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
1015 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
1016 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
1017 use UNSPEC_STOREU.
1018 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
1019 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
1020 load nor store.
1021 (ix86_expand_vector_move_misalign): Likewise.
1022 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
1023 to scalar function prototype for unaligned load/store builtins.
1024 (ix86_expand_special_args_builtin): Updated.
1025 * config/i386/sse.md (UNSPEC_LOADU): Removed.
1026 (UNSPEC_STOREU): Likewise.
1027 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
1028 (VI_ULOADSTORE_F_AVX512VL): Likewise.
1029 (ssescalarsize): Handle V4TI, V2TI and V1TI.
1030 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
1031 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
1032 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
1033 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
1034 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
1035 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
1036 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
1037 (<avx512>_storedqu<mode>_mask): Likewise.
1038 (*sse4_2_pcmpestr_unaligned): Likewise.
1039 (*sse4_2_pcmpistr_unaligned): Likewise.
1040 (*mov<mode>_internal): Renamed to ...
1041 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
1042 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
1043 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
1044 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
1045
1046 2016-04-19 Richard Biener <rguenther@suse.de>
1047
1048 PR tree-optimization/70171
1049 * tree-ssa-phiprop.c: Include stor-layout.h.
1050 (phiprop_insert_phi): Handle the aggregate copy case.
1051 (propagate_with_phi): Likewise.
1052
1053 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
1054
1055 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
1056 instead of simplify_gen_subreg (... , 0).
1057 (ix86_delegitimize_address): Ditto.
1058 (ix86_split_divmod): Ditto.
1059 (ix86_split_copysign_const): Ditto.
1060 (ix86_split_copysign_var): Ditto.
1061 (ix86_expand_args_builtin): Ditto.
1062 (ix86_expand_round_builtin): Ditto.
1063 (ix86_expand_special_args_builtin): Ditto.
1064 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
1065 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
1066 (udivmodqi4): Ditto.
1067 (absneg splitters): Ditto.
1068 (*jcc_bt<mode>_1): Ditto.
1069
1070 2016-04-19 Richard Biener <rguenther@suse.de>
1071
1072 PR tree-optimization/70724
1073 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
1074 restoring out from ...
1075 (free_scc_vn): ... here.
1076 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
1077 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
1078 tail merging.
1079 (pass_fre::execute): Restore SSA info.
1080
1081 2016-04-19 Richard Biener <rguenther@suse.de>
1082
1083 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
1084 * gimple-walk.c (walk_gimple_op): Initialize it.
1085 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
1086 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
1087 remapping SSA names of defs.
1088 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
1089 adjustment.
1090
1091 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
1092
1093 PR middle-end/70689
1094 * lra-constraints.c (equiv_substition_p): New.
1095 (process_alt_operands): Use it.
1096 (swap_operands): Swap it.
1097 (curr_insn_transform): Update it.
1098
1099 2016-04-18 Michael Matz <matz@suse.de>
1100
1101 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
1102 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
1103 * tree-core.h (tree_type_common.align): Use bit-field.
1104 (tree_type_common.spare): New.
1105 (tree_decl_common.off_align): Make smaller.
1106 (tree_decl_common.align): Use bit-field.
1107
1108 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
1109 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
1110 (scan_sharing_clauses): Ditto.
1111 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
1112 (omp_finish_file): Ditto.
1113 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
1114 (layout_decl): Ditto.
1115 (relayout_decl): Ditto.
1116 (finalize_record_size): Use SET_TYPE_ALIGN.
1117 (finalize_type_size): Ditto.
1118 (finish_builtin_struct): Ditto.
1119 (layout_type): Ditto.
1120 (initialize_sizetypes): Ditto.
1121 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
1122 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
1123 (lookup_field_for_decl): Use SET_DECL_ALIGN.
1124 (get_chain_field): Ditto.
1125 (get_trampoline_type): Ditto.
1126 (get_nl_goto_field): Ditto.
1127 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
1128 SET_DECL_ALIGN.
1129 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
1130 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
1131 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
1132 (build_qualified_type): Use SET_TYPE_ALIGN.
1133 (build_aligned_type, build_range_type_1): Ditto.
1134 (build_atomic_base): Ditto.
1135 (build_common_tree_nodes): Ditto.
1136 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
1137 (expand_one_stack_var_at): Ditto.
1138 * coverage.c (build_var): Use SET_DECL_ALIGN.
1139 * except.c (init_eh): Ditto.
1140 * function.c (assign_parm_setup_block): Ditto.
1141 * symtab.c (increase_alignment_1): Ditto.
1142 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
1143 * tree-vect-stmts.c (ensure_base_align): Ditto.
1144 * varasm.c (align_variable): Ditto.
1145 (assemble_variable): Ditto.
1146 (build_constant_desc): Ditto.
1147 (output_constant_def_contents): Ditto.
1148
1149 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
1150 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
1151 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
1152 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
1153 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
1154
1155 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
1156
1157 PR target/70708
1158 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
1159 replace %vmovsd with "%vmovq".
1160 (vec_concatv2df): Likewise.
1161
1162 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
1163
1164 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
1165 (*vec_extractv2si_0): Ditto.
1166 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
1167 (zero_extended_scalar_load_operand splitters): Ditto.
1168 (vec_extract splitters): Ditto.
1169 (*vec_extractv4si_0_zext): Ditto.
1170 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
1171 and lowpart_subreg.
1172 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
1173 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
1174 (*sse4_1_extractps): Use lowpart_subreg.
1175
1176 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1177
1178 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
1179 gld requirements.
1180 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
1181 Mention Solaris 11 packaging changes.
1182 Update gas and gld requirements.
1183 Remove reference to pre-Solaris 10 bug.
1184 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
1185 systems and bugs.
1186 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
1187 with cc.
1188
1189 2016-04-17 Jan Hubicka <jh@suse.cz>
1190
1191 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
1192 max_loop_iterations_int.
1193
1194 2016-04-18 Richard Biener <rguenther@suse.de>
1195
1196 PR tree-optimization/43434
1197 * tree-ssa-structalias.c (struct vls_data): New.
1198 (visit_loadstore): Handle all pointer-based accesses.
1199 (compute_dependence_clique): Compute a bitmap of restrict tags
1200 assigned bases and pass it to visit_loadstore.
1201
1202 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
1203
1204 PR target/70711
1205 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
1206 armv8.1-a and armv8.1-a+crc.
1207
1208 2016-04-18 Richard Biener <rguenther@suse.de>
1209
1210 PR tree-optimization/70701
1211 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
1212 references after translating through a memcpy.
1213
1214 2016-04-18 Richard Biener <rguenther@suse.de>
1215
1216 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
1217 (compute_antic): ... here. For partial antic use regular
1218 postorder and scrap iteration.
1219 (compute_partial_antic_aux): Remove unused return value.
1220 (init_pre): Do not allocate postorder.
1221 (fini_pre): Do not free postorder.
1222
1223 2016-04-18 Richard Biener <rguenther@suse.de>
1224
1225 PR middle-end/37870
1226 * expmed.c (extract_bit_field_1): Remove broken case
1227 using a wider MODE_INT mode.
1228
1229 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
1230
1231 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
1232 unless compiling with at least GCC-4.8.
1233
1234 2016-04-17 Jan Hubicka <jh@suse.cz>
1235
1236 PR bootstrap/70706
1237 * graphite.c (graphite_finalize): Update call to
1238 tree_estimate_probability.
1239 * predict.h (tree_estimate_probability): Update prototype.
1240
1241 2016-04-17 Jan Hubicka <jh@suse.cz>
1242
1243 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
1244 (tree_estimate_probability): Likewise.
1245 (pass_profile::execute): Update.
1246 (report_predictor_hitrates): New function.
1247 * profile.c (compute_branch_probabilities): Use it.
1248 * predict.h (report_predictor_hitrates): Declare.
1249
1250 2016-04-17 Jan Hubicka <jh@suse.cz>
1251
1252 PR ipa/70018
1253 * cgraph.h (cgraph_node::set_const_flag,
1254 cgraph_node::set_pure_flag): Update prototype to return bool;
1255 update comment.
1256 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
1257 of interposable symbol are interposable, too.
1258 (cgraph_set_const_flag_1): Rename to ...
1259 (set_const_flag_1): ... this one; change to self recursive function
1260 instead of call_for_symbol_thunks_and_aliases. Handle correctly
1261 clearnig the flag in all variants and also virtual thunks of const
1262 functions are pure; track if any change was done.
1263 (cgraph_node::set_const_flag): Update.
1264 (struct set_pure_flag_info): New struct.
1265 (cgraph_set_pure_flag_1): Rename to ...
1266 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
1267 rather than pointer encoded flags; track if any changes was done;
1268 handle correctly clearning flag and setting flag of aliases already
1269 declared const.
1270 (cgraph_node::set_pure_flag): Update.
1271 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
1272
1273 2016-04-17 Tom de Vries <tom@codesourcery.com>
1274
1275 PR other/70433
1276 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
1277 backslash in label.
1278
1279 2016-04-17 Tom de Vries <tom@codesourcery.com>
1280
1281 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
1282 '{}<> ' as escape-for-record.
1283
1284 2016-04-17 Tom de Vries <tom@codesourcery.com>
1285
1286 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
1287 structure.
1288
1289 2016-04-17 Tom de Vries <tom@codesourcery.com>
1290
1291 PR other/70185
1292 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
1293 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
1294 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
1295 * passes.c (finish_optimization_passes): Only call
1296 finish_graph_dump_file if dfi->graph_dump_initialized.
1297 (execute_function_dump, pass_init_dump_file): Use
1298 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
1299
1300 2016-04-17 Tom de Vries <tom@codesourcery.com>
1301
1302 PR tree-optimization/70256
1303 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
1304 (debug_varmap): New function.
1305
1306 2016-04-17 Tom de Vries <tom@codesourcery.com>
1307
1308 PR other/70183
1309 * passes.c (pass_manager::register_pass): Propagate pflags.
1310
1311 2016-04-17 Tom de Vries <tom@codesourcery.com>
1312
1313 PR other/68875
1314 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
1315 * passes.c (pass_manager::pass_manager): Declare and init p_start in
1316 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
1317 check if it's equal to p_start.
1318 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
1319
1320 2016-04-15 Jan Hubicka <jh@suse.cz>
1321
1322 PR ipa/70018
1323 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
1324 function does not bind to current def.
1325 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
1326 handle conservatively calls to functions that does not need to bind
1327 to current def.
1328 (check_call): Update call of worse_state.
1329 (ignore_edge_for_nothrow): Update.
1330 (ignore_edge_for_pure_const): Likewise.
1331 (propagate_pure_const): Update calls to worse_state.
1332 (skip_function_for_local_pure_const): Reformat comments.
1333
1334 2016-04-15 Jan Hubicka <jh@suse.cz>
1335
1336 PR ipa/70018
1337 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
1338 (cgraph_node::function_symbol): Likewise.
1339 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
1340 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
1341 (symtab_node::ultimate_alias_target): Add REF parameter.
1342 (symtab_node::binds_to_current_def_p): Declare.
1343 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
1344 (cgraph_node::function_symbol): Likewise.
1345 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
1346 (cgraph_node::get_availability): Likewise.
1347 (cgraph_edge::binds_to_current_def_p): New inline function.
1348 (varpool_node::get_availability): Add REF parameter.
1349 (varpool_node::ultimate_alias_target): Likewise.
1350 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
1351 (symtab_node::binds_to_current_def_p): Likewise.
1352 * varpool.c (varpool_node::get_availability): Likewise.
1353
1354 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
1355
1356 PR target/70662
1357 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
1358 Fix mode size check.
1359
1360 2016-04-15 Jakub Jelinek <jakub@redhat.com>
1361
1362 * BASE-VER: Set to 7.0.0.
1363
1364 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
1365
1366 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
1367
1368 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1369
1370 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
1371 architecture revisions.
1372
1373 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
1374
1375 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
1376 * config/i386/i386.c (ix86_using_red_zone): No longer static.
1377 * config/i386/i386.md (stack decrement to push peepholes): Guard
1378 with !x86_using_red_zone ().
1379
1380 2016-04-15 Jakub Jelinek <jakub@redhat.com>
1381
1382 PR c++/70675
1383 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
1384 to dump_generic_node.
1385 (NIY): Pass also flags to do_niy.
1386
1387 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
1388
1389 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
1390 (simd_clone_vector_of_formal_parm_types)
1391 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
1392 (simd_clone_mangle, simd_clone_create)
1393 (simd_clone_adjust_return_type, create_tmp_simd_array)
1394 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
1395 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
1396 (ipa_simd_modify_function_body, simd_clone_linear_addend)
1397 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
1398 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
1399 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
1400 * omp-simd-clone.c: ... this new file.
1401 (simd_clone_vector_of_formal_parm_types): Make it static.
1402 * Makefile.in (OBJS): Add omp-simd-clone.o.
1403
1404 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
1405
1406 PR target/70662
1407 * config/i386/sse.md: Use proper memory operand modifiers.
1408
1409
1410 2016-04-15 Richard Biener <rguenther@suse.de>
1411 Alan Modra <amodra@gmail.com>
1412
1413 PR tree-optimization/70130
1414 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
1415 when alignment stays not the same and no not use the realign
1416 scheme then.
1417
1418 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1419
1420 PR target/70669
1421 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
1422 direct move handlers for KFmode. Change TFmode handlers test from
1423 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
1424
1425 2016-04-14 Jakub Jelinek <jakub@redhat.com>
1426
1427 PR c++/70594
1428 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
1429 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
1430 (inlined_polymorphic_ctor_dtor_block_p): Use it.
1431 * tree-ssa-live.c (remove_unused_scope_block_p): When
1432 in_ctor_dtor_block, avoid discarding not just BLOCKs with
1433 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
1434 block_ultimate_origin is FUNCTION_DECL.
1435 (remove_unused_locals): If current_function_decl is
1436 polymorphic_ctor_dtor_p, pass initial true to
1437 remove_unused_scope_block_p' is_ctor_dtor_block.
1438
1439 2016-04-14 Martin Sebor <msebor@redhat.com>
1440
1441 PR c++/69517
1442 PR c++/70019
1443 PR c++/70588
1444 * doc/extend.texi (Variable Length): Revert.
1445
1446 2016-04-14 Marek Polacek <polacek@redhat.com>
1447 Jan Hubicka <hubicka@ucw.cz>
1448
1449 PR c++/70029
1450 * tree.c (verify_type): Disable the canonical type of main variant
1451 check.
1452
1453 2016-04-14 Jason Merrill <jason@redhat.com>
1454
1455 * cfgexpand.c, expr.c: Revert previous change.
1456
1457 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
1458
1459 PR middle-end/70643
1460 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
1461 when building a mem ref for the incoming reduction variable.
1462
1463 2016-04-14 Richard Biener <rguenther@suse.de>
1464
1465 PR tree-optimization/70614
1466 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
1467 loop if the evolution dropped to chrec_dont_know.
1468 (interpret_condition_phi): Likewise.
1469
1470 2016-04-14 Richard Biener <rguenther@suse.de>
1471
1472 PR tree-optimization/70623
1473 * tree-ssa-pre.c (changed_blocks): Make global ...
1474 (compute_antic): ... local here. Move and fix worklist
1475 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
1476 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
1477 worklist handling, dump when ANTIC_IN changed.
1478 (compute_partial_antic_aux): Remove worklist handling.
1479 (init_pre): Do not compute post dominators. Add a comment about
1480 the CFG order chosen.
1481 (fini_pre): Do not free post dominators.
1482
1483 2016-04-13 Martin Sebor <msebor@redhat.com>
1484
1485 PR c++/69517
1486 PR c++/70019
1487 PR c++/70588
1488 * doc/extend.texi (Variable Length): Document C++ specifics.
1489
1490 2016-04-13 Jakub Jelinek <jakub@redhat.com>
1491
1492 PR c++/70641
1493 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
1494 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
1495 eh edges have been purged.
1496
1497 PR c++/70594
1498 * tree-sra.c (create_access_replacement,
1499 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
1500 gets fancy name.
1501 * tree-pretty-print.c (dump_fancy_name): New function.
1502 (dump_decl_name, dump_generic_node): Use it.
1503
1504 2016-04-13 Jason Merrill <jason@redhat.com>
1505
1506 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
1507 * expr.c (expand_expr_real_1): Likewise.
1508
1509 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
1510
1511 * config/i386/i386.md (kunpckhi): Swap operands.
1512 (kunpcksi): Likewise.
1513 (kunpckdi): Likewise.
1514 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
1515 (vec_pack_trunc_<mode>): Likewise.
1516
1517 2016-04-13 Jakub Jelinek <jakub@redhat.com>
1518
1519 PR debug/70628
1520 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
1521
1522 PR middle-end/70633
1523 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
1524 gimplification turns some element into non-constant.
1525
1526 PR debug/70628
1527 * rtl.h (convert_memory_address_addr_space_1): New prototype.
1528 * explow.c (convert_memory_address_addr_space_1): No longer static,
1529 add NO_EMIT argument and don't call convert_modes if true, pass
1530 it down recursively, remove break after return.
1531 (convert_memory_address_addr_space): Adjust caller.
1532 * simplify-rtx.c (simplify_unary_operation_1): Call
1533 convert_memory_address_addr_space_1 instead of convert_memory_address,
1534 if it returns NULL, don't simplify.
1535
1536 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
1537
1538 PR target/70630
1539 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
1540
1541 2016-04-12 Jakub Jelinek <jakub@redhat.com>
1542
1543 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
1544 Bump the upper SIMDLEN limits, so that if the return type or
1545 characteristic type if the return type is void can be passed in
1546 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
1547 allowed.
1548
1549 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
1550
1551 PR target/70640
1552 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
1553 Do not use "=" constraint on an input constraint.
1554 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
1555 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
1556 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
1557 generates (neg (abs ...)) instead of (abs ...).
1558
1559 2016-04-12 Jakub Jelinek <jakub@redhat.com>
1560
1561 PR rtl-optimization/70596
1562 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
1563 just invalidate LRA data and reset them. Adjust dump wording.
1564
1565 2016-04-12 Martin Liska <mliska@suse.cz>
1566
1567 Revert
1568 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
1569
1570 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
1571 estimates here.
1572 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
1573 max_loop_iterations_int.
1574 (tree_unswitch_outer_loop): Likewise.
1575 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
1576 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
1577
1578 2016-04-12 Tom de Vries <tom@codesourcery.com>
1579
1580 PR tree-optimization/68756
1581 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
1582 instead of new_name.
1583
1584 2016-04-12 Jakub Jelinek <jakub@redhat.com>
1585
1586 PR tree-optimization/70602
1587 * tree-sra.c (generate_subtree_copies): Don't write anything into
1588 constant pool decls.
1589
1590 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
1591 regardless whether there are depend clauses or not.
1592
1593 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1594
1595 PR target/70381
1596 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
1597 target attribute and pragma from changing the -mfloat128
1598 and -mfloat128-hardware options.
1599
1600 * doc/extend.texi (Additional Floating Types): Document PowerPC
1601 __float128 restrictions.
1602
1603 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
1604
1605 PR target/70133
1606 * config/aarch64/driver-aarch64.c
1607 (aarch64_get_extension_string_for_isa_flags): New.
1608 (arch_extension): Rename to...
1609 (aarch64_arch_extension): ...This.
1610 (ext_to_feat_string): Rename to...
1611 (aarch64_extensions): ...This.
1612 (aarch64_core_data): Keep track of architecture extension flags.
1613 (cpu_data): Rename to...
1614 (aarch64_cpu_data): ...This.
1615 (aarch64_arch_driver_info): Keep track of architecture extension
1616 flags.
1617 (get_arch_name_from_id): Rename to...
1618 (get_arch_from_id): ...This, change return type.
1619 (host_detect_local_cpu): Update and reformat for renames, handle
1620 extensions through common infrastructure.
1621
1622 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
1623
1624 PR target/70133
1625 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
1626 track of a canonical flag name.
1627 (all_extensions): Likewise.
1628 (arch_to_arch_name): Also track extension flags enabled by the arch.
1629 (all_architectures): Likewise.
1630 (aarch64_parse_extension): Move to here.
1631 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
1632 rework.
1633 (aarch64_rewrite_selected_cpu): Update for above change.
1634 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
1635 are handled, such that the single explicit value enabled by an
1636 extension is kept seperate from the implicit values it also enables.
1637 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
1638 to here.
1639 (aarch64_parse_extension): New.
1640 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
1641 here to config/aarch64/aarch64-protos.h.
1642 (aarch64_parse_extension): Move from here to
1643 common/config/aarch64/aarch64-common.c.
1644 (aarch64_option_print): Update.
1645 (aarch64_declare_function_name): Likewise.
1646 (aarch64_start_file): Likewise.
1647 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
1648 the canonical flag for extensions.
1649 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
1650 flags.
1651
1652 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
1653
1654 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
1655 AARCH64_FL_CRC.
1656
1657 2016-04-09 Tom de Vries <tom@codesourcery.com>
1658
1659 PR tree-optimization/68953
1660 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
1661 first to last subscript.
1662
1663 2016-04-09 Jakub Jelinek <jakub@redhat.com>
1664
1665 PR tree-optimization/70586
1666 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
1667 for any calls.
1668
1669 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
1670
1671 PR lto/70289
1672 PR ipa/70348
1673 PR tree-optimization/70373
1674 PR middle-end/70533
1675 PR middle-end/70534
1676 PR middle-end/70535
1677 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
1678 clauses for acc parallel reductions as necessary. Error on those
1679 that are private.
1680 * omp-low.c (scan_sharing_clauses): Don't install variables which
1681 are used in acc parallel reductions.
1682 (lower_rec_input_clauses): Remove dead code.
1683 (lower_oacc_reductions): Add support for reference reductions.
1684 (lower_reduction_clauses): Remove dead code.
1685 (lower_omp_target): Don't remap variables appearing in acc parallel
1686 reductions.
1687 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
1688
1689 2016-04-08 Jakub Jelinek <jakub@redhat.com>
1690
1691 PR middle-end/70593
1692 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
1693 with multiple SSA_NAME defs, force the outputs other than first
1694 to be live before calling live_track_process_def on each output.
1695
1696 PR rtl-optimization/70574
1697 * fwprop.c (forward_propagate_and_simplify): Don't add
1698 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
1699 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
1700 paradoxical subregs within *loc.
1701
1702 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
1703
1704 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
1705 -ftree-parallelize-loops={0,1}.
1706 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
1707 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
1708 * config/ia64/hpux.h (LIB_SPEC): Likewise.
1709 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
1710 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
1711
1712 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
1713
1714 PR sanitizer/70541
1715 * asan.c (instrument_derefs): If we get unknown location, extract it
1716 with EXPR_LOCATION.
1717 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
1718
1719 2016-04-08 Tom de Vries <tom@codesourcery.com>
1720
1721 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
1722 implicit firstprivate clause.
1723
1724 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1725
1726 PR target/70566
1727 * config/arm/thumb2.md (tst + branch-> lsls + branch
1728 peephole below *orsi_not_shiftsi_si): Require that condition
1729 register is dead after the peephole.
1730 (second peephole after the above): Likewise.
1731
1732 2016-04-08 Alan Modra <amodra@gmail.com>
1733
1734 PR target/70117
1735 * builtins.c (fold_builtin_classify): For IBM extended precision,
1736 look at just the high-order double to test for NaN.
1737 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
1738 test just the high double for Inf but both doubles for subnormal
1739 limit.
1740
1741 2016-04-07 Jakub Jelinek <jakub@redhat.com>
1742
1743 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
1744 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
1745 node->simdclone->mask_mode != VOIDmode masks.
1746 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
1747 earlier, use it instead of node->simdclone.
1748 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
1749 Set clonei->mask_mode.
1750
1751 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
1752
1753 PR c/70436
1754 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
1755 Pass it through to cp_parser_already_scoped_statement.
1756 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
1757 it through to cp_parser_statement.
1758 (cp_parser_statement): Pass IF_P through to
1759 cp_parser_iteration_statement.
1760 (cp_parser_pragma): Adjust call to
1761 cp_parser_iteration_statement.
1762
1763 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
1764
1765 PR c/70436
1766 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
1767 resolve a future -Wparentheses warning.
1768 * omp-low.c (scan_sharing_clauses): Likewise.
1769 * tree-parloops.c (eliminate_local_variables): Likewise.
1770
1771 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
1772
1773 PR rtl-optimization/70398
1774 * lra-constraints.c (process_address_1): Check zero scale and code
1775 for reloading with zero scale.
1776
1777 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
1778
1779 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
1780 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
1781
1782 2016-04-06 Jakub Jelinek <jakub@redhat.com>
1783
1784 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
1785 Add support for AVX512F clones, include them by default for
1786 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
1787 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
1788 up to 128.
1789
1790 PR middle-end/70550
1791 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
1792 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
1793 firstprivate clauses.
1794 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
1795 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
1796 (lower_omp_target): Set TREE_NO_WARNING for
1797 non-addressable possibly uninitialized vars which are copied into
1798 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
1799
1800 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
1801
1802 * config/pa/predicates.md (integer_store_memory_operand): Accept
1803 REG+D operands with a large offset when reload_in_progress is true.
1804 (floating_point_store_memory_operand): Likewise.
1805
1806 2016-04-05 Jakub Jelinek <jakub@redhat.com>
1807
1808 PR c++/70336
1809 * match.pd (nested int casts): Limit to GIMPLE.
1810
1811 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
1812
1813 PR ipa/66223
1814 * ipa-devirt.c (maybe_record_node): Fix comment; use
1815 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
1816
1817 2016-04-05 Jakub Jelinek <jakub@redhat.com>
1818
1819 PR rtl-optimization/70542
1820 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
1821 if there are any uses other than insn or debug insns.
1822
1823 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
1824 Jakub Jelinek <jakub@redhat.com>
1825
1826 PR tree-optimization/70509
1827 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
1828 Shift HOST_WIDE_INT_1U instead of 1.
1829
1830 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
1831
1832 PR tree-optimization/70509
1833 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
1834 of the vector base type for index.
1835
1836 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
1837
1838 PR target/70510
1839 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
1840
1841 2016-04-05 Richard Biener <rguenther@suse.de>
1842
1843 PR tree-optimization/70526
1844 * tree-sra.c (build_ref_for_offset): Use prev_base to
1845 extract the alias pointer type.
1846
1847 2016-04-05 Richard Biener <rguenther@suse.de>
1848
1849 * dse.c (struct store_info): Remove alias_set member.
1850 (struct read_info_type): Likewise.
1851 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
1852 spill_deleted, clear_alias_set_lookup): Remove.
1853 (get_group_info): Remove dead base == NULL_RTX case.
1854 (dse_step0): Remove initialization of removed variables.
1855 (delete_dead_store_insn): Reomve alias set dumping.
1856 (free_read_records): Remove alias_set handling.
1857 (canon_address): Remove alias_set_out parameter.
1858 (record_store): Remove spill_alias_set, it's always zero.
1859 (check_mem_read_rtx): Likewise.
1860 (dse_step2): Rename from ...
1861 (dse_step2_nospill): ... this. Adjust.
1862 (scan_stores): Rename from ...
1863 (scan_stores_nospill): ... this.
1864 (scan_reads): Rename from ...
1865 (scan_reads_nospill): ... this.
1866 (scan_stores_spill, scan_reads_spill): Remove.
1867 (dse_step3_scan): Remove for_spills argument which is always false.
1868 (dse_step3): Likewise.
1869 (dse_step5): Rename from ...
1870 (dse_step5_nospill): ... this. Remove alias_set handling.
1871 (rest_of_handle_dse): Adjust.
1872
1873 2016-04-05 Jakub Jelinek <jakub@redhat.com>
1874
1875 PR target/70525
1876 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
1877 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
1878 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
1879 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
1880
1881 2016-04-05 Richard Biener <rguenther@suse.de>
1882
1883 PR middle-end/70499
1884 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
1885 non-register type temporaries into SSA.
1886
1887 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
1888
1889 PR ipa/66223
1890 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
1891 calls when sanitizing.
1892 (possible_polymorphic_call_target_p): Fix formatting.
1893
1894 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1895 Jakub Jelinek <jakub@redhat.com>
1896
1897 PR middle-end/70457
1898 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
1899 to ensure a call statement is compatible with a built-in's
1900 prototype.
1901 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
1902 Likewise.
1903
1904 2016-04-04 Richard Biener <rguenther@suse.de>
1905
1906 PR rtl-optimization/70484
1907 * rtl.h (canon_output_dependence): Declare.
1908 * alias.c (canon_output_dependence): New function.
1909 * dse.c (record_store): Use canon_output_dependence rather
1910 than canon_true_dependence.
1911
1912 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
1913
1914 PR ipa/68881
1915 * cgraph.h (symtab_node::copy_visibility_from): New function.
1916 * symtab.c (symtab_node::copy_visibility_from): New function.
1917 * ipa-visibility.c (optimize_weakref): New function.
1918 (function_and_variable_visibility): Use it.
1919
1920 2016-04-04 Martin Liska <mliska@suse.cz>
1921
1922 PR hsa/70402
1923 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
1924 value that is really in range handled by SBR instruction.
1925 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
1926 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
1927 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
1928
1929 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
1930
1931 PR target/70416
1932 PR target/67391
1933 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
1934 set, but not for SP_REG operands.
1935
1936 2016-04-02 Martin Sebor <msebor@redhat.com>
1937
1938 PR c++/67376
1939 * fold-const.c (maybe_nonzero_address): New function.
1940 (fold_comparison): Call it. Fold equality and relational
1941 expressions involving null pointers.
1942 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
1943
1944 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
1945
1946 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
1947 the "Y" constraint (scalar FP 0.0 immediate).
1948
1949 * gcc/config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
1950 Add the "const_double" to the list of operand constraints.
1951
1952 2016-04-01 Jakub Jelinek <jakub@redhat.com>
1953
1954 PR rtl-optimization/70467
1955 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
1956 If low word of the last operand is 0, just emit addition/subtraction
1957 for the high word.
1958
1959 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1960
1961 PR target/70404
1962 * config/s390/s390.c (s390_expand_insv): Check for everything
1963 constant instead of just VOIDmode stuff.
1964
1965 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1966
1967 PR target/70496
1968 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
1969
1970 2016-04-01 Nathan Sidwell <nathan@acm.org>
1971
1972 * tree.def (TRY_CATCH_EXPR): Correct documentation.
1973
1974 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
1975
1976 PR rtl-optimization/70461
1977 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
1978 is necessary.
1979
1980 2016-03-31 Martin Liska <mliska@suse.cz>
1981
1982 PR hsa/70399
1983 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
1984 a tree value or an immediate integer value to a buffer
1985 that is eventually copied to a BRIG section.
1986 (emit_immediate_operand): Call the function here.
1987 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
1988 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
1989 of class' fields that are removed.
1990 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
1991 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
1992 m_brig_repr_size fields.
1993
1994 2016-03-31 Martin Liska <mliska@suse.cz>
1995
1996 PR hsa/70391
1997 * hsa-gen.c (hsa_function_representation::update_dominance): New
1998 function.
1999 (convert_addr_to_flat_segment): Likewise.
2000 (gen_hsa_memory_set): New alignment argument.
2001 (gen_hsa_ctor_assignment): Likewise.
2002 (gen_hsa_insns_for_single_assignment): Provide alignment
2003 to gen_hsa_ctor_assignment.
2004 (gen_hsa_insns_for_direct_call): Add new argument.
2005 (expand_lhs_of_string_op): New function.
2006 (expand_string_operation_builtin): Likewise.
2007 (expand_memory_copy): New function.
2008 (expand_memory_set): New function.
2009 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
2010 (convert_switch_statements): Change signature.
2011 (generate_hsa): Use a return value of the function.
2012 (pass_gen_hsail::execute): Do not call
2013 convert_switch_statements here.
2014 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
2015 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
2016 (hsa_function_representation::update_dominance): New function.
2017
2018 2016-03-31 Martin Liska <mliska@suse.cz>
2019
2020 PR hsa/70391
2021 * hsa-brig.c (emit_directive_variable): Emit alignment
2022 according to hsa_symbol::m_align.
2023 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
2024 (dump_hsa_symbol): Dump alignment of HSA symbols.
2025 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
2026 (gen_hsa_addr_with_align): New function.
2027 (hsa_bitmemref_alignment): Use newly added function.
2028 (gen_hsa_insns_for_load): Likewise.
2029 (gen_hsa_insns_for_store): Likewise.
2030 (gen_hsa_memory_copy): New argument added.
2031 (gen_hsa_insns_for_single_assignment): Respect
2032 alignment for assignments processed via gen_hsa_memory_copy.
2033 (gen_hsa_insns_for_direct_call): Likewise.
2034 (gen_hsa_insns_for_return): Likewise.
2035 (gen_function_def_parameters): Set default alignment.
2036 * hsa.c (hsa_object_alignment): New function.
2037 (hsa_byte_alignment): Pasted function.
2038 * hsa.h (hsa_symbol::m_align): New field.
2039
2040 2016-03-31 Bin Cheng <bin.cheng@arm.com>
2041
2042 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
2043 scratch field for goto case.
2044
2045 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
2046
2047 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
2048
2049 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
2050
2051 PR target/70442
2052 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
2053 (scalar_chain::convert_insn): Call convert_op for reg
2054 moves to handle undefined registers.
2055
2056 2016-03-31 Nathan Sidwell <nathan@acm.org>
2057
2058 PR c++/70393
2059 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
2060 Assert we don't want to move backwards.
2061
2062 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
2063
2064 PR target/70453
2065 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
2066
2067 2016-03-31 Jakub Jelinek <jakub@redhat.com>
2068
2069 PR rtl-optimization/70460
2070 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
2071 with operand from REG_LABEL_OPERAND, instead substitute
2072 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
2073 Don't do anything for REG_NON_LOCAL_GOTO jumps.
2074
2075 2016-03-31 Martin Liska <mliska@suse.cz>
2076
2077 * passes.c (execute_one_pass): Do not call
2078 todo_after for a discarded function.
2079
2080 2016-03-31 Bin Cheng <bin.cheng@arm.com>
2081
2082 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
2083 (no_cost, infinite_cost): Initialize the new field.
2084 (get_computation_cost_at): Record setup cost.
2085 (determine_use_iv_cost_address): Skip cost computation for sub
2086 uses if we can estimate it without losing accuracy.
2087
2088 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
2089
2090 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
2091 estimates here.
2092 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
2093 max_loop_iterations_int.
2094 (tree_unswitch_outer_loop): Likewise.
2095 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
2096 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
2097
2098 2016-03-30 Richard Biener <rguenther@suse.de>
2099
2100 PR middle-end/70450
2101 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
2102
2103 2016-03-30 Jakub Jelinek <jakub@redhat.com>
2104
2105 PR target/70421
2106 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
2107 in gen_blendm expander.
2108
2109 2016-03-30 Nick Clifton <nickc@redhat.com>
2110
2111 PR target/62254
2112 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
2113 case where we are already provided with an SImode SUBREG.
2114
2115 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
2116
2117 PR target/70439
2118 * config/i386/i386.c (ix86_expand_epilogue): Properly check
2119 conflict between DRAP register and __builtin_eh_return.
2120
2121 2016-03-30 Michael Matz <matz@suse.de>
2122 Richard Biener <rguenther@suse.de>
2123
2124 PR ipa/12392
2125 * ipa-polymorphic-call.c (struct type_change_info): Change
2126 speculative to an unsigned allowing to limit the work we do.
2127 (csftc_abort_walking_p): New inline function..
2128 (check_stmt_for_type_change): Limit the number of may-defs
2129 skipped for speculative devirtualization to
2130 max-speculative-devirt-maydefs.
2131 * params.def (max-speculative-devirt-maydefs): New param.
2132 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
2133
2134 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
2135
2136 PR target/63890
2137 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
2138 and TARGET_MACHO.
2139
2140 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
2141
2142 PR tree-optimization/59124
2143 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
2144 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
2145
2146 2016-03-29 Jeff Law <law@redhat.com>
2147
2148 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
2149
2150 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
2151
2152 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
2153 to HOST_WIDE_INT.
2154
2155 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
2156
2157 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
2158 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
2159 gcrt0.o if linking dynamically.
2160
2161 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
2162
2163 PR ipa/70283
2164 * ipa-devirt.c (methods_equal_p): New function.
2165 (compare_virtual_tables): Use it.
2166 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
2167 * cgraphclones.c (clone_function_name_1): Use
2168 symbol_table::symbol_suffix_separator.
2169 * coverage.c (build_var): Likewise.
2170 * symtab.c (symbol_table::symbol_suffix_separator): New.
2171
2172 2016-03-29 Jakub Jelinek <jakub@redhat.com>
2173
2174 PR rtl-optimization/70429
2175 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
2176 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
2177 mode != result_mode.
2178
2179 PR c++/70353
2180 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
2181
2182 PR tree-optimization/70405
2183 * ssa-iterators.h (num_imm_uses): Add missing braces.
2184
2185 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
2186
2187 PR rtl-optimization/68695
2188 * ira-color.c (allocno_copy_cost_saving): New.
2189 (improve_allocation): Use it.
2190
2191 2016-03-29 Richard Henderson <rth@redhat.com>
2192
2193 PR middle-end/70355
2194 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
2195
2196 2016-03-29 Richard Biener <rguenther@suse.de>
2197
2198 PR middle-end/70424
2199 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
2200 use alignment returned by get_pointer_alignment_1 if it is
2201 bigger than BITS_PER_UNIT.
2202 * builtins.c (get_pointer_alignment_1): Do not return true
2203 for alignment extracted from SSA info.
2204
2205 2016-03-28 James Bowman <james.bowman@ftdichip.com>
2206
2207 * config/ft32/ft32.opt (mnodiv): New.
2208 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
2209 * doc/invoke.texi (FT32 Options -mnodiv): New.
2210
2211 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
2212
2213 PR target/70406
2214 * config/i386/i386.md (define_split, andn): Fix modes.
2215
2216 2016-03-26 Richard Biener <rguenther@suse.de>
2217 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2218
2219 PR ipa/70366
2220 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
2221 instead of
2222 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
2223 as 2nd argument to cl_optimization_restore().
2224
2225 2016-03-25 Richard Henderson <rth@redhat.com>
2226
2227 PR target/70120
2228 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
2229 * config/aarch64/aarch64-protos.h: Declare it.
2230 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
2231
2232 2016-03-25 Alan Modra <amodra@gmail.com>
2233
2234 PR target/70052
2235 * config/rs6000/constraints.md (j): Simplify.
2236 * config/rs6000/predicates.md (easy_fp_constant): Exclude
2237 decimal float 0.D.
2238 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
2239 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
2240 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
2241 in all constraint alternatives.
2242 (movtd_64bit_nodm): Delete "j" constraint alternative.
2243
2244 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
2245
2246 * tree-ssa-propagate.c: Enhance docs for
2247 SSA_PROP_NOT_INTERESTING.
2248
2249 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
2250
2251 * doc/extend.texi: Fix typo in documentation to pure attribute.
2252
2253 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
2254
2255 PR target/70319
2256 * config/pa/pa.md (bswapdi2): Use a scratch register.
2257
2258 2016-03-24 Richard Henderson <rth@redhat.com>
2259
2260 PR middle-end/69845
2261 * fold-const.c (extract_muldiv_1): Correct test for multiplication
2262 overflow.
2263
2264 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
2265
2266 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
2267 using ix86_expand_binary_operator instead of gen_andsi3.
2268
2269 2016-03-24 Richard Biener <rguenther@suse.de>
2270
2271 PR tree-optimization/70396
2272 * tree-vect-stmts.c (vectorizable_comparison): Use
2273 get_vectype_for_scalar_type.
2274
2275 2016-03-24 Richard Biener <rguenther@suse.de>
2276
2277 PR middle-end/70370
2278 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
2279 with register bases.
2280
2281 2016-03-24 Richard Biener <rguenther@suse.de>
2282
2283 PR tree-optimization/70372
2284 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
2285 build_all_ones_cst to also handle vector types correctly.
2286
2287 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
2288
2289 PR target/70381
2290 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
2291 -mfloat128 here.
2292
2293 2016-03-23 Marek Polacek <polacek@redhat.com>
2294
2295 PR c++/69884
2296 * doc/invoke.texi: Document -Wignored-attributes.
2297
2298 2016-03-23 Bin Cheng <bin.cheng@arm.com>
2299
2300 PR tree-optimization/69042
2301 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
2302 parameter from 30 to 40.
2303
2304 2016-03-23 Bin Cheng <bin.cheng@arm.com>
2305
2306 PR tree-optimization/69042
2307 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
2308 for use with constant offset stripped in base.
2309
2310 2016-03-23 Richard Biener <rguenther@suse.de>
2311
2312 PR middle-end/70251
2313 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
2314 mode compatibility check.
2315 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
2316
2317 2016-03-23 Jeff Law <law@redhat.com>
2318
2319 PR tree-optimization/64058
2320 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
2321 CONFLICT_COUNT.
2322 (struct ssa_conflicts): Move up earlier in the file.
2323 (conflicts_, var_map_): New static variables.
2324 (initialize_conflict_count): New function to initialize the
2325 CONFLICT_COUNT field for each conflict pair.
2326 (compare_pairs): Lazily initialize the conflict count and use it
2327 as the first tie-breaker.
2328 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
2329 and wipe conflicts_ and map_ around the call to qsort. Remove
2330 special case for 2 coalesce pairs.
2331 * bitmap.c (bitmap_count_unique_bits): New function.
2332 (bitmap_count_bits_in_word): New function, extracted from
2333 bitmap_count_bits.
2334 (bitmap_count_bits): Use bitmap_count_bits_in_word.
2335 * bitmap.h (bitmap_count_unique_bits): Declare it.
2336
2337 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
2338
2339 PR target/69917
2340 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
2341 transparent alias chain for decl assembler name.
2342 * config/sol2.c (solaris_assemble_visibility): Likewise.
2343
2344 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2345
2346 * config/arm/arm1020e.md (1020call_op): Reduce reservation
2347 duration.
2348 (v10_fdivs): Likewise.
2349 (v10_fdivd): Likewise.
2350
2351 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2352
2353 PR driver/70132
2354 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
2355 to not call fclose twice on file.
2356
2357 2016-03-23 Jakub Jelinek <jakub@redhat.com>
2358
2359 PR tree-optimization/70354
2360 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
2361 oprnd0 is wider than oprnd1 and there is a cast from the wider
2362 type to oprnd1, mask it with the mask of the narrower type.
2363
2364 PR target/70321
2365 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
2366 Optimize TARGET_STV splitters, if high or low word of last argument
2367 is 0 or -1.
2368
2369 2016-03-22 Jeff Law <law@redhat.com>
2370
2371 PR target/70232
2372 tree-ssa-threadbackward.c
2373 (fsm_find_control_statement_thread_paths): Correctly distinguish
2374 between old style jump threads vs FSM jump threads.
2375
2376 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
2377
2378 PR target/70302
2379 * config/i386/i386.c (scalar_chain::convert_op): Support
2380 uninitialized register usage case.
2381
2382 2016-03-22 Richard Biener <rguenther@suse.de>
2383
2384 PR middle-end/70251
2385 * genmatch.c (gen_transform): Adjust last parameter to a three-state
2386 int...
2387 (capture::gen_transform): ... to change behavior when substituting
2388 a condition into cond or not-cond expr context.
2389 (dt_simplify::gen_1): Adjust.
2390 * gimple-match-head.c: Include gimplify.h for unshare_expr.
2391 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
2392 last change and instead change to
2393 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
2394 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
2395
2396 2016-03-22 Anthony Green <green@moxielogic.com>
2397
2398 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
2399 issue for moxiebox targets.
2400 (CC1PLUS_SPEC): Ditto.
2401
2402 2016-03-22 Richard Biener <rguenther@suse.de>
2403
2404 PR middle-end/70333
2405 * fold-const.c (extract_muldiv_1): Properly perform multiplication
2406 in the wide type.
2407
2408 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
2409
2410 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
2411
2412 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
2413
2414 PR target/70325
2415 * config/i386/i386.c (def_builtin): Handle
2416 OPTION_MASK_ISA_AVX512VL to be and-ed with other
2417 bits.
2418 (const struct builtin_description bdesc_special_args[]):
2419 Remove duplicate ISA bits.
2420
2421 2016-03-22 Jakub Jelinek <jakub@redhat.com>
2422
2423 PR target/70329
2424 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
2425 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
2426 in a way that works also for AVX512BW.
2427
2428 PR target/70300
2429 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
2430 instead of source if operands[1] is xmm16 and above and
2431 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
2432 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
2433
2434 PR c++/70295
2435 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
2436 on assign if (*from_p) is a comparison, set it to
2437 TREE_NO_WARNING (*from_p).
2438
2439 2016-03-21 Jakub Jelinek <jakub@redhat.com>
2440
2441 PR middle-end/70326
2442 * lra.c (restore_scratches): Ignore deleted insns.
2443
2444 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
2445 Jakub Jelinek <jakub@redhat.com>
2446
2447 PR tree-optimization/70317
2448 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
2449 to HONOR_NANS.
2450
2451 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
2452
2453 PR target/70327
2454 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
2455 of ix86_expand_move.
2456 (movoi): Ditto.
2457 (movti): Use general_operand for operand 1 predicate.
2458
2459 2016-03-21 Martin Liska <mliska@suse.cz>
2460
2461 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
2462 insns.
2463 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
2464
2465 2016-03-21 Martin Liska <mliska@suse.cz>
2466
2467 PR ipa/70306
2468 * ipa-icf.c (sem_function::parse): Skip static
2469 constructors and destructors.
2470
2471 2016-03-21 Jakub Jelinek <jakub@redhat.com>
2472
2473 PR target/70296
2474 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
2475 function-like macro, peek following token(s) if it is followed
2476 by CPP_OPEN_PAREN token with optional padding in between, and
2477 if not, don't treat it like a macro.
2478
2479 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
2480 Alexander Monakov <amonakov@ispras.ru>
2481
2482 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
2483 for the stabs debug format.
2484
2485 2016-03-21 Richard Biener <rguenther@suse.de>
2486
2487 PR tree-optimization/70310
2488 * tree-vect-generic.c (expand_vector_condition): Fold the built
2489 condition.
2490
2491 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
2492
2493 PR target/70293
2494 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
2495 Block third alternative for AVX-512VL target,
2496
2497 2016-03-21 Martin Liska <mliska@suse.cz>
2498
2499 PR hsa/70234
2500 * hsa-brig.c (emit_function_directives): Mark unemitted
2501 global variables for emission.
2502 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
2503 (get_symbol_for_decl): Likewise.
2504 * hsa.h (struct hsa_symbol): New flag.
2505
2506 2016-03-21 Richard Biener <rguenther@suse.de>
2507
2508 PR tree-optimization/70288
2509 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
2510 we do not estimate unsimplified all-constant conditionals or
2511 switches as optimized away.
2512
2513 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
2514
2515 PR rtl-optimization/69102
2516 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
2517 when we have a readonly dependency context.
2518
2519 2016-03-18 Jeff Law <law@redhat.com>
2520
2521 PR rtl-optimization/70263
2522 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
2523 (update_equiv_regs): When trying to move a store to after the insn
2524 that sets the source of the store, make sure the store occurs after
2525 the insn that sets the source of the store. When successful note
2526 the REG_EQUIV note created in the dump file.
2527
2528 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
2529 Bernd Schmidt <bschmidt@redhat.com>
2530
2531 * doc/extend.texi: Document more potential problems with basic asms.
2532
2533 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
2534
2535 PR rtl-optimization/70278
2536 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
2537 VOIDmode.
2538
2539 2016-03-18 Jason Merrill <jason@redhat.com>
2540
2541 * calls.c (load_register_parameters): Fix zero size sibcall logic.
2542
2543 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
2544
2545 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
2546 values to 128b regs.
2547
2548 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
2549
2550 PR tree-optimization/70252
2551 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
2552 boolean vector has a proper number of elements.
2553 (supportable_narrowing_operation): Likewise.
2554
2555 2016-03-18 Tom de Vries <tom@codesourcery.com>
2556
2557 PR ipa/70269
2558 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
2559
2560 2016-03-18 Jakub Jelinek <jakub@redhat.com>
2561
2562 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
2563 instead of replace_rtx for DEBUG_INSNs.
2564
2565 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
2566
2567 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
2568 load type reservations.
2569
2570 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
2571
2572 PR target/70188
2573 * config/pa/constraints.md: Revert 2015-02-13 change. Use
2574 define_constraint for "Q" and "T" constraints.
2575
2576 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
2577
2578 Tweak the pipeline model for Exynos M1
2579
2580 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
2581 model.
2582
2583 2016-03-17 David Malcolm <dmalcolm@redhat.com>
2584
2585 PR c/70264
2586 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
2587 where one or both locations aren't within a line_map.
2588
2589 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
2590
2591 PR driver/70192
2592 * opts.c (finish_options): Don't set flag_pie to the default if
2593 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
2594 if it is -1.
2595
2596 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
2597
2598 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
2599 true as ALL_REGS argument to replace_rtx.
2600
2601 2016-03-17 Richard Biener <rguenther@suse.de>
2602
2603 PR debug/70271
2604 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
2605 last.
2606
2607 2016-03-17 Jakub Jelinek <jakub@redhat.com>
2608
2609 PR target/70245
2610 * rtl.h (replace_rtx): Add ALL_REGS argument.
2611 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
2612 equality and assert mode is the same, instead of just rtx pointer
2613 equality.
2614 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
2615 true as ALL_REGS argument to replace_rtx.
2616
2617 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
2618
2619 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
2620 for boolean vector with vector mode only.
2621 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
2622
2623 2016-03-17 Nick Clifton <nickc@redhat.com>
2624
2625 PR target/70162
2626 * config/rx/rx.c (rx_print_integer): Print negative constants in
2627 decimal.
2628
2629 2016-03-17 Jakub Jelinek <jakub@redhat.com>
2630
2631 PR target/70261
2632 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
2633
2634 2016-03-16 Richard Henderson <rth@redhat.com>
2635 Richard Biener <rguenth@suse.de>
2636
2637 PR middle-end/70240
2638 PR middle-end/68215
2639 PR tree-opt/68714
2640 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
2641 first operand as is_gimple_condexpr.
2642
2643 PR middle-end/70240
2644 PR middle-end/68215
2645 Revert r231575
2646 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
2647 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
2648 Do not gimplify the result.
2649 (do_unop): Adjust call to tree_vec_extract.
2650 (do_binop): Likewise.
2651 (do_compare): Likewise.
2652 (do_plus_minus): Likewise.
2653 (do_negate): Likewise.
2654 (expand_vector_condition): Likewise.
2655 (do_cond): Likewise.
2656
2657 2016-03-16 Richard Henderson <rth@redhat.com>
2658
2659 PR target/70048
2660 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
2661 (aarch64_classify_address): Use it.
2662 (aarch64_legitimize_address): Force all subexpressions of PLUS
2663 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
2664
2665 2016-03-16 Jakub Jelinek <jakub@redhat.com>
2666 Richard Biener <rguenth@suse.de>
2667
2668 PR target/70245
2669 * rtlanal.c (replace_rtx): For REG, if from is a REG,
2670 return to even if only REGNO is equal, and assert
2671 mode is the same.
2672
2673 2016-03-11 Jeff Law <law@redhat.com>
2674
2675 PR rtl-optimization/70224
2676 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
2677
2678 2016-03-16 Richard Henderson <rth@redhat.com>
2679
2680 PR middle-end/70199
2681 * function.h (struct function): Add has_forced_label_in_static.
2682 * gimplify.c (force_labels_r): Set it.
2683 * lto-streamer-in.c (input_struct_function_base): Read it.
2684 * lto-streamer-out.c (output_struct_function_base): Write it.
2685 * tree-inline.c (has_label_address_in_static_1): Remove.
2686 (copy_forbidden): Remove fndecl parameter; test
2687 has_forced_label_in_static.
2688 (inline_forbidden_p): Update call to copy_forbidden.
2689 (tree_versionable_function_p): Likewise.
2690 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
2691 (chkp_versioning): Likewise.
2692 * tree-inline.h (copy_forbidden): Update decl.
2693
2694 2016-03-16 Marek Polacek <polacek@redhat.com>
2695
2696 PR c/70093
2697 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
2698 function being thunked if the result type doesn't have fixed size.
2699 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
2700 doesn't have fixed size.
2701
2702 2016-03-16 Bin Cheng <bin.cheng@arm.com>
2703
2704 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
2705 reporting malformed loop nest.
2706
2707 2016-03-16 Tom de Vries <tom@codesourcery.com>
2708
2709 PR lto/70187
2710 * ipa-devirt.c (possible_polymorphic_call_targets): Move
2711 nodes.length () == 1 test to before first nodes[0] access.
2712
2713 2016-03-16 Tom de Vries <tom@codesourcery.com>
2714
2715 PR tree-optimization/68715
2716 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
2717 single_pred_p test.
2718
2719 2016-03-16 Tom de Vries <tom@codesourcery.com>
2720
2721 PR tree-optimization/68809
2722 * graphite-scop-detection.c (same_close_phi_node): Test if result types
2723 are the same.
2724
2725 2016-03-16 Carlos O'Donell <carlos@redhat.com>
2726 Sandra Loosemore <sandra@codesourcery.com>
2727
2728 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
2729 on leaf attribute. Mention ELF interposition problems.
2730
2731 2016-03-16 Alan Modra <amodra@gmail.com>
2732
2733 PR rtl-optimization/69195
2734 PR rtl-optimization/47992
2735 * ira.c (indirect_jump_optimize): Ignore artificial defs.
2736 Add comments.
2737
2738 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
2739
2740 PR bootstrap/69513
2741 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
2742
2743 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2744
2745 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
2746
2747 2016-03-15 Jakub Jelinek <jakub@redhat.com>
2748
2749 PR rtl-optimization/70222
2750 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
2751 optimization if mode is different from result_mode, queue up masking
2752 of the result in outer_op. Formatting fix.
2753
2754 PR middle-end/70239
2755 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
2756 of safe_grow.
2757
2758 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
2759
2760 PR rtl-optimization/69032
2761 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
2762 looping backwards over basic block insns.
2763
2764 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
2765
2766 PR target/66660
2767 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
2768 to non-speculative when propagating trap bits.
2769
2770 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
2771
2772 PR rtl-optimization/63384
2773 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
2774 DEBUG_INSN_P insns.
2775
2776 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
2777
2778 PR target/64411
2779 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
2780 factored out from ...
2781 (sched_analyze_insn): ... here.
2782 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
2783 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
2784 get_implicit_reg_pending_clobbers in it.
2785 (setup_id_reg_sets): Use setup_id_implicit_regs.
2786 (deps_init_id): Ditto.
2787
2788 2016-03-15 Tom de Vries <tom@codesourcery.com>
2789
2790 PR ipa/70161
2791 * cgraph.c (cgraph_node::get_body): Save, reset and restore
2792 dump_file_name.
2793 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
2794 execute_function_dump.
2795 (execute_one_pass): Don't dump function if it will be dumped after ipa
2796 transform.
2797
2798 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
2799
2800 * genrecog.c (match_pattern_2): If pred is NULL don't call
2801 safe_predicate_mode on it.
2802
2803 2016-03-14 Jakub Jelinek <jakub@redhat.com>
2804
2805 PR middle-end/70219
2806 * lra-constraints.c (delete_move_and_clobber): Change assertion
2807 to also allow dregno == 0.
2808
2809 2016-03-14 Richard Henderson <rth@redhat.com>
2810
2811 PR tree-opt/68714
2812 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
2813 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
2814 (reassociate_bb): Use optimize_vec_cond_expr; avoid
2815 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
2816 on vectors.
2817
2818 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
2819
2820 PR target/70083
2821 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
2822 regs.
2823 (lra_create_live_ranges_1): initialize hard register biggest_mode to
2824 VOIDmode.
2825 * lra-constraints.c (split_reg): For hard regs, try to find the
2826 biggest single-register mode used in the function.
2827
2828 2016-03-14 Richard Biener <rguenther@suse.de>
2829
2830 PR tree-optimization/56365
2831 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
2832 constants to compare against.
2833
2834 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
2835
2836 PR target/70098
2837 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
2838 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
2839 (define_split for the GPR case): Use int_reg_operand instead of
2840 gpc_reg_operand for the output.
2841
2842 2016-03-14 Tom de Vries <tom@codesourcery.com>
2843
2844 PR tree-optimization/70045
2845 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
2846 create_empty_if_region_on_edge argument.
2847
2848 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
2849
2850 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
2851 (STACK_CHECK_PROTECT): Likewise.
2852 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
2853 (STACK_CHECK_PROTECT): Likewise.
2854 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
2855 (STACK_CHECK_PROTECT): Likewise.
2856 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
2857 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2858 (STACK_CHECK_PROTECT): Likewise.
2859
2860 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
2861
2862 PR rtl-optimization/69307
2863 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
2864 registers in modes that span more than one register.
2865
2866 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
2867
2868 PR target/69614
2869 * lra-constraints.c (delete_move_and_clobber): New.
2870 (remove_inheritance_pseudos): Use it.
2871
2872 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
2873
2874 PR ada/70017
2875 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
2876 the libcall is LCT_THROW.
2877 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
2878 for the checking routine.
2879
2880 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2881
2882 PR target/70131
2883 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
2884 optimization if we have direct move.
2885 (roundu32<mode>2_fprs): Likewise.
2886
2887 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
2888
2889 PR target/70123
2890 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
2891 be rematerialized.
2892 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
2893 Arguments swapped. All callers changed. Take reg_renumber into
2894 account, and Calculate and compare register ranges for hard regs.
2895
2896 2016-03-11 Jeff Law <law@redhat.com>
2897
2898 PR tree-optimization/70190
2899 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
2900 Handle cases where we can not extract the taken edge, even though we
2901 found a constant value.
2902
2903 PR tree-optimization/64058
2904 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
2905 (num_coalesce_pairs): Move up earlier in file.
2906 (find_coalesce_pair): Initialize the INDEX field for each pair
2907 discovered.
2908 (compare_pairs): No longer sort on the elements in each pair.
2909 Instead break ties with the index of the coalesce pair.
2910
2911 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2912
2913 PR target/70002
2914 * config/aarch64/aarch64-protos.h
2915 (aarch64_save_restore_target_globals): New prototype.
2916 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
2917 Call the above when popping pragma.
2918 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
2919 New function.
2920 (aarch64_set_current_function): Rewrite using the above.
2921
2922 2016-03-11 Jakub Jelinek <jakub@redhat.com>
2923
2924 PR tree-optimization/70177
2925 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
2926 (extract_ops_from_tree): ... this. In the 2 argument
2927 overload remove _1 suffix.
2928 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
2929 (extract_ops_from_tree): ... this.
2930 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
2931 Adjust callers.
2932 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
2933 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
2934 extract_ops_from_tree instead of 2 operand one.
2935
2936 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
2937
2938 PR tree-optimization/70013
2939 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
2940 for constant-pool entries.
2941
2942 2016-03-11 Jakub Jelinek <jakub@redhat.com>
2943
2944 PR rtl-optimization/70174
2945 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
2946 followed by gen_lowpart on force_reg instead of just gen_lowpart.
2947
2948 PR tree-optimization/70169
2949 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
2950 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
2951 for unknown codes.
2952
2953 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
2954 Jakub Jelinek <jakub@redhat.com>
2955
2956 PR target/70160
2957 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
2958 of uninitialized values.
2959
2960 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2961
2962 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
2963 define_expand.
2964 ("*trunctddd2"): New pattern definition.
2965 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
2966 TD->DD truncation.
2967
2968 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2969
2970 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
2971 definitions for BFP and DFP rounding modes.
2972 ("fixuns_truncdddi2", "fixuns_trunctddi2")
2973 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
2974 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
2975 ("fix_trunctf<mode>2"): Use the new constants instead of magic
2976 numbers.
2977
2978 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2979
2980 * config/s390/constraints.md: Adjust comment.
2981 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
2982 s390_decompose_addrstyle_without_index.
2983 * config/s390/predicates.md (shift_count_or_setmem_operand):
2984 Rename to setmem_operand.
2985 * config/s390/s390-protos.h
2986 (s390_decompose_shift_count): Rename to
2987 s390_decompose_addrstyle_without_index.
2988 * config/s390/s390.c (s390_decompose_shift_count)
2989 (s390_mem_constraint, print_shift_count_operand)
2990 (print_operand_address, print_operand): Rename
2991 s390_decompose_shift_count to
2992 s390_decompose_addrstyle_without_index and rename
2993 print_shift_count_operand to print_addrstyle_operand troughout the
2994 file.
2995 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
2996 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
2997 Rename shift_count_or_setmem_operand to setmem_operand.
2998 * config/s390/vx-builtins.md ("vec_insert<mode>")
2999 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
3000 nonmemory_operand.
3001
3002 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3003
3004 PR target/70168
3005 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
3006 Handle overlapping retval and newval.
3007
3008 2016-03-10 Nick Clifton <nickc@redhat.com>
3009
3010 PR target/7044
3011 * config/aarch64/aarch64.c
3012 (aarch64_override_options_after_change_1): When forcing
3013 flag_omit_frame_pointer to be true, use a special value that can
3014 be detected if this function is called again, thus preventing
3015 flag_omit_leaf_frame_pointer from being forced to be false.
3016
3017 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3018
3019 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
3020 Set x_flag_omit_leaf_frame_pointer when handling
3021 -momit-leaf-frame-pointer.
3022
3023 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
3024
3025 PR lto/69589
3026 * cgraph.c (cgraph_node::dump): Dump split_part and
3027 indirect_call_target.
3028 * cgraph.h (cgraph_node): Add indirect_call_target flag.
3029 * ipa.c (has_addr_references_p): Cleanup.
3030 (is_indirect_call_target_p): New.
3031 (walk_polymorphic_call_targets): Do not mark virtuals that may be
3032 called indirectly as local.
3033 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
3034
3035 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
3036
3037 PR ipa/69630
3038 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
3039 on cxa_pure_virtual.
3040
3041 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
3042
3043 PR lto/69589
3044 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
3045
3046 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
3047
3048 PR lto/69589
3049 * tree.c (need_assembler_name_p): Only record main variant type names.
3050
3051 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
3052
3053 PR target/70113.
3054 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
3055 Always define to 0 or 1.
3056 (TARGET_FIX_ERR_A53_843419): New macro.
3057 * config/aarch64/aarch64-elf-raw.h
3058 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
3059 * config/aarch64/aarch64-linux.h: Likewise.
3060 * config/aarch64/aarch64.c
3061 (aarch64_override_options_after_change_1): Do not default
3062 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
3063 843419 is on.
3064 (aarch64_attributes): Handle fix-cortex-a53-843419.
3065 (aarch64_can_inline_p): Likewise.
3066 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
3067
3068 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
3069 Jakub Jelinek <jakub@redhat.com>
3070
3071 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
3072 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
3073 DECL_COMMONS if flag_unconstrained_commons is set.
3074 * tree-dfa.c (get_ref_base_and_extent): Likewise.
3075 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
3076 (funconstrained-commons): Document.
3077
3078 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
3079
3080 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
3081 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
3082
3083 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3084
3085 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
3086 has a proper number of elements.
3087
3088 2016-03-10 Alan Modra <amodra@gmail.com>
3089
3090 PR rtl-optimization/69195
3091 PR rtl-optimization/47992
3092 * ira.c (recorded_label_ref): Delete.
3093 (update_equiv_regs): Return void.
3094 (indirect_jump_optimize): New function.
3095 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
3096 before regstat_compute_ri. Don't rebuild_jump_labels here.
3097 Delete update_regstat.
3098
3099 2016-03-10 Richard Biener <rguenther@suse.de>
3100
3101 PR tree-optimization/70128
3102 * tree-ssa-structalias.c (set_uids_in_ptset): Set
3103 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
3104
3105 2016-03-09 Jakub Jelinek <jakub@redhat.com>
3106
3107 PR tree-optimization/70152
3108 * tree-sra.c (replace_removed_params_ssa_names): Copy over
3109 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
3110
3111 PR target/70086
3112 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
3113 instead of gen_sse2_loadlpd.
3114 * config/i386/sse.md (*vec_concatv2df): Rename to...
3115 (vec_concatv2df): ... this.
3116
3117 PR tree-optimization/70127
3118 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
3119
3120 2016-03-09 David Malcolm <dmalcolm@redhat.com>
3121
3122 PR c/68473
3123 PR c++/70105
3124 * diagnostic-show-locus.c (compatible_locations_p): New function.
3125 (layout::layout): Sanitize ranges using compatible_locations_p.
3126
3127 2016-03-09 David Malcolm <dmalcolm@redhat.com>
3128
3129 PR c/68473
3130 PR c++/70105
3131 * diagnostic-show-locus.c (layout_range::layout_range): Replace
3132 location_range param with three const expanded_locations * and a
3133 bool.
3134 (layout::layout): Replace call to
3135 rich_location::lazily_expand_location with get_expanded_location.
3136 Extract the range and perform location expansion here, passing
3137 the results to the layout_range ctor.
3138 * diagnostic.c (source_range::debug): Delete.
3139 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
3140 of rich_location::get_expanded_location.
3141 * gcc-rich-location.c (get_range_for_expr): Delete.
3142 (gcc_rich_location::add_expr): Reimplement to avoid the
3143 rich_location::add_range overload that took a location_range,
3144 passing a location_t instead.
3145
3146 2016-03-09 Richard Biener <rguenther@suse.de>
3147 Jakub Jelinek <jakub@redhat.com>
3148
3149 PR tree-optimization/70138
3150 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
3151 Also skip vect_double_reduction_def.
3152
3153 2016-03-09 Jakub Jelinek <jakub@redhat.com>
3154
3155 PR target/70049
3156 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
3157 if the operand is "m".
3158
3159 2016-03-09 Nathan Sidwell <nathan@acm.org>
3160
3161 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
3162
3163 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
3164
3165 * config/i386/i386.c (processor_target_table): Fix cost table
3166 intialization order for znver1.
3167
3168 2016-03-08 Jakub Jelinek <jakub@redhat.com>
3169
3170 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
3171 - becuase -> because.
3172 * ipa-reference.c (ignore_module_statics): Likewise.
3173 * cgraph.c (cgraph_node::get_body): Likewise.
3174 * ipa-inline.c (early_inliner): Likewise.
3175 * ipa-devirt.c (types_same_for_odr): Likewise.
3176 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
3177 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
3178
3179 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3180
3181 * tree-ssa-math-opts.c: Fix typo in comment.
3182
3183 2016-03-08 Jakub Jelinek <jakub@redhat.com>
3184
3185 PR target/70110
3186 * config/i386/i386.c (scalar_chain::make_vector_copies,
3187 scalar_chain::convert_reg): Call end_sequence in between
3188 get_insns and emit_conversion_insns rather than after both
3189 calls.
3190
3191 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
3192
3193 PR target/70064
3194 * config/i386/i386.h (machine_function): Add
3195 pc_thunk_call_expanded flag.
3196 (ix86_pc_thunk_call_expanded): New define.
3197 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
3198 (*set_got): Rename insn pattern from set_got.
3199 (*set_got_labelled): Rename inst pattern from set_got_labelled.
3200 * config/i386/i386.c (ix86_compute_frame_layout): Use
3201 ix86_pc_thunk_call_expanded to prevent red-zone.
3202
3203 2016-03-07 Martin Jambor <mjambor@suse.cz>
3204
3205 * hsa.h (hsa_get_ctor_statements): Declare.
3206 (hsa_get_dtor_statements): Likewise.
3207 (hsa_get_kernel_dispatch_type): Likewise.
3208 * hsa.c (hsa_get_ctor_statements): New function.
3209 (hsa_get_dtor_statements): Likewise.
3210 (hsa_get_kernel_dispatch_type): Likewise.
3211 * hsa-brig.c (hsa_cdtor_statements): Removed.
3212 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
3213 hsa_get_dtor_statements.
3214 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
3215 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
3216
3217 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
3218
3219 * config/arm/arm-cores.def (cortex-r8): New.
3220 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
3221 * config/arm/arm-tune.md: Likewise.
3222 * gcc/doc/invoke.texi: Add cortex-r8 to list of cpu values.
3223
3224 2016-03-07 Martin Sebor <msebor@redhat.com>
3225
3226 PR rtl-optimization/19705
3227 * doc/invoke.texi (Options That Control Optimization): Clarify
3228 -fno-branch-count-reg.
3229
3230 2016-02-26 Richard Biener <rguenther@suse.de>
3231 Jeff Law <law@redhat.com>
3232
3233 PR tree-optimization/69740
3234 * cfghooks.c (remove_edge): Request loop fixups if we delete
3235 an edge that might turn an irreducible loop into a natural
3236 loop.
3237 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
3238 Move after definition of loops_state_clear.
3239
3240 2016-03-07 Bin Cheng <bin.cheng@arm.com>
3241
3242 PR rtl-optimization/69052
3243 * rtlanal.c (commutative_operand_precedence): Set higher precedence
3244 to CONST_WIDE_INT.
3245
3246 2016-03-07 Tom de Vries <tom@codesourcery.com>
3247
3248 PR tree-optimization/70116
3249 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
3250 is_tm_ending stmts and ubsan/asan internal functions.
3251 (find_duplicate): Use it. Don't test is_tm_ending here.
3252
3253 2016-03-07 Richard Biener <rguenther@suse.de>
3254
3255 PR tree-optimization/70115
3256 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
3257 (propagate_constants_for_unrolling): Use replace_uses_by.
3258
3259 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
3260
3261 PR middle-end/69916
3262 * omp-low.c (struct oacc_loop): Add ifns.
3263 (new_oacc_loop_raw): Initialize it.
3264 (finish_oacc_loop): Clear mask & flags if no ifns.
3265 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
3266 (oacc_loop_xform_loop): Add ifns arg & adjust.
3267 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
3268
3269 2016-03-07 Richard Henderson <rth@redhat.com>
3270
3271 PR rtl-opt/70061
3272 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
3273 (insert_value_copy_on_edge): Likewise.
3274
3275 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3276
3277 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
3278
3279 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3280
3281 PR target/62281
3282 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
3283
3284 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
3285
3286 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
3287
3288 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
3289
3290 Fix sseimul type attribute.
3291 * config/i386/znver1.md
3292 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
3293 znver1_sseimul_avx256_load) : Fix the type attribute.
3294 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
3295 pipe usage and latency.
3296
3297 2016-03-05 Jakub Jelinek <jakub@redhat.com>
3298
3299 PR c++/70084
3300 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
3301 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
3302 to the right type.
3303
3304 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
3305
3306 PR c/69973
3307 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
3308
3309 PR rtl-optimization/69941
3310 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
3311 the reg share its mode.
3312
3313 2016-03-04 Jeff Law <law@redhat.com>
3314
3315 PR tree-optimization/69196
3316 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3317 If the both SSA_NAMEs are anonymous, then consider them unassociated
3318 and include the PHI in the statement count.
3319
3320 2016-03-05 Tom de Vries <tom@codesourcery.com>
3321
3322 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
3323 construct in oacc routine. Check for oacc region in oacc routine.
3324
3325 2016-03-04 Jakub Jelinek <jakub@redhat.com>
3326
3327 PR target/70062
3328 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
3329 2016-02-22 changes, instead don't recurse if RECUR is already true.
3330 Don't change *dynamic_check if RECUR. Adjust recursive caller
3331 to pass true to the new argument.
3332 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
3333
3334 PR target/70059
3335 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
3336 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
3337 fixes.
3338 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
3339
3340 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
3341
3342 PR rtl-optimization/57676
3343 * lra-assigns.c (lra_assign): Guard test for maximum iterations
3344 with flag_checking.
3345
3346 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
3347
3348 * tree-vect-patterns.c (search_type_for_mask): Handle
3349 comparison of booleans.
3350
3351 2016-03-04 Jakub Jelinek <jakub@redhat.com>
3352
3353 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
3354 Fix @xref usage.
3355
3356 PR debug/69947
3357 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
3358 all other ops that have dw_val_class_die_ref operands,
3359 and DW_OP_GNU_entry_value.
3360
3361 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3362
3363 PR rtl-optimization/69904
3364 * config/arm/arm.c (arm_cannot_copy_insn_p):
3365 Return true for load-exclusive instructions.
3366
3367 2016-03-03 Jakub Jelinek <jakub@redhat.com>
3368
3369 PR target/70021
3370 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
3371 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
3372 the pattern no matter if it is used just by non-pattern, pattern
3373 or mix thereof.
3374 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
3375 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
3376 oprnd1 def_stmt is in pattern, don't look through it.
3377
3378 2016-03-03 Marek Polacek <polacek@redhat.com>
3379
3380 PR middle-end/70050
3381 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
3382
3383 2016-03-03 Martin Liska <mliska@suse.cz>
3384
3385 PR tree-optimization/70043
3386 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
3387 previous statement if we see a debug statement.
3388
3389 2016-03-03 Richard Biener <rguenther@suse.de>
3390
3391 PR tree-optimization/55936
3392 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
3393 parameter and guard unsafe equivalence use.
3394 (vrp_evaluate_conditional_warnv_with_ops): Always use
3395 safe equivalences but not via the quadratic compare_names
3396 helper.
3397
3398 2016-03-03 Michael Collison <michael.collison@linaro.org>
3399
3400 PR target/70014
3401 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
3402 for operand 1 to s_register_operand. Change predicate for operand
3403 2 to arm_not_immediate_operand.
3404
3405 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
3406
3407 * doc/tm.texi: Regenerated.
3408
3409 2016-03-02 Richard Henderson <rth@redhat.com>
3410
3411 PR rtl-opt/67145
3412 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
3413 simplification when all args are positive non-fixed registers.
3414
3415 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3416
3417 * target.def (lra_p): Specify that new ports should use LRA.
3418
3419 2016-03-02 Jakub Jelinek <jakub@redhat.com>
3420
3421 PR libgomp/69555
3422 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
3423 gimplify_type_sizes the type they refer to.
3424 (omp_notice_variable): Handle reference vars to VLAs.
3425 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
3426 reference to VLA decls in the second pass instead of first pass.
3427
3428 2016-03-02 Tom de Vries <tom@codesourcery.com>
3429
3430 PR tree-optimization/68659
3431 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
3432 new_expr == NULL_TREE.
3433 (get_new_name): Handle ADDR_EXPR.
3434
3435 2016-03-02 Bin Cheng <bin.cheng@arm.com>
3436
3437 PR rtl-optimization/69052
3438 * loop-invariant.c (canonicalize_address): New function.
3439 (inv_can_prop_to_addr_use): Check validity of address expression
3440 which is canonicalized by above function.
3441
3442 2016-03-02 Alan Modra <amodra@gmail.com>
3443
3444 PR ipa/69990
3445 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
3446 larger alignment.
3447
3448 2016-03-02 Jakub Jelinek <jakub@redhat.com>
3449
3450 PR target/70028
3451 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
3452 (*movhi_internal): Put mask moves from and to memory separately
3453 from moves from/to GPRs.
3454
3455 2016-03-02 Richard Biener <rguenther@suse.de>
3456
3457 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
3458 GENERIC expressions in GIMPLE.
3459
3460 2016-03-02 Richard Biener <rguenther@suse.de>
3461
3462 * config/i386/i386.c (type_natural_mode): Fix typo.
3463
3464 2016-03-02 Nick Clifton <nickc@redhat.com>
3465
3466 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
3467
3468 2016-03-02 Richard Biener <rguenther@suse.de>
3469 Uros Bizjak <ubizjak@gmail.com>
3470
3471 PR target/67278
3472 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
3473
3474 2016-03-02 Richard Biener <rguenther@suse.de>
3475
3476 PR middle-end/67278
3477 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
3478
3479 2016-03-02 Marek Polacek <polacek@redhat.com>
3480
3481 PR c/67854
3482 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
3483 "is promoted to" warning.
3484
3485 2016-03-01 DJ Delorie <dj@redhat.com>
3486
3487 * config.gcc: Deprecate mep-*.
3488
3489 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
3490
3491 PR middle-end/70025
3492 * lra-constraints.c (regno_val_use_in): New.
3493 (match_reload): Use it instead of regno_use_in.
3494
3495 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
3496
3497 PR rtl-optimization/70007
3498 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
3499 references present in REG_EQUAL notes attached to non-SET patterns.
3500
3501 2016-03-01 Jeff Law <law@redhat.com>
3502
3503 PR tree-optimization/69196
3504 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3505 Appropriately clamp the number of statements to copy when the
3506 thread path does not traverse a loop backedge.
3507
3508 PR tree-optimization/69196
3509 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3510 Do count some PHIs in the thread path against the insn count. Decrease
3511 final statement count by one as the control statement in the last
3512 block will get removed. Remove special cased code for handling PHIs
3513 in the last block.
3514
3515 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
3516
3517 PR target/70027
3518 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
3519 asm dialect alternatives to explicit GOTPCREL calls.
3520
3521 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
3522
3523 PR ada/70017
3524 * ira.c (do_reload): Issue warning for generic stack checking here...
3525 * reload1.c (reload): ...instead of here and streamline it.
3526
3527 2016-03-01 Nick Clifton <nickc@redhat.com>
3528
3529 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
3530
3531 2016-03-01 Richard Biener <rguenther@suse.de>
3532
3533 PR tree-optimization/69983
3534 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
3535 types and fall back to operand_equal_p.
3536
3537 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3538
3539 Revert
3540 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3541
3542 * config/s390/constraints.md ("jm8"): New constraint.
3543 * config/s390/predicates.md ("const_int_8bitset_operand"): New
3544 predicate.
3545 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
3546 into ...
3547 ("*setmem_long<setmem_and>"): New pattern.
3548 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
3549 into ...
3550 ("*setmem_long_31z<setmem_and>"): New pattern.
3551 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
3552 New substitution rules with the required attributes.
3553
3554
3555 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3556
3557 Revert
3558 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3559
3560 * gensupport.c (process_substs_on_one_elem): Split loop to
3561 complete mark_operands_used_in_match_dup on all expressions in the
3562 vector first.
3563 (adjust_operands_numbers): Inline into process_substs_on_one_elem
3564 and remove function.
3565
3566 2016-03-01 Richard Biener <rguenther@suse.de>
3567
3568 PR middle-end/70022
3569 * fold-const.c (fold_indirect_ref_1): Fix range checking for
3570 vector BIT_FIELD_REF extract.
3571
3572 2016-03-01 Richard Biener <rguenther@suse.de>
3573
3574 PR tree-optimization/69994
3575 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
3576
3577 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
3578
3579 PR tree-optimization/69956
3580 * tree-vect-stmts.c (supportable_widening_operation): Support
3581 multi-step conversion of boolean vectors.
3582 (supportable_narrowing_operation): Likewise.
3583
3584 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3585
3586 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
3587 anymore.
3588
3589 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3590
3591 * config/s390/subst.md (DSI_VI): New mode iterator.
3592 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
3593 * config/s390/vector.md ("vec_set<mode>"): Move expander before
3594 the insn definition.
3595 ("*vec_set<mode>"): Change predicate and add alternative to
3596 support only either register or const_int operands as element
3597 selector.
3598 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
3599 operands.
3600 ("vec_extract<mode>"): New expander.
3601 ("*vec_extract<mode>"): New insn definition supporting reg and
3602 const_int element selectors.
3603 ("*vec_extract<mode>_plus"): New insn definition supporting
3604 reg+const_int element selectors.
3605 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
3606 following expander+insn definition.
3607 ("<vec_shifts_name><mode>3"): New expander.
3608 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
3609
3610 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3611
3612 * config/s390/s390.md ("*tabort_1"): Change predicate to
3613 nonmemory_operand. Add a second alternative to cover
3614 register as well as const int operands.
3615 ("*tabort_1_plus"): New pattern definition.
3616
3617 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3618
3619 * config/s390/s390.md ("*ashrdi3_cc_31")
3620 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
3621 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
3622 Merge insn definitions into ...
3623 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
3624 New pattern definition.
3625 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
3626 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
3627 ("*ashr<mode>3_and"): Merge insn definitions into ...
3628 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
3629 New pattern definition.
3630 * config/s390/subst.md ("addr_style_op_cc_subst")
3631 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
3632 substitutions patterns plus attributes.
3633 Add ashiftrt to SUBST iterator.
3634
3635 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3636
3637 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
3638 op2 to nonmemory_operand.
3639 ("*<shift>di3_31", "*<shift>di3_31_and"):
3640 Merge into single pattern definition ...
3641 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
3642 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
3643 pattern definition ...
3644 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
3645 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
3646 iterator.
3647
3648 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3649
3650 * config/s390/predicates.md (const_int_6bitset_operand): New
3651 predicate.
3652 * config/s390/s390.md: Include subst.md.
3653 ("rotl<mode>3"): New expander.
3654 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
3655 ...
3656 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
3657 * config/s390/subst.md: New file.
3658
3659 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3660
3661 * config/s390/s390.md ("op_type", "atype", "length" attributes):
3662 Remove RRR type. It doesn't really exist.
3663 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
3664 attributes.
3665 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
3666 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
3667 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
3668 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
3669 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
3670 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
3671 `enabled' attribute.
3672
3673 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3674
3675 * gensupport.c (process_substs_on_one_elem): Split loop to
3676 complete mark_operands_used_in_match_dup on all expressions in the
3677 vector first.
3678 (adjust_operands_numbers): Inline into process_substs_on_one_elem
3679 and remove function.
3680
3681 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
3682
3683 PR target/69706
3684 * config/sparc/sparc.c (NWORDS_UP): Rename to...
3685 (CEIL_NWORDS): ...this. Use CEIL macro.
3686 (compute_fp_layout): Adjust to above renaming.
3687 (function_arg_union_value): Likewise.
3688 (sparc_arg_partial_bytes): Likewise.
3689 (sparc_function_arg_advance): Likewise.
3690
3691 2016-02-29 Jeff Law <law@redhat.com>
3692
3693 PR tree-optimization/70005
3694 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
3695 where an object with a boolean range is compared against a value
3696 outside [0..1].
3697
3698 PR tree-optimization/69999
3699 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
3700 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
3701 loop cleanups.
3702
3703 2016-02-29 Richard Biener <rguenther@suse.de>
3704
3705 PR tree-optimization/69994
3706 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
3707 (get_unary_op): Look through nop conversions.
3708 (ops_equal_values_p): New function, look for equality diregarding
3709 nop conversions.
3710 (eliminate_plus_minus_pair): Use ops_equal_values_p
3711 (repropagate_negates): Do not use get_unary_op here.
3712
3713 2016-02-29 Martin Liska <mliska@suse.cz>
3714
3715 * system.h: Poison ENABLE_CHECKING macro.
3716
3717 2016-02-29 Martin Liska <mliska@suse.cz>
3718
3719 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
3720 is presented in dump flags.
3721 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
3722 (hsa_regalloc): Likewise.
3723
3724 2016-02-19 Richard Biener <rguenther@suse.de>
3725
3726 PR tree-optimization/69980
3727 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
3728 permutation of those we need to keep.
3729
3730 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
3731
3732 PR target/69706
3733 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
3734 (NWORDS_UP): ...this
3735 (init_cumulative_args): Minor tweaks.
3736 (sparc_promote_function_mode): Likewise.
3737 (scan_record_type): Delete.
3738 (traverse_record_type): New function template.
3739 (classify_data_t): New structure type.
3740 (classify_registers): New inline function.
3741 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
3742 exhausted. Instantiate traverse_record_type on classify_registers and
3743 deal with the case of a structure passed in slot #15 with no FP field
3744 in the first word.
3745 (assign_data_t): New structure type.
3746 (compute_int_layout): New static function.
3747 (compute_fp_layout): Likewise.
3748 (count_registers): New inline function.
3749 (assign_int_registers): New static function.
3750 (assign_fp_registers): Likewise.
3751 (assign_registers): New inline function.
3752 (function_arg_record_value_1): Delete.
3753 (function_arg_record_value_2): Likewise.
3754 (function_arg_record_value_3): Likewise.
3755 (function_arg_record_value): Adjust to above changes. Instantiate
3756 traverse_record_type on count_registers to first count the number of
3757 registers to be used and then on assign_registers to assign them.
3758 (function_arg_union_value): Adjust to above renaming.
3759 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
3760 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
3761 case of a structure passed in slot #15
3762 (sparc_function_arg_advance): Likewise.
3763 (function_arg_padding): Minor tweak.
3764
3765 2016-02-29 Richard Biener <rguenther@suse.de>
3766
3767 PR tree-optimization/69720
3768 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
3769 the adjustment_def path for possibly vectorized defs.
3770 (vect_create_epilog_for_reduction): Handle vectorized initial
3771 defs properly.
3772
3773 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
3774
3775 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
3776
3777 2016-02-27 Jeff Law <law@redhat.com>
3778
3779 Revert
3780 2016-02-26 Richard Biener <rguenther@suse.de>
3781 Jeff Law <law@redhat.com>
3782
3783 PR tree-optimization/69740
3784 * cfghooks.c (remove_edge): Request loop fixups if we delete
3785 an edge that might turn an irreducible loop into a natural
3786 loop.
3787
3788 2016-02-27 Jakub Jelinek <jakub@redhat.com>
3789
3790 PR rtl-optimization/69896
3791 * tree-vect-generic.c (get_compute_type): Avoid single element
3792 vector types.
3793
3794 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
3795
3796 Rename the AArch64 tuning option and related functions to enable the
3797 Newton series for the reciprocal square root to reflect its
3798 approximative characteristic.
3799
3800 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
3801 function to "aarch64_emit_approx_rsqrt".
3802 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
3803 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
3804 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
3805 (xgene1_tunings): Likewise.
3806 (use_rsqrt_p): Likewise.
3807 (aarch64_emit_swrsqrt): Use new function name.
3808 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
3809 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
3810 text explaining this option.
3811 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
3812
3813 2016-02-26 Jakub Jelinek <jakub@redhat.com>
3814
3815 PR target/69969
3816 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
3817 complain about -mallow-movmisalign without -mvsx if
3818 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
3819
3820 2016-02-26 Joel Sherrill <joel@rtems.org>
3821
3822 * config.gcc: Add x86_64-*-rtems*.
3823 * gcc/config/i386/rtems-64.h: New file.
3824
3825 2016-02-26 Joel Sherrill <joel@rtems.org>
3826
3827 * config.gcc: Add aarch64-*-rtems*.
3828 * gcc/config/aarch64/rtems.h: New file.
3829
3830 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
3831
3832 PR target/69946
3833 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
3834 shift amount using %h. Add comment.
3835
3836 2016-02-26 Richard Biener <rguenther@suse.de>
3837 Jeff Law <law@redhat.com>
3838
3839 PR tree-optimization/69740
3840 * cfghooks.c (remove_edge): Request loop fixups if we delete
3841 an edge that might turn an irreducible loop into a natural
3842 loop.
3843
3844 2016-02-26 Martin Jambor <mjambor@suse.cz>
3845
3846 PR middle-end/69920
3847 * tree-sra.c (sra_modify_assign): Do not remove loads of
3848 uninitialized aggregates to SSA_NAMEs.
3849
3850 2016-02-26 Richard Henderson <rth@redhat.com>
3851
3852 PR target/69709
3853 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
3854 pseudo in case the target rtx matches the source of the left
3855 shift.
3856
3857 2016-02-26 Martin Jambor <mjambor@suse.cz>
3858
3859 PR hsa/69568
3860 * hsa.h (hsa_type_packed_p): Declare.
3861 * hsa.c (hsa_type_packed_p): New function.
3862 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
3863 loads.
3864 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
3865 * hsa-brig.c (emit_basic_insn): Likewise.
3866
3867 2016-02-26 Martin Jambor <mjambor@suse.cz>
3868
3869 pr hsa/69674
3870 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
3871 pointers.
3872 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
3873
3874 2016-02-26 Martin Jambor <mjambor@suse.cz>
3875
3876 * hsa.h (is_a_helper): New overload for hsa_op_immed for
3877 hsa_op_with_type operands.
3878 (hsa_unsigned_type_for_type): Declare.
3879 * hsa.c (hsa_unsigned_type_for_type): New function.
3880 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
3881 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
3882 the finalizer. Do not emit extra move.
3883
3884 2016-02-26 Martin Jambor <mjambor@suse.cz>
3885
3886 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
3887 atomic operations in private segment.
3888
3889 2016-02-26 Martin Jambor <mjambor@suse.cz>
3890
3891 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
3892 statements to wi->info. Also disallow omp simd constructs.
3893 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
3894 for not gridifying. Dump special string for omp_for.
3895
3896 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3897
3898 PR target/69245
3899 * config/aarch64/aarch64.c (aarch64_set_current_function):
3900 Save/restore target globals when switching to
3901 target_option_default_node.
3902
3903 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3904
3905 PR target/69613
3906 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
3907 Return 0 if !SHIFT_COUNT_TRUNCATED.
3908
3909 2016-02-26 Jakub Jelinek <jakub@redhat.com>
3910 Eric Botcazou <ebotcazou@adacore.com>
3911
3912 PR rtl-optimization/69891
3913 * dse.c (scan_insn): If we can't figure out memset arguments
3914 or they are non-constant, call clear_rhs_from_active_local_stores.
3915
3916 2016-02-26 Martin Liska <mliska@suse.cz>
3917
3918 * doc/extend.texi: Mention clog10, clog10f an clog10l
3919 in Builtins section.
3920
3921 2016-02-26 Martin Liska <mliska@suse.cz>
3922
3923 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
3924 CHECKING_P.
3925 (resolve_args_picking_1): Likewise.
3926 * dwarf2out.h (struct GTY): Likewise.
3927
3928 2016-02-26 Martin Liska <mliska@suse.cz>
3929
3930 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
3931 with flag_checking.
3932 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
3933
3934 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
3935 Martin Liska <mliska@suse.cz>
3936
3937 * doc/install.texi: Mention --enable-valgrind-annotations.
3938
3939 2016-02-26 Richard Biener <rguenther@suse.de>
3940
3941 PR tree-optimization/69551
3942 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
3943 looking through aliases adjust DECL_PT_UID to refer to the
3944 ultimate alias target.
3945
3946 2016-02-25 Martin Liska <mliska@suse.cz>
3947
3948 PR middle-end/69919
3949 * alloc-pool.c (after_memory_report): New variable.
3950 * alloc-pool.h (base_pool_allocator ::release): Do not use
3951 the infrastructure if after_memory_report.
3952 * toplev.c (toplev::main): Mark after memory report.
3953
3954 2016-02-25 Richard Biener <rguenther@suse.de>
3955
3956 PR tree-optimization/48795
3957 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
3958
3959 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
3960
3961 PR driver/68463
3962 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
3963 offloading is enabled and -fopenacc or -fopenmp is specified.
3964 (CRTOFFLOADEND): Likewise.
3965 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
3966 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
3967 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
3968 (offload_objects_file_name): New static var.
3969 (tool_cleanup): Remove offload_objects_file_name file.
3970 (find_offloadbeginend): Replace with ...
3971 (find_crtoffloadtable): ... this.
3972 (run_gcc): Remove offload_argc and offload_argv.
3973 Get offload_objects_file_name from -foffload-objects=... option.
3974 Read names of object files with offload from this file, pass them to
3975 compile_images_for_offload_targets. Don't call find_offloadbeginend and
3976 don't pass offloadbegin and offloadend to the linker. Don't pass
3977 offload non-LTO files to the linker, because now they're not claimed.
3978
3979 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
3980
3981 PR ipa/69630
3982 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
3983 on builtin_unreachable.
3984
3985 2016-02-25 Jakub Jelinek <jakub@redhat.com>
3986
3987 PR rtl-optimization/69896
3988 * regcprop.c: Include cfgrtl.h.
3989 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
3990 than remembered mode, either delete it (if noop_move_p), or
3991 treat like copy_p but not noop_p instruction.
3992
3993 2016-02-24 Jakub Jelinek <jakub@redhat.com>
3994
3995 PR debug/69705
3996 * dwarf2out.c (gen_variable_die): Work around buggy LTO
3997 - allow NULL decl for Fortran DW_TAG_common_block variables.
3998
3999 2016-02-24 Jason Merrill <jason@redhat.com>
4000
4001 * common.opt (flifetime-dse): Add -flifetime-dse=1.
4002
4003 2016-02-24 Richard Biener <rguenther@suse.de>
4004 Jakub Jelinek <jakub@redhat.com>
4005
4006 PR middle-end/69760
4007 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
4008 conditionally executed ops to well-defined overflow behavior.
4009
4010 2016-02-24 Jakub Jelinek <jakub@redhat.com>
4011
4012 PR middle-end/69915
4013 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
4014 elements.
4015
4016 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4017
4018 PR rtl-optimization/69886
4019 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
4020 argument. Use it when checking validity of set instructions.
4021 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
4022 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
4023 callsite.
4024 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
4025 * store-motion.c (find_moveable_store): Update
4026 can_assign_to_reg_without_clobbers_p callsite.
4027
4028 2016-02-24 Richard Biener <rguenther@suse.de>
4029
4030 PR middle-end/68963
4031 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
4032 bogus check.
4033 (record_nonwrapping_iv): Do not fall back to the low/high bound
4034 for non-constant IV bases if the stmt is not always executed.
4035
4036 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4037
4038 * config/arm/arm-cores.def (cortex-a32): New entry.
4039 * config/arm/arm-tables.opt: Regenerate.
4040 * config/arm/arm-tune.md: Regenerate.
4041 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
4042 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
4043 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
4044 for -mcpu and -mtune.
4045
4046 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4047
4048 PR target/69875
4049 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
4050 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
4051 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
4052 (atomic_loaddi_1): Delete.
4053 (atomic_loaddi): Rewrite expander using the above changes.
4054
4055 2016-02-24 Jakub Jelinek <jakub@redhat.com>
4056
4057 PR c/69918
4058 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
4059 2 to 3.
4060
4061 2016-02-24 Jakub Jelinek <jakub@redhat.com>
4062 Richard Biener <rguenth@suse.de>
4063
4064 PR middle-end/69909
4065 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
4066 set_mem_attributes if tem is SSA_NAME which got expanded
4067 as a MEM.
4068
4069 2016-02-24 Richard Biener <rguenther@suse.de>
4070
4071 PR tree-optimization/69907
4072 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
4073 end of permutations for BB vectorization.
4074
4075 2016-02-24 Christian Bruel <christian.bruel@st.com>
4076
4077 * config/arm/arm-c.c (arm_option_override): Initialize
4078 target_option_current_node.
4079 * config/arm/arm.c (arm_pragma_target_parse): Replace
4080 build_target_option_node call by target_option_current_node.
4081 Set target_option_current_node.
4082 Fix comments.
4083
4084 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
4085
4086 PR target/69810
4087 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
4088 define_insn_and_split to define_insn.
4089 (zero_extendqi<mode>2_dot2): Same.
4090 (extendqi<mode>2_dot): Same.
4091 (extendqi<mode>2_dot2): Same.
4092
4093 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
4094
4095 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
4096 and add bypass for AES{D,E} and AESMC pairs.
4097 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
4098 and AESMC pairs.
4099
4100 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
4101
4102 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
4103 series for reciprocal square root in Exynos M1.
4104
4105 2016-02-23 Martin Sebor <msebor@redhat.com>
4106
4107 PR c/69759
4108 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
4109 __builtin_alloca_with_align.
4110
4111 2016-02-23 Richard Henderson <rth@redhat.com>
4112
4113 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
4114 (ix86_register_pragmas): Remove __seg_tls.
4115 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
4116 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
4117 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
4118 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
4119 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
4120 * doc/extend.texi (__seg_tls): Remove item.
4121
4122 2016-02-23 Richard Biener <rguenther@suse.de>
4123
4124 * alloc-pool.h (struct allocation_object): Make id member
4125 conditional on CHECKING_P again.
4126 (get_instance): Adjust.
4127 (base_pool_allocator): Likewise.
4128
4129 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
4130
4131 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
4132 (parallelize_loops): In OpenACC kernels mode, set n_threads to
4133 zero.
4134 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
4135 flag_openacc.
4136 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
4137
4138 2016-02-23 Richard Biener <rguenther@suse.de>
4139
4140 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
4141 * bitmap.h (struct bitmap_usage): Likewise.
4142 (bitmap_move): Declare.
4143 * bitmap.c (register_overhead): Take size_t argument.
4144 (bitmap_move): New function.
4145 * df-problems.c (df_rd_transfer_function): Use bitmap_move
4146 to properly account overhead.
4147 * tree.c (free_node): Use tree_size.
4148
4149 2016-02-23 Jakub Jelinek <jakub@redhat.com>
4150
4151 PR c++/69902
4152 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
4153 when inverting comparison.
4154
4155 PR c/69900
4156 * common.opt (Wunreachable-code): Add Warning flag.
4157
4158 2016-02-23 Mark Wielaard <mjw@redhat.com>
4159 Jakub Jelinek <jakub@redhat.com>
4160
4161 PR c/69911
4162 * cgraphunit.c (check_global_declaration): Check main_input_filename
4163 and DECL_SOURCE_FILE are not NULL.
4164
4165 2016-02-23 Martin Jambor <mjambor@suse.cz>
4166
4167 PR tree-optimization/69666
4168 * tree-sra.c (sra_modify_assign): Do not attempt to create
4169 default_def replacements for unscalarizable regions.
4170
4171 2016-02-20 Mark Wielaard <mjw@redhat.com>
4172
4173 PR c/28901
4174 * cgraphunit.c (check_global_declaration): Check level of
4175 warn_unused_const_variable and main_input_filename.
4176 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
4177 (-Wunused-variable): For C implies -Wunused-const-variable=1.
4178 (-Wunused-const-variable): Explain levels 1 and 2.
4179
4180 2016-02-22 Jakub Jelinek <jakub@redhat.com>
4181
4182 PR target/69888
4183 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
4184 identical arguments. Formatting and spelling fixes.
4185
4186 PR target/69885
4187 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
4188 be specified.
4189
4190 PR target/69894
4191 PR target/69895
4192 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
4193 and m68k-devices.def.
4194 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
4195 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
4196
4197 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
4198
4199 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
4200 and HImode registers.
4201
4202 2016-02-22 Richard Biener <rguenther@suse.de>
4203
4204 PR tree-optimization/69882
4205 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
4206 preserve permutations present because of gaps.
4207 (vect_supported_load_permutation_p): Always continue checking
4208 permutations after vect_attempt_slp_rearrange_stmts.
4209
4210 2016-02-22 Bin Cheng <bin.cheng@arm.com>
4211
4212 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
4213 min_profitable_estimate, rather than min_profitable_iters.
4214
4215 2016-02-22 Jakub Jelinek <jakub@redhat.com>
4216
4217 PR target/69885
4218 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
4219 SImode for last match_operand.
4220
4221 2016-02-22 Martin Liska <mliska@suse.cz>
4222
4223 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
4224 return bitsize - 1 as the return value.
4225
4226 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
4227
4228 PR target/69806
4229 PR target/54089
4230 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
4231 Handle negative shift counts.
4232 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
4233 force_reg on the shift constant.
4234 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
4235 (lshrsi3_d): Handle negative shift counts.
4236
4237 2016-02-22 Richard Biener <rguenther@suse.de>
4238 Tom de Vries <tom@codesourcery.com>
4239
4240 * graph.c: Include dumpfile.h.
4241 (print_graph_cfg): Split into three overloads.
4242 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
4243
4244 2016-02-22 Tom de Vries <tom@codesourcery.com>
4245
4246 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
4247 dump-fn.
4248
4249 2016-02-22 Richard Biener <rguenther@suse.de>
4250
4251 PR ipa/37448
4252 * ipa-inline-transform.c (inline_call): When not updating
4253 overall summaries adjust self size by the growth estimate.
4254 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
4255 hash-set, do not update overall summaries here. Renamed from ...
4256 (inline_to_all_callers): ... this which is now wrapping the
4257 above and performing delayed overall summary update.
4258 (early_inline_small_functions): Delay updating of the overall
4259 summary.
4260
4261 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
4262
4263 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
4264 variable.
4265
4266 2016-02-19 Jakub Jelinek <jakub@redhat.com>
4267
4268 PR driver/69805
4269 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
4270 :%* in %:gt() argument.
4271 (greater_than_spec_func): Adjust for expecting only numbers,
4272 if there are more than two numbers, compare the last two.
4273
4274 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
4275
4276 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
4277 -Wnarrowing with -std.
4278
4279 2016-02-19 Jakub Jelinek <jakub@redhat.com>
4280
4281 PR c++/69851
4282 * expr.c (store_field): Don't use bit-field path if exp is
4283 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
4284 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
4285 and the assignment can be performed by bitwise copy. Formatting
4286 fix.
4287
4288 PR middle-end/69838
4289 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
4290 call copy_reg_eh_region_note_forward on before and/or after sequences
4291 and remove note from insn if it no longer can throw.
4292
4293 PR target/69820
4294 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
4295 if TARGET_AVX512BW.
4296
4297 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4298
4299 * config/s390/vector.md: Add missing commutative operand markers
4300 to the patterns which qualify for one.
4301 * config/s390/vx-builtins.md: Likewise.
4302
4303 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4304
4305 * config/s390/vector.md (VI, VI_QHS): Add single element vector
4306 types to mode iterators.
4307 (vec_double): ... and mode attribute.
4308 * config/s390/vx-builtins.md (non_vec_int): Likewise.
4309
4310 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4311
4312 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
4313 Change the predicate of op2 from nonimmediate to general and let
4314 reload fix it if necessary.
4315
4316 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4317
4318 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
4319
4320 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4321
4322 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
4323 mode.
4324
4325 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4326
4327 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
4328 * config/s390/s390.c (s390_expand_vec_movstr): New function.
4329 * config/s390/s390.md ("movstr<P:mode>"): Call
4330 s390_expand_vec_movstr.
4331
4332 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4333
4334 * config/s390/s390.md: Add missing output modifier for operand 1
4335 to print it as address properly.
4336
4337 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4338
4339 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
4340 * config/s390/2964.md: New file.
4341 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
4342 of insn grouping attributes depending on the CPU level.
4343 (s390_get_unit_mask): New function.
4344 (s390_sched_score): Remove the OOO from the scheduling macros.
4345 Add loop to calculate a score for the instruction mix.
4346 (s390_sched_reorder): Likewise plus improve debug output.
4347 (s390_sched_variable_issue): Rename macros as above. Calculate
4348 the unit distances after actually scheduling an insn. Improve
4349 debug output.
4350 (s390_sched_init): Clear last_scheduled_unit_distance array.
4351 * config/s390/s390.md: Include 2964.md.
4352
4353 2016-02-18 Jakub Jelinek <jakub@redhat.com>
4354
4355 PR target/69671
4356 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
4357 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
4358 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
4359 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
4360 *avx512f_<code>v8div16qi2_mask_1): New insns.
4361
4362 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
4363
4364 PR target/68404
4365 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
4366 2016-02-09 change.
4367
4368 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
4369 earlyclobber from target. Use wF constraint for fused memory
4370 address.
4371 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
4372
4373 2016-02-18 Jakub Jelinek <jakub@redhat.com>
4374 Martin Liska <mliska@suse.cz>
4375
4376 PR sanitizer/69863
4377 * cfgexpand.c (asan_sanitize_stack_p): New function.
4378 (partition_stack_vars): Use the function.
4379 (expand_stack_vars): Likewise.
4380 (defer_stack_allocation): Likewise.
4381 (expand_used_vars): Likewise.
4382
4383 2016-02-18 Richard Biener <rguenther@suse.de>
4384
4385 PR middle-end/69553
4386 * fold-const.c (operand_equal_p): Properly compare offsets for
4387 IMAGPART_EXPR and ARRAY_REF.
4388
4389 2016-02-18 Nick Clifton <nickc@redhat.com>
4390
4391 PR target/62254
4392 PR target/69610
4393 * config/arm/arm.c (arm_option_override_internal): Disable
4394 interworking if the target does not support thumb instructions.
4395 (arm_reload_in_hi): Handle the case where a register to register
4396 move needs reloading because there is no simple pattern to handle
4397 it.
4398 (arm_reload_out_hi): Likewise.
4399
4400 2016-02-18 Richard Biener <rguenther@suse.de>
4401
4402 PR middle-end/69854
4403 * match.pd: Don't use fold_binary or fold_unary for folding
4404 constants.
4405
4406 2016-02-17 Jakub Jelinek <jakub@redhat.com>
4407
4408 PR c++/69850
4409 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
4410 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
4411 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
4412 warn on gimple_no_warning_p statements.
4413
4414 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
4415
4416 * doc/extend.texi (C++ Attributes): Correct description of
4417 warn_unused type attribute.
4418
4419 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4420
4421 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
4422 correct instruction.
4423
4424 2016-02-17 Richard Biener <rguenther@suse.de>
4425
4426 PR rtl-optimization/69609
4427 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
4428 (find_traces_1_round): When ending a trace update cached priority
4429 of successors.
4430 (bb_to_key): Use cached priority when available.
4431 (copy_bb): Initialize cached priority.
4432 (reorder_basic_blocks_software_trace_cache): Likewise.
4433
4434 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4435
4436 PR target/69161
4437 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
4438 New predicate.
4439 (aarch64_comparison_operator): Break overly long line into two.
4440 (aarch64_comparison_operation): Likewise.
4441 * config/aarch64/aarch64.md (cstorecc4): Use
4442 aarch64_comparison_operator_mode instead of
4443 aarch64_comparison_operator.
4444 (cstore<mode>4): Likewise.
4445 (aarch64_cstore<mode>): Likewise.
4446 (*cstoresi_insn_uxtw): Likewise.
4447 (cstore<mode>_neg): Likewise.
4448 (*cstoresi_neg_uxtw): Likewise.
4449
4450 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4451
4452 PR target/69161
4453 * config/arm/predicates.md (arm_comparison_operator_mode):
4454 New predicate.
4455 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
4456 instead of arm_comparison_operator.
4457 (*mov_negscc): Likewise.
4458 (*mov_notscc): Likewise.
4459 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
4460 (*thumb2_mov_negscc): Likewise.
4461 (*thumb2_mov_negscc_strict_it): Likewise.
4462 (*thumb2_mov_notscc): Likewise.
4463 (*thumb2_mov_notscc_strict_it): Likewise.
4464
4465 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
4466
4467 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
4468 Add missing return.
4469
4470 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
4471
4472 * config/visium/visium.c (machine_libfunc_index): New enum.
4473 (machine_libfuncs): New structure.
4474 (visium_libfuncs): New static variable.
4475 (TARGET_INIT_LIBFUNCS): Define to...
4476 (visium_init_libfuncs): ...this. New function.
4477 (expand_block_move_4): Use the appropriate libfunc.
4478 (expand_block_move_2): Likewise.
4479 (expand_block_move_1): Likewise.
4480 (expand_block_set_4): Likewise.
4481 (expand_block_set_2): Likewise.
4482 (expand_block_set_1): Likewise.
4483 (visium_trampoline_init): Likewise.
4484
4485 2016-02-17 Nick Clifton <nickc@redhat.com>
4486
4487 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
4488 TI's devices.csv file as of March 2016.
4489
4490 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
4491
4492 PR Target/48344
4493 * opts-global.c (handle_common_deferred_options): Introduce and
4494 initialize two global variables to remember command-line options
4495 specifying a stack-limiting register.
4496 * opts.h: Add extern declarations of the two new global variables.
4497 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
4498 variable based on the values of the two new global variables.
4499
4500 2016-02-16 Jakub Jelinek <jakub@redhat.com>
4501
4502 PR c/69835
4503 * common.opt (Wnonnull-compare): New warning.
4504 * doc/invoke.texi (-Wnonnull): Remove text about comparison
4505 of arguments against NULL.
4506 (-Wnonnull-compare): Document.
4507 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
4508 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
4509 * passes.def (pass_warn_nonnull_compare): Add.
4510 * gimple-ssa-nonnull-compare.c: New file.
4511
4512 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
4513
4514 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
4515 AARCH64_EXTRA_TUNE_RECIP_SQRT.
4516
4517 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
4518
4519 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
4520 reciprocal sqrt for -mlow-precision-recip-sqrt.
4521
4522 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
4523 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4524
4525 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
4526 always use lane loads to construct non-constant vectors.
4527
4528 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
4529
4530 * config/aarch64/aarch64.md
4531 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
4532 constraints for operand 3.
4533 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
4534
4535 2016-02-16 Jakub Jelinek <jakub@redhat.com>
4536 Richard Biener <rguenther@suse.de>
4537
4538 PR tree-optimization/69820
4539 * tree-vect-patterns.c (type_conversion_p): Return false if
4540 *orig_type is unsigned single precision or boolean.
4541 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
4542 Formatting fix.
4543
4544 2016-02-16 Jakub Jelinek <jakub@redhat.com>
4545
4546 PR rtl-optimization/69764
4547 PR rtl-optimization/69771
4548 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
4549 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
4550
4551 2016-02-16 Richard Biener <rguenther@suse.de>
4552
4553 PR tree-optimization/69776
4554 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
4555 sets from caller.
4556 (indirect_refs_may_alias_p): Likewise.
4557 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
4558 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
4559 according to tbaa_p.
4560 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
4561 (optimize_stmt): For redundant store discovery do not allow tbaa.
4562
4563 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
4564
4565 PR tree-optimization/69714
4566 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
4567 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
4568
4569 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
4570
4571 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
4572 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
4573 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
4574 * config/arc/arc.c (arc_init): Check FPU options.
4575 (get_arc_condition_code): Handle new CC_FPU* modes.
4576 (arc_select_cc_mode): Likewise.
4577 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
4578 register pair only. Allow access for ARCv2 accumulator.
4579 (gen_compare_reg): Whenever we have FPU support use FPU compare
4580 instructions.
4581 (arc_reorg): Don't generate brcc insns when FPU compare
4582 instructions are involved.
4583 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
4584 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
4585 floating point emulation.
4586 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
4587 (REVERSE_CONDITION): Add new CC_FPU* modes.
4588 (TARGET_FP_SP_BASE): Define.
4589 (TARGET_FP_DP_BASE): Likewise.
4590 (TARGET_FP_SP_FUSED): Likewise.
4591 (TARGET_FP_DP_FUSED): Likewise.
4592 (TARGET_FP_SP_CONV): Likewise.
4593 (TARGET_FP_DP_CONV): Likewise.
4594 (TARGET_FP_SP_SQRT): Likewise.
4595 (TARGET_FP_DP_SQRT): Likewise.
4596 (TARGET_FP_DP_AX): Likewise.
4597 * config/arc/arc.md (ARCV2_ACC): New constant.
4598 (type): New fpu type attribute.
4599 (SDF): Conditional iterator.
4600 (cstore<mode>, cbranch<mode>): Change expand condition.
4601 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
4602 handles FPU/FPX cases as well.
4603 * config/arc/arc.opt (mfpu): New option.
4604 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
4605 Renamed.
4606 (adddf3, muldf3, subdf3): Removed.
4607 * config/arc/predicates.md (proper_comparison_operator): Recognize
4608 CC_FPU* modes.
4609 * config/arc/fpu.md: New file.
4610 * doc/invoke.texi (ARC Options): Document mfpu option.
4611
4612 2016-02-16 Richard Biener <rguenther@suse.de>
4613
4614 PR rtl-optimization/69291
4615 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
4616 noce_operand_ok check.
4617
4618 2016-02-16 Tom de Vries <tom@codesourcery.com>
4619
4620 PR lto/67709
4621 * omp-low.c (simd_clone_create): Remove call to
4622 symtab->call_cgraph_insertion_hooks.
4623
4624 2016-02-16 Jakub Jelinek <jakub@redhat.com>
4625
4626 PR tree-optimization/69802
4627 * tree-ssa-reassoc.c (update_range_test): If op is
4628 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
4629 op == 1 test of precision 1 integral op, otherwise handle
4630 that case as op itself. Fix up formatting.
4631 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
4632 up formatting.
4633
4634 2016-02-16 Richard Biener <rguenther@suse.de>
4635
4636 PR tree-optimization/69586
4637 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
4638 types for conversion sources.
4639
4640 2016-02-16 Richard Biener <rguenther@suse.de>
4641
4642 PR middle-end/69801
4643 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
4644 mask OEP_ADDRESS_OF.
4645
4646 2016-02-16 Alan Modra <amodra@gmail.com>
4647
4648 PR target/68973
4649 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
4650 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
4651 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
4652 (p8_mtvsrwz): New.
4653 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
4654 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
4655 (p8_fmrgow_<mode>): Likewise.
4656 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
4657 changes.
4658 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
4659 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
4660 to use movdi_internal64. Remove op0_di.
4661 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
4662
4663 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
4664
4665 Add support for the FCCMP insn types
4666
4667 * config/aarch64/aarch64.md (fccmp): Change insn type.
4668 (fccmpe): Likewise.
4669 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
4670 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
4671 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
4672 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
4673 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
4674 * config/arm/types.md (fccmps): Add new insn type.
4675 (fccmpd): Likewise.
4676
4677 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
4678
4679 * alias.c (get_alias_set): Fix a typo in comment.
4680
4681 2016-02-15 Richard Biener <rguenther@suse.de>
4682
4683 PR tree-optimization/69595
4684 * match.pd: Complete range test simplification to true.
4685
4686 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
4687
4688 PR rtl-optimization/69648
4689 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
4690 pic_offset_table_rtx.
4691
4692 PR rtl-optimization/69752
4693 * ira.c (update_equiv_regs): When looking for more than a single SET,
4694 also take other side effects into account.
4695
4696 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
4697
4698 * config/s390/s390.c (s390_function_profiler): Add a new sequence
4699 for z900+ CPUs in 31-bit mode.
4700
4701 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
4702
4703 * common/config/s390/s390-common.c (s390_supports_split_stack):
4704 New function.
4705 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
4706 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
4707 * config/s390/s390.c (struct machine_function): New field
4708 split_stack_varargs_pointer.
4709 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
4710 in s390_emit_prologue.
4711 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
4712 vararg pointer.
4713 (morestack_ref): New global.
4714 (SPLIT_STACK_AVAILABLE): New macro.
4715 (s390_expand_split_stack_prologue): New function.
4716 (s390_live_on_entry): New function.
4717 (s390_va_start): Use split-stack vararg pointer if appropriate.
4718 (s390_asm_file_end): Emit the split-stack note sections.
4719 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
4720 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
4721 (UNSPECV_SPLIT_STACK_CALL): New unspec.
4722 (UNSPECV_SPLIT_STACK_DATA): New unspec.
4723 (split_stack_prologue): New expand.
4724 (split_stack_space_check): New expand.
4725 (split_stack_data): New insn.
4726 (split_stack_call): New expand.
4727 (split_stack_call_*): New insn.
4728 (split_stack_cond_call): New expand.
4729 (split_stack_cond_call_*): New insn.
4730
4731 2016-02-15 Richard Biener <rguenther@suse.de>
4732
4733 PR tree-optimization/69783
4734 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
4735 Add trivially correct cases.
4736
4737 2016-02-15 Tom de Vries <tom@codesourcery.com>
4738
4739 PR lto/69655
4740 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
4741 do_force_output.
4742 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
4743
4744 2016-02-15 Richard Biener <rguenther@suse.de>
4745
4746 PR tree-optimization/69776
4747 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
4748 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
4749 indicate whether we can use TBAA to disambiguate against stores.
4750 Use alias-set zero if not.
4751 (visit_reference_op_store): Do not use TBAA when looking up
4752 redundant stores.
4753 * tree-ssa-pre.c (compute_avail): Use TBAA here.
4754 (eliminate_dom_walker::before_dom_children): But not when looking
4755 up redundant stores.
4756
4757 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
4758
4759 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
4760
4761 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
4762
4763 * config/i386/znver1.md
4764 (znver1_pop, znver1_pop_mem,
4765 znver1_load_imov_double_store,
4766 znver1_load_imov_direct_store,
4767 znver1_load_imov_direct_load,
4768 znver1_load_imov_double_load): Add new.
4769 (znver1_insn, znver1_insn_load): Add icmov type.
4770 (znver1_sseavx_fma,
4771 znver1_sseavx_fma_load,
4772 znver1_avx256_fma,
4773 znver1_avx256_fma_load): Fix pipe usage.
4774
4775 2016-02-14 Alan Modra <amodra@gmail.com>
4776
4777 PR target/68973
4778 * reloads.c (find_reloads_address_1): For pre/post-inc/dec
4779 with an invalid hard reg, reload just the reg not the entire
4780 pre/post-inc/dec address expression.
4781
4782 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
4783
4784 PR target/67260
4785 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
4786 fixed R1_REG scratch reg.
4787 (sibcall_value_pcrel_fdpic): Likewise.
4788
4789 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
4790
4791 PR target/67636
4792 PR target/64345
4793 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
4794
4795 2016-02-12 Walter Lee <walt@tilera.com>
4796
4797 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
4798 * config/tilegx/t-tilegx: Likewise.
4799
4800 2016-02-12 David Malcolm <dmalcolm@redhat.com>
4801
4802 PR other/69554
4803 * diagnostic-show-locus.c (struct line_span): New struct.
4804 (layout::get_first_line): Delete.
4805 (layout::get_last_line): Delete.
4806 (layout::get_num_line_spans): New member function.
4807 (layout::get_line_span): Likewise.
4808 (layout::print_heading_for_line_span_index_p): Likewise.
4809 (layout::get_expanded_location): Likewise.
4810 (layout::calculate_line_spans): Likewise.
4811 (layout::m_first_line): Delete.
4812 (layout::m_last_line): Delete.
4813 (layout::m_line_spans): New field.
4814 (layout::layout): Update comment. Replace m_first_line and
4815 m_last_line with m_line_spans, replacing their initialization
4816 with a call to calculate_line_spans.
4817 (diagnostic_show_locus): When printing source lines and
4818 annotations, rather than looping over a single span
4819 of lines, instead loop over each line_span within
4820 the layout, with an inner loop over the lines within them.
4821 Call the context's start_span callback when changing line spans.
4822 * diagnostic.c (diagnostic_initialize): Initialize start_span.
4823 (diagnostic_build_prefix): Break out the building of the location
4824 part of the string into...
4825 (diagnostic_get_location_text): ...this new function, rewriting
4826 it from nested ternary expressions to a sequence of "if"
4827 statements.
4828 (default_diagnostic_start_span_fn): New function.
4829 * diagnostic.h (diagnostic_start_span_fn): New typedef.
4830 (diagnostic_context::start_span): New field.
4831 (default_diagnostic_start_span_fn): New prototype.
4832
4833 2016-02-12 David Malcolm <dmalcolm@redhat.com>
4834
4835 PR driver/69779
4836 * gcc.c (driver::finalize): Fix cleanup of "specs".
4837
4838 2016-02-12 David Malcolm <dmalcolm@redhat.com>
4839
4840 PR driver/69265
4841 PR driver/69453
4842 * gcc.c (driver::driver): Initialize m_option_suggestions.
4843 (driver::~driver): Clean up m_option_suggestions.
4844 (suggest_option): Convert to...
4845 (driver::suggest_option): ...this, and split out into
4846 driver::build_option_suggestions and find_closest_string.
4847 (driver::build_option_suggestions): New function, from
4848 first half of suggest_option. Special-case
4849 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
4850 the sanitizer_opts array. For options of enum types, add the
4851 various enum values to the candidate strings.
4852 (driver::handle_unrecognized_options): Remove "const".
4853 * gcc.h (driver::handle_unrecognized_options): Likewise.
4854 (driver::build_option_suggestions): New decl.
4855 (driver::suggest_option): New decl.
4856 (driver::m_option_suggestions): New field.
4857 * opts-common.c (add_misspelling_candidates): New function.
4858 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
4859 and make non-static.
4860 * opts.h (sanitizer_opts): New array decl.
4861 (add_misspelling_candidates): New function decl.
4862 * spellcheck.c (find_closest_string): New function.
4863 * spellcheck.h (find_closest_string): New function decl.
4864
4865 2016-02-12 Jakub Jelinek <jakub@redhat.com>
4866
4867 PR rtl-optimization/69764
4868 PR rtl-optimization/69771
4869 * optabs.c (expand_binop_directly): For shift_optab_p, force
4870 convert_modes with VOIDmode if xop1 has VOIDmode.
4871
4872 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
4873
4874 PR target/69729
4875 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
4876 to correctly determine instrumentation thunks.
4877
4878 2016-02-12 Jakub Jelinek <jakub@redhat.com>
4879
4880 PR ipa/69241
4881 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
4882 type by reference, force lhs on the call.
4883
4884 PR ipa/68672
4885 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
4886 Compute retval and retbnd early in all cases if split_part_return_p
4887 and return_bb is not EXIT. Remove all clobber stmts and reset
4888 all debug stmts that refer to SSA_NAMEs defined in split part,
4889 except if it is retval, in that case replace the old retval with the
4890 lhs of the call to the split part.
4891
4892 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
4893
4894 revert:
4895 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
4896
4897 PR middle-end/66726
4898 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
4899 whose result is used in PHI.
4900 (maybe_optimize_range_tests): Likewise.
4901 (final_range_test_p): Likweise.
4902
4903 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
4904
4905 PR middle-end/66726
4906 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
4907 whose result is used in PHI.
4908 (maybe_optimize_range_tests): Likewise.
4909 (final_range_test_p): Likweise.
4910
4911 2016-02-12 Jakub Jelinek <jakub@redhat.com>
4912
4913 * cgraph.c: Spelling fixes - behaviour -> behavior and
4914 neighbour -> neighbor.
4915 * target.def: Likewise.
4916 * sel-sched.c: Likewise.
4917 * config/mips/mips.c: Likewise.
4918 * config/arc/arc.md: Likewise.
4919 * config/arm/cortex-a57.md: Likewise.
4920 * config/arm/arm.c: Likewise.
4921 * config/arm/neon.md: Likewise.
4922 * config/arm/arm-c.c: Likewise.
4923 * config/vms/vms-c.c: Likewise.
4924 * config/s390/s390.c: Likewise.
4925 * config/i386/znver1.md: Likewise.
4926 * config/i386/i386.c: Likewise.
4927 * config/ia64/hpux-unix2003.h: Likewise.
4928 * config/msp430/msp430.md: Likewise.
4929 * config/rx/rx.c: Likewise.
4930 * config/rx/rx.md: Likewise.
4931 * config/aarch64/aarch64-simd.md: Likewise.
4932 * config/aarch64/aarch64.c: Likewise.
4933 * config/nvptx/nvptx.c: Likewise.
4934 * config/bfin/bfin.c: Likewise.
4935 * config/cris/cris.opt: Likewise.
4936 * config/rs6000/rs6000.c: Likewise.
4937 * target.h: Likewise.
4938 * spellcheck.c: Likewise.
4939 * ira-build.c: Likewise.
4940 * tree-inline.c: Likewise.
4941 * builtins.c: Likewise.
4942 * lra-constraints.c: Likewise.
4943 * explow.c: Likewise.
4944 * hwint.h: Likewise.
4945 * targhooks.c: Likewise.
4946 * tree-vect-data-refs.c: Likewise.
4947 * expr.c: Likewise.
4948 * doc/tm.texi: Likewise.
4949 * doc/extend.texi: Likewise.
4950 * doc/install.texi: Likewise.
4951 * doc/md.texi: Likewise.
4952 * tree-ssa-tail-merge.c: Likewise.
4953 * sched-int.h: Likewise.
4954 * match.pd: Likewise.
4955 * sched-ebb.c: Likewise.
4956 * target.def (omit_struct_return_reg): Likewise.
4957 * gimple-ssa-isolate-paths.c: Likewise.
4958 (find_implicit_erroneous_behaviour): Renamed to...
4959 (find_implicit_erroneous_behavior): ... this.
4960 (find_explicit_erroneous_behaviour): Renamed to...
4961 (find_explicit_erroneous_behavior): ... this.
4962 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
4963
4964 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
4965
4966 PR rtl-optimization/64682
4967 PR rtl-optimization/69567
4968 PR rtl-optimization/69737
4969 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
4970 in I2 as well, just lose it.
4971
4972 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4973
4974 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
4975 New variable.
4976 (aarch64_last_printed_tune_string): Likewise.
4977 (aarch64_declare_function_name): Only output .arch assembler
4978 directive if it will be different from the previously output
4979 directive. Same for .tune comment but only if -dA is set.
4980 (aarch64_start_file): New function.
4981 (TARGET_ASM_FILE_START): Define.
4982
4983 2016-02-11 David Malcolm <dmalcolm@redhat.com>
4984
4985 PR plugins/69758
4986 * Makefile.in (PLUGIN_HEADERS): Add params.list.
4987
4988 2016-02-11 Jakub Jelinek <jakub@redhat.com>
4989
4990 PR target/65313
4991 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
4992 -Wmaybe-uninitialized warning.
4993
4994 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
4995
4996 PR target/69713
4997 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
4998
4999 2016-02-11 Richard Biener <rguenther@suse.de>
5000
5001 PR rtl-optimization/69291
5002 * ifcvt.c (noce_try_store_flag_constants): Do not allow
5003 subexpressions affected by changing the result.
5004
5005 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
5006
5007 PR target/69148
5008 * lra-constraints.c (curr_insn_transform): Find in/out operands
5009 for secondary memory moves. Update dups.
5010
5011 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
5012
5013 PR tree-optimization/69652
5014 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
5015 to nested loop, did source re-formatting, skip debug statements,
5016 add check on statement with volatile operand, remove dead scalar
5017 statements.
5018
5019 2016-02-10 Jakub Jelinek <jakub@redhat.com>
5020 Patrick Palka <ppalka@gcc.gnu.org>
5021
5022 PR ipa/69241
5023 PR c++/69649
5024 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
5025 calls if the return type is TREE_ADDRESSABLE.
5026 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
5027 * ipa-split.c (split_function): Fix doubled "we" in comment.
5028 Use void return type for the split part even if
5029 !split_point->split_part_set_retval.
5030
5031 2016-02-10 Bin Cheng <bin.cheng@arm.com>
5032
5033 PR tree-optimization/68021
5034 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
5035 when computing the value of biv cand by itself.
5036
5037 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
5038
5039 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
5040 (cortexa57_tunings): Likewise.
5041 (cortexa72_tunings): Likewise.
5042 (arch_macro_fusion_pair_p): Add support for AES fusion.
5043 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
5044 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
5045 Allow virtual registers before reload so early scheduling works.
5046 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
5047 correct latency and pipeline.
5048 (cortex_a57_crypto_complex): Likewise.
5049 (cortex_a57_crypto_xor): Likewise.
5050 (define_bypass): Add AES bypass.
5051
5052 2016-02-10 Richard Biener <rguenther@suse.de>
5053
5054 PR tree-optimization/69726
5055 * passes.def: Add DCE pass before late uninit.
5056 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
5057 really fixup if-conversions job.
5058
5059 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
5060
5061 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
5062 (arm_cortex_a57_tune): Likewise.
5063 (aarch_macro_fusion_pair_p): Add support for AES fusion.
5064 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
5065
5066 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
5067
5068 * timevar.def (TV_PHASE_DBGINFO): Delete.
5069 (TV_PHASE_CHECK_DBGINFO): Likewise.
5070 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
5071
5072 2016-02-10 Richard Biener <rguenther@suse.de>
5073
5074 PR tree-optimization/69719
5075 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
5076 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
5077
5078 2016-02-09 Andrew Pinski <apinski@cavium.com>
5079
5080 PR tree-opt/69282
5081 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
5082 get_vcond_mask_icode returns false.
5083
5084 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
5085
5086 PR target/68404
5087 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
5088 an ADDIS that adds a pointer to a large constant that sets the
5089 upper16 bits with a load operation.
5090
5091 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
5092
5093 PR target/68532
5094 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
5095 order.
5096 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
5097 endian.
5098 (vzipq_s16): Likewise.
5099 (vzipq_s32): Likewise.
5100 (vzipq_f32): Likewise.
5101 (vzipq_u8): Likewise.
5102 (vzipq_u16): Likewise.
5103 (vzipq_u32): Likewise.
5104 (vzipq_p8): Likewise.
5105 (vzipq_p16): Likewise.
5106
5107 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
5108
5109 PR target/68532
5110 * config/arm/arm.c (neon_endian_lane_map): New function.
5111 (neon_vector_pair_endian_lane_map): New function.
5112 (arm_evpc_neon_vuzp): Allow for big endian lane order.
5113 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
5114 endian.
5115 (vuzpq_s16): Likewise.
5116 (vuzpq_s32): Likewise.
5117 (vuzpq_f32): Likewise.
5118 (vuzpq_u8): Likewise.
5119 (vuzpq_u16): Likewise.
5120 (vuzpq_u32): Likewise.
5121 (vuzpq_p8): Likewise.
5122 (vuzpq_p16): Likewise.
5123
5124 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
5125
5126 PR target/69634
5127 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
5128 debug insns.
5129
5130 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
5131
5132 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
5133 truncate const_int operand 1 to QImode.
5134
5135 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
5136
5137 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
5138 corresponding to an abnormal edge.
5139
5140 2016-02-09 Tom de Vries <tom@codesourcery.com>
5141
5142 PR tree-optimization/69599
5143 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
5144 function.
5145 (find_func_aliases_for_builtin_call, find_func_clobbers)
5146 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
5147 partition.
5148
5149 2016-02-09 Richard Biener <rguenther@suse.de>
5150
5151 PR tree-optimization/69715
5152 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
5153 LHS on calls as non-rewritable.
5154
5155 2016-02-09 Tom de Vries <tom@codesourcery.com>
5156
5157 PR lto/69707
5158 * lto-wrapper.c (append_diag_options): New function.
5159 (compile_offload_image): Call append_diag_options.
5160
5161 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
5162
5163 PR other/69722
5164 * doc/extend.texi (Flag Output Operands): Correct sectioning.
5165 Minor copy-edit to fix verb tenses.
5166
5167 2016-02-08 Jakub Jelinek <jakub@redhat.com>
5168
5169 PR tree-optimization/69209
5170 * ipa-split.c (split_function): If split part is not
5171 returning retval, retval has gimple type but is not
5172 gimple value, force it into a SSA_NAME first.
5173
5174 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
5175
5176 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
5177 outdated section.
5178
5179 2016-02-08 Jason Merrill <jason@redhat.com>
5180
5181 PR c++/69631
5182 * convert.c (convert_to_integer_1): Check dofold on truncation
5183 distribution.
5184 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
5185 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
5186 Rename from *_nofold.
5187 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
5188 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
5189
5190 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
5191
5192 PR target/60410
5193 * tree.c (build_common_tree_nodes): Remove short_double argument.
5194 All callers changed.
5195 * tree.h (build_common_tree_nodes): Adjust declaration.
5196 * doc/invoke.texi (-fshort-double): Remove documentation.
5197 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
5198 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
5199 * lto-wrapper.c (merge_and_complain, append_compiler_options)
5200 (append_linker_options): Don't handle OPT_fshort_double.
5201
5202 PR rtl-optimization/68730
5203 * lra-remat.c (insn_to_cand_activation): New static variable.
5204 (lra_remat): Allocate and free it.
5205 (create_cand): New arg activation. Initialize a field in
5206 insn_to_cand_activation if it is nonnull.
5207 (create_cands): Pass the activation insn to create_cand when making
5208 a candidate involving an output reload. Reorganize code a little.
5209 (do_remat): Keep track of active status of candidates in a separate
5210 bitmap.
5211
5212 2016-02-08 Richard Biener <rguenther@suse.de>
5213
5214 PR tree-optimization/69719
5215 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
5216 Properly use absolute of the difference of the two offsets to
5217 compare or adjust the segment length.
5218
5219 2016-02-08 Richard Biener <rguenther@suse.de>
5220 Jeff Law <law@redhat.com>
5221
5222 PR target/68273
5223 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
5224 types for anonymous SSA names.
5225
5226 2016-02-08 Richard Biener <rguenther@suse.de>
5227
5228 PR rtl-optimization/69274
5229 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
5230
5231 2016-02-08 Jeff Law <law@redhat.com>
5232
5233 PR tree-optimization/65917
5234 * tree-ssa-dom.c (record_temporary_equivalences): Record both
5235 equivalences from if (x == y) style conditionals.
5236 (loop_depth_of_name): Remove.
5237 (record_equality): Remove loop depth check.
5238 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
5239 (const_and_copies::record_const_or_copy_raw): New member function.
5240 * tree-ssa-scopedtables.c
5241 (const_and_copies::record_const_or_copy_raw): New, factored out of
5242 (const_and_copies::record_const_or_copy): Call new member function.
5243
5244 2016-02-05 Jeff Law <law@redhat.com>
5245
5246 PR tree-optimization/68541
5247 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
5248 (count_stmts_in_block): New function.
5249 (poor_ifcvt_candidate_code): Likewise.
5250 (is_feasible_trace): Add some heuristics to determine when path
5251 splitting is profitable.
5252 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
5253 is a diamond with a single exit.
5254
5255 2016-02-05 Martin Sebor <msebor@redhat.com>
5256
5257 PR c++/69662
5258 * doc/invoke.texi: Update -Wplacement-new to take an optional
5259 argument.
5260
5261 2016-02-06 Richard Henderson <rth@redhat.com>
5262
5263 PR c/69643
5264 * tree.c (tree_nop_conversion_p): Do not strip casts into or
5265 out of non-standard address spaces.
5266
5267 2016-02-05 Jakub Jelinek <jakub@redhat.com>
5268
5269 PR rtl-optimization/69691
5270 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
5271
5272 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
5273
5274 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
5275 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
5276 (*ieee128_mfvsrd_64bit): Likewise.
5277 (*ieee128_mfvsrd_32bit): Likewise.
5278
5279 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
5280
5281 PR target/69369
5282 Revert r232560:
5283 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
5284
5285 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
5286 instrumented_version.
5287
5288 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
5289
5290 * doc/invoke.texi (Optimize Options): In table of --param options
5291 rename second occurrence of tracer-min-branch-ratio to
5292 tracer-min-branch-probability, rename
5293 tracer-min-branch-ratio-feedback to
5294 tracer-min-branch-probability-feedback and clarify description,
5295 rename sched-spec-state-edge-prob-cutoff to
5296 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
5297 to selsched-insns-to-rename, rename lto-minpartition to
5298 lto-min-partition, delete reorder-blocks-duplicate and
5299 reorder-blocks-duplicate-feedback.
5300
5301 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5302
5303 * config/s390/s390.c (s390_register_info_set_ranges): Remove
5304 superfluous loops.
5305
5306 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
5307
5308 * doc/extend.texi: S/390: Correct some typos.
5309
5310 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5311
5312 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
5313
5314 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5315
5316 PR target/69625
5317 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
5318 (s390_register_info_gprtofpr): Use new macros above.
5319 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
5320 its name.
5321 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
5322 its name. Adjust restore and save gpr ranges.
5323 (s390_register_info_set_ranges): New function.
5324 (s390_register_info): Use new macros above. Call
5325 s390_register_info_set_ranges.
5326 (s390_optimize_register_info): Likewise.
5327 (s390_hard_regno_rename_ok): Use new macros.
5328 (s390_hard_regno_scratch_ok): Likewise.
5329 (s390_emit_epilogue): Likewise.
5330 (s390_can_use_return_insn): Likewise.
5331 (s390_optimize_prologue): Likewise.
5332 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
5333
5334 2016-02-05 Jakub Jelinek <jakub@redhat.com>
5335
5336 PR bootstrap/69677
5337 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
5338 alignment fixes.
5339 (ix86_option_override_internal): Disable TARGET_STV even for
5340 -m{incoming,preferred}-stack-boundary=3.
5341
5342 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5343
5344 * config.gcc: Mark deprecated rtems targets as obsolete.
5345
5346 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
5347
5348 PR rtl-optimization/64682
5349 PR rtl-optimization/69567
5350 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
5351 before I2 only if the register is both used and set in I2.
5352
5353 2016-02-04 DJ Delorie <dj@redhat.com>
5354
5355 * config/msp430/msp430.c (msp430_start_function): Add function type.
5356
5357 2016-02-04 Jakub Jelinek <jakub@redhat.com>
5358
5359 PR fortran/69368
5360 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
5361
5362 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
5363
5364 PR rtl-optimization/69577
5365 Revert:
5366 2015-10-29 Richard Henderson <rth@redhat.com>
5367
5368 PR target/68124
5369 PR rtl-opt/67609
5370 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
5371 sse check to the exact conditions of PR 67609.
5372
5373 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
5374
5375 PR target/69667
5376 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
5377 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
5378 not allowed into the traditional Altivec registers.
5379 (movtd_64bit_nodm): Likewise.
5380 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
5381
5382 2016-02-04 David Malcolm <dmalcolm@redhat.com>
5383
5384 * config/aarch64/cortex-a57-fma-steering.c
5385 (aarch64_register_fma_steering): Remove "static" from arguments
5386 to register_pass.
5387
5388 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
5389
5390 PR target/69619
5391 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
5392 twice when complex.
5393
5394 2016-02-04 Mike Frysinger <vapier@gentoo.org>
5395
5396 * doc/invoke.texi: Delete -mno-fma4.
5397
5398 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
5399
5400 PR rtl-optimization/69577
5401 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
5402 (find_subregs_of_mode): Update accordingly. Iterate over partial
5403 definitions.
5404
5405 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
5406
5407 * config/arm/arm-protos.h (neon_reinterpret): Remove.
5408 * config/arm/arm.c (neon_reinterpret): Remove.
5409 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
5410 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
5411 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
5412 vreinterpretti): Remove.
5413 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
5414 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
5415 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
5416 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
5417 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
5418 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
5419 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
5420 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
5421 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
5422 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
5423 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
5424 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
5425 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
5426 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
5427 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
5428 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
5429 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
5430 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
5431 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
5432 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
5433 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
5434 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
5435 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
5436 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
5437 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
5438 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
5439 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
5440 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
5441 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
5442 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
5443 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
5444 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
5445 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
5446 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
5447 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
5448 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
5449 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
5450 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
5451 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
5452 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
5453 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
5454 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
5455 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
5456 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
5457 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
5458 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
5459 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
5460 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
5461 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
5462 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
5463 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
5464 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
5465 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
5466 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
5467 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
5468 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
5469 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
5470 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
5471 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
5472 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
5473 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
5474 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
5475 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
5476 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
5477 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
5478 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
5479 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
5480 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
5481 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
5482 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
5483 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
5484 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
5485 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
5486 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
5487 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
5488 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
5489 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
5490 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
5491 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
5492 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
5493 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
5494 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
5495 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
5496 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
5497 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
5498 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
5499 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
5500 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
5501 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
5502 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
5503 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
5504 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
5505 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
5506 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
5507 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
5508 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
5509 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
5510 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
5511 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
5512 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
5513 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
5514 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
5515 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
5516
5517 2016-02-04 Martin Liska <mliska@suse.cz>
5518
5519 PR sanitizer/69276
5520 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
5521 that are gimple_store_p.
5522 (maybe_instrument_call): Likewise.
5523
5524 2016-02-04 Bin Cheng <bin.cheng@arm.com>
5525
5526 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
5527 register scaling out of memory reference and comment why.
5528
5529 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5530
5531 PR target/65932
5532 PR target/67714
5533 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
5534 folding the source of a SET.
5535
5536 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5537
5538 PR target/65932
5539 PR target/67714
5540 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
5541 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
5542
5543 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
5544
5545 PR target/65932
5546 PR target/67714
5547 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
5548 HImode.
5549
5550 2016-02-04 Christian Bruel <christian.bruel@st.com>
5551
5552 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
5553 * config/arm/arm.c (arm_set_current_function): Likewise.
5554
5555 2016-02-04 Jakub Jelinek <jakub@redhat.com>
5556 Ilya Enkovich <enkovich.gnu@gmail.com>
5557 H.J. Lu <hongjiu.lu@intel.com>
5558
5559 PR target/69454
5560 * config/i386/i386.c (convert_scalars_to_vector): Remove
5561 stack alignment fixes.
5562 (ix86_option_override_internal): Disable TARGET_STV if stack
5563 might not be aligned enough.
5564 (ix86_minimum_alignment): Assert that TARGET_STV is false.
5565
5566 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
5567
5568 * gcc/config/i386/x86-tune.def: Disable default prefetching
5569 for -march=znver1.
5570
5571 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
5572 Vladimir Makarov <vmakarov@redhat.com>
5573
5574 PR target/69461
5575 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
5576 in validating fused toc addresses.
5577
5578 2016-02-03 Jakub Jelinek <jakub@redhat.com>
5579
5580 PR c/69627
5581 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
5582 range->m_caret fields if range->m_show_caret_p is false.
5583
5584 PR target/69644
5585 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
5586 Force oldval into register if it does not satisfy reg_or_short_operand
5587 predicate. Fix up formatting.
5588
5589 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
5590 Alexandre Oliva <aoliva@redhat.com>
5591
5592 PR target/69461
5593 * lra-constraints.c (simplify_operand_subreg): Check additionally
5594 address validity after potential reloading.
5595 (process_address_1): Check insns validity. In case of failure do
5596 nothing.
5597
5598 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
5599
5600 PR target/69118
5601 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
5602 Fix target.
5603
5604 2016-02-02 Jakub Jelinek <jakub@redhat.com>
5605
5606 * wide-int.cc (canonize_uhwi): New function.
5607 (wi::divmod_internal): Use it.
5608
5609 2016-02-02 James Norris <jnorris@codesourcery.com
5610
5611 * gimplify.c (omp_notice_variable): Add usage check.
5612
5613 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
5614
5615 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
5616 like LE, GE, LT, GT when emitting relational operator.
5617
5618 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
5619
5620 * ira-costs.c (find_costs_and_classes): Add extra argument.
5621 * target.def (ira_change_pseudo_allocno_class): Add parameter.
5622 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
5623 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
5624 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
5625 Add best_class parameter, and return it if not ALL_REGS.
5626 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
5627 Add parameter.
5628 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
5629 Update target hook.
5630
5631 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
5632
5633 * config/aarch64/aarch64.c
5634 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
5635 (aarch64_ira_change_pseudo_allocno_class): New function.
5636
5637 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
5638
5639 PR target/67032
5640 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
5641
5642 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5643
5644 * config/avr/avr.c (avr_option_override): Set
5645 PARAM_ALLOW_STORE_DATA_RACES to 1.
5646
5647 2016-02-02 Richard Biener <rguenther@suse.de>
5648
5649 PR tree-optimization/69595
5650 * match.pd: Add range test simplifications to true/false.
5651
5652 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
5653
5654 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
5655 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
5656 instead.
5657
5658 2016-02-02 Richard Biener <rguenther@suse.de>
5659
5660 PR tree-optimization/69606
5661 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
5662 info on the result before moving a stmt.
5663
5664 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
5665
5666 PR middle-end/68542
5667 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
5668 branch with vector comparison.
5669 * config/i386/sse.md (VI48_AVX): New mode iterator.
5670 (define_expand "cbranch<mode>4): Add support for conditional branch
5671 with vector comparison.
5672 * tree-vect-loop.c (optimize_mask_stores): New function.
5673 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
5674 has_mask_store field of vect_info.
5675 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
5676 vectorized loops having masked stores after vec_info destroy.
5677 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
5678 correspondent macros.
5679 (optimize_mask_stores): Add prototype.
5680
5681 2016-02-02 Alan Modra <amodra@gmail.com>
5682
5683 PR target/69548
5684 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
5685 allow subregs.
5686
5687 2016-02-02 Alan Modra <amodra@gmail.com>
5688
5689 PR target/68662
5690 * config/rs6000/rs6000.c (need_toc_init): New var, set it
5691 whenever toc_label_name used.
5692 (rs6000_file_start): Don't set up toc section here,
5693 (rs6000_output_function_epilogue): do so here instead,
5694 (rs6000_xcoff_file_start): and here.
5695 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
5696 (load_toc_aix_di): Likewise.
5697
5698 2016-02-01 Jakub Jelinek <jakub@redhat.com>
5699
5700 PR rtl-optimization/69592
5701 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
5702 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
5703 (num_sign_bit_copies_binary_arith_p): New inline function.
5704 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
5705
5706 2016-02-01 Jeff Law <law@redhat.com>
5707
5708 PR tree-optimization/69580
5709 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
5710 * tree-ssa-threadbackward.c
5711 (fsm_find_control_statement_thread_paths): Do not try to walk
5712 through large PHI nodes.
5713
5714 2016-02-01 Jakub Jelinek <jakub@redhat.com>
5715
5716 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
5717 when count is incremented above limit, don't analyze further
5718 insns afterwards.
5719
5720 * omp-low.c (oacc_parse_default_dims): Avoid
5721 -Wsign-compare warning, make sure value fits into int
5722 rather than just unsigned int.
5723
5724 2016-02-01 Bin Cheng <bin.cheng@arm.com>
5725
5726 PR tree-optimization/67921
5727 * fold-const.c (split_tree): New parameters. Convert pointer
5728 type variable part to proper type before negating.
5729 (fold_binary_loc): Pass new arguments to split_tree.
5730
5731 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
5732
5733 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
5734 (nvptx_goacc_validate_dims): Extend to handle global defaults.
5735 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
5736 * doc/tm.texti: Rebuilt.
5737 * doc/invoke.texi (fopenacc-dim): Document.
5738 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
5739 (append_compiler_options): Likewise.
5740 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
5741 (oacc_parse_default_dims): New.
5742 (oacc_validate_dims): Add USED arg. Select non-unity default when
5743 possible.
5744 (oacc_loop_fixed_partitions): Return mask of used partitions.
5745 (oacc_loop_auto_partitions): Emit dump info.
5746 (oacc_loop_partition): Return mask of used partitions.
5747 (execute_oacc_device_lower): Parse default dimension arg. Adjust
5748 loop partitioning and validation calls.
5749
5750 2016-02-01 Richard Biener <rguenther@suse.de>
5751
5752 PR middle-end/69556
5753 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
5754
5755 2016-02-01 Richard Biener <rguenther@suse.de>
5756
5757 PR tree-optimization/69574
5758 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
5759 of asserting return chrec_dont_know.
5760
5761 2016-02-01 Martin Liska <mliska@suse.cz>
5762
5763 * mem-stats-traits.h: Add copyright header.
5764 * mem-stats.h: Likewise.
5765
5766 2016-02-01 Richard Biener <rguenther@suse.de>
5767
5768 PR tree-optimization/69579
5769 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
5770 Do not propagate through abnormal PHI results.
5771
5772 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
5773
5774 * postreload.c (reload_cse_simplify): Remove dead code.
5775
5776 2016-02-01 Jakub Jelinek <jakub@redhat.com>
5777
5778 PR rtl-optimization/69570
5779 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
5780 if there is more than one set, not if there is a single set.
5781
5782 2016-02-01 Richard Henderson <rth@redhat.com>
5783
5784 PR rtl-opt/69535
5785 * combine.c (make_compound_operation): When looking through a
5786 subreg, make sure to re-extend to the width of the outer mode.
5787
5788 2016-01-30 Jakub Jelinek <jakub@redhat.com>
5789
5790 PR tree-optimization/69546
5791 * wide-int.cc (wi::divmod_internal): For unsigned division
5792 where both operands fit into uhwi, if o1 is 1 and o0 has
5793 msb set, if divident_prec is larger than bits per hwi,
5794 clear another quotient word and return 2 instead of 1.
5795 Similarly for remainder with msb in HWI set, if dividend_prec
5796 is larger than bits per hwi.
5797
5798 2016-01-29 Martin Jambor <mjambor@suse.cz>
5799
5800 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
5801 Use short lowercase names.
5802 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
5803 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
5804 acq_rel one. Protect warning agains segfaults if
5805 get_memory_order_name returns NULL.
5806 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
5807 with release semantics. Do not warn if get_memory_order already did.
5808 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
5809 semantics. Fix check for relaxed or acquire semantics. Do not warn
5810 if get_memory_order already did.
5811
5812 2016-01-29 Sebastian Pop <s.pop@samsung.com>
5813
5814 * doc/install.texi: Document that isl-0.16 is supported.
5815
5816 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
5817
5818 PR target/69299
5819 * config/i386/constraints.md (Bm): Describe as special memory
5820 constraint.
5821 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
5822 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
5823 * genpreds.c (struct constraint_data): Add is_special_memory.
5824 (have_special_memory_constraints, special_memory_start): New
5825 static vars.
5826 (special_memory_end): Ditto.
5827 (add_constraint): Add new arg is_special_memory. Add code to
5828 process its true value. Update have_special_memory_constraints.
5829 (process_define_constraint): Pass the new arg.
5830 (process_define_register_constraint): Ditto.
5831 (choose_enum_order): Process special memory.
5832 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
5833 function insn_extra_special_memory_constraint.
5834 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
5835 * gensupport.c (process_rtx): Process
5836 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
5837 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
5838 * ira-lives.c (single_reg_class): Use
5839 insn_extra_special_memory_constraint.
5840 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
5841 * lra-constraints.c (process_alt_operands): Ditto.
5842 (curr_insn_transform): Use insn_extra_special_memory_constraint.
5843 * recog.c (asm_operand_ok, preprocess_constraints): Process
5844 CT_SPECIAL_MEMORY.
5845 * reload.c (find_reloads): Ditto.
5846 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
5847 * stmt.c (parse_input_constraint): Use
5848 insn_extra_special_memory_constraint.
5849
5850 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
5851
5852 PR target/69530
5853 * lra-splill.c (lra_final_code_change): Revert r229087 by
5854 removing all sub-registers.
5855
5856 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
5857
5858 PR target/65604
5859 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
5860
5861 2016-01-29 Jakub Jelinek <jakub@redhat.com>
5862
5863 PR target/69551
5864 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
5865 SSE1, copy target into the temporary reg first before recursing
5866 on it.
5867
5868 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
5869
5870 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
5871 with vm.
5872
5873 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
5874
5875 * ginclude/stdarg.h: Test __cplusplus instead of
5876 __GXX_EXPERIMENTAL_CXX0X__.
5877
5878 2016-01-29 Richard Biener <rguenther@suse.de>
5879
5880 PR tree-optimization/69547
5881 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
5882 Do not mark clobbers necessary.
5883 (mark_all_reaching_defs_necessary_1): Likewise.
5884
5885 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
5886
5887 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
5888 declaration name with %qs and print it in both error messages.
5889 Also fix indentation.
5890
5891 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
5892
5893 PR other/69006
5894 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
5895 trailing blank line from error message.
5896
5897 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
5898
5899 PR c++/69462
5900 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
5901 for C++-11.
5902
5903 2016-01-29 Richard Biener <rguenther@suse.de>
5904
5905 PR middle-end/69537
5906 * match.pd: Allow all integral types when simplifying a
5907 widening or sign-changing conversion.
5908
5909 2016-01-28 Sebastian Pop <s.pop@samsung.com>
5910
5911 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
5912 back to setting codegen_error to fail codegen.
5913
5914 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
5915
5916 PR target/69459
5917 * config/i386/constraints.md (C): Only accept constant zero operand.
5918 (BC): New constraint.
5919 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
5920 instead of C constraint.
5921 * doc/md.texi (Machine Constraints): Update description
5922 of C constraint.
5923
5924 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
5925
5926 PR target/68400
5927 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
5928
5929 2016-01-28 Jakub Jelinek <jakub@redhat.com>
5930
5931 PR middle-end/69542
5932 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
5933 non-debug insns.
5934
5935 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
5936
5937 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
5938 branches if using guessed profile.
5939
5940 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
5941
5942 * graphite-optimize-isl.c (optimize_isl): Fix dump.
5943
5944 2016-01-28 Richard Henderson <rth@redhat.com>
5945
5946 PR target/69305
5947 * config/aarch64/aarch64-modes.def (CC_Cmode): New
5948 * config/aarch64/aarch64-protos.h: Update.
5949 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
5950 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
5951 (aarch64_get_condition_code_1): Handle CC_Cmode.
5952 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
5953 (*add<mode>3_compareC_cconly_imm): New.
5954 (*add<mode>3_compareC_cconly): New.
5955 (*add<mode>3_compareC_imm): New.
5956 (add<mode>3_compareC): New.
5957 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
5958 to be first. Use aarch64_carry_operation.
5959 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
5960 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
5961 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
5962 (subti3): Use subdi3_compare1.
5963 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
5964 (sub<mode>3_compare1): New.
5965 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
5966 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
5967 (*subsi3_carryin_uxtw): Likewise.
5968 (*ngc<mode>, *ngcsi_uxtw): Likewise.
5969 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
5970 * config/aarch64/iterators.md (DWI): New.
5971 * config/aarch64/predicates.md (aarch64_carry_operation): New.
5972 (aarch64_borrow_operation): New.
5973
5974 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
5975
5976 * graphite-optimize-isl.c (optimize_isl): Print a different debug
5977 message when isl does not return a valid schedule.
5978
5979 2016-01-28 Sebastian Pop <s.pop@samsung.com>
5980
5981 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
5982 Remove comments from class declarations: they are already in the code
5983 close by the defs.
5984
5985 2016-01-28 Sebastian Pop <s.pop@samsung.com>
5986
5987 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
5988 codegen_error_p.
5989 (ternary_op_to_tree): Same.
5990 (unary_op_to_tree): Same.
5991 (nary_op_to_tree): Same.
5992 (gcc_expression_from_isl_expr_op): Same.
5993 (gcc_expression_from_isl_expression): Same.
5994 (graphite_create_new_loop): Same.
5995 (graphite_create_new_loop_guard): Same.
5996 (build_iv_mapping): Same.
5997 (graphite_create_new_guard): Same.
5998 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
5999 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
6000
6001 2016-01-28 Sebastian Pop <s.pop@samsung.com>
6002
6003 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
6004 instead of setting codegen_error to fail codegen.
6005
6006 2016-01-28 Jason Merrill <jason@redhat.com>
6007
6008 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
6009
6010 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
6011
6012 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
6013 Remove CONST_INT_P check in CCMP cost calculation.
6014
6015 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
6016
6017 * config/aarch64/aarch64.c (generic_vector_cost):
6018 Set vec_permute_cost.
6019 (cortexa57_vector_cost): Likewise.
6020 (exynosm1_vector_cost): Likewise.
6021 (xgene1_vector_cost): Likewise.
6022 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
6023 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
6024 Add vec_permute_cost entry.
6025
6026 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
6027
6028 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
6029 immediate as %1.
6030 (add<mode>3_compare0): Likewise.
6031 (addsi3_compare0_uxtw): Likewise.
6032 (add<mode>3nr_compare0): Likewise.
6033 (compare_neg<mode>): Likewise.
6034 (<optab><mode>3): Likewise.
6035
6036 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
6037
6038 * tree-vect-stmts.c (vectorizable_comparison): Add
6039 NULL check for vectype.
6040
6041 2016-01-28 Richard Biener <rguenther@suse.de>
6042
6043 PR tree-optimization/69466
6044 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
6045 Account for PHIs we couldn't duplicate.
6046
6047 2016-01-28 Martin Liska <mliska@suse.cz>
6048
6049 PR pch/68758
6050 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
6051 instead of ENABLE_VALGRIND_CHECKING.
6052
6053 2016-01-27 Richard Henderson <rth@redhat.com>
6054
6055 PR rtl-opt/69447
6056 * lra-remat.c (subreg_regs): New.
6057 (dump_candidates_and_remat_bb_data): Dump it.
6058 (operand_to_remat): Reject if operand in subreg_regs.
6059 (set_bb_regs): Collect subreg_regs.
6060 (lra_remat): Init and free subreg_regs. Compute
6061 calculate_local_reg_remat_bb_data before create_cands.
6062
6063 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
6064
6065 PR target/68986
6066 * config/i386/i386.c (ix86_update_stack_boundary): Don't
6067 change stack_alignment_needed for __tls_get_addr call.
6068
6069 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
6070
6071 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
6072
6073 2016-01-27 Jeff Law <law@redhat.com>
6074
6075 PR tree-optimization/68398
6076 PR tree-optimization/69196
6077 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
6078 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
6079 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6080 Only count PHIs in the last block in the path. The others will
6081 const/copy propagate away. Add heuristic to allow more irreducible
6082 subloops to be created when it is likely profitable to do so.
6083
6084 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6085 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
6086 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
6087
6088 2016-01-27 Jakub Jelinek <jakub@redhat.com>
6089
6090 PR lto/69254
6091 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
6092 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
6093 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
6094 * tree-streamer-in.c: Include asan.h.
6095 (streamer_get_builtin_tree): For builtins in sanitizer
6096 range call initialize_sanitizer_builtins and retry.
6097
6098 2016-01-27 Ian Lance Taylor <iant@google.com>
6099
6100 * common.opt (fkeep-gc-roots-live): New undocumented option.
6101 * tree-ssa-loop-ivopts.c (add_candidate_1): If
6102 -fkeep-gc-roots-live, skip pointers.
6103 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
6104 NULL.
6105
6106 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
6107
6108 PR target/69512
6109 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
6110 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
6111
6112 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
6113
6114 PR target/68380
6115 * configure.ac: NetBSD provides SSP in its C library.
6116 * configure: Updated.
6117
6118 2016-01-27 Richard Biener <rguenther@suse.de>
6119
6120 PR tree-optimization/69166
6121 * tree-vect-loop.c (vect_is_simple_reduction): Always check
6122 reduction code for commutativity / associativity.
6123
6124 2016-01-27 Martin Jambor <mjambor@suse.cz>
6125
6126 PR tree-optimization/69355
6127 * tree-sra.c (analyze_access_subtree): Correct hole detection when
6128 total_scalarization fails.
6129
6130 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
6131
6132 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
6133 power9.
6134
6135 2016-01-27 Christian Bruel <christian.bruel@st.com>
6136
6137 PR target/69245
6138 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
6139 Move arm_reset_previous_fndecl and set_target_option_current_node in
6140 the conditional part. Call save_restore_target_globals.
6141 * config/arm/arm.c (arm_set_current_function):
6142 Refactor to better support #pragma target and attribute mix.
6143 Call save_restore_target_globals.
6144 * config/arm/arm-protos.h (save_restore_target_globals): New function.
6145
6146 2016-01-27 Martin Liska <mliska@suse.cz>
6147
6148 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
6149 reference for an HSA kernel and its host function.
6150
6151 2016-01-27 Jakub Jelinek <jakub@redhat.com>
6152
6153 PR tree-optimization/69399
6154 * wide-int.h (wi::lrshift): For larger precisions, only
6155 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
6156
6157 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
6158
6159 * config/arc/predicates.md (proper_comparison_operator): Reject
6160 constant-constant comparison.
6161
6162 2016-01-26 Tom de Vries <tom@codesourcery.com>
6163
6164 PR tree-optimization/69110
6165 * tree-data-ref.c (initialize_data_dependence_relation): Handle
6166 DR_NUM_DIMENSIONS == 0.
6167
6168 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
6169 Sebastian Pop <s.pop@samsung.com>
6170
6171 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
6172 isl_ast_op_cond and isl_ast_op_select.
6173 (gcc_expression_from_isl_expr_op): Same.
6174
6175 2016-01-26 Jason Merrill <jason@redhat.com>
6176
6177 PR c++/68782
6178 * tree.c (recompute_constructor_flags): Split out from
6179 build_constructor.
6180 (verify_constructor_flags): New.
6181 * tree.h: Declare them.
6182
6183 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
6184
6185 PR rtl-optimization/69217
6186 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
6187 are no TYPE_FIELDS set for the record type.
6188
6189 2016-01-26 Jakub Jelinek <jakub@redhat.com>
6190
6191 PR target/68662
6192 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
6193 toc_label_name unconditionally.
6194 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
6195 SYMBOL_REF string. Use toc_label_name instead of constructing
6196 LCTOC1.
6197 (rs6000_elf_declare_function_name): Use toc_label_name instead of
6198 constructing LCTOC1.
6199
6200 2016-01-26 Martin Sebor <msebor@redhat.com>
6201
6202 PR other/69477
6203 * doc/extend.texi (Common Type Attributes): Move text that talks about
6204 attribute packed from attribute aligned to the section discussing
6205 the former attribute for clarity.
6206
6207 2016-01-26 Richard Henderson <rth@redhat.com>
6208
6209 PR middle-end/60908
6210 * trans-mem.c (tm_region_init): Mark entry block as visited.
6211
6212 2016-01-26 David Malcolm <dmalcolm@redhat.com>
6213
6214 PR other/69006
6215 * diagnostic-show-locus.c (layout::print_source_line): Replace
6216 call to pp_newline with call to layout::print_newline.
6217 (layout::print_annotation_line): Likewise.
6218 (layout::move_to_column): Likewise.
6219 (layout::print_any_fixits): After printing any fixits, print a
6220 trailing newline, if necessary.
6221 (layout::print_newline): New method, resetting any colorization
6222 before a newline.
6223 (diagnostic_show_locus): Move the pp_newline to before the
6224 early bailout. Remove dummy block enclosing the layout instance.
6225 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
6226 of pp_newline_and_flush with pp_flush.
6227 (diagnostic_append_note): Delete use of pp_newline.
6228 (diagnostic_append_note_at_rich_loc): Delete.
6229 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
6230 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
6231 when newline characters are added to the buffer.
6232
6233 2016-01-26 Michael Matz <matz@suse.de>
6234
6235 * configure.ac (ac_cv_std_swap_in_utility): New test.
6236 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
6237 * configure: Regenerate.
6238 * config.in: Regenerate.
6239
6240 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
6241
6242 * config/arc/arc.md (cstoresi4): Force operand into register.
6243 (arcset<code>): Fix predicate.
6244 (arcsetltu): Likewise.
6245 (arcsetgeu): Likewise.
6246 (arcsethi): Likewise.
6247 (arcsetls): Likewise.
6248
6249 2016-01-26 Jakub Jelinek <jakub@redhat.com>
6250
6251 PR tree-optimization/69483
6252 * gimple-fold.c (canonicalize_constructor_val): Return NULL
6253 if base has error_mark_node type.
6254
6255 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
6256
6257 PR target/68620
6258 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
6259 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
6260 New helper macros.
6261 (vget_lane_f16): Handle big-endian.
6262 (vgetq_lane_f16): Likewise.
6263 (vset_lane_f16): Likewise.
6264 (vsetq_lane_f16): Likewise.
6265 * config/arm/iterators.md (VQXMOV): Add V8HF.
6266 (VDQ): Add V4HF and V8HF.
6267 (V_reg): Handle V4HF and V8HF.
6268 (Is_float_mode): Likewise.
6269 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
6270 neon_vdup_nv8hf): New patterns.
6271 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
6272 Use VD_LANE iterator.
6273 (neon_vld1_dup<mode>): Use VQ2 iterator.
6274
6275 2016-01-26 Nathan Sidwell <nathan@acm.org>
6276
6277 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
6278 (set_oacc_fn_attrib): Add IS_KERNEL arg.
6279 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
6280 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
6281 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
6282 (oacc_validate_dims): Add LEVEL arg, don't return level.
6283 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
6284 oacc_validate_dims.
6285 (execute_oacc_device_lower): Adjust, add more dump output.
6286 * tree-ssa-loop.c (gate_oacc_kernels): Use
6287 oacc_fn_attrib_kernels_p.
6288 * tree-parloops.c (create_parallel_loop): Adjust
6289 set_oacc_fn_attrib call.
6290
6291 2016-01-26 Jakub Jelinek <jakub@redhat.com>
6292
6293 PR lto/69254
6294 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
6295 (append_compiler_options): Handle -fcilkplus.
6296 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
6297
6298 2016-01-26 Nick Clifton <nickc@redhat.com>
6299
6300 PR target/66655
6301 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
6302 been marked as DECL_ONE_ONLY but we do not the means to make it
6303 so, then do not allow it to bind locally.
6304
6305 2016-01-26 Jakub Jelinek <jakub@redhat.com>
6306
6307 PR lto/69254
6308 * opts.h (parse_sanitizer_options): New prototype.
6309 * opts.c (sanitizer_opts): New array.
6310 (parse_sanitizer_options): New function.
6311 (common_handle_option): Use parse_sanitizer_options.
6312
6313 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
6314
6315 PR target/68986
6316 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
6317 alignment adjustment to ...
6318 (ix86_update_stack_boundary): Here. Don't over-align stack for
6319 __tls_get_addr.
6320 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
6321 if __tls_get_addr is called.
6322
6323 2016-01-26 Christian Bruel <christian.bruel@st.com>
6324
6325 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
6326
6327 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
6328
6329 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
6330
6331 2016-01-26 Richard Biener <rguenther@suse.de>
6332
6333 PR middle-end/69467
6334 * match.pd: Guard X * CST CMP 0 pattern with single_use.
6335
6336 2016-01-26 Richard Biener <rguenther@suse.de>
6337
6338 PR tree-optimization/69452
6339 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
6340 (move_computations_dom_walker::before_dom_children): Rename
6341 to ...
6342 (move_computations_worker): This.
6343 (move_computations): Perform an RPO rather than a DOM walk.
6344
6345 2016-01-26 Jakub Jelinek <jakub@redhat.com>
6346
6347 PR target/69442
6348 * combine.c (combine_instructions): For REG_EQUAL note with
6349 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
6350 to the underlying register.
6351 * doc/rtl.texi (REG_EQUAL): Document the behavior of
6352 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
6353
6354 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
6355
6356 PR target/67896
6357 * config/aarch64/aarch64-builtins.c
6358 (aarch64_init_simd_builtin_types): Do not set structural
6359 equality to __Poly{8,16,64,128}_t types.
6360
6361 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
6362
6363 PR tree-optimization/69400
6364 * wide-int.cc (wi_pack): Take the precision as argument and
6365 perform canonicalization here rather than in the callers.
6366 Use the main loop to handle all full-width HWIs. Add a
6367 zero HWI if in_len isn't a full result.
6368 (wi::divmod_internal): Update accordingly.
6369 (wi::mul_internal): Likewise. Simplify.
6370
6371 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
6372 Sebastian Pop <s.pop@samsung.com>
6373
6374 * graphite-poly.c (apply_poly_transforms): Simplify.
6375 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
6376 (print_isl_map): Same.
6377 (print_isl_union_map): Same.
6378 (print_isl_schedule): New.
6379 (debug_isl_schedule): New.
6380 * graphite-dependences.c (scop_get_reads): Do not call
6381 isl_union_map_add_map that is undocumented isl functionality.
6382 (scop_get_must_writes): Same.
6383 (scop_get_may_writes): Same.
6384 (scop_get_original_schedule): Remove.
6385 (scop_get_dependences): Do not call isl_union_map_compute_flow that
6386 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
6387 (compute_deps): Remove.
6388 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
6389 (debug_schedule_ast): New.
6390 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
6391 set_separate_option.
6392 (graphite_regenerate_ast_isl): Add dump.
6393 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
6394 from scop->transformed_schedule.
6395 (graphite_regenerate_ast_isl): Add more dump.
6396 * graphite-optimize-isl.c (optimize_isl): Set
6397 scop->transformed_schedule. Check whether schedules are equal.
6398 (apply_poly_transforms): Move here.
6399 * graphite-poly.c (apply_poly_transforms): ... from here.
6400 (free_poly_bb): Static.
6401 (free_scop): Static.
6402 (pbb_number_of_iterations_at_time): Remove.
6403 (print_isl_ast): New.
6404 (debug_isl_ast): New.
6405 (debug_scop_pbb): New.
6406 * graphite-scop-detection.c (print_edge): Move.
6407 (print_sese): Move.
6408 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
6409 (build_scop_scattering): Remove.
6410 (create_pw_aff_from_tree): Assert instead of bailing out.
6411 (add_condition_to_pbb): Remove unused code, do not fail.
6412 (add_conditions_to_domain): Same.
6413 (add_conditions_to_constraints): Remove.
6414 (build_scop_context): New.
6415 (add_iter_domain_dimension): New.
6416 (build_iteration_domains): Initialize pbb->iterators.
6417 Call add_conditions_to_domain.
6418 (nested_in): New.
6419 (loop_at): New.
6420 (index_outermost_in_loop): New.
6421 (index_pbb_in_loop): New.
6422 (outermost_pbb_in): New.
6423 (add_in_sequence): New.
6424 (add_outer_projection): New.
6425 (outer_projection_mupa): New.
6426 (add_loop_schedule): New.
6427 (build_schedule_pbb): New.
6428 (build_schedule_loop): New.
6429 (embed_in_surrounding_loops): New.
6430 (build_schedule_loop_nest): New.
6431 (build_original_schedule): New.
6432 (build_poly_scop): Call build_original_schedule.
6433 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
6434 (free_poly_dr): Remove.
6435 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
6436 (free_poly_bb): Remove.
6437 (debug_loop_vec): Remove.
6438 (print_isl_ast): Declare.
6439 (debug_isl_ast): Declare.
6440 (scop_do_interchange): Remove.
6441 (scop_do_strip_mine): Remove.
6442 (scop_do_block): Remove.
6443 (flatten_all_loops): Remove.
6444 (optimize_isl): Remove.
6445 (pbb_number_of_iterations_at_time): Remove.
6446 (debug_scop_pbb): Declare.
6447 (print_schedule_ast): Declare.
6448 (debug_schedule_ast): Declare.
6449 (struct scop): Remove schedule. Add original_schedule,
6450 transformed_schedule.
6451 (free_gimple_poly_bb): Remove.
6452 (print_generated_program): Remove.
6453 (debug_generated_program): Remove.
6454 (unify_scattering_dimensions): Remove.
6455 * sese.c (print_edge): ... here.
6456 (print_sese): ... here.
6457 (debug_edge): ... here.
6458 (debug_sese): ... here.
6459 * sese.h (print_edge): Declare.
6460 (print_sese): Declare.
6461 (dump_edge): Declare.
6462 (dump_sese): Declare.
6463
6464 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
6465 Sebastian Pop <s.pop@samsung.com>
6466
6467 * Makefile.in: Set ISLVER in site.exp.
6468
6469 2016-01-25 Jakub Jelinek <jakub@redhat.com>
6470
6471 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
6472 DECL_VALUE_EXPR of new_var even for the non-array case. Look
6473 through DECL_VALUE_EXPR for expansion.
6474
6475 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
6476
6477 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
6478 the frame info after reload completed.
6479
6480 2016-01-25 Jeff Law <law@redhat.com>
6481
6482 PR tree-optimization/69196
6483 PR tree-optimization/68398
6484 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
6485 tree-ssa-threadupdate.c.
6486 (determine_bb_domination_status): Prototype
6487 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
6488 (determine_bb_domination_status): No longer static.
6489 (valid_jump_thread_path): Remove code to detect characteristics
6490 of the jump thread path not associated with correctness.
6491 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
6492 Correct test for thread path length. Count PHIs for real operands as
6493 statements that need to be copied. Do not count ASSERT_EXPRs.
6494 Look at all the blocks in the thread path. Compute and selectively
6495 filter thread paths based on threading through the latch, threading
6496 a multiway branch or crossing a multiway branch.
6497
6498 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6499
6500 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
6501 decl with __attribute__ ((unused)) annotation.
6502
6503 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
6504
6505 PR target/69421
6506 * tree-vect-stmts.c (vectorizable_condition): Check vectype
6507 of operands is compatible with a statement vectype.
6508
6509 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
6510
6511 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
6512 improve wording for mixed storage order support.
6513
6514 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
6515
6516 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
6517 (vcvt_u64_f64): Likewise.
6518 (vcvta_s64_f64): Likewise.
6519 (vcvta_u64_f64): Likewise.
6520 (vcvtm_s64_f64): Likewise.
6521 (vcvtm_u64_f64): Likewise.
6522 (vcvtn_s64_f64): Likewise.
6523 (vcvtn_u64_f64): Likewise.
6524 (vcvtp_s64_f64): Likewise.
6525 (vcvtp_u64_f64): Likewise.
6526
6527 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
6528
6529 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
6530 (arc_init): Check validity mll64 option.
6531 (arc_save_restore): Use double load/store instruction.
6532 (arc_expand_movmem): Likewise.
6533 (arc_split_move): Don't split if we have double load/store
6534 instructions. Returns a boolean.
6535 (arc_process_double_reg_moves): Change function to return boolean
6536 instead of a sequence of instructions.
6537 (arc_dwarf_register_span): New function.
6538 * config/arc/arc-protos.h (arc_split_move): Change prototype.
6539 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
6540 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
6541 (*movdf_insn): Likewise.
6542 * config/arc/arc.opt (mll64): New option.
6543 * config/arc/predicates.md (even_register_operand): New predicate.
6544 * doc/invoke.texi (ARC Options): Add mll64 documentation.
6545
6546 2016-01-25 Richard Biener <rguenther@suse.de>
6547
6548 PR lto/69393
6549 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
6550 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
6551 DECL_NAMELESS.
6552 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
6553
6554 2016-01-25 Richard Biener <rguenther@suse.de>
6555
6556 PR tree-optimization/69376
6557 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
6558 flag.
6559 (VN_INFO_ANTI_RANGE_P): New inline.
6560 (VN_INFO_RANGE_TYPE): Likewise.
6561 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
6562 SSA_NAME_ANTI_RANGE_P.
6563 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
6564 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
6565 Properly query VN_INFO_RANGE_TYPE.
6566
6567 2016-01-25 Nick Clifton <nickc@redhat.com>
6568
6569 PR target/66655
6570 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
6571
6572 2016-01-23 Tom de Vries <tom@codesourcery.com>
6573
6574 PR tree-optimization/69426
6575 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
6576 removed clobber.
6577
6578 2016-01-23 Jakub Jelinek <jakub@redhat.com>
6579
6580 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
6581 "the the" with "the" in the comments.
6582 * ipa-devirt.c (build_type_inheritance_graph,
6583 update_type_inheritance_graph): Likewise.
6584 * tree.c (build_function_type_list_1): Likewise.
6585 * cfgloopmanip.c (scale_loop_profile): Likewise.
6586 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
6587 * gimple-ssa-split-paths.c
6588 (find_block_to_duplicate_for_splitting_paths): Likewise.
6589 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
6590 * expr.c (convert_move): Likewise.
6591 * var-tracking.c (vt_stack_adjustments): Likewise.
6592 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
6593 * tree-vrp.c (test_for_singularity): Likewise.
6594
6595 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
6596 directly instead of building a temporary tree.
6597
6598 PR bootstrap/69434
6599 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
6600 remove <algorithm> include.
6601
6602 2016-01-22 Jakub Jelinek <jakub@redhat.com>
6603
6604 PR target/69432
6605 * config/i386/i386.c: Include dojump.h.
6606 (expand_small_movmem_or_setmem,
6607 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
6608 fixes.
6609 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
6610 if dynamic_check != -1.
6611
6612 2016-01-21 Jeff Law <law@redhat.com>
6613
6614 PR middle-end/69347
6615 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
6616 record_temporary_equivalences. Rewritten to avoid unnecessary calls
6617 into dominated_by_p.
6618 (cprop_into_successor_phis): Avoid unnecessary tests.
6619
6620 2016-01-22 Richard Henderson <rth@redhat.com>
6621
6622 PR target/69416
6623 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
6624 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
6625
6626 2016-01-22 Michael Matz <matz@suse.de>
6627
6628 * system.h (string, algorithm): Include only conditionally.
6629 (new): Include always under C++.
6630 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
6631 * final.c (toplevel): Ditto.
6632 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
6633 * genconditions.c (write_header): Make gencondmd.c define
6634 INCLUDE_STRING.
6635 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
6636
6637 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
6638 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
6639
6640 2016-01-22 Christian Bruel <christian.bruel@st.com>
6641
6642 PR target/68674
6643 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
6644
6645 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6646
6647 PR target/69403
6648 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
6649 define_insn_and_split. Ensure operands[1] and operands[0] do not
6650 get assigned the same register.
6651
6652 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
6653
6654 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
6655
6656 2016-01-22 Christian Bruel <christian.bruel@st.com>
6657
6658 * config/arm/arm-c.c (arm_pragma_target_parse):
6659 Remove warn_builtin_macro_redefined overwrite.
6660
6661 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
6662
6663 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
6664 flag_non_call_exceptions compatibility.
6665
6666 2016-01-22 Jakub Jelinek <jakub@redhat.com>
6667
6668 PR debug/66668
6669 * dwarf2out.c (add_child_die_after): New function.
6670 (dwarf_qual_info_t): New type.
6671 (dwarf_qual_info): New variable.
6672 (qualified_die_p): New function.
6673 (modified_type_die): For -fdebug-types-section, ensure
6674 canonical order of qualifiers. Put qualified DIEs adjacent
6675 to the corresponding non-qualified type DIE and search there
6676 for existing qualified DIEs.
6677
6678 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
6679
6680 * doc/extend.texi (scalar_storage_order type attribute): Document
6681 restriction on type punning and aliasing, and remove future tense.
6682
6683 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
6684
6685 PR target/69252
6686 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
6687 first stage.
6688
6689 2016-01-21 Jeff Law <law@redhat.com>
6690
6691 PR middle-end/69347
6692 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
6693 useless call to record_temporary_equivalences.
6694 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
6695 allocate 10 slots in the bb_path vector and let it grow as needed.
6696 (fsm_find_control_statement_thread_paths): Similarly for the next_path
6697 vector.
6698
6699 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
6700
6701 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
6702 Detangle.
6703 * configure: Regenerate.
6704
6705 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
6706
6707 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
6708 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
6709
6710 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
6711
6712 PR middle-end/66178
6713 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
6714 drop EXPAND_INITIALIZER.
6715 * rtl.h (contains_symbolic_reference_p): Declare.
6716 * rtlanal.c (contains_symbolic_reference_p): New function.
6717 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
6718 a subtraction into a NOT if symbolic constants are involved.
6719
6720 2016-01-21 Anton Blanchard <anton@samba.org>
6721 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6722
6723 PR target/63354
6724 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
6725 #define.
6726 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
6727 function.
6728
6729 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
6730
6731 * config/microblaze/microblaze.c
6732 (get_branch_target): New.
6733 (insert_wic_for_ilb_runout): New.
6734 (insert_wic): New.
6735 (microblaze_machine_dependent_reorg): New.
6736 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
6737 * config/microblaze/microblaze.md
6738 (UNSPEC_IPREFETCH): Define.
6739 (iprefetch): New pattern
6740 * config/microblaze/microblaze.opt
6741 (mxl-prefetch): New flag.
6742
6743 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
6744
6745 * config/microblaze/microblaze.h
6746 (FIXED_REGISTERS): Update in macro.
6747 (CALL_USED_REGISTERS): Update in macro.
6748
6749 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
6750
6751 PR rtl-optimization/68920
6752 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
6753 moves.
6754
6755 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
6756
6757 PR rtl-optimization/68990
6758 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
6759 pseudo instead of inheritance ones.
6760
6761 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
6762 Nick Clifton <nickc@redhat.com>
6763
6764 PR target/69129
6765 PR target/69012
6766 * config/mips/mips.c (mips_compute_frame_info): Initialise
6767 args_size and hard_frame_pointer_offset fields of the frame
6768 structure before calling mips_global_pointer.
6769
6770 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
6771
6772 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
6773 label reference.
6774 * configure: Regenerate.
6775
6776 2016-01-21 Richard Biener <rguenther@suse.de>
6777
6778 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
6779
6780 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
6781
6782 * config/s390/s390.c (s390_asm_declare_function_size): Add code
6783 to actually emit the .size directive.
6784
6785 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
6786 Jakub Jelinek <jakub@redhat.com>
6787
6788 PR target/69187
6789 PR target/65624
6790 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
6791 args array size by one to avoid buffer overflow.
6792
6793 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
6794
6795 * config/s390/s390.md (pool_section_start): Use switch_to_section
6796 to select proper read-only data section instead of hardcoding
6797 .rodata.
6798 (pool_section_end): Use switch_to_section to match the above.
6799
6800 2016-01-21 Richard Biener <rguenther@suse.de>
6801
6802 PR tree-optimization/69378
6803 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
6804 (set_ssa_val_to): Use it for dominance checks taking into
6805 account not executable edges.
6806
6807 2016-01-21 Jakub Jelinek <jakub@redhat.com>
6808
6809 PR c++/69355
6810 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
6811 for bitsize instead of GET_MODE_PRECISION (mode).
6812
6813 2016-01-20 Martin Sebor <msebor@redhat.com>
6814
6815 PR c/52291
6816 * extend.texi (__sync Builtins): Clarify the semantics of
6817 __sync_fetch_and_OP built-ins on pointers.
6818 (__atomic Builtins): Same.
6819
6820 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6821 Sebastian Pop <s.pop@samsung.com>
6822
6823 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
6824 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
6825 (is_valid_rename): Same.
6826 (translate_isl_ast_to_gimple::get_rename): Same.
6827 (translate_isl_ast_to_gimple::rename_all_uses): Same.
6828 (translate_isl_ast_to_gimple::rename_uses): Same.
6829 (get_new_name): Check for close_phi nodes.
6830 (copy_loop_phi_args): Use phi_node_kind.
6831 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
6832 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
6833
6834 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6835 Sebastian Pop <s.pop@samsung.com>
6836
6837 Revert commit r229783.
6838 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
6839 Remove use of parameter_rename_map.
6840 (copy_def): Remove.
6841 (copy_internal_parameters): Remove.
6842 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
6843 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
6844 (free_sese_info): Do not free parameter_rename_map.
6845 (set_rename): Do not use parameter_rename_map.
6846 (rename_uses): Update call to set_rename.
6847 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
6848 * sese.h (parameter_rename_map_t): Remove.
6849 (struct sese_info_t): Remove field parameter_rename_map.
6850
6851 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6852 Sebastian Pop <s.pop@samsung.com>
6853
6854 * graphite-isl-ast-to-gimple.c: Fix comment.
6855 * graphite-scop-detection.c (defined_in_loop_p): New.
6856 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
6857 names defined in loop.
6858
6859 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6860 Sebastian Pop <s.pop@samsung.com>
6861
6862 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
6863 Discard unstructured if-then-else regions.
6864
6865 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6866 Sebastian Pop <s.pop@samsung.com>
6867
6868 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
6869 (cleanup_loop_iter_dom): Remove.
6870 (build_loop_iteration_domains): Remove.
6871 (build_scop_context): Remove.
6872 (build_scop_iteration_domain): Remove.
6873 (add_loop_constraints): New.
6874 (build_iteration_domains): New.
6875 (build_poly_scop): Call build_iteration_domains.
6876
6877 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6878 Sebastian Pop <s.pop@samsung.com>
6879
6880 * graphite-scop-detection.c
6881 (scop_detection::harmful_loop_in_region): Free dom and loops.
6882 (scop_detection::loop_body_is_valid_scop): Free bbs.
6883
6884 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6885 Sebastian Pop <s.pop@samsung.com>
6886
6887 * graphite-scop-detection.c (record_loop_in_sese): New.
6888 (gather_bbs::before_dom_children): Call record_loop_in_sese.
6889 (build_scops): Remove call to build_sese_loop_nests.
6890 * sese.c (sese_record_loop): Remove.
6891 (build_sese_loop_nests): Remove.
6892 (new_sese_info): Remove region->loops.
6893 (free_sese_info): Same.
6894 * sese.h (sese_contains_loop): Same.
6895 (build_sese_loop_nests): Remove.
6896 (sese_contains_loop): Remove.
6897
6898 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6899 Sebastian Pop <s.pop@samsung.com>
6900
6901 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
6902 loop_is_valid_in_scop.
6903 (scop_detection::harmful_stmt_in_region): Renamed
6904 harmful_loop_in_region.
6905 Call loop_is_valid_in_scop.
6906
6907 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6908 Sebastian Pop <s.pop@samsung.com>
6909
6910 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
6911 isl_ast_node_mark.
6912
6913 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6914 Sebastian Pop <s.pop@samsung.com>
6915
6916 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
6917 * graphite.h (struct poly_bb): Remove field is_reduction.
6918 (PBB_IS_REDUCTION): Remove.
6919
6920 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6921 Sebastian Pop <s.pop@samsung.com>
6922
6923 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
6924 (add_pdr_constraints): Same.
6925 (scop_get_reads): Same.
6926 (scop_get_must_writes): Same.
6927 (scop_get_may_writes): Same.
6928 (scop_get_original_schedule): Same.
6929 (extend_schedule): Same.
6930 (apply_schedule_on_deps): Same.
6931 (carries_deps): Same.
6932 (compute_deps): Same.
6933 (scop_get_dependences): Same.
6934 * graphite-isl-ast-to-gimple.c
6935 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
6936 * graphite-optimize-isl.c (get_schedule_for_band): Same.
6937 (get_schedule_for_band_list): Same.
6938 (get_schedule_map): Same.
6939 (apply_schedule_map_to_scop): Same.
6940 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
6941 (build_loop_iteration_domains): Same.
6942 (add_condition_to_pbb): Same.
6943 (add_param_constraints): Same.
6944 (pdr_add_memory_accesses): Same.
6945 (pdr_add_data_dimensions): Same.
6946
6947 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
6948
6949 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
6950 requirements.
6951
6952 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
6953
6954 * common.opt (feliminate-dwarf2-dups): Replace references to
6955 "DWARF 2" with just "DWARF".
6956 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
6957 * doc/extend.texi: Likewise.
6958 * doc/cpp.texi: Likewise.
6959 * doc/invoke.texi: Likewise.
6960 (Option Summary): Add -gdwarf to list of Debugging Options.
6961 (Debugging Options): Document -gdwarf.
6962 * doc/contrib.texi: Spell "DWARF" like that.
6963
6964 2016-01-21 Jakub Jelinek <jakub@redhat.com>
6965
6966 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
6967 warning. Fix up formatting.
6968
6969 PR middle-end/67653
6970 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
6971 attempt to mark memory input operand addressable and
6972 call prepare_gimple_addressable in that case. Don't adjust
6973 input_location for diagnostics, use error_at instead.
6974
6975 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
6976
6977 * config/rs6000/ppc-auxv.h: New file.
6978 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
6979 (cpu_is): Likewise.
6980 (cpu_supports): Likewise.
6981 * config/rs6000/rs6000.c: include "ppc-auxv.h".
6982 (cpu_is_info): New variable.
6983 (cpu_supports_info): Likewise.
6984 (tcb_verification_symbol): Likewise.
6985 (cpu_builtin_p): Likewise.
6986 (cpu_expand_builtin): New function.
6987 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
6988 (rs6000_init_builtins): Likewise.
6989 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
6990 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
6991 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
6992 * configure: Regenerate.
6993 * config.in: Likewise.
6994 * doc/extend.texi (PowerPC Built-in Functions): Document
6995 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
6996
6997 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
6998
6999 PR target/68609
7000 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
7001 domain check.
7002 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
7003 for V4SFmode.
7004
7005 2016-01-20 Richard Henderson <rth@redhat.com>
7006
7007 PR bootstrap/69343
7008 PR bootstrap/69339
7009 PR tree-opt/68964
7010 Revert:
7011 * tree.c (tm_define_builtin): New.
7012 (find_tm_vector_type): New.
7013 (build_tm_vector_builtins): New.
7014 (build_common_builtin_nodes): Call it.
7015
7016 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
7017
7018 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
7019 (arm_fp_ok): Likewise.
7020 (arm_fp): Likewise.
7021 (arm_crypto): Likewise.
7022
7023 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
7024 Richard Biener <rguenther@suse.de>
7025
7026 PR tree-optimization/69328
7027 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
7028 vectors have same number of elements.
7029 (vectorizable_condition): Fix masked version recognition.
7030
7031 2016-01-20 Richard Biener <rguenther@suse.de>
7032
7033 PR tree-optimization/69345
7034 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
7035 (VN_INFO_PTR_INFO): Likewise.
7036 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
7037 info when it is equal between non-dominating SSA names.
7038 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7039 Make sure to look at original SSA infos.
7040
7041 2016-01-20 Jeff Law <law@redhat.com>
7042
7043 PR target/25114
7044 * config/m68k/predicates.md (pow2_m1_operand): New predicate
7045 extracted from ...
7046 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
7047 (pc_or_label_operand): New predicate.
7048 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
7049 tests for small integers that are 2^n - 1.
7050
7051 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
7052
7053 * doc/invoke.texi (Options Summary): Add '.' after @xref.
7054
7055 2016-01-19 Jeff Law <law@redhat.com>
7056
7057 PR middle-end/69347
7058 * tree-ssa-threadbackwards.c
7059 (fsm_find_control_statement_thread_paths): Do not try to lookup
7060 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
7061
7062 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
7063
7064 * doc/lto.texi: Remove text that says only Gold has linker plugin
7065 support.
7066
7067 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
7068
7069 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
7070 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
7071 the DIE accordingly.
7072 (modified_type_die): Add REVERSE parameter and pass it recursively,
7073 as well as to base_type_die. Adjust presence check accordingly.
7074 (base_type_for_mode): Adjust call to modified_type_die.
7075 (add_type_attribute): Add REVERSE parameter and pass it to
7076 modified_type_die.
7077 (generic_parameter_die): Adjust call to add_type_attribute.
7078 (add_scalar_info): Likewise.
7079 (add_subscript_info): Likewise.
7080 (gen_array_type_die): Likewise.
7081 (gen_descr_array_type_die): Likewise.
7082 (gen_entry_point_die): Likewise.
7083 (gen_enumeration_type_die): Likewise.
7084 (gen_formal_parameter_die): Likewise.
7085 (gen_subprogram_die): Likewise.
7086 (gen_variable_die ): Likewise.
7087 (gen_const_die): Likewise.
7088 (gen_field_die): Likewise.
7089 (gen_pointer_type_die): Likewise.
7090 (gen_reference_type_die): Likewise.
7091 (gen_ptr_to_mbr_type_die): Likewise.
7092 (gen_inheritance_die): Likewise.
7093 (gen_subroutine_type_die): Likewise.
7094 (gen_typedef_die): Likewise.
7095 (force_type_die): Adjust call to modified_type_die.
7096
7097 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
7098
7099 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
7100 flow throughout the file. Fix broken link to Objective-C 2.0
7101 documentation.
7102 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
7103 errors.
7104
7105 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
7106
7107 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
7108
7109 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
7110
7111 PR ipa/66223
7112 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
7113 (maybe_record_node): Record cxa_pure_virtual as the only possible
7114 target if there are not ohter candidates.
7115 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
7116
7117 2016-01-19 Richard Biener <rguenther@suse.de>
7118
7119 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
7120 (get_memory_order): Likewise.
7121
7122 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
7123
7124 * tree-vect-stmts.c (vectorizable_store): Check
7125 rhs vectype.
7126
7127 2016-01-19 David Malcolm <dmalcolm@redhat.com>
7128
7129 PR jit/68446
7130 * gcc.c (driver::decode_argv): Add call to
7131 init_opts_obstack before init_options_struct.
7132 * opts.c (init_opts_obstack): Remove idempotency.
7133 (init_options_struct): Replace call to init_opts_obstack
7134 with a gcc_assert to verify that it has already been called.
7135 * toplev.c (toplev::main): Add call to init_opts_obstack before
7136 calls to init_options_struct.
7137 (toplev::finalize): Move cleanup of opts_obstack next to
7138 cleanup of save_decoded_options, clearing the latter, and
7139 save_decoded_options_count.
7140
7141 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7142
7143 PR target/69135
7144 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
7145 attribute to unconditional. Remove %? from output template.
7146
7147 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
7148 Jiong Wang <jiong.wang@arm.com>
7149
7150 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
7151 generated from different expand order.
7152
7153 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
7154
7155 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
7156 Add support for CCMP costing.
7157
7158 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
7159
7160 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
7161 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
7162 (fccmpe<mode>): Likewise.
7163 (fcmp): Rename to fcmp and globalize pattern.
7164 (fcmpe): Likewise.
7165 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
7166 (aarch64_gen_ccmp_next): Add FP support.
7167
7168 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
7169
7170 * target.def (gen_ccmp_first): Update documentation.
7171 (gen_ccmp_next): Likewise.
7172 * doc/tm.texi (gen_ccmp_first): Update documentation.
7173 (gen_ccmp_next): Likewise.
7174 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
7175 expand_ccmp_expr_1. Improve comments.
7176 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
7177 (ccmp_ior<mode>): Remove pattern.
7178 (cmp<mode>): Remove expand.
7179 (cmp): Globalize pattern.
7180 (cstorecc4): Use cc_register.
7181 (mov<mode>cc): Remove ccmp_cc_register check.
7182 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
7183 Simplify after removal of CC_DNE/* modes.
7184 (aarch64_ccmp_mode_to_code): Remove.
7185 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
7186 In 'k' case use integer as condition.
7187 (aarch64_nzcv_codes): Remove inverted cases.
7188 (aarch64_code_to_ccmode): Remove.
7189 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
7190 comparison with CC register to be used in folowing CCMP/branch/CSEL.
7191 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
7192 pattern. Return the comparison with CC register. Invert conditions
7193 when bitcode is OR.
7194 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
7195 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
7196
7197 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
7198
7199 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
7200 instrumented_version.
7201
7202 2016-01-19 Richard Biener <rguenther@suse.de>
7203
7204 PR tree-optimization/69336
7205 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
7206 handled components with get_ref_base_and_extent.
7207 (equal_mem_array_ref_p): Adjust.
7208
7209 2016-01-19 Jakub Jelinek <jakub@redhat.com>
7210
7211 PR debug/65779
7212 * shrink-wrap.c: Include valtrack.h.
7213 (move_insn_for_shrink_wrap): Add DEBUG argument. If
7214 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
7215 in between insn and where it will be moved to. Call
7216 dead_debug_insert_temp.
7217 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
7218 first and dead_debug_local_finish at the end.
7219 For uses and defs bitmap, handle all regs in between REGNO and
7220 END_REGNO, not just the first one.
7221
7222 2016-01-19 Richard Biener <rguenther@suse.de>
7223
7224 PR tree-optimization/69352
7225 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
7226 (equal_mem_array_ref_p): Constrain size and max size properly.
7227 Compare the reverse flag.
7228
7229 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
7230
7231 * ira.c (ira): Update regstat data if we deleted insns.
7232
7233 2016-01-19 Jakub Jelinek <jakub@redhat.com>
7234
7235 PR rtl-optimization/68955
7236 PR rtl-optimization/64557
7237 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
7238 here. Fix up formatting.
7239 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
7240
7241 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
7242
7243 PR lto/69133
7244 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
7245 assume that the node has body.
7246 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
7247 check.
7248
7249 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
7250
7251 * lto-streamer-out.c (lto_output): Do not stream instrumentation
7252 thunks.
7253
7254 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
7255
7256 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
7257 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
7258
7259 2016-01-19 Martin Jambor <mjambor@suse.cz>
7260 Martin Liska <mliska@suse.cz>
7261 Michael Matz <matz@suse.de>
7262
7263 * Makefile.in (OBJS): Add new source files.
7264 (GTFILES): Add hsa.c.
7265 * common.opt (disable_hsa): New variable.
7266 (-Whsa): New warning.
7267 * config.in (ENABLE_HSA): New.
7268 * configure.ac: Treat hsa differently from other accelerators.
7269 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
7270 $enable_offloading.
7271 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
7272 * doc/install.texi (Configuration): Document --with-hsa-runtime,
7273 --with-hsa-runtime-include, --with-hsa-runtime-lib and
7274 --with-hsa-kmt-lib.
7275 * doc/invoke.texi (-Whsa): Document.
7276 (hsa-gen-debug-stores): Likewise.
7277 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
7278 to invoke offload compiler for hsa acclerator.
7279 * opts.c (common_handle_option): Determine whether HSA offloading
7280 should be performed.
7281 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
7282 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
7283 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
7284 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
7285 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
7286 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
7287 GF_OMP_FOR_KIND_GRID_LOOP.
7288 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
7289 (pp_gimple_stmt_1): Likewise.
7290 * gimple-walk.c (walk_gimple_stmt): Likewise.
7291 * gimple.c (gimple_build_omp_grid_body): New function.
7292 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
7293 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
7294 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
7295 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
7296 GF_OMP_TEAMS_GRID_PHONY.
7297 (gimple_statement_omp_single_layout): Updated comments.
7298 (gimple_build_omp_grid_body): New function.
7299 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
7300 (gimple_omp_for_grid_phony): New function.
7301 (gimple_omp_for_set_grid_phony): Likewise.
7302 (gimple_omp_parallel_grid_phony): Likewise.
7303 (gimple_omp_parallel_set_grid_phony): Likewise.
7304 (gimple_omp_teams_grid_phony): Likewise.
7305 (gimple_omp_teams_set_grid_phony): Likewise.
7306 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
7307 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
7308 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
7309 (BUILT_IN_GOMP_TARGET): Updated type.
7310 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
7311 (adjust_for_condition): New function.
7312 (get_omp_for_step_from_incr): Likewise.
7313 (extract_omp_for_data): Moved parts to adjust_for_condition and
7314 get_omp_for_step_from_incr.
7315 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
7316 (fixup_child_record_type): Bail out if receiver_decl is NULL.
7317 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
7318 (scan_omp_parallel): Do not create child functions for phony
7319 constructs.
7320 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
7321 (scan_omp_1_op): Checking assert we are not remapping to
7322 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
7323 (parallel_needs_hsa_kernel_p): New function.
7324 (expand_parallel_call): Register apprpriate parallel child
7325 functions as HSA kernels.
7326 (grid_launch_attributes_trees): New type.
7327 (grid_attr_trees): New variable.
7328 (grid_create_kernel_launch_attr_types): New function.
7329 (grid_insert_store_range_dim): Likewise.
7330 (grid_get_kernel_launch_attributes): Likewise.
7331 (get_target_argument_identifier_1): Likewise.
7332 (get_target_argument_identifier): Likewise.
7333 (get_target_argument_value): Likewise.
7334 (push_target_argument_according_to_value): Likewise.
7335 (get_target_arguments): Likewise.
7336 (expand_omp_target): Call get_target_arguments instead of looking
7337 up for teams and thread limit.
7338 (grid_expand_omp_for_loop): New function.
7339 (grid_arg_decl_map): New type.
7340 (grid_remap_kernel_arg_accesses): New function.
7341 (grid_expand_target_kernel_body): New function.
7342 (expand_omp): Call it.
7343 (lower_omp_for): Do not emit phony constructs.
7344 (lower_omp_taskreg): Do not emit phony constructs but create for them
7345 a temporary variable receiver_decl.
7346 (lower_omp_taskreg): Do not emit phony constructs.
7347 (lower_omp_teams): Likewise.
7348 (lower_omp_grid_body): New function.
7349 (lower_omp_1): Call it.
7350 (grid_reg_assignment_to_local_var_p): New function.
7351 (grid_seq_only_contains_local_assignments): Likewise.
7352 (grid_find_single_omp_among_assignments_1): Likewise.
7353 (grid_find_single_omp_among_assignments): Likewise.
7354 (grid_find_ungridifiable_statement): Likewise.
7355 (grid_target_follows_gridifiable_pattern): Likewise.
7356 (grid_remap_prebody_decls): Likewise.
7357 (grid_copy_leading_local_assignments): Likewise.
7358 (grid_process_kernel_body_copy): Likewise.
7359 (grid_attempt_target_gridification): Likewise.
7360 (grid_gridify_all_targets_stmt): Likewise.
7361 (grid_gridify_all_targets): Likewise.
7362 (execute_lower_omp): Call grid_gridify_all_targets.
7363 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
7364 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
7365 (tree_omp_clause): Added union field dimension.
7366 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
7367 * tree.c (omp_clause_num_ops): Added number of arguments of
7368 OMP_CLAUSE__GRIDDIM_.
7369 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
7370 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
7371 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
7372 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
7373 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
7374 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
7375 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
7376 * tree-pass.h (make_pass_gen_hsail): Declare.
7377 (make_pass_ipa_hsa): Likewise.
7378 * ipa-hsa.c: New file.
7379 * lto-section-in.c (lto_section_name): Add hsa section name.
7380 * lto-streamer.h (lto_section_type): Add hsa section.
7381 * timevar.def (TV_IPA_HSA): New.
7382 * hsa-brig-format.h: New file.
7383 * hsa-brig.c: New file.
7384 * hsa-dump.c: Likewise.
7385 * hsa-gen.c: Likewise.
7386 * hsa.c: Likewise.
7387 * hsa.h: Likewise.
7388 * toplev.c (compile_file): Call hsa_output_brig.
7389 * hsa-regalloc.c: New file.
7390
7391 2016-01-18 Jeff Law <law@redhat.com>
7392
7393 PR tree-optimization/69320
7394 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
7395 ranged object, do nothing if the RHS constant is not [0..1].
7396 (optimize_stmt): Comparing a boolean ranged object against a
7397 constant outside [0..1] results in a compile-time constant.
7398
7399 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
7400 test.
7401
7402 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
7403
7404 * doc/invoke.texi (Invoking GCC): Add new section to menu.
7405 (Option Summary): Update to reflect new section and moved options.
7406 (C++ Dialect Options): Move -fstats to new section.
7407 (Debugging Options): Move all dump, statistics, and other GCC
7408 developer options to new section. Rewrite section introduction
7409 and re-order remaining options to put the more basic ones first.
7410 (Optimization Options): Move -fira-verbose and -flto-report* to
7411 new section.
7412 (Developer Options): New section incorporating moved options.
7413 * doc/cppopts.texi (-dM): Update cross-reference.
7414
7415 2016-01-18 Richard Henderson <rth@redhat.com>
7416
7417 PR target/69176
7418 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
7419 operands to pseudo only if CSE is expected. Split long immediate
7420 operands only after reload, and for the stack pointer.
7421 (*add<GPI>3_pluslong): Remove.
7422 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
7423 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
7424 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
7425 (*add<GPI>3 peepholes): New.
7426 (*add<GPI>3 splitters): New.
7427 * config/aarch64/constraints.md (Upl): New.
7428 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
7429
7430 2016-01-18 Richard Biener <rguenther@suse.de>
7431
7432 PR tree-optimization/69297
7433 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
7434 stmt at most once.
7435 (vect_bb_vectorization_profitable_p): Clear visited flag again.
7436
7437 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
7438
7439 PR middle-end/68542
7440 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
7441 of mixind vector and scalar types.
7442 (fold_relational_const): Add handling of vector
7443 comparison with boolean result.
7444 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
7445 comparison of vector operands with boolean result for EQ/NE only.
7446 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
7447 (verify_gimple_cond): Likewise.
7448 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
7449 valid type of VAL.
7450
7451 2016-01-18 Joseph Myers <joseph@codesourcery.com>
7452
7453 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
7454 !TARGET_OCTEON.
7455
7456 2016-01-18 Richard Biener <rguenther@suse.de>
7457
7458 PR middle-end/69308
7459 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
7460
7461 2016-01-18 Tom de Vries <tom@codesourcery.com>
7462
7463 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
7464
7465 2016-01-18 Tom de Vries <tom@codesourcery.com>
7466
7467 * omp-low.c (set_oacc_fn_attrib): Make extern.
7468 * omp-low.h (set_oacc_fn_attrib): Declare.
7469 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
7470 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
7471 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
7472 Add and handle function parameter oacc_kernels_p.
7473 (find_reduc_addr, get_omp_data_i_param): New function.
7474 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
7475 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
7476 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
7477 Calculate dominance info. Skip loops that are not in a kernels region
7478 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
7479 (pass_parallelize_loops::execute): Call parallelize_loops with
7480 oacc_kernels_p argument.
7481 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
7482 New member function.
7483 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
7484 * passes.def: Add argument to pass_parallelize_loops instantation.
7485
7486 2016-01-18 Tom de Vries <tom@codesourcery.com>
7487
7488 * tree-parloops.c (pass_parallelize_loops::execute): Allow
7489 pass_parallelize_loops to be run outside the loop pipeline.
7490
7491 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
7492
7493 * tree-scalar-evolution.c (follow_copies_to_constant): New.
7494 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
7495
7496 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
7497
7498 PR target/63679
7499 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
7500 using get_ref_base_and_extent.
7501 (equal_mem_array_ref_p): New.
7502 (hashable_expr_equal_p): Add call to previous.
7503
7504 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
7505
7506 PR target/63679
7507 * tree-sra.c (disqualified_constants, constant_decl_p): New.
7508 (sra_initialize): Allocate disqualified_constants.
7509 (sra_deinitialize): Free disqualified_constants.
7510 (disqualify_candidate): Update disqualified_constants when appropriate.
7511 (create_access): Scan for constant-pool entries as we go along.
7512 (scalarizable_type_p): Add check against type_contains_placeholder_p.
7513 (maybe_add_sra_candidate): Allow constant-pool entries.
7514 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
7515 (initialize_constant_pool_replacements): New.
7516 (sra_modify_assign): Avoid mangling assignments created by previous,
7517 and don't generate writes into constant pool.
7518 (sra_modify_function_body): Call initialize_constant_pool_replacements.
7519
7520 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
7521
7522 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
7523 andnot instruction.
7524 (scalar_chain::convert_op): Likewise.
7525 * config/i386/i386.md (*andndi3_doubleword): New.
7526
7527 2016-01-18 Richard Biener <rguenther@suse.de>
7528
7529 PR tree-optimization/69170
7530 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
7531 building a vector from scalar results of a pattern stmt.
7532
7533 2016-01-18 Jakub Jelinek <jakub@redhat.com>
7534
7535 * haifa-sched.c (autopref_multipass_init): Work around
7536 -Wmaybe-uninitialized warning.
7537
7538 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
7539
7540 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
7541 against the constant 0.
7542
7543 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7544
7545 PR tree-optimization/68799
7546 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
7547 look up phi candidates in the statement-candidate map.
7548 (phi_add_costs): Likewise.
7549 (record_phi_increments): Likewise.
7550 (phi_incr_cost): Likewise.
7551 (ncd_with_phi): Likewise.
7552 (all_phi_incrs_profitable): Likewise.
7553
7554 2016-01-17 Jakub Jelinek <jakub@redhat.com>
7555
7556 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
7557 -Wmaybe-uninitialized warning.
7558
7559 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
7560
7561 * doc/invoke.texi (Invoking GCC): Add new section to menu.
7562 (Option Summary): Update to reflect new section and moved options.
7563 (C++ Dialect Options): Move -fvtable-verify and related options.
7564 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
7565 and profiling-related options.
7566 (Optimization Options): Move profile generation options and
7567 -fstack-protector and related options.
7568 (Instrumentation Options): New section incorporating moved options.
7569 (Code Generation Options): Move -finstrument-functions and
7570 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
7571
7572 2016-01-16 Tom de Vries <tom@codesourcery.com>
7573
7574 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
7575
7576 2016-01-16 Tom de Vries <tom@codesourcery.com>
7577
7578 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
7579
7580 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
7581
7582 * hash-table.h (hash_table::empty): Turn into an inline wrapper
7583 that checks whether the table is already empty. Rename the
7584 original implementation to...
7585 (hash_table::empty_slot): ...this new private function.
7586
7587 2016-01-15 David Malcolm <dmalcolm@redhat.com>
7588
7589 PR diagnostic/68899
7590 * diagnostic-show-locus.c (layout::print_source_line): Move x
7591 offset of line until after call to
7592 get_line_width_without_trailing_whitespace.
7593
7594 2016-01-15 Jeff Law <law@redhat.com>
7595
7596 PR tree-optimization/69270
7597 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
7598 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
7599 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
7600 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
7601 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
7602 ssa_name_has_boolean_range and constant_boolean_node.
7603
7604 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
7605
7606 PR rtl-optimization/69030
7607 * lra-spills.c (remove_pseudos): Check nrefs and make the function
7608 returning bool.
7609 (spill_pseudos): Delete debug insn for dead pseudo.
7610 (lra_spill): Initiate spill_hard_reg and slots memory separately.
7611
7612 2016-01-15 Jiong Wang <jiong.wang@arm.com>
7613
7614 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
7615 New.
7616 (TYPES_UNOPUS): Likewise.
7617 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
7618 builtin type, from UNOP to UNOPUS.
7619 (lbtruncuv4sf): Likewise.
7620 (lbtruncuv2df): Likewise.
7621 (lrounduv2sf): Likewise.
7622 (lrounduv4sf): Likewise.
7623 (lrounduv2df): Likewise.
7624 (lroundusf): Likewise.
7625 (lroundusf): Likewise.
7626 (lceiluv2sf): Likewise.
7627 (lceiluv4sf): Likewise.
7628 (lceiluv2df): Likewise.
7629 (lceilusf): Likewise.
7630 (lceiludf): Likewise.
7631 (lflooruv2sf): Likewise.
7632 (lflooruv4sf): Likewise.
7633 (lflooruv2df): Likewise.
7634 (lfloorusf): Likewise.
7635 (lfloorudf): Likewise.
7636 (lfrintnuv2sf): Likewise.
7637 (lfrintnuv4sf): Likewise.
7638 (lfrintnuv2df): Likewise.
7639 (lfrintnusf): Likewise.
7640 (lfrintnudf): Likewise.
7641 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
7642 conversion.
7643 (vcvtq_u32_f32): Likewise.
7644 (vcvtq_u64_f64): Likewise.
7645 (vcvta_u32_f32): Likewise.
7646 (vcvtaq_u32_f32): Likewise.
7647 (vcvtaq_u64_f64): Likewise.
7648 (vcvtm_u32_f32): Likewise.
7649 (vcvtmq_u32_f32): Likewise.
7650 (vcvtmq_u64_f64): Likewise.
7651 (vcvtn_u32_f32): Likwise.
7652 (vcvtnq_u32_f32): Likewise.
7653 (vcvtnq_u64_f64): Likewise.
7654 (vcvtp_u32_f32): Likewise.
7655 (vcvtpq_u32_f32): Likewise.
7656 (vcvtpq_u64_f64): Likewise.
7657 (vcvtmd_u64_f64): Likewise.
7658 (vcvtms_u32_f32): Likewise.
7659 (vcvtad_u64_f64): Likewise.
7660 (vcvtas_u32_f32): Likewise.
7661 (vcvtnd_u64_f64): Likewise.
7662 (vcvtns_u32_f32): Likewise.
7663 (vcvtpd_u64_f64): Likewise.
7664 (vcvtps_u32_f32): Likewise.
7665
7666 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7667
7668 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
7669 CSEL of zero_extended registers.
7670
7671 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7672
7673 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
7674 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
7675
7676 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7677
7678 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
7679 false when argument string is not found in the attributes table
7680 at all.
7681
7682 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
7683
7684 PR target/68609
7685 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
7686 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
7687 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
7688 precision estimate.
7689
7690 2016-01-15 Richard Biener <rguenther@suse.de>
7691
7692 PR tree-optimization/66856
7693 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
7694 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
7695 (vect_create_new_slp_node): Increment stmt reference count.
7696 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
7697 an SLP tree before swapping operands.
7698 (vect_build_slp_tree): Likewise.
7699 (destroy_bb_vec_info): Free stmt info after SLP instances.
7700 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
7701 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
7702 (STMT_VINFO_NUM_SLP_USES): New macro.
7703
7704 2016-01-15 Richard Biener <rguenther@suse.de>
7705
7706 PR debug/69137
7707 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
7708 (add_linkage_name): ... here.
7709 (gen_typedef_die): Use add_linkage_name_raw instead of
7710 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
7711 if necessary.
7712
7713 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
7714
7715 * gimplify.c (oacc_default_clause): Decode reference and pointer
7716 types for both kernels and parallel regions.
7717
7718 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
7719
7720 PR middle-end/69246
7721 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
7722
7723 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
7724
7725 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
7726 (convert_scalars_to_vector): Likewise.
7727
7728 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
7729
7730 * doc/extend.texi (Type Traits): Fix grammar.
7731
7732 2016-01-15 Martin Jambor <mjambor@suse.cz>
7733
7734 * tree-inline.c (remap_decl): Use existing dclarations if
7735 remapping a type and prevent_decl_creation_for_types.
7736 (replace_locals_stmt): Do an initial remapping of non-VLA typed
7737 decls first. Do real remapping with
7738 prevent_decl_creation_for_types set.
7739 * tree-inline.h (copy_body_data): New field
7740 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
7741 padding.
7742
7743 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
7744
7745 * config/s390/s390.opt (mmvcle): More verbose help text.
7746
7747 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
7748
7749 * config/s390/s390.opt: Add period to -mzvector option text.
7750
7751 2016-01-15 Richard Biener <rguenther@suse.de>
7752
7753 PR tree-optimization/68961
7754 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
7755 of invariants in stores again.
7756
7757 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
7758
7759 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
7760
7761 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
7762
7763 * config/i386/i386.c (ix86_expand_branch): Don't split
7764 DI mode xor instruction to SI mode.
7765
7766 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
7767
7768 PR ipa/68148
7769 * ipa-icf.c (sem_function::merge): Virtual functions may become
7770 reachable even if they address is not taken and there are no
7771 idrect calls.
7772
7773 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
7774
7775 * lto-streamer-out.c (subtract_estimated_size): New function.
7776 (get_symbol_initial_value): Use it.
7777
7778 2016-01-15 Christian Bruel <christian.bruel@st.com>
7779
7780 PR target/65837
7781 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
7782 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
7783 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
7784 use add_builtin_function_ext_scope instead of add_builtin_function.
7785 (neon_set_p, neon_crypto_set_p): Remove.
7786 (arm_init_builtins): Always call arm_init_neon_builtins and
7787 arm_init_crypto_builtins.
7788 (arm_expand_builtin): Check that builtins are allowed for the arch.
7789 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
7790 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
7791 arm_init_neon_builtins call.
7792
7793 2016-01-15 Richard Biener <rguenther@suse.de>
7794
7795 PR tree-optimization/69117
7796 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
7797 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
7798 of the leader conservatively.
7799 (free_scc_vn): Restore original SSA name infos.
7800
7801 2016-01-14 Jeff Law <law@redhat.com>
7802
7803 PR tree-optimization/69270
7804 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
7805 single bit of precision, verify it's also unsigned.
7806 (record_edge_info): Use constant_boolean_node rather than fold_convert
7807 to convert boolean_true/boolean_false to the right type.
7808
7809 2016-01-14 Richard Henderson <rth@redhat.com>
7810
7811 PR rtl-opt/69014
7812 * loop-doloop.c (record_reg_sets): New.
7813 (doloop_optimize): Reject the transform if the sequence
7814 clobbers registers live at the end of the loop block.
7815 (doloop_optimize_loops): Enable df_live if needed.
7816
7817 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
7818
7819 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
7820 * gcc/config/rs6000/rs6000.c: Likewise.
7821 * gcc/config/rs6000/rs6000.h: Likewise.
7822 * gcc/config/rs6000/rs6000.md: Likewise.
7823 * gcc/doc/extend.texi: Likewsie.
7824
7825 2016-01-14 Jeff Law <law@redhat.com>
7826
7827 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
7828 typo.
7829
7830 2016-01-14 Richard Henderson <rth@redhat.com>
7831
7832 PR c/69272
7833 PR tree-opt/68964
7834 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
7835 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
7836 instead of builtin_decl_declared_p to test for declaration.
7837
7838 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
7839
7840 * doc/loop.texi (Loop Analysis and Representation): Document
7841 loop_depth function.
7842
7843 2016-01-14 Tom de Vries <tom@codesourcery.com>
7844
7845 PR tree-optimization/68773
7846 * omp-low.c (expand_omp_target): Don't set force_output.
7847 * varpool.c (varpool_node::get_create): Same.
7848 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
7849 offload_funcs with force_output.
7850
7851 2016-01-14 Jakub Jelinek <jakub@redhat.com>
7852
7853 PR debug/69244
7854 * lra-eliminations.c (move_plus_up): Don't change anything if either
7855 the outer or inner subreg mode is not MODE_INT.
7856 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
7857 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
7858
7859 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
7860
7861 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
7862 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
7863 reduc_uplus_@var{m}): Remove.
7864 * expr.c (expand_expr_real_2): Remove expansion path for
7865 reduc_[us](min|max|plus) optabs.
7866 * optabs-tree.c (scalar_reduc_to_vector): Remove.
7867 * optabs-tree.h (scalar_reduc_to_vector): Remove.
7868 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
7869 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
7870 * tree-vect-loop.c (vectorizable_reduction): Remove test for
7871 reduc_[us](min|max|plus) optabs.
7872
7873 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
7874
7875 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
7876 (reduc_plus_scal_v2sf): New.
7877 (reduc_smax_v2sf): Rename to...
7878 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
7879 (reduc_smin_v2sf): Rename to...
7880 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
7881
7882 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
7883
7884 * alias.c (compare_base_symbol_refs): New function.
7885 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
7886 it.
7887
7888 2016-01-14 Jakub Jelinek <jakub@redhat.com>
7889
7890 PR middle-end/68146
7891 PR tree-optimization/69155
7892 * tree-complex.c: Include cfganal.h.
7893 (phis_to_revisit): New variable.
7894 (extract_component): Add phiarg_p argument. Assert that returned
7895 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
7896 (update_phi_components): Partly rewrite to use loop over real/imag
7897 components instead of code duplication. If extract_component returns
7898 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
7899 create_tmp_reg into the PHI node instead, and mention the phi triplet
7900 in phis_to_revisit.
7901 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
7902 in phis_to_revisit at the end.
7903
7904 2016-01-14 Richard Biener <rguenther@suse.de>
7905
7906 PR tree-optimization/68060
7907 * tree-vect-loop.c (vect_is_simple_reduction): Check the
7908 outer loop reduction is only used in the inner loop before
7909 detecting a double reduction.
7910
7911 2016-01-14 Jakub Jelinek <jakub@redhat.com>
7912
7913 PR target/68269
7914 * combine.c (expand_field_assignment): Punt if compute_mode is
7915 unsupported scalar mode.
7916
7917 2016-01-14 Richard Biener <rguenther@suse.de>
7918
7919 PR tree-optimization/66856
7920 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
7921 SLP node only if it built successfully.
7922 (vect_analyze_slp_instance): Adjust.
7923
7924 2016-01-14 Jeff Law <law@redhat.com>
7925
7926 PR tree-optimization/69270
7927 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
7928 (record_edge_info): Use it. Convert boolean_{true,false}_node
7929 to the type of op0.
7930
7931 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
7932
7933 PR ipa/66487
7934 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
7935 use block_ultimate_origin
7936 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
7937
7938 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
7939
7940 * doc/invoke.texi (Submodel Options): Rename section to
7941 "Machine-Dependent Options" to better reflect its content.
7942 Rewrite introductory text to remove archaic CPU names.
7943 Update references.
7944
7945 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
7946
7947 * doc/invoke.texi (Code Gen Options): Move section up in file,
7948 before target-specific options. Update menu and option summary
7949 to reflect the new section ordering.
7950
7951 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
7952
7953 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
7954 (C++ Dialect Options): Add cross-reference to -std option.
7955 * doc/standards.texi (C++ Language): Document C++14 support.
7956
7957 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
7958
7959 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
7960 for pack/unpack functions for __ibm128.
7961 (PACK_IF): Likewise.
7962 (UNPACK_IF): Likewise.
7963
7964 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
7965 support for __ibm128 pack/unpack functions.
7966 (rs6000_invalid_builtin): Likewise.
7967 (rs6000_init_builtins): Likewise.
7968 (rs6000_opt_masks): Likewise.
7969
7970 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
7971 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
7972 functions
7973 (RS6000_BTM_COMMON): Likewise.
7974
7975 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
7976 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
7977 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
7978 128-bit floating point. Add support for the double values to be
7979 in Altivec registers for TF/IF packing and unpacking, but restrict
7980 TD packing sub-fields to be FPR registers. Don't allow overlapped
7981 register support for packing. Allow pack inputs to be memory
7982 locations. Don't build generator functions for unpack<mode>_dm
7983 and unpack<mode>_nodm.
7984 (unpack<mode>_dm): Likewise.
7985 (unpack<mode>_nodm): Likewise.
7986 (pack<mode>): Likewise.
7987
7988 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
7989 built-in functions to pack/unpack explicit __ibm128 values.
7990 (__builtin_unpack_ibm128): Likewise.
7991
7992 * doc/extend.texi (PowerPC Built-in Functions): Document
7993 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
7994
7995 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
7996
7997 PR c/66208
7998 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
7999 Add new arg loc and pass it down as context.
8000 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
8001 to the location to use for the warning.
8002 (check_function_arguments): New arg loc. All callers changed. Pass
8003 it to check_function_nonnull.
8004 * c-common.h (check_function_arguments): Adjust declaration.
8005
8006 2016-01-13 Jakub Jelinek <jakub@redhat.com>
8007
8008 PR tree-optimization/69156
8009 * gimple.c (validate_type): Removed.
8010 (gimple_builtin_call_types_compatible_p): Use
8011 useless_type_conversion_p instead of validate_type.
8012 * value-prof.c (gimple_stringop_fixed_value): Fold
8013 icall_size to correct type.
8014
8015 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
8016
8017 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
8018 effects.
8019
8020 2016-01-13 Richard Henderson <rth@redhat.com>
8021
8022 PR tree-opt/68964
8023 * target.def (builtin_tm_load, builtin_tm_store): Remove.
8024 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
8025 (ix86_builtin_tm_store): Remove.
8026 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
8027 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
8028 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
8029 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
8030 * doc/tm.texi: Rebuild.
8031
8032 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
8033 (BUILT_IN_TM_MEMCPY_RTWN): New.
8034 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
8035 fallback from vector to integer helpers.
8036 (build_tm_load): Handle vector types directly, instead of
8037 via target hook.
8038 (build_tm_store): Likewise.
8039 (expand_assign_tm): Prepare for register types not handled by
8040 the above. Copy them to memory and use memcpy.
8041 * tree.c (tm_define_builtin): New.
8042 (find_tm_vector_type): New.
8043 (build_tm_vector_builtins): New.
8044 (build_common_builtin_nodes): Call it.
8045
8046 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
8047
8048 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
8049 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
8050
8051 2016-01-13 Tom de Vries <tom@codesourcery.com>
8052
8053 PR tree-optimization/69169
8054 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
8055 handled_struct_type param.
8056 (create_variable_info_for, intra_create_variable_infos): Call
8057 create_variable_info_for_1 with extra arg.
8058
8059 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
8060
8061 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
8062 and "armv8.1-a+crc" entries.
8063
8064 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
8065
8066 PR target/69228
8067 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
8068 Change first operand predicate from register_or_constm1_operand
8069 to register_operand.
8070 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
8071 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
8072 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
8073 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
8074 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
8075 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
8076 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
8077 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
8078 comparison with constm1_rtx from vec_prefetch_gen part.
8079
8080 2016-01-13 Richard Biener <rguenther@suse.de>
8081
8082 PR tree-optimization/69013
8083 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
8084 Exchange assert for a test.
8085
8086 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8087
8088 PR target/69247
8089 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
8090
8091 2016-01-13 Richard Biener <rguenther@suse.de>
8092
8093 PR tree-optimization/69242
8094 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
8095 assert with a check.
8096
8097 2016-01-13 Richard Biener <rguenther@suse.de>
8098
8099 PR tree-optimization/69186
8100 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8101 Properly guard vect_update_misalignment_for_peel call.
8102
8103 2016-01-12 Jeff Law <law@redhat.com>
8104
8105 PR tree-optimization/pr67755
8106 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
8107 "need_profile_correction".
8108 (thread_block_1): Initialize new field to false by default. If we
8109 have multiple thread paths through a common joiner to different
8110 final targets, then set new field to true.
8111 (compute_path_counts): Only do count adjustment when it's really
8112 needed.
8113
8114 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
8115
8116 * doc/invoke.texi (Spec Files): Move section down in file, past
8117 all command-line option descriptions.
8118
8119 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8120
8121 PR middle-end/54809
8122 * doc/gty.texi: Remove documentation of mark_hook.
8123 * gengtype.c (struct write_types_data): Remove code to support
8124 mark_hook attribute.
8125 (walk_type): Likewise.
8126 (write_func_for_structure): Likewise.
8127
8128 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
8129
8130 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
8131 Directory Options, and -specs= to Overall Options.
8132 (Overall Options): Adjust similarly. Reorder to group related
8133 options together. Make -specs= cross-reference the spec file details.
8134 (Directory Options): Adjust similarly.
8135
8136 2016-01-12 Jeff Law <law@redhat.com>
8137
8138 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
8139
8140 2016-01-12 Olivier Hainque <hainque@adacore.com>
8141
8142 * gcc.c (spec_undefvar_allowed): New global.
8143 (process_command): Set to true when running for --version or --help,
8144 alone or together.
8145 (getenv_spec_function): When the variable is not defined, use the
8146 variable name as the variable value if we're allowed not to issue
8147 a fatal error.
8148
8149 2016-01-12 Bin Cheng <bin.cheng@arm.com>
8150
8151 PR tree-optimization/68911
8152 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
8153 information computed for expression "init + nit * step".
8154
8155 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
8156
8157 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
8158 about name of GCC executable. Remove deleted node from menu.
8159 (Directory Options) <-B>: Remove cross-reference to deleted node.
8160 (Target Options): Delete section.
8161
8162 2016-01-12 Christian Bruel <christian.bruel@st.com>
8163
8164 PR target/69180
8165 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
8166 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
8167
8168 2016-01-12 Jakub Jelinek <jakub@redhat.com>
8169
8170 PR target/69198
8171 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
8172 aligned_mem is properly set for AVX512-VL floating point masked
8173 stores.
8174
8175 PR target/69175
8176 * ifcvt.c (cond_exec_process_if_block): When removing the last
8177 insn from then_bb, remove also any possible barriers that follow it.
8178
8179 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
8180
8181 PR target/68456
8182 PR target/69226
8183 * config/i386/iamcu.h (SIZE_TYPE): New macro.
8184 (PTRDIFF_TYPE): Likewise.
8185 (WCHAR_TYPE): Likewise.
8186 (WCHAR_TYPE_SIZE): Likewise.
8187 (STDINT_LONG32): Likewise.
8188
8189 2016-01-12 Richard Biener <rguenther@suse.de>
8190
8191 PR tree-optimization/69053
8192 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
8193 convert initial value for cond reductions.
8194
8195 2016-01-12 Richard Biener <rguenther@suse.de>
8196
8197 PR tree-optimization/69007
8198 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
8199 widen_sum after dot_prod and sad.
8200
8201 2016-01-12 Richard Biener <rguenther@suse.de>
8202
8203 PR tree-optimization/69168
8204 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
8205 pattern stmt SLP type.
8206 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
8207 end up unused so cope with that case.
8208
8209 2016-01-12 Richard Biener <rguenther@suse.de>
8210
8211 PR tree-optimization/69157
8212 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
8213 stmts def type only during analyze phase.
8214 (vectorizable_call): Likewise.
8215 (vectorizable_simd_clone_call): Likewise.
8216 (vectorizable_conversion): Likewise.
8217 (vectorizable_assignment): Likewise.
8218 (vectorizable_shift): Likewise.
8219 (vectorizable_operation): Likewise.
8220 (vectorizable_store): Likewise.
8221 (vectorizable_load): Likewise.
8222
8223 2016-01-12 Richard Biener <rguenther@suse.de>
8224
8225 PR tree-optimization/69174
8226 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
8227 space.
8228 (vectorizable_load): Properly compute the number of loads needed
8229 for permuted strided SLP loads and do not spuriously assign
8230 to SLP_TREE_VEC_STMTS.
8231
8232 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
8233
8234 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
8235 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
8236 (MD_EXEC_PREFIX): Remove.
8237 (MD_STARTFILE_PREFIX) Removee.
8238 (FILE_NAME_ABSOLUTE_P): Remove.
8239 (CPP_SPEC): Do not read macros from sys/version.h.
8240 (LINK_COMMAND_SPEC): Remove.
8241 (LOCAL_INCLUDE_DIR): Remove.
8242 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
8243 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
8244 (POST_LINK_SPEC): Define to invoke stubify after linker
8245 (LIBSTDCXX): Remove define
8246 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
8247 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
8248 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
8249 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
8250 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
8251 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
8252 (i386_djgpp_asm_named_section): Add propotype of new procedure
8253
8254 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
8255 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
8256 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
8257 in config/i386/djgpp.h).
8258 (STANDARD_STARTFILE_PREFIX_2): Define identical to
8259 STANDARD_STARTFILE_PREFIX_1.
8260 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
8261 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
8262 installation errors.
8263 (MAX_OFILE_ALIGNMENT): Define to 128.
8264 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
8265
8266 * config/i386/djgpp.c: New file. Add implementation of
8267 i386_djgpp_asm_named_section.
8268
8269 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
8270
8271 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
8272 Add rule for building djgpp.o.
8273
8274 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8275
8276 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
8277 (rtx_is_swappable_p): Reductions are swappable.
8278 (insn_is_swappable_p): V2DF reductions are swappable.
8279
8280 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
8281
8282 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
8283 reloads for other unsupported memory operands.
8284
8285 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
8286 Jim Wilson <jim.wilson@linaro.org>
8287
8288 PR target/69194
8289 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
8290 copy_to_mode_reg instead of force_reg.
8291
8292 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
8293
8294 PR target/69225
8295 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
8296 TARGET_80387 is true.
8297
8298 2016-01-11 Jakub Jelinek <jakub@redhat.com>
8299
8300 PR target/69071
8301 * lra-eliminations.c (move_plus_up): Only move plus up
8302 if subreg of the constant can be simplified into constant
8303 and use the simplified subreg of the constant instead of
8304 the original constant.
8305
8306 * fold-const.c (fold_convertible_p): Don't return true
8307 for conversion of VECTOR_TYPE to same sized integral type.
8308 (fold_convert_loc): Fix up formatting. Fold conversion of
8309 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
8310 instead of NOP_EXPR.
8311
8312 PR tree-optimization/69214
8313 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
8314 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
8315 Formatting fix.
8316
8317 PR tree-optimization/69207
8318 * tree-vect-slp.c (vect_get_constant_vectors): For
8319 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
8320 fold_convertible_p to vector_type's element type, and always
8321 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
8322
8323 2016-01-11 Richard Biener <rguenther@suse.de>
8324
8325 PR tree-optimization/69173
8326 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
8327 fixup the cycle if all stmts are in a pattern.
8328
8329 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
8330
8331 PR middle-end/68999
8332 * alias.c (base_alias_check): Move check for addresses with
8333 alignment ANDs before the call for compare_base_decls.
8334 (memrefs_conflict_p): Return -1 for different decls
8335 that went through alignment adjustments.
8336
8337 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8338
8339 PR rtl-optimization/68796
8340 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
8341 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
8342 and QImode comparisons against zero with CC_NZmode.
8343 * config/aarch64/iterators.md (short_mask): New mode_attr.
8344
8345 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
8346
8347 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
8348 (<avx512>_store<mode>_mask): Likewise.
8349
8350 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
8351 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8352
8353 PR rtl-optimization/68841
8354 * ifcvt.c (struct noce_if_info): Add orig_x field.
8355 (bbs_ok_for_cmove_arith): Add to_rename parameter.
8356 Don't record conflicts on to_rename if it's present.
8357 Allow memory destinations in sets.
8358 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
8359 blocks, passing orig_x to the checks.
8360 (noce_process_if_block): Set if_info->orig_x appropriately.
8361
8362 2016-01-11 Tom de Vries <tom@codesourcery.com>
8363
8364 PR tree-optimization/69069
8365 * tree-parloops.c (create_parallel_loop): Add missing phi args.
8366
8367 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
8368
8369 PR rtl-optimization/68920
8370 * config/i386/i386.c (ix86_option_override_internal): Restrict number
8371 of conditional moves for RTL if-conversion to 1 for
8372 TARGET_ONE_IF_CONV_INSN.
8373 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
8374 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
8375 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
8376 parameter to restirct number of conditional moves for
8377 RTL if-conversion.
8378 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
8379 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
8380 conditionl moves.
8381
8382 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
8383
8384 PR bootstrap/69123
8385 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
8386 onepart vars. Fix typo in comment. Fix reversed condition in
8387 unshare test.
8388 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
8389
8390 PR bootstrap/69123
8391 * var-tracking.c (dump_onepart_variable_differences): New.
8392 (dataflow_set_different): If a detailed dump is requested,
8393 delay early returns and dump differences between onepart
8394 variables present before and after, and added variables.
8395
8396 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
8397
8398 PR target/69010
8399 * expr.c (expand_expr_real_1): For boolean vector constants
8400 with a scalar mode use const_scalar_mask_from_tree.
8401 (const_scalar_mask_from_tree): New.
8402 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
8403 assigned to a mask type to handle constants.
8404
8405 2016-01-11 Martin Jambor <mjambor@suse.cz>
8406
8407 PR ipa/69044
8408 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
8409 useless parameters if we cannot change function signature.
8410
8411 2016-01-11 Martin Jambor <mjambor@suse.cz>
8412
8413 PR ipa/66616
8414 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
8415 flag.
8416
8417 2016-01-11 Tom de Vries <tom@codesourcery.com>
8418
8419 PR tree-optimization/69109
8420 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
8421 latch with phi.
8422
8423 2016-01-11 Tom de Vries <tom@codesourcery.com>
8424
8425 PR tree-optimization/69108
8426 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
8427 res is not used in a phi.
8428
8429 2016-01-11 Yury Gribov <y.gribov@samsung.com>
8430
8431 PR 67425
8432 * common.opt (frandom-seed): Fix parameter name.
8433 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
8434
8435 2016-01-11 Tom de Vries <tom@codesourcery.com>
8436
8437 PR tree-optimization/69058
8438 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
8439 not supported.
8440
8441 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
8442
8443 * config/arc/arc.opt (mdiv-rem): Add period to the end.
8444 (mcode-density): Likewise.
8445
8446 2016-01-10 Tom de Vries <tom@codesourcery.com>
8447
8448 PR tree-optimization/69062
8449 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
8450 (parallelize_loops): Don't paralelize loop that has phi with address
8451 arg.
8452
8453 2016-01-10 Tom de Vries <tom@codesourcery.com>
8454
8455 PR tree-optimization/69039
8456 * tree-parloops.c (try_create_reduction_list): Only allow single exit
8457 phi for reduction.
8458
8459 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
8460
8461 PR middle-end/68743
8462 * match.pd: Require target has function_c99_misc before doing
8463 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
8464
8465 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
8466
8467 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
8468 use GMPINC.
8469 * configure: Regenerate.
8470
8471 2016-01-09 Jakub Jelinek <jakub@redhat.com>
8472
8473 PR middle-end/50865
8474 PR tree-optimization/69097
8475 * fold-const.h (expr_not_equal_to): New prototype.
8476 * fold-const.c: Include stringpool.h and tree-ssanames.h.
8477 (expr_not_equal_to): New function.
8478 * match.pd (X % -Y is the same as X % Y): Don't optimize
8479 unless X is known not to be equal to minimum or Y is known
8480 not to be equal to -1.
8481 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
8482 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
8483 (simplify_stmt_using_ranges): Adjust caller.
8484 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
8485 substitute_and_fold.
8486
8487 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
8488
8489 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
8490 w/o DECL_NAME.
8491
8492 2016-01-08 Jakub Jelinek <jakub@redhat.com>
8493
8494 PR tree-optimization/69167
8495 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
8496 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
8497 ops[0] comparison.
8498 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
8499
8500 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
8501 Richard Biener <rguenther@suse.de>
8502
8503 PR tree-optimization/68707
8504 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
8505 instances that can be handled via vect_load_lanes.
8506
8507 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
8508
8509 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
8510 if we can't determine address equivalence.
8511 * alias.c (compare_base_decl): Update for changed return value of
8512 symtab_node::equal_address_to.
8513
8514 2016-01-08 Jason Merrill <jason@redhat.com>
8515
8516 PR c++/68983
8517 PR c++/67557
8518 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
8519 * expr.c (store_field): Not here.
8520 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
8521 call with TREE_ADDRESSABLE type.
8522 * tree-cfg.c (verify_gimple_call): Adjust.
8523
8524 2016-01-08 Olivier Hainque <hainque@adacore.com>
8525
8526 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
8527 libc_internal.
8528
8529 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
8530
8531 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
8532 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
8533 (reduc_smin_v2sf): Rename to...
8534 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
8535 (reduc_splus_v2sf): Rename to...
8536 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
8537
8538 2016-01-08 Jakub Jelinek <jakub@redhat.com>
8539
8540 PR tree-optimization/69162
8541 * gimplify.c (gimplify_va_arg_expr): Encode original type of
8542 valist argument in another argument.
8543 (gimplify_modify_expr): Adjust for the above change. Cleanup.
8544 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
8545 to determine the va_list type, build a MEM_REF instead of
8546 build_fold_indirect_ref.
8547
8548 PR tree-optimization/69172
8549 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
8550 gimple_build.
8551
8552 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
8553
8554 PR tree-optimization/67781
8555 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
8556 and cmpnop in two steps: first the ones not accessed in original
8557 gimple expression in a endian independent way and then the ones not
8558 accessed in the final result in an endian-specific way.
8559
8560 2016-01-08 Jakub Jelinek <jakub@redhat.com>
8561
8562 PR tree-optimization/69083
8563 * tree-vect-slp.c (vect_get_constant_vectors): For
8564 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
8565 element type. If op is fold_convertible_p to vector_type's element
8566 type, use NOP_EXPR instead of VCE.
8567
8568 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
8569
8570 PR rtl-optimization/67778
8571 PR rtl-optimization/68634
8572 PR rtl-optimization/68909
8573 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
8574 block from the stack until done with it. Remove a superfluous
8575 bitmap set. Remove a superfluous bitmap test.
8576
8577 2016-01-07 Martin Sebor <msebor@redhat.com>
8578
8579 PR c/68966
8580 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
8581 constraint on the type of arguments.
8582
8583 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
8584
8585 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
8586 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
8587 unaligned_access on the gcc_options set.
8588 * config/arm/arm.c (arm_option_override_internal): Use
8589 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
8590
8591 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
8592
8593 PR target/69140
8594 * config/i386/i386.c (ix86_frame_pointer_required): Enable
8595 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
8596
8597 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
8598
8599 Revert
8600 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
8601
8602 PR target/69140
8603 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
8604 depending on frame_pointer_needed before remaining integer and SSE
8605 registers are saved.
8606
8607 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
8608
8609 PR 1078
8610 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
8611
8612 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
8613
8614 PR target/69171
8615 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
8616 Use the "xBm" constraint.
8617 (float<sseintvecmodelower><mode>2<mask_name><round_name):
8618 Likewise.
8619 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
8620 (sse_cvtsi2ssq<round_name>): Likewise.
8621 (sse_cvtss2si<round_name>): Likewise.
8622 (sse_cvtss2siq<round_name>): Likewise.
8623 (sse2_cvtsi2sdq<round_name>): Likewise.
8624 (sse2_cvtsd2si<round_name>): Likewise.
8625 (sse2_cvtsd2siq<round_name>): Likewise.
8626 * config/i386/subst.md (round_nimm_scalar_predicate): New
8627 predicate.
8628
8629 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
8630
8631 PR middle-end/67639
8632 * varasm.c (make_decl_rtl): Mark invalid register vars as
8633 DECL_EXTERNAL.
8634
8635 PR rtl-optimization/66206
8636 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
8637 All callers changed.
8638
8639 2016-01-07 Jakub Jelinek <jakub@redhat.com>
8640
8641 PR tree-optimization/69141
8642 * tree-ssa-pre.c: Include langhooks.h.
8643 (eliminate_dom_walker::before_dom_children): Use
8644 lang_hooks.decl_printable_name instead of
8645 cgraph_node::get ()->name ().
8646
8647 PR middle-end/68960
8648 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
8649 it and DECL_ALIGN too.
8650
8651 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
8652
8653 * config/mips/mips-ftypes.def: Sort to lexicographical order.
8654
8655 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
8656
8657 PR target/69140
8658 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
8659 depending on frame_pointer_needed before remaining integer and SSE
8660 registers are saved.
8661
8662 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8663
8664 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
8665 mode iterator with VSX_M2.
8666 (*p9_vecstore_<mode>): Likewise.
8667 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
8668 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
8669 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
8670 (define_split for VSX_LE128 stores): Likewise.
8671 (define_peephole2 for TImode LE swaps): Likewise.
8672 (define_split for VSX_LE128 post-reload stores): Likewise.
8673
8674 2016-01-06 Marek Polacek <polacek@redhat.com>
8675
8676 PR sanitizer/69099
8677 * convert.c (convert_to_integer_1): Adjust call to
8678 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
8679 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
8680 EXPR instead of ARG.
8681 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
8682
8683 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
8684
8685 PR 1078
8686 * doc/extend.texi (RL78 Variable Attributes): New section.
8687
8688 2016-01-05 Marek Polacek <polacek@redhat.com>
8689
8690 PR c/69104
8691 * builtins.c (get_memmodel): Use expansion point location rather than
8692 the input location. Call warning_at rather than warning.
8693 (expand_builtin_atomic_compare_exchange): Likewise.
8694 (expand_builtin_atomic_load): Likewise.
8695 (expand_builtin_atomic_store): Likewise.
8696 (expand_builtin_atomic_clear): Likewise.
8697
8698 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
8699
8700 PR target/68991
8701 * config/i386/i386.c (ix86_expand_vector_logical_operator):
8702 Replace nonimmediate_operand with vector_operand.
8703 * config/i386/predicates.md (vector_operand): New predicate.
8704 (general_vector_operand): Replace nonimmediate_operand with
8705 vector_operand.
8706 * config/i386/sse.md: Replace nonimmediate_operand with
8707 vector_operand and m constraint with Bm constraint on SSE
8708 patterns with 16-byte memory operand.
8709 * config/i386/subst.md (round_nimm_predicate): Replace
8710 nonimmediate_operand with vector_operand.
8711 (round_saeonly_nimm_predicate): Likewise.
8712 (round_saeonly_nimm_scalar_predicate): New.
8713
8714 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
8715
8716 PR target/68991
8717 * config/i386/constraints.md (Bm): New constraint.
8718 * config/i386/predicates.md (vector_memory_operand): New
8719 predicate.
8720 * config/i386/sse.md: Replace xm with xBm in plusminus and
8721 any_logic patterns.
8722
8723 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
8724
8725 PR 1078
8726 * doc/extend.texi (V850 Function Attributes): New section.
8727 (V850 Variable Attributes): New section.
8728
8729 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
8730
8731 PR 1078
8732 * doc/extend.texi (MicroBlaze Function Attributes): Document
8733 interrupt_handler and fast_interrupt attributes.
8734
8735 2016-01-05 Sergei Trofimovich <siarheit@google.com>
8736
8737 PR other/60465
8738 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
8739 for local symbolic operands.
8740 * config/ia64/predicates.md (local_symbolic_operand64): New
8741 predicate.
8742
8743 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8744
8745 PR rtl-optimization/68651
8746 * combine.c (combine_simplify_rtx): Canonicalize x + x into
8747 x << 1.
8748
8749 2016-01-05 Nathan Sidwell <nathan@acm.org>
8750
8751 * alias.c (compare_base_decls): Use symtab_node::get.
8752
8753 2016-01-05 Nick Clifton <nickc@redhat.com>
8754
8755 PR target/68770
8756 * ira-costs.c (copy_cost): Initialise the t_icode field of the
8757 secondary_reload_info structure.
8758
8759 PR target/66655
8760 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
8761 decls if weak support is available.
8762
8763 2016-01-04 Martin Sebor <msebor@redhat.com>
8764
8765 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
8766
8767 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
8768
8769 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
8770 OPTION_MASK_P9_DFORM.
8771
8772 * config/rs6000/constraints.md (wo constraint): New constraint for
8773 ISA 3.0 (power9).
8774
8775 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
8776 for wo constraint.
8777 (rs6000_init_hard_regno_mode_ok): Likewise.
8778
8779 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
8780 wo constraint.
8781
8782 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
8783 expanders not to have constraints. Add support for ISA 3.0 xxperm
8784 instruction. Add support for fusing xxlor with xxperm.
8785 (altivec_vperm_<mode>_internal): Likewise.
8786 (altivec_vperm_v8hiv16qi): Likewise.
8787 (altivec_vperm_<mode>v16q): Likewise.
8788 (altivec_vperm_<mode>_uns): Likewise.
8789 (vperm_v8hiv4si): Likewise.
8790 (vperm_v16qiv8hi): Likewise.
8791
8792 * doc/md.texi (RS/6000 constraints): Document wo constraint.
8793
8794 2016-01-04 Jakub Jelinek <jakub@redhat.com>
8795
8796 Update copyright years.
8797
8798 * gcc.c (process_command): Update copyright notice dates.
8799 * gcov-dump.c (print_version): Ditto.
8800 * gcov.c (print_version): Ditto.
8801 * gcov-tool.c (print_version): Ditto.
8802 * gengtype.c (create_file): Ditto.
8803 * doc/cpp.texi: Bump @copying's copyright year.
8804 * doc/cppinternals.texi: Ditto.
8805 * doc/gcc.texi: Ditto.
8806 * doc/gccint.texi: Ditto.
8807 * doc/gcov.texi: Ditto.
8808 * doc/install.texi: Ditto.
8809 * doc/invoke.texi: Ditto.
8810
8811 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
8812
8813 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
8814 modes larger than TImode as TImode if NEON is not enabled.
8815
8816 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
8817
8818 PR target/69100
8819 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
8820 mode for %f0-%f31 only if TARGET_FPU.
8821
8822 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
8823
8824 PR target/69072
8825 * config/sparc/sparc.c (scan_record_type): Take into account subfields
8826 to compute the PACKED_P predicate.
8827 (function_arg_record_value): Minor tweaks.
8828
8829 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
8830
8831 * doc/install.texi (--with-multilib-list): Describe the meaning of the
8832 option for arm*-*-* targets.
8833
8834 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
8835
8836 * doc/extend.texi (Common Function Attributes): Move docs for
8837 MSP430-specific attributes to....
8838 (MSP430 Function Attributes): ...here. Delete the redundant
8839 entries and copy-edit the remaining text.
8840 (MSP430 Variable Attributes): Use uniform format for index
8841 entries and add a cross-reference to the corresponding function
8842 attribute docs.
8843
8844 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
8845
8846 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
8847 -finite-math typo.
8848 (x86 Options): Likewise.
8849
8850 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
8851
8852 PR 1078
8853
8854 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
8855 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
8856 to corresponding attribute.
8857
8858 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
8859
8860 * doc/extend.texi (Common Function Attributes) <noplt>: Move
8861 to correct alphabetization of table. Copy-edit and correct
8862 markup.
8863 <stack_protect>: Likewise.
8864 <target_clones>: Likewise.
8865 <simd>: Likewise.
8866 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
8867 Correct punctuation.
8868 (Code Gen Options) <-fno-plt>: Copy-edit.
8869
8870 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8871
8872 PR target/68917
8873 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
8874 SI values. Explicitly convert SI to DI and vice-versa.
8875
8876 2016-01-01 Jakub Jelinek <jakub@redhat.com>
8877
8878 PR tree-optimization/69070
8879 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
8880 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
8881
8882 PR sanitizer/69055
8883 * ubsan.c (ubsan_instrument_float_cast): Call
8884 initialize_sanitizer_builtins.
8885
8886 PR target/69015
8887 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
8888 \f
8889 Copyright (C) 2016 Free Software Foundation, Inc.
8890
8891 Copying and distribution of this file, with or without modification,
8892 are permitted in any medium without royalty provided the copyright
8893 notice and this notice are preserved.