1 2016-12-12 Bernd Schmidt <bschmidt@redhat.com>
4 2016-11-07 Bernd Schmidt <bschmidt@redhat.com>
6 PR rtl-optimization/77309
7 * combine.c (make_compound_operation): Allow EQ for IN_CODE, and
8 don't assume an equality comparison for plain COMPARE.
9 (simplify_comparison): Pass a more accurate code to
10 make_compound_operation.
12 2016-12-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
14 Backport from mainline
15 2016-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
18 * config/arm/arm.c (thumb1_compute_save_reg_mask): Mark frame pointer
19 in save register mask if it is needed.
21 2016-12-11 Iain Sandoe <iain@codesourcery.com>
23 Backport from mainline
24 2016-11-27 Iain Sandoe <iain@codesourcery.com>
25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28 * config.in: Regenerate
29 * config/darwin-driver.c (darwin_driver_init): Emit a version string
31 * config/darwin.h(ASM_MMACOSX_VERSION_MIN_SPEC): New, new tests.
32 * config/darwin.opt(asm_macosx_version_min): New.
33 * config/i386/darwin.h: Handle ASM_MMACOSX_VERSION_MIN_SPEC.
34 * configure: Regenerate
35 * configure.ac: Check for mmacosx-version-min handling.
37 2016-12-11 Iain Sandoe <iain@codesourcery.com>
39 Backport from mainline
40 2016-11-27 Iain Sandoe <iain@codesourcery.com>
43 * config/i386/i386.c (ix86_code_end): Note that we emitted code
44 where the function might otherwise appear empty for picbase thunks.
45 (ix86_output_function_epilogue): If we find a zero-sized function
46 assume that reaching it is UB and trap. If we find a trailing label
48 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): If we
49 find a zero-sized function assume that reaching it is UB and trap.
50 If we find a trailing label, append a nop.
52 2016-12-11 Iain Sandoe <iain@codesourcery.com>
54 Backport from mainline
55 2016-11-27 Iain Sandoe <iain@codesourcery.com>
58 * config/darwin-sections.def (picbase_thunk_section): New.
59 * config/darwin.c (darwin_init_sections): Set up picbase thunk
60 section. (darwin_rodata_section, darwin_objc2_section,
61 machopic_select_section, darwin_asm_declare_constant_name,
62 darwin_emit_weak_or_comdat, darwin_function_section): Don’t use
63 coalesced with newer linkers.
64 (darwin_override_options): Decide on usage of coalesed sections
65 on the basis of the target linker version.
66 * config/darwin.h (MIN_LD64_NO_COAL_SECTS): New.
67 * config/darwin.opt (mtarget-linker): New.
68 * config/i386/i386.c (ix86_code_end): Do not force the thunks into
69 a coalesced section, instead use a thunks section.
71 Backport from mainline
72 2016-11-28 Iain Sandoe <iain@codesourcery.com>
75 * configure.ac (with_ld64): Use portable method to extract the
76 major part of the version number.
77 * configure: Regenerated.
79 Backport from mainline
80 2016-11-27 Iain Sandoe <iain@codesourcery.com>
83 * configure.ac (with-ld64): New var, set for Darwin, set on
84 detection of ld64, gcc_cv_ld64_export_dynamic: New, New test.
85 * config/darwin.h: Use LD64_HAS_DYNAMIC export. DEF_LD64: New,
87 * config/darwin10.h(DEF_LD64): Update for this target version.
88 * config/darwin12.h(LINK_GCC_C_SEQUENCE_SPEC): Remove rdynamic
89 test. (DEF_LD64): Update for this target version.
90 * configure: Regenerated.
91 * config.in: Regenerated.
93 Backport from mainline
94 2016-11-27 Iain Sandoe <iain@codesourcery.com>
97 * config/darwin.c (imachopic_indirection_name): Make data
98 section indirections linker-visible.
99 * config/darwin.h (ASM_GENERATE_INTERNAL_LABEL): Make local
100 constant labels linker-visible.
102 2016-12-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
104 Backport from mainline
105 2016-11-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
108 * config/arm/arm.c (thumb1_expand_prologue): Distinguish between lr
109 being live in the function and lr needing to be saved. Distinguish
110 between already saved pushable registers and registers to push.
111 Check for LR being an available pushable register.
113 2016-12-09 Nathan Sidwell <nathan@acm.org>
116 * convert.c (convert_to_integer_1): Maybe fold conversions to
117 integral types with fewer bits than its mode.
119 2016-12-09 Richard Biener <rguenther@suse.de>
121 Backport from mainline
122 2016-11-09 Richard Biener <rguenther@suse.de>
124 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
125 Look at the DR_BASE_ADDRESS object for forcing alignment.
127 2016-11-07 Richard Biener <rguenther@suse.de>
129 PR tree-optimization/78189
130 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Fix
131 alignment computation.
133 2016-12-09 Richard Biener <rguenther@suse.de>
135 Backport from mainline
136 2016-11-28 Richard Biener <rguenther@suse.de>
138 PR tree-optimization/78542
139 * tree-ssa-ccp.c (evaluate_stmt): Only valueize simplification
142 2016-11-23 Richard Biener <rguenther@suse.de>
144 PR tree-optimization/78482
145 * tree-cfgcleanup.c: Include tree-ssa-loop-niter.h.
146 (remove_forwarder_block_with_phi): When merging with a loop
147 header creates a new latch reset number of iteration information
150 2016-11-23 Richard Biener <rguenther@suse.de>
153 * match.pd ((~X & Y) -> X < Y, (X & ~Y) -> Y < X,
154 (~X | Y) -> X <= Y, (X | ~Y) -> Y <= X): Remove.
156 2016-11-11 Richard Biener <rguenther@suse.de>
158 PR tree-optimization/71575
159 * graphite-isl-ast-to-gimple.c (copy_cond_phi_nodes): Remove
162 2016-11-07 Richard Biener <rguenther@suse.de>
164 PR tree-optimization/78224
165 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
166 Split the fallthru edge in case its successor may have PHIs.
168 2016-11-05 David Edelsohn <dje.gcc@gmail.com>
169 Richard Biener <rguenther@suse.de>
173 * ipa-comdats.c (pass_ipa_comdats::gate): Require HAVE_COMDAT_GROUP.
175 2016-09-20 Richard Biener <rguenther@suse.de>
177 PR tree-optimization/77646
178 * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
181 2016-12-07 Segher Boessenkool <segher@kernel.crashing.org>
183 Backport from mainline
184 2016-11-12 Segher Boessenkool <segher@kernel.crashing.org>
187 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
188 return early if !optional_tbtab.
190 2016-12-07 Jakub Jelinek <jakub@redhat.com>
192 Backported from mainline
193 2016-11-28 Jakub Jelinek <jakub@redhat.com>
196 * rtl.h (remove_reg_equal_equiv_notes): Return bool instead of void.
197 * rtlanal.c (remove_reg_equal_equiv_notes): Return true if any
198 note has been removed.
199 * postreload.c (reload_combine_recognize_pattern): If
200 remove_reg_equal_equiv_notes returns true, call df_notes_rescan.
202 PR rtl-optimization/78546
203 * simplify-rtx.c (neg_const_int): When negating most negative
204 number in mode wider than HOST_BITS_PER_WIDE_INT, use
205 simplify_const_unary_operation to produce CONST_DOUBLE or
207 (simplify_plus_minus): Hanlde the case where neg_const_int
208 doesn't return a CONST_INT.
211 * tree-nested.c (convert_local_reference_stmt): After adding
212 shared (FRAME.NN) clause to omp parallel, task or target,
213 add it also to all outer omp parallel, task or target constructs.
215 2016-11-23 Jakub Jelinek <jakub@redhat.com>
218 * omp-low.c (build_outer_var_ref): Change lastprivate argument
219 to code, pass it recursively, adjust uses. For OMP_CLAUSE_PRIVATE
220 on worksharing constructs, treat it like clauses on simd construct.
222 (lower_rec_input_clauses): For OMP_CLAUSE_PRIVATE_OUTER_REF pass
223 OMP_CLAUSE_PRIVATE as last argument to build_outer_var_ref.
224 (lower_lastprivate_clauses): Pass OMP_CLAUSE_LASTPRIVATE instead
225 of true as last argument to build_outer_var_ref.
227 2016-11-22 Jakub Jelinek <jakub@redhat.com>
230 * expmed.c (expand_divmod): Use wide_int for computation of
231 op1_is_pow2. Don't set it if op1 is 0. Formatting fixes.
232 Use size <= HOST_BITS_PER_WIDE_INT instead of
233 HOST_BITS_PER_WIDE_INT >= size.
235 2016-11-21 Jakub Jelinek <jakub@redhat.com>
238 * omp-simd-clone.c (simd_clone_adjust_argument_types): Use NULL prefix
239 for tmp simd array if DECL_NAME (parm) is NULL.
241 2016-11-18 Jakub Jelinek <jakub@redhat.com>
244 * multiple_target.c (get_attr_len): Start with argnum and increment
245 argnum on every arg. Use strchr in a loop instead of counting commas
247 (get_attr_str): Increment argnum for every comma in the string.
248 (separate_attrs): Use for instead of while loop, simplify.
249 (expand_target_clones): Rename defenition argument to definition.
250 Free attrs and attr_str even when diagnosing errors. Temporarily
251 change input_location around targetm.target_option.valid_attribute_p
252 calls. Don't emit warning or errors if that function fails.
254 2016-11-16 Jakub Jelinek <jakub@redhat.com>
256 PR rtl-optimization/78378
257 * combine.c (make_extraction): Use force_to_mode for non-{REG,MEM}
258 inner only if pos is 0. Fix up formatting.
261 * omp-low.c (expand_omp_for_static_nochunk): Don't assert
262 that loop->header == body_bb if broken_loop.
264 2016-11-07 Jakub Jelinek <jakub@redhat.com>
267 * dse.c (dse_step5): Call scan_reads even if just
268 insn_info->frame_read. Improve and fix dump file messages.
271 * config/i386/i386.c (ix86_expand_sse_cmp): Force dest into
272 cmp_mode argument even for -O0 if cmp_mode != mode and maskcmp.
274 2016-11-04 Jakub Jelinek <jakub@redhat.com>
277 * alias.c (nonoverlapping_memrefs_p): Return 0 if exprx or expry
278 doesn't have rtl set.
280 2016-10-29 Jakub Jelinek <jakub@redhat.com>
282 PR rtl-optimization/77919
283 * expr.c (expand_expr_real_1) <normal_inner_ref>: Only avoid forcing
284 into memory if both modes are complex and their inner modes have the
285 same precision. If the two modes are different complex modes, convert
286 each part separately and generate a new CONCAT.
288 2016-10-28 Jakub Jelinek <jakub@redhat.com>
290 PR rtl-optimization/77919
291 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force CONCAT into
292 MEM if mode1 is not a complex mode.
294 2016-10-27 Jakub Jelinek <jakub@redhat.com>
297 * omp-simd-clone.c (simd_clone_adjust): Handle noreturn declare simd
300 2016-10-26 Jakub Jelinek <jakub@redhat.com>
301 Martin Liska <mliska@suse.cz>
304 * gimplify.c (gimplify_adjust_omp_clauses_1): For all added map
305 clauses with OMP_CLAUSE_SIZE being a decl, call omp_notice_variable
306 on outer context if any.
308 2016-10-05 Jakub Jelinek <jakub@redhat.com>
311 * ubsan.c (ubsan_ids): New GTY(()) array.
312 (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
313 instead of static local counters.
315 2016-09-22 Jakub Jelinek <jakub@redhat.com>
318 * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
319 for all IFN_GOMP_SIMD_* internal fns, not just for
320 IFN_GOMP_SIMD_ORDERED_*.
322 2016-09-20 Jakub Jelinek <jakub@redhat.com>
325 * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
326 cast to void * if the cast is from some other pointer type.
328 2016-09-19 Jakub Jelinek <jakub@redhat.com>
329 Jan Hubicka <jh@suse.cz>
332 * cgraph.c (cgraph_node::rtl_info): Pass &avail to
333 ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
334 Call ultimate_alias_target just once, not up to 4 times.
336 2016-12-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
338 Backport from mainline
339 2016-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
341 * config/arm/arm.md (arm_addsi3): Add alternative for addition of
342 general register with general register or ARM constant into SP
345 2016-12-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
347 Backport from mainline
348 2016-12-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
349 Stefan Freudenberger <stefan@reservoir.com>
351 PR tree-optimization/78646
352 * gimple-ssa-strength-reduction.c (replace_ref): The pointer
353 addition used for the memory base expression should have the type
356 2016-12-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
358 Backport from mainline
359 2016-09-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
360 Michael Meissner <meissner@linux.vnet.ibm.com>
363 * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
364 reg+reg addressing for TImode.
365 (rs6000_legitimate_address_p): Only allow register indirect
366 addressing for TImode, even without TARGET_QUAD_MEMORY.
368 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
370 Backport from mainline
371 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
373 * config/s390/s390-modes.def (CCVEQANY, CCVH, CCVHANY, CCVHU)
374 (CCVHUANY): Remove modes.
375 (CCVIH, CCVIHU, CCVIALL, CCVIANY, CCVFALL, CCVFANY): Add modes and
377 * config/s390/s390.c (s390_match_ccmode_set): Rename cc modes.
378 (s390_expand_vec_compare_scalar): Pick one of the cc consumer
380 (s390_branch_condition_mask): Adjust to use the new cc consumer
381 modes. The new modes allow for proper reversal in the middle-end.
382 (s390_expand_vec_compare_cc): Determine the proper cc producer and
383 consumer modes for a comparison.
384 * config/s390/s390.md: Rename CCVH to CCVIH and CCVHU to CCVIHU
386 * config/s390/vx-builtins.md: Likewise.
388 2016-12-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
390 Backport from mainline
391 2016-12-01 Alan Modra <amodra@gmail.com>
393 * gcc/config/rs6000/rs6000.c (insn_is_swappable_p): Properly
394 look inside UNSPEC_VSX_XXSPLTW vec.
396 2016-12-01 Michael Meissner <meissner@linux.vnet.ibm.com>
399 2016-11-17 Michael Meissner <meissner@linux.vnet.ibm.com>
402 * config/rs6000/predicates.md (fusion_addis_mem_combo_load): Add
403 the appropriate checks for SFmode/DFmode load/stores in GPR
405 (fusion_addis_mem_combo_store): Likewise.
406 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Rename
407 fusion_fpr_* to fusion_vsx_* and add in support for ISA 3.0 scalar
408 d-form instructions for traditional Altivec registers.
409 (emit_fusion_p9_load): Likewise.
410 (emit_fusion_p9_store): Likewise.
411 * config/rs6000/rs6000.md (p9 fusion store peephole2): Remove
412 early clobber from scratch register. Do not match if the register
413 being stored is the scratch register.
414 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_load): Rename fusion_fpr_*
415 to fusion_vsx_* and add in support for ISA 3.0 scalar d-form
416 instructions for traditional Altivec registers.
417 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
418 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
419 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
421 2016-12-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
423 Backport from mainline
424 2016-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
428 * tree-ssa-ter.c (temp_expr_table): Add reg_vars_cnt field.
429 (new_temp_expr_table): Initialise reg_vars_cnt.
430 (free_temp_expr_table): Release reg_vars_cnt.
431 (process_replaceable): Add reg_vars_cnt argument, set reg_vars_cnt
433 (find_replaceable_in_bb): Use the above to record register variable
434 write occurrences and cancel replacement across them.
436 2016-11-29 Kaz Kojima <kkojima@gcc.gnu.org>
438 Backported from mainline
439 2016-11-19 Kaz Kojima <kkojima@gcc.gnu.org>
442 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Use copy_to_mode_reg
443 instead of force_reg.
444 (sh_expand_setmem): Likewise.
446 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
449 * tree.h (wi::fits_to_boolean_p): New predicate.
450 (wi::fits_to_tree_p): Use it for boolean types.
451 * tree.c (int_fits_type_p): Likewise.
453 2016-11-24 Martin Liska <mliska@suse.cz>
455 Backported from mainline
456 2016-11-22 Martin Liska <mliska@suse.cz>
459 * ipa-icf.c (void sem_item::set_hash): Update m_hash_set.
460 (sem_function::get_hash): Use the new field.
461 (sem_function::parse): Remove an argument from ctor.
462 (sem_variable::parse): Likewise.
463 (sem_variable::get_hash): Use the new field.
464 (sem_item_optimizer::read_section): Use new ctor and set hash.
465 * ipa-icf.h: _hash is removed from sem_item::sem_item,
466 sem_variable::sem_variable, sem_function::sem_function.
468 2016-11-23 Uros Bizjak <ubizjak@gmail.com>
470 * config/i386/i386.md (*<any_or:code>hi_1): Fix operand 2 constraints.
471 (kxnor<mode>): Return "#" for alternative 0.
473 2016-11-23 Richard Biener <rguenther@suse.de>
475 Backport from mainline
476 2016-11-23 Richard Biener <rguenther@suse.de>
479 * tree.c (gimple_canonical_types_compatible_p): Ignore zero-sized
482 2016-11-17 Richard Biener <rguenther@suse.de>
485 * fold-const.c (negate_expr_p): Fix multiplication case.
487 2016-11-16 Richard Biener <rguenther@suse.de>
490 * gimplify.c (gimplify_function_tree): Do not instrument
491 GNU extern inline functions.
493 2016-11-07 Richard Biener <rguenther@suse.de>
495 PR tree-optimization/78228
496 * tree-ssa-phiopt.c (abs_replacement): Avoid introducing
499 2016-11-04 Richard Biener <rguenther@suse.de>
502 * loop-invariant.c (find_exits): Record entering inner
503 loops as possibly exiting to handle infinite sub-loops.
504 * tree-ssa-loop-im.c: Include tree-ssa-loop-niter.h.
505 (fill_always_executed_in_1): Honor infinite child loops.
507 2016-10-06 Richard Biener <rguenther@suse.de>
509 PR tree-optimization/77855
510 * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
511 instead of removing the current item while iterating over the set
514 2016-11-22 Walter Lee <walt@tilera.com>
516 Backport from mainline
517 2016-11-22 Walter Lee <walt@tilera.com>
519 * config/tilegx/tilegx.md (trap): New pattern.
520 * config/tilepro/tilepro.md (trap): Likewise.
522 2016-11-22 Walter Lee <walt@tilera.com>
524 Backport from mainline
525 2016-11-22 Walter Lee <walt@tilera.com>
527 * config/tilegx/tilegx.md (*zero_extract): Use
528 define_insn_and_split instead of define_insn; Handle pos + size >
530 (*sign_extract): Likewise.
532 2016-11-22 Uros Bizjak <ubizjak@gmail.com>
534 * Makefile.in ($(lang_checks_parallelized)): Fix detection
537 2016-11-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
539 Backport from mainline
540 2016-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
543 * config/aarch64/aarch64.md (*tb<optab><mode>1): Use
544 aarch64_simd_shift_imm_<mode> predicate for operand 1.
545 (<optab>, ANY_EXTRACT): Use tighter predicates on operands 2 and 3
546 to restrict them to an appropriate range and add FAIL check if the
547 region they specify is out of range. Delete useless constraint
549 (*<optab><mode>, ANY_EXTRACT): Add appropriate predicates on operands
550 2 and 3 to restrict their range and add pattern predicate.
552 2016-11-18 Walter Lee <walt@tilera.com>
554 Backport from mainline
555 2016-11-18 Walter Lee <walt@tilera.com>
557 * config/tilegx/tilegx.c (tilegx_gen_bundles): Preserve
558 end-of-bundle marker for consecutive barriers.
560 2016-11-18 Walter Lee <walt@tilera.com>
562 Backport from mainline
563 2016-11-18 Walter Lee <walt@tilera.com>
565 * config/tilegx/tilegx.md (clzsi2): Fix for big-endian.
567 2016-11-15 Matthias Klose <doko@ubuntu.com>
569 * doc/install.texi: Move the 'Overriding configure test results'
570 subsub section to the 'Cross-Compiler-Specific Options' sub section.
572 2016-11-13 Eric Botcazou <ebotcazou@adacore.com>
574 * ipa-icf.c (sem_function::merge): Do not create a wrapper also if the
575 original function needs a static chain.
577 2016-11-11 Uros Bizjak <ubizjak@gmail.com>
580 * config/i386/i386.md (rotate to rotatex splitter): Avoid overflow
581 when calculating operand 2.
582 (rotate to rotatex zext splitter): Ditto.
584 2016-11-11 Dominik Vogt <vogt@linux.vnet.ibm.com>
587 * config/s390/s390.md ("extzv", "*extzv<mode>_zEC12")
588 ("*extzv<mode>_z10"): Check validity of zero_extend arguments.
590 2016-11-09 Uros Bizjak <ubizjak@gmail.com>
593 * config/i386/i386.md (*<shift_insn><mode>3_doubleword): Mark
594 operand 0 as earlyclobber.
595 (*ashl<mode>3_doubleword): Ditto for all operand 0 alternatives.
597 2016-11-07 Peter Bergner <bergner@vnet.ibm.com>
600 2016-11-07 Peter Bergner <bergner@vnet.ibm.com>
602 * config.gcc (powerpc*-*-*, rs6000*-*-*): Remove setting of
603 INCLUDE_EXTRA_SPEC for Advance Toolchain builds.
605 2016-11-06 Jack Howarth <howarth.at.gcc@gmail.com>
608 * incpath.c: (remove_dup(): Also silently ignore EPERM.
610 2016-11-07 Richard Biener <rguenther@suse.de>
613 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
616 2016-11-03 Martin Liska <mliska@suse.cz>
618 Backport from mainline
619 2016-08-12 Martin Liska <mliska@suse.cz>
620 Adam Fineman <afineman@afineman.com>
622 * gcov.c (process_file): Create .gcov file when .gcda
625 2016-11-03 Richard Biener <rguenther@suse.de>
627 Backport from mainline
628 2016-09-29 Richard Biener <rguenther@suse.de>
630 PR tree-optimization/77768
631 * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
632 with stores to a place we know has a constant value.
633 * tree-vrp.c (set_defs_to_varying): New helper avoiding
634 writing to vr_const_varying.
635 (vrp_initialize): Call it.
636 (vrp_visit_stmt): Likewise.
637 (evrp_dom_walker::before_dom_children): Likewise.
638 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
639 Handle stores to readonly memory when removing redundant stores.
641 2016-11-03 Eric Botcazou <ebotcazou@adacore.com>
643 Backport from mainline
644 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
646 * explow.c (validize_mem): Do not modify the argument in-place.
648 2016-11-02 Will Schmidt <will_schmidt@vnet.ibm.com>
651 2016-10-26 Will Schmidt <will_schmidt@vnet.ibm.com>
654 * gimplify.c (gimplify_init_constructor): Move emit of constructor
655 assignment to earlier in the if/else logic.
657 2016-11-02 Richard Biener <rguenther@suse.de>
659 Backport from mainline
660 2016-11-02 Richard Biener <rguenther@suse.de>
662 PR tree-optimization/78047
663 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Initialize
664 fake field at offset zero conservatively regarding to may_have_pointers.
666 2016-10-07 Richard Biener <rguenther@suse.de>
668 PR tree-optimization/77879
669 * tree-ssa-structalias.c (handle_const_call): Properly handle
671 (handle_pure_call): Likewise.
673 2016-10-06 Richard Biener <rguenther@suse.de>
675 PR tree-optimization/77839
676 * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
679 2016-09-27 Richard Biener <rguenther@suse.de>
681 PR tree-optimization/77745
682 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
683 When removing redundant stores make sure to check compatibility
684 of the TBAA state for downstream accesses.
685 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
686 value-numbering virtual operands for store matches.
688 2016-09-21 Richard Biener <rguenther@suse.de>
690 PR tree-optimization/77648
691 * tree-ssa-structalias.c (process_constraint): Handle all DEREF
693 (make_transitive_closure_constraints): Adjust comment.
694 (make_any_offset_constraints): New function.
695 (handle_rhs_call): Make sure to first expand a pointer to all
696 subfields before transitively closing it.
697 (handle_const_call): Likewise. Properly expand returned
699 (handle_pure_call): Likewise.
701 2016-11-01 John David Anglin <danglin@gcc.gnu.org>
704 * config/pa/pa.md: Add new shift/add patterns to handle
705 (plus (mult (reg) (mem_shadd_operand)) (reg)) source operand.
707 2016-11-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
709 Backport from mainline
710 2016-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
712 PR rtl-optimization/78038
713 * ree.c (get_defs): Return NULL if a defining insn for REG cannot
714 be deduced to set REG through the RTL structure.
715 (make_defs_and_copies_lists): Return false on a failing get_defs call.
717 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
719 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
720 (MALLOC_ABI_ALIGNMENT): Define.
722 2016-10-28 Richard Biener <rguenther@suse.de>
726 * fold-const.c (make_bit_field_ref): Only adjust alias set
727 when the original alias set was zero.
729 2016-10-26 Uros Bizjak <ubizjak@gmail.com>
731 Backport from mainline
732 2016-10-21 Jakub Jelinek <jakub@redhat.com>
735 * config/i386/i386.c: Include fold-const-call.h, tree-vrp.h
737 (ix86_fold_builtin): Fold IX86_BUILTIN_[LT]ZCNT{16,32,64}
738 with INTEGER_CST argument.
739 (ix86_gimple_fold_builtin): New function.
740 (TARGET_GIMPLE_FOLD_BUILTIN): Define.
742 Backport from mainline
743 2016-10-20 Uros Bizjak <ubizjak@gmail.com>
746 * config/i386/bmiintrin.h (__tzcnt_u16): Call __builtin_ia32_tzcnt_u16.
747 (__tzcnt_u32, _tzcnt_u32): Call __builtin_ia32_tzcnt_u32.
748 (__tzcnt_u64, _tzcnt_u64): Call __builtin_ia32_tzcnt_u64.
749 * config/i386/lzcntintrin.h (__lzcnt_u16): Call
750 __builtin_ia32_lzcnt_u16.
751 (__lzcnt_u32, _lzcnt_u32): Call __builtin_ia32_lzcnt_u32.
752 (__lzcnt_u64, _lzcnt_u64): Call __builtin_ia32_lzcnt_u64.
753 * config/i386/i386.md (UNSPEC_LZCNT, UNSPEC_TZCNT): New unspecs.
754 (ctz<mode>2, *ctz<mode>2): Use SWI48 mode iterator.
755 (bmi_tzcnt_<mode>): New expander.
756 (*bmi_tzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
757 (*bmi_tzcnt_<mode>_falsedep, *bmi_tzcnt_<mode>): New insn patterns.
758 (clz<mode>2_lzcnt, *clz<mode>2_lzcnt): Use SWI48 mode iterator.
759 (lzcnt_<mode>): New expander.
760 (*lzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
761 (*lzcnt_<mode>_falsedep, *lzcnt_<mode>): New insn patterns.
762 * config/i386/i386-builtin-types.def (UINT_FTYPE_UINT): New.
763 (UINT64_FTYPE_UINT64): New.
764 * config/i386/i386-builtin.def (__builtin_clzs): Remove description.
765 (__builtin_ia32_lzcnt_u16): New description.
766 (__builtin_ia32_lzcnt_u32): Ditto.
767 (__builtin_ia32_lzcnt_u64): Ditto.
768 (__builtin_ctzs): Remove description.
769 (__builtin_ia32_tzcnt_u16): New description.
770 (__builtin_ia32_tzcnt_u32): Ditto.
771 (__builtin_ia32_tzcnt_u64): Ditto.
772 * config/i386/i386.c (ix86_expand_args_builtin): Handle
773 UINT_FTYPE_UINT and UINT64_FTYPE_UINT64.
775 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
777 * tree.h (wi::fits_to_tree_p): Accept only 0 and 1 for boolean types.
778 * tree.c (int_fits_type_p): Likewise. Adjust head comment.
780 2016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
782 Backport from mainline
783 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
785 PR tree-optimization/77550
786 * tree-vect-stmts.c (create_array_ref): Change parameters.
787 (get_group_alias_ptr_type): New function.
788 (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
790 2016-10-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
792 Backport from mainline
793 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
795 PR tree-optimization/77916
796 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
797 Don't allow a MINUS_EXPR for pointer arithmetic for either known
799 (record_increment): Increments of -1 for unknown strides just use
800 a multiply initializer like other negative values.
801 (analyze_increments): Remove stopgap solution for -1 increment
802 applied to pointer arithmetic.
803 (insert_initializers): Requirement of initializer for -1 should be
804 based on pointer-typedness of the candidate basis.
806 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
808 * config/sparc/sparc.md (cpu_feature): Minor tweak.
810 (movsi_insn, movdi_insn_sp32, movdi_insn_sp64, movsf_insn,
811 movdf_insn_sp32, movdf_insn_sp64, zero_extendsidi2_insn_sp64,
812 sign_extendsidi2_insn, mov<VM32:mode>_insn, mov<VM64:mode>_insn_sp64,
813 mov<VM64:mode>_insn_sp32, not_<code><mode>, nand<mode>_vis,
814 <code>_not1<mode>_vi, <code>_not2<mode>_vis, one_cmpl<mode>2,
815 fcmp<code><GCM:gcm_name>, pdistn<mode>_vis): Likewise.
817 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
819 * config/sparc/sparc-c.c (sparc_target_macros): Replace TARGET_64BIT
820 with TARGET_ARCH64. Define __VIS to 0x400 if TARGET_VIS4.
822 2016-10-19 Uros Bizjak <ubizjak@gmail.com>
825 * config/i386/i386.c (legitimize_tls_address)
826 <case TLS_MODEL_INITIAL_EXEC>: For TARGET_64BIT || TARGET_ANY_GNU_TLS
827 convert dest to Pmode if different than Pmode.
829 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
831 Backport from mainline
832 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
834 * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
837 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
839 Backport from mainline
840 2016-10-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
842 PR tree-optimization/77937
843 * gimple-ssa-strength-reduction.c (analyze_increments): Use
844 POINTER_TYPE_P on the candidate type to determine whether
845 candidates in this chain require pointer arithmetic.
847 2016-10-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
849 PR tree-optimization/77937
850 * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
851 to infinite when we have a pointer with an increment of -1.
853 2016-10-17 Martin Liska <mliska@suse.cz>
855 Backported from mainline
856 2016-10-13 Martin Liska <mliska@suse.cz>
858 PR tree-optimization/77943
859 * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
860 a different EH landing pads.
862 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
865 Backport from mainline
866 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
868 * tree.h (build_complex_type): Add second parameter with default.
869 * tree.c (build_complex_type): Add NAMED second parameter and adjust
870 recursive call. Create a TYPE_DECL only if NAMED is true.
871 (build_common_tree_nodes): Pass true in calls to build_complex_type.
873 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
875 * config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
876 constants in CONST_VECTORs.
878 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
880 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
881 register as destination of bmask.
882 (vector_init_bshuffle): Likewise.
883 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
884 (bmaskdi_vis): Enable only in 64-bit mode.
886 2016-10-13 Andrew Senkevich <andrew.senkevich@intel.com>
889 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
890 OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
891 (ix86_handle_option): Deleted handle of OPT_mpcommit.
892 * config.gcc: Deleted pcommitintrin.h
893 * config/i386/pcommitintrin.h: Deleted file.
894 * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
895 * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
897 * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
899 * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
900 (PTA_PCOMMIT, IX86_BUILTIN_PCOMMIT, __builtin_ia32_pcommit): Deleted.
901 (ix86_option_override_internal): Deleted handle of option.
902 (ix86_valid_target_attribute_inner_p): Deleted pcommit.
903 * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
904 * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
905 (pcommit): Deleted instruction.
906 * config/i386/i386.opt: Mention -mpcommit deprecation.
907 * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
909 2016-10-13 Tom de Vries <tom@codesourcery.com>
912 2016-10-11 Tom de Vries <tom@codesourcery.com>
915 2016-10-11 Tom de Vries <tom@codesourcery.com>
918 * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
921 2016-10-11 Tom de Vries <tom@codesourcery.com>
924 2016-10-11 Tom de Vries <tom@codesourcery.com>
927 * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
930 2016-10-10 Georg-Johann Lay <avr@gjlay.de>
932 * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
934 2016-10-06 Uros Bizjak <ubizjak@gmail.com>
937 * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
939 (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
940 Use <round_constraint> as operand 1 constraint.
942 2016-10-06 James Clarke <jrtc27@jrtc27.com>
943 Eric Botcazou <ebotcazou@adacore.com>
946 * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
947 (classify_registers): Don't set it
948 (function_arg_slotno): Don't initialize and test it. Tidy up.
950 2016-10-04 Uros Bizjak <ubizjak@gmail.com>
952 Backport from mainline
953 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
955 * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
956 ext_level before calling CPUID with 0x80000008.
958 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
961 * config/i386/cpuid.h (__get_cpuid_count): New.
962 (__get_cpuid): Rename __level to __leaf.
964 2016-09-30 Michael Meissner <meissner@linux.vnet.ibm.com>
968 2016-09-21 Michael Meissner <meissner@linux.vnet.ibm.com>
971 * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
972 New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
973 instructions when you want to invert the test.
974 * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
975 correct order for XXSEL.
976 (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
977 for using XSCMP{EQ,GT,GE}DP.
979 2016-09-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
980 Alan Modra <amodra@gmail.com>
982 Backport from mainline
983 2016-07-01 Alan Modra <amodra@gmail.com>
985 PR rtl-optimization/71709
986 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
987 being set, not referenced.
989 2016-09-27 David Edelsohn <dje.gcc@gmail.com>
991 Backport from mainline
992 2016-09-27 David Edelsohn <dje.gcc@gmail.com>
994 * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
997 2016-09-24 David Edelsohn <dje.gcc@gmail.com>
999 * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
1000 * configure: Regenerate.
1002 2016-09-27 Richard Biener <rguenther@suse.de>
1004 Backport from mainline
1005 2016-09-01 Richard Biener <rguenther@suse.de>
1008 * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
1009 check whether the result fits the desired result type.
1011 2016-09-19 Richard Biener <rguenther@suse.de>
1013 PR tree-optimization/77514
1014 * tree-ssa-pre.c (create_expression_by_pieces): Optimize
1015 search for folded stmt.
1017 2016-09-15 Richard Biener <rguenther@suse.de>
1019 PR tree-optimization/77514
1020 * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
1021 only forced_stmts sequence.
1023 2016-09-15 Richard Biener <rguenther@suse.de>
1026 * fold-const.c (split_tree): Do not split constant ~X.
1028 2016-09-19 Richard Biener <rguenther@suse.de>
1031 * tree-data-ref.c (analyze_subscript_affine_affine): Use the
1032 proper niter to bound the loops.
1034 2016-09-22 Richard Biener <rguenther@suse.de>
1037 * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
1040 2016-09-25 Uros Bizjak <ubizjak@gmail.com>
1042 Backport from mainline
1043 2016-09-21 Richard Biener <rguenther@suse.de>
1044 Jakub Jelinek <jakub@redhat.com>
1046 PR tree-optimization/77621
1047 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
1048 group at non-vectorizable stmts.
1050 Backport from mainline
1051 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
1054 * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
1055 Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
1056 (ix86_add_stmt_cost): Penalize DFmode vector operations
1057 for !TARGET_VECTORIZE_DOUBLE.
1059 2016-09-22 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1061 Backport from 2016-09-22 trunk r240388.
1063 * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
1064 (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
1066 2016-09-21 Segher Boessenkool <segher@kernel.crashing.org>
1068 * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
1070 2016-09-21 Georg-Johann Lay <avr@gjlay.de>
1072 Backport from 2016-09-21 trunk r240306.
1075 * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
1076 touches some regs mentioned in cc_status, do CC_STATUS_INIT.
1078 2016-09-20 Thomas Preud'homme <thomas.preudhomme@arm.com>
1080 Backport from mainline
1081 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
1083 * lra-constraints.c (match_reload): Pass information about other
1084 output operands. Create new unique register value if matching input
1085 operand shares same register value as output operand being considered.
1086 (curr_insn_transform): Record output operands already processed.
1088 2016-09-16 Jonathan Wakely <jwakely@redhat.com>
1090 * doc/extend.texi (Integer Overflow Builtins): Fix type of out
1091 parameters for functions taking long long arguments.
1093 2016-09-16 David Edelsohn <dje.gcc@gmail.com>
1095 Backported from mainline
1096 2016-08-26 David Edelsohn <dje.gcc@gmail.com>
1099 * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
1101 2016-09-16 Jakub Jelinek <jakub@redhat.com>
1102 Eric Botcazou <ebotcazou@adacore.com>
1105 * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
1106 through into expand_addsub_overflow after expand_neg_overflow.
1108 2016-09-16 Jakub Jelinek <jakub@redhat.com>
1110 Backported from mainline
1111 2016-09-14 Jakub Jelinek <jakub@redhat.com>
1114 * tsan.c: Include target.h.
1115 (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
1116 (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
1117 (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
1118 BUILT_IN_ATOMIC_TEST_AND_SET entries.
1119 (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
1121 2016-09-08 Jakub Jelinek <jakub@redhat.com>
1124 * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
1125 OMP_CLAUSE_SAFELEN_EXPR.
1127 2016-09-06 Jakub Jelinek <jakub@redhat.com>
1130 * config/i386/i386.c (ix86_expand_builtin): For builtin with
1131 unsupported or unknown ISA, use expand_call.
1133 2016-09-06 Uros Bizjak <ubizjak@gmail.com>
1135 Backport from mainline
1136 2016-09-05 Uros Bizjak <ubizjak@gmail.com>
1138 PR rtl-optimization/77452
1139 * explow.c (plus_constant) <case MEM>: Extract scalar constant from
1140 inner-mode reference to a CONST_VECTOR constant in the constant pool.
1142 2016-09-01 Jakub Jelinek <jakub@redhat.com>
1144 Backported from mainline
1145 2016-08-30 Jakub Jelinek <jakub@redhat.com>
1147 PR tree-optimization/72866
1148 * tree-vect-patterns.c (search_type_for_mask): Turn into
1149 a small wrapper, move all code to ...
1150 (search_type_for_mask_1): ... this new function. Add caching
1151 and adjust recursive calls.
1154 * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
1155 instead of lookup_type_die (type_main_variant (type)) even for array
1159 * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
1160 constant pool reference return x instead of c.
1162 2016-08-19 Jakub Jelinek <jakub@redhat.com>
1164 * config/i386/t-i386 (i386-c.o): Don't depend on
1165 i386-builtin-types.inc.
1166 (i386.o): Depend on i386-builtin-types.inc.
1168 2016-08-17 Jakub Jelinek <jakub@redhat.com>
1171 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
1172 turning a call into __builtin_unreachable-like noreturn call, adjust
1173 gimple_call_set_fntype.
1174 * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
1175 gimple_call_fntype has void return type.
1177 2016-08-16 Jakub Jelinek <jakub@redhat.com>
1180 * tree-cfg.c (execute_fixup_cfg): Add node variable, use it. Before inlining,
1181 add cgraph edge for the added __builtin_unreachable call.
1183 2016-09-01 Gerald Pfeifer <gerald@pfeifer.com>
1185 * doc/extend.texi (SPU Built-in Functions): Remove stale
1186 references to material formerly at IBM and Sony.
1188 2016-09-01 Matthew Wahab <matthew.wahab@arm.com>
1191 * config/arm/arm.c (neon_valid_immediate): Delete declaration.
1192 Use const_vec_duplicate to check for duplicated elements.
1194 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
1196 * config/i386/i386.c (ix86_option_override_internal): Also disable the
1197 STV pass if -mstackrealign is enabled.
1199 2016-08-31 Patrick Palka <ppalka@gcc.gnu.org>
1201 Backport from mainline
1202 2016-08-27 Patrick Palka <ppalka@gcc.gnu.org>
1204 PR tree-optimization/71077
1205 PR tree-optimization/68542
1206 * fold-const.c (fold_relational_const): Fix folding of
1207 VECTOR_CST comparisons that have a scalar boolean result type.
1209 2016-08-31 Gerald Pfeifer <gerald@pfeifer.com>
1211 * doc/install.texi (Binaries): www.opencsw.org now uses https.
1213 2016-08-31 Jakub Sejdak <jakub.sejdak@phoesys.com>
1215 * config.gcc: Add support for arm*-*-phoenix* targets.
1216 * config/arm/t-phoenix: New.
1217 * config/phoenix.h: New.
1219 2016-08-29 Uros Bizjak <ubizjak@gmail.com>
1222 * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
1223 template for intel asm dialect.
1224 (vec_set_hi_<mode><mask_name>): Ditto.
1226 2016-08-29 Eric Botcazou <ebotcazou@adacore.com>
1228 * Makefile.in (gcov-iov.h): Add dummy recipe.
1230 2016-08-28 Uros Bizjak <ubizjak@gmail.com>
1232 Backport from mainline
1233 2016-08-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
1235 * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
1236 for targets amdfam10 and barcelona.
1238 Backport from mainline
1239 2016-08-21 Uros Bizjak <ubizjak@gmail.com>
1242 * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
1243 TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
1244 non-SSE2 athlons only, otherwise prefer SSE prefetches.
1246 Backport from mainline
1247 2016-08-19 Uros Bizjak <ubizjak@gmail.com>
1250 * config/i386/i386.c (ix86_option_override_internal): Remove
1251 PTA_PRFCHW from entries that also have PTA_3DNOW flag.
1252 Enable SSE prefetch also for TARGET_PREFETCHWT1.
1253 Do not try to enable TARGET_PRFCHW ISA flag here.
1254 * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
1255 Rewrite expander function body.
1256 (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
1258 2016-08-28 Tom de Vries <tom@codesourcery.com>
1260 backport from trunk:
1261 2016-08-28 Tom de Vries <tom@codesourcery.com>
1264 * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
1265 'sysv_abi va_list' attribute.
1266 (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
1267 (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
1270 2016-08-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1272 Backport from mainline
1273 2016-08-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1276 * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
1277 (vsx_store_<mode>): Likewise.
1279 2016-08-24 Richard Biener <rguenther@suse.de>
1281 Backport from mainline
1282 2016-08-17 Richard Biener <rguenther@suse.de>
1284 PR tree-optimization/76490
1285 * tree-vrp.c (update_value_range): Preserve overflow infinities
1286 when intersecting with ranges from get_range_info.
1287 (operand_less_p): Handle overflow infinities correctly.
1288 (value_range_constant_singleton): Use vrp_operand_equal_p
1289 to handle overflow max/min correctly.
1290 (vrp_valueize): Likewise.
1291 (union_ranges): Likewise.
1292 (intersect_ranges): Likewise.
1294 2016-08-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
1296 * config/arm/t-rtems: Add vfp multilib.
1298 2016-08-23 Richard Biener <rguenther@suse.de>
1300 Backport from mainline
1301 2016-08-16 Richard Biener <rguenther@suse.de>
1303 PR tree-optimization/76783
1304 * tree-ssa-propagate.c (ssa_prop_init): Use RPO order. Clear
1305 BB visited flags at start.
1307 2016-08-12 Richard Biener <rguenther@suse.de>
1309 PR tree-optimization/72851
1310 * tree-ssa-propagate.c: Include cfganal.h. Rewrite block and stmt
1311 worklists to use bitmaps indexed in execution order.
1312 (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
1313 bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
1314 (cfg_blocks): Make a bitmap.
1315 (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
1317 (cfg_blocks_empty_p): Adjust.
1318 (cfg_blocks_add): Likewise.
1319 (cfg_blocks_get): Likewise.
1320 (add_ssa_edge): Likewise.
1321 (add_control_edge): Likewise.
1322 (simulate_stmt): Likewise.
1323 (process_ssa_edge_worklist): Likewise.
1324 (simulate_block): Likewise.
1325 (ssa_prop_init): Compute PRE order and stmt UIDs.
1326 (ssa_prop_fini): Adjust.
1327 (ssa_propagate): Adjust.
1329 2016-08-22 Uros Bizjak <ubizjak@gmail.com>
1331 Backport from mainline
1332 2016-08-15 Uros Bizjak <ubizjak@gmail.com>
1335 * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
1336 Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
1337 for !flag_finite_math_only or flag_signed_zeros.
1338 (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
1339 *<code><mode>3_finite<mask_name><round_saeonly_name>. Do not
1340 depend on flag_finite_math_only.
1341 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
1343 (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
1344 (*ieee_smin<mode>3): Ditto.
1345 (*ieee_smax<mode>3): Ditto.
1346 * config/i386/mmx.md (mmx_<code>v2sf3): Emit
1347 mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
1349 (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite. Do not
1350 depend on flag_finite_math_only.
1351 (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
1352 (*mmx_<code>v2sf3): Remove.
1353 * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
1354 * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
1355 flag_signed_zeros instead of !flag_unsafe_math_optimizations.
1357 2016-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1359 Backport from mainline
1360 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1363 * expr.c (store_constructor): Mask sign-extended bits when widening
1364 sub-word constructor element at the start of a word.
1366 2016-08-22 Richard Biener <rguenther@suse.de>
1368 * BASE-VER: Set to 6.2.1.
1370 2016-08-22 Release Manager
1372 * GCC 6.2.0 released.
1374 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
1376 Backport from mainline
1377 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
1380 * gimplify.c (omp_add_variable): Adjust/add variable mapping on
1381 enclosing parallel construct for reduction variables on OpenACC loop
1384 2016-08-18 Oleg Endo <olegendo@gcc.gnu.org>
1386 Backport from mainline
1387 2016-06-17 DJ Delorie <dj@redhat.com>
1390 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
1391 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
1392 (umulqihi3_virt): Likewise.
1393 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
1394 (umulqihi3_real): Likewise.
1396 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
1398 * doc/install.texi (*-*-solaris2*): Adjust latest change.
1400 2016-08-15 Martin Liska <mliska@suse.cz>
1402 Backported from mainline
1403 2016-08-15 Martin Liska <mliska@suse.cz>
1406 * gcc.c (do_spec_1): Call save_string with the right size.
1408 2016-08-15 Jakub Jelinek <jakub@redhat.com>
1411 * dwarf2out.c (string_types): New variable.
1412 (gen_array_type_die): Change early_dwarf handling of
1413 DW_AT_string_length, create DW_OP_call4 referencing the
1414 length var temporarily. Handle parameters that are pointers
1416 (adjust_string_types): New function.
1417 (gen_subprogram_die): Temporarily set string_types to local var,
1418 call adjust_string_types if needed.
1419 (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
1421 (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
1423 2016-08-15 Richard Biener <rguenther@suse.de>
1425 PR tree-optimization/73434
1426 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
1427 TBAA info on the base when forwarding a non-invariant address.
1429 2016-08-15 Eric Botcazou <ebotcazou@adacore.com>
1431 * doc/install.texi (*-*-solaris2*): Fix version number and document
1432 requirement on GNU make for building libjava with the Solaris linker.
1434 2016-08-15 Martin Liska <mliska@suse.cz>
1435 Jakub Jelinek <jakub@redhat.com>
1437 PR tree-optimization/72824
1438 * tree-loop-distribution.c (const_with_all_bytes_same)
1439 <case VECTOR_CST>: Fix a typo.
1441 2016-08-14 Uros Bizjak <ubizjak@gmail.com>
1443 Backport from mainline
1444 2016-08-14 Uros Bizjak <ubizjak@gmail.com>
1447 * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
1448 Renamed from _mm512_undefined_si512.
1449 (_mm_undefined_si512): New definition.
1451 Backport from mainline:
1452 2016-08-09 David Wohlferd <dw@LimeGreenSocks.com>
1454 * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
1455 unused variable __O.
1457 Backport from mainline:
1458 2016-08-09 Uros Bizjak <ubizjak@gmail.com>
1461 * config/i386/i386.md (*movtf_internal): Use
1462 lra_in_progress || reload_completed instead of !can_create_pseudo_p
1463 in the insn constraint.
1464 (*movxf_internal): Ditto.
1465 (*movdf_internal): Ditto.
1466 (*movsf_internal): Ditto.
1468 2016-08-12 Jakub Jelinek <jakub@redhat.com>
1471 * ubsan.c (instrument_si_overflow): Pass true instead of false
1473 (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
1474 of bbs. Return TODO_cleanup_cfg if any returned true.
1476 2016-08-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
1478 Backport from mainline
1479 2016-08-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
1481 PR tree-optimization/71083
1482 * tree-predcom.c (ref_at_iteration): Correctly align the
1485 2016-08-12 James Greenhalgh <james.greenhalgh@arm.com
1487 Backport from mainline
1488 2016-08-05 James Greenhalgh <james.greenhalgh@arm.com>
1491 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
1492 (aarch64_fp16_ptr_type_node): Likewise.
1493 * config/aarch64/aarch64-simd-builtins.c
1494 (aarch64_fp16_ptr_type_node): Define.
1495 (aarch64_init_fp16_types): New, refactored out of...
1496 (aarch64_init_builtins): ...here, update to call
1497 aarch64_init_fp16_types.
1498 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
1500 (aapcs_vfp_sub_candidate): Likewise.
1502 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1504 Backport from mainline
1505 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1507 * config/s390/s390-builtin-types.def: Add INT128 types.
1508 * config/s390/s390-builtins.def: Add INT128 variants for the add
1509 sub low-level builtins dealing with TImode.
1510 * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
1511 via subreg when expanding a builtin.
1512 * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
1513 UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
1515 * config/s390/vecintrin.h: Adjust builtin names accordingly.
1516 * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
1517 ("vec_addc<mode>", "vec_addc_u128"): Merge to
1518 "vacc<bhfgq>_<mode>".
1519 ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
1520 ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
1521 ("vec_subc<mode>", "vec_subc_u128"): Merge to
1522 "vscbi<bhfgq>_<mode>".
1523 ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
1524 ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
1526 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1528 Backport from mainline
1529 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1531 * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
1532 and s390_vlgv* builtins as element selector.
1534 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1536 Backport from mainline
1537 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1539 * config/s390/s390.c (s390_expand_vec_init): Force initializer
1540 element to register if it doesn't match general_operand.
1542 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1544 Backport from mainline
1545 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1547 * config/s390/vecintrin.h: Fix file description in comment.
1549 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1551 Backport from mainline
1552 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1554 * config/s390/s390-builtin-types.def: Change builtin type naming
1555 scheme to match builtin-types.def.
1557 2016-08-10 Michael Meissner <meissner@linux.vnet.ibm.com>
1559 Backport from mainline
1560 2016-08-10 Michael Meissner <meissner@linux.vnet.ibm.com>
1563 * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
1564 being an offsettable address.
1566 2016-08-10 Jakub Jelinek <jakub@redhat.com>
1568 Backported from mainline
1569 2016-08-09 Jakub Jelinek <jakub@redhat.com>
1571 PR tree-optimization/72824
1572 * tree-loop-distribution.c (const_with_all_bytes_same): Verify
1573 real_zerop is not negative.
1575 2016-08-09 Martin Jambor <mjambor@suse.cz>
1578 * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
1579 if instance is a MEM_REF.
1581 2016-08-09 Richard Biener <rguenther@suse.de>
1583 Backport from mainline
1584 2016-08-09 Richard Biener <rguenther@suse.de>
1587 * ipa-prop.c (ipa_modify_formal_parameters): Build
1588 parameter types with natural alignment also for the
1591 2016-07-15 Richard Biener <rguenther@suse.de>
1593 PR tree-optimization/71881
1594 * tree-loop-distribution.c (destroy_loop): Remove blocks in
1595 reverse DOM order to make debug temp generation happy.
1597 2016-08-09 Alan Modra <amodra@gmail.com>
1600 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
1601 alternatives. Put loads first, then stores, and reg/reg moves
1602 within same class later. Delete attr length.
1604 2016-08-09 Alan Modra <amodra@gmail.com>
1607 * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
1608 (mem_operand_ds_form): New predicate.
1609 * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
1610 * config/rs6000/constraints.md (wY): New constraint.
1611 * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
1612 (extendsfdf2_fpr): Replace o constraint with wY.
1614 2016-08-08 Georg-Johann Lay <avr@gjlay.de>
1616 Backport from 2016-07-29 trunk r238863.
1618 PR rtl-optimization/71976
1619 * combine.c (get_last_value): Return 0 if the argument for which
1620 the function is called has a wider mode than the recorded value.
1622 2016-08-04 Michael Meissner <meissner@linux.vnet.ibm.com>
1625 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
1628 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
1629 __float128 support when we don't have hardware support, so that
1630 the IEEE built-in functions like isgreater, first call __unordkf3
1631 to make sure neither operand is a NaN, and if both operands are
1632 ordered, do the normal comparison.
1634 2016-08-04 Uros Bizjak <ubizjak@gmail.com>
1637 * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
1638 Cast builtin function result to __mmask16 instead of __mmask8.
1639 (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
1640 (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
1641 (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
1643 2016-08-03 Georg-Johann Lay <avr@gjlay.de>
1646 * common/config/avr/avr-common.c (avr_option_optimization_table)
1647 [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
1649 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
1651 Backport from 2016-08-01 trunk r238948.
1654 * config/avr/avr.md (length) [branch]: Correct insn length
1655 attribute for forward branches.
1657 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
1659 Backport from 2016-06-16 trunk r237536.
1660 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1663 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
1664 progmem_swtable_section.
1665 (progmem_swtable_section): Remove.
1666 (avr_asm_function_rodata_section): Remove.
1667 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
1668 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION): Define to 1.
1670 2016-07-29 Marek Polacek <polacek@redhat.com>
1672 Backport from mainline
1673 2016-07-29 Marek Polacek <polacek@redhat.com>
1676 * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
1677 (altivec_expand_st_builtin): Likewise.
1678 * config/i386/i386.c (ix86_expand_args_builtin): Likewise.
1679 (ix86_expand_round_builtin): Likewise.
1681 2016-07-27 Segher Boessenkool <segher@kernel.crashing.org>
1684 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
1685 when to emit a ".machine" pseudo-op.
1687 2016-07-26 Alan Modra <amodra@gmail.com>
1690 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
1693 2016-07-21 Jakub Jelinek <jakub@redhat.com>
1696 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
1697 before builtin_decl_implicit.
1699 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
1701 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
1703 Improving concepts performance and diagnostics.
1704 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
1705 for constraint satisfaction and subsumption.
1706 * timevar.h (auto_timevar): New constructor that matches the push/pop
1707 pattern of usage in pt.c.
1709 2016-07-20 John David Anglin <danglin@gcc.gnu.org>
1711 Backport from mainline
1712 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
1714 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
1715 register parameters. Remove code to initialize argument pointer
1716 on TARGET_64BIT. Optimize call to _mcount when it can be reached
1717 using a pc-relative branch. Cleanup conditional code.
1718 * config/pa/pa.md (call_mcount): New expander.
1719 (call_mcount_nonpic): New insn.
1720 (call_mcount_pic): New insn and split.
1721 (call_mcount_pic_post_reload): New insn.
1722 (call_mcount_64bit): New insn and split.
1723 (call_mcount_64bit_post_reload): New insn.
1725 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1727 Backport from mainline
1728 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1730 * config/s390/s390.c (s390_encode_section_info): Remove mode size
1733 2016-07-20 Martin Jambor <mjambor@suse.cz>
1736 * trans-decl.c (gfc_generate_function_code): Use get_create rather
1737 than create to get a call graph node.
1739 2016-07-19 Jakub Jelinek <jakub@redhat.com>
1741 PR rtl-optimization/71916
1742 * cfgrtl.c (contains_no_active_insn_p): Return false also for
1743 bb which have a single succ fake edge.
1745 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
1748 * dwarf2out.c (gen_subprogram_die): Only call
1749 gen_unspecified_parameters_die while dumping early dwarf.
1751 2016-07-19 Jakub Jelinek <jakub@redhat.com>
1754 * gimple-fold.c (fold_builtin_memory_op): Use
1755 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
1757 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1759 Back port from mainline
1760 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1763 * config/rs6000/rs6000.c (rs6000_function_value): Fix
1764 unintentional System V.4 structure return breakage for structures
1765 with a single floating point element.
1767 2016-07-18 Martin Liska <mliska@suse.cz>
1769 Backported from mainline
1770 2016-07-12 Martin Liska <mliska@suse.cz>
1772 PR rtl-optimization/71634
1773 * ira-build.c (mark_loops_for_removal): Properly iterate
1776 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1778 Backport from mainline
1779 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1781 * config/s390/s390.c (s390_encode_section_info): Always set
1782 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
1785 2016-07-15 Alan Modra <amodra@gmail.com>
1788 2016-07-11 Alan Modra <amodra@gmail.com>
1789 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
1790 (ctr<mode>): Add unspec.
1791 (ctr<mode>_internal*): Likewise.
1793 2016-07-14 Alan Modra <amodra@gmail.com>
1796 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
1797 with p9_vector override before power9-dform override.
1799 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
1801 Backport from mainline r238086.
1802 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
1805 * ipa-inline-analysis.c (compute_inline_parameters): Set
1806 local.can_change_signature to false for intrumentation
1809 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
1810 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1812 Backport from mainline
1813 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
1814 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1816 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
1818 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
1819 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
1820 (SIGNBIT): New mode iterator.
1821 (Fsignbit): New mode attribute.
1822 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
1823 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
1824 when direct moves are available.
1825 (signbit<mode>2_dm): New define_insn_and_split).
1826 (signbit<mode>2_dm2): New define_insn.
1828 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
1830 Backport from mainline
1831 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
1834 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
1835 The xxperm and xxpermr instructions require that the 2nd input
1836 operand overlap with the output operand, and not the 1st.
1837 (altivec_vperm_v8hiv16qi): Likewise.
1838 (altivec_vperm_<mode>_uns_internal): Likewise.
1839 (altivec_vpermr_<mode>_internal): Likewise.
1840 (vperm_v8hiv4si): Likewise.
1841 (vperm_v16qiv8hi): Likewise.
1843 2016-07-12 Segher Boessenkool <segher@kernel.crashing.org>
1845 Backport from mainline
1846 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
1850 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
1851 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
1854 2016-07-11 Jakub Jelinek <jakub@redhat.com>
1857 * omp-low.c (expand_omp_target): Gimplify device.
1859 PR tree-optimization/71823
1860 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
1861 to get vec_oprnds2 from op2.
1863 2016-07-11 Yuri Rumyantsev <ysrumyan@gmail.com>
1865 Backport from mainline r238055.
1866 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
1868 PR tree-optimization/71518
1869 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
1870 misalign also for outer loops with negative step.
1872 2016-07-08 Martin Liska <mliska@suse.cz>
1874 Backported from mainline
1875 2016-07-08 Martin Liska <mliska@suse.cz>
1878 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
1879 folding produces SAVE_EXPRs, thus return false for the type.
1881 2016-07-08 Kelvin Nilsen <kelvin@gcc.gnu.org>
1883 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): Remove
1884 redundant and erroneous definition of this macro accidentally
1885 inserted during backporting.
1886 (BU_P9_64BIT_MISC_0): Likewise.
1887 (BU_P9_MISC_0): Likewise.
1889 2016-07-08 Jiong Wang <jiong.wang@arm.com>
1891 Back port from the trunk
1892 2016-07-08 Jiong Wang <jiong.wang@arm.com>
1894 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
1899 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
1900 __builtin_aarch64_fmaxv2sf.
1901 (vmaxnmq_f32): Likewise.
1902 (vmaxnmq_f64): Likewise.
1903 (vminnm_f32): Likewise.
1904 (vminnmq_f32): Likewise.
1905 (vminnmq_f64): Likewise.
1907 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
1909 Back port from trunk
1910 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
1913 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
1914 enable -mfloat128-hardware by default.
1915 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
1916 that IEEE 128-bit hardware support needs.
1917 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
1918 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
1919 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
1920 floating point requires.
1921 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
1922 -mfloat128 and -mfloat128-hardware changes.
1924 2016-07-08 Kelvin Nilsen <kelvin@gcc.gnu.org>
1926 Backport from mainline r237912
1927 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
1929 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
1930 Exchange the order of the second and third operands in the vpermr
1931 instruction tmeplate.
1933 2016-07-07 Michael Meissner <meissner@linux.vnet.ibm.com>
1935 Back port from the trunk
1936 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
1939 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
1940 the insns, use an insn form that does not adjust the offset on
1941 little endian systems.
1943 2016-07-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
1945 Backport from mainline r237885
1946 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
1948 * config/rs6000/altivec.md (darn_32): Change the condition to
1949 TARGET_P9_MISC instead of TARGET_MODULO.
1950 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
1951 condition expression.
1952 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
1953 condition expression.
1954 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
1955 (DFP_TEST): New code iterator.
1956 (dfptstsfi_<code>_mode>): New define_expand.
1957 (*dfp_sgnfcnc_<mode>): New define_insn.
1958 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
1959 definition next to BU_P9_MISC_1 definition and change the MASK
1960 value to RS6000_BTM_P9_MISC.
1961 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
1962 (BU_P9_64BIT_MISC_0): Likewise.
1963 (BU_P9_DFP_MISC_0): New macro definition.
1964 (BU_P9_DFP_MISC_1): New macro definition.
1965 (BU_P9_DFP_MISC_2): New macro definition.
1966 (BU_P9_DFP_OVERLOAD_1): New macro definition.
1967 (BU_P9_DFP_OVERLOAD_2): New macro definition.
1968 (BU_P9_DFP_OVERLOAD_3): New macro definition.
1969 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
1970 (TSTSFI_LT_TD): Likewise.
1971 (TSTSFI_EQ_DD): Likewise.
1972 (TSTSFI_EQ_TD): Likewise.
1973 (TSTSFI_GT_DD): Likewise.
1974 (TSTSFI_GT_TD): Likewise.
1975 (TSTSFI_OV_DD): Likewise.
1976 (TSTSFI_OV_TD): Likewise.
1977 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
1978 (TSTSFI_LT_DD): Likewise.
1979 (TSTSFI_LT_TD): Likewise.
1980 (TSTSFI_EQ): Likewise.
1981 (TSTSFI_EQ_DD): Likewise.
1982 (TSTSFI_EQ_TD): Likewise.
1983 (TSTSFI_GT): Likewise.
1984 (TSTSFI_GT_DD): Likewise.
1985 (TSTSFI_GT_TD): Likewise.
1986 (TSTSFI_OV): Likewise.
1987 (TSTSFI_OV_DD): Likewise.
1988 (TSTSFI_OV_TD): Likewise.
1989 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1990 overloaded test significance functions.
1991 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
1992 OPTION_MASK_P9_MISC into the representation of this mask.
1993 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
1995 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
1996 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
1998 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
1999 argument is a 6-bit unsigned literal value if the icode argument
2000 represents a DFP test significance built-in call.
2001 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
2002 flag used independently and in combination with the
2003 RS6000_BTM_64BIT flag.
2004 (rs6000_opt_masks): Add entry for power9-misc command-line option.
2005 (rs6000_builtin_mask_names): Add entry for power9-misc
2006 command-line option.
2007 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
2008 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
2009 RS6000_BTM_P9_MISC macros.
2010 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
2011 option and change the description of the -mpower9-vector option to
2012 enable only vector instructions, removing its erroneously claimed
2013 support for scalar instructions.
2014 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
2015 the ISA 3.0 digital floating point test significance built-in
2018 2016-07-07 Richard Biener <rguenther@suse.de>
2020 Backport from mainline
2021 2016-06-13 Richard Biener <rguenther@suse.de>
2024 * fold-const.c (fold_unary_loc): Preserve alignment when
2025 folding a VIEW_CONVERT_EXPR into a MEM_REF.
2027 2016-07-07 Richard Biener <rguenther@suse.de>
2029 Backport from mainline
2030 2016-05-25 Richard Biener <rguenther@suse.de>
2032 PR tree-optimization/71264
2033 * tree-vect-stmts.c (vect_init_vector): Properly deal with
2036 2016-06-07 Richard Biener <rguenther@suse.de>
2039 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
2042 2016-06-14 Richard Biener <rguenther@suse.de>
2044 PR tree-optimization/71521
2045 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
2046 division int_const_binop against zero divisor.
2048 2016-06-08 Richard Biener <rguenther@suse.de>
2050 PR tree-optimization/71452
2051 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
2052 type used for the SSA rewrite has enough precision to cover
2053 the dynamic type of the location.
2055 2016-06-14 Richard Biener <rguenther@suse.de>
2057 PR tree-optimization/71522
2058 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
2059 copying into float copying.
2061 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2063 Backport from mainline
2064 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2067 * config/avr/avr.c (avr_asm_select_section): Strip off
2068 SECTION_DECLARED from flags when calling get_section.
2070 2016-07-05 Pat Haugen <pthaugen@us.ibm.com>
2072 Backport from mainline
2073 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
2075 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
2076 ('size' attribute): Add '128'.
2078 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
2079 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
2080 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
2081 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
2082 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
2083 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
2084 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
2085 *trunc<mode>df2_odd): Set size attribute to '128'.
2086 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
2087 * config/rs6000/power6.md (power6-fp): Include dfp type.
2088 * config/rs6000/power7.md (power7-fp): Likewise.
2089 * config/rs6000/power8.md (power8-fp): Likewise.
2090 * config/rs6000/power9.md: New file.
2091 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
2092 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
2093 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
2095 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
2096 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
2097 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
2098 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
2099 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
2100 dfp_dscri_<mode>): Change type attribute to dfp.
2101 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
2102 attribute to vecsimple.
2103 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
2104 and prefetch streams.
2105 (rs6000_option_override_internal): Remove temporary code setting
2106 tuning to power8. Don't set rs6000_sched_groups for power9.
2107 (last_scheduled_insn): Change to rtx_insn *.
2108 (divide_cnt, vec_load_pendulum): New variables.
2109 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
2110 (rs6000_issue_rate): Set issue rate for Power9.
2111 (is_power9_pairable_vec_type): New.
2112 (power9_sched_reorder2): New.
2113 (rs6000_sched_reorder2): Call new function for Power9 specific
2115 (insn_must_be_first_in_group): Remove Power9.
2116 (insn_must_be_last_in_group): Likewise.
2117 (force_new_group): Likewise.
2118 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
2119 Initialize divide_cnt/vec_load_pendulum.
2120 (_rs6000_sched_context, rs6000_init_sched_context,
2121 rs6000_set_sched_context): Handle context save/restore of new
2124 2016-07-05 Pat Haugen <pthaugen@us.ibm.com>
2126 Backport from mainline
2127 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
2129 * config/rs6000/rs6000.md ('type' attribute): Add
2130 veclogical,veccmpfx,vecexts,vecmove insn types.
2131 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
2132 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
2133 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
2134 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
2135 *nabs<mode>2_hw): Change type to vecmove.
2136 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
2137 *boolcc<mode>3_internal, *eqv<mode>3_internal,
2138 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
2139 *ieee_128bit_vsx_abs<mode>2_internal,
2140 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
2141 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
2142 *ieee128_mtvsrd_32bit): Change type to veclogical.
2143 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
2144 *movdi_internal32, *movdi_internal64): Update insn types.
2145 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
2146 vsx_extract_<mode>): Change type to veclogical.
2147 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
2148 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
2149 *vsx_sign_extend_si_v2di): Change type to vecexts.
2150 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
2152 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
2153 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
2154 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
2155 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
2156 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
2157 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
2158 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
2159 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
2160 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
2161 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
2162 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
2163 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
2164 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
2165 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
2166 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
2167 (ppc7450-vecsimple): Add veclogical, vecmove.
2168 (ppc7450-veccmp): Add veccmpfx.
2169 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
2171 (ppc8540_vector_compare): Add veccmpfx.
2172 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
2173 * config/rs6000/cell.md (cell-fp): Add fpsimple.
2174 (cell-vecsimple): Add veclogical, vecmove.
2175 (cell-veccmp): Add veccmpfx.
2176 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
2177 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
2179 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
2180 * config/rs6000/power4.md (power4-fp): Add fpsimple.
2181 (power4-vecsimple): Add veclogical, vecmove.
2182 (power4-veccmp): Add veccmpfx.
2183 * config/rs6000/power5.md (power5-fp): Add fpsimple.
2184 * config/rs6000/power6.md (power6-fp): Add fpsimple.
2185 (power6-vecsimple): Add veclogical, vecmove.
2186 (power6-veccmp): Add veccmpfx.
2187 * config/rs6000/power7.md (power7-fp): Add fpsimple.
2188 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
2189 * config/rs6000/power8.md (power8-fp): Add fpsimple.
2190 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
2191 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
2192 * config/rs6000/titan.md (titan_fp): Add fpsimple.
2193 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
2195 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
2197 2016-07-05 Kelvin Nilsen <kelvin@gcc.gnu.org>
2199 Backport from mainline r237391
2200 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
2202 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
2203 RS6000_BTM_MODULO flag into the set of flags that are considered
2204 to be part of the common configuration.
2206 2016-07-04 Jakub Jelinek <jakub@redhat.com>
2209 * tree.c (attribute_value_equal): Use get_attribute_name instead of
2210 directly using TREE_PURPOSE.
2212 2016-07-04 Segher Boessenkool <segher@kernel.crashing.org>
2214 Backport from mainline
2215 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
2218 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
2219 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
2221 2016-07-02 Jakub Jelinek <jakub@redhat.com>
2223 Backported from mainline
2224 2016-06-28 Jakub Jelinek <jakub@redhat.com>
2227 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
2228 a constant, force its SUBREG_REG into memory or register instead
2231 2016-06-20 Jakub Jelinek <jakub@redhat.com>
2234 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
2235 returned values and add UN*/LTGT/*ORDERED cases with values matching
2236 D operand modifier on vcmp for AVX.
2238 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
2240 Backport from trunk r237659
2241 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
2243 * config/rs6000/rs6000.h: Add conditional preprocessing directives
2244 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
2247 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
2250 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
2253 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
2254 OPTION_MASK_P9_DFORM_VECTOR.
2255 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
2256 disable -mpower9-dform-vector when using reload.
2257 (quad_address_p): Remove 'gpr_p' argument and all associated code.
2258 New 'strict' argument. Update all callers. Add strict addressing
2260 (rs6000_legitimate_offset_address_p): Remove call to
2261 virtual_stack_registers_memory_p.
2262 (rs6000_legitimize_reload_address): Add quad address support.
2263 (rs6000_legitimate_address_p): Move call to quad_address_p above
2264 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
2265 to account for new strict usage.
2266 (rs6000_output_move_128bit): Adjust quad_address_p args to account
2267 for new strict usage.
2268 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
2270 2016-07-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2272 Backport from mainline
2273 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2275 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
2276 (BU_FLOAT128_1): Likewise.
2278 (COPYSIGNQ): Likewise.
2279 (RS6000_BUILTIN_NANQ): Likewise.
2280 (RS6000_BUILTIN_NANSQ): Likewise.
2281 (RS6000_BUILTIN_INFQ): Likewise.
2282 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
2283 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
2284 (TARGET_FOLD_BUILTIN): New #define.
2285 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
2286 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
2287 (rs6000_fold_builtin): New target hook implementation, handling
2288 folding of 128-bit NaNs and infinities.
2289 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
2290 entries are filled in to avoid problems during bootstrap
2291 self-test; define builtins for 128-bit NaNs and infinities.
2292 (rs6000_opt_mask): Add entry for float128.
2293 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
2294 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
2295 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
2296 (const_str_type_node): New #define.
2297 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
2298 to a define_expand that dispatches to either copysign<mode>3_soft
2299 or copysign<mode>3_hard.
2300 (copysign<mode>3_hard): Rename from copysign<mode>3.
2301 (copysign<mode>3_soft): New define_insn.
2302 * doc/extend.texi: Document new builtins.
2304 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
2307 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
2310 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move): Disallow
2313 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
2315 Backport from trunk r236992
2316 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
2318 * config/rs6000/altivec.h (vec_slv): New macro.
2319 (vec_srv): New macro.
2320 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
2321 (UNSPEC_VSRV): New value.
2324 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
2325 (vsrv): New builtin definition.
2326 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
2327 define argument types for new builtin.
2328 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
2330 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
2333 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
2335 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
2338 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
2340 Backport from trunk r237390
2341 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
2343 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
2344 difference unsigned.
2345 (vec_absdb): New macro for vector absolute difference unsigned
2347 (vec_absdh): New macro for vector absolute difference unsigned
2349 (vec_absdw): New macro for vector absolute difference unsigned word.
2350 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
2351 (vadu<mode>3): New insn.
2352 (*p9_vadu<mode>3): New insn.
2353 * config/rs6000/rs6000-builtin.def (vadub): New built-in
2355 (vaduh): New built-in definition.
2356 (vaduw): New built-in definition.
2357 (vadu): New overloaded built-in definition.
2358 (vadub): New overloaded built-in definition.
2359 (vaduh): New overloaded built-in definition.
2360 (vaduw): New overloaded built-in definition.
2361 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2362 overloaded vector absolute difference unsigned functions.
2363 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
2364 the ISA 3.0 vector absolute difference unsigned built-in functions.
2366 2016-06-30 David Malcolm <dmalcolm@redhat.com>
2368 Backport from trunk r237880.
2369 2016-06-30 David Malcolm <dmalcolm@redhat.com>
2372 * gcc.c (driver::build_option_suggestions): Pass "option" to
2373 add_misspelling_candidates.
2374 * opts-common.c (add_misspelling_candidates): Add "option" param;
2375 use it to avoid adding negated forms for options marked with
2377 * opts.h (add_misspelling_candidates): Add "option" param.
2379 2016-06-30 Jakub Jelinek <jakub@redhat.com>
2382 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
2383 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
2384 first when permuting bitwise operation with rotate. Cast
2385 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
2387 2016-06-30 Martin Liska <mliska@suse.cz>
2389 Parting backport from mainline
2390 2016-06-29 Martin Liska <mliska@suse.cz>
2392 * ipa-inline-transform.c (inline_call): Remove unnecessary call
2393 of build_optimization_node.
2395 2016-06-29 Eric Botcazou <ebotcazou@adacore.com>
2397 Backport from mainline
2398 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
2400 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
2402 2016-06-27 Michael Meissner <meissner@linux.vnet.ibm.com>
2404 Back port from trunk
2405 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
2407 * stor-layout.c (layout_type): Move setting complex MODE to
2408 layout_type, instead of setting it ahead of time by the caller.
2410 Back port from trunk
2411 2016-05-11 Alan Modra <amodra@gmail.com>
2413 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
2414 abi_v4_pass_in_fpr): New functions.
2415 (rs6000_function_arg_boundary): Exclude complex IBM long double
2416 from 64-bit alignment when ABI_V4.
2417 (rs6000_function_arg, rs6000_function_arg_advance_1,
2418 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
2420 Back port from trunk
2421 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
2423 * machmode.h (mode_complex): Add support to give the complex mode
2425 (GET_MODE_COMPLEX_MODE): Likewise.
2426 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
2427 stored by build_complex_type and gfc_build_complex_type instead of
2428 trying to figure out the appropriate mode based on the size. Raise
2429 an assertion error, if the type was not set.
2430 * genmodes.c (struct mode_data): Add field for the complex type of
2432 (blank_mode): Likewise.
2433 (make_complex_modes): Remember the complex mode created in the
2435 (emit_mode_complex): Write out the mode_complex array to map a
2436 type mode to the complex version.
2437 (emit_insn_modes_c): Likewise.
2438 * tree.c (build_complex_type): Set the complex type to use before
2439 calling layout_type.
2440 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
2441 support for __float128 complex datatypes.
2442 (rs6000_hard_regno_mode_ok): Likewise.
2443 (rs6000_setup_reg_addr_masks): Likewise.
2444 (rs6000_complex_function_value): Likewise.
2445 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
2446 __float128 and __ibm128 complex.
2447 (FLOAT128_IBM_P): Likewise.
2448 (ALTIVEC_ARG_MAX_RETURN): Likewise.
2449 * doc/extend.texi (Additional Floating Types): Document that
2450 -mfloat128 must be used to enable __float128. Document complex
2451 __float128 and __ibm128 support.
2453 2016-06-24 Jakub Jelinek <jakub@redhat.com>
2455 PR tree-optimization/71647
2456 * omp-low.c (lower_rec_input_clauses): Convert
2457 omp_clause_aligned_alignment (c) to size_type_node for the
2458 last argument of __builtin_assume_aligned.
2460 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
2462 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
2464 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
2466 Backport from 2016-06-21 trunk r237639.
2469 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
2470 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
2471 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
2473 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
2476 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
2477 constant addresses if can_create_pseudo_p.
2479 2016-06-21 Jakub Jelinek <jakub@redhat.com>
2481 PR tree-optimization/71588
2482 * tree-ssa-strlen.c (valid_builtin_call): New function.
2483 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
2486 Backported from mainline
2487 2016-06-20 Jakub Jelinek <jakub@redhat.com>
2490 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
2491 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
2492 for conversion of scalar user var to complex type and use the
2493 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
2496 2016-06-16 Jakub Jelinek <jakub@redhat.com>
2498 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
2499 with base of reference to struct.
2501 2016-06-20 Ilya Enkovich <ilya.enkovich@intel.com>
2503 Backport from mainline r237484.
2504 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
2507 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
2508 DECL_CONTEXT for copied arguments.
2510 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
2511 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
2513 Backport from 2016-06-20 trunk r237589, r236558.
2516 * config/avr/avr.md (movqi): Handle loading subreg:qi (const,
2517 symbol_ref,label_ref).
2519 2016-06-16 Jakub Jelinek <jakub@redhat.com>
2522 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
2523 (setcc + and peephole2): Likewise.
2525 2016-06-15 Andreas Tobler <andreast@gcc.gnu.org>
2527 Backported from mainline
2528 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
2530 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
2531 FreeBSD 11 and above.
2533 2016-06-15 Ilya Verbin <ilya.verbin@intel.com>
2535 Backport from mainline
2536 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2538 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
2540 2016-06-14 Jakub Jelinek <jakub@redhat.com>
2542 Backported from mainline
2543 2016-06-10 Jakub Jelinek <jakub@redhat.com>
2546 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
2547 without LABEL_DECL, set *handled_ops_p to false instead of true.
2549 2016-06-08 Jakub Jelinek <jakub@redhat.com>
2550 Richard Biener <rguenther@suse.de>
2553 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
2554 the same as DECL_P (base0) for indirect_base0. Use equality_code
2555 in one further place.
2557 2016-06-04 Jakub Jelinek <jakub@redhat.com>
2559 PR tree-optimization/71405
2560 * tree-ssa.c (execute_update_addresses_taken): For clobber with
2561 incompatible type, build a new clobber with the right type instead
2562 of building a VIEW_CONVERT_EXPR around it.
2564 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
2566 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
2567 update shared_lookup_references only once after changing operands.
2569 2016-06-13 Richard Biener <rguenther@suse.de>
2571 PR tree-optimization/71505
2572 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
2573 assert match comment.
2575 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2577 Backport from mainline
2578 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2581 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
2584 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
2587 Backport from trunk r237291:
2588 * tree-nested.c (convert_nonlocal_omp_clauses)
2589 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
2590 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
2591 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
2593 Backport from trunk r237291:
2594 * gimplify.c (gimplify_adjust_omp_clauses): Discard
2596 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
2598 Backport from trunk r237290:
2599 * omp-low.c (scan_sharing_clauses): Don't expect
2602 Backport trunk r235964:
2603 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
2605 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
2606 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
2609 2016-06-09 Michael Meissner <meissner@linux.vnet.ibm.com>
2611 Back port from trunk
2612 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
2614 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
2615 alternatives, eliminating preferred register class. Add support
2616 for the MTVSRDD instruction in ISA 3.0.
2617 (vsx_splat_v4si_internal): Use splat_input_operand instead of
2618 reg_or_indexed_operand.
2619 (vsx_splat_v4sf_internal): Likewise.
2621 Back port from trunk
2622 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
2625 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
2626 for loading up all 0's or all 1's.
2628 Back port from trunk
2629 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
2632 * config/rs6000/constraints.md (wE constraint): New constraint
2633 for a vector constant that can be loaded with XXSPLTIB.
2634 (wM constraint): New constraint for a vector constant of a 1's.
2635 (wS constraint): New constraint for a vector constant that can be
2636 loaded with XXSPLTIB and a vector sign extend instruction.
2637 * config/rs6000/predicates.md (xxspltib_constant_split): New
2638 predicates for wE/wS constraints.
2639 (xxspltib_constant_nosplit): Likewise.
2640 (easy_vector_constant): Add support for constants that can be
2641 loaded via XXSPLTIB.
2642 (splat_input_operand): Add support for ISA 3.0 word splat operations.
2643 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
2644 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
2645 instruction and possibly with a sign extension.
2646 (output_vec_const_move): Add support for XXSPLTIB. If we are
2647 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
2648 instead of XXLXOR/XXLORC.
2649 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
2651 (rs6000_legitimize_reload_address): Likewise.
2652 (rs6000_output_move_128bit): Use output_vec_const_move to emit
2654 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
2655 combine VSX_M and VSX_M2 into one iterator.
2657 (VSINT_84): New iterators for loading constants with XXSPLTIB.
2658 (VSINT_842): Likewise.
2659 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
2660 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
2661 XXSPLTIB instruction.
2662 (xxspltib_<mode>_nosplit): Likewise.
2663 (xxspltib_<mode>_split): New insn to load up constants with
2664 XXSPLTIB and a sign extend instruction.
2665 (vsx_mov<mode>): Replace single move that handled all vector types
2666 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
2667 moves (when -mvsx-timode is in effect) into the main vector
2668 moves. Eliminate separate moves for <VSr> <VSa>, where the
2669 preferred register class (<VSr>) is listed first, and the
2670 secondary register class (<VSa>) is listed second with a '?' to
2671 discourage use. Prefer loading 0/-1 in any VSX register for ISA
2672 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
2673 that if the register was involved in a slow operation, the
2674 clear/set operation does not wait for the slow operation to
2675 finish. Adjust the length attributes for 32-bit mode. Use
2676 rs6000_output_move_128bit and drop the use of the string
2677 instructions for 32-bit movti when -mvsx-timode is in effect. Use
2678 spacing so that the alternatives and attributes don't generate
2679 long lines, and put things in columns, so that it is easier to
2680 match up the operands and attributes with the insn alternatives.
2681 (vsx_mov<mode>_64bit): Likewise.
2682 (vsx_mov<mode>_32bit): Likewise.
2683 (vsx_movti_64bit): Fold movti into normal vector moves.
2684 (vsx_movti_32bit): Likewise.
2685 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
2687 (vsx_splat_v4si_internal): Likewise.
2688 (vsx_splat_v4sf_internal): Likewise.
2689 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
2690 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
2691 extend vector elements.
2692 (vsx_sign_extend_hi_<mode>): Likewise.
2693 (vsx_sign_extend_si_v2di): Likewise.
2694 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
2696 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
2697 constraints. Add trailing period to wL documentation.
2699 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
2701 Backport from mainline
2702 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
2704 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
2705 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
2707 2016-06-08 Eric Botcazou <ebotcazou@adacore.com>
2709 Backport from mainline
2710 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
2712 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
2713 Include the M7 SPARC DFA scheduler.
2714 New attribute v3pipe.
2715 Annotate insns with v3pipe where appropriate.
2716 Define cpu_feature vis4.
2717 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
2718 Add (V8QI "8") to vbits.
2719 Add insns {add,sub}v8qi3
2720 Add insns ss{add,sub}v8qi3
2721 Add insns us{add,sub}{v8qi,v4hi}3
2722 Add insns {min,max}{v8qi,v4hi,v2si}3
2723 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
2724 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
2725 * config/sparc/niagara4.md: Add a comment explaining the
2726 discrepancy between the documented latenty numbers and the
2728 * config/sparc/niagara7.md: New file.
2729 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
2730 supports SPARC5 and VIS 4.0 instructions.
2731 * configure: Regenerate.
2732 * config.in: Likewise.
2733 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
2734 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
2735 TARGET_CPU_niagara7.
2736 (ASM_CPU64_DEFAULT_SPEC): Likewise.
2737 (CPP_CPU_SPEC): Handle niagara7.
2738 (ASM_CPU_SPEC): Likewise.
2739 * config/sparc/sparc-opts.h (processor_type): Add
2741 (mvis4): New option.
2742 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
2743 (AS_NIAGARA7_FLAG): Define.
2744 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
2745 (CPP_CPU64_DEFAULT_SPEC): Likewise.
2746 (CPP_CPU_SPEC): Handle niagara7.
2747 (ASM_CPU_SPEC): Likewise.
2748 * config/sparc/sparc.c (niagara7_costs): Define.
2749 (sparc_option_override): Handle niagara7 and adjust cache-related
2750 parameters with better values for niagara cpus. Also support VIS4.
2751 (sparc32_initialize_trampoline): Likewise.
2752 (sparc_use_sched_lookahead): Likewise.
2753 (sparc_issue_rate): Likewise.
2754 (sparc_register_move_cost): Likewise.
2755 (dump_target_flag_bits): Support VIS4.
2756 (sparc_vis_init_builtins): Likewise.
2757 (sparc_builtins): Likewise.
2758 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
2760 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
2762 * config/sparc/sparc.opt (sparc_processor_type): New value
2764 * config/sparc/visintrin.h (__attribute__): Prototypes for the
2766 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
2768 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
2771 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
2773 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
2775 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
2777 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
2778 cpu_32, cpu_64, tune_32 and tune_64.
2779 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
2781 2016-06-08 Ilya Verbin <ilya.verbin@intel.com>
2783 Backport from mainline
2784 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
2786 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
2787 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
2788 * config/i386/i386.c (enum ix86_builtins): Add
2789 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
2790 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
2791 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
2792 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
2793 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
2794 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
2795 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
2796 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
2797 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
2798 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
2799 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
2800 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
2801 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
2802 __builtin_ia32_cvtps2dq512_mask.
2803 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
2804 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
2805 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
2806 * config/i386/sse.md
2807 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
2809 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
2810 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
2812 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
2813 (avx512f_vec_pack_sfix_v8df): New define_expand.
2814 (avx512f_roundpd512): Rename to ...
2815 (avx512f_round<castmode>512): ... this. Change iterator.
2816 (avx512f_roundps512_sfix): New define_expand.
2817 (round<mode>2_sfix): Change iterator.
2819 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
2821 Backport from mainline
2822 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
2824 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
2827 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
2830 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
2831 Copy op1 RTX to avoid invalid sharing.
2832 (ix86_expand_vector_move_misalign): Ditto.
2834 2016-06-06 Jakub Jelinek <jakub@redhat.com>
2836 PR tree-optimization/71259
2837 * tree-vect-slp.c (vect_get_constant_vectors): For
2838 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
2839 one for constant op, and use COND_EXPR for non-constant.
2841 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2844 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2847 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
2849 2016-06-05 Uros Bizjak <ubizjak@gmail.com>
2851 Backport from mainline
2852 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
2853 Jocelyn Mayer <l_indien@magic.fr>
2856 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
2857 detect processor family for signature_CENTAUR_ebx.
2858 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
2859 signature_CENTAUR_ebx.
2860 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
2861 <default>: Pass x86-64 for has_longmode.
2863 2016-06-03 Jakub Jelinek <jakub@redhat.com>
2866 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
2867 to noreturn e->callee->decl that has void return type and void
2868 arguments, adjust gimple_call_fntype and remove lhs even if it had
2869 previously addressable type.
2871 2016-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
2873 Back port from trunk
2874 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
2876 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
2877 for ISA 3.0 min/max support.
2878 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
2879 conditional move support.
2880 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
2881 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
2883 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
2884 conditional moves where the comparison type is different from move
2886 (fp_minmax): New code iterator for smin/smax.
2887 (minmax): New code attributes for min/max.
2888 (SMINMAX): Likewise.
2889 (smax<mode>3): Combine min, max insns into one insn using the
2890 fp_minmax code iterator. Add support for ISA 3.0 min/max
2891 instructions that don't need -ffast-math.
2892 (s<minmax><mode>3): Likewise.
2893 (smax<mode>3_vsx): Likewise.
2894 (smin<mode>3): Likewise.
2895 (s<minmax><mode>3_vsx): Likewise.
2896 (smin<mode>3_vsx): Likewise.
2897 (pre-VSX min/max splitters): Likewise.
2898 (s<minmax><mode>3_fpr): Likewise.
2899 (movsfcc): Rewrite floating point conditional moves to combine
2900 SFmode/DFmode into a single insn.
2901 (mov<mode>cc): Likewise.
2902 (movdfcc): Likewise.
2903 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
2904 SFDF2 iterators to handle all combinations.
2905 (fseldfsf4): Likewise.
2906 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
2907 (fseldfdf4): Likewise.
2908 (fselsfdf4): Likewise.
2909 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
2910 comparison instructions that set a 0/-1 mask, and use it for
2911 floating point conditional move via XXSEL.
2912 (fpmask<mode>): Likewise.
2913 (xxsel<mode>): Likewise.
2914 * config/rs6000/predicates.md (min_max_operator): Delete, no
2916 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
2917 instructions that generate a 0/-1 mask for use with XXSEL.
2918 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
2919 say whether floating point min/max is available, either through
2920 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
2921 (TARGET_MINMAX_DF): Likewise.
2923 Back port from trunk
2924 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
2926 * config/rs6000/predicate.md (all_ones_constant): New predicate
2927 for vector constant with all 1's set.
2929 2016-06-02 Kelvin Nilsen <kelvin@gcc.gnu.org>
2931 Back port from trunk
2932 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
2934 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
2935 (UNSPEC_DARN_32): New unspec constant.
2936 (UNSPEC_DARN_RAW): New unspec constant.
2937 (darn_32): New instruction.
2938 (darn_raw): New instruction.
2939 (darn): New instruction.
2940 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
2941 support and documentation for this macro.
2942 (BU_P9_MISC_1): New macro definition.
2943 (BU_P9_64BIT_MISC_0): New macro definition.
2944 (BU_P9_MISC_0): New macro definition.
2945 (darn_32): New builtin definition.
2946 (darn_raw): New builtin definition.
2947 (darn): New builtin definition.
2948 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
2949 RS6000_BUILTIN_0 directives to surround each occurrence of
2950 #include "rs6000-builtin.def".
2951 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
2952 RS6000_BTM_64BIT flags to the returned mask, depending on
2954 (def_builtin): Correct an error in the assignments made to the
2955 debugging variable attr_string.
2956 (rs6000_expand_builtin): Add support for no-operand built-in
2958 (builtin_function_type): Remove fatal_error assertion that is no
2960 (rs6000_common_init_builtins): Add support for no-operand built-in
2962 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
2964 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
2966 (RS6000_BTM_64BIT): New macro definition.
2967 * doc/extend.texi: Document __builtin_darn (void),
2968 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
2971 2016-06-01 Michael Meissner <meissner@linux.vnet.ibm.com>
2973 Back port from trunk
2974 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
2977 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
2978 ISA 3.0 xxperm fusion alternative.
2979 (altivec_vperm_v8hiv16qi): Likewise.
2980 (altivec_vperm_<mode>_uns_internal): Likewise.
2981 (vperm_v8hiv4si): Likewise.
2982 (vperm_v16qiv8hi): Likewise.
2984 Back port from trunk
2985 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
2986 Kelvin Nilsen <kelvin@gcc.gnu.org>
2988 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
2989 vpermr/xxpermr on ISA 3.0.
2990 (altivec_expand_vec_perm_le): Likewise.
2991 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
2992 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
2995 Back port from trunk
2996 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
2998 * config/rs6000/altivec.md (VParity): New mode iterator for vector
2999 parity built-in functions.
3000 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
3002 (p9v_parity<mode>2): Likewise.
3003 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
3005 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
3006 (parity<mode>2): ISA 3.0 expander for vector parity.
3007 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
3009 (BU_P9_64BIT_MISC_0): Likewise.
3010 (BU_P9_MISC_0): Likewise.
3011 (BU_P9V_AV_1): Likewise.
3012 (BU_P9V_AV_2): Likewise.
3013 (BU_P9V_AV_3): Likewise.
3014 (BU_P9V_AV_P): Likewise.
3015 (BU_P9V_VSX_1): Likewise.
3016 (BU_P9V_OVERLOAD_1): Likewise.
3017 (BU_P9V_OVERLOAD_2): Likewise.
3018 (BU_P9V_OVERLOAD_3): Likewise.
3019 (VCTZB): Add vector count trailing zeros support.
3023 (VPRTYBD): Add vector parity support.
3024 (VPRTYBQ): Likewise.
3025 (VPRTYBW): Likewise.
3026 (VCTZ): Add overloaded vector count trailing zeros support.
3027 (VPRTYB): Add overloaded vector parity support.
3028 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3029 overloaded vector count trailing zeros and parity instructions.
3030 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
3031 vector parity support.
3032 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
3033 trailing zeros support.
3034 (vec_cntlz): Likewise.
3035 (vec_vctzb): Likewise.
3036 (vec_vctzd): Likewise.
3037 (vec_vctzh): Likewise.
3038 (vec_vctzw): Likewise.
3039 (vec_vprtyb): Add ISA 3.0 vector parity support.
3040 (vec_vprtybd): Likewise.
3041 (vec_vprtybw): Likewise.
3042 (vec_vprtybq): Likewise.
3043 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
3044 the ISA 3.0 vector count trailing zeros and vector parity built-in
3047 Back port from trunk
3048 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
3050 * config/rs6000/altivec.md (VNEG iterator): New iterator for
3051 VNEGW/VNEGD instructions.
3052 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
3053 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
3054 support for ISA 3.0 VNEGW/VNEGD instructions.
3056 Back port from trunk
3057 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
3059 * config/rs6000/predicates.md (quad_memory_operand): Move most of
3060 the code into quad_address_p and call it to share code with
3061 vsx_quad_dform_memory_operand.
3062 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
3064 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
3065 bit instead of being a separate word. Split -mpower9-dform into
3066 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
3067 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
3068 for the register class supporting 128-bit quad word memory offsets.
3069 (mode_supports_vsx_dform_quad): Helper function to return if the
3070 register class uses quad word memory offsets.
3071 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
3072 (rs6000_debug_reg_global): Always print if we are using LRA or not.
3073 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
3074 instructions are enabled, set up the appropriate addr_masks for
3076 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
3077 -mpower9-dform-scalar, instead of -mpower9-dform.
3078 (rs6000_option_override_internal): Split -mpower9-dform into two
3079 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
3080 -mpower9-dform switch sets or clears both. If we are not using
3081 the LRA register allocator, do not enable -mpower9-dform-vector by
3082 default. If we are using LRA, enable -mpower9-dform-vector and
3083 -mvsx-timode if it is appropriate. Issue a warning if either
3084 -mpower9-dform-vector or -mvsx-timode are explicitly used without
3086 (quad_address_offset_p): New helper function to return if the
3087 offset is legal for quad word memory instructions.
3088 (quad_address_p): New function to determin if GPR or vector
3089 register quad word memory addresses are legal.
3090 (mem_operand_gpr): Validate quad word address offsets.
3091 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
3092 d-form (register + offset) instructions.
3093 (offsettable_ok_by_alignment): Likewise.
3094 (rs6000_legitimate_offset_address_p): Likewise.
3095 (legitimate_lo_sum_address_p): Likewise.
3096 (rs6000_legitimize_address): Likewise.
3097 (rs6000_legitimize_reload_address): Add more debug statements for
3099 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
3100 d-form instructions.
3101 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
3102 d-form instructions. Distinguish different cases in debug
3103 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
3104 d-form instructions.
3105 (rs6000_preferred_reload_class): Likewise.
3106 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
3107 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
3108 of the ISA 2.06 indexed memory instructions.
3109 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
3110 use them to save/restore the saved vector registers instead of
3111 using Altivec instructions.
3112 (rs6000_emit_epilogue): Likewise.
3113 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
3114 (rs6000_opt_masks): Split -mpower9-dform into
3115 -mpower9-dform-scalar and -mpower9-dform-vector.
3116 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
3118 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
3119 ISA 3.0 vector indexed memory instructions, and fold the code into
3120 the normal mov<mode> patterns.
3121 (p9_vecstore_<mode>): Likewise.
3122 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
3124 (vsx_movti_64bit): Likewise.
3125 (vsx_movti_32bit): Likewise.
3126 * config/rs6000/constraints.md (wO constraint): New constraint for
3127 ISA 3.0 vector d-form support.
3128 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
3129 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
3130 include -mpower9-dform-vector until we switch over to LRA.
3131 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
3132 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
3133 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
3134 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
3135 for -mpower9-dform and -mlra.
3136 * doc/md.texi (wO constraint): Document wO constraint.
3138 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
3140 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
3141 the factor for live Phi nodes.
3143 2016-06-01 Jakub Jelinek <jakub@redhat.com>
3146 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
3147 around creation of the temporary.
3149 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
3151 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
3152 into account live statements for mask producers.
3154 2016-05-31 Richard Biener <rguenther@suse.de>
3156 Backport from mainline
3157 2016-05-11 Richard Biener <rguenther@suse.de>
3160 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
3161 (dwarf2out_finish): Move retry_incomplete_types call ...
3162 (dwarf2out_early_finish): ... here.
3164 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3167 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
3168 NULL_TREE early if NEON is not available. Remove now redundant check
3169 in ARM_CHECK_BUILTIN_MODE.
3171 2016-05-31 Tom de Vries <tom@codesourcery.com>
3174 2016-05-31 Tom de Vries <tom@codesourcery.com>
3176 PR tree-optimization/69068
3177 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
3178 phis with more than two args.
3180 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
3182 Backport from mainline
3183 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
3185 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
3186 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
3189 2016-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3191 Backport from mainline
3192 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3194 * config/rs6000/altivec.h: Change definitions of vec_xl and
3196 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
3197 (LD_ELEMREV_V2DI): New.
3198 (LD_ELEMREV_V4SF): New.
3199 (LD_ELEMREV_V4SI): New.
3200 (LD_ELEMREV_V8HI): New.
3201 (LD_ELEMREV_V16QI): New.
3202 (ST_ELEMREV_V2DF): New.
3203 (ST_ELEMREV_V2DI): New.
3204 (ST_ELEMREV_V4SF): New.
3205 (ST_ELEMREV_V4SI): New.
3206 (ST_ELEMREV_V8HI): New.
3207 (ST_ELEMREV_V16QI): New.
3210 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3211 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
3212 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
3213 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
3214 (altivec_expand_builtin): Add handling for
3215 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
3216 (rs6000_invalid_builtin): Add error-checking for
3217 RS6000_BTM_P9_VECTOR.
3218 (altivec_init_builtins): Define builtins used to implement vec_xl
3220 (rs6000_builtin_mask_names): Define power9-vector.
3221 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
3222 (RS6000_BTM_P9_VECTOR): Define.
3223 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
3224 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
3225 (vsx_ld_elemrev_v2df): Likewise.
3226 (vsx_ld_elemrev_v4sf): Likewise.
3227 (vsx_ld_elemrev_v4si): Likewise.
3228 (vsx_ld_elemrev_v8hi): Likewise.
3229 (vsx_ld_elemrev_v16qi): Likewise.
3230 (vsx_st_elemrev_v2df): Likewise.
3231 (vsx_st_elemrev_v2di): Likewise.
3232 (vsx_st_elemrev_v4sf): Likewise.
3233 (vsx_st_elemrev_v4si): Likewise.
3234 (vsx_st_elemrev_v8hi): Likewise.
3235 (vsx_st_elemrev_v16qi): Likewise.
3236 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
3239 2016-05-30 Richard Biener <rguenther@suse.de>
3241 Backport from mainline
3242 2016-05-11 Richard Biener <rguenther@suse.de>
3245 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
3246 if the langhook insists on it.
3247 * fold-const.c (make_bit_field_ref): Add arg for the original
3248 reference and preserve its alias-set.
3249 (decode_field_reference): Take exp by reference and adjust it
3250 to the original memory reference.
3251 (optimize_bit_field_compare): Adjust callers.
3252 (fold_truth_andor_1): Likewise.
3254 2016-05-13 Jakub Jelinek <jakub@redhat.com>
3257 * fold-const.c (fold_checksum_tree): Allow modification
3258 of TYPE_ALIAS_SET during folding.
3260 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
3262 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
3263 (visium_expand_copysign): Use gen_int_mode directly.
3264 (visium_compute_frame_size): Minor tweaks.
3266 2016-05-30 Tom de Vries <tom@codesourcery.com>
3269 2016-05-30 Tom de Vries <tom@codesourcery.com>
3271 PR tree-optimization/69067
3272 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
3274 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
3276 * config/visium/visium-protos.h (split_double_move): Rename into...
3277 (visium_split_double_move): ...this.
3278 (visium_split_double_add): Declare.
3279 * config/visium/visium.c (split_double_move): Rename into...
3280 (visium_split_double_move): ...this.
3281 (visium_split_double_add): New function.
3282 (visium_expand_copysign): Renumber operands for consistency.
3283 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
3284 (DFmode move splitter): Likewise.
3285 (*addi3_insn): Split by means of visium_split_double_add.
3286 (*adddi3_insn_flags): Delete.
3287 (*plus_plus_sltu<subst_arith>): New insn.
3288 (*subdi3_insn): Split by means of visium_split_double_add.
3289 (subdi3_insn_flags): Delete.
3290 (*minus_minus_sltu<subst_arith>): New insn.
3291 (*negdi2_insn): Split by means of visium_split_double_add.
3292 (*negdi2_insn_flags): Delete.
3294 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
3296 Backport from mainline r236810.
3297 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
3300 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
3303 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
3305 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
3306 redundant test and bail out if the type of the new operand is not
3307 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
3309 2016-05-24 Martin Sebor <msebor@redhat.com>
3312 * tree.h (complete_or_array_type_p): New inline function.
3314 2016-05-24 Jakub Jelinek <jakub@redhat.com>
3316 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
3317 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
3318 rather than X86_TUNE_AVOID_4BYTE_PREFIXES. Use SSE_REGS instead
3319 of ALL_SSE_REGS. Return SSE_REGS also when TARGET_AVX.
3321 2016-05-24 Jakub Jelinek <jakub@redhat.com>
3324 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
3325 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
3326 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
3327 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
3328 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
3330 2016-05-23 Martin Jambor <mjambor@suse.cz>
3332 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
3333 default block if a PHI node in the original one would be resized.
3335 2016-05-23 Martin Jambor <mjambor@suse.cz>
3337 PR tree-optimization/70884
3338 * tree-sra.c (initialize_constant_pool_replacements): Do not check
3339 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
3340 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
3341 of constant pool data as a reason for scalarization.
3343 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
3345 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
3346 for naked functions.
3347 (thumb1_expand_prologue): Likewise.
3349 2016-05-20 Jakub Jelinek <jakub@redhat.com>
3352 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
3353 calls if the LHS is variable length or has addressable type.
3354 If targets[0]->decl is a noreturn call with void return type and
3355 zero arguments, adjust fntype and remove lhs in that case.
3357 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
3359 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
3360 force pending loads from memory.
3362 2016-05-19 Marek Polacek <polacek@redhat.com>
3364 Backport from mainline
3365 2016-05-19 Marek Polacek <polacek@redhat.com>
3367 PR tree-optimization/71031
3368 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
3369 condition and adjust the code a bit.
3371 2016-05-19 Martin Jambor <mjambor@suse.cz>
3374 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
3375 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
3377 2016-05-19 Martin Jambor <mjambor@suse.cz>
3380 * ipa-inline.h (condition): New field size.
3381 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
3382 for comaprison and store it into the new condition.
3383 (evaluate_conditions_for_known_args): Use condition size to check
3384 access sizes for all but CHANGED conditions.
3385 (unmodified_parm_1): New parameter size_p, store access size into it.
3386 (unmodified_parm): Likewise.
3387 (unmodified_parm_or_parm_agg_item): Likewise.
3388 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
3389 (set_cond_stmt_execution_predicate): Extract access sizes and store
3391 (set_switch_stmt_execution_predicate): Likewise.
3392 (will_be_nonconstant_expr_predicate): Likewise.
3393 (will_be_nonconstant_predicate): Likewise.
3394 (inline_read_section): Stream condition size.
3395 (inline_write_summary): Likewise.
3396 * lto-streamer.h (LTO_minor_version): Bump.
3398 2016-05-18 Martin Liska <mliska@suse.cz>
3400 Backport from mainline
3401 2016-05-18 Martin Liska <mliska@suse.cz>
3404 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
3407 2016-05-18 Jakub Jelinek <jakub@redhat.com>
3410 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
3411 lhs if it has TREE_ADDRESSABLE type.
3413 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
3416 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
3417 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
3419 2016-05-17 Thomas Schwinge <thomas@codesourcery.com>
3421 Backport trunk r235748:
3423 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
3424 (nvptx_function_value): Assert non-NULL cfun.
3426 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3428 Backport from mainline
3429 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3432 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
3434 2016-05-16 Martin Jambor <mjambor@suse.cz>
3436 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
3437 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
3439 2016-05-16 Martin Jambor <mjambor@suse.cz>
3442 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
3443 the outlined kernel function.
3445 2016-05-16 James Norris <jnorris@codesourcery.com>
3447 Backport from mainline r236098.
3448 2016-05-10 James Norris <jnorris@codesourcery.com>
3451 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
3452 if offloading is enabled and -fopenacc or -fopenmp is specified.
3453 (CRTOFFLOADEND): Likewise.
3454 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
3455 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
3457 2016-05-16 Alan Modra <amodra@gmail.com>
3460 2016-05-10 Alan Modra <amodra@gmail.com>
3462 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
3463 regrename modifying insns saving lr before __morestack call.
3464 * config/rs6000/rs6000.md (split_stack_return): Similarly for
3465 insns restoring lr after __morestack call.
3467 2016-05-13 Richard Biener <rguenther@suse.de>
3469 Backport from mainline
3470 2016-04-27 Richard Biener <rguenther@suse.de>
3473 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
3474 aggregate_value_p to determine if a function result is
3475 returned by reference.
3477 2016-05-06 Richard Biener <rguenther@suse.de>
3480 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
3482 2016-05-06 Richard Biener <rguenther@suse.de>
3485 * fold-const.c (split_tree): Always convert to the original type
3488 2016-05-12 Martin Liska <mliska@suse.cz>
3490 Backport from mainline
3491 2016-05-10 Martin Liska <mliska@suse.cz>
3493 * tree-inline.c (remap_dependence_clique): Do not remap
3494 debugging statements.
3496 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
3498 Backport from mainline r236171.
3499 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
3501 PR tree-optimization/71006
3502 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
3503 consider COND_EXPR as a mask producer.
3505 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3507 Backport from mainline
3508 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3511 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
3512 when popping the PC and within an interrupt handler routine.
3513 Add missing tab to output of "ldmfd".
3514 (output_return_instruction): Output LDMFD with SP update rather
3515 than POP when returning from interrupt handler.
3517 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
3519 Backport from mainline r236088.
3520 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
3523 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
3524 calls with type casted fndecl.
3526 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
3528 Backport from mainline r236086.
3529 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
3531 PR tree-optimization/70876
3532 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
3533 * gcc/calls.c (initialize_argument_information): Bind bounds
3534 with corresponding args passed by reference.
3536 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3538 Backport from mainline
3539 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3542 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
3543 code for a zero scale factor.
3544 (vsx_xvcvdpuxds_scale): Likewise.
3546 2016-05-10 Jakub Jelinek <jakub@redhat.com>
3548 Backported from mainline
3549 2016-05-03 Jakub Jelinek <jakub@redhat.com>
3551 PR tree-optimization/70916
3552 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
3553 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
3555 2016-05-10 Yuri Rumyantsev <ysrumyan@gmail.com>
3557 Backport from mainline r235962.
3558 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
3561 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
3562 loop latch destination.
3564 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3566 Backport from mainline
3567 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3569 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
3570 ("*fixuns_truncdfdi2_z13")
3571 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
3572 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
3573 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
3575 2016-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
3577 Backport from mainline
3578 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
3580 * config/rtems.h (LIB_SPEC): Add -latomic.
3582 2016-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
3584 Backport from mainline
3585 2016-04-27 Joel Sherrill <joel@rtems.org>
3587 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
3588 xilink.ld and flags not relevant to RTEMS.
3590 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
3592 * config/i386/i386.md (absneg splitters with general regs): Use
3593 general_reg_operand predicate.
3594 (btsq peephole2): Use x86_64_immediate_operand to check if new
3595 value is suitable for immediate operand. Generate emitted insn
3596 using RTL expressions.
3597 (btcq peephole2): Ditto.
3598 (btrq peephole2): Ditto. Generate correct immediate operand
3601 2016-05-07 Tom de Vries <tom@codesourcery.com>
3604 2016-05-07 Tom de Vries <tom@codesourcery.com>
3606 PR tree-optimization/70956
3607 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
3610 2016-05-06 Marek Polacek <polacek@redhat.com>
3612 Backported from mainline
3613 2016-05-06 Marek Polacek <polacek@redhat.com>
3616 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
3618 2016-05-06 Marek Polacek <polacek@redhat.com>
3620 Backported from mainline
3621 2016-04-29 Marek Polacek <polacek@redhat.com>
3622 Jakub Jelinek <jakub@redhat.com>
3625 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
3626 TARGET_EXPR_SLOT as a base.
3628 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
3630 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
3632 (compute_samebase_partition_bases): Fix typo.
3634 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
3636 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
3637 occurence with frame_offset_ ones.
3639 2016-04-28 Jakub Jelinek <jakub@redhat.com>
3642 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
3643 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
3644 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
3645 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
3646 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
3648 2016-04-28 Eric Botcazou <ebotcazou@adacore.com>
3650 Backport from mainline
3651 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
3654 * stor-layout.h (internal_reference_types): Delete.
3655 * stor-layout.c (reference_types_internal): Likewise.
3656 (internal_reference_types): Likewise.
3657 (layout_type) <REFERENCE_TYPE>: Adjust.
3659 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3661 Backport from mainline
3662 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3664 * config/rs6000/rs6000-builtin.def: Correct pasto error for
3665 stxvd2x and stxvw4x built-in functions.
3667 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
3669 Backported from mainline
3670 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
3673 * config/i386/predicates.md (call_insn_operand): Replace
3674 sibcall_memory_operand with memory_operand.
3676 2016-04-27 Richard Biener <rguenther@suse.de>
3679 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
3680 function cummulating used_from_other_partition, externally_visible
3681 and force_output from aliases.
3682 (refered_from_nonlocal_var): Likewise.
3683 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
3684 node flags properly.
3686 2016-04-27 Jakub Jelinek <jakub@redhat.com>
3688 Backported from mainline
3689 2016-04-23 Jakub Jelinek <jakub@redhat.com>
3692 * cfgexpand.c (expand_stack_vars): Fix typo.
3694 2016-04-19 Jakub Jelinek <jakub@redhat.com>
3697 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
3698 implicitly linear or lastprivate iterator on the outer context.
3700 2016-04-27 Kirill Yukhin <kirill.yukhin@intel.com>
3703 * gcc/config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
3704 Extract AVX-512BW constraint from AVX.
3706 2016-04-27 Jakub Jelinek <jakub@redhat.com>
3708 * BASE-VER: Set to 6.1.1.
3710 2016-04-27 Release Manager
3712 * GCC 6.1.0 released.
3714 2016-04-25 Richard Biener <rguenther@suse.de>
3716 PR tree-optimization/70780
3717 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
3719 (compute_antic): Mark blocks with abnormal preds as visited as
3720 they have a final empty antic-in solution already.
3722 2016-04-22 H.J. Lu <hongjiu.lu@intel.com>
3724 Backport from mainline
3725 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
3727 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
3729 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
3731 * system.h (list, map, set, vector): Include conditionally.
3732 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
3733 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
3734 * ipa-icf.c (INCLUDE_LIST): Define.
3735 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
3736 * config/sh/sh.c (INCLUDE_VECTOR): Define.
3737 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
3738 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
3739 * cp/logic.cc (INCLUDE_LIST): Define.
3740 * fortran/trans-common.c (INCLUDE_MAP): Define.
3742 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
3744 * auto-profile.c: Remove <string.h> include.
3745 * ipa-icf-gimple.c: Remove <list> include.
3746 * diagnostic.c: Remove <new> include.
3747 * genmatch.c: Likewise.
3748 * pretty-print.c: Likewise.
3749 * toplev.c: Likewise
3750 * c/c-objc-common.c: Likewise.
3751 * cp/error.c: Likewise.
3752 * fortran/error.c: Likewise.
3754 2016-04-21 Richard Biener <rguenther@suse.de>
3757 * fold-const.c (fold_comparison): Return properly typed
3760 2016-04-20 Andrew Pinski <apinski@cavium.com>
3761 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3764 * config/aarch64/aarch64.md (sibcall): Force call
3765 address to be DImode for ILP32.
3766 (sibcall_value): Likewise.
3768 2016-04-20 Marek Polacek <polacek@redhat.com>
3770 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
3773 2016-04-20 Marek Polacek <polacek@redhat.com>
3775 PR tree-optimization/70725
3776 * tree-if-conv.c (is_false_predicate): New function.
3777 (predicate_mem_writes): Use it.
3779 2016-04-20 Richard Biener <rguenther@suse.de>
3781 PR tree-optimization/70726
3782 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
3783 shift amounts from a pattern stmt operand.
3785 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3788 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
3789 stack_restore_from_fpr pattern when restoring r15.
3790 (s390_optimize_prologue): Strip away the memory barrier in the
3791 parallel when trying to get rid of restore insns.
3792 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
3793 definition for loading the stack pointer from an FPR. Compared to
3794 the normal move insn this pattern includes a full memory barrier.
3796 2016-04-19 Richard Biener <rguenther@suse.de>
3798 PR tree-optimization/70724
3799 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
3800 restoring out from ...
3801 (free_scc_vn): ... here.
3802 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
3803 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
3805 (pass_fre::execute): Restore SSA info.
3807 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3809 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
3811 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc
3813 Mention Solaris 11 packaging changes.
3814 Update gas and gld requirements.
3815 Remove reference to pre-Solaris 10 bug.
3816 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
3818 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
3821 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
3824 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
3825 armv8.1-a and armv8.1-a+crc.
3827 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
3829 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
3830 unless compiling with at least GCC-4.8.
3832 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
3835 * config/i386/sse.md (define_insn "<avx512>_vec_dup<mode><mask_name>"):
3836 Fix mode size check.
3838 2016-04-15 Jakub Jelinek <jakub@redhat.com>
3840 * BASE-VER: Set to 6.0.1.
3841 * DEV-PHASE: Set to prerelease.
3843 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
3845 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
3847 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3849 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
3850 architecture revisions.
3852 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
3854 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
3855 * config/i386/i386.c (ix86_using_red_zone): No longer static.
3856 * config/i386/i386.md (stack decrement to push peepholes): Guard
3857 with !x86_using_red_zone ().
3859 2016-04-15 Jakub Jelinek <jakub@redhat.com>
3862 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
3863 to dump_generic_node.
3864 (NIY): Pass also flags to do_niy.
3866 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
3868 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
3869 (simd_clone_vector_of_formal_parm_types)
3870 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
3871 (simd_clone_mangle, simd_clone_create)
3872 (simd_clone_adjust_return_type, create_tmp_simd_array)
3873 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
3874 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
3875 (ipa_simd_modify_function_body, simd_clone_linear_addend)
3876 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
3877 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
3878 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move
3880 * omp-simd-clone.c: ... this new file.
3881 (simd_clone_vector_of_formal_parm_types): Make it static.
3882 * Makefile.in (OBJS): Add omp-simd-clone.o.
3884 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
3887 * config/i386/sse.md: Use proper memory operand
3891 2016-04-15 Richard Biener <rguenther@suse.de>
3892 Alan Modra <amodra@gmail.com>
3894 PR tree-optimization/70130
3895 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
3896 when alignment stays not the same and no not use the realign
3899 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3902 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
3903 direct move handlers for KFmode. Change TFmode handlers test from
3904 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
3906 2016-04-14 Jakub Jelinek <jakub@redhat.com>
3909 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
3910 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
3911 (inlined_polymorphic_ctor_dtor_block_p): Use it.
3912 * tree-ssa-live.c (remove_unused_scope_block_p): When
3913 in_ctor_dtor_block, avoid discarding not just BLOCKs with
3914 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
3915 block_ultimate_origin is FUNCTION_DECL.
3916 (remove_unused_locals): If current_function_decl is
3917 polymorphic_ctor_dtor_p, pass initial true to
3918 remove_unused_scope_block_p' is_ctor_dtor_block.
3920 2016-04-14 Martin Sebor <msebor@redhat.com>
3925 * doc/extend.texi (Variable Length): Revert.
3927 2016-04-14 Marek Polacek <polacek@redhat.com>
3928 Jan Hubicka <hubicka@ucw.cz>
3931 * tree.c (verify_type): Disable the canonical type of main variant
3934 2016-04-14 Jason Merrill <jason@redhat.com>
3936 * cfgexpand.c, expr.c: Revert previous change.
3938 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
3941 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
3942 when building a mem ref for the incoming reduction variable.
3944 2016-04-14 Richard Biener <rguenther@suse.de>
3946 PR tree-optimization/70614
3947 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
3948 loop if the evolution dropped to chrec_dont_know.
3949 (interpret_condition_phi): Likewise.
3951 2016-04-14 Richard Biener <rguenther@suse.de>
3953 PR tree-optimization/70623
3954 * tree-ssa-pre.c (changed_blocks): Make global ...
3955 (compute_antic): ... local here. Move and fix worklist
3956 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
3957 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
3958 worklist handling, dump when ANTIC_IN changed.
3959 (compute_partial_antic_aux): Remove worklist handling.
3960 (init_pre): Do not compute post dominators. Add a comment about
3961 the CFG order chosen.
3962 (fini_pre): Do not free post dominators.
3964 2016-04-13 Martin Sebor <msebor@redhat.com>
3969 * doc/extend.texi (Variable Length): Document C++ specifics.
3971 2016-04-13 Jakub Jelinek <jakub@redhat.com>
3974 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
3975 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
3976 eh edges have been purged.
3979 * tree-sra.c (create_access_replacement,
3980 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
3982 * tree-pretty-print.c (dump_fancy_name): New function.
3983 (dump_decl_name, dump_generic_node): Use it.
3985 2016-04-13 Jason Merrill <jason@redhat.com>
3987 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
3988 * expr.c (expand_expr_real_1): Likewise.
3990 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
3992 * config/i386/i386.md (kunpckhi): Swap operands.
3993 (kunpcksi): Likewise.
3994 (kunpckdi): Likewise.
3995 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
3996 (vec_pack_trunc_<mode>): Likewise.
3998 2016-04-13 Jakub Jelinek <jakub@redhat.com>
4001 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
4004 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
4005 gimplification turns some element into non-constant.
4008 * rtl.h (convert_memory_address_addr_space_1): New prototype.
4009 * explow.c (convert_memory_address_addr_space_1): No longer static,
4010 add NO_EMIT argument and don't call convert_modes if true, pass
4011 it down recursively, remove break after return.
4012 (convert_memory_address_addr_space): Adjust caller.
4013 * simplify-rtx.c (simplify_unary_operation_1): Call
4014 convert_memory_address_addr_space_1 instead of convert_memory_address,
4015 if it returns NULL, don't simplify.
4017 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
4020 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
4022 2016-04-12 Jakub Jelinek <jakub@redhat.com>
4024 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
4025 Bump the upper SIMDLEN limits, so that if the return type or
4026 characteristic type if the return type is void can be passed in
4027 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
4030 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
4033 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
4034 Do not use "=" constraint on an input constraint.
4035 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
4036 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
4037 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
4038 generates (neg (abs ...)) instead of (abs ...).
4040 2016-04-12 Jakub Jelinek <jakub@redhat.com>
4042 PR rtl-optimization/70596
4043 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
4044 just invalidate LRA data and reset them. Adjust dump wording.
4046 2016-04-12 Martin Liska <mliska@suse.cz>
4049 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
4051 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
4053 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
4054 max_loop_iterations_int.
4055 (tree_unswitch_outer_loop): Likewise.
4056 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
4057 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
4059 2016-04-12 Tom de Vries <tom@codesourcery.com>
4061 PR tree-optimization/68756
4062 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
4063 instead of new_name.
4065 2016-04-12 Jakub Jelinek <jakub@redhat.com>
4067 PR tree-optimization/70602
4068 * tree-sra.c (generate_subtree_copies): Don't write anything into
4069 constant pool decls.
4071 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
4072 regardless whether there are depend clauses or not.
4074 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
4077 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
4078 target attribute and pragma from changing the -mfloat128
4079 and -mfloat128-hardware options.
4081 * doc/extend.texi (Additional Floating Types): Document PowerPC
4082 __float128 restrictions.
4084 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
4087 * config/aarch64/driver-aarch64.c
4088 (aarch64_get_extension_string_for_isa_flags): New.
4089 (arch_extension): Rename to...
4090 (aarch64_arch_extension): ...This.
4091 (ext_to_feat_string): Rename to...
4092 (aarch64_extensions): ...This.
4093 (aarch64_core_data): Keep track of architecture extension flags.
4094 (cpu_data): Rename to...
4095 (aarch64_cpu_data): ...This.
4096 (aarch64_arch_driver_info): Keep track of architecture extension
4098 (get_arch_name_from_id): Rename to...
4099 (get_arch_from_id): ...This, change return type.
4100 (host_detect_local_cpu): Update and reformat for renames, handle
4101 extensions through common infrastructure.
4103 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
4106 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
4107 track of a canonical flag name.
4108 (all_extensions): Likewise.
4109 (arch_to_arch_name): Also track extension flags enabled by the arch.
4110 (all_architectures): Likewise.
4111 (aarch64_parse_extension): Move to here.
4112 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
4114 (aarch64_rewrite_selected_cpu): Update for above change.
4115 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
4116 are handled, such that the single explicit value enabled by an
4117 extension is kept seperate from the implicit values it also enables.
4118 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
4120 (aarch64_parse_extension): New.
4121 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
4122 here to config/aarch64/aarch64-protos.h.
4123 (aarch64_parse_extension): Move from here to
4124 common/config/aarch64/aarch64-common.c.
4125 (aarch64_option_print): Update.
4126 (aarch64_declare_function_name): Likewise.
4127 (aarch64_start_file): Likewise.
4128 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
4129 the canonical flag for extensions.
4130 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
4133 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
4135 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
4138 2016-04-09 Tom de Vries <tom@codesourcery.com>
4140 PR tree-optimization/68953
4141 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
4142 first to last subscript.
4144 2016-04-09 Jakub Jelinek <jakub@redhat.com>
4146 PR tree-optimization/70586
4147 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
4150 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
4154 PR tree-optimization/70373
4158 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
4159 clauses for acc parallel reductions as necessary. Error on those
4161 * omp-low.c (scan_sharing_clauses): Don't install variables which
4162 are used in acc parallel reductions.
4163 (lower_rec_input_clauses): Remove dead code.
4164 (lower_oacc_reductions): Add support for reference reductions.
4165 (lower_reduction_clauses): Remove dead code.
4166 (lower_omp_target): Don't remap variables appearing in acc parallel
4168 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
4170 2016-04-08 Jakub Jelinek <jakub@redhat.com>
4173 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
4174 with multiple SSA_NAME defs, force the outputs other than first
4175 to be live before calling live_track_process_def on each output.
4177 PR rtl-optimization/70574
4178 * fwprop.c (forward_propagate_and_simplify): Don't add
4179 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
4180 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
4181 paradoxical subregs within *loc.
4183 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
4185 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
4186 -ftree-parallelize-loops={0,1}.
4187 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
4188 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
4189 * config/ia64/hpux.h (LIB_SPEC): Likewise.
4190 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
4191 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
4193 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
4196 * asan.c (instrument_derefs): If we get unknown location, extract it
4198 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
4200 2016-04-08 Tom de Vries <tom@codesourcery.com>
4202 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
4203 implicit firstprivate clause.
4205 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4208 * config/arm/thumb2.md (tst + branch-> lsls + branch
4209 peephole below *orsi_not_shiftsi_si): Require that condition
4210 register is dead after the peephole.
4211 (second peephole after the above): Likewise.
4213 2016-04-08 Alan Modra <amodra@gmail.com>
4216 * builtins.c (fold_builtin_classify): For IBM extended precision,
4217 look at just the high-order double to test for NaN.
4218 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
4219 test just the high double for Inf but both doubles for subnormal
4222 2016-04-07 Jakub Jelinek <jakub@redhat.com>
4224 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
4225 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
4226 node->simdclone->mask_mode != VOIDmode masks.
4227 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
4228 earlier, use it instead of node->simdclone.
4229 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
4230 Set clonei->mask_mode.
4232 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
4235 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
4236 Pass it through to cp_parser_already_scoped_statement.
4237 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
4238 it through to cp_parser_statement.
4239 (cp_parser_statement): Pass IF_P through to
4240 cp_parser_iteration_statement.
4241 (cp_parser_pragma): Adjust call to
4242 cp_parser_iteration_statement.
4244 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
4247 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
4248 resolve a future -Wparentheses warning.
4249 * omp-low.c (scan_sharing_clauses): Likewise.
4250 * tree-parloops.c (eliminate_local_variables): Likewise.
4252 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
4254 PR rtl-optimization/70398
4255 * lra-constraints.c (process_address_1): Check zero scale and code
4256 for reloading with zero scale.
4258 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
4260 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
4261 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
4263 2016-04-06 Jakub Jelinek <jakub@redhat.com>
4265 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
4266 Add support for AVX512F clones, include them by default for
4267 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
4268 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
4272 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
4273 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
4274 firstprivate clauses.
4275 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
4276 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
4277 (lower_omp_target): Set TREE_NO_WARNING for
4278 non-addressable possibly uninitialized vars which are copied into
4279 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
4281 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
4283 * config/pa/predicates.md (integer_store_memory_operand): Accept
4284 REG+D operands with a large offset when reload_in_progress is true.
4285 (floating_point_store_memory_operand): Likewise.
4287 2016-04-05 Jakub Jelinek <jakub@redhat.com>
4290 * match.pd (nested int casts): Limit to GIMPLE.
4292 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
4295 * ipa-devirt.c (maybe_record_node): Fix comment; use
4296 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
4298 2016-04-05 Jakub Jelinek <jakub@redhat.com>
4300 PR rtl-optimization/70542
4301 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
4302 if there are any uses other than insn or debug insns.
4304 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
4305 Jakub Jelinek <jakub@redhat.com>
4307 PR tree-optimization/70509
4308 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
4309 Shift HOST_WIDE_INT_1U instead of 1.
4311 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
4313 PR tree-optimization/70509
4314 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
4315 of the vector base type for index.
4317 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
4320 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
4322 2016-04-05 Richard Biener <rguenther@suse.de>
4324 PR tree-optimization/70526
4325 * tree-sra.c (build_ref_for_offset): Use prev_base to
4326 extract the alias pointer type.
4328 2016-04-05 Richard Biener <rguenther@suse.de>
4330 * dse.c (struct store_info): Remove alias_set member.
4331 (struct read_info_type): Likewise.
4332 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
4333 spill_deleted, clear_alias_set_lookup): Remove.
4334 (get_group_info): Remove dead base == NULL_RTX case.
4335 (dse_step0): Remove initialization of removed variables.
4336 (delete_dead_store_insn): Reomve alias set dumping.
4337 (free_read_records): Remove alias_set handling.
4338 (canon_address): Remove alias_set_out parameter.
4339 (record_store): Remove spill_alias_set, it's always zero.
4340 (check_mem_read_rtx): Likewise.
4341 (dse_step2): Rename from ...
4342 (dse_step2_nospill): ... this. Adjust.
4343 (scan_stores): Rename from ...
4344 (scan_stores_nospill): ... this.
4345 (scan_reads): Rename from ...
4346 (scan_reads_nospill): ... this.
4347 (scan_stores_spill, scan_reads_spill): Remove.
4348 (dse_step3_scan): Remove for_spills argument which is always false.
4349 (dse_step3): Likewise.
4350 (dse_step5): Rename from ...
4351 (dse_step5_nospill): ... this. Remove alias_set handling.
4352 (rest_of_handle_dse): Adjust.
4354 2016-04-05 Jakub Jelinek <jakub@redhat.com>
4357 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
4358 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
4359 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
4360 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
4362 2016-04-05 Richard Biener <rguenther@suse.de>
4365 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
4366 non-register type temporaries into SSA.
4368 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
4371 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
4372 calls when sanitizing.
4373 (possible_polymorphic_call_target_p): Fix formatting.
4375 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4376 Jakub Jelinek <jakub@redhat.com>
4379 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
4380 to ensure a call statement is compatible with a built-in's
4382 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
4385 2016-04-04 Richard Biener <rguenther@suse.de>
4387 PR rtl-optimization/70484
4388 * rtl.h (canon_output_dependence): Declare.
4389 * alias.c (canon_output_dependence): New function.
4390 * dse.c (record_store): Use canon_output_dependence rather
4391 than canon_true_dependence.
4393 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
4396 * cgraph.h (symtab_node::copy_visibility_from): New function.
4397 * symtab.c (symtab_node::copy_visibility_from): New function.
4398 * ipa-visibility.c (optimize_weakref): New function.
4399 (function_and_variable_visibility): Use it.
4401 2016-04-04 Martin Liska <mliska@suse.cz>
4404 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
4405 value that is really in range handled by SBR instruction.
4406 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
4407 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
4408 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
4410 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
4414 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
4415 set, but not for SP_REG operands.
4417 2016-04-02 Martin Sebor <msebor@redhat.com>
4420 * fold-const.c (maybe_nonzero_address): New function.
4421 (fold_comparison): Call it. Fold equality and relational
4422 expressions involving null pointers.
4423 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
4425 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
4427 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
4428 the "Y" constraint (scalar FP 0.0 immediate).
4430 * gcc/config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
4431 Add the "const_double" to the list of operand constraints.
4433 2016-04-01 Jakub Jelinek <jakub@redhat.com>
4435 PR rtl-optimization/70467
4436 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
4437 If low word of the last operand is 0, just emit addition/subtraction
4440 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4443 * config/s390/s390.c (s390_expand_insv): Check for everything
4444 constant instead of just VOIDmode stuff.
4446 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4449 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
4451 2016-04-01 Nathan Sidwell <nathan@acm.org>
4453 * tree.def (TRY_CATCH_EXPR): Correct documentation.
4455 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
4457 PR rtl-optimization/70461
4458 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
4461 2016-03-31 Martin Liska <mliska@suse.cz>
4464 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
4465 a tree value or an immediate integer value to a buffer
4466 that is eventually copied to a BRIG section.
4467 (emit_immediate_operand): Call the function here.
4468 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
4469 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
4470 of class' fields that are removed.
4471 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
4472 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
4473 m_brig_repr_size fields.
4475 2016-03-31 Martin Liska <mliska@suse.cz>
4478 * hsa-gen.c (hsa_function_representation::update_dominance): New
4480 (convert_addr_to_flat_segment): Likewise.
4481 (gen_hsa_memory_set): New alignment argument.
4482 (gen_hsa_ctor_assignment): Likewise.
4483 (gen_hsa_insns_for_single_assignment): Provide alignment
4484 to gen_hsa_ctor_assignment.
4485 (gen_hsa_insns_for_direct_call): Add new argument.
4486 (expand_lhs_of_string_op): New function.
4487 (expand_string_operation_builtin): Likewise.
4488 (expand_memory_copy): New function.
4489 (expand_memory_set): New function.
4490 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
4491 (convert_switch_statements): Change signature.
4492 (generate_hsa): Use a return value of the function.
4493 (pass_gen_hsail::execute): Do not call
4494 convert_switch_statements here.
4495 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
4496 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
4497 (hsa_function_representation::update_dominance): New function.
4499 2016-03-31 Martin Liska <mliska@suse.cz>
4502 * hsa-brig.c (emit_directive_variable): Emit alignment
4503 according to hsa_symbol::m_align.
4504 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
4505 (dump_hsa_symbol): Dump alignment of HSA symbols.
4506 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
4507 (gen_hsa_addr_with_align): New function.
4508 (hsa_bitmemref_alignment): Use newly added function.
4509 (gen_hsa_insns_for_load): Likewise.
4510 (gen_hsa_insns_for_store): Likewise.
4511 (gen_hsa_memory_copy): New argument added.
4512 (gen_hsa_insns_for_single_assignment): Respect
4513 alignment for assignments processed via gen_hsa_memory_copy.
4514 (gen_hsa_insns_for_direct_call): Likewise.
4515 (gen_hsa_insns_for_return): Likewise.
4516 (gen_function_def_parameters): Set default alignment.
4517 * hsa.c (hsa_object_alignment): New function.
4518 (hsa_byte_alignment): Pasted function.
4519 * hsa.h (hsa_symbol::m_align): New field.
4521 2016-03-31 Bin Cheng <bin.cheng@arm.com>
4523 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
4524 scratch field for goto case.
4526 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
4528 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
4530 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
4533 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
4534 (scalar_chain::convert_insn): Call convert_op for reg
4535 moves to handle undefined registers.
4537 2016-03-31 Nathan Sidwell <nathan@acm.org>
4540 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
4541 Assert we don't want to move backwards.
4543 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
4546 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
4548 2016-03-31 Jakub Jelinek <jakub@redhat.com>
4550 PR rtl-optimization/70460
4551 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
4552 with operand from REG_LABEL_OPERAND, instead substitute
4553 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
4554 Don't do anything for REG_NON_LOCAL_GOTO jumps.
4556 2016-03-31 Martin Liska <mliska@suse.cz>
4558 * passes.c (execute_one_pass): Do not call
4559 todo_after for a discarded function.
4561 2016-03-31 Bin Cheng <bin.cheng@arm.com>
4563 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
4564 (no_cost, infinite_cost): Initialize the new field.
4565 (get_computation_cost_at): Record setup cost.
4566 (determine_use_iv_cost_address): Skip cost computation for sub
4567 uses if we can estimate it without losing accuracy.
4569 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
4571 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
4573 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
4574 max_loop_iterations_int.
4575 (tree_unswitch_outer_loop): Likewise.
4576 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
4577 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
4579 2016-03-30 Richard Biener <rguenther@suse.de>
4582 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
4584 2016-03-30 Jakub Jelinek <jakub@redhat.com>
4587 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
4588 in gen_blendm expander.
4590 2016-03-30 Nick Clifton <nickc@redhat.com>
4593 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
4594 case where we are already provided with an SImode SUBREG.
4596 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
4599 * config/i386/i386.c (ix86_expand_epilogue): Properly check
4600 conflict between DRAP register and __builtin_eh_return.
4602 2016-03-30 Michael Matz <matz@suse.de>
4603 Richard Biener <rguenther@suse.de>
4606 * ipa-polymorphic-call.c (struct type_change_info): Change
4607 speculative to an unsigned allowing to limit the work we do.
4608 (csftc_abort_walking_p): New inline function..
4609 (check_stmt_for_type_change): Limit the number of may-defs
4610 skipped for speculative devirtualization to
4611 max-speculative-devirt-maydefs.
4612 * params.def (max-speculative-devirt-maydefs): New param.
4613 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
4615 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
4618 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
4621 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
4623 PR tree-optimization/59124
4624 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
4625 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
4627 2016-03-29 Jeff Law <law@redhat.com>
4629 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
4631 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
4633 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
4636 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
4638 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
4639 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
4640 gcrt0.o if linking dynamically.
4642 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
4645 * ipa-devirt.c (methods_equal_p): New function.
4646 (compare_virtual_tables): Use it.
4647 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
4648 * cgraphclones.c (clone_function_name_1): Use
4649 symbol_table::symbol_suffix_separator.
4650 * coverage.c (build_var): Likewise.
4651 * symtab.c (symbol_table::symbol_suffix_separator): New.
4653 2016-03-29 Jakub Jelinek <jakub@redhat.com>
4655 PR rtl-optimization/70429
4656 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
4657 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
4658 mode != result_mode.
4661 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
4663 PR tree-optimization/70405
4664 * ssa-iterators.h (num_imm_uses): Add missing braces.
4666 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
4668 PR rtl-optimization/68695
4669 * ira-color.c (allocno_copy_cost_saving): New.
4670 (improve_allocation): Use it.
4672 2016-03-29 Richard Henderson <rth@redhat.com>
4675 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
4677 2016-03-29 Richard Biener <rguenther@suse.de>
4680 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
4681 use alignment returned by get_pointer_alignment_1 if it is
4682 bigger than BITS_PER_UNIT.
4683 * builtins.c (get_pointer_alignment_1): Do not return true
4684 for alignment extracted from SSA info.
4686 2016-03-28 James Bowman <james.bowman@ftdichip.com>
4688 * config/ft32/ft32.opt (mnodiv): New.
4689 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
4690 * doc/invoke.texi (FT32 Options -mnodiv): New.
4692 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
4695 * config/i386/i386.md (define_split, andn): Fix modes.
4697 2016-03-26 Richard Biener <rguenther@suse.de>
4698 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4701 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
4703 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
4704 as 2nd argument to cl_optimization_restore().
4706 2016-03-25 Richard Henderson <rth@redhat.com>
4709 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
4710 * config/aarch64/aarch64-protos.h: Declare it.
4711 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
4713 2016-03-25 Alan Modra <amodra@gmail.com>
4716 * config/rs6000/constraints.md (j): Simplify.
4717 * config/rs6000/predicates.md (easy_fp_constant): Exclude
4719 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
4720 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
4721 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
4722 in all constraint alternatives.
4723 (movtd_64bit_nodm): Delete "j" constraint alternative.
4725 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
4727 * tree-ssa-propagate.c: Enhance docs for
4728 SSA_PROP_NOT_INTERESTING.
4730 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
4732 * doc/extend.texi: Fix typo in documentation to pure attribute.
4734 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
4737 * config/pa/pa.md (bswapdi2): Use a scratch register.
4739 2016-03-24 Richard Henderson <rth@redhat.com>
4742 * fold-const.c (extract_muldiv_1): Correct test for multiplication
4745 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
4747 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
4748 using ix86_expand_binary_operator instead of gen_andsi3.
4750 2016-03-24 Richard Biener <rguenther@suse.de>
4752 PR tree-optimization/70396
4753 * tree-vect-stmts.c (vectorizable_comparison): Use
4754 get_vectype_for_scalar_type.
4756 2016-03-24 Richard Biener <rguenther@suse.de>
4759 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
4760 with register bases.
4762 2016-03-24 Richard Biener <rguenther@suse.de>
4764 PR tree-optimization/70372
4765 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
4766 build_all_ones_cst to also handle vector types correctly.
4768 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
4771 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
4774 2016-03-23 Marek Polacek <polacek@redhat.com>
4777 * doc/invoke.texi: Document -Wignored-attributes.
4779 2016-03-23 Bin Cheng <bin.cheng@arm.com>
4781 PR tree-optimization/69042
4782 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
4783 parameter from 30 to 40.
4785 2016-03-23 Bin Cheng <bin.cheng@arm.com>
4787 PR tree-optimization/69042
4788 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
4789 for use with constant offset stripped in base.
4791 2016-03-23 Richard Biener <rguenther@suse.de>
4794 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
4795 mode compatibility check.
4796 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
4798 2016-03-23 Jeff Law <law@redhat.com>
4800 PR tree-optimization/64058
4801 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
4803 (struct ssa_conflicts): Move up earlier in the file.
4804 (conflicts_, var_map_): New static variables.
4805 (initialize_conflict_count): New function to initialize the
4806 CONFLICT_COUNT field for each conflict pair.
4807 (compare_pairs): Lazily initialize the conflict count and use it
4808 as the first tie-breaker.
4809 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
4810 and wipe conflicts_ and map_ around the call to qsort. Remove
4811 special case for 2 coalesce pairs.
4812 * bitmap.c (bitmap_count_unique_bits): New function.
4813 (bitmap_count_bits_in_word): New function, extracted from
4815 (bitmap_count_bits): Use bitmap_count_bits_in_word.
4816 * bitmap.h (bitmap_count_unique_bits): Declare it.
4818 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
4821 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
4822 transparent alias chain for decl assembler name.
4823 * config/sol2.c (solaris_assemble_visibility): Likewise.
4825 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4827 * config/arm/arm1020e.md (1020call_op): Reduce reservation
4829 (v10_fdivs): Likewise.
4830 (v10_fdivd): Likewise.
4832 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4835 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
4836 to not call fclose twice on file.
4838 2016-03-23 Jakub Jelinek <jakub@redhat.com>
4840 PR tree-optimization/70354
4841 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
4842 oprnd0 is wider than oprnd1 and there is a cast from the wider
4843 type to oprnd1, mask it with the mask of the narrower type.
4846 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
4847 Optimize TARGET_STV splitters, if high or low word of last argument
4850 2016-03-22 Jeff Law <law@redhat.com>
4853 tree-ssa-threadbackward.c
4854 (fsm_find_control_statement_thread_paths): Correctly distinguish
4855 between old style jump threads vs FSM jump threads.
4857 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
4860 * config/i386/i386.c (scalar_chain::convert_op): Support
4861 uninitialized register usage case.
4863 2016-03-22 Richard Biener <rguenther@suse.de>
4866 * genmatch.c (gen_transform): Adjust last parameter to a three-state
4868 (capture::gen_transform): ... to change behavior when substituting
4869 a condition into cond or not-cond expr context.
4870 (dt_simplify::gen_1): Adjust.
4871 * gimple-match-head.c: Include gimplify.h for unshare_expr.
4872 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
4873 last change and instead change to
4874 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
4875 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
4877 2016-03-22 Anthony Green <green@moxielogic.com>
4879 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
4880 issue for moxiebox targets.
4881 (CC1PLUS_SPEC): Ditto.
4883 2016-03-22 Richard Biener <rguenther@suse.de>
4886 * fold-const.c (extract_muldiv_1): Properly perform multiplication
4889 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
4891 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
4893 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
4896 * config/i386/i386.c (def_builtin): Handle
4897 OPTION_MASK_ISA_AVX512VL to be and-ed with other
4899 (const struct builtin_description bdesc_special_args[]):
4900 Remove duplicate ISA bits.
4902 2016-03-22 Jakub Jelinek <jakub@redhat.com>
4905 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
4906 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
4907 in a way that works also for AVX512BW.
4910 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
4911 instead of source if operands[1] is xmm16 and above and
4912 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
4913 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
4916 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
4917 on assign if (*from_p) is a comparison, set it to
4918 TREE_NO_WARNING (*from_p).
4920 2016-03-21 Jakub Jelinek <jakub@redhat.com>
4923 * lra.c (restore_scratches): Ignore deleted insns.
4925 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
4926 Jakub Jelinek <jakub@redhat.com>
4928 PR tree-optimization/70317
4929 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
4932 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
4935 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
4936 of ix86_expand_move.
4938 (movti): Use general_operand for operand 1 predicate.
4940 2016-03-21 Martin Liska <mliska@suse.cz>
4942 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
4944 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
4946 2016-03-21 Martin Liska <mliska@suse.cz>
4949 * ipa-icf.c (sem_function::parse): Skip static
4950 constructors and destructors.
4952 2016-03-21 Jakub Jelinek <jakub@redhat.com>
4955 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
4956 function-like macro, peek following token(s) if it is followed
4957 by CPP_OPEN_PAREN token with optional padding in between, and
4958 if not, don't treat it like a macro.
4960 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
4961 Alexander Monakov <amonakov@ispras.ru>
4963 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
4964 for the stabs debug format.
4966 2016-03-21 Richard Biener <rguenther@suse.de>
4968 PR tree-optimization/70310
4969 * tree-vect-generic.c (expand_vector_condition): Fold the built
4972 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
4975 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
4976 Block third alternative for AVX-512VL target,
4978 2016-03-21 Martin Liska <mliska@suse.cz>
4981 * hsa-brig.c (emit_function_directives): Mark unemitted
4982 global variables for emission.
4983 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
4984 (get_symbol_for_decl): Likewise.
4985 * hsa.h (struct hsa_symbol): New flag.
4987 2016-03-21 Richard Biener <rguenther@suse.de>
4989 PR tree-optimization/70288
4990 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
4991 we do not estimate unsimplified all-constant conditionals or
4992 switches as optimized away.
4994 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
4996 PR rtl-optimization/69102
4997 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
4998 when we have a readonly dependency context.
5000 2016-03-18 Jeff Law <law@redhat.com>
5002 PR rtl-optimization/70263
5003 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
5004 (update_equiv_regs): When trying to move a store to after the insn
5005 that sets the source of the store, make sure the store occurs after
5006 the insn that sets the source of the store. When successful note
5007 the REG_EQUIV note created in the dump file.
5009 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
5010 Bernd Schmidt <bschmidt@redhat.com>
5012 * doc/extend.texi: Document more potential problems with basic asms.
5014 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
5016 PR rtl-optimization/70278
5017 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
5020 2016-03-18 Jason Merrill <jason@redhat.com>
5022 * calls.c (load_register_parameters): Fix zero size sibcall logic.
5024 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
5026 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
5027 values to 128b regs.
5029 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
5031 PR tree-optimization/70252
5032 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
5033 boolean vector has a proper number of elements.
5034 (supportable_narrowing_operation): Likewise.
5036 2016-03-18 Tom de Vries <tom@codesourcery.com>
5039 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
5041 2016-03-18 Jakub Jelinek <jakub@redhat.com>
5043 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
5044 instead of replace_rtx for DEBUG_INSNs.
5046 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
5048 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
5049 load type reservations.
5051 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
5054 * config/pa/constraints.md: Revert 2015-02-13 change. Use
5055 define_constraint for "Q" and "T" constraints.
5057 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
5059 Tweak the pipeline model for Exynos M1
5061 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
5064 2016-03-17 David Malcolm <dmalcolm@redhat.com>
5067 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
5068 where one or both locations aren't within a line_map.
5070 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
5073 * opts.c (finish_options): Don't set flag_pie to the default if
5074 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
5077 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
5079 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
5080 true as ALL_REGS argument to replace_rtx.
5082 2016-03-17 Richard Biener <rguenther@suse.de>
5085 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
5088 2016-03-17 Jakub Jelinek <jakub@redhat.com>
5091 * rtl.h (replace_rtx): Add ALL_REGS argument.
5092 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
5093 equality and assert mode is the same, instead of just rtx pointer
5095 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
5096 true as ALL_REGS argument to replace_rtx.
5098 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
5100 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
5101 for boolean vector with vector mode only.
5102 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
5104 2016-03-17 Nick Clifton <nickc@redhat.com>
5107 * config/rx/rx.c (rx_print_integer): Print negative constants in
5110 2016-03-17 Jakub Jelinek <jakub@redhat.com>
5113 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
5115 2016-03-16 Richard Henderson <rth@redhat.com>
5116 Richard Biener <rguenth@suse.de>
5121 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
5122 first operand as is_gimple_condexpr.
5127 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
5128 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
5129 Do not gimplify the result.
5130 (do_unop): Adjust call to tree_vec_extract.
5131 (do_binop): Likewise.
5132 (do_compare): Likewise.
5133 (do_plus_minus): Likewise.
5134 (do_negate): Likewise.
5135 (expand_vector_condition): Likewise.
5136 (do_cond): Likewise.
5138 2016-03-16 Richard Henderson <rth@redhat.com>
5141 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
5142 (aarch64_classify_address): Use it.
5143 (aarch64_legitimize_address): Force all subexpressions of PLUS
5144 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
5146 2016-03-16 Jakub Jelinek <jakub@redhat.com>
5147 Richard Biener <rguenth@suse.de>
5150 * rtlanal.c (replace_rtx): For REG, if from is a REG,
5151 return to even if only REGNO is equal, and assert
5154 2016-03-11 Jeff Law <law@redhat.com>
5156 PR rtl-optimization/70224
5157 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
5159 2016-03-16 Richard Henderson <rth@redhat.com>
5162 * function.h (struct function): Add has_forced_label_in_static.
5163 * gimplify.c (force_labels_r): Set it.
5164 * lto-streamer-in.c (input_struct_function_base): Read it.
5165 * lto-streamer-out.c (output_struct_function_base): Write it.
5166 * tree-inline.c (has_label_address_in_static_1): Remove.
5167 (copy_forbidden): Remove fndecl parameter; test
5168 has_forced_label_in_static.
5169 (inline_forbidden_p): Update call to copy_forbidden.
5170 (tree_versionable_function_p): Likewise.
5171 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
5172 (chkp_versioning): Likewise.
5173 * tree-inline.h (copy_forbidden): Update decl.
5175 2016-03-16 Marek Polacek <polacek@redhat.com>
5178 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
5179 function being thunked if the result type doesn't have fixed size.
5180 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
5181 doesn't have fixed size.
5183 2016-03-16 Bin Cheng <bin.cheng@arm.com>
5185 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
5186 reporting malformed loop nest.
5188 2016-03-16 Tom de Vries <tom@codesourcery.com>
5191 * ipa-devirt.c (possible_polymorphic_call_targets): Move
5192 nodes.length () == 1 test to before first nodes[0] access.
5194 2016-03-16 Tom de Vries <tom@codesourcery.com>
5196 PR tree-optimization/68715
5197 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
5200 2016-03-16 Tom de Vries <tom@codesourcery.com>
5202 PR tree-optimization/68809
5203 * graphite-scop-detection.c (same_close_phi_node): Test if result types
5206 2016-03-16 Carlos O'Donell <carlos@redhat.com>
5207 Sandra Loosemore <sandra@codesourcery.com>
5209 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
5210 on leaf attribute. Mention ELF interposition problems.
5212 2016-03-16 Alan Modra <amodra@gmail.com>
5214 PR rtl-optimization/69195
5215 PR rtl-optimization/47992
5216 * ira.c (indirect_jump_optimize): Ignore artificial defs.
5219 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
5222 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
5224 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5226 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
5228 2016-03-15 Jakub Jelinek <jakub@redhat.com>
5230 PR rtl-optimization/70222
5231 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
5232 optimization if mode is different from result_mode, queue up masking
5233 of the result in outer_op. Formatting fix.
5236 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
5239 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
5241 PR rtl-optimization/69032
5242 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
5243 looping backwards over basic block insns.
5245 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
5248 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
5249 to non-speculative when propagating trap bits.
5251 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
5253 PR rtl-optimization/63384
5254 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
5257 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
5260 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
5261 factored out from ...
5262 (sched_analyze_insn): ... here.
5263 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
5264 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
5265 get_implicit_reg_pending_clobbers in it.
5266 (setup_id_reg_sets): Use setup_id_implicit_regs.
5267 (deps_init_id): Ditto.
5269 2016-03-15 Tom de Vries <tom@codesourcery.com>
5272 * cgraph.c (cgraph_node::get_body): Save, reset and restore
5274 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
5275 execute_function_dump.
5276 (execute_one_pass): Don't dump function if it will be dumped after ipa
5279 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
5281 * genrecog.c (match_pattern_2): If pred is NULL don't call
5282 safe_predicate_mode on it.
5284 2016-03-14 Jakub Jelinek <jakub@redhat.com>
5287 * lra-constraints.c (delete_move_and_clobber): Change assertion
5288 to also allow dregno == 0.
5290 2016-03-14 Richard Henderson <rth@redhat.com>
5293 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
5294 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
5295 (reassociate_bb): Use optimize_vec_cond_expr; avoid
5296 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
5299 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
5302 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
5304 (lra_create_live_ranges_1): initialize hard register biggest_mode to
5306 * lra-constraints.c (split_reg): For hard regs, try to find the
5307 biggest single-register mode used in the function.
5309 2016-03-14 Richard Biener <rguenther@suse.de>
5311 PR tree-optimization/56365
5312 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
5313 constants to compare against.
5315 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
5318 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
5319 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
5320 (define_split for the GPR case): Use int_reg_operand instead of
5321 gpc_reg_operand for the output.
5323 2016-03-14 Tom de Vries <tom@codesourcery.com>
5325 PR tree-optimization/70045
5326 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
5327 create_empty_if_region_on_edge argument.
5329 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
5331 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
5332 (STACK_CHECK_PROTECT): Likewise.
5333 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
5334 (STACK_CHECK_PROTECT): Likewise.
5335 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
5336 (STACK_CHECK_PROTECT): Likewise.
5337 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
5338 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5339 (STACK_CHECK_PROTECT): Likewise.
5341 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
5343 PR rtl-optimization/69307
5344 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
5345 registers in modes that span more than one register.
5347 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
5350 * lra-constraints.c (delete_move_and_clobber): New.
5351 (remove_inheritance_pseudos): Use it.
5353 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
5356 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
5357 the libcall is LCT_THROW.
5358 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
5359 for the checking routine.
5361 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
5364 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
5365 optimization if we have direct move.
5366 (roundu32<mode>2_fprs): Likewise.
5368 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
5371 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
5373 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
5374 Arguments swapped. All callers changed. Take reg_renumber into
5375 account, and Calculate and compare register ranges for hard regs.
5377 2016-03-11 Jeff Law <law@redhat.com>
5379 PR tree-optimization/70190
5380 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
5381 Handle cases where we can not extract the taken edge, even though we
5382 found a constant value.
5384 PR tree-optimization/64058
5385 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
5386 (num_coalesce_pairs): Move up earlier in file.
5387 (find_coalesce_pair): Initialize the INDEX field for each pair
5389 (compare_pairs): No longer sort on the elements in each pair.
5390 Instead break ties with the index of the coalesce pair.
5392 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5395 * config/aarch64/aarch64-protos.h
5396 (aarch64_save_restore_target_globals): New prototype.
5397 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
5398 Call the above when popping pragma.
5399 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
5401 (aarch64_set_current_function): Rewrite using the above.
5403 2016-03-11 Jakub Jelinek <jakub@redhat.com>
5405 PR tree-optimization/70177
5406 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
5407 (extract_ops_from_tree): ... this. In the 2 argument
5408 overload remove _1 suffix.
5409 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
5410 (extract_ops_from_tree): ... this.
5411 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
5413 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
5414 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
5415 extract_ops_from_tree instead of 2 operand one.
5417 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
5419 PR tree-optimization/70013
5420 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
5421 for constant-pool entries.
5423 2016-03-11 Jakub Jelinek <jakub@redhat.com>
5425 PR rtl-optimization/70174
5426 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
5427 followed by gen_lowpart on force_reg instead of just gen_lowpart.
5429 PR tree-optimization/70169
5430 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
5431 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
5434 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
5435 Jakub Jelinek <jakub@redhat.com>
5438 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
5439 of uninitialized values.
5441 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5443 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
5445 ("*trunctddd2"): New pattern definition.
5446 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
5449 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5451 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
5452 definitions for BFP and DFP rounding modes.
5453 ("fixuns_truncdddi2", "fixuns_trunctddi2")
5454 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
5455 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
5456 ("fix_trunctf<mode>2"): Use the new constants instead of magic
5459 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5461 * config/s390/constraints.md: Adjust comment.
5462 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
5463 s390_decompose_addrstyle_without_index.
5464 * config/s390/predicates.md (shift_count_or_setmem_operand):
5465 Rename to setmem_operand.
5466 * config/s390/s390-protos.h
5467 (s390_decompose_shift_count): Rename to
5468 s390_decompose_addrstyle_without_index.
5469 * config/s390/s390.c (s390_decompose_shift_count)
5470 (s390_mem_constraint, print_shift_count_operand)
5471 (print_operand_address, print_operand): Rename
5472 s390_decompose_shift_count to
5473 s390_decompose_addrstyle_without_index and rename
5474 print_shift_count_operand to print_addrstyle_operand troughout the
5476 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
5477 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
5478 Rename shift_count_or_setmem_operand to setmem_operand.
5479 * config/s390/vx-builtins.md ("vec_insert<mode>")
5480 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
5483 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5486 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
5487 Handle overlapping retval and newval.
5489 2016-03-10 Nick Clifton <nickc@redhat.com>
5492 * config/aarch64/aarch64.c
5493 (aarch64_override_options_after_change_1): When forcing
5494 flag_omit_frame_pointer to be true, use a special value that can
5495 be detected if this function is called again, thus preventing
5496 flag_omit_leaf_frame_pointer from being forced to be false.
5498 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5500 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
5501 Set x_flag_omit_leaf_frame_pointer when handling
5502 -momit-leaf-frame-pointer.
5504 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
5507 * cgraph.c (cgraph_node::dump): Dump split_part and
5508 indirect_call_target.
5509 * cgraph.h (cgraph_node): Add indirect_call_target flag.
5510 * ipa.c (has_addr_references_p): Cleanup.
5511 (is_indirect_call_target_p): New.
5512 (walk_polymorphic_call_targets): Do not mark virtuals that may be
5513 called indirectly as local.
5514 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
5516 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
5519 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
5520 on cxa_pure_virtual.
5522 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
5525 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
5527 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
5530 * tree.c (need_assembler_name_p): Only record main variant type names.
5532 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
5535 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
5536 Always define to 0 or 1.
5537 (TARGET_FIX_ERR_A53_843419): New macro.
5538 * config/aarch64/aarch64-elf-raw.h
5539 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
5540 * config/aarch64/aarch64-linux.h: Likewise.
5541 * config/aarch64/aarch64.c
5542 (aarch64_override_options_after_change_1): Do not default
5543 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
5545 (aarch64_attributes): Handle fix-cortex-a53-843419.
5546 (aarch64_can_inline_p): Likewise.
5547 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
5549 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
5550 Jakub Jelinek <jakub@redhat.com>
5552 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
5553 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
5554 DECL_COMMONS if flag_unconstrained_commons is set.
5555 * tree-dfa.c (get_ref_base_and_extent): Likewise.
5556 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
5557 (funconstrained-commons): Document.
5559 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
5561 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
5562 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
5564 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
5566 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
5567 has a proper number of elements.
5569 2016-03-10 Alan Modra <amodra@gmail.com>
5571 PR rtl-optimization/69195
5572 PR rtl-optimization/47992
5573 * ira.c (recorded_label_ref): Delete.
5574 (update_equiv_regs): Return void.
5575 (indirect_jump_optimize): New function.
5576 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
5577 before regstat_compute_ri. Don't rebuild_jump_labels here.
5578 Delete update_regstat.
5580 2016-03-10 Richard Biener <rguenther@suse.de>
5582 PR tree-optimization/70128
5583 * tree-ssa-structalias.c (set_uids_in_ptset): Set
5584 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
5586 2016-03-09 Jakub Jelinek <jakub@redhat.com>
5588 PR tree-optimization/70152
5589 * tree-sra.c (replace_removed_params_ssa_names): Copy over
5590 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
5593 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
5594 instead of gen_sse2_loadlpd.
5595 * config/i386/sse.md (*vec_concatv2df): Rename to...
5596 (vec_concatv2df): ... this.
5598 PR tree-optimization/70127
5599 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
5601 2016-03-09 David Malcolm <dmalcolm@redhat.com>
5605 * diagnostic-show-locus.c (compatible_locations_p): New function.
5606 (layout::layout): Sanitize ranges using compatible_locations_p.
5608 2016-03-09 David Malcolm <dmalcolm@redhat.com>
5612 * diagnostic-show-locus.c (layout_range::layout_range): Replace
5613 location_range param with three const expanded_locations * and a
5615 (layout::layout): Replace call to
5616 rich_location::lazily_expand_location with get_expanded_location.
5617 Extract the range and perform location expansion here, passing
5618 the results to the layout_range ctor.
5619 * diagnostic.c (source_range::debug): Delete.
5620 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
5621 of rich_location::get_expanded_location.
5622 * gcc-rich-location.c (get_range_for_expr): Delete.
5623 (gcc_rich_location::add_expr): Reimplement to avoid the
5624 rich_location::add_range overload that took a location_range,
5625 passing a location_t instead.
5627 2016-03-09 Richard Biener <rguenther@suse.de>
5628 Jakub Jelinek <jakub@redhat.com>
5630 PR tree-optimization/70138
5631 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
5632 Also skip vect_double_reduction_def.
5634 2016-03-09 Jakub Jelinek <jakub@redhat.com>
5637 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
5638 if the operand is "m".
5640 2016-03-09 Nathan Sidwell <nathan@acm.org>
5642 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
5644 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
5646 * config/i386/i386.c (processor_target_table): Fix cost table
5647 intialization order for znver1.
5649 2016-03-08 Jakub Jelinek <jakub@redhat.com>
5651 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
5652 - becuase -> because.
5653 * ipa-reference.c (ignore_module_statics): Likewise.
5654 * cgraph.c (cgraph_node::get_body): Likewise.
5655 * ipa-inline.c (early_inliner): Likewise.
5656 * ipa-devirt.c (types_same_for_odr): Likewise.
5657 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
5658 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
5660 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5662 * tree-ssa-math-opts.c: Fix typo in comment.
5664 2016-03-08 Jakub Jelinek <jakub@redhat.com>
5667 * config/i386/i386.c (scalar_chain::make_vector_copies,
5668 scalar_chain::convert_reg): Call end_sequence in between
5669 get_insns and emit_conversion_insns rather than after both
5672 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
5675 * config/i386/i386.h (machine_function): Add
5676 pc_thunk_call_expanded flag.
5677 (ix86_pc_thunk_call_expanded): New define.
5678 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
5679 (*set_got): Rename insn pattern from set_got.
5680 (*set_got_labelled): Rename inst pattern from set_got_labelled.
5681 * config/i386/i386.c (ix86_compute_frame_layout): Use
5682 ix86_pc_thunk_call_expanded to prevent red-zone.
5684 2016-03-07 Martin Jambor <mjambor@suse.cz>
5686 * hsa.h (hsa_get_ctor_statements): Declare.
5687 (hsa_get_dtor_statements): Likewise.
5688 (hsa_get_kernel_dispatch_type): Likewise.
5689 * hsa.c (hsa_get_ctor_statements): New function.
5690 (hsa_get_dtor_statements): Likewise.
5691 (hsa_get_kernel_dispatch_type): Likewise.
5692 * hsa-brig.c (hsa_cdtor_statements): Removed.
5693 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
5694 hsa_get_dtor_statements.
5695 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
5696 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
5698 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
5700 * config/arm/arm-cores.def (cortex-r8): New.
5701 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
5702 * config/arm/arm-tune.md: Likewise.
5703 * gcc/doc/invoke.texi: Add cortex-r8 to list of cpu values.
5705 2016-03-07 Martin Sebor <msebor@redhat.com>
5707 PR rtl-optimization/19705
5708 * doc/invoke.texi (Options That Control Optimization): Clarify
5709 -fno-branch-count-reg.
5711 2016-02-26 Richard Biener <rguenther@suse.de>
5712 Jeff Law <law@redhat.com>
5714 PR tree-optimization/69740
5715 * cfghooks.c (remove_edge): Request loop fixups if we delete
5716 an edge that might turn an irreducible loop into a natural
5718 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
5719 Move after definition of loops_state_clear.
5721 2016-03-07 Bin Cheng <bin.cheng@arm.com>
5723 PR rtl-optimization/69052
5724 * rtlanal.c (commutative_operand_precedence): Set higher precedence
5727 2016-03-07 Tom de Vries <tom@codesourcery.com>
5729 PR tree-optimization/70116
5730 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
5731 is_tm_ending stmts and ubsan/asan internal functions.
5732 (find_duplicate): Use it. Don't test is_tm_ending here.
5734 2016-03-07 Richard Biener <rguenther@suse.de>
5736 PR tree-optimization/70115
5737 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
5738 (propagate_constants_for_unrolling): Use replace_uses_by.
5740 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
5743 * omp-low.c (struct oacc_loop): Add ifns.
5744 (new_oacc_loop_raw): Initialize it.
5745 (finish_oacc_loop): Clear mask & flags if no ifns.
5746 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
5747 (oacc_loop_xform_loop): Add ifns arg & adjust.
5748 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
5750 2016-03-07 Richard Henderson <rth@redhat.com>
5753 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
5754 (insert_value_copy_on_edge): Likewise.
5756 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5758 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
5760 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5763 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
5765 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
5767 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
5769 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
5771 Fix sseimul type attribute.
5772 * config/i386/znver1.md
5773 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
5774 znver1_sseimul_avx256_load) : Fix the type attribute.
5775 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
5776 pipe usage and latency.
5778 2016-03-05 Jakub Jelinek <jakub@redhat.com>
5781 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
5782 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
5785 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
5788 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
5790 PR rtl-optimization/69941
5791 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
5792 the reg share its mode.
5794 2016-03-04 Jeff Law <law@redhat.com>
5796 PR tree-optimization/69196
5797 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
5798 If the both SSA_NAMEs are anonymous, then consider them unassociated
5799 and include the PHI in the statement count.
5801 2016-03-05 Tom de Vries <tom@codesourcery.com>
5803 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
5804 construct in oacc routine. Check for oacc region in oacc routine.
5806 2016-03-04 Jakub Jelinek <jakub@redhat.com>
5809 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
5810 2016-02-22 changes, instead don't recurse if RECUR is already true.
5811 Don't change *dynamic_check if RECUR. Adjust recursive caller
5812 to pass true to the new argument.
5813 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
5816 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
5817 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
5819 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
5821 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
5823 PR rtl-optimization/57676
5824 * lra-assigns.c (lra_assign): Guard test for maximum iterations
5827 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
5829 * tree-vect-patterns.c (search_type_for_mask): Handle
5830 comparison of booleans.
5832 2016-03-04 Jakub Jelinek <jakub@redhat.com>
5834 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
5838 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
5839 all other ops that have dw_val_class_die_ref operands,
5840 and DW_OP_GNU_entry_value.
5842 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5844 PR rtl-optimization/69904
5845 * config/arm/arm.c (arm_cannot_copy_insn_p):
5846 Return true for load-exclusive instructions.
5848 2016-03-03 Jakub Jelinek <jakub@redhat.com>
5851 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
5852 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
5853 the pattern no matter if it is used just by non-pattern, pattern
5855 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
5856 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
5857 oprnd1 def_stmt is in pattern, don't look through it.
5859 2016-03-03 Marek Polacek <polacek@redhat.com>
5862 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
5864 2016-03-03 Martin Liska <mliska@suse.cz>
5866 PR tree-optimization/70043
5867 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
5868 previous statement if we see a debug statement.
5870 2016-03-03 Richard Biener <rguenther@suse.de>
5872 PR tree-optimization/55936
5873 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
5874 parameter and guard unsafe equivalence use.
5875 (vrp_evaluate_conditional_warnv_with_ops): Always use
5876 safe equivalences but not via the quadratic compare_names
5879 2016-03-03 Michael Collison <michael.collison@linaro.org>
5882 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
5883 for operand 1 to s_register_operand. Change predicate for operand
5884 2 to arm_not_immediate_operand.
5886 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
5888 * doc/tm.texi: Regenerated.
5890 2016-03-02 Richard Henderson <rth@redhat.com>
5893 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
5894 simplification when all args are positive non-fixed registers.
5896 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5898 * target.def (lra_p): Specify that new ports should use LRA.
5900 2016-03-02 Jakub Jelinek <jakub@redhat.com>
5903 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
5904 gimplify_type_sizes the type they refer to.
5905 (omp_notice_variable): Handle reference vars to VLAs.
5906 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
5907 reference to VLA decls in the second pass instead of first pass.
5909 2016-03-02 Tom de Vries <tom@codesourcery.com>
5911 PR tree-optimization/68659
5912 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
5913 new_expr == NULL_TREE.
5914 (get_new_name): Handle ADDR_EXPR.
5916 2016-03-02 Bin Cheng <bin.cheng@arm.com>
5918 PR rtl-optimization/69052
5919 * loop-invariant.c (canonicalize_address): New function.
5920 (inv_can_prop_to_addr_use): Check validity of address expression
5921 which is canonicalized by above function.
5923 2016-03-02 Alan Modra <amodra@gmail.com>
5926 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
5929 2016-03-02 Jakub Jelinek <jakub@redhat.com>
5932 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
5933 (*movhi_internal): Put mask moves from and to memory separately
5934 from moves from/to GPRs.
5936 2016-03-02 Richard Biener <rguenther@suse.de>
5938 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
5939 GENERIC expressions in GIMPLE.
5941 2016-03-02 Richard Biener <rguenther@suse.de>
5943 * config/i386/i386.c (type_natural_mode): Fix typo.
5945 2016-03-02 Nick Clifton <nickc@redhat.com>
5947 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
5949 2016-03-02 Richard Biener <rguenther@suse.de>
5950 Uros Bizjak <ubizjak@gmail.com>
5953 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
5955 2016-03-02 Richard Biener <rguenther@suse.de>
5958 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
5960 2016-03-02 Marek Polacek <polacek@redhat.com>
5963 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
5964 "is promoted to" warning.
5966 2016-03-01 DJ Delorie <dj@redhat.com>
5968 * config.gcc: Deprecate mep-*.
5970 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
5973 * lra-constraints.c (regno_val_use_in): New.
5974 (match_reload): Use it instead of regno_use_in.
5976 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
5978 PR rtl-optimization/70007
5979 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
5980 references present in REG_EQUAL notes attached to non-SET patterns.
5982 2016-03-01 Jeff Law <law@redhat.com>
5984 PR tree-optimization/69196
5985 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
5986 Appropriately clamp the number of statements to copy when the
5987 thread path does not traverse a loop backedge.
5989 PR tree-optimization/69196
5990 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
5991 Do count some PHIs in the thread path against the insn count. Decrease
5992 final statement count by one as the control statement in the last
5993 block will get removed. Remove special cased code for handling PHIs
5996 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
5999 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
6000 asm dialect alternatives to explicit GOTPCREL calls.
6002 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
6005 * ira.c (do_reload): Issue warning for generic stack checking here...
6006 * reload1.c (reload): ...instead of here and streamline it.
6008 2016-03-01 Nick Clifton <nickc@redhat.com>
6010 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
6012 2016-03-01 Richard Biener <rguenther@suse.de>
6014 PR tree-optimization/69983
6015 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
6016 types and fall back to operand_equal_p.
6018 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6021 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6023 * config/s390/constraints.md ("jm8"): New constraint.
6024 * config/s390/predicates.md ("const_int_8bitset_operand"): New
6026 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
6028 ("*setmem_long<setmem_and>"): New pattern.
6029 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
6031 ("*setmem_long_31z<setmem_and>"): New pattern.
6032 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
6033 New substitution rules with the required attributes.
6036 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6039 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6041 * gensupport.c (process_substs_on_one_elem): Split loop to
6042 complete mark_operands_used_in_match_dup on all expressions in the
6044 (adjust_operands_numbers): Inline into process_substs_on_one_elem
6045 and remove function.
6047 2016-03-01 Richard Biener <rguenther@suse.de>
6050 * fold-const.c (fold_indirect_ref_1): Fix range checking for
6051 vector BIT_FIELD_REF extract.
6053 2016-03-01 Richard Biener <rguenther@suse.de>
6055 PR tree-optimization/69994
6056 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
6058 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
6060 PR tree-optimization/69956
6061 * tree-vect-stmts.c (supportable_widening_operation): Support
6062 multi-step conversion of boolean vectors.
6063 (supportable_narrowing_operation): Likewise.
6065 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6067 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
6070 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6072 * config/s390/subst.md (DSI_VI): New mode iterator.
6073 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
6074 * config/s390/vector.md ("vec_set<mode>"): Move expander before
6075 the insn definition.
6076 ("*vec_set<mode>"): Change predicate and add alternative to
6077 support only either register or const_int operands as element
6079 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
6081 ("vec_extract<mode>"): New expander.
6082 ("*vec_extract<mode>"): New insn definition supporting reg and
6083 const_int element selectors.
6084 ("*vec_extract<mode>_plus"): New insn definition supporting
6085 reg+const_int element selectors.
6086 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
6087 following expander+insn definition.
6088 ("<vec_shifts_name><mode>3"): New expander.
6089 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
6091 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6093 * config/s390/s390.md ("*tabort_1"): Change predicate to
6094 nonmemory_operand. Add a second alternative to cover
6095 register as well as const int operands.
6096 ("*tabort_1_plus"): New pattern definition.
6098 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6100 * config/s390/s390.md ("*ashrdi3_cc_31")
6101 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
6102 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
6103 Merge insn definitions into ...
6104 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
6105 New pattern definition.
6106 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
6107 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
6108 ("*ashr<mode>3_and"): Merge insn definitions into ...
6109 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
6110 New pattern definition.
6111 * config/s390/subst.md ("addr_style_op_cc_subst")
6112 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
6113 substitutions patterns plus attributes.
6114 Add ashiftrt to SUBST iterator.
6116 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6118 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
6119 op2 to nonmemory_operand.
6120 ("*<shift>di3_31", "*<shift>di3_31_and"):
6121 Merge into single pattern definition ...
6122 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
6123 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
6124 pattern definition ...
6125 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
6126 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
6129 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6131 * config/s390/predicates.md (const_int_6bitset_operand): New
6133 * config/s390/s390.md: Include subst.md.
6134 ("rotl<mode>3"): New expander.
6135 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
6137 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
6138 * config/s390/subst.md: New file.
6140 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6142 * config/s390/s390.md ("op_type", "atype", "length" attributes):
6143 Remove RRR type. It doesn't really exist.
6144 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
6146 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
6147 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
6148 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
6149 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
6150 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
6151 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
6152 `enabled' attribute.
6154 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6156 * gensupport.c (process_substs_on_one_elem): Split loop to
6157 complete mark_operands_used_in_match_dup on all expressions in the
6159 (adjust_operands_numbers): Inline into process_substs_on_one_elem
6160 and remove function.
6162 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
6165 * config/sparc/sparc.c (NWORDS_UP): Rename to...
6166 (CEIL_NWORDS): ...this. Use CEIL macro.
6167 (compute_fp_layout): Adjust to above renaming.
6168 (function_arg_union_value): Likewise.
6169 (sparc_arg_partial_bytes): Likewise.
6170 (sparc_function_arg_advance): Likewise.
6172 2016-02-29 Jeff Law <law@redhat.com>
6174 PR tree-optimization/70005
6175 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
6176 where an object with a boolean range is compared against a value
6179 PR tree-optimization/69999
6180 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
6181 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
6184 2016-02-29 Richard Biener <rguenther@suse.de>
6186 PR tree-optimization/69994
6187 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
6188 (get_unary_op): Look through nop conversions.
6189 (ops_equal_values_p): New function, look for equality diregarding
6191 (eliminate_plus_minus_pair): Use ops_equal_values_p
6192 (repropagate_negates): Do not use get_unary_op here.
6194 2016-02-29 Martin Liska <mliska@suse.cz>
6196 * system.h: Poison ENABLE_CHECKING macro.
6198 2016-02-29 Martin Liska <mliska@suse.cz>
6200 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
6201 is presented in dump flags.
6202 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
6203 (hsa_regalloc): Likewise.
6205 2016-02-19 Richard Biener <rguenther@suse.de>
6207 PR tree-optimization/69980
6208 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
6209 permutation of those we need to keep.
6211 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
6214 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
6215 (NWORDS_UP): ...this
6216 (init_cumulative_args): Minor tweaks.
6217 (sparc_promote_function_mode): Likewise.
6218 (scan_record_type): Delete.
6219 (traverse_record_type): New function template.
6220 (classify_data_t): New structure type.
6221 (classify_registers): New inline function.
6222 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
6223 exhausted. Instantiate traverse_record_type on classify_registers and
6224 deal with the case of a structure passed in slot #15 with no FP field
6226 (assign_data_t): New structure type.
6227 (compute_int_layout): New static function.
6228 (compute_fp_layout): Likewise.
6229 (count_registers): New inline function.
6230 (assign_int_registers): New static function.
6231 (assign_fp_registers): Likewise.
6232 (assign_registers): New inline function.
6233 (function_arg_record_value_1): Delete.
6234 (function_arg_record_value_2): Likewise.
6235 (function_arg_record_value_3): Likewise.
6236 (function_arg_record_value): Adjust to above changes. Instantiate
6237 traverse_record_type on count_registers to first count the number of
6238 registers to be used and then on assign_registers to assign them.
6239 (function_arg_union_value): Adjust to above renaming.
6240 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
6241 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
6242 case of a structure passed in slot #15
6243 (sparc_function_arg_advance): Likewise.
6244 (function_arg_padding): Minor tweak.
6246 2016-02-29 Richard Biener <rguenther@suse.de>
6248 PR tree-optimization/69720
6249 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
6250 the adjustment_def path for possibly vectorized defs.
6251 (vect_create_epilog_for_reduction): Handle vectorized initial
6254 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
6256 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
6258 2016-02-27 Jeff Law <law@redhat.com>
6261 2016-02-26 Richard Biener <rguenther@suse.de>
6262 Jeff Law <law@redhat.com>
6264 PR tree-optimization/69740
6265 * cfghooks.c (remove_edge): Request loop fixups if we delete
6266 an edge that might turn an irreducible loop into a natural
6269 2016-02-27 Jakub Jelinek <jakub@redhat.com>
6271 PR rtl-optimization/69896
6272 * tree-vect-generic.c (get_compute_type): Avoid single element
6275 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
6277 Rename the AArch64 tuning option and related functions to enable the
6278 Newton series for the reciprocal square root to reflect its
6279 approximative characteristic.
6281 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
6282 function to "aarch64_emit_approx_rsqrt".
6283 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
6284 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
6285 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
6286 (xgene1_tunings): Likewise.
6287 (use_rsqrt_p): Likewise.
6288 (aarch64_emit_swrsqrt): Use new function name.
6289 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
6290 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
6291 text explaining this option.
6292 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
6294 2016-02-26 Jakub Jelinek <jakub@redhat.com>
6297 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
6298 complain about -mallow-movmisalign without -mvsx if
6299 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
6301 2016-02-26 Joel Sherrill <joel@rtems.org>
6303 * config.gcc: Add x86_64-*-rtems*.
6304 * gcc/config/i386/rtems-64.h: New file.
6306 2016-02-26 Joel Sherrill <joel@rtems.org>
6308 * config.gcc: Add aarch64-*-rtems*.
6309 * gcc/config/aarch64/rtems.h: New file.
6311 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
6314 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
6315 shift amount using %h. Add comment.
6317 2016-02-26 Richard Biener <rguenther@suse.de>
6318 Jeff Law <law@redhat.com>
6320 PR tree-optimization/69740
6321 * cfghooks.c (remove_edge): Request loop fixups if we delete
6322 an edge that might turn an irreducible loop into a natural
6325 2016-02-26 Martin Jambor <mjambor@suse.cz>
6328 * tree-sra.c (sra_modify_assign): Do not remove loads of
6329 uninitialized aggregates to SSA_NAMEs.
6331 2016-02-26 Richard Henderson <rth@redhat.com>
6334 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
6335 pseudo in case the target rtx matches the source of the left
6338 2016-02-26 Martin Jambor <mjambor@suse.cz>
6341 * hsa.h (hsa_type_packed_p): Declare.
6342 * hsa.c (hsa_type_packed_p): New function.
6343 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
6345 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
6346 * hsa-brig.c (emit_basic_insn): Likewise.
6348 2016-02-26 Martin Jambor <mjambor@suse.cz>
6351 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
6353 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
6355 2016-02-26 Martin Jambor <mjambor@suse.cz>
6357 * hsa.h (is_a_helper): New overload for hsa_op_immed for
6358 hsa_op_with_type operands.
6359 (hsa_unsigned_type_for_type): Declare.
6360 * hsa.c (hsa_unsigned_type_for_type): New function.
6361 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
6362 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
6363 the finalizer. Do not emit extra move.
6365 2016-02-26 Martin Jambor <mjambor@suse.cz>
6367 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
6368 atomic operations in private segment.
6370 2016-02-26 Martin Jambor <mjambor@suse.cz>
6372 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
6373 statements to wi->info. Also disallow omp simd constructs.
6374 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
6375 for not gridifying. Dump special string for omp_for.
6377 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6380 * config/aarch64/aarch64.c (aarch64_set_current_function):
6381 Save/restore target globals when switching to
6382 target_option_default_node.
6384 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6387 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
6388 Return 0 if !SHIFT_COUNT_TRUNCATED.
6390 2016-02-26 Jakub Jelinek <jakub@redhat.com>
6391 Eric Botcazou <ebotcazou@adacore.com>
6393 PR rtl-optimization/69891
6394 * dse.c (scan_insn): If we can't figure out memset arguments
6395 or they are non-constant, call clear_rhs_from_active_local_stores.
6397 2016-02-26 Martin Liska <mliska@suse.cz>
6399 * doc/extend.texi: Mention clog10, clog10f an clog10l
6400 in Builtins section.
6402 2016-02-26 Martin Liska <mliska@suse.cz>
6404 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
6406 (resolve_args_picking_1): Likewise.
6407 * dwarf2out.h (struct GTY): Likewise.
6409 2016-02-26 Martin Liska <mliska@suse.cz>
6411 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
6413 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
6415 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
6416 Martin Liska <mliska@suse.cz>
6418 * doc/install.texi: Mention --enable-valgrind-annotations.
6420 2016-02-26 Richard Biener <rguenther@suse.de>
6422 PR tree-optimization/69551
6423 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
6424 looking through aliases adjust DECL_PT_UID to refer to the
6425 ultimate alias target.
6427 2016-02-25 Martin Liska <mliska@suse.cz>
6430 * alloc-pool.c (after_memory_report): New variable.
6431 * alloc-pool.h (base_pool_allocator ::release): Do not use
6432 the infrastructure if after_memory_report.
6433 * toplev.c (toplev::main): Mark after memory report.
6435 2016-02-25 Richard Biener <rguenther@suse.de>
6437 PR tree-optimization/48795
6438 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
6440 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
6443 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
6444 offloading is enabled and -fopenacc or -fopenmp is specified.
6445 (CRTOFFLOADEND): Likewise.
6446 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
6447 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
6448 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
6449 (offload_objects_file_name): New static var.
6450 (tool_cleanup): Remove offload_objects_file_name file.
6451 (find_offloadbeginend): Replace with ...
6452 (find_crtoffloadtable): ... this.
6453 (run_gcc): Remove offload_argc and offload_argv.
6454 Get offload_objects_file_name from -foffload-objects=... option.
6455 Read names of object files with offload from this file, pass them to
6456 compile_images_for_offload_targets. Don't call find_offloadbeginend and
6457 don't pass offloadbegin and offloadend to the linker. Don't pass
6458 offload non-LTO files to the linker, because now they're not claimed.
6460 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
6463 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
6464 on builtin_unreachable.
6466 2016-02-25 Jakub Jelinek <jakub@redhat.com>
6468 PR rtl-optimization/69896
6469 * regcprop.c: Include cfgrtl.h.
6470 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
6471 than remembered mode, either delete it (if noop_move_p), or
6472 treat like copy_p but not noop_p instruction.
6474 2016-02-24 Jakub Jelinek <jakub@redhat.com>
6477 * dwarf2out.c (gen_variable_die): Work around buggy LTO
6478 - allow NULL decl for Fortran DW_TAG_common_block variables.
6480 2016-02-24 Jason Merrill <jason@redhat.com>
6482 * common.opt (flifetime-dse): Add -flifetime-dse=1.
6484 2016-02-24 Richard Biener <rguenther@suse.de>
6485 Jakub Jelinek <jakub@redhat.com>
6488 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
6489 conditionally executed ops to well-defined overflow behavior.
6491 2016-02-24 Jakub Jelinek <jakub@redhat.com>
6494 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
6497 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6499 PR rtl-optimization/69886
6500 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
6501 argument. Use it when checking validity of set instructions.
6502 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
6503 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
6505 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
6506 * store-motion.c (find_moveable_store): Update
6507 can_assign_to_reg_without_clobbers_p callsite.
6509 2016-02-24 Richard Biener <rguenther@suse.de>
6512 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
6514 (record_nonwrapping_iv): Do not fall back to the low/high bound
6515 for non-constant IV bases if the stmt is not always executed.
6517 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6519 * config/arm/arm-cores.def (cortex-a32): New entry.
6520 * config/arm/arm-tables.opt: Regenerate.
6521 * config/arm/arm-tune.md: Regenerate.
6522 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
6523 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
6524 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
6525 for -mcpu and -mtune.
6527 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6530 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
6531 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
6532 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
6533 (atomic_loaddi_1): Delete.
6534 (atomic_loaddi): Rewrite expander using the above changes.
6536 2016-02-24 Jakub Jelinek <jakub@redhat.com>
6539 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
6542 2016-02-24 Jakub Jelinek <jakub@redhat.com>
6543 Richard Biener <rguenth@suse.de>
6546 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
6547 set_mem_attributes if tem is SSA_NAME which got expanded
6550 2016-02-24 Richard Biener <rguenther@suse.de>
6552 PR tree-optimization/69907
6553 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
6554 end of permutations for BB vectorization.
6556 2016-02-24 Christian Bruel <christian.bruel@st.com>
6558 * config/arm/arm-c.c (arm_option_override): Initialize
6559 target_option_current_node.
6560 * config/arm/arm.c (arm_pragma_target_parse): Replace
6561 build_target_option_node call by target_option_current_node.
6562 Set target_option_current_node.
6565 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
6568 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
6569 define_insn_and_split to define_insn.
6570 (zero_extendqi<mode>2_dot2): Same.
6571 (extendqi<mode>2_dot): Same.
6572 (extendqi<mode>2_dot2): Same.
6574 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
6576 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
6577 and add bypass for AES{D,E} and AESMC pairs.
6578 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
6581 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
6583 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
6584 series for reciprocal square root in Exynos M1.
6586 2016-02-23 Martin Sebor <msebor@redhat.com>
6589 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
6590 __builtin_alloca_with_align.
6592 2016-02-23 Richard Henderson <rth@redhat.com>
6594 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
6595 (ix86_register_pragmas): Remove __seg_tls.
6596 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
6597 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
6598 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
6599 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
6600 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
6601 * doc/extend.texi (__seg_tls): Remove item.
6603 2016-02-23 Richard Biener <rguenther@suse.de>
6605 * alloc-pool.h (struct allocation_object): Make id member
6606 conditional on CHECKING_P again.
6607 (get_instance): Adjust.
6608 (base_pool_allocator): Likewise.
6610 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
6612 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
6613 (parallelize_loops): In OpenACC kernels mode, set n_threads to
6615 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
6617 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
6619 2016-02-23 Richard Biener <rguenther@suse.de>
6621 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
6622 * bitmap.h (struct bitmap_usage): Likewise.
6623 (bitmap_move): Declare.
6624 * bitmap.c (register_overhead): Take size_t argument.
6625 (bitmap_move): New function.
6626 * df-problems.c (df_rd_transfer_function): Use bitmap_move
6627 to properly account overhead.
6628 * tree.c (free_node): Use tree_size.
6630 2016-02-23 Jakub Jelinek <jakub@redhat.com>
6633 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
6634 when inverting comparison.
6637 * common.opt (Wunreachable-code): Add Warning flag.
6639 2016-02-23 Mark Wielaard <mjw@redhat.com>
6640 Jakub Jelinek <jakub@redhat.com>
6643 * cgraphunit.c (check_global_declaration): Check main_input_filename
6644 and DECL_SOURCE_FILE are not NULL.
6646 2016-02-23 Martin Jambor <mjambor@suse.cz>
6648 PR tree-optimization/69666
6649 * tree-sra.c (sra_modify_assign): Do not attempt to create
6650 default_def replacements for unscalarizable regions.
6652 2016-02-20 Mark Wielaard <mjw@redhat.com>
6655 * cgraphunit.c (check_global_declaration): Check level of
6656 warn_unused_const_variable and main_input_filename.
6657 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
6658 (-Wunused-variable): For C implies -Wunused-const-variable=1.
6659 (-Wunused-const-variable): Explain levels 1 and 2.
6661 2016-02-22 Jakub Jelinek <jakub@redhat.com>
6664 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
6665 identical arguments. Formatting and spelling fixes.
6668 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
6673 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
6674 and m68k-devices.def.
6675 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
6676 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
6678 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
6680 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
6681 and HImode registers.
6683 2016-02-22 Richard Biener <rguenther@suse.de>
6685 PR tree-optimization/69882
6686 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
6687 preserve permutations present because of gaps.
6688 (vect_supported_load_permutation_p): Always continue checking
6689 permutations after vect_attempt_slp_rearrange_stmts.
6691 2016-02-22 Bin Cheng <bin.cheng@arm.com>
6693 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
6694 min_profitable_estimate, rather than min_profitable_iters.
6696 2016-02-22 Jakub Jelinek <jakub@redhat.com>
6699 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
6700 SImode for last match_operand.
6702 2016-02-22 Martin Liska <mliska@suse.cz>
6704 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
6705 return bitsize - 1 as the return value.
6707 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
6711 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
6712 Handle negative shift counts.
6713 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
6714 force_reg on the shift constant.
6715 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
6716 (lshrsi3_d): Handle negative shift counts.
6718 2016-02-22 Richard Biener <rguenther@suse.de>
6719 Tom de Vries <tom@codesourcery.com>
6721 * graph.c: Include dumpfile.h.
6722 (print_graph_cfg): Split into three overloads.
6723 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
6725 2016-02-22 Tom de Vries <tom@codesourcery.com>
6727 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
6730 2016-02-22 Richard Biener <rguenther@suse.de>
6733 * ipa-inline-transform.c (inline_call): When not updating
6734 overall summaries adjust self size by the growth estimate.
6735 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
6736 hash-set, do not update overall summaries here. Renamed from ...
6737 (inline_to_all_callers): ... this which is now wrapping the
6738 above and performing delayed overall summary update.
6739 (early_inline_small_functions): Delay updating of the overall
6742 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
6744 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
6747 2016-02-19 Jakub Jelinek <jakub@redhat.com>
6750 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
6751 :%* in %:gt() argument.
6752 (greater_than_spec_func): Adjust for expecting only numbers,
6753 if there are more than two numbers, compare the last two.
6755 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
6757 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
6758 -Wnarrowing with -std.
6760 2016-02-19 Jakub Jelinek <jakub@redhat.com>
6763 * expr.c (store_field): Don't use bit-field path if exp is
6764 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
6765 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
6766 and the assignment can be performed by bitwise copy. Formatting
6770 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
6771 call copy_reg_eh_region_note_forward on before and/or after sequences
6772 and remove note from insn if it no longer can throw.
6775 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
6778 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6780 * config/s390/vector.md: Add missing commutative operand markers
6781 to the patterns which qualify for one.
6782 * config/s390/vx-builtins.md: Likewise.
6784 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6786 * config/s390/vector.md (VI, VI_QHS): Add single element vector
6787 types to mode iterators.
6788 (vec_double): ... and mode attribute.
6789 * config/s390/vx-builtins.md (non_vec_int): Likewise.
6791 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6793 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
6794 Change the predicate of op2 from nonimmediate to general and let
6795 reload fix it if necessary.
6797 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6799 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
6801 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6803 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
6806 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6808 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
6809 * config/s390/s390.c (s390_expand_vec_movstr): New function.
6810 * config/s390/s390.md ("movstr<P:mode>"): Call
6811 s390_expand_vec_movstr.
6813 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6815 * config/s390/s390.md: Add missing output modifier for operand 1
6816 to print it as address properly.
6818 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6820 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
6821 * config/s390/2964.md: New file.
6822 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
6823 of insn grouping attributes depending on the CPU level.
6824 (s390_get_unit_mask): New function.
6825 (s390_sched_score): Remove the OOO from the scheduling macros.
6826 Add loop to calculate a score for the instruction mix.
6827 (s390_sched_reorder): Likewise plus improve debug output.
6828 (s390_sched_variable_issue): Rename macros as above. Calculate
6829 the unit distances after actually scheduling an insn. Improve
6831 (s390_sched_init): Clear last_scheduled_unit_distance array.
6832 * config/s390/s390.md: Include 2964.md.
6834 2016-02-18 Jakub Jelinek <jakub@redhat.com>
6837 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
6838 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
6839 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
6840 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
6841 *avx512f_<code>v8div16qi2_mask_1): New insns.
6843 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
6846 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
6849 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
6850 earlyclobber from target. Use wF constraint for fused memory
6852 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
6854 2016-02-18 Jakub Jelinek <jakub@redhat.com>
6855 Martin Liska <mliska@suse.cz>
6858 * cfgexpand.c (asan_sanitize_stack_p): New function.
6859 (partition_stack_vars): Use the function.
6860 (expand_stack_vars): Likewise.
6861 (defer_stack_allocation): Likewise.
6862 (expand_used_vars): Likewise.
6864 2016-02-18 Richard Biener <rguenther@suse.de>
6867 * fold-const.c (operand_equal_p): Properly compare offsets for
6868 IMAGPART_EXPR and ARRAY_REF.
6870 2016-02-18 Nick Clifton <nickc@redhat.com>
6874 * config/arm/arm.c (arm_option_override_internal): Disable
6875 interworking if the target does not support thumb instructions.
6876 (arm_reload_in_hi): Handle the case where a register to register
6877 move needs reloading because there is no simple pattern to handle
6879 (arm_reload_out_hi): Likewise.
6881 2016-02-18 Richard Biener <rguenther@suse.de>
6884 * match.pd: Don't use fold_binary or fold_unary for folding
6887 2016-02-17 Jakub Jelinek <jakub@redhat.com>
6890 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
6891 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
6892 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
6893 warn on gimple_no_warning_p statements.
6895 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
6897 * doc/extend.texi (C++ Attributes): Correct description of
6898 warn_unused type attribute.
6900 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6902 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
6903 correct instruction.
6905 2016-02-17 Richard Biener <rguenther@suse.de>
6907 PR rtl-optimization/69609
6908 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
6909 (find_traces_1_round): When ending a trace update cached priority
6911 (bb_to_key): Use cached priority when available.
6912 (copy_bb): Initialize cached priority.
6913 (reorder_basic_blocks_software_trace_cache): Likewise.
6915 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6918 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
6920 (aarch64_comparison_operator): Break overly long line into two.
6921 (aarch64_comparison_operation): Likewise.
6922 * config/aarch64/aarch64.md (cstorecc4): Use
6923 aarch64_comparison_operator_mode instead of
6924 aarch64_comparison_operator.
6925 (cstore<mode>4): Likewise.
6926 (aarch64_cstore<mode>): Likewise.
6927 (*cstoresi_insn_uxtw): Likewise.
6928 (cstore<mode>_neg): Likewise.
6929 (*cstoresi_neg_uxtw): Likewise.
6931 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6934 * config/arm/predicates.md (arm_comparison_operator_mode):
6936 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
6937 instead of arm_comparison_operator.
6938 (*mov_negscc): Likewise.
6939 (*mov_notscc): Likewise.
6940 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
6941 (*thumb2_mov_negscc): Likewise.
6942 (*thumb2_mov_negscc_strict_it): Likewise.
6943 (*thumb2_mov_notscc): Likewise.
6944 (*thumb2_mov_notscc_strict_it): Likewise.
6946 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
6948 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
6951 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
6953 * config/visium/visium.c (machine_libfunc_index): New enum.
6954 (machine_libfuncs): New structure.
6955 (visium_libfuncs): New static variable.
6956 (TARGET_INIT_LIBFUNCS): Define to...
6957 (visium_init_libfuncs): ...this. New function.
6958 (expand_block_move_4): Use the appropriate libfunc.
6959 (expand_block_move_2): Likewise.
6960 (expand_block_move_1): Likewise.
6961 (expand_block_set_4): Likewise.
6962 (expand_block_set_2): Likewise.
6963 (expand_block_set_1): Likewise.
6964 (visium_trampoline_init): Likewise.
6966 2016-02-17 Nick Clifton <nickc@redhat.com>
6968 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
6969 TI's devices.csv file as of March 2016.
6971 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
6974 * opts-global.c (handle_common_deferred_options): Introduce and
6975 initialize two global variables to remember command-line options
6976 specifying a stack-limiting register.
6977 * opts.h: Add extern declarations of the two new global variables.
6978 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
6979 variable based on the values of the two new global variables.
6981 2016-02-16 Jakub Jelinek <jakub@redhat.com>
6984 * common.opt (Wnonnull-compare): New warning.
6985 * doc/invoke.texi (-Wnonnull): Remove text about comparison
6986 of arguments against NULL.
6987 (-Wnonnull-compare): Document.
6988 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
6989 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
6990 * passes.def (pass_warn_nonnull_compare): Add.
6991 * gimple-ssa-nonnull-compare.c: New file.
6993 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
6995 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
6996 AARCH64_EXTRA_TUNE_RECIP_SQRT.
6998 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
7000 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
7001 reciprocal sqrt for -mlow-precision-recip-sqrt.
7003 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
7004 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7006 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
7007 always use lane loads to construct non-constant vectors.
7009 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
7011 * config/aarch64/aarch64.md
7012 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
7013 constraints for operand 3.
7014 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
7016 2016-02-16 Jakub Jelinek <jakub@redhat.com>
7017 Richard Biener <rguenther@suse.de>
7019 PR tree-optimization/69820
7020 * tree-vect-patterns.c (type_conversion_p): Return false if
7021 *orig_type is unsigned single precision or boolean.
7022 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
7025 2016-02-16 Jakub Jelinek <jakub@redhat.com>
7027 PR rtl-optimization/69764
7028 PR rtl-optimization/69771
7029 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
7030 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
7032 2016-02-16 Richard Biener <rguenther@suse.de>
7034 PR tree-optimization/69776
7035 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
7037 (indirect_refs_may_alias_p): Likewise.
7038 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
7039 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
7040 according to tbaa_p.
7041 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
7042 (optimize_stmt): For redundant store discovery do not allow tbaa.
7044 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
7046 PR tree-optimization/69714
7047 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
7048 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
7050 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
7052 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
7053 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
7054 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
7055 * config/arc/arc.c (arc_init): Check FPU options.
7056 (get_arc_condition_code): Handle new CC_FPU* modes.
7057 (arc_select_cc_mode): Likewise.
7058 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
7059 register pair only. Allow access for ARCv2 accumulator.
7060 (gen_compare_reg): Whenever we have FPU support use FPU compare
7062 (arc_reorg): Don't generate brcc insns when FPU compare
7063 instructions are involved.
7064 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
7065 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
7066 floating point emulation.
7067 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
7068 (REVERSE_CONDITION): Add new CC_FPU* modes.
7069 (TARGET_FP_SP_BASE): Define.
7070 (TARGET_FP_DP_BASE): Likewise.
7071 (TARGET_FP_SP_FUSED): Likewise.
7072 (TARGET_FP_DP_FUSED): Likewise.
7073 (TARGET_FP_SP_CONV): Likewise.
7074 (TARGET_FP_DP_CONV): Likewise.
7075 (TARGET_FP_SP_SQRT): Likewise.
7076 (TARGET_FP_DP_SQRT): Likewise.
7077 (TARGET_FP_DP_AX): Likewise.
7078 * config/arc/arc.md (ARCV2_ACC): New constant.
7079 (type): New fpu type attribute.
7080 (SDF): Conditional iterator.
7081 (cstore<mode>, cbranch<mode>): Change expand condition.
7082 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
7083 handles FPU/FPX cases as well.
7084 * config/arc/arc.opt (mfpu): New option.
7085 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
7087 (adddf3, muldf3, subdf3): Removed.
7088 * config/arc/predicates.md (proper_comparison_operator): Recognize
7090 * config/arc/fpu.md: New file.
7091 * doc/invoke.texi (ARC Options): Document mfpu option.
7093 2016-02-16 Richard Biener <rguenther@suse.de>
7095 PR rtl-optimization/69291
7096 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
7097 noce_operand_ok check.
7099 2016-02-16 Tom de Vries <tom@codesourcery.com>
7102 * omp-low.c (simd_clone_create): Remove call to
7103 symtab->call_cgraph_insertion_hooks.
7105 2016-02-16 Jakub Jelinek <jakub@redhat.com>
7107 PR tree-optimization/69802
7108 * tree-ssa-reassoc.c (update_range_test): If op is
7109 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
7110 op == 1 test of precision 1 integral op, otherwise handle
7111 that case as op itself. Fix up formatting.
7112 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
7115 2016-02-16 Richard Biener <rguenther@suse.de>
7117 PR tree-optimization/69586
7118 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
7119 types for conversion sources.
7121 2016-02-16 Richard Biener <rguenther@suse.de>
7124 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
7125 mask OEP_ADDRESS_OF.
7127 2016-02-16 Alan Modra <amodra@gmail.com>
7130 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
7131 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
7132 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
7134 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
7135 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
7136 (p8_fmrgow_<mode>): Likewise.
7137 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
7139 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
7140 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
7141 to use movdi_internal64. Remove op0_di.
7142 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
7144 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
7146 Add support for the FCCMP insn types
7148 * config/aarch64/aarch64.md (fccmp): Change insn type.
7150 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
7151 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
7152 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
7153 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
7154 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
7155 * config/arm/types.md (fccmps): Add new insn type.
7158 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
7160 * alias.c (get_alias_set): Fix a typo in comment.
7162 2016-02-15 Richard Biener <rguenther@suse.de>
7164 PR tree-optimization/69595
7165 * match.pd: Complete range test simplification to true.
7167 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
7169 PR rtl-optimization/69648
7170 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
7171 pic_offset_table_rtx.
7173 PR rtl-optimization/69752
7174 * ira.c (update_equiv_regs): When looking for more than a single SET,
7175 also take other side effects into account.
7177 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
7179 * config/s390/s390.c (s390_function_profiler): Add a new sequence
7180 for z900+ CPUs in 31-bit mode.
7182 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
7184 * common/config/s390/s390-common.c (s390_supports_split_stack):
7186 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
7187 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
7188 * config/s390/s390.c (struct machine_function): New field
7189 split_stack_varargs_pointer.
7190 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
7191 in s390_emit_prologue.
7192 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
7194 (morestack_ref): New global.
7195 (SPLIT_STACK_AVAILABLE): New macro.
7196 (s390_expand_split_stack_prologue): New function.
7197 (s390_live_on_entry): New function.
7198 (s390_va_start): Use split-stack vararg pointer if appropriate.
7199 (s390_asm_file_end): Emit the split-stack note sections.
7200 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
7201 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
7202 (UNSPECV_SPLIT_STACK_CALL): New unspec.
7203 (UNSPECV_SPLIT_STACK_DATA): New unspec.
7204 (split_stack_prologue): New expand.
7205 (split_stack_space_check): New expand.
7206 (split_stack_data): New insn.
7207 (split_stack_call): New expand.
7208 (split_stack_call_*): New insn.
7209 (split_stack_cond_call): New expand.
7210 (split_stack_cond_call_*): New insn.
7212 2016-02-15 Richard Biener <rguenther@suse.de>
7214 PR tree-optimization/69783
7215 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
7216 Add trivially correct cases.
7218 2016-02-15 Tom de Vries <tom@codesourcery.com>
7221 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
7223 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
7225 2016-02-15 Richard Biener <rguenther@suse.de>
7227 PR tree-optimization/69776
7228 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
7229 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
7230 indicate whether we can use TBAA to disambiguate against stores.
7231 Use alias-set zero if not.
7232 (visit_reference_op_store): Do not use TBAA when looking up
7234 * tree-ssa-pre.c (compute_avail): Use TBAA here.
7235 (eliminate_dom_walker::before_dom_children): But not when looking
7236 up redundant stores.
7238 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
7240 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
7242 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
7244 * config/i386/znver1.md
7245 (znver1_pop, znver1_pop_mem,
7246 znver1_load_imov_double_store,
7247 znver1_load_imov_direct_store,
7248 znver1_load_imov_direct_load,
7249 znver1_load_imov_double_load): Add new.
7250 (znver1_insn, znver1_insn_load): Add icmov type.
7252 znver1_sseavx_fma_load,
7254 znver1_avx256_fma_load): Fix pipe usage.
7256 2016-02-14 Alan Modra <amodra@gmail.com>
7259 * reloads.c (find_reloads_address_1): For pre/post-inc/dec
7260 with an invalid hard reg, reload just the reg not the entire
7261 pre/post-inc/dec address expression.
7263 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
7266 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
7267 fixed R1_REG scratch reg.
7268 (sibcall_value_pcrel_fdpic): Likewise.
7270 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
7274 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
7276 2016-02-12 Walter Lee <walt@tilera.com>
7278 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
7279 * config/tilegx/t-tilegx: Likewise.
7281 2016-02-12 David Malcolm <dmalcolm@redhat.com>
7284 * diagnostic-show-locus.c (struct line_span): New struct.
7285 (layout::get_first_line): Delete.
7286 (layout::get_last_line): Delete.
7287 (layout::get_num_line_spans): New member function.
7288 (layout::get_line_span): Likewise.
7289 (layout::print_heading_for_line_span_index_p): Likewise.
7290 (layout::get_expanded_location): Likewise.
7291 (layout::calculate_line_spans): Likewise.
7292 (layout::m_first_line): Delete.
7293 (layout::m_last_line): Delete.
7294 (layout::m_line_spans): New field.
7295 (layout::layout): Update comment. Replace m_first_line and
7296 m_last_line with m_line_spans, replacing their initialization
7297 with a call to calculate_line_spans.
7298 (diagnostic_show_locus): When printing source lines and
7299 annotations, rather than looping over a single span
7300 of lines, instead loop over each line_span within
7301 the layout, with an inner loop over the lines within them.
7302 Call the context's start_span callback when changing line spans.
7303 * diagnostic.c (diagnostic_initialize): Initialize start_span.
7304 (diagnostic_build_prefix): Break out the building of the location
7305 part of the string into...
7306 (diagnostic_get_location_text): ...this new function, rewriting
7307 it from nested ternary expressions to a sequence of "if"
7309 (default_diagnostic_start_span_fn): New function.
7310 * diagnostic.h (diagnostic_start_span_fn): New typedef.
7311 (diagnostic_context::start_span): New field.
7312 (default_diagnostic_start_span_fn): New prototype.
7314 2016-02-12 David Malcolm <dmalcolm@redhat.com>
7317 * gcc.c (driver::finalize): Fix cleanup of "specs".
7319 2016-02-12 David Malcolm <dmalcolm@redhat.com>
7323 * gcc.c (driver::driver): Initialize m_option_suggestions.
7324 (driver::~driver): Clean up m_option_suggestions.
7325 (suggest_option): Convert to...
7326 (driver::suggest_option): ...this, and split out into
7327 driver::build_option_suggestions and find_closest_string.
7328 (driver::build_option_suggestions): New function, from
7329 first half of suggest_option. Special-case
7330 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
7331 the sanitizer_opts array. For options of enum types, add the
7332 various enum values to the candidate strings.
7333 (driver::handle_unrecognized_options): Remove "const".
7334 * gcc.h (driver::handle_unrecognized_options): Likewise.
7335 (driver::build_option_suggestions): New decl.
7336 (driver::suggest_option): New decl.
7337 (driver::m_option_suggestions): New field.
7338 * opts-common.c (add_misspelling_candidates): New function.
7339 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
7340 and make non-static.
7341 * opts.h (sanitizer_opts): New array decl.
7342 (add_misspelling_candidates): New function decl.
7343 * spellcheck.c (find_closest_string): New function.
7344 * spellcheck.h (find_closest_string): New function decl.
7346 2016-02-12 Jakub Jelinek <jakub@redhat.com>
7348 PR rtl-optimization/69764
7349 PR rtl-optimization/69771
7350 * optabs.c (expand_binop_directly): For shift_optab_p, force
7351 convert_modes with VOIDmode if xop1 has VOIDmode.
7353 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
7356 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
7357 to correctly determine instrumentation thunks.
7359 2016-02-12 Jakub Jelinek <jakub@redhat.com>
7362 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
7363 type by reference, force lhs on the call.
7366 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
7367 Compute retval and retbnd early in all cases if split_part_return_p
7368 and return_bb is not EXIT. Remove all clobber stmts and reset
7369 all debug stmts that refer to SSA_NAMEs defined in split part,
7370 except if it is retval, in that case replace the old retval with the
7371 lhs of the call to the split part.
7373 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
7376 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
7379 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
7380 whose result is used in PHI.
7381 (maybe_optimize_range_tests): Likewise.
7382 (final_range_test_p): Likweise.
7384 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
7387 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
7388 whose result is used in PHI.
7389 (maybe_optimize_range_tests): Likewise.
7390 (final_range_test_p): Likweise.
7392 2016-02-12 Jakub Jelinek <jakub@redhat.com>
7394 * cgraph.c: Spelling fixes - behaviour -> behavior and
7395 neighbour -> neighbor.
7396 * target.def: Likewise.
7397 * sel-sched.c: Likewise.
7398 * config/mips/mips.c: Likewise.
7399 * config/arc/arc.md: Likewise.
7400 * config/arm/cortex-a57.md: Likewise.
7401 * config/arm/arm.c: Likewise.
7402 * config/arm/neon.md: Likewise.
7403 * config/arm/arm-c.c: Likewise.
7404 * config/vms/vms-c.c: Likewise.
7405 * config/s390/s390.c: Likewise.
7406 * config/i386/znver1.md: Likewise.
7407 * config/i386/i386.c: Likewise.
7408 * config/ia64/hpux-unix2003.h: Likewise.
7409 * config/msp430/msp430.md: Likewise.
7410 * config/rx/rx.c: Likewise.
7411 * config/rx/rx.md: Likewise.
7412 * config/aarch64/aarch64-simd.md: Likewise.
7413 * config/aarch64/aarch64.c: Likewise.
7414 * config/nvptx/nvptx.c: Likewise.
7415 * config/bfin/bfin.c: Likewise.
7416 * config/cris/cris.opt: Likewise.
7417 * config/rs6000/rs6000.c: Likewise.
7418 * target.h: Likewise.
7419 * spellcheck.c: Likewise.
7420 * ira-build.c: Likewise.
7421 * tree-inline.c: Likewise.
7422 * builtins.c: Likewise.
7423 * lra-constraints.c: Likewise.
7424 * explow.c: Likewise.
7425 * hwint.h: Likewise.
7426 * targhooks.c: Likewise.
7427 * tree-vect-data-refs.c: Likewise.
7429 * doc/tm.texi: Likewise.
7430 * doc/extend.texi: Likewise.
7431 * doc/install.texi: Likewise.
7432 * doc/md.texi: Likewise.
7433 * tree-ssa-tail-merge.c: Likewise.
7434 * sched-int.h: Likewise.
7435 * match.pd: Likewise.
7436 * sched-ebb.c: Likewise.
7437 * target.def (omit_struct_return_reg): Likewise.
7438 * gimple-ssa-isolate-paths.c: Likewise.
7439 (find_implicit_erroneous_behaviour): Renamed to...
7440 (find_implicit_erroneous_behavior): ... this.
7441 (find_explicit_erroneous_behaviour): Renamed to...
7442 (find_explicit_erroneous_behavior): ... this.
7443 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
7445 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
7447 PR rtl-optimization/64682
7448 PR rtl-optimization/69567
7449 PR rtl-optimization/69737
7450 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
7451 in I2 as well, just lose it.
7453 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7455 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
7457 (aarch64_last_printed_tune_string): Likewise.
7458 (aarch64_declare_function_name): Only output .arch assembler
7459 directive if it will be different from the previously output
7460 directive. Same for .tune comment but only if -dA is set.
7461 (aarch64_start_file): New function.
7462 (TARGET_ASM_FILE_START): Define.
7464 2016-02-11 David Malcolm <dmalcolm@redhat.com>
7467 * Makefile.in (PLUGIN_HEADERS): Add params.list.
7469 2016-02-11 Jakub Jelinek <jakub@redhat.com>
7472 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
7473 -Wmaybe-uninitialized warning.
7475 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
7478 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
7480 2016-02-11 Richard Biener <rguenther@suse.de>
7482 PR rtl-optimization/69291
7483 * ifcvt.c (noce_try_store_flag_constants): Do not allow
7484 subexpressions affected by changing the result.
7486 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
7489 * lra-constraints.c (curr_insn_transform): Find in/out operands
7490 for secondary memory moves. Update dups.
7492 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
7494 PR tree-optimization/69652
7495 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
7496 to nested loop, did source re-formatting, skip debug statements,
7497 add check on statement with volatile operand, remove dead scalar
7500 2016-02-10 Jakub Jelinek <jakub@redhat.com>
7501 Patrick Palka <ppalka@gcc.gnu.org>
7505 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
7506 calls if the return type is TREE_ADDRESSABLE.
7507 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
7508 * ipa-split.c (split_function): Fix doubled "we" in comment.
7509 Use void return type for the split part even if
7510 !split_point->split_part_set_retval.
7512 2016-02-10 Bin Cheng <bin.cheng@arm.com>
7514 PR tree-optimization/68021
7515 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
7516 when computing the value of biv cand by itself.
7518 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
7520 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
7521 (cortexa57_tunings): Likewise.
7522 (cortexa72_tunings): Likewise.
7523 (arch_macro_fusion_pair_p): Add support for AES fusion.
7524 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
7525 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
7526 Allow virtual registers before reload so early scheduling works.
7527 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
7528 correct latency and pipeline.
7529 (cortex_a57_crypto_complex): Likewise.
7530 (cortex_a57_crypto_xor): Likewise.
7531 (define_bypass): Add AES bypass.
7533 2016-02-10 Richard Biener <rguenther@suse.de>
7535 PR tree-optimization/69726
7536 * passes.def: Add DCE pass before late uninit.
7537 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
7538 really fixup if-conversions job.
7540 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
7542 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
7543 (arm_cortex_a57_tune): Likewise.
7544 (aarch_macro_fusion_pair_p): Add support for AES fusion.
7545 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
7547 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
7549 * timevar.def (TV_PHASE_DBGINFO): Delete.
7550 (TV_PHASE_CHECK_DBGINFO): Likewise.
7551 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
7553 2016-02-10 Richard Biener <rguenther@suse.de>
7555 PR tree-optimization/69719
7556 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
7557 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
7559 2016-02-09 Andrew Pinski <apinski@cavium.com>
7562 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
7563 get_vcond_mask_icode returns false.
7565 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
7568 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
7569 an ADDIS that adds a pointer to a large constant that sets the
7570 upper16 bits with a load operation.
7572 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
7575 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
7577 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
7579 (vzipq_s16): Likewise.
7580 (vzipq_s32): Likewise.
7581 (vzipq_f32): Likewise.
7582 (vzipq_u8): Likewise.
7583 (vzipq_u16): Likewise.
7584 (vzipq_u32): Likewise.
7585 (vzipq_p8): Likewise.
7586 (vzipq_p16): Likewise.
7588 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
7591 * config/arm/arm.c (neon_endian_lane_map): New function.
7592 (neon_vector_pair_endian_lane_map): New function.
7593 (arm_evpc_neon_vuzp): Allow for big endian lane order.
7594 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
7596 (vuzpq_s16): Likewise.
7597 (vuzpq_s32): Likewise.
7598 (vuzpq_f32): Likewise.
7599 (vuzpq_u8): Likewise.
7600 (vuzpq_u16): Likewise.
7601 (vuzpq_u32): Likewise.
7602 (vuzpq_p8): Likewise.
7603 (vuzpq_p16): Likewise.
7605 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
7608 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
7611 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
7613 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
7614 truncate const_int operand 1 to QImode.
7616 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
7618 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
7619 corresponding to an abnormal edge.
7621 2016-02-09 Tom de Vries <tom@codesourcery.com>
7623 PR tree-optimization/69599
7624 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
7626 (find_func_aliases_for_builtin_call, find_func_clobbers)
7627 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
7630 2016-02-09 Richard Biener <rguenther@suse.de>
7632 PR tree-optimization/69715
7633 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
7634 LHS on calls as non-rewritable.
7636 2016-02-09 Tom de Vries <tom@codesourcery.com>
7639 * lto-wrapper.c (append_diag_options): New function.
7640 (compile_offload_image): Call append_diag_options.
7642 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
7645 * doc/extend.texi (Flag Output Operands): Correct sectioning.
7646 Minor copy-edit to fix verb tenses.
7648 2016-02-08 Jakub Jelinek <jakub@redhat.com>
7650 PR tree-optimization/69209
7651 * ipa-split.c (split_function): If split part is not
7652 returning retval, retval has gimple type but is not
7653 gimple value, force it into a SSA_NAME first.
7655 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
7657 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
7660 2016-02-08 Jason Merrill <jason@redhat.com>
7663 * convert.c (convert_to_integer_1): Check dofold on truncation
7665 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
7666 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
7667 Rename from *_nofold.
7668 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
7669 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
7671 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
7674 * tree.c (build_common_tree_nodes): Remove short_double argument.
7675 All callers changed.
7676 * tree.h (build_common_tree_nodes): Adjust declaration.
7677 * doc/invoke.texi (-fshort-double): Remove documentation.
7678 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
7679 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
7680 * lto-wrapper.c (merge_and_complain, append_compiler_options)
7681 (append_linker_options): Don't handle OPT_fshort_double.
7683 PR rtl-optimization/68730
7684 * lra-remat.c (insn_to_cand_activation): New static variable.
7685 (lra_remat): Allocate and free it.
7686 (create_cand): New arg activation. Initialize a field in
7687 insn_to_cand_activation if it is nonnull.
7688 (create_cands): Pass the activation insn to create_cand when making
7689 a candidate involving an output reload. Reorganize code a little.
7690 (do_remat): Keep track of active status of candidates in a separate
7693 2016-02-08 Richard Biener <rguenther@suse.de>
7695 PR tree-optimization/69719
7696 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
7697 Properly use absolute of the difference of the two offsets to
7698 compare or adjust the segment length.
7700 2016-02-08 Richard Biener <rguenther@suse.de>
7701 Jeff Law <law@redhat.com>
7704 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
7705 types for anonymous SSA names.
7707 2016-02-08 Richard Biener <rguenther@suse.de>
7709 PR rtl-optimization/69274
7710 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
7712 2016-02-08 Jeff Law <law@redhat.com>
7714 PR tree-optimization/65917
7715 * tree-ssa-dom.c (record_temporary_equivalences): Record both
7716 equivalences from if (x == y) style conditionals.
7717 (loop_depth_of_name): Remove.
7718 (record_equality): Remove loop depth check.
7719 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
7720 (const_and_copies::record_const_or_copy_raw): New member function.
7721 * tree-ssa-scopedtables.c
7722 (const_and_copies::record_const_or_copy_raw): New, factored out of
7723 (const_and_copies::record_const_or_copy): Call new member function.
7725 2016-02-05 Jeff Law <law@redhat.com>
7727 PR tree-optimization/68541
7728 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
7729 (count_stmts_in_block): New function.
7730 (poor_ifcvt_candidate_code): Likewise.
7731 (is_feasible_trace): Add some heuristics to determine when path
7732 splitting is profitable.
7733 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
7734 is a diamond with a single exit.
7736 2016-02-05 Martin Sebor <msebor@redhat.com>
7739 * doc/invoke.texi: Update -Wplacement-new to take an optional
7742 2016-02-06 Richard Henderson <rth@redhat.com>
7745 * tree.c (tree_nop_conversion_p): Do not strip casts into or
7746 out of non-standard address spaces.
7748 2016-02-05 Jakub Jelinek <jakub@redhat.com>
7750 PR rtl-optimization/69691
7751 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
7753 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
7755 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
7756 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
7757 (*ieee128_mfvsrd_64bit): Likewise.
7758 (*ieee128_mfvsrd_32bit): Likewise.
7760 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
7764 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
7766 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
7767 instrumented_version.
7769 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
7771 * doc/invoke.texi (Optimize Options): In table of --param options
7772 rename second occurrence of tracer-min-branch-ratio to
7773 tracer-min-branch-probability, rename
7774 tracer-min-branch-ratio-feedback to
7775 tracer-min-branch-probability-feedback and clarify description,
7776 rename sched-spec-state-edge-prob-cutoff to
7777 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
7778 to selsched-insns-to-rename, rename lto-minpartition to
7779 lto-min-partition, delete reorder-blocks-duplicate and
7780 reorder-blocks-duplicate-feedback.
7782 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7784 * config/s390/s390.c (s390_register_info_set_ranges): Remove
7787 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
7789 * doc/extend.texi: S/390: Correct some typos.
7791 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7793 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
7795 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7798 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
7799 (s390_register_info_gprtofpr): Use new macros above.
7800 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
7802 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
7803 its name. Adjust restore and save gpr ranges.
7804 (s390_register_info_set_ranges): New function.
7805 (s390_register_info): Use new macros above. Call
7806 s390_register_info_set_ranges.
7807 (s390_optimize_register_info): Likewise.
7808 (s390_hard_regno_rename_ok): Use new macros.
7809 (s390_hard_regno_scratch_ok): Likewise.
7810 (s390_emit_epilogue): Likewise.
7811 (s390_can_use_return_insn): Likewise.
7812 (s390_optimize_prologue): Likewise.
7813 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
7815 2016-02-05 Jakub Jelinek <jakub@redhat.com>
7818 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
7820 (ix86_option_override_internal): Disable TARGET_STV even for
7821 -m{incoming,preferred}-stack-boundary=3.
7823 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7825 * config.gcc: Mark deprecated rtems targets as obsolete.
7827 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
7829 PR rtl-optimization/64682
7830 PR rtl-optimization/69567
7831 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
7832 before I2 only if the register is both used and set in I2.
7834 2016-02-04 DJ Delorie <dj@redhat.com>
7836 * config/msp430/msp430.c (msp430_start_function): Add function type.
7838 2016-02-04 Jakub Jelinek <jakub@redhat.com>
7841 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
7843 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
7845 PR rtl-optimization/69577
7847 2015-10-29 Richard Henderson <rth@redhat.com>
7851 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
7852 sse check to the exact conditions of PR 67609.
7854 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
7857 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
7858 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
7859 not allowed into the traditional Altivec registers.
7860 (movtd_64bit_nodm): Likewise.
7861 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
7863 2016-02-04 David Malcolm <dmalcolm@redhat.com>
7865 * config/aarch64/cortex-a57-fma-steering.c
7866 (aarch64_register_fma_steering): Remove "static" from arguments
7869 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
7872 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
7875 2016-02-04 Mike Frysinger <vapier@gentoo.org>
7877 * doc/invoke.texi: Delete -mno-fma4.
7879 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
7881 PR rtl-optimization/69577
7882 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
7883 (find_subregs_of_mode): Update accordingly. Iterate over partial
7886 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
7888 * config/arm/arm-protos.h (neon_reinterpret): Remove.
7889 * config/arm/arm.c (neon_reinterpret): Remove.
7890 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
7891 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
7892 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
7893 vreinterpretti): Remove.
7894 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
7895 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
7896 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
7897 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
7898 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
7899 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
7900 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
7901 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
7902 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
7903 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
7904 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
7905 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
7906 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
7907 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
7908 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
7909 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
7910 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
7911 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
7912 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
7913 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
7914 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
7915 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
7916 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
7917 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
7918 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
7919 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
7920 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
7921 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
7922 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
7923 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
7924 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
7925 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
7926 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
7927 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
7928 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
7929 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
7930 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
7931 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
7932 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
7933 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
7934 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
7935 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
7936 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
7937 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
7938 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
7939 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
7940 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
7941 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
7942 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
7943 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
7944 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
7945 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
7946 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
7947 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
7948 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
7949 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
7950 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
7951 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
7952 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
7953 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
7954 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
7955 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
7956 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
7957 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
7958 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
7959 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
7960 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
7961 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
7962 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
7963 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
7964 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
7965 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
7966 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
7967 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
7968 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
7969 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
7970 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
7971 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
7972 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
7973 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
7974 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
7975 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
7976 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
7977 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
7978 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
7979 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
7980 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
7981 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
7982 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
7983 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
7984 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
7985 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
7986 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
7987 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
7988 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
7989 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
7990 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
7991 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
7992 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
7993 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
7994 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
7995 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
7996 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
7998 2016-02-04 Martin Liska <mliska@suse.cz>
8001 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
8002 that are gimple_store_p.
8003 (maybe_instrument_call): Likewise.
8005 2016-02-04 Bin Cheng <bin.cheng@arm.com>
8007 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
8008 register scaling out of memory reference and comment why.
8010 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8014 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
8015 folding the source of a SET.
8017 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8021 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
8022 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
8024 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
8028 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
8031 2016-02-04 Christian Bruel <christian.bruel@st.com>
8033 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
8034 * config/arm/arm.c (arm_set_current_function): Likewise.
8036 2016-02-04 Jakub Jelinek <jakub@redhat.com>
8037 Ilya Enkovich <enkovich.gnu@gmail.com>
8038 H.J. Lu <hongjiu.lu@intel.com>
8041 * config/i386/i386.c (convert_scalars_to_vector): Remove
8042 stack alignment fixes.
8043 (ix86_option_override_internal): Disable TARGET_STV if stack
8044 might not be aligned enough.
8045 (ix86_minimum_alignment): Assert that TARGET_STV is false.
8047 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
8049 * gcc/config/i386/x86-tune.def: Disable default prefetching
8052 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
8053 Vladimir Makarov <vmakarov@redhat.com>
8056 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
8057 in validating fused toc addresses.
8059 2016-02-03 Jakub Jelinek <jakub@redhat.com>
8062 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
8063 range->m_caret fields if range->m_show_caret_p is false.
8066 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
8067 Force oldval into register if it does not satisfy reg_or_short_operand
8068 predicate. Fix up formatting.
8070 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
8071 Alexandre Oliva <aoliva@redhat.com>
8074 * lra-constraints.c (simplify_operand_subreg): Check additionally
8075 address validity after potential reloading.
8076 (process_address_1): Check insns validity. In case of failure do
8079 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
8082 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
8085 2016-02-02 Jakub Jelinek <jakub@redhat.com>
8087 * wide-int.cc (canonize_uhwi): New function.
8088 (wi::divmod_internal): Use it.
8090 2016-02-02 James Norris <jnorris@codesourcery.com
8092 * gimplify.c (omp_notice_variable): Add usage check.
8094 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
8096 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
8097 like LE, GE, LT, GT when emitting relational operator.
8099 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
8101 * ira-costs.c (find_costs_and_classes): Add extra argument.
8102 * target.def (ira_change_pseudo_allocno_class): Add parameter.
8103 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
8104 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
8105 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
8106 Add best_class parameter, and return it if not ALL_REGS.
8107 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
8109 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
8112 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
8114 * config/aarch64/aarch64.c
8115 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
8116 (aarch64_ira_change_pseudo_allocno_class): New function.
8118 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
8121 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
8123 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8125 * config/avr/avr.c (avr_option_override): Set
8126 PARAM_ALLOW_STORE_DATA_RACES to 1.
8128 2016-02-02 Richard Biener <rguenther@suse.de>
8130 PR tree-optimization/69595
8131 * match.pd: Add range test simplifications to true/false.
8133 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
8135 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
8136 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
8139 2016-02-02 Richard Biener <rguenther@suse.de>
8141 PR tree-optimization/69606
8142 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
8143 info on the result before moving a stmt.
8145 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
8148 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
8149 branch with vector comparison.
8150 * config/i386/sse.md (VI48_AVX): New mode iterator.
8151 (define_expand "cbranch<mode>4): Add support for conditional branch
8152 with vector comparison.
8153 * tree-vect-loop.c (optimize_mask_stores): New function.
8154 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
8155 has_mask_store field of vect_info.
8156 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
8157 vectorized loops having masked stores after vec_info destroy.
8158 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
8159 correspondent macros.
8160 (optimize_mask_stores): Add prototype.
8162 2016-02-02 Alan Modra <amodra@gmail.com>
8165 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
8168 2016-02-02 Alan Modra <amodra@gmail.com>
8171 * config/rs6000/rs6000.c (need_toc_init): New var, set it
8172 whenever toc_label_name used.
8173 (rs6000_file_start): Don't set up toc section here,
8174 (rs6000_output_function_epilogue): do so here instead,
8175 (rs6000_xcoff_file_start): and here.
8176 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
8177 (load_toc_aix_di): Likewise.
8179 2016-02-01 Jakub Jelinek <jakub@redhat.com>
8181 PR rtl-optimization/69592
8182 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
8183 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
8184 (num_sign_bit_copies_binary_arith_p): New inline function.
8185 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
8187 2016-02-01 Jeff Law <law@redhat.com>
8189 PR tree-optimization/69580
8190 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
8191 * tree-ssa-threadbackward.c
8192 (fsm_find_control_statement_thread_paths): Do not try to walk
8193 through large PHI nodes.
8195 2016-02-01 Jakub Jelinek <jakub@redhat.com>
8197 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
8198 when count is incremented above limit, don't analyze further
8201 * omp-low.c (oacc_parse_default_dims): Avoid
8202 -Wsign-compare warning, make sure value fits into int
8203 rather than just unsigned int.
8205 2016-02-01 Bin Cheng <bin.cheng@arm.com>
8207 PR tree-optimization/67921
8208 * fold-const.c (split_tree): New parameters. Convert pointer
8209 type variable part to proper type before negating.
8210 (fold_binary_loc): Pass new arguments to split_tree.
8212 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
8214 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
8215 (nvptx_goacc_validate_dims): Extend to handle global defaults.
8216 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
8217 * doc/tm.texti: Rebuilt.
8218 * doc/invoke.texi (fopenacc-dim): Document.
8219 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
8220 (append_compiler_options): Likewise.
8221 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
8222 (oacc_parse_default_dims): New.
8223 (oacc_validate_dims): Add USED arg. Select non-unity default when
8225 (oacc_loop_fixed_partitions): Return mask of used partitions.
8226 (oacc_loop_auto_partitions): Emit dump info.
8227 (oacc_loop_partition): Return mask of used partitions.
8228 (execute_oacc_device_lower): Parse default dimension arg. Adjust
8229 loop partitioning and validation calls.
8231 2016-02-01 Richard Biener <rguenther@suse.de>
8234 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
8236 2016-02-01 Richard Biener <rguenther@suse.de>
8238 PR tree-optimization/69574
8239 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
8240 of asserting return chrec_dont_know.
8242 2016-02-01 Martin Liska <mliska@suse.cz>
8244 * mem-stats-traits.h: Add copyright header.
8245 * mem-stats.h: Likewise.
8247 2016-02-01 Richard Biener <rguenther@suse.de>
8249 PR tree-optimization/69579
8250 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
8251 Do not propagate through abnormal PHI results.
8253 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
8255 * postreload.c (reload_cse_simplify): Remove dead code.
8257 2016-02-01 Jakub Jelinek <jakub@redhat.com>
8259 PR rtl-optimization/69570
8260 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
8261 if there is more than one set, not if there is a single set.
8263 2016-02-01 Richard Henderson <rth@redhat.com>
8266 * combine.c (make_compound_operation): When looking through a
8267 subreg, make sure to re-extend to the width of the outer mode.
8269 2016-01-30 Jakub Jelinek <jakub@redhat.com>
8271 PR tree-optimization/69546
8272 * wide-int.cc (wi::divmod_internal): For unsigned division
8273 where both operands fit into uhwi, if o1 is 1 and o0 has
8274 msb set, if divident_prec is larger than bits per hwi,
8275 clear another quotient word and return 2 instead of 1.
8276 Similarly for remainder with msb in HWI set, if dividend_prec
8277 is larger than bits per hwi.
8279 2016-01-29 Martin Jambor <mjambor@suse.cz>
8281 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
8282 Use short lowercase names.
8283 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
8284 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
8285 acq_rel one. Protect warning agains segfaults if
8286 get_memory_order_name returns NULL.
8287 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
8288 with release semantics. Do not warn if get_memory_order already did.
8289 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
8290 semantics. Fix check for relaxed or acquire semantics. Do not warn
8291 if get_memory_order already did.
8293 2016-01-29 Sebastian Pop <s.pop@samsung.com>
8295 * doc/install.texi: Document that isl-0.16 is supported.
8297 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
8300 * config/i386/constraints.md (Bm): Describe as special memory
8302 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
8303 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
8304 * genpreds.c (struct constraint_data): Add is_special_memory.
8305 (have_special_memory_constraints, special_memory_start): New
8307 (special_memory_end): Ditto.
8308 (add_constraint): Add new arg is_special_memory. Add code to
8309 process its true value. Update have_special_memory_constraints.
8310 (process_define_constraint): Pass the new arg.
8311 (process_define_register_constraint): Ditto.
8312 (choose_enum_order): Process special memory.
8313 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
8314 function insn_extra_special_memory_constraint.
8315 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
8316 * gensupport.c (process_rtx): Process
8317 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
8318 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
8319 * ira-lives.c (single_reg_class): Use
8320 insn_extra_special_memory_constraint.
8321 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
8322 * lra-constraints.c (process_alt_operands): Ditto.
8323 (curr_insn_transform): Use insn_extra_special_memory_constraint.
8324 * recog.c (asm_operand_ok, preprocess_constraints): Process
8326 * reload.c (find_reloads): Ditto.
8327 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
8328 * stmt.c (parse_input_constraint): Use
8329 insn_extra_special_memory_constraint.
8331 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
8334 * lra-splill.c (lra_final_code_change): Revert r229087 by
8335 removing all sub-registers.
8337 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
8340 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
8342 2016-01-29 Jakub Jelinek <jakub@redhat.com>
8345 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
8346 SSE1, copy target into the temporary reg first before recursing
8349 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
8351 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
8354 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
8356 * ginclude/stdarg.h: Test __cplusplus instead of
8357 __GXX_EXPERIMENTAL_CXX0X__.
8359 2016-01-29 Richard Biener <rguenther@suse.de>
8361 PR tree-optimization/69547
8362 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
8363 Do not mark clobbers necessary.
8364 (mark_all_reaching_defs_necessary_1): Likewise.
8366 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
8368 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
8369 declaration name with %qs and print it in both error messages.
8370 Also fix indentation.
8372 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
8375 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
8376 trailing blank line from error message.
8378 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
8381 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
8384 2016-01-29 Richard Biener <rguenther@suse.de>
8387 * match.pd: Allow all integral types when simplifying a
8388 widening or sign-changing conversion.
8390 2016-01-28 Sebastian Pop <s.pop@samsung.com>
8392 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
8393 back to setting codegen_error to fail codegen.
8395 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
8398 * config/i386/constraints.md (C): Only accept constant zero operand.
8399 (BC): New constraint.
8400 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
8401 instead of C constraint.
8402 * doc/md.texi (Machine Constraints): Update description
8405 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
8408 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
8410 2016-01-28 Jakub Jelinek <jakub@redhat.com>
8413 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
8416 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
8418 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
8419 branches if using guessed profile.
8421 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
8423 * graphite-optimize-isl.c (optimize_isl): Fix dump.
8425 2016-01-28 Richard Henderson <rth@redhat.com>
8428 * config/aarch64/aarch64-modes.def (CC_Cmode): New
8429 * config/aarch64/aarch64-protos.h: Update.
8430 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
8431 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
8432 (aarch64_get_condition_code_1): Handle CC_Cmode.
8433 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
8434 (*add<mode>3_compareC_cconly_imm): New.
8435 (*add<mode>3_compareC_cconly): New.
8436 (*add<mode>3_compareC_imm): New.
8437 (add<mode>3_compareC): New.
8438 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
8439 to be first. Use aarch64_carry_operation.
8440 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
8441 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
8442 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
8443 (subti3): Use subdi3_compare1.
8444 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
8445 (sub<mode>3_compare1): New.
8446 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
8447 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
8448 (*subsi3_carryin_uxtw): Likewise.
8449 (*ngc<mode>, *ngcsi_uxtw): Likewise.
8450 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
8451 * config/aarch64/iterators.md (DWI): New.
8452 * config/aarch64/predicates.md (aarch64_carry_operation): New.
8453 (aarch64_borrow_operation): New.
8455 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
8457 * graphite-optimize-isl.c (optimize_isl): Print a different debug
8458 message when isl does not return a valid schedule.
8460 2016-01-28 Sebastian Pop <s.pop@samsung.com>
8462 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
8463 Remove comments from class declarations: they are already in the code
8466 2016-01-28 Sebastian Pop <s.pop@samsung.com>
8468 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
8470 (ternary_op_to_tree): Same.
8471 (unary_op_to_tree): Same.
8472 (nary_op_to_tree): Same.
8473 (gcc_expression_from_isl_expr_op): Same.
8474 (gcc_expression_from_isl_expression): Same.
8475 (graphite_create_new_loop): Same.
8476 (graphite_create_new_loop_guard): Same.
8477 (build_iv_mapping): Same.
8478 (graphite_create_new_guard): Same.
8479 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
8480 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
8482 2016-01-28 Sebastian Pop <s.pop@samsung.com>
8484 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
8485 instead of setting codegen_error to fail codegen.
8487 2016-01-28 Jason Merrill <jason@redhat.com>
8489 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
8491 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
8493 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
8494 Remove CONST_INT_P check in CCMP cost calculation.
8496 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
8498 * config/aarch64/aarch64.c (generic_vector_cost):
8499 Set vec_permute_cost.
8500 (cortexa57_vector_cost): Likewise.
8501 (exynosm1_vector_cost): Likewise.
8502 (xgene1_vector_cost): Likewise.
8503 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
8504 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
8505 Add vec_permute_cost entry.
8507 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
8509 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
8511 (add<mode>3_compare0): Likewise.
8512 (addsi3_compare0_uxtw): Likewise.
8513 (add<mode>3nr_compare0): Likewise.
8514 (compare_neg<mode>): Likewise.
8515 (<optab><mode>3): Likewise.
8517 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
8519 * tree-vect-stmts.c (vectorizable_comparison): Add
8520 NULL check for vectype.
8522 2016-01-28 Richard Biener <rguenther@suse.de>
8524 PR tree-optimization/69466
8525 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
8526 Account for PHIs we couldn't duplicate.
8528 2016-01-28 Martin Liska <mliska@suse.cz>
8531 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
8532 instead of ENABLE_VALGRIND_CHECKING.
8534 2016-01-27 Richard Henderson <rth@redhat.com>
8537 * lra-remat.c (subreg_regs): New.
8538 (dump_candidates_and_remat_bb_data): Dump it.
8539 (operand_to_remat): Reject if operand in subreg_regs.
8540 (set_bb_regs): Collect subreg_regs.
8541 (lra_remat): Init and free subreg_regs. Compute
8542 calculate_local_reg_remat_bb_data before create_cands.
8544 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
8547 * config/i386/i386.c (ix86_update_stack_boundary): Don't
8548 change stack_alignment_needed for __tls_get_addr call.
8550 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
8552 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
8554 2016-01-27 Jeff Law <law@redhat.com>
8556 PR tree-optimization/68398
8557 PR tree-optimization/69196
8558 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
8559 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
8560 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8561 Only count PHIs in the last block in the path. The others will
8562 const/copy propagate away. Add heuristic to allow more irreducible
8563 subloops to be created when it is likely profitable to do so.
8565 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8566 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
8567 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
8569 2016-01-27 Jakub Jelinek <jakub@redhat.com>
8572 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
8573 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
8574 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
8575 * tree-streamer-in.c: Include asan.h.
8576 (streamer_get_builtin_tree): For builtins in sanitizer
8577 range call initialize_sanitizer_builtins and retry.
8579 2016-01-27 Ian Lance Taylor <iant@google.com>
8581 * common.opt (fkeep-gc-roots-live): New undocumented option.
8582 * tree-ssa-loop-ivopts.c (add_candidate_1): If
8583 -fkeep-gc-roots-live, skip pointers.
8584 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
8587 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
8590 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
8591 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
8593 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
8596 * configure.ac: NetBSD provides SSP in its C library.
8597 * configure: Updated.
8599 2016-01-27 Richard Biener <rguenther@suse.de>
8601 PR tree-optimization/69166
8602 * tree-vect-loop.c (vect_is_simple_reduction): Always check
8603 reduction code for commutativity / associativity.
8605 2016-01-27 Martin Jambor <mjambor@suse.cz>
8607 PR tree-optimization/69355
8608 * tree-sra.c (analyze_access_subtree): Correct hole detection when
8609 total_scalarization fails.
8611 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
8613 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
8616 2016-01-27 Christian Bruel <christian.bruel@st.com>
8619 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
8620 Move arm_reset_previous_fndecl and set_target_option_current_node in
8621 the conditional part. Call save_restore_target_globals.
8622 * config/arm/arm.c (arm_set_current_function):
8623 Refactor to better support #pragma target and attribute mix.
8624 Call save_restore_target_globals.
8625 * config/arm/arm-protos.h (save_restore_target_globals): New function.
8627 2016-01-27 Martin Liska <mliska@suse.cz>
8629 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
8630 reference for an HSA kernel and its host function.
8632 2016-01-27 Jakub Jelinek <jakub@redhat.com>
8634 PR tree-optimization/69399
8635 * wide-int.h (wi::lrshift): For larger precisions, only
8636 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
8638 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
8640 * config/arc/predicates.md (proper_comparison_operator): Reject
8641 constant-constant comparison.
8643 2016-01-26 Tom de Vries <tom@codesourcery.com>
8645 PR tree-optimization/69110
8646 * tree-data-ref.c (initialize_data_dependence_relation): Handle
8647 DR_NUM_DIMENSIONS == 0.
8649 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
8650 Sebastian Pop <s.pop@samsung.com>
8652 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
8653 isl_ast_op_cond and isl_ast_op_select.
8654 (gcc_expression_from_isl_expr_op): Same.
8656 2016-01-26 Jason Merrill <jason@redhat.com>
8659 * tree.c (recompute_constructor_flags): Split out from
8661 (verify_constructor_flags): New.
8662 * tree.h: Declare them.
8664 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
8666 PR rtl-optimization/69217
8667 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
8668 are no TYPE_FIELDS set for the record type.
8670 2016-01-26 Jakub Jelinek <jakub@redhat.com>
8673 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
8674 toc_label_name unconditionally.
8675 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
8676 SYMBOL_REF string. Use toc_label_name instead of constructing
8678 (rs6000_elf_declare_function_name): Use toc_label_name instead of
8679 constructing LCTOC1.
8681 2016-01-26 Martin Sebor <msebor@redhat.com>
8684 * doc/extend.texi (Common Type Attributes): Move text that talks about
8685 attribute packed from attribute aligned to the section discussing
8686 the former attribute for clarity.
8688 2016-01-26 Richard Henderson <rth@redhat.com>
8691 * trans-mem.c (tm_region_init): Mark entry block as visited.
8693 2016-01-26 David Malcolm <dmalcolm@redhat.com>
8696 * diagnostic-show-locus.c (layout::print_source_line): Replace
8697 call to pp_newline with call to layout::print_newline.
8698 (layout::print_annotation_line): Likewise.
8699 (layout::move_to_column): Likewise.
8700 (layout::print_any_fixits): After printing any fixits, print a
8701 trailing newline, if necessary.
8702 (layout::print_newline): New method, resetting any colorization
8704 (diagnostic_show_locus): Move the pp_newline to before the
8705 early bailout. Remove dummy block enclosing the layout instance.
8706 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
8707 of pp_newline_and_flush with pp_flush.
8708 (diagnostic_append_note): Delete use of pp_newline.
8709 (diagnostic_append_note_at_rich_loc): Delete.
8710 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
8711 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
8712 when newline characters are added to the buffer.
8714 2016-01-26 Michael Matz <matz@suse.de>
8716 * configure.ac (ac_cv_std_swap_in_utility): New test.
8717 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
8718 * configure: Regenerate.
8719 * config.in: Regenerate.
8721 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
8723 * config/arc/arc.md (cstoresi4): Force operand into register.
8724 (arcset<code>): Fix predicate.
8725 (arcsetltu): Likewise.
8726 (arcsetgeu): Likewise.
8727 (arcsethi): Likewise.
8728 (arcsetls): Likewise.
8730 2016-01-26 Jakub Jelinek <jakub@redhat.com>
8732 PR tree-optimization/69483
8733 * gimple-fold.c (canonicalize_constructor_val): Return NULL
8734 if base has error_mark_node type.
8736 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
8739 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
8740 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
8742 (vget_lane_f16): Handle big-endian.
8743 (vgetq_lane_f16): Likewise.
8744 (vset_lane_f16): Likewise.
8745 (vsetq_lane_f16): Likewise.
8746 * config/arm/iterators.md (VQXMOV): Add V8HF.
8747 (VDQ): Add V4HF and V8HF.
8748 (V_reg): Handle V4HF and V8HF.
8749 (Is_float_mode): Likewise.
8750 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
8751 neon_vdup_nv8hf): New patterns.
8752 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
8753 Use VD_LANE iterator.
8754 (neon_vld1_dup<mode>): Use VQ2 iterator.
8756 2016-01-26 Nathan Sidwell <nathan@acm.org>
8758 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
8759 (set_oacc_fn_attrib): Add IS_KERNEL arg.
8760 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
8761 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
8762 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
8763 (oacc_validate_dims): Add LEVEL arg, don't return level.
8764 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
8766 (execute_oacc_device_lower): Adjust, add more dump output.
8767 * tree-ssa-loop.c (gate_oacc_kernels): Use
8768 oacc_fn_attrib_kernels_p.
8769 * tree-parloops.c (create_parallel_loop): Adjust
8770 set_oacc_fn_attrib call.
8772 2016-01-26 Jakub Jelinek <jakub@redhat.com>
8775 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
8776 (append_compiler_options): Handle -fcilkplus.
8777 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
8779 2016-01-26 Nick Clifton <nickc@redhat.com>
8782 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
8783 been marked as DECL_ONE_ONLY but we do not the means to make it
8784 so, then do not allow it to bind locally.
8786 2016-01-26 Jakub Jelinek <jakub@redhat.com>
8789 * opts.h (parse_sanitizer_options): New prototype.
8790 * opts.c (sanitizer_opts): New array.
8791 (parse_sanitizer_options): New function.
8792 (common_handle_option): Use parse_sanitizer_options.
8794 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
8797 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
8798 alignment adjustment to ...
8799 (ix86_update_stack_boundary): Here. Don't over-align stack for
8801 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
8802 if __tls_get_addr is called.
8804 2016-01-26 Christian Bruel <christian.bruel@st.com>
8806 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
8808 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
8810 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
8812 2016-01-26 Richard Biener <rguenther@suse.de>
8815 * match.pd: Guard X * CST CMP 0 pattern with single_use.
8817 2016-01-26 Richard Biener <rguenther@suse.de>
8819 PR tree-optimization/69452
8820 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
8821 (move_computations_dom_walker::before_dom_children): Rename
8823 (move_computations_worker): This.
8824 (move_computations): Perform an RPO rather than a DOM walk.
8826 2016-01-26 Jakub Jelinek <jakub@redhat.com>
8829 * combine.c (combine_instructions): For REG_EQUAL note with
8830 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
8831 to the underlying register.
8832 * doc/rtl.texi (REG_EQUAL): Document the behavior of
8833 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
8835 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
8838 * config/aarch64/aarch64-builtins.c
8839 (aarch64_init_simd_builtin_types): Do not set structural
8840 equality to __Poly{8,16,64,128}_t types.
8842 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
8844 PR tree-optimization/69400
8845 * wide-int.cc (wi_pack): Take the precision as argument and
8846 perform canonicalization here rather than in the callers.
8847 Use the main loop to handle all full-width HWIs. Add a
8848 zero HWI if in_len isn't a full result.
8849 (wi::divmod_internal): Update accordingly.
8850 (wi::mul_internal): Likewise. Simplify.
8852 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
8853 Sebastian Pop <s.pop@samsung.com>
8855 * graphite-poly.c (apply_poly_transforms): Simplify.
8856 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
8857 (print_isl_map): Same.
8858 (print_isl_union_map): Same.
8859 (print_isl_schedule): New.
8860 (debug_isl_schedule): New.
8861 * graphite-dependences.c (scop_get_reads): Do not call
8862 isl_union_map_add_map that is undocumented isl functionality.
8863 (scop_get_must_writes): Same.
8864 (scop_get_may_writes): Same.
8865 (scop_get_original_schedule): Remove.
8866 (scop_get_dependences): Do not call isl_union_map_compute_flow that
8867 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
8868 (compute_deps): Remove.
8869 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
8870 (debug_schedule_ast): New.
8871 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
8872 set_separate_option.
8873 (graphite_regenerate_ast_isl): Add dump.
8874 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
8875 from scop->transformed_schedule.
8876 (graphite_regenerate_ast_isl): Add more dump.
8877 * graphite-optimize-isl.c (optimize_isl): Set
8878 scop->transformed_schedule. Check whether schedules are equal.
8879 (apply_poly_transforms): Move here.
8880 * graphite-poly.c (apply_poly_transforms): ... from here.
8881 (free_poly_bb): Static.
8882 (free_scop): Static.
8883 (pbb_number_of_iterations_at_time): Remove.
8884 (print_isl_ast): New.
8885 (debug_isl_ast): New.
8886 (debug_scop_pbb): New.
8887 * graphite-scop-detection.c (print_edge): Move.
8889 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
8890 (build_scop_scattering): Remove.
8891 (create_pw_aff_from_tree): Assert instead of bailing out.
8892 (add_condition_to_pbb): Remove unused code, do not fail.
8893 (add_conditions_to_domain): Same.
8894 (add_conditions_to_constraints): Remove.
8895 (build_scop_context): New.
8896 (add_iter_domain_dimension): New.
8897 (build_iteration_domains): Initialize pbb->iterators.
8898 Call add_conditions_to_domain.
8901 (index_outermost_in_loop): New.
8902 (index_pbb_in_loop): New.
8903 (outermost_pbb_in): New.
8904 (add_in_sequence): New.
8905 (add_outer_projection): New.
8906 (outer_projection_mupa): New.
8907 (add_loop_schedule): New.
8908 (build_schedule_pbb): New.
8909 (build_schedule_loop): New.
8910 (embed_in_surrounding_loops): New.
8911 (build_schedule_loop_nest): New.
8912 (build_original_schedule): New.
8913 (build_poly_scop): Call build_original_schedule.
8914 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
8915 (free_poly_dr): Remove.
8916 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
8917 (free_poly_bb): Remove.
8918 (debug_loop_vec): Remove.
8919 (print_isl_ast): Declare.
8920 (debug_isl_ast): Declare.
8921 (scop_do_interchange): Remove.
8922 (scop_do_strip_mine): Remove.
8923 (scop_do_block): Remove.
8924 (flatten_all_loops): Remove.
8925 (optimize_isl): Remove.
8926 (pbb_number_of_iterations_at_time): Remove.
8927 (debug_scop_pbb): Declare.
8928 (print_schedule_ast): Declare.
8929 (debug_schedule_ast): Declare.
8930 (struct scop): Remove schedule. Add original_schedule,
8931 transformed_schedule.
8932 (free_gimple_poly_bb): Remove.
8933 (print_generated_program): Remove.
8934 (debug_generated_program): Remove.
8935 (unify_scattering_dimensions): Remove.
8936 * sese.c (print_edge): ... here.
8937 (print_sese): ... here.
8938 (debug_edge): ... here.
8939 (debug_sese): ... here.
8940 * sese.h (print_edge): Declare.
8941 (print_sese): Declare.
8942 (dump_edge): Declare.
8943 (dump_sese): Declare.
8945 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
8946 Sebastian Pop <s.pop@samsung.com>
8948 * Makefile.in: Set ISLVER in site.exp.
8950 2016-01-25 Jakub Jelinek <jakub@redhat.com>
8952 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
8953 DECL_VALUE_EXPR of new_var even for the non-array case. Look
8954 through DECL_VALUE_EXPR for expansion.
8956 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
8958 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
8959 the frame info after reload completed.
8961 2016-01-25 Jeff Law <law@redhat.com>
8963 PR tree-optimization/69196
8964 PR tree-optimization/68398
8965 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
8966 tree-ssa-threadupdate.c.
8967 (determine_bb_domination_status): Prototype
8968 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
8969 (determine_bb_domination_status): No longer static.
8970 (valid_jump_thread_path): Remove code to detect characteristics
8971 of the jump thread path not associated with correctness.
8972 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
8973 Correct test for thread path length. Count PHIs for real operands as
8974 statements that need to be copied. Do not count ASSERT_EXPRs.
8975 Look at all the blocks in the thread path. Compute and selectively
8976 filter thread paths based on threading through the latch, threading
8977 a multiway branch or crossing a multiway branch.
8979 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8981 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
8982 decl with __attribute__ ((unused)) annotation.
8984 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
8987 * tree-vect-stmts.c (vectorizable_condition): Check vectype
8988 of operands is compatible with a statement vectype.
8990 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
8992 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
8993 improve wording for mixed storage order support.
8995 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
8997 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
8998 (vcvt_u64_f64): Likewise.
8999 (vcvta_s64_f64): Likewise.
9000 (vcvta_u64_f64): Likewise.
9001 (vcvtm_s64_f64): Likewise.
9002 (vcvtm_u64_f64): Likewise.
9003 (vcvtn_s64_f64): Likewise.
9004 (vcvtn_u64_f64): Likewise.
9005 (vcvtp_s64_f64): Likewise.
9006 (vcvtp_u64_f64): Likewise.
9008 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
9010 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
9011 (arc_init): Check validity mll64 option.
9012 (arc_save_restore): Use double load/store instruction.
9013 (arc_expand_movmem): Likewise.
9014 (arc_split_move): Don't split if we have double load/store
9015 instructions. Returns a boolean.
9016 (arc_process_double_reg_moves): Change function to return boolean
9017 instead of a sequence of instructions.
9018 (arc_dwarf_register_span): New function.
9019 * config/arc/arc-protos.h (arc_split_move): Change prototype.
9020 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
9021 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
9022 (*movdf_insn): Likewise.
9023 * config/arc/arc.opt (mll64): New option.
9024 * config/arc/predicates.md (even_register_operand): New predicate.
9025 * doc/invoke.texi (ARC Options): Add mll64 documentation.
9027 2016-01-25 Richard Biener <rguenther@suse.de>
9030 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
9031 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
9033 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
9035 2016-01-25 Richard Biener <rguenther@suse.de>
9037 PR tree-optimization/69376
9038 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
9040 (VN_INFO_ANTI_RANGE_P): New inline.
9041 (VN_INFO_RANGE_TYPE): Likewise.
9042 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
9043 SSA_NAME_ANTI_RANGE_P.
9044 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
9045 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
9046 Properly query VN_INFO_RANGE_TYPE.
9048 2016-01-25 Nick Clifton <nickc@redhat.com>
9051 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
9053 2016-01-23 Tom de Vries <tom@codesourcery.com>
9055 PR tree-optimization/69426
9056 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
9059 2016-01-23 Jakub Jelinek <jakub@redhat.com>
9061 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
9062 "the the" with "the" in the comments.
9063 * ipa-devirt.c (build_type_inheritance_graph,
9064 update_type_inheritance_graph): Likewise.
9065 * tree.c (build_function_type_list_1): Likewise.
9066 * cfgloopmanip.c (scale_loop_profile): Likewise.
9067 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
9068 * gimple-ssa-split-paths.c
9069 (find_block_to_duplicate_for_splitting_paths): Likewise.
9070 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
9071 * expr.c (convert_move): Likewise.
9072 * var-tracking.c (vt_stack_adjustments): Likewise.
9073 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
9074 * tree-vrp.c (test_for_singularity): Likewise.
9076 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
9077 directly instead of building a temporary tree.
9080 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
9081 remove <algorithm> include.
9083 2016-01-22 Jakub Jelinek <jakub@redhat.com>
9086 * config/i386/i386.c: Include dojump.h.
9087 (expand_small_movmem_or_setmem,
9088 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
9090 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
9091 if dynamic_check != -1.
9093 2016-01-21 Jeff Law <law@redhat.com>
9096 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
9097 record_temporary_equivalences. Rewritten to avoid unnecessary calls
9098 into dominated_by_p.
9099 (cprop_into_successor_phis): Avoid unnecessary tests.
9101 2016-01-22 Richard Henderson <rth@redhat.com>
9104 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
9105 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
9107 2016-01-22 Michael Matz <matz@suse.de>
9109 * system.h (string, algorithm): Include only conditionally.
9110 (new): Include always under C++.
9111 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
9112 * final.c (toplevel): Ditto.
9113 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
9114 * genconditions.c (write_header): Make gencondmd.c define
9116 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
9118 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
9119 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
9121 2016-01-22 Christian Bruel <christian.bruel@st.com>
9124 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
9126 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9129 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
9130 define_insn_and_split. Ensure operands[1] and operands[0] do not
9131 get assigned the same register.
9133 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
9135 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
9137 2016-01-22 Christian Bruel <christian.bruel@st.com>
9139 * config/arm/arm-c.c (arm_pragma_target_parse):
9140 Remove warn_builtin_macro_redefined overwrite.
9142 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
9144 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
9145 flag_non_call_exceptions compatibility.
9147 2016-01-22 Jakub Jelinek <jakub@redhat.com>
9150 * dwarf2out.c (add_child_die_after): New function.
9151 (dwarf_qual_info_t): New type.
9152 (dwarf_qual_info): New variable.
9153 (qualified_die_p): New function.
9154 (modified_type_die): For -fdebug-types-section, ensure
9155 canonical order of qualifiers. Put qualified DIEs adjacent
9156 to the corresponding non-qualified type DIE and search there
9157 for existing qualified DIEs.
9159 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
9161 * doc/extend.texi (scalar_storage_order type attribute): Document
9162 restriction on type punning and aliasing, and remove future tense.
9164 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
9167 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
9170 2016-01-21 Jeff Law <law@redhat.com>
9173 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
9174 useless call to record_temporary_equivalences.
9175 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
9176 allocate 10 slots in the bb_path vector and let it grow as needed.
9177 (fsm_find_control_statement_thread_paths): Similarly for the next_path
9180 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
9182 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
9184 * configure: Regenerate.
9186 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
9188 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
9189 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
9191 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
9194 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
9195 drop EXPAND_INITIALIZER.
9196 * rtl.h (contains_symbolic_reference_p): Declare.
9197 * rtlanal.c (contains_symbolic_reference_p): New function.
9198 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
9199 a subtraction into a NOT if symbolic constants are involved.
9201 2016-01-21 Anton Blanchard <anton@samba.org>
9202 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9205 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
9207 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
9210 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
9212 * config/microblaze/microblaze.c
9213 (get_branch_target): New.
9214 (insert_wic_for_ilb_runout): New.
9216 (microblaze_machine_dependent_reorg): New.
9217 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
9218 * config/microblaze/microblaze.md
9219 (UNSPEC_IPREFETCH): Define.
9220 (iprefetch): New pattern
9221 * config/microblaze/microblaze.opt
9222 (mxl-prefetch): New flag.
9224 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
9226 * config/microblaze/microblaze.h
9227 (FIXED_REGISTERS): Update in macro.
9228 (CALL_USED_REGISTERS): Update in macro.
9230 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
9232 PR rtl-optimization/68920
9233 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
9236 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
9238 PR rtl-optimization/68990
9239 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
9240 pseudo instead of inheritance ones.
9242 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
9243 Nick Clifton <nickc@redhat.com>
9247 * config/mips/mips.c (mips_compute_frame_info): Initialise
9248 args_size and hard_frame_pointer_offset fields of the frame
9249 structure before calling mips_global_pointer.
9251 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
9253 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
9255 * configure: Regenerate.
9257 2016-01-21 Richard Biener <rguenther@suse.de>
9259 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
9261 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
9263 * config/s390/s390.c (s390_asm_declare_function_size): Add code
9264 to actually emit the .size directive.
9266 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
9267 Jakub Jelinek <jakub@redhat.com>
9271 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
9272 args array size by one to avoid buffer overflow.
9274 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
9276 * config/s390/s390.md (pool_section_start): Use switch_to_section
9277 to select proper read-only data section instead of hardcoding
9279 (pool_section_end): Use switch_to_section to match the above.
9281 2016-01-21 Richard Biener <rguenther@suse.de>
9283 PR tree-optimization/69378
9284 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
9285 (set_ssa_val_to): Use it for dominance checks taking into
9286 account not executable edges.
9288 2016-01-21 Jakub Jelinek <jakub@redhat.com>
9291 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
9292 for bitsize instead of GET_MODE_PRECISION (mode).
9294 2016-01-20 Martin Sebor <msebor@redhat.com>
9297 * extend.texi (__sync Builtins): Clarify the semantics of
9298 __sync_fetch_and_OP built-ins on pointers.
9299 (__atomic Builtins): Same.
9301 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
9302 Sebastian Pop <s.pop@samsung.com>
9304 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
9305 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
9306 (is_valid_rename): Same.
9307 (translate_isl_ast_to_gimple::get_rename): Same.
9308 (translate_isl_ast_to_gimple::rename_all_uses): Same.
9309 (translate_isl_ast_to_gimple::rename_uses): Same.
9310 (get_new_name): Check for close_phi nodes.
9311 (copy_loop_phi_args): Use phi_node_kind.
9312 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
9313 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
9315 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
9316 Sebastian Pop <s.pop@samsung.com>
9318 Revert commit r229783.
9319 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
9320 Remove use of parameter_rename_map.
9322 (copy_internal_parameters): Remove.
9323 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
9324 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
9325 (free_sese_info): Do not free parameter_rename_map.
9326 (set_rename): Do not use parameter_rename_map.
9327 (rename_uses): Update call to set_rename.
9328 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
9329 * sese.h (parameter_rename_map_t): Remove.
9330 (struct sese_info_t): Remove field parameter_rename_map.
9332 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
9333 Sebastian Pop <s.pop@samsung.com>
9335 * graphite-isl-ast-to-gimple.c: Fix comment.
9336 * graphite-scop-detection.c (defined_in_loop_p): New.
9337 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
9338 names defined in loop.
9340 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
9341 Sebastian Pop <s.pop@samsung.com>
9343 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
9344 Discard unstructured if-then-else regions.
9346 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
9347 Sebastian Pop <s.pop@samsung.com>
9349 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
9350 (cleanup_loop_iter_dom): Remove.
9351 (build_loop_iteration_domains): Remove.
9352 (build_scop_context): Remove.
9353 (build_scop_iteration_domain): Remove.
9354 (add_loop_constraints): New.
9355 (build_iteration_domains): New.
9356 (build_poly_scop): Call build_iteration_domains.
9358 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
9359 Sebastian Pop <s.pop@samsung.com>
9361 * graphite-scop-detection.c
9362 (scop_detection::harmful_loop_in_region): Free dom and loops.
9363 (scop_detection::loop_body_is_valid_scop): Free bbs.
9365 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
9366 Sebastian Pop <s.pop@samsung.com>
9368 * graphite-scop-detection.c (record_loop_in_sese): New.
9369 (gather_bbs::before_dom_children): Call record_loop_in_sese.
9370 (build_scops): Remove call to build_sese_loop_nests.
9371 * sese.c (sese_record_loop): Remove.
9372 (build_sese_loop_nests): Remove.
9373 (new_sese_info): Remove region->loops.
9374 (free_sese_info): Same.
9375 * sese.h (sese_contains_loop): Same.
9376 (build_sese_loop_nests): Remove.
9377 (sese_contains_loop): Remove.
9379 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
9380 Sebastian Pop <s.pop@samsung.com>
9382 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
9383 loop_is_valid_in_scop.
9384 (scop_detection::harmful_stmt_in_region): Renamed
9385 harmful_loop_in_region.
9386 Call loop_is_valid_in_scop.
9388 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
9389 Sebastian Pop <s.pop@samsung.com>
9391 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
9394 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
9395 Sebastian Pop <s.pop@samsung.com>
9397 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
9398 * graphite.h (struct poly_bb): Remove field is_reduction.
9399 (PBB_IS_REDUCTION): Remove.
9401 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
9402 Sebastian Pop <s.pop@samsung.com>
9404 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
9405 (add_pdr_constraints): Same.
9406 (scop_get_reads): Same.
9407 (scop_get_must_writes): Same.
9408 (scop_get_may_writes): Same.
9409 (scop_get_original_schedule): Same.
9410 (extend_schedule): Same.
9411 (apply_schedule_on_deps): Same.
9412 (carries_deps): Same.
9413 (compute_deps): Same.
9414 (scop_get_dependences): Same.
9415 * graphite-isl-ast-to-gimple.c
9416 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
9417 * graphite-optimize-isl.c (get_schedule_for_band): Same.
9418 (get_schedule_for_band_list): Same.
9419 (get_schedule_map): Same.
9420 (apply_schedule_map_to_scop): Same.
9421 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
9422 (build_loop_iteration_domains): Same.
9423 (add_condition_to_pbb): Same.
9424 (add_param_constraints): Same.
9425 (pdr_add_memory_accesses): Same.
9426 (pdr_add_data_dimensions): Same.
9428 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
9430 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
9433 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
9435 * common.opt (feliminate-dwarf2-dups): Replace references to
9436 "DWARF 2" with just "DWARF".
9437 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
9438 * doc/extend.texi: Likewise.
9439 * doc/cpp.texi: Likewise.
9440 * doc/invoke.texi: Likewise.
9441 (Option Summary): Add -gdwarf to list of Debugging Options.
9442 (Debugging Options): Document -gdwarf.
9443 * doc/contrib.texi: Spell "DWARF" like that.
9445 2016-01-21 Jakub Jelinek <jakub@redhat.com>
9447 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
9448 warning. Fix up formatting.
9451 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
9452 attempt to mark memory input operand addressable and
9453 call prepare_gimple_addressable in that case. Don't adjust
9454 input_location for diagnostics, use error_at instead.
9456 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
9458 * config/rs6000/ppc-auxv.h: New file.
9459 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
9461 (cpu_supports): Likewise.
9462 * config/rs6000/rs6000.c: include "ppc-auxv.h".
9463 (cpu_is_info): New variable.
9464 (cpu_supports_info): Likewise.
9465 (tcb_verification_symbol): Likewise.
9466 (cpu_builtin_p): Likewise.
9467 (cpu_expand_builtin): New function.
9468 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
9469 (rs6000_init_builtins): Likewise.
9470 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
9471 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
9472 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
9473 * configure: Regenerate.
9474 * config.in: Likewise.
9475 * doc/extend.texi (PowerPC Built-in Functions): Document
9476 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
9478 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
9481 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
9483 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
9486 2016-01-20 Richard Henderson <rth@redhat.com>
9492 * tree.c (tm_define_builtin): New.
9493 (find_tm_vector_type): New.
9494 (build_tm_vector_builtins): New.
9495 (build_common_builtin_nodes): Call it.
9497 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
9499 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
9500 (arm_fp_ok): Likewise.
9502 (arm_crypto): Likewise.
9504 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
9505 Richard Biener <rguenther@suse.de>
9507 PR tree-optimization/69328
9508 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
9509 vectors have same number of elements.
9510 (vectorizable_condition): Fix masked version recognition.
9512 2016-01-20 Richard Biener <rguenther@suse.de>
9514 PR tree-optimization/69345
9515 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
9516 (VN_INFO_PTR_INFO): Likewise.
9517 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
9518 info when it is equal between non-dominating SSA names.
9519 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
9520 Make sure to look at original SSA infos.
9522 2016-01-20 Jeff Law <law@redhat.com>
9525 * config/m68k/predicates.md (pow2_m1_operand): New predicate
9527 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
9528 (pc_or_label_operand): New predicate.
9529 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
9530 tests for small integers that are 2^n - 1.
9532 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
9534 * doc/invoke.texi (Options Summary): Add '.' after @xref.
9536 2016-01-19 Jeff Law <law@redhat.com>
9539 * tree-ssa-threadbackwards.c
9540 (fsm_find_control_statement_thread_paths): Do not try to lookup
9541 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
9543 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
9545 * doc/lto.texi: Remove text that says only Gold has linker plugin
9548 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
9550 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
9551 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
9552 the DIE accordingly.
9553 (modified_type_die): Add REVERSE parameter and pass it recursively,
9554 as well as to base_type_die. Adjust presence check accordingly.
9555 (base_type_for_mode): Adjust call to modified_type_die.
9556 (add_type_attribute): Add REVERSE parameter and pass it to
9558 (generic_parameter_die): Adjust call to add_type_attribute.
9559 (add_scalar_info): Likewise.
9560 (add_subscript_info): Likewise.
9561 (gen_array_type_die): Likewise.
9562 (gen_descr_array_type_die): Likewise.
9563 (gen_entry_point_die): Likewise.
9564 (gen_enumeration_type_die): Likewise.
9565 (gen_formal_parameter_die): Likewise.
9566 (gen_subprogram_die): Likewise.
9567 (gen_variable_die ): Likewise.
9568 (gen_const_die): Likewise.
9569 (gen_field_die): Likewise.
9570 (gen_pointer_type_die): Likewise.
9571 (gen_reference_type_die): Likewise.
9572 (gen_ptr_to_mbr_type_die): Likewise.
9573 (gen_inheritance_die): Likewise.
9574 (gen_subroutine_type_die): Likewise.
9575 (gen_typedef_die): Likewise.
9576 (force_type_die): Adjust call to modified_type_die.
9578 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
9580 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
9581 flow throughout the file. Fix broken link to Objective-C 2.0
9583 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
9586 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
9588 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
9590 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
9593 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
9594 (maybe_record_node): Record cxa_pure_virtual as the only possible
9595 target if there are not ohter candidates.
9596 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
9598 2016-01-19 Richard Biener <rguenther@suse.de>
9600 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
9601 (get_memory_order): Likewise.
9603 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
9605 * tree-vect-stmts.c (vectorizable_store): Check
9608 2016-01-19 David Malcolm <dmalcolm@redhat.com>
9611 * gcc.c (driver::decode_argv): Add call to
9612 init_opts_obstack before init_options_struct.
9613 * opts.c (init_opts_obstack): Remove idempotency.
9614 (init_options_struct): Replace call to init_opts_obstack
9615 with a gcc_assert to verify that it has already been called.
9616 * toplev.c (toplev::main): Add call to init_opts_obstack before
9617 calls to init_options_struct.
9618 (toplev::finalize): Move cleanup of opts_obstack next to
9619 cleanup of save_decoded_options, clearing the latter, and
9620 save_decoded_options_count.
9622 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9625 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
9626 attribute to unconditional. Remove %? from output template.
9628 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
9629 Jiong Wang <jiong.wang@arm.com>
9631 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
9632 generated from different expand order.
9634 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
9636 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
9637 Add support for CCMP costing.
9639 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
9641 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
9642 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
9643 (fccmpe<mode>): Likewise.
9644 (fcmp): Rename to fcmp and globalize pattern.
9646 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
9647 (aarch64_gen_ccmp_next): Add FP support.
9649 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
9651 * target.def (gen_ccmp_first): Update documentation.
9652 (gen_ccmp_next): Likewise.
9653 * doc/tm.texi (gen_ccmp_first): Update documentation.
9654 (gen_ccmp_next): Likewise.
9655 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
9656 expand_ccmp_expr_1. Improve comments.
9657 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
9658 (ccmp_ior<mode>): Remove pattern.
9659 (cmp<mode>): Remove expand.
9660 (cmp): Globalize pattern.
9661 (cstorecc4): Use cc_register.
9662 (mov<mode>cc): Remove ccmp_cc_register check.
9663 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
9664 Simplify after removal of CC_DNE/* modes.
9665 (aarch64_ccmp_mode_to_code): Remove.
9666 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
9667 In 'k' case use integer as condition.
9668 (aarch64_nzcv_codes): Remove inverted cases.
9669 (aarch64_code_to_ccmode): Remove.
9670 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
9671 comparison with CC register to be used in folowing CCMP/branch/CSEL.
9672 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
9673 pattern. Return the comparison with CC register. Invert conditions
9675 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
9676 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
9678 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
9680 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
9681 instrumented_version.
9683 2016-01-19 Richard Biener <rguenther@suse.de>
9685 PR tree-optimization/69336
9686 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
9687 handled components with get_ref_base_and_extent.
9688 (equal_mem_array_ref_p): Adjust.
9690 2016-01-19 Jakub Jelinek <jakub@redhat.com>
9693 * shrink-wrap.c: Include valtrack.h.
9694 (move_insn_for_shrink_wrap): Add DEBUG argument. If
9695 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
9696 in between insn and where it will be moved to. Call
9697 dead_debug_insert_temp.
9698 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
9699 first and dead_debug_local_finish at the end.
9700 For uses and defs bitmap, handle all regs in between REGNO and
9701 END_REGNO, not just the first one.
9703 2016-01-19 Richard Biener <rguenther@suse.de>
9705 PR tree-optimization/69352
9706 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
9707 (equal_mem_array_ref_p): Constrain size and max size properly.
9708 Compare the reverse flag.
9710 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
9712 * ira.c (ira): Update regstat data if we deleted insns.
9714 2016-01-19 Jakub Jelinek <jakub@redhat.com>
9716 PR rtl-optimization/68955
9717 PR rtl-optimization/64557
9718 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
9719 here. Fix up formatting.
9720 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
9722 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
9725 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
9726 assume that the node has body.
9727 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
9730 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
9732 * lto-streamer-out.c (lto_output): Do not stream instrumentation
9735 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
9737 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
9738 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
9740 2016-01-19 Martin Jambor <mjambor@suse.cz>
9741 Martin Liska <mliska@suse.cz>
9742 Michael Matz <matz@suse.de>
9744 * Makefile.in (OBJS): Add new source files.
9745 (GTFILES): Add hsa.c.
9746 * common.opt (disable_hsa): New variable.
9747 (-Whsa): New warning.
9748 * config.in (ENABLE_HSA): New.
9749 * configure.ac: Treat hsa differently from other accelerators.
9750 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
9752 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
9753 * doc/install.texi (Configuration): Document --with-hsa-runtime,
9754 --with-hsa-runtime-include, --with-hsa-runtime-lib and
9756 * doc/invoke.texi (-Whsa): Document.
9757 (hsa-gen-debug-stores): Likewise.
9758 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
9759 to invoke offload compiler for hsa acclerator.
9760 * opts.c (common_handle_option): Determine whether HSA offloading
9761 should be performed.
9762 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
9763 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
9764 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
9765 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
9766 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
9767 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
9768 GF_OMP_FOR_KIND_GRID_LOOP.
9769 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
9770 (pp_gimple_stmt_1): Likewise.
9771 * gimple-walk.c (walk_gimple_stmt): Likewise.
9772 * gimple.c (gimple_build_omp_grid_body): New function.
9773 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
9774 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
9775 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
9776 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
9777 GF_OMP_TEAMS_GRID_PHONY.
9778 (gimple_statement_omp_single_layout): Updated comments.
9779 (gimple_build_omp_grid_body): New function.
9780 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
9781 (gimple_omp_for_grid_phony): New function.
9782 (gimple_omp_for_set_grid_phony): Likewise.
9783 (gimple_omp_parallel_grid_phony): Likewise.
9784 (gimple_omp_parallel_set_grid_phony): Likewise.
9785 (gimple_omp_teams_grid_phony): Likewise.
9786 (gimple_omp_teams_set_grid_phony): Likewise.
9787 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
9788 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
9789 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
9790 (BUILT_IN_GOMP_TARGET): Updated type.
9791 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
9792 (adjust_for_condition): New function.
9793 (get_omp_for_step_from_incr): Likewise.
9794 (extract_omp_for_data): Moved parts to adjust_for_condition and
9795 get_omp_for_step_from_incr.
9796 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
9797 (fixup_child_record_type): Bail out if receiver_decl is NULL.
9798 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
9799 (scan_omp_parallel): Do not create child functions for phony
9801 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
9802 (scan_omp_1_op): Checking assert we are not remapping to
9803 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
9804 (parallel_needs_hsa_kernel_p): New function.
9805 (expand_parallel_call): Register apprpriate parallel child
9806 functions as HSA kernels.
9807 (grid_launch_attributes_trees): New type.
9808 (grid_attr_trees): New variable.
9809 (grid_create_kernel_launch_attr_types): New function.
9810 (grid_insert_store_range_dim): Likewise.
9811 (grid_get_kernel_launch_attributes): Likewise.
9812 (get_target_argument_identifier_1): Likewise.
9813 (get_target_argument_identifier): Likewise.
9814 (get_target_argument_value): Likewise.
9815 (push_target_argument_according_to_value): Likewise.
9816 (get_target_arguments): Likewise.
9817 (expand_omp_target): Call get_target_arguments instead of looking
9818 up for teams and thread limit.
9819 (grid_expand_omp_for_loop): New function.
9820 (grid_arg_decl_map): New type.
9821 (grid_remap_kernel_arg_accesses): New function.
9822 (grid_expand_target_kernel_body): New function.
9823 (expand_omp): Call it.
9824 (lower_omp_for): Do not emit phony constructs.
9825 (lower_omp_taskreg): Do not emit phony constructs but create for them
9826 a temporary variable receiver_decl.
9827 (lower_omp_taskreg): Do not emit phony constructs.
9828 (lower_omp_teams): Likewise.
9829 (lower_omp_grid_body): New function.
9830 (lower_omp_1): Call it.
9831 (grid_reg_assignment_to_local_var_p): New function.
9832 (grid_seq_only_contains_local_assignments): Likewise.
9833 (grid_find_single_omp_among_assignments_1): Likewise.
9834 (grid_find_single_omp_among_assignments): Likewise.
9835 (grid_find_ungridifiable_statement): Likewise.
9836 (grid_target_follows_gridifiable_pattern): Likewise.
9837 (grid_remap_prebody_decls): Likewise.
9838 (grid_copy_leading_local_assignments): Likewise.
9839 (grid_process_kernel_body_copy): Likewise.
9840 (grid_attempt_target_gridification): Likewise.
9841 (grid_gridify_all_targets_stmt): Likewise.
9842 (grid_gridify_all_targets): Likewise.
9843 (execute_lower_omp): Call grid_gridify_all_targets.
9844 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
9845 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
9846 (tree_omp_clause): Added union field dimension.
9847 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
9848 * tree.c (omp_clause_num_ops): Added number of arguments of
9849 OMP_CLAUSE__GRIDDIM_.
9850 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
9851 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
9852 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
9853 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
9854 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
9855 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
9856 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
9857 * tree-pass.h (make_pass_gen_hsail): Declare.
9858 (make_pass_ipa_hsa): Likewise.
9859 * ipa-hsa.c: New file.
9860 * lto-section-in.c (lto_section_name): Add hsa section name.
9861 * lto-streamer.h (lto_section_type): Add hsa section.
9862 * timevar.def (TV_IPA_HSA): New.
9863 * hsa-brig-format.h: New file.
9864 * hsa-brig.c: New file.
9865 * hsa-dump.c: Likewise.
9866 * hsa-gen.c: Likewise.
9869 * toplev.c (compile_file): Call hsa_output_brig.
9870 * hsa-regalloc.c: New file.
9872 2016-01-18 Jeff Law <law@redhat.com>
9874 PR tree-optimization/69320
9875 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
9876 ranged object, do nothing if the RHS constant is not [0..1].
9877 (optimize_stmt): Comparing a boolean ranged object against a
9878 constant outside [0..1] results in a compile-time constant.
9880 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
9883 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
9885 * doc/invoke.texi (Invoking GCC): Add new section to menu.
9886 (Option Summary): Update to reflect new section and moved options.
9887 (C++ Dialect Options): Move -fstats to new section.
9888 (Debugging Options): Move all dump, statistics, and other GCC
9889 developer options to new section. Rewrite section introduction
9890 and re-order remaining options to put the more basic ones first.
9891 (Optimization Options): Move -fira-verbose and -flto-report* to
9893 (Developer Options): New section incorporating moved options.
9894 * doc/cppopts.texi (-dM): Update cross-reference.
9896 2016-01-18 Richard Henderson <rth@redhat.com>
9899 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
9900 operands to pseudo only if CSE is expected. Split long immediate
9901 operands only after reload, and for the stack pointer.
9902 (*add<GPI>3_pluslong): Remove.
9903 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
9904 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
9905 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
9906 (*add<GPI>3 peepholes): New.
9907 (*add<GPI>3 splitters): New.
9908 * config/aarch64/constraints.md (Upl): New.
9909 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
9911 2016-01-18 Richard Biener <rguenther@suse.de>
9913 PR tree-optimization/69297
9914 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
9916 (vect_bb_vectorization_profitable_p): Clear visited flag again.
9918 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
9921 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
9922 of mixind vector and scalar types.
9923 (fold_relational_const): Add handling of vector
9924 comparison with boolean result.
9925 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
9926 comparison of vector operands with boolean result for EQ/NE only.
9927 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
9928 (verify_gimple_cond): Likewise.
9929 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
9932 2016-01-18 Joseph Myers <joseph@codesourcery.com>
9934 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
9937 2016-01-18 Richard Biener <rguenther@suse.de>
9940 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
9942 2016-01-18 Tom de Vries <tom@codesourcery.com>
9944 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
9946 2016-01-18 Tom de Vries <tom@codesourcery.com>
9948 * omp-low.c (set_oacc_fn_attrib): Make extern.
9949 * omp-low.h (set_oacc_fn_attrib): Declare.
9950 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
9951 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
9952 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
9953 Add and handle function parameter oacc_kernels_p.
9954 (find_reduc_addr, get_omp_data_i_param): New function.
9955 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
9956 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
9957 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
9958 Calculate dominance info. Skip loops that are not in a kernels region
9959 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
9960 (pass_parallelize_loops::execute): Call parallelize_loops with
9961 oacc_kernels_p argument.
9962 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
9963 New member function.
9964 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
9965 * passes.def: Add argument to pass_parallelize_loops instantation.
9967 2016-01-18 Tom de Vries <tom@codesourcery.com>
9969 * tree-parloops.c (pass_parallelize_loops::execute): Allow
9970 pass_parallelize_loops to be run outside the loop pipeline.
9972 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
9974 * tree-scalar-evolution.c (follow_copies_to_constant): New.
9975 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
9977 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
9980 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
9981 using get_ref_base_and_extent.
9982 (equal_mem_array_ref_p): New.
9983 (hashable_expr_equal_p): Add call to previous.
9985 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
9988 * tree-sra.c (disqualified_constants, constant_decl_p): New.
9989 (sra_initialize): Allocate disqualified_constants.
9990 (sra_deinitialize): Free disqualified_constants.
9991 (disqualify_candidate): Update disqualified_constants when appropriate.
9992 (create_access): Scan for constant-pool entries as we go along.
9993 (scalarizable_type_p): Add check against type_contains_placeholder_p.
9994 (maybe_add_sra_candidate): Allow constant-pool entries.
9995 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
9996 (initialize_constant_pool_replacements): New.
9997 (sra_modify_assign): Avoid mangling assignments created by previous,
9998 and don't generate writes into constant pool.
9999 (sra_modify_function_body): Call initialize_constant_pool_replacements.
10001 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
10003 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
10004 andnot instruction.
10005 (scalar_chain::convert_op): Likewise.
10006 * config/i386/i386.md (*andndi3_doubleword): New.
10008 2016-01-18 Richard Biener <rguenther@suse.de>
10010 PR tree-optimization/69170
10011 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
10012 building a vector from scalar results of a pattern stmt.
10014 2016-01-18 Jakub Jelinek <jakub@redhat.com>
10016 * haifa-sched.c (autopref_multipass_init): Work around
10017 -Wmaybe-uninitialized warning.
10019 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
10021 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
10022 against the constant 0.
10024 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10026 PR tree-optimization/68799
10027 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
10028 look up phi candidates in the statement-candidate map.
10029 (phi_add_costs): Likewise.
10030 (record_phi_increments): Likewise.
10031 (phi_incr_cost): Likewise.
10032 (ncd_with_phi): Likewise.
10033 (all_phi_incrs_profitable): Likewise.
10035 2016-01-17 Jakub Jelinek <jakub@redhat.com>
10037 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
10038 -Wmaybe-uninitialized warning.
10040 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
10042 * doc/invoke.texi (Invoking GCC): Add new section to menu.
10043 (Option Summary): Update to reflect new section and moved options.
10044 (C++ Dialect Options): Move -fvtable-verify and related options.
10045 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
10046 and profiling-related options.
10047 (Optimization Options): Move profile generation options and
10048 -fstack-protector and related options.
10049 (Instrumentation Options): New section incorporating moved options.
10050 (Code Generation Options): Move -finstrument-functions and
10051 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
10053 2016-01-16 Tom de Vries <tom@codesourcery.com>
10055 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
10057 2016-01-16 Tom de Vries <tom@codesourcery.com>
10059 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
10061 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
10063 * hash-table.h (hash_table::empty): Turn into an inline wrapper
10064 that checks whether the table is already empty. Rename the
10065 original implementation to...
10066 (hash_table::empty_slot): ...this new private function.
10068 2016-01-15 David Malcolm <dmalcolm@redhat.com>
10070 PR diagnostic/68899
10071 * diagnostic-show-locus.c (layout::print_source_line): Move x
10072 offset of line until after call to
10073 get_line_width_without_trailing_whitespace.
10075 2016-01-15 Jeff Law <law@redhat.com>
10077 PR tree-optimization/69270
10078 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
10079 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
10080 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
10081 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
10082 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
10083 ssa_name_has_boolean_range and constant_boolean_node.
10085 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
10087 PR rtl-optimization/69030
10088 * lra-spills.c (remove_pseudos): Check nrefs and make the function
10090 (spill_pseudos): Delete debug insn for dead pseudo.
10091 (lra_spill): Initiate spill_hard_reg and slots memory separately.
10093 2016-01-15 Jiong Wang <jiong.wang@arm.com>
10095 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
10097 (TYPES_UNOPUS): Likewise.
10098 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
10099 builtin type, from UNOP to UNOPUS.
10100 (lbtruncuv4sf): Likewise.
10101 (lbtruncuv2df): Likewise.
10102 (lrounduv2sf): Likewise.
10103 (lrounduv4sf): Likewise.
10104 (lrounduv2df): Likewise.
10105 (lroundusf): Likewise.
10106 (lroundusf): Likewise.
10107 (lceiluv2sf): Likewise.
10108 (lceiluv4sf): Likewise.
10109 (lceiluv2df): Likewise.
10110 (lceilusf): Likewise.
10111 (lceiludf): Likewise.
10112 (lflooruv2sf): Likewise.
10113 (lflooruv4sf): Likewise.
10114 (lflooruv2df): Likewise.
10115 (lfloorusf): Likewise.
10116 (lfloorudf): Likewise.
10117 (lfrintnuv2sf): Likewise.
10118 (lfrintnuv4sf): Likewise.
10119 (lfrintnuv2df): Likewise.
10120 (lfrintnusf): Likewise.
10121 (lfrintnudf): Likewise.
10122 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
10124 (vcvtq_u32_f32): Likewise.
10125 (vcvtq_u64_f64): Likewise.
10126 (vcvta_u32_f32): Likewise.
10127 (vcvtaq_u32_f32): Likewise.
10128 (vcvtaq_u64_f64): Likewise.
10129 (vcvtm_u32_f32): Likewise.
10130 (vcvtmq_u32_f32): Likewise.
10131 (vcvtmq_u64_f64): Likewise.
10132 (vcvtn_u32_f32): Likwise.
10133 (vcvtnq_u32_f32): Likewise.
10134 (vcvtnq_u64_f64): Likewise.
10135 (vcvtp_u32_f32): Likewise.
10136 (vcvtpq_u32_f32): Likewise.
10137 (vcvtpq_u64_f64): Likewise.
10138 (vcvtmd_u64_f64): Likewise.
10139 (vcvtms_u32_f32): Likewise.
10140 (vcvtad_u64_f64): Likewise.
10141 (vcvtas_u32_f32): Likewise.
10142 (vcvtnd_u64_f64): Likewise.
10143 (vcvtns_u32_f32): Likewise.
10144 (vcvtpd_u64_f64): Likewise.
10145 (vcvtps_u32_f32): Likewise.
10147 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10149 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
10150 CSEL of zero_extended registers.
10152 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10154 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
10155 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
10157 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10159 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
10160 false when argument string is not found in the attributes table
10163 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
10166 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
10167 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
10168 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
10169 precision estimate.
10171 2016-01-15 Richard Biener <rguenther@suse.de>
10173 PR tree-optimization/66856
10174 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
10175 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
10176 (vect_create_new_slp_node): Increment stmt reference count.
10177 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
10178 an SLP tree before swapping operands.
10179 (vect_build_slp_tree): Likewise.
10180 (destroy_bb_vec_info): Free stmt info after SLP instances.
10181 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
10182 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
10183 (STMT_VINFO_NUM_SLP_USES): New macro.
10185 2016-01-15 Richard Biener <rguenther@suse.de>
10188 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
10189 (add_linkage_name): ... here.
10190 (gen_typedef_die): Use add_linkage_name_raw instead of
10191 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
10194 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
10196 * gimplify.c (oacc_default_clause): Decode reference and pointer
10197 types for both kernels and parallel regions.
10199 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
10201 PR middle-end/69246
10202 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
10204 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
10206 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
10207 (convert_scalars_to_vector): Likewise.
10209 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
10211 * doc/extend.texi (Type Traits): Fix grammar.
10213 2016-01-15 Martin Jambor <mjambor@suse.cz>
10215 * tree-inline.c (remap_decl): Use existing dclarations if
10216 remapping a type and prevent_decl_creation_for_types.
10217 (replace_locals_stmt): Do an initial remapping of non-VLA typed
10218 decls first. Do real remapping with
10219 prevent_decl_creation_for_types set.
10220 * tree-inline.h (copy_body_data): New field
10221 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
10224 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
10226 * config/s390/s390.opt (mmvcle): More verbose help text.
10228 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
10230 * config/s390/s390.opt: Add period to -mzvector option text.
10232 2016-01-15 Richard Biener <rguenther@suse.de>
10234 PR tree-optimization/68961
10235 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
10236 of invariants in stores again.
10238 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
10240 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
10242 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
10244 * config/i386/i386.c (ix86_expand_branch): Don't split
10245 DI mode xor instruction to SI mode.
10247 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
10250 * ipa-icf.c (sem_function::merge): Virtual functions may become
10251 reachable even if they address is not taken and there are no
10254 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
10256 * lto-streamer-out.c (subtract_estimated_size): New function.
10257 (get_symbol_initial_value): Use it.
10259 2016-01-15 Christian Bruel <christian.bruel@st.com>
10262 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
10263 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
10264 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
10265 use add_builtin_function_ext_scope instead of add_builtin_function.
10266 (neon_set_p, neon_crypto_set_p): Remove.
10267 (arm_init_builtins): Always call arm_init_neon_builtins and
10268 arm_init_crypto_builtins.
10269 (arm_expand_builtin): Check that builtins are allowed for the arch.
10270 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
10271 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
10272 arm_init_neon_builtins call.
10274 2016-01-15 Richard Biener <rguenther@suse.de>
10276 PR tree-optimization/69117
10277 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
10278 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
10279 of the leader conservatively.
10280 (free_scc_vn): Restore original SSA name infos.
10282 2016-01-14 Jeff Law <law@redhat.com>
10284 PR tree-optimization/69270
10285 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
10286 single bit of precision, verify it's also unsigned.
10287 (record_edge_info): Use constant_boolean_node rather than fold_convert
10288 to convert boolean_true/boolean_false to the right type.
10290 2016-01-14 Richard Henderson <rth@redhat.com>
10293 * loop-doloop.c (record_reg_sets): New.
10294 (doloop_optimize): Reject the transform if the sequence
10295 clobbers registers live at the end of the loop block.
10296 (doloop_optimize_loops): Enable df_live if needed.
10298 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
10300 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
10301 * gcc/config/rs6000/rs6000.c: Likewise.
10302 * gcc/config/rs6000/rs6000.h: Likewise.
10303 * gcc/config/rs6000/rs6000.md: Likewise.
10304 * gcc/doc/extend.texi: Likewsie.
10306 2016-01-14 Jeff Law <law@redhat.com>
10308 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
10311 2016-01-14 Richard Henderson <rth@redhat.com>
10315 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
10316 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
10317 instead of builtin_decl_declared_p to test for declaration.
10319 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
10321 * doc/loop.texi (Loop Analysis and Representation): Document
10322 loop_depth function.
10324 2016-01-14 Tom de Vries <tom@codesourcery.com>
10326 PR tree-optimization/68773
10327 * omp-low.c (expand_omp_target): Don't set force_output.
10328 * varpool.c (varpool_node::get_create): Same.
10329 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
10330 offload_funcs with force_output.
10332 2016-01-14 Jakub Jelinek <jakub@redhat.com>
10335 * lra-eliminations.c (move_plus_up): Don't change anything if either
10336 the outer or inner subreg mode is not MODE_INT.
10337 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
10338 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
10340 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
10342 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
10343 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
10344 reduc_uplus_@var{m}): Remove.
10345 * expr.c (expand_expr_real_2): Remove expansion path for
10346 reduc_[us](min|max|plus) optabs.
10347 * optabs-tree.c (scalar_reduc_to_vector): Remove.
10348 * optabs-tree.h (scalar_reduc_to_vector): Remove.
10349 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
10350 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
10351 * tree-vect-loop.c (vectorizable_reduction): Remove test for
10352 reduc_[us](min|max|plus) optabs.
10354 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
10356 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
10357 (reduc_plus_scal_v2sf): New.
10358 (reduc_smax_v2sf): Rename to...
10359 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
10360 (reduc_smin_v2sf): Rename to...
10361 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
10363 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
10365 * alias.c (compare_base_symbol_refs): New function.
10366 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
10369 2016-01-14 Jakub Jelinek <jakub@redhat.com>
10371 PR middle-end/68146
10372 PR tree-optimization/69155
10373 * tree-complex.c: Include cfganal.h.
10374 (phis_to_revisit): New variable.
10375 (extract_component): Add phiarg_p argument. Assert that returned
10376 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
10377 (update_phi_components): Partly rewrite to use loop over real/imag
10378 components instead of code duplication. If extract_component returns
10379 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
10380 create_tmp_reg into the PHI node instead, and mention the phi triplet
10381 in phis_to_revisit.
10382 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
10383 in phis_to_revisit at the end.
10385 2016-01-14 Richard Biener <rguenther@suse.de>
10387 PR tree-optimization/68060
10388 * tree-vect-loop.c (vect_is_simple_reduction): Check the
10389 outer loop reduction is only used in the inner loop before
10390 detecting a double reduction.
10392 2016-01-14 Jakub Jelinek <jakub@redhat.com>
10395 * combine.c (expand_field_assignment): Punt if compute_mode is
10396 unsupported scalar mode.
10398 2016-01-14 Richard Biener <rguenther@suse.de>
10400 PR tree-optimization/66856
10401 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
10402 SLP node only if it built successfully.
10403 (vect_analyze_slp_instance): Adjust.
10405 2016-01-14 Jeff Law <law@redhat.com>
10407 PR tree-optimization/69270
10408 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
10409 (record_edge_info): Use it. Convert boolean_{true,false}_node
10410 to the type of op0.
10412 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
10415 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
10416 use block_ultimate_origin
10417 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
10419 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
10421 * doc/invoke.texi (Submodel Options): Rename section to
10422 "Machine-Dependent Options" to better reflect its content.
10423 Rewrite introductory text to remove archaic CPU names.
10426 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
10428 * doc/invoke.texi (Code Gen Options): Move section up in file,
10429 before target-specific options. Update menu and option summary
10430 to reflect the new section ordering.
10432 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
10434 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
10435 (C++ Dialect Options): Add cross-reference to -std option.
10436 * doc/standards.texi (C++ Language): Document C++14 support.
10438 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
10440 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
10441 for pack/unpack functions for __ibm128.
10442 (PACK_IF): Likewise.
10443 (UNPACK_IF): Likewise.
10445 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
10446 support for __ibm128 pack/unpack functions.
10447 (rs6000_invalid_builtin): Likewise.
10448 (rs6000_init_builtins): Likewise.
10449 (rs6000_opt_masks): Likewise.
10451 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
10452 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
10454 (RS6000_BTM_COMMON): Likewise.
10456 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
10457 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
10458 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
10459 128-bit floating point. Add support for the double values to be
10460 in Altivec registers for TF/IF packing and unpacking, but restrict
10461 TD packing sub-fields to be FPR registers. Don't allow overlapped
10462 register support for packing. Allow pack inputs to be memory
10463 locations. Don't build generator functions for unpack<mode>_dm
10464 and unpack<mode>_nodm.
10465 (unpack<mode>_dm): Likewise.
10466 (unpack<mode>_nodm): Likewise.
10467 (pack<mode>): Likewise.
10469 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
10470 built-in functions to pack/unpack explicit __ibm128 values.
10471 (__builtin_unpack_ibm128): Likewise.
10473 * doc/extend.texi (PowerPC Built-in Functions): Document
10474 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
10476 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
10479 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
10480 Add new arg loc and pass it down as context.
10481 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
10482 to the location to use for the warning.
10483 (check_function_arguments): New arg loc. All callers changed. Pass
10484 it to check_function_nonnull.
10485 * c-common.h (check_function_arguments): Adjust declaration.
10487 2016-01-13 Jakub Jelinek <jakub@redhat.com>
10489 PR tree-optimization/69156
10490 * gimple.c (validate_type): Removed.
10491 (gimple_builtin_call_types_compatible_p): Use
10492 useless_type_conversion_p instead of validate_type.
10493 * value-prof.c (gimple_stringop_fixed_value): Fold
10494 icall_size to correct type.
10496 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
10498 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
10501 2016-01-13 Richard Henderson <rth@redhat.com>
10504 * target.def (builtin_tm_load, builtin_tm_store): Remove.
10505 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
10506 (ix86_builtin_tm_store): Remove.
10507 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
10508 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
10509 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
10510 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
10511 * doc/tm.texi: Rebuild.
10513 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
10514 (BUILT_IN_TM_MEMCPY_RTWN): New.
10515 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
10516 fallback from vector to integer helpers.
10517 (build_tm_load): Handle vector types directly, instead of
10519 (build_tm_store): Likewise.
10520 (expand_assign_tm): Prepare for register types not handled by
10521 the above. Copy them to memory and use memcpy.
10522 * tree.c (tm_define_builtin): New.
10523 (find_tm_vector_type): New.
10524 (build_tm_vector_builtins): New.
10525 (build_common_builtin_nodes): Call it.
10527 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
10529 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
10530 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
10532 2016-01-13 Tom de Vries <tom@codesourcery.com>
10534 PR tree-optimization/69169
10535 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
10536 handled_struct_type param.
10537 (create_variable_info_for, intra_create_variable_infos): Call
10538 create_variable_info_for_1 with extra arg.
10540 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
10542 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
10543 and "armv8.1-a+crc" entries.
10545 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
10548 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
10549 Change first operand predicate from register_or_constm1_operand
10550 to register_operand.
10551 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
10552 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
10553 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
10554 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
10555 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
10556 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
10557 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
10558 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
10559 comparison with constm1_rtx from vec_prefetch_gen part.
10561 2016-01-13 Richard Biener <rguenther@suse.de>
10563 PR tree-optimization/69013
10564 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
10565 Exchange assert for a test.
10567 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10570 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
10572 2016-01-13 Richard Biener <rguenther@suse.de>
10574 PR tree-optimization/69242
10575 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
10576 assert with a check.
10578 2016-01-13 Richard Biener <rguenther@suse.de>
10580 PR tree-optimization/69186
10581 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
10582 Properly guard vect_update_misalignment_for_peel call.
10584 2016-01-12 Jeff Law <law@redhat.com>
10586 PR tree-optimization/pr67755
10587 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
10588 "need_profile_correction".
10589 (thread_block_1): Initialize new field to false by default. If we
10590 have multiple thread paths through a common joiner to different
10591 final targets, then set new field to true.
10592 (compute_path_counts): Only do count adjustment when it's really
10595 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
10597 * doc/invoke.texi (Spec Files): Move section down in file, past
10598 all command-line option descriptions.
10600 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10602 PR middle-end/54809
10603 * doc/gty.texi: Remove documentation of mark_hook.
10604 * gengtype.c (struct write_types_data): Remove code to support
10605 mark_hook attribute.
10606 (walk_type): Likewise.
10607 (write_func_for_structure): Likewise.
10609 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
10611 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
10612 Directory Options, and -specs= to Overall Options.
10613 (Overall Options): Adjust similarly. Reorder to group related
10614 options together. Make -specs= cross-reference the spec file details.
10615 (Directory Options): Adjust similarly.
10617 2016-01-12 Jeff Law <law@redhat.com>
10619 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
10621 2016-01-12 Olivier Hainque <hainque@adacore.com>
10623 * gcc.c (spec_undefvar_allowed): New global.
10624 (process_command): Set to true when running for --version or --help,
10626 (getenv_spec_function): When the variable is not defined, use the
10627 variable name as the variable value if we're allowed not to issue
10630 2016-01-12 Bin Cheng <bin.cheng@arm.com>
10632 PR tree-optimization/68911
10633 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
10634 information computed for expression "init + nit * step".
10636 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
10638 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
10639 about name of GCC executable. Remove deleted node from menu.
10640 (Directory Options) <-B>: Remove cross-reference to deleted node.
10641 (Target Options): Delete section.
10643 2016-01-12 Christian Bruel <christian.bruel@st.com>
10646 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
10647 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
10649 2016-01-12 Jakub Jelinek <jakub@redhat.com>
10652 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
10653 aligned_mem is properly set for AVX512-VL floating point masked
10657 * ifcvt.c (cond_exec_process_if_block): When removing the last
10658 insn from then_bb, remove also any possible barriers that follow it.
10660 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
10664 * config/i386/iamcu.h (SIZE_TYPE): New macro.
10665 (PTRDIFF_TYPE): Likewise.
10666 (WCHAR_TYPE): Likewise.
10667 (WCHAR_TYPE_SIZE): Likewise.
10668 (STDINT_LONG32): Likewise.
10670 2016-01-12 Richard Biener <rguenther@suse.de>
10672 PR tree-optimization/69053
10673 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
10674 convert initial value for cond reductions.
10676 2016-01-12 Richard Biener <rguenther@suse.de>
10678 PR tree-optimization/69007
10679 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
10680 widen_sum after dot_prod and sad.
10682 2016-01-12 Richard Biener <rguenther@suse.de>
10684 PR tree-optimization/69168
10685 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
10686 pattern stmt SLP type.
10687 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
10688 end up unused so cope with that case.
10690 2016-01-12 Richard Biener <rguenther@suse.de>
10692 PR tree-optimization/69157
10693 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
10694 stmts def type only during analyze phase.
10695 (vectorizable_call): Likewise.
10696 (vectorizable_simd_clone_call): Likewise.
10697 (vectorizable_conversion): Likewise.
10698 (vectorizable_assignment): Likewise.
10699 (vectorizable_shift): Likewise.
10700 (vectorizable_operation): Likewise.
10701 (vectorizable_store): Likewise.
10702 (vectorizable_load): Likewise.
10704 2016-01-12 Richard Biener <rguenther@suse.de>
10706 PR tree-optimization/69174
10707 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
10709 (vectorizable_load): Properly compute the number of loads needed
10710 for permuted strided SLP loads and do not spuriously assign
10711 to SLP_TREE_VEC_STMTS.
10713 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
10715 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
10716 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
10717 (MD_EXEC_PREFIX): Remove.
10718 (MD_STARTFILE_PREFIX) Removee.
10719 (FILE_NAME_ABSOLUTE_P): Remove.
10720 (CPP_SPEC): Do not read macros from sys/version.h.
10721 (LINK_COMMAND_SPEC): Remove.
10722 (LOCAL_INCLUDE_DIR): Remove.
10723 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
10724 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
10725 (POST_LINK_SPEC): Define to invoke stubify after linker
10726 (LIBSTDCXX): Remove define
10727 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
10728 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
10729 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
10730 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
10731 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
10732 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
10733 (i386_djgpp_asm_named_section): Add propotype of new procedure
10735 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
10736 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
10737 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
10738 in config/i386/djgpp.h).
10739 (STANDARD_STARTFILE_PREFIX_2): Define identical to
10740 STANDARD_STARTFILE_PREFIX_1.
10741 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
10742 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
10743 installation errors.
10744 (MAX_OFILE_ALIGNMENT): Define to 128.
10745 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
10747 * config/i386/djgpp.c: New file. Add implementation of
10748 i386_djgpp_asm_named_section.
10750 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
10752 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
10753 Add rule for building djgpp.o.
10755 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10757 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
10758 (rtx_is_swappable_p): Reductions are swappable.
10759 (insn_is_swappable_p): V2DF reductions are swappable.
10761 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
10763 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
10764 reloads for other unsupported memory operands.
10766 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
10767 Jim Wilson <jim.wilson@linaro.org>
10770 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
10771 copy_to_mode_reg instead of force_reg.
10773 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
10776 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
10777 TARGET_80387 is true.
10779 2016-01-11 Jakub Jelinek <jakub@redhat.com>
10782 * lra-eliminations.c (move_plus_up): Only move plus up
10783 if subreg of the constant can be simplified into constant
10784 and use the simplified subreg of the constant instead of
10785 the original constant.
10787 * fold-const.c (fold_convertible_p): Don't return true
10788 for conversion of VECTOR_TYPE to same sized integral type.
10789 (fold_convert_loc): Fix up formatting. Fold conversion of
10790 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
10791 instead of NOP_EXPR.
10793 PR tree-optimization/69214
10794 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
10795 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
10798 PR tree-optimization/69207
10799 * tree-vect-slp.c (vect_get_constant_vectors): For
10800 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
10801 fold_convertible_p to vector_type's element type, and always
10802 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
10804 2016-01-11 Richard Biener <rguenther@suse.de>
10806 PR tree-optimization/69173
10807 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
10808 fixup the cycle if all stmts are in a pattern.
10810 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
10812 PR middle-end/68999
10813 * alias.c (base_alias_check): Move check for addresses with
10814 alignment ANDs before the call for compare_base_decls.
10815 (memrefs_conflict_p): Return -1 for different decls
10816 that went through alignment adjustments.
10818 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10820 PR rtl-optimization/68796
10821 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
10822 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
10823 and QImode comparisons against zero with CC_NZmode.
10824 * config/aarch64/iterators.md (short_mask): New mode_attr.
10826 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
10828 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
10829 (<avx512>_store<mode>_mask): Likewise.
10831 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
10832 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10834 PR rtl-optimization/68841
10835 * ifcvt.c (struct noce_if_info): Add orig_x field.
10836 (bbs_ok_for_cmove_arith): Add to_rename parameter.
10837 Don't record conflicts on to_rename if it's present.
10838 Allow memory destinations in sets.
10839 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
10840 blocks, passing orig_x to the checks.
10841 (noce_process_if_block): Set if_info->orig_x appropriately.
10843 2016-01-11 Tom de Vries <tom@codesourcery.com>
10845 PR tree-optimization/69069
10846 * tree-parloops.c (create_parallel_loop): Add missing phi args.
10848 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
10850 PR rtl-optimization/68920
10851 * config/i386/i386.c (ix86_option_override_internal): Restrict number
10852 of conditional moves for RTL if-conversion to 1 for
10853 TARGET_ONE_IF_CONV_INSN.
10854 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
10855 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
10856 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
10857 parameter to restirct number of conditional moves for
10859 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
10860 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
10863 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
10866 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
10867 onepart vars. Fix typo in comment. Fix reversed condition in
10869 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
10872 * var-tracking.c (dump_onepart_variable_differences): New.
10873 (dataflow_set_different): If a detailed dump is requested,
10874 delay early returns and dump differences between onepart
10875 variables present before and after, and added variables.
10877 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
10880 * expr.c (expand_expr_real_1): For boolean vector constants
10881 with a scalar mode use const_scalar_mask_from_tree.
10882 (const_scalar_mask_from_tree): New.
10883 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
10884 assigned to a mask type to handle constants.
10886 2016-01-11 Martin Jambor <mjambor@suse.cz>
10889 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
10890 useless parameters if we cannot change function signature.
10892 2016-01-11 Martin Jambor <mjambor@suse.cz>
10895 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
10898 2016-01-11 Tom de Vries <tom@codesourcery.com>
10900 PR tree-optimization/69109
10901 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
10904 2016-01-11 Tom de Vries <tom@codesourcery.com>
10906 PR tree-optimization/69108
10907 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
10908 res is not used in a phi.
10910 2016-01-11 Yury Gribov <y.gribov@samsung.com>
10913 * common.opt (frandom-seed): Fix parameter name.
10914 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
10916 2016-01-11 Tom de Vries <tom@codesourcery.com>
10918 PR tree-optimization/69058
10919 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
10922 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
10924 * config/arc/arc.opt (mdiv-rem): Add period to the end.
10925 (mcode-density): Likewise.
10927 2016-01-10 Tom de Vries <tom@codesourcery.com>
10929 PR tree-optimization/69062
10930 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
10931 (parallelize_loops): Don't paralelize loop that has phi with address
10934 2016-01-10 Tom de Vries <tom@codesourcery.com>
10936 PR tree-optimization/69039
10937 * tree-parloops.c (try_create_reduction_list): Only allow single exit
10940 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
10942 PR middle-end/68743
10943 * match.pd: Require target has function_c99_misc before doing
10944 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
10946 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
10948 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
10950 * configure: Regenerate.
10952 2016-01-09 Jakub Jelinek <jakub@redhat.com>
10954 PR middle-end/50865
10955 PR tree-optimization/69097
10956 * fold-const.h (expr_not_equal_to): New prototype.
10957 * fold-const.c: Include stringpool.h and tree-ssanames.h.
10958 (expr_not_equal_to): New function.
10959 * match.pd (X % -Y is the same as X % Y): Don't optimize
10960 unless X is known not to be equal to minimum or Y is known
10961 not to be equal to -1.
10962 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
10963 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
10964 (simplify_stmt_using_ranges): Adjust caller.
10965 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
10966 substitute_and_fold.
10968 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
10970 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
10973 2016-01-08 Jakub Jelinek <jakub@redhat.com>
10975 PR tree-optimization/69167
10976 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
10977 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
10979 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
10981 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
10982 Richard Biener <rguenther@suse.de>
10984 PR tree-optimization/68707
10985 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
10986 instances that can be handled via vect_load_lanes.
10988 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
10990 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
10991 if we can't determine address equivalence.
10992 * alias.c (compare_base_decl): Update for changed return value of
10993 symtab_node::equal_address_to.
10995 2016-01-08 Jason Merrill <jason@redhat.com>
10999 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
11000 * expr.c (store_field): Not here.
11001 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
11002 call with TREE_ADDRESSABLE type.
11003 * tree-cfg.c (verify_gimple_call): Adjust.
11005 2016-01-08 Olivier Hainque <hainque@adacore.com>
11007 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
11010 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
11012 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
11013 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
11014 (reduc_smin_v2sf): Rename to...
11015 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
11016 (reduc_splus_v2sf): Rename to...
11017 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
11019 2016-01-08 Jakub Jelinek <jakub@redhat.com>
11021 PR tree-optimization/69162
11022 * gimplify.c (gimplify_va_arg_expr): Encode original type of
11023 valist argument in another argument.
11024 (gimplify_modify_expr): Adjust for the above change. Cleanup.
11025 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
11026 to determine the va_list type, build a MEM_REF instead of
11027 build_fold_indirect_ref.
11029 PR tree-optimization/69172
11030 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
11033 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
11035 PR tree-optimization/67781
11036 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
11037 and cmpnop in two steps: first the ones not accessed in original
11038 gimple expression in a endian independent way and then the ones not
11039 accessed in the final result in an endian-specific way.
11041 2016-01-08 Jakub Jelinek <jakub@redhat.com>
11043 PR tree-optimization/69083
11044 * tree-vect-slp.c (vect_get_constant_vectors): For
11045 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
11046 element type. If op is fold_convertible_p to vector_type's element
11047 type, use NOP_EXPR instead of VCE.
11049 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
11051 PR rtl-optimization/67778
11052 PR rtl-optimization/68634
11053 PR rtl-optimization/68909
11054 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
11055 block from the stack until done with it. Remove a superfluous
11056 bitmap set. Remove a superfluous bitmap test.
11058 2016-01-07 Martin Sebor <msebor@redhat.com>
11061 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
11062 constraint on the type of arguments.
11064 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
11066 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
11067 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
11068 unaligned_access on the gcc_options set.
11069 * config/arm/arm.c (arm_option_override_internal): Use
11070 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
11072 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
11075 * config/i386/i386.c (ix86_frame_pointer_required): Enable
11076 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
11078 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
11081 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
11084 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
11085 depending on frame_pointer_needed before remaining integer and SSE
11086 registers are saved.
11088 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
11091 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
11093 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
11096 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
11097 Use the "xBm" constraint.
11098 (float<sseintvecmodelower><mode>2<mask_name><round_name):
11100 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
11101 (sse_cvtsi2ssq<round_name>): Likewise.
11102 (sse_cvtss2si<round_name>): Likewise.
11103 (sse_cvtss2siq<round_name>): Likewise.
11104 (sse2_cvtsi2sdq<round_name>): Likewise.
11105 (sse2_cvtsd2si<round_name>): Likewise.
11106 (sse2_cvtsd2siq<round_name>): Likewise.
11107 * config/i386/subst.md (round_nimm_scalar_predicate): New
11110 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
11112 PR middle-end/67639
11113 * varasm.c (make_decl_rtl): Mark invalid register vars as
11116 PR rtl-optimization/66206
11117 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
11118 All callers changed.
11120 2016-01-07 Jakub Jelinek <jakub@redhat.com>
11122 PR tree-optimization/69141
11123 * tree-ssa-pre.c: Include langhooks.h.
11124 (eliminate_dom_walker::before_dom_children): Use
11125 lang_hooks.decl_printable_name instead of
11126 cgraph_node::get ()->name ().
11128 PR middle-end/68960
11129 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
11130 it and DECL_ALIGN too.
11132 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
11134 * config/mips/mips-ftypes.def: Sort to lexicographical order.
11136 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
11139 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
11140 depending on frame_pointer_needed before remaining integer and SSE
11141 registers are saved.
11143 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11145 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
11146 mode iterator with VSX_M2.
11147 (*p9_vecstore_<mode>): Likewise.
11148 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
11149 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
11150 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
11151 (define_split for VSX_LE128 stores): Likewise.
11152 (define_peephole2 for TImode LE swaps): Likewise.
11153 (define_split for VSX_LE128 post-reload stores): Likewise.
11155 2016-01-06 Marek Polacek <polacek@redhat.com>
11158 * convert.c (convert_to_integer_1): Adjust call to
11159 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
11160 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
11161 EXPR instead of ARG.
11162 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
11164 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
11167 * doc/extend.texi (RL78 Variable Attributes): New section.
11169 2016-01-05 Marek Polacek <polacek@redhat.com>
11172 * builtins.c (get_memmodel): Use expansion point location rather than
11173 the input location. Call warning_at rather than warning.
11174 (expand_builtin_atomic_compare_exchange): Likewise.
11175 (expand_builtin_atomic_load): Likewise.
11176 (expand_builtin_atomic_store): Likewise.
11177 (expand_builtin_atomic_clear): Likewise.
11179 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
11182 * config/i386/i386.c (ix86_expand_vector_logical_operator):
11183 Replace nonimmediate_operand with vector_operand.
11184 * config/i386/predicates.md (vector_operand): New predicate.
11185 (general_vector_operand): Replace nonimmediate_operand with
11187 * config/i386/sse.md: Replace nonimmediate_operand with
11188 vector_operand and m constraint with Bm constraint on SSE
11189 patterns with 16-byte memory operand.
11190 * config/i386/subst.md (round_nimm_predicate): Replace
11191 nonimmediate_operand with vector_operand.
11192 (round_saeonly_nimm_predicate): Likewise.
11193 (round_saeonly_nimm_scalar_predicate): New.
11195 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
11198 * config/i386/constraints.md (Bm): New constraint.
11199 * config/i386/predicates.md (vector_memory_operand): New
11201 * config/i386/sse.md: Replace xm with xBm in plusminus and
11202 any_logic patterns.
11204 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
11207 * doc/extend.texi (V850 Function Attributes): New section.
11208 (V850 Variable Attributes): New section.
11210 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
11213 * doc/extend.texi (MicroBlaze Function Attributes): Document
11214 interrupt_handler and fast_interrupt attributes.
11216 2016-01-05 Sergei Trofimovich <siarheit@google.com>
11219 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
11220 for local symbolic operands.
11221 * config/ia64/predicates.md (local_symbolic_operand64): New
11224 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11226 PR rtl-optimization/68651
11227 * combine.c (combine_simplify_rtx): Canonicalize x + x into
11230 2016-01-05 Nathan Sidwell <nathan@acm.org>
11232 * alias.c (compare_base_decls): Use symtab_node::get.
11234 2016-01-05 Nick Clifton <nickc@redhat.com>
11237 * ira-costs.c (copy_cost): Initialise the t_icode field of the
11238 secondary_reload_info structure.
11241 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
11242 decls if weak support is available.
11244 2016-01-04 Martin Sebor <msebor@redhat.com>
11246 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
11248 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
11250 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
11251 OPTION_MASK_P9_DFORM.
11253 * config/rs6000/constraints.md (wo constraint): New constraint for
11256 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
11258 (rs6000_init_hard_regno_mode_ok): Likewise.
11260 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
11263 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
11264 expanders not to have constraints. Add support for ISA 3.0 xxperm
11265 instruction. Add support for fusing xxlor with xxperm.
11266 (altivec_vperm_<mode>_internal): Likewise.
11267 (altivec_vperm_v8hiv16qi): Likewise.
11268 (altivec_vperm_<mode>v16q): Likewise.
11269 (altivec_vperm_<mode>_uns): Likewise.
11270 (vperm_v8hiv4si): Likewise.
11271 (vperm_v16qiv8hi): Likewise.
11273 * doc/md.texi (RS/6000 constraints): Document wo constraint.
11275 2016-01-04 Jakub Jelinek <jakub@redhat.com>
11277 Update copyright years.
11279 * gcc.c (process_command): Update copyright notice dates.
11280 * gcov-dump.c (print_version): Ditto.
11281 * gcov.c (print_version): Ditto.
11282 * gcov-tool.c (print_version): Ditto.
11283 * gengtype.c (create_file): Ditto.
11284 * doc/cpp.texi: Bump @copying's copyright year.
11285 * doc/cppinternals.texi: Ditto.
11286 * doc/gcc.texi: Ditto.
11287 * doc/gccint.texi: Ditto.
11288 * doc/gcov.texi: Ditto.
11289 * doc/install.texi: Ditto.
11290 * doc/invoke.texi: Ditto.
11292 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
11294 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
11295 modes larger than TImode as TImode if NEON is not enabled.
11297 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
11300 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
11301 mode for %f0-%f31 only if TARGET_FPU.
11303 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
11306 * config/sparc/sparc.c (scan_record_type): Take into account subfields
11307 to compute the PACKED_P predicate.
11308 (function_arg_record_value): Minor tweaks.
11310 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
11312 * doc/install.texi (--with-multilib-list): Describe the meaning of the
11313 option for arm*-*-* targets.
11315 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
11317 * doc/extend.texi (Common Function Attributes): Move docs for
11318 MSP430-specific attributes to....
11319 (MSP430 Function Attributes): ...here. Delete the redundant
11320 entries and copy-edit the remaining text.
11321 (MSP430 Variable Attributes): Use uniform format for index
11322 entries and add a cross-reference to the corresponding function
11325 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
11327 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
11329 (x86 Options): Likewise.
11331 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
11335 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
11336 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
11337 to corresponding attribute.
11339 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
11341 * doc/extend.texi (Common Function Attributes) <noplt>: Move
11342 to correct alphabetization of table. Copy-edit and correct
11344 <stack_protect>: Likewise.
11345 <target_clones>: Likewise.
11347 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
11348 Correct punctuation.
11349 (Code Gen Options) <-fno-plt>: Copy-edit.
11351 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11354 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
11355 SI values. Explicitly convert SI to DI and vice-versa.
11357 2016-01-01 Jakub Jelinek <jakub@redhat.com>
11359 PR tree-optimization/69070
11360 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
11361 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
11364 * ubsan.c (ubsan_instrument_float_cast): Call
11365 initialize_sanitizer_builtins.
11368 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
11370 Copyright (C) 2016 Free Software Foundation, Inc.
11372 Copying and distribution of this file, with or without modification,
11373 are permitted in any medium without royalty provided the copyright
11374 notice and this notice are preserved.