Update ChangeLog and version files for release
[official-gcc.git] / gcc / ChangeLog
blob06ebfb1a548abc36a464ec713c33232c3c872baf
1 2016-12-21  Release Manager
3         * GCC 6.3.0 released.
5 2016-12-14  Uros Bizjak  <ubizjak@gmail.com>
7         PR target/59874
8         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_CLZS
9         and IX86_BUILTIN_CTZS.
10         (bdesc_args): Add __builtin_clzs and __builtin_ctzs.
11         (ix86_fold_builtin): Handle IX86_BUILTIN_CTZS and IX86_BUILTIN_CLZS.
13 2016-12-14  Wilco Dijkstra  <wdijkstr@arm.com>
14             Jakub Jelinek  <jakub@redhat.com>
16         PR target/78796
17         * config/aarch64/aarch64.c (aarch64_classify_symbol): Merge large
18         model checks into switch.
20 2016-12-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22         Backport from mainline
23         2016-11-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
25         * tree-ssa-math-opts.c (struct symbolic_number): Improve comment.
27 2016-12-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29         Backport from mainline
30         2016-11-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32         PR tree-optimization/77673
33         * tree-ssa-math-opts.c (struct symbolic_number): Add new src field.
34         (init_symbolic_number): Initialize src field from src parameter.
35         (perform_symbolic_merge): Select most dominated statement as the
36         source statement.  Set src field of resulting n structure from the
37         input src with the lowest address.
38         (find_bswap_or_nop): Rename source_stmt into ins_stmt.
39         (bswap_replace): Rename src_stmt into ins_stmt.  Initially get source
40         of load from src field rather than insertion statement.  Cancel
41         optimization if statement analyzed is not dominated by the insertion
42         statement.
43         (pass_optimize_bswap::execute): Rename src_stmt to ins_stmt.  Compute
44         dominance information.
46 2016-12-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
48         Backport from mainline
49         2016-12-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
51         PR target/72717
52         * config/rs6000/rs6000.c (rs6000_expand_vector_init): If the
53         V2DImode elements are SUBREG's convert the result into DImode
54         rather than failing in emit_move_insn.
56 2016-12-13  Iain Sandoe  <iain@codesourcery.com>
58         Backport from mainline
59         2016-12-11  Iain Sandoe  <iain@codesourcery.com>
61         PR rtl-optimization/71496
62         * config/rs6000/darwin.md (load_macho_picbase_si): Mark as non-
63         copyable.  (load_macho_picbase_di, reload_macho_picbase_si,
64         reload_macho_picbase_di): Likewise.
66 2016-12-12  Bernd Schmidt  <bschmidt@redhat.com>
68         Backport from mainline
69         2016-11-07  Bernd Schmidt  <bschmidt@redhat.com>
71         PR rtl-optimization/77309
72         * combine.c (make_compound_operation): Allow EQ for IN_CODE, and
73         don't assume an equality comparison for plain COMPARE.
74         (simplify_comparison): Pass a more accurate code to
75         make_compound_operation.
77 2016-12-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
79         Backport from mainline
80         2016-11-22  Thomas Preud'homme  <thomas.preudhomme@arm.com>
82         PR target/77904
83         * config/arm/arm.c (thumb1_compute_save_reg_mask): Mark frame pointer
84         in save register mask if it is needed.
86 2016-12-11  Iain Sandoe  <iain@codesourcery.com>
88         Backport from mainline
89         2016-11-27  Iain Sandoe  <iain@codesourcery.com>
90                     Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
92         PR target/67710
93         * config.in: Regenerate
94         * config/darwin-driver.c (darwin_driver_init): Emit a version string
95         for the assembler.
96         * config/darwin.h(ASM_MMACOSX_VERSION_MIN_SPEC): New, new tests.
97         * config/darwin.opt(asm_macosx_version_min): New.
98         * config/i386/darwin.h: Handle ASM_MMACOSX_VERSION_MIN_SPEC.
99         * configure: Regenerate
100         * configure.ac: Check for mmacosx-version-min handling.
102 2016-12-11  Iain Sandoe  <iain@codesourcery.com>
104         Backport from mainline
105         2016-11-27  Iain Sandoe  <iain@codesourcery.com>
107         PR target/57438
108         * config/i386/i386.c (ix86_code_end): Note that we emitted code
109         where the function might otherwise appear empty for picbase thunks.
110         (ix86_output_function_epilogue): If we find a zero-sized function
111         assume that reaching it is UB and trap.  If we find a trailing label
112         append a nop.
113         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): If we
114         find a zero-sized function assume that reaching it is UB and trap.
115         If we find a trailing label, append a nop.
117 2016-12-11 Iain Sandoe  <iain@codesourcery.com>
119         Backport from mainline
120         2016-11-27  Iain Sandoe  <iain@codesourcery.com>
122         PR target/71767
123         * config/darwin-sections.def (picbase_thunk_section): New.
124         * config/darwin.c (darwin_init_sections): Set up picbase thunk
125         section. (darwin_rodata_section, darwin_objc2_section,
126         machopic_select_section, darwin_asm_declare_constant_name,
127         darwin_emit_weak_or_comdat, darwin_function_section): Don’t use
128         coalesced with newer linkers.
129         (darwin_override_options): Decide on usage of coalesed sections
130         on the basis of the target linker version.
131         * config/darwin.h (MIN_LD64_NO_COAL_SECTS): New.
132         * config/darwin.opt  (mtarget-linker): New.
133         * config/i386/i386.c (ix86_code_end): Do not force the thunks into
134         a coalesced section, instead use a thunks section.
136         Backport from mainline
137         2016-11-28  Iain Sandoe  <iain@codesourcery.com>
139         PR target/71767
140         * configure.ac (with_ld64): Use portable method to extract the
141         major part of the version number.
142         * configure: Regenerated.
144         Backport from mainline
145         2016-11-27  Iain Sandoe  <iain@codesourcery.com>
147         PR target/71767
148         * configure.ac (with-ld64): New var, set for Darwin, set on
149         detection of ld64, gcc_cv_ld64_export_dynamic: New, New test.
150         * config/darwin.h: Use LD64_HAS_DYNAMIC export. DEF_LD64: New,
151         define.
152         * config/darwin10.h(DEF_LD64): Update for this target version.
153         * config/darwin12.h(LINK_GCC_C_SEQUENCE_SPEC): Remove rdynamic
154         test.  (DEF_LD64): Update for this target version.
155         * configure: Regenerated.
156         * config.in: Regenerated.
158         Backport from mainline
159         2016-11-27  Iain Sandoe  <iain@codesourcery.com>
161         PR target/71767
162         * config/darwin.c (imachopic_indirection_name): Make data
163         section indirections linker-visible.
164         * config/darwin.h (ASM_GENERATE_INTERNAL_LABEL): Make local
165         constant labels linker-visible.
167 2016-12-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
169         Backport from mainline
170         2016-11-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
172         PR target/77933
173         * config/arm/arm.c (thumb1_expand_prologue): Distinguish between lr
174         being live in the function and lr needing to be saved.  Distinguish
175         between already saved pushable registers and registers to push.
176         Check for LR being an available pushable register.
178 2016-12-09  Nathan Sidwell  <nathan@acm.org>
180         PR C++/78550
181         * convert.c (convert_to_integer_1): Maybe fold conversions to
182         integral types with fewer bits than its mode.
184 2016-12-09  Richard Biener  <rguenther@suse.de>
186         Backport from mainline
187         2016-11-09  Richard Biener  <rguenther@suse.de>
189         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
190         Look at the DR_BASE_ADDRESS object for forcing alignment.
192         2016-11-07  Richard Biener  <rguenther@suse.de>
194         PR tree-optimization/78189
195         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Fix
196         alignment computation.
198 2016-12-09  Richard Biener  <rguenther@suse.de>
200         Backport from mainline
201         2016-11-28  Richard Biener  <rguenther@suse.de>
203         PR tree-optimization/78542
204         * tree-ssa-ccp.c (evaluate_stmt): Only valueize simplification
205         if allowed.
207         2016-11-23  Richard Biener  <rguenther@suse.de>
209         PR tree-optimization/78482
210         * tree-cfgcleanup.c: Include tree-ssa-loop-niter.h.
211         (remove_forwarder_block_with_phi): When merging with a loop
212         header creates a new latch reset number of iteration information
213         of the loop.
215         2016-11-23  Richard Biener  <rguenther@suse.de>
217         PR middle-end/71762
218         * match.pd ((~X & Y) -> X < Y, (X & ~Y) -> Y < X,
219         (~X | Y) -> X <= Y, (X | ~Y) -> Y <= X): Remove.
221         2016-11-11  Richard Biener  <rguenther@suse.de>
223         PR tree-optimization/71575
224         * graphite-isl-ast-to-gimple.c (copy_cond_phi_nodes): Remove
225         bogus assert.
227         2016-11-07  Richard Biener  <rguenther@suse.de>
229         PR tree-optimization/78224
230         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
231         Split the fallthru edge in case its successor may have PHIs.
233         2016-11-05  David Edelsohn  <dje.gcc@gmail.com>
234                 Richard Biener  <rguenther@suse.de>
236         PR bootstrap/78188
237         PR c++/71848
238         * ipa-comdats.c (pass_ipa_comdats::gate): Require HAVE_COMDAT_GROUP.
240         2016-09-20  Richard Biener  <rguenther@suse.de>
242         PR tree-optimization/77646
243         * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
244         a VDEF.
246 2016-12-07  Segher Boessenkool  <segher@kernel.crashing.org>
248         Backport from mainline
249         2016-11-12  Segher Boessenkool  <segher@kernel.crashing.org>
251         PR target/77957
252         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
253         return early if !optional_tbtab.
255 2016-12-07  Jakub Jelinek  <jakub@redhat.com>
257         Backported from mainline
258         2016-11-28  Jakub Jelinek  <jakub@redhat.com>
260         PR middle-end/78540
261         * rtl.h (remove_reg_equal_equiv_notes): Return bool instead of void.
262         * rtlanal.c (remove_reg_equal_equiv_notes): Return true if any
263         note has been removed.
264         * postreload.c (reload_combine_recognize_pattern): If
265         remove_reg_equal_equiv_notes returns true, call df_notes_rescan.
267         PR rtl-optimization/78546
268         * simplify-rtx.c (neg_const_int): When negating most negative
269         number in mode wider than HOST_BITS_PER_WIDE_INT, use
270         simplify_const_unary_operation to produce CONST_DOUBLE or
271         CONST_WIDE_INT.
272         (simplify_plus_minus): Hanlde the case where neg_const_int
273         doesn't return a CONST_INT.
275         PR fortran/78298
276         * tree-nested.c (convert_local_reference_stmt): After adding
277         shared (FRAME.NN) clause to omp parallel, task or target,
278         add it also to all outer omp parallel, task or target constructs.
280         2016-11-23  Jakub Jelinek  <jakub@redhat.com>
282         PR middle-end/69183
283         * omp-low.c (build_outer_var_ref): Change lastprivate argument
284         to code, pass it recursively, adjust uses.  For OMP_CLAUSE_PRIVATE
285         on worksharing constructs, treat it like clauses on simd construct.
286         Formatting fix.
287         (lower_rec_input_clauses): For OMP_CLAUSE_PRIVATE_OUTER_REF pass
288         OMP_CLAUSE_PRIVATE as last argument to build_outer_var_ref.
289         (lower_lastprivate_clauses): Pass OMP_CLAUSE_LASTPRIVATE instead
290         of true as last argument to build_outer_var_ref.
292         2016-11-22  Jakub Jelinek  <jakub@redhat.com>
294         PR middle-end/78416
295         * expmed.c (expand_divmod): Use wide_int for computation of
296         op1_is_pow2.  Don't set it if op1 is 0.  Formatting fixes.
297         Use size <= HOST_BITS_PER_WIDE_INT instead of
298         HOST_BITS_PER_WIDE_INT >= size.
300         2016-11-21  Jakub Jelinek  <jakub@redhat.com>
302         PR middle-end/67335
303         * omp-simd-clone.c (simd_clone_adjust_argument_types): Use NULL prefix
304         for tmp simd array if DECL_NAME (parm) is NULL.
306         2016-11-18  Jakub Jelinek  <jakub@redhat.com>
308         PR middle-end/78419
309         * multiple_target.c (get_attr_len): Start with argnum and increment
310         argnum on every arg.  Use strchr in a loop instead of counting commas
311         manually.
312         (get_attr_str): Increment argnum for every comma in the string.
313         (separate_attrs): Use for instead of while loop, simplify.
314         (expand_target_clones): Rename defenition argument to definition.
315         Free attrs and attr_str even when diagnosing errors.  Temporarily
316         change input_location around targetm.target_option.valid_attribute_p
317         calls.  Don't emit warning or errors if that function fails.
319         2016-11-16  Jakub Jelinek  <jakub@redhat.com>
321         PR rtl-optimization/78378
322         * combine.c (make_extraction): Use force_to_mode for non-{REG,MEM}
323         inner only if pos is 0.  Fix up formatting.
325         PR fortran/78299
326         * omp-low.c (expand_omp_for_static_nochunk): Don't assert
327         that loop->header == body_bb if broken_loop.
329         2016-11-07  Jakub Jelinek  <jakub@redhat.com>
331         PR target/77834
332         * dse.c (dse_step5): Call scan_reads even if just
333         insn_info->frame_read.  Improve and fix dump file messages.
335         PR target/78227
336         * config/i386/i386.c (ix86_expand_sse_cmp): Force dest into
337         cmp_mode argument even for -O0 if cmp_mode != mode and maskcmp.
339         2016-11-04  Jakub Jelinek  <jakub@redhat.com>
341         PR target/77834
342         * alias.c (nonoverlapping_memrefs_p): Return 0 if exprx or expry
343         doesn't have rtl set.
345         2016-10-29  Jakub Jelinek  <jakub@redhat.com>
347         PR rtl-optimization/77919
348         * expr.c (expand_expr_real_1) <normal_inner_ref>: Only avoid forcing
349         into memory if both modes are complex and their inner modes have the
350         same precision.  If the two modes are different complex modes, convert
351         each part separately and generate a new CONCAT.
353         2016-10-28  Jakub Jelinek  <jakub@redhat.com>
355         PR rtl-optimization/77919
356         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force CONCAT into
357         MEM if mode1 is not a complex mode.
359         2016-10-27  Jakub Jelinek  <jakub@redhat.com>
361         PR middle-end/78025
362         * omp-simd-clone.c (simd_clone_adjust): Handle noreturn declare simd
363         functions.
365         2016-10-26  Jakub Jelinek  <jakub@redhat.com>
366                     Martin Liska  <mliska@suse.cz>
368         PR fortran/77973
369         * gimplify.c (gimplify_adjust_omp_clauses_1): For all added map
370         clauses with OMP_CLAUSE_SIZE being a decl, call omp_notice_variable
371         on outer context if any.
373         2016-10-05  Jakub Jelinek  <jakub@redhat.com>
375         PR sanitizer/66343
376         * ubsan.c (ubsan_ids): New GTY(()) array.
377         (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
378         instead of static local counters.
380         2016-09-22  Jakub Jelinek  <jakub@redhat.com>
382         PR fortran/77665
383         * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
384         for all IFN_GOMP_SIMD_* internal fns, not just for
385         IFN_GOMP_SIMD_ORDERED_*.
387         2016-09-20  Jakub Jelinek  <jakub@redhat.com>
389         PR middle-end/77624
390         * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
391         cast to void * if the cast is from some other pointer type.
393         2016-09-19  Jakub Jelinek  <jakub@redhat.com>
394                     Jan Hubicka  <jh@suse.cz>
396         PR target/77587
397         * cgraph.c (cgraph_node::rtl_info): Pass &avail to
398         ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
399         Call ultimate_alias_target just once, not up to 4 times.
401 2016-12-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
403         Backport from mainline
404         2016-11-16  Thomas Preud'homme  <thomas.preudhomme@arm.com>
406         * config/arm/arm.md (arm_addsi3): Add alternative for addition of
407         general register with general register or ARM constant into SP
408         register.
410 2016-12-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
412         Backport from mainline
413         2016-12-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
414                     Stefan Freudenberger  <stefan@reservoir.com>
416         PR tree-optimization/78646
417         * gimple-ssa-strength-reduction.c (replace_ref): The pointer
418         addition used for the memory base expression should have the type
419         of the candidate.
421 2016-12-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
423         Backport from mainline
424         2016-09-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
425                     Michael Meissner  <meissner@linux.vnet.ibm.com>
427         PR target/72827
428         * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
429         reg+reg addressing for TImode.
430         (rs6000_legitimate_address_p): Only allow register indirect
431         addressing for TImode, even without TARGET_QUAD_MEMORY.
433 2016-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
435         Backport from mainline
436         2016-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
438         * config/s390/s390-modes.def (CCVEQANY, CCVH, CCVHANY, CCVHU)
439         (CCVHUANY): Remove modes.
440         (CCVIH, CCVIHU, CCVIALL, CCVIANY, CCVFALL, CCVFANY): Add modes and
441         documentation.
442         * config/s390/s390.c (s390_match_ccmode_set): Rename cc modes.
443         (s390_expand_vec_compare_scalar): Pick one of the cc consumer
444         modes.
445         (s390_branch_condition_mask): Adjust to use the new cc consumer
446         modes.  The new modes allow for proper reversal in the middle-end.
447         (s390_expand_vec_compare_cc): Determine the proper cc producer and
448         consumer modes for a comparison.
449         * config/s390/s390.md: Rename CCVH to CCVIH and CCVHU to CCVIHU
450         throughout the file.
451         * config/s390/vx-builtins.md: Likewise.
453 2016-12-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
455         Backport from mainline
456         2016-12-01  Alan Modra  <amodra@gmail.com>
458         * gcc/config/rs6000/rs6000.c (insn_is_swappable_p): Properly
459         look inside UNSPEC_VSX_XXSPLTW vec.
461 2016-12-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
463         Back port from trunk
464         2016-11-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
466         PR target/78101
467         * config/rs6000/predicates.md (fusion_addis_mem_combo_load): Add
468         the appropriate checks for SFmode/DFmode load/stores in GPR
469         registers.
470         (fusion_addis_mem_combo_store): Likewise.
471         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Rename
472         fusion_fpr_* to fusion_vsx_* and add in support for ISA 3.0 scalar
473         d-form instructions for traditional Altivec registers.
474         (emit_fusion_p9_load): Likewise.
475         (emit_fusion_p9_store): Likewise.
476         * config/rs6000/rs6000.md (p9 fusion store peephole2): Remove
477         early clobber from scratch register.  Do not match if the register
478         being stored is the scratch register.
479         (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_load): Rename fusion_fpr_*
480         to fusion_vsx_* and add in support for ISA 3.0 scalar d-form
481         instructions for traditional Altivec registers.
482         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
483         (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
484         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
486 2016-12-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
488         Backport from mainline
489         2016-11-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
491         PR target/48863
492         PR inline-asm/70184
493         * tree-ssa-ter.c (temp_expr_table): Add reg_vars_cnt field.
494         (new_temp_expr_table): Initialise reg_vars_cnt.
495         (free_temp_expr_table): Release reg_vars_cnt.
496         (process_replaceable): Add reg_vars_cnt argument, set reg_vars_cnt
497         field of TAB.
498         (find_replaceable_in_bb): Use the above to record register variable
499         write occurrences and cancel replacement across them.
501 2016-11-29  Kaz Kojima  <kkojima@gcc.gnu.org>
503         Backported from mainline
504         2016-11-19  Kaz Kojima  <kkojima@gcc.gnu.org>
506         PR target/78426
507         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Use copy_to_mode_reg
508         instead of force_reg.
509         (sh_expand_setmem): Likewise.
511 2016-11-24  Eric Botcazou  <ebotcazou@adacore.com>
513         PR middle-end/78429
514         * tree.h (wi::fits_to_boolean_p): New predicate.
515         (wi::fits_to_tree_p): Use it for boolean types.
516         * tree.c (int_fits_type_p): Likewise.
518 2016-11-24  Martin Liska  <mliska@suse.cz>
520         Backported from mainline
521         2016-11-22  Martin Liska  <mliska@suse.cz>
523         PR ipa/78309
524         * ipa-icf.c (void sem_item::set_hash): Update m_hash_set.
525         (sem_function::get_hash): Use the new field.
526         (sem_function::parse): Remove an argument from ctor.
527         (sem_variable::parse): Likewise.
528         (sem_variable::get_hash): Use the new field.
529         (sem_item_optimizer::read_section): Use new ctor and set hash.
530         * ipa-icf.h: _hash is removed from sem_item::sem_item,
531         sem_variable::sem_variable, sem_function::sem_function.
533 2016-11-23  Uros Bizjak  <ubizjak@gmail.com>
535         * config/i386/i386.md (*<any_or:code>hi_1): Fix operand 2 constraints.
536         (kxnor<mode>): Return "#" for alternative 0.
538 2016-11-23  Richard Biener  <rguenther@suse.de>
540         Backport from mainline
541         2016-11-23  Richard Biener  <rguenther@suse.de>
543         PR lto/78472
544         * tree.c (gimple_canonical_types_compatible_p): Ignore zero-sized
545         fields.
547         2016-11-17  Richard Biener  <rguenther@suse.de>
549         PR middle-end/78305
550         * fold-const.c (negate_expr_p): Fix multiplication case.
552         2016-11-16  Richard Biener  <rguenther@suse.de>
554         PR middle-end/78333
555         * gimplify.c (gimplify_function_tree): Do not instrument
556         GNU extern inline functions.
558         2016-11-07  Richard Biener  <rguenther@suse.de>
560         PR tree-optimization/78228
561         * tree-ssa-phiopt.c (abs_replacement): Avoid introducing
562         undefined behavior.
564         2016-11-04  Richard Biener  <rguenther@suse.de>
566         PR middle-end/78185
567         * loop-invariant.c (find_exits): Record entering inner
568         loops as possibly exiting to handle infinite sub-loops.
569         * tree-ssa-loop-im.c: Include tree-ssa-loop-niter.h.
570         (fill_always_executed_in_1): Honor infinite child loops.
572         2016-10-06  Richard Biener  <rguenther@suse.de>
574         PR tree-optimization/77855
575         * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
576         instead of removing the current item while iterating over the set
577         which is not safe.
579 2016-11-22  Walter Lee  <walt@tilera.com>
581         Backport from mainline
582         2016-11-22  Walter Lee  <walt@tilera.com>
584         * config/tilegx/tilegx.md (trap): New pattern.
585         * config/tilepro/tilepro.md (trap): Likewise.
587 2016-11-22  Walter Lee  <walt@tilera.com>
589         Backport from mainline
590         2016-11-22  Walter Lee  <walt@tilera.com>
592         * config/tilegx/tilegx.md (*zero_extract): Use
593         define_insn_and_split instead of define_insn; Handle pos + size >
594         64.
595         (*sign_extract): Likewise.
597 2016-11-22  Uros Bizjak  <ubizjak@gmail.com>
599         * Makefile.in ($(lang_checks_parallelized)): Fix detection
600         of -j argument.
602 2016-11-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
604         Backport from mainline
605         2016-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
607         PR target/77822
608         * config/aarch64/aarch64.md (*tb<optab><mode>1): Use
609         aarch64_simd_shift_imm_<mode> predicate for operand 1.
610         (<optab>, ANY_EXTRACT): Use tighter predicates on operands 2 and 3
611         to restrict them to an appropriate range and add FAIL check if the
612         region they specify is out of range.  Delete useless constraint
613         strings.
614         (*<optab><mode>, ANY_EXTRACT): Add appropriate predicates on operands
615         2 and 3 to restrict their range and add pattern predicate.
617 2016-11-18  Walter Lee  <walt@tilera.com>
619         Backport from mainline
620         2016-11-18  Walter Lee  <walt@tilera.com>
622         * config/tilegx/tilegx.c (tilegx_gen_bundles): Preserve
623           end-of-bundle marker for consecutive barriers.
625 2016-11-18  Walter Lee  <walt@tilera.com>
627         Backport from mainline
628         2016-11-18  Walter Lee  <walt@tilera.com>
630         * config/tilegx/tilegx.md (clzsi2): Fix for big-endian.
632 2016-11-15  Matthias Klose  <doko@ubuntu.com>
634         * doc/install.texi: Move the 'Overriding configure test results'
635         subsub section to the 'Cross-Compiler-Specific Options' sub section.
637 2016-11-13  Eric Botcazou  <ebotcazou@adacore.com>
639         * ipa-icf.c (sem_function::merge): Do not create a wrapper also if the
640         original function needs a static chain.
642 2016-11-11  Uros Bizjak  <ubizjak@gmail.com>
644         PR target/78310
645         * config/i386/i386.md (rotate to rotatex splitter): Avoid overflow
646         when calculating operand 2.
647         (rotate to rotatex zext splitter): Ditto.
649 2016-11-11  Dominik Vogt  <vogt@linux.vnet.ibm.com>
651         PR target/77822
652         * config/s390/s390.md ("extzv", "*extzv<mode>_zEC12")
653         ("*extzv<mode>_z10"): Check validity of zero_extend arguments.
655 2016-11-09  Uros Bizjak  <ubizjak@gmail.com>
657         PR target/78262
658         * config/i386/i386.md (*<shift_insn><mode>3_doubleword): Mark
659         operand 0 as earlyclobber.
660         (*ashl<mode>3_doubleword): Ditto for all operand 0 alternatives.
662 2016-11-07  Peter Bergner  <bergner@vnet.ibm.com>
664         Backport from trunk
665         2016-11-07  Peter Bergner  <bergner@vnet.ibm.com>
667         * config.gcc (powerpc*-*-*, rs6000*-*-*): Remove setting of
668         INCLUDE_EXTRA_SPEC for Advance Toolchain builds.
670 2016-11-06  Jack Howarth  <howarth.at.gcc@gmail.com>
672         PR driver/78206
673         * incpath.c: (remove_dup(): Also silently ignore EPERM.
675 2016-11-07  Richard Biener  <rguenther@suse.de>
677         PR target/78229
678         * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
679         EH info.
681 2016-11-03  Martin Liska  <mliska@suse.cz>
683         Backport from mainline
684         2016-08-12  Martin Liska  <mliska@suse.cz>
685         Adam Fineman  <afineman@afineman.com>
687         * gcov.c (process_file): Create .gcov file when .gcda
688         file is missing.
690 2016-11-03  Richard Biener  <rguenther@suse.de>
692         Backport from mainline
693         2016-09-29  Richard Biener  <rguenther@suse.de>
695         PR tree-optimization/77768
696         * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
697         with stores to a place we know has a constant value.
698         * tree-vrp.c (set_defs_to_varying): New helper avoiding
699         writing to vr_const_varying.
700         (vrp_initialize): Call it.
701         (vrp_visit_stmt): Likewise.
702         (evrp_dom_walker::before_dom_children): Likewise.
703         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
704         Handle stores to readonly memory when removing redundant stores.
706 2016-11-03  Eric Botcazou  <ebotcazou@adacore.com>
708         Backport from mainline
709         2016-10-17  Eric Botcazou  <ebotcazou@adacore.com>
711         * explow.c (validize_mem): Do not modify the argument in-place.
713 2016-11-02  Will Schmidt  <will_schmidt@vnet.ibm.com>
715         Backport from trunk
716         2016-10-26  Will Schmidt <will_schmidt@vnet.ibm.com>
718         PR middle-end/72747
719         * gimplify.c (gimplify_init_constructor): Move emit of constructor
720         assignment to earlier in the if/else logic.
722 2016-11-02  Richard Biener  <rguenther@suse.de>
724         Backport from mainline
725         2016-11-02  Richard Biener  <rguenther@suse.de>
727         PR tree-optimization/78047
728         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Initialize
729         fake field at offset zero conservatively regarding to may_have_pointers.
731         2016-10-07  Richard Biener  <rguenther@suse.de>
733         PR tree-optimization/77879
734         * tree-ssa-structalias.c (handle_const_call): Properly handle
735         NRV return slots.
736         (handle_pure_call): Likewise.
738         2016-10-06  Richard Biener  <rguenther@suse.de>
740         PR tree-optimization/77839
741         * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
742         lattice transition.
744         2016-09-27  Richard Biener  <rguenther@suse.de>
746         PR tree-optimization/77745
747         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
748         When removing redundant stores make sure to check compatibility
749         of the TBAA state for downstream accesses.
750         * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
751         value-numbering virtual operands for store matches.
753         2016-09-21  Richard Biener  <rguenther@suse.de>
755         PR tree-optimization/77648
756         * tree-ssa-structalias.c (process_constraint): Handle all DEREF
757         with complex RHS.
758         (make_transitive_closure_constraints): Adjust comment.
759         (make_any_offset_constraints): New function.
760         (handle_rhs_call): Make sure to first expand a pointer to all
761         subfields before transitively closing it.
762         (handle_const_call): Likewise.  Properly expand returned
763         pointers as well.
764         (handle_pure_call): Likewise.
766 2016-11-01  John David Anglin  <danglin@gcc.gnu.org>
768         PR target/78166
769         * config/pa/pa.md: Add new shift/add patterns to handle
770         (plus (mult (reg) (mem_shadd_operand)) (reg)) source operand.
772 2016-11-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
774         Backport from mainline
775         2016-10-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
777         PR rtl-optimization/78038
778         * ree.c (get_defs): Return NULL if a defining insn for REG cannot
779         be deduced to set REG through the RTL structure.
780         (make_defs_and_copies_lists): Return false on a failing get_defs call.
782 2016-10-29  John David Anglin  <danglin@gcc.gnu.org>
784         * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
785         (MALLOC_ABI_ALIGNMENT): Define.
787 2016-10-28  Richard Biener  <rguenther@suse.de>
789         PR middle-end/78128
790         PR middle-end/71002
791         * fold-const.c (make_bit_field_ref): Only adjust alias set
792         when the original alias set was zero.
794 2016-10-26  Uros Bizjak  <ubizjak@gmail.com>
796         Backport from mainline
797         2016-10-21  Jakub Jelinek  <jakub@redhat.com>
799         PR target/78057
800         * config/i386/i386.c: Include fold-const-call.h, tree-vrp.h
801         and tree-ssanames.h.
802         (ix86_fold_builtin): Fold IX86_BUILTIN_[LT]ZCNT{16,32,64}
803         with INTEGER_CST argument.
804         (ix86_gimple_fold_builtin): New function.
805         (TARGET_GIMPLE_FOLD_BUILTIN): Define.
807         Backport from mainline
808         2016-10-20 Uros Bizjak  <ubizjak@gmail.com>
810         PR target/78037
811         * config/i386/bmiintrin.h (__tzcnt_u16): Call __builtin_ia32_tzcnt_u16.
812         (__tzcnt_u32, _tzcnt_u32): Call __builtin_ia32_tzcnt_u32.
813         (__tzcnt_u64, _tzcnt_u64): Call __builtin_ia32_tzcnt_u64.
814         * config/i386/lzcntintrin.h (__lzcnt_u16): Call
815         __builtin_ia32_lzcnt_u16.
816         (__lzcnt_u32, _lzcnt_u32): Call __builtin_ia32_lzcnt_u32.
817         (__lzcnt_u64, _lzcnt_u64): Call __builtin_ia32_lzcnt_u64.
818         * config/i386/i386.md (UNSPEC_LZCNT, UNSPEC_TZCNT): New unspecs.
819         (ctz<mode>2, *ctz<mode>2): Use SWI48 mode iterator.
820         (bmi_tzcnt_<mode>): New expander.
821         (*bmi_tzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
822         (*bmi_tzcnt_<mode>_falsedep, *bmi_tzcnt_<mode>): New insn patterns.
823         (clz<mode>2_lzcnt, *clz<mode>2_lzcnt): Use SWI48 mode iterator.
824         (lzcnt_<mode>): New expander.
825         (*lzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
826         (*lzcnt_<mode>_falsedep, *lzcnt_<mode>): New insn patterns.
827         * config/i386/i386-builtin-types.def (UINT_FTYPE_UINT): New.
828         (UINT64_FTYPE_UINT64): New.
829         * config/i386/i386-builtin.def (__builtin_clzs): Remove description.
830         (__builtin_ia32_lzcnt_u16): New description.
831         (__builtin_ia32_lzcnt_u32): Ditto.
832         (__builtin_ia32_lzcnt_u64): Ditto.
833         (__builtin_ctzs): Remove description.
834         (__builtin_ia32_tzcnt_u16): New description.
835         (__builtin_ia32_tzcnt_u32): Ditto.
836         (__builtin_ia32_tzcnt_u64): Ditto.
837         * config/i386/i386.c (ix86_expand_args_builtin): Handle
838         UINT_FTYPE_UINT and UINT64_FTYPE_UINT64.
840 2016-10-25  Eric Botcazou  <ebotcazou@adacore.com>
842         * tree.h (wi::fits_to_tree_p): Accept only 0 and 1 for boolean types.
843         * tree.c (int_fits_type_p): Likewise.  Adjust head comment.
845 2016-10-24  Bernd Edlinger  <bernd.edlinger@hotmail.de>
847         Backport from mainline
848         2016-09-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
850         PR tree-optimization/77550
851         * tree-vect-stmts.c (create_array_ref): Change parameters.
852         (get_group_alias_ptr_type): New function.
853         (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
855 2016-10-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
857         Backport from mainline
858         2016-10-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
860         PR tree-optimization/77916
861         * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
862         Don't allow a MINUS_EXPR for pointer arithmetic for either known
863         or unknown strides.
864         (record_increment): Increments of -1 for unknown strides just use
865         a multiply initializer like other negative values.
866         (analyze_increments): Remove stopgap solution for -1 increment
867         applied to pointer arithmetic.
868         (insert_initializers): Requirement of initializer for -1 should be
869         based on pointer-typedness of the candidate basis.
871 2016-10-23  Eric Botcazou  <ebotcazou@adacore.com>
873         * config/sparc/sparc.md (cpu_feature): Minor tweak.
874         (enabled): Likewise.
875         (movsi_insn, movdi_insn_sp32, movdi_insn_sp64, movsf_insn,
876         movdf_insn_sp32, movdf_insn_sp64, zero_extendsidi2_insn_sp64,
877         sign_extendsidi2_insn, mov<VM32:mode>_insn, mov<VM64:mode>_insn_sp64,
878         mov<VM64:mode>_insn_sp32, not_<code><mode>, nand<mode>_vis,
879         <code>_not1<mode>_vi, <code>_not2<mode>_vis, one_cmpl<mode>2,
880         fcmp<code><GCM:gcm_name>, pdistn<mode>_vis): Likewise.
882 2016-10-23  Eric Botcazou  <ebotcazou@adacore.com>
884         * config/sparc/sparc-c.c (sparc_target_macros): Replace TARGET_64BIT
885         with TARGET_ARCH64.  Define __VIS to 0x400 if TARGET_VIS4.
887 2016-10-19  Uros Bizjak  <ubizjak@gmail.com>
889         PR target/77991
890         * config/i386/i386.c (legitimize_tls_address)
891         <case TLS_MODEL_INITIAL_EXEC>: For TARGET_64BIT || TARGET_ANY_GNU_TLS
892         convert dest to Pmode if different than Pmode.
894 2016-10-18  Kugan Vivekanandarajah  <kuganv@linaro.org>
896         Backport from mainline
897         2016-10-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
899         * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
900         copying.
902 2016-10-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
904         Backport from mainline
905         2016-10-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
907         PR tree-optimization/77937
908         * gimple-ssa-strength-reduction.c (analyze_increments): Use
909         POINTER_TYPE_P on the candidate type to determine whether
910         candidates in this chain require pointer arithmetic.
912         2016-10-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
914         PR tree-optimization/77937
915         * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
916         to infinite when we have a pointer with an increment of -1.
918 2016-10-17  Martin Liska  <mliska@suse.cz>
920         Backported from mainline
921         2016-10-13  Martin Liska  <mliska@suse.cz>
923         PR tree-optimization/77943
924         * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
925         a different EH landing pads.
927 2016-10-17  Eric Botcazou  <ebotcazou@adacore.com>
929         PR bootstrap/77995
930         Backport from mainline
931         2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>
933         * tree.h (build_complex_type): Add second parameter with default.
934         * tree.c (build_complex_type): Add NAMED second parameter and adjust
935         recursive call.  Create a TYPE_DECL only if NAMED is true.
936         (build_common_tree_nodes): Pass true in calls to build_complex_type.
938 2016-10-16  Eric Botcazou  <ebotcazou@adacore.com>
940         * config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
941         constants in CONST_VECTORs.
943 2016-10-15  Eric Botcazou  <ebotcazou@adacore.com>
945         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
946         register as destination of bmask.
947         (vector_init_bshuffle): Likewise.
948         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
949         (bmaskdi_vis): Enable only in 64-bit mode.
951 2016-10-13  Andrew Senkevich  <andrew.senkevich@intel.com>
953         Backport from trunk
954         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
955         OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
956         (ix86_handle_option): Deleted handle of OPT_mpcommit.
957         * config.gcc: Deleted pcommitintrin.h
958         * config/i386/pcommitintrin.h: Deleted file.
959         * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
960         * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
961         detection.
962         * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
963         __PCOMMIT__.
964         * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
965         (PTA_PCOMMIT, IX86_BUILTIN_PCOMMIT, __builtin_ia32_pcommit): Deleted.
966         (ix86_option_override_internal): Deleted handle of option.
967         (ix86_valid_target_attribute_inner_p): Deleted pcommit.
968         * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
969         * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
970         (pcommit): Deleted instruction.
971         * config/i386/i386.opt: Mention -mpcommit deprecation.
972         * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
974 2016-10-13  Tom de Vries  <tom@codesourcery.com>
976         revert:
977         2016-10-11  Tom de Vries  <tom@codesourcery.com>
979         backport from trunk:
980         2016-10-11  Tom de Vries  <tom@codesourcery.com>
982         PR middle-end/77558
983         * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
984         special-casing.
986 2016-10-11  Tom de Vries  <tom@codesourcery.com>
988         backport from trunk:
989         2016-10-11  Tom de Vries  <tom@codesourcery.com>
991         PR middle-end/77558
992         * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
993         special-casing.
995 2016-10-10  Georg-Johann Lay  <avr@gjlay.de>
997         * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
999 2016-10-06  Uros Bizjak  <ubizjak@gmail.com>
1001         PR target/77874
1002         * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
1003         Remove wrong assert.
1004         (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
1005         Use <round_constraint> as operand 1 constraint.
1007 2016-10-06  James Clarke  <jrtc27@jrtc27.com>
1008             Eric Botcazou  <ebotcazou@adacore.com>
1010         PR target/77759
1011         * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
1012         (classify_registers): Don't set it
1013         (function_arg_slotno): Don't initialize and test it.  Tidy up.
1015 2016-10-04  Uros Bizjak  <ubizjak@gmail.com>
1017         Backport from mainline
1018         2016-09-29  Uros Bizjak  <ubizjak@gmail.com>
1020         * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
1021         ext_level before calling CPUID with 0x80000008.
1023         2016-09-29  Uros Bizjak  <ubizjak@gmail.com>
1025         PR target/77756
1026         * config/i386/cpuid.h (__get_cpuid_count): New.
1027         (__get_cpuid): Rename __level to __leaf.
1029 2016-09-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
1031         Back port from trunk
1033         2016-09-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
1035         PR target/77670
1036         * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
1037         New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
1038         instructions when you want to invert the test.
1039         * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
1040         correct order for XXSEL.
1041         (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
1042         for using XSCMP{EQ,GT,GE}DP.
1044 2016-09-28  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1045             Alan Modra  <amodra@gmail.com>
1047         Backport from mainline
1048         2016-07-01  Alan Modra  <amodra@gmail.com>
1050         PR rtl-optimization/71709
1051         * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
1052         being set, not referenced.
1054 2016-09-27  David Edelsohn  <dje.gcc@gmail.com>
1056         Backport from mainline
1057         2016-09-27  David Edelsohn  <dje.gcc@gmail.com>
1059         * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
1060         VAR_DECL string.
1062         2016-09-24  David Edelsohn  <dje.gcc@gmail.com>
1064         * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
1065         * configure: Regenerate.
1067 2016-09-27  Richard Biener  <rguenther@suse.de>
1069         Backport from mainline
1070         2016-09-01  Richard Biener  <rguenther@suse.de>
1072         PR middle-end/77436
1073         * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
1074         check whether the result fits the desired result type.
1076         2016-09-19  Richard Biener  <rguenther@suse.de>
1078         PR tree-optimization/77514
1079         * tree-ssa-pre.c (create_expression_by_pieces): Optimize
1080         search for folded stmt.
1082         2016-09-15  Richard Biener  <rguenther@suse.de>
1084         PR tree-optimization/77514
1085         * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
1086         only forced_stmts sequence.
1088         2016-09-15  Richard Biener  <rguenther@suse.de>
1090         PR middle-end/77544
1091         * fold-const.c (split_tree): Do not split constant ~X.
1093         2016-09-19  Richard Biener  <rguenther@suse.de>
1095         PR middle-end/77605
1096         * tree-data-ref.c (analyze_subscript_affine_affine): Use the
1097         proper niter to bound the loops.
1099         2016-09-22  Richard Biener  <rguenther@suse.de>
1101         PR middle-end/77679
1102         * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
1103         fold fails.
1105 2016-09-25  Uros Bizjak  <ubizjak@gmail.com>
1107         Backport from mainline
1108         2016-09-21  Richard Biener  <rguenther@suse.de>
1109                     Jakub Jelinek  <jakub@redhat.com>
1111         PR tree-optimization/77621
1112         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
1113         group at non-vectorizable stmts.
1115         Backport from mainline
1116         2016-09-20  Uros Bizjak  <ubizjak@gmail.com>
1118         PR target/77621
1119         * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
1120         Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
1121         (ix86_add_stmt_cost): Penalize DFmode vector operations
1122         for !TARGET_VECTORIZE_DOUBLE.
1124 2016-09-22  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1126         Backport from 2016-09-22 trunk r240388.
1128         * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
1129         (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
1131 2016-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1133         * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
1135 2016-09-21  Georg-Johann Lay  <avr@gjlay.de>
1137         Backport from 2016-09-21 trunk r240306.
1139         PR target/77326
1140         * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
1141         touches some regs mentioned in cc_status, do CC_STATUS_INIT.
1143 2016-09-20  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1145         Backport from mainline
1146         2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1148         * lra-constraints.c (match_reload): Pass information about other
1149         output operands.  Create new unique register value if matching input
1150         operand shares same register value as output operand being considered.
1151         (curr_insn_transform): Record output operands already processed.
1153 2016-09-16  Jonathan Wakely  <jwakely@redhat.com>
1155         * doc/extend.texi (Integer Overflow Builtins): Fix type of out
1156         parameters for functions taking long long arguments.
1158 2016-09-16  David Edelsohn  <dje.gcc@gmail.com>
1160         Backported from mainline
1161         2016-08-26  David Edelsohn  <dje.gcc@gmail.com>
1163         PR target/77349
1164         * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
1166 2016-09-16  Jakub Jelinek  <jakub@redhat.com>
1167             Eric Botcazou  <ebotcazou@adacore.com>
1169         PR middle-end/77594
1170         * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
1171         through into expand_addsub_overflow after expand_neg_overflow.
1173 2016-09-16  Jakub Jelinek  <jakub@redhat.com>
1175         Backported from mainline
1176         2016-09-14  Jakub Jelinek  <jakub@redhat.com>
1178         PR sanitizer/68260
1179         * tsan.c: Include target.h.
1180         (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
1181         (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
1182         (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
1183         BUILT_IN_ATOMIC_TEST_AND_SET entries.
1184         (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
1186         2016-09-08  Jakub Jelinek  <jakub@redhat.com>
1188         PR fortran/77516
1189         * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
1190         OMP_CLAUSE_SAFELEN_EXPR.
1192         2016-09-06  Jakub Jelinek  <jakub@redhat.com>
1194         PR target/69255
1195         * config/i386/i386.c (ix86_expand_builtin): For builtin with
1196         unsupported or unknown ISA, use expand_call.
1198 2016-09-06  Uros Bizjak  <ubizjak@gmail.com>
1200         Backport from mainline
1201         2016-09-05  Uros Bizjak  <ubizjak@gmail.com>
1203         PR rtl-optimization/77452
1204         * explow.c (plus_constant) <case MEM>: Extract scalar constant from
1205         inner-mode reference to a CONST_VECTOR constant in the constant pool.
1207 2016-09-01  Jakub Jelinek  <jakub@redhat.com>
1209         Backported from mainline
1210         2016-08-30  Jakub Jelinek  <jakub@redhat.com>
1212         PR tree-optimization/72866
1213         * tree-vect-patterns.c (search_type_for_mask): Turn into
1214         a small wrapper, move all code to ...
1215         (search_type_for_mask_1): ... this new function.  Add caching
1216         and adjust recursive calls.
1218         PR debug/77363
1219         * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
1220         instead of lookup_type_die (type_main_variant (type)) even for array
1221         types.
1223         PR middle-end/77377
1224         * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
1225         constant pool reference return x instead of c.
1227         2016-08-19  Jakub Jelinek  <jakub@redhat.com>
1229         * config/i386/t-i386 (i386-c.o): Don't depend on
1230         i386-builtin-types.inc.
1231         (i386.o): Depend on i386-builtin-types.inc.
1233         2016-08-17  Jakub Jelinek  <jakub@redhat.com>
1235         PR middle-end/77259
1236         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
1237         turning a call into __builtin_unreachable-like noreturn call, adjust
1238         gimple_call_set_fntype.
1239         * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
1240         gimple_call_fntype has void return type.
1242         2016-08-16  Jakub Jelinek  <jakub@redhat.com>
1244         PR target/71910
1245         * tree-cfg.c (execute_fixup_cfg): Add node variable, use it.  Before inlining,
1246         add cgraph edge for the added __builtin_unreachable call.
1248 2016-09-01  Gerald Pfeifer  <gerald@pfeifer.com>
1250         * doc/extend.texi (SPU Built-in Functions): Remove stale
1251         references to material formerly at IBM and Sony.
1253 2016-09-01  Matthew Wahab  <matthew.wahab@arm.com>
1255         PR target/77281
1256         * config/arm/arm.c (neon_valid_immediate): Delete declaration.
1257         Use const_vec_duplicate to check for duplicated elements.
1259 2016-09-01  Eric Botcazou  <ebotcazou@adacore.com>
1261         * config/i386/i386.c (ix86_option_override_internal): Also disable the
1262         STV pass if -mstackrealign is enabled.
1264 2016-08-31  Patrick Palka  <ppalka@gcc.gnu.org>
1266         Backport from mainline
1267         2016-08-27  Patrick Palka  <ppalka@gcc.gnu.org>
1269         PR tree-optimization/71077
1270         PR tree-optimization/68542
1271         * fold-const.c (fold_relational_const): Fix folding of
1272         VECTOR_CST comparisons that have a scalar boolean result type.
1274 2016-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
1276         * doc/install.texi (Binaries): www.opencsw.org now uses https.
1278 2016-08-31  Jakub Sejdak  <jakub.sejdak@phoesys.com>
1280         * config.gcc: Add support for arm*-*-phoenix* targets.
1281         * config/arm/t-phoenix: New.
1282         * config/phoenix.h: New.
1284 2016-08-29  Uros Bizjak  <ubizjak@gmail.com>
1286         PR target/77403
1287         * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
1288         template for intel asm dialect.
1289         (vec_set_hi_<mode><mask_name>): Ditto.
1291 2016-08-29  Eric Botcazou  <ebotcazou@adacore.com>
1293         * Makefile.in (gcov-iov.h): Add dummy recipe.
1295 2016-08-28  Uros Bizjak  <ubizjak@gmail.com>
1297         Backport from mainline
1298         2016-08-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
1300         * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
1301         for targets amdfam10 and barcelona.
1303         Backport from mainline
1304         2016-08-21  Uros Bizjak  <ubizjak@gmail.com>
1306         PR target/77270
1307         * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
1308         TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
1309         non-SSE2 athlons only, otherwise prefer SSE prefetches.
1311         Backport from mainline
1312         2016-08-19  Uros Bizjak  <ubizjak@gmail.com>
1314         PR target/77270
1315         * config/i386/i386.c (ix86_option_override_internal): Remove
1316         PTA_PRFCHW from entries that also have PTA_3DNOW flag.
1317         Enable SSE prefetch also for TARGET_PREFETCHWT1.
1318         Do not try to enable TARGET_PRFCHW ISA flag here.
1319         * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
1320         Rewrite expander function body.
1321         (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
1323 2016-08-28  Tom de Vries  <tom@codesourcery.com>
1325         backport from trunk:
1326         2016-08-28  Tom de Vries  <tom@codesourcery.com>
1328         PR lto/70955
1329         * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
1330         'sysv_abi va_list' attribute.
1331         (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
1332         (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
1333         attributes.
1335 2016-08-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1337         Backport from mainline
1338         2016-08-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1340         PR target/72863
1341         * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
1342         (vsx_store_<mode>): Likewise.
1344 2016-08-24  Richard Biener  <rguenther@suse.de>
1346         Backport from mainline
1347         2016-08-17  Richard Biener  <rguenther@suse.de>
1349         PR tree-optimization/76490
1350         * tree-vrp.c (update_value_range): Preserve overflow infinities
1351         when intersecting with ranges from get_range_info.
1352         (operand_less_p): Handle overflow infinities correctly.
1353         (value_range_constant_singleton): Use vrp_operand_equal_p
1354         to handle overflow max/min correctly.
1355         (vrp_valueize): Likewise.
1356         (union_ranges): Likewise.
1357         (intersect_ranges): Likewise.
1359 2016-08-24  Sebastian Huber  <sebastian.huber@embedded-brains.de>
1361         * config/arm/t-rtems: Add vfp multilib.
1363 2016-08-23  Richard Biener  <rguenther@suse.de>
1365         Backport from mainline
1366         2016-08-16  Richard Biener  <rguenther@suse.de>
1368         PR tree-optimization/76783
1369         * tree-ssa-propagate.c (ssa_prop_init): Use RPO order.  Clear
1370         BB visited flags at start.
1372         2016-08-12  Richard Biener  <rguenther@suse.de>
1374         PR tree-optimization/72851
1375         * tree-ssa-propagate.c: Include cfganal.h.  Rewrite block and stmt
1376         worklists to use bitmaps indexed in execution order.
1377         (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
1378         bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
1379         (cfg_blocks): Make a bitmap.
1380         (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
1381         New globals.
1382         (cfg_blocks_empty_p): Adjust.
1383         (cfg_blocks_add): Likewise.
1384         (cfg_blocks_get): Likewise.
1385         (add_ssa_edge): Likewise.
1386         (add_control_edge): Likewise.
1387         (simulate_stmt): Likewise.
1388         (process_ssa_edge_worklist): Likewise.
1389         (simulate_block): Likewise.
1390         (ssa_prop_init): Compute PRE order and stmt UIDs.
1391         (ssa_prop_fini): Adjust.
1392         (ssa_propagate): Adjust.
1394 2016-08-22  Uros Bizjak  <ubizjak@gmail.com>
1396         Backport from mainline
1397         2016-08-15  Uros Bizjak  <ubizjak@gmail.com>
1399         PR target/72867
1400         * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
1401         Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
1402         for !flag_finite_math_only or flag_signed_zeros.
1403         (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
1404         *<code><mode>3_finite<mask_name><round_saeonly_name>.  Do not
1405         depend on flag_finite_math_only.
1406         (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
1407         New insn pattern.
1408         (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
1409         (*ieee_smin<mode>3): Ditto.
1410         (*ieee_smax<mode>3): Ditto.
1411         * config/i386/mmx.md (mmx_<code>v2sf3): Emit
1412         mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
1413         flag_signed_zeros.
1414         (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite.  Do not
1415         depend on flag_finite_math_only.
1416         (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
1417         (*mmx_<code>v2sf3): Remove.
1418         * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
1419         * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
1420         flag_signed_zeros instead of !flag_unsafe_math_optimizations.
1422 2016-08-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1424         Backport from mainline
1425         2016-07-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1427         PR middle-end/71700
1428         * expr.c (store_constructor): Mask sign-extended bits when widening
1429         sub-word constructor element at the start of a word.
1431 2016-08-22  Richard Biener  <rguenther@suse.de>
1433         * BASE-VER: Set to 6.2.1.
1435 2016-08-22  Release Manager
1437         * GCC 6.2.0 released.
1439 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
1441         Backport from mainline
1442         2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
1444         PR middle-end/70895
1445         * gimplify.c (omp_add_variable): Adjust/add variable mapping on
1446         enclosing parallel construct for reduction variables on OpenACC loop
1447         directives.
1449 2016-08-18  Oleg Endo  <olegendo@gcc.gnu.org>
1451         Backport from mainline
1452         2016-06-17  DJ Delorie  <dj@redhat.com>
1454         PR target/71338
1455         * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
1456         * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
1457         (umulqihi3_virt): Likewise.
1458         * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
1459         (umulqihi3_real): Likewise.
1461 2016-08-16  Eric Botcazou  <ebotcazou@adacore.com>
1463         * doc/install.texi (*-*-solaris2*): Adjust latest change.
1465 2016-08-15  Martin Liska  <mliska@suse.cz>
1467         Backported from mainline
1468         2016-08-15  Martin Liska  <mliska@suse.cz>
1470         PR driver/72765
1471         * gcc.c (do_spec_1): Call save_string with the right size.
1473 2016-08-15  Jakub Jelinek  <jakub@redhat.com>
1475         PR debug/71906
1476         * dwarf2out.c (string_types): New variable.
1477         (gen_array_type_die): Change early_dwarf handling of
1478         DW_AT_string_length, create DW_OP_call4 referencing the
1479         length var temporarily.  Handle parameters that are pointers
1480         to string length.
1481         (adjust_string_types): New function.
1482         (gen_subprogram_die): Temporarily set string_types to local var,
1483         call adjust_string_types if needed.
1484         (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
1485         New functions.
1486         (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
1488 2016-08-15  Richard Biener  <rguenther@suse.de>
1490         PR tree-optimization/73434
1491         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
1492         TBAA info on the base when forwarding a non-invariant address.
1494 2016-08-15  Eric Botcazou  <ebotcazou@adacore.com>
1496         * doc/install.texi (*-*-solaris2*): Fix version number and document
1497         requirement on GNU make for building libjava with the Solaris linker.
1499 2016-08-15  Martin Liska  <mliska@suse.cz>
1500             Jakub Jelinek  <jakub@redhat.com>
1502         PR tree-optimization/72824
1503         * tree-loop-distribution.c (const_with_all_bytes_same)
1504         <case VECTOR_CST>: Fix a typo.
1506 2016-08-14  Uros Bizjak  <ubizjak@gmail.com>
1508         Backport from mainline
1509         2016-08-14  Uros Bizjak  <ubizjak@gmail.com>
1511         PR target/76342
1512         * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
1513         Renamed from _mm512_undefined_si512.
1514         (_mm_undefined_si512): New definition.
1516         Backport from mainline:
1517         2016-08-09  David Wohlferd  <dw@LimeGreenSocks.com>
1519         * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
1520         unused variable __O.
1522         Backport from mainline:
1523         2016-08-09  Uros Bizjak  <ubizjak@gmail.com>
1525         PR target/72843
1526         * config/i386/i386.md (*movtf_internal): Use
1527         lra_in_progress || reload_completed instead of !can_create_pseudo_p
1528         in the insn constraint.
1529         (*movxf_internal): Ditto.
1530         (*movdf_internal): Ditto.
1531         (*movsf_internal): Ditto.
1533 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
1535         PR c/71512
1536         * ubsan.c (instrument_si_overflow): Pass true instead of false
1537         to gsi_replace.
1538         (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
1539         of bbs.  Return TODO_cleanup_cfg if any returned true.
1541 2016-08-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1543         Backport from mainline
1544         2016-08-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1546         PR tree-optimization/71083
1547         * tree-predcom.c (ref_at_iteration): Correctly align the
1548         reference type.
1550 2016-08-12  James Greenhalgh  <james.greenhalgh@arm.com
1552         Backport from mainline
1553         2016-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
1555         PR Target/72819
1556         * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
1557         (aarch64_fp16_ptr_type_node): Likewise.
1558         * config/aarch64/aarch64-simd-builtins.c
1559         (aarch64_fp16_ptr_type_node): Define.
1560         (aarch64_init_fp16_types): New, refactored out of...
1561         (aarch64_init_builtins): ...here, update to call
1562         aarch64_init_fp16_types.
1563         * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
1564         HFmode.
1565         (aapcs_vfp_sub_candidate): Likewise.
1567 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1569         Backport from mainline
1570         2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1572         * config/s390/s390-builtin-types.def: Add INT128 types.
1573         * config/s390/s390-builtins.def: Add INT128 variants for the add
1574         sub low-level builtins dealing with TImode.
1575         * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
1576         via subreg when expanding a builtin.
1577         * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
1578         UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
1579         Fix comment.
1580         * config/s390/vecintrin.h: Adjust builtin names accordingly.
1581         * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
1582         ("vec_addc<mode>", "vec_addc_u128"): Merge to
1583         "vacc<bhfgq>_<mode>".
1584         ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
1585         ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
1586         ("vec_subc<mode>", "vec_subc_u128"): Merge to
1587         "vscbi<bhfgq>_<mode>".
1588         ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
1589         ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
1591 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1593         Backport from mainline
1594         2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1596         * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
1597         and s390_vlgv* builtins as element selector.
1599 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1601         Backport from mainline
1602         2016-07-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1604         * config/s390/s390.c (s390_expand_vec_init): Force initializer
1605         element to register if it doesn't match general_operand.
1607 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1609         Backport from mainline
1610         2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1612         * config/s390/vecintrin.h: Fix file description in comment.
1614 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1616         Backport from mainline
1617         2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1619         * config/s390/s390-builtin-types.def: Change builtin type naming
1620         scheme to match builtin-types.def.
1622 2016-08-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
1624         Backport from mainline
1625         2016-08-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
1627         PR target/72853
1628         * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
1629         being an offsettable address.
1631 2016-08-10  Jakub Jelinek  <jakub@redhat.com>
1633         Backported from mainline
1634         2016-08-09  Jakub Jelinek  <jakub@redhat.com>
1636         PR tree-optimization/72824
1637         * tree-loop-distribution.c (const_with_all_bytes_same): Verify
1638         real_zerop is not negative.
1640 2016-08-09  Martin Jambor  <mjambor@suse.cz>
1642         PR ipa/71981
1643         * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
1644         if instance is a MEM_REF.
1646 2016-08-09  Richard Biener  <rguenther@suse.de>
1648         Backport from mainline
1649         2016-08-09  Richard Biener  <rguenther@suse.de>
1651         PR ipa/68273
1652         * ipa-prop.c (ipa_modify_formal_parameters): Build
1653         parameter types with natural alignment also for the
1654         over-aligned case.
1656         2016-07-15  Richard Biener  <rguenther@suse.de>
1658         PR tree-optimization/71881
1659         * tree-loop-distribution.c (destroy_loop): Remove blocks in
1660         reverse DOM order to make debug temp generation happy.
1662 2016-08-09  Alan Modra  <amodra@gmail.com>
1664         PR target/72802
1665         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
1666         alternatives.  Put loads first, then stores, and reg/reg moves
1667         within same class later.  Delete attr length.
1669 2016-08-09  Alan Modra  <amodra@gmail.com>
1671         PR target/72802
1672         * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
1673         (mem_operand_ds_form): New predicate.
1674         * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
1675         * config/rs6000/constraints.md (wY): New constraint.
1676         * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
1677         (extendsfdf2_fpr): Replace o constraint with wY.
1679 2016-08-08  Georg-Johann Lay  <avr@gjlay.de>
1681         Backport from 2016-07-29 trunk r238863.
1683         PR rtl-optimization/71976
1684         * combine.c (get_last_value): Return 0 if the argument for which
1685         the function is called has a wider mode than the recorded value.
1687 2016-08-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
1689         Backport from trunk
1690         2016-07-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
1692         PR target/71869
1693         * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
1694         __float128 support when we don't have hardware support, so that
1695         the IEEE built-in functions like isgreater, first call __unordkf3
1696         to make sure neither operand is a NaN, and if both operands are
1697         ordered, do the normal comparison.
1699 2016-08-04  Uros Bizjak  <ubizjak@gmail.com>
1701         PR target/72805
1702         * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
1703         Cast builtin function result to __mmask16 instead of __mmask8.
1704         (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
1705         (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
1706         (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
1708 2016-08-03  Georg-Johann Lay  <avr@gjlay.de>
1710         PR 70677
1711         * common/config/avr/avr-common.c (avr_option_optimization_table)
1712         [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
1714 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
1716         Backport from 2016-08-01 trunk r238948.
1718         PR target/72767
1719         * config/avr/avr.md (length) [branch]: Correct insn length
1720         attribute for forward branches.
1722 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
1724         Backport from 2016-06-16 trunk r237536.
1725         2016-06-16  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1727         PR target/71151
1728         * config/avr/avr.c (avr_asm_init_sections): Remove setup of
1729         progmem_swtable_section.
1730         (progmem_swtable_section): Remove.
1731         (avr_asm_function_rodata_section): Remove.
1732         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
1733         * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION): Define to 1.
1735 2016-07-29  Marek Polacek  <polacek@redhat.com>
1737         Backport from mainline
1738         2016-07-29  Marek Polacek  <polacek@redhat.com>
1740         PR c/7652
1741         * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
1742         (altivec_expand_st_builtin): Likewise.
1743         * config/i386/i386.c (ix86_expand_args_builtin): Likewise.
1744         (ix86_expand_round_builtin): Likewise.
1746 2016-07-27  Segher Boessenkool  <segher@kernel.crashing.org>
1748         PR target/71216
1749         * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
1750         when to emit a ".machine" pseudo-op.
1752 2016-07-26  Alan Modra  <amodra@gmail.com>
1754         PR target/72103
1755         * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
1756         sri->t_icode.
1758 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
1760         PR sanitizer/71953
1761         * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
1762         before builtin_decl_implicit.
1764         * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
1766 2016-07-21  Andrew Sutton  <andrew.n.sutton@gmail.com>
1768         Improving concepts performance and diagnostics.
1769         * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
1770         for constraint satisfaction and subsumption.
1771         * timevar.h (auto_timevar): New constructor that matches the push/pop
1772         pattern of usage in pt.c.
1774 2016-07-20  John David Anglin  <danglin@gcc.gnu.org>
1776         Backport from mainline
1777         2016-07-16  John David Anglin  <danglin@gcc.gnu.org>
1779         * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
1780         register parameters.  Remove code to initialize argument pointer
1781         on TARGET_64BIT.  Optimize call to _mcount when it can be reached
1782         using a pc-relative branch.  Cleanup conditional code.
1783         * config/pa/pa.md (call_mcount): New expander.
1784         (call_mcount_nonpic): New insn.
1785         (call_mcount_pic): New insn and split.
1786         (call_mcount_pic_post_reload): New insn.
1787         (call_mcount_64bit): New insn and split.
1788         (call_mcount_64bit_post_reload): New insn.
1790 2016-07-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1792         Backport from mainline
1793         2016-07-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1795         * config/s390/s390.c (s390_encode_section_info): Remove mode size
1796         check.
1798 2016-07-20  Martin Jambor  <mjambor@suse.cz>
1800         PR fortran/71688
1801         * trans-decl.c (gfc_generate_function_code): Use get_create rather
1802         than create to get a call graph node.
1804 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
1806         PR rtl-optimization/71916
1807         * cfgrtl.c (contains_no_active_insn_p): Return false also for
1808         bb which have a single succ fake edge.
1810 2016-07-19  Aldy Hernandez  <aldyh@redhat.com>
1812         PR debug/71855
1813         * dwarf2out.c (gen_subprogram_die): Only call
1814         gen_unspecified_parameters_die while dumping early dwarf.
1816 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
1818         PR middle-end/71874
1819         * gimple-fold.c (fold_builtin_memory_op): Use
1820         get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
1822 2016-07-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
1824         Back port from mainline
1825         2016-07-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
1827         PR target/71493
1828         * config/rs6000/rs6000.c (rs6000_function_value): Fix
1829         unintentional System V.4 structure return breakage for structures
1830         with a single floating point element.
1832 2016-07-18  Martin Liska  <mliska@suse.cz>
1834         Backported from mainline
1835         2016-07-12  Martin Liska  <mliska@suse.cz>
1837         PR rtl-optimization/71634
1838         * ira-build.c (mark_loops_for_removal): Properly iterate
1839         loops.
1841 2016-07-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1843         Backport from mainline
1844         2016-07-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1846         * config/s390/s390.c (s390_encode_section_info): Always set
1847         notaligned marker if mode size is 0 or no MEM_ALIGN info could be
1848         found.
1850 2016-07-15  Alan Modra  <amodra@gmail.com>
1852         Apply from mainline
1853         2016-07-11  Alan Modra  <amodra@gmail.com>
1854         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
1855         (ctr<mode>): Add unspec.
1856         (ctr<mode>_internal*): Likewise.
1858 2016-07-14  Alan Modra  <amodra@gmail.com>
1860         PR target/71733
1861         * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
1862         with p9_vector override before power9-dform override.
1864 2016-07-13  Ilya Enkovich  <ilya.enkovich@intel.com>
1866         Backport from mainline r238086.
1867         2016-07-07  Ilya Enkovich  <ilya.enkovich@intel.com>
1869         PR ipa/71624
1870         * ipa-inline-analysis.c (compute_inline_parameters): Set
1871         local.can_change_signature to false for intrumentation
1872         thunk callees.
1874 2016-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
1875             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1877         Backport from mainline
1878         2016-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
1879                     Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1881         * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
1882         prototype.
1883         * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
1884         * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
1885         (SIGNBIT): New mode iterator.
1886         (Fsignbit): New mode attribute.
1887         (signbit<mode>2): Change operand1 to match FLOAT128 instead of
1888         IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
1889         when direct moves are available.
1890         (signbit<mode>2_dm): New define_insn_and_split).
1891         (signbit<mode>2_dm2): New define_insn.
1893 2016-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
1895         Backport from mainline
1896         2016-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
1898         PR target/71805
1899         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
1900         The xxperm and xxpermr instructions require that the 2nd input
1901         operand overlap with the output operand, and not the 1st.
1902         (altivec_vperm_v8hiv16qi): Likewise.
1903         (altivec_vperm_<mode>_uns_internal): Likewise.
1904         (altivec_vpermr_<mode>_internal): Likewise.
1905         (vperm_v8hiv4si): Likewise.
1906         (vperm_v16qiv8hi): Likewise.
1908 2016-07-12  Segher Boessenkool  <segher@kernel.crashing.org>
1910         Backport from mainline
1911         2016-07-06  Segher Boessenkool  <segher@kernel.crashing.org>
1913         PR target/70098
1914         PR target/71763
1915         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
1916         *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
1917         constraint.
1919 2016-07-11  Jakub Jelinek  <jakub@redhat.com>
1921         PR middle-end/71758
1922         * omp-low.c (expand_omp_target): Gimplify device.
1924         PR tree-optimization/71823
1925         * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
1926         to get vec_oprnds2 from op2.
1928 2016-07-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
1930         Backport from mainline r238055.
1931         2016-07-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
1933         PR tree-optimization/71518
1934         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
1935         misalign also for outer loops with negative step.
1937 2016-07-08  Martin Liska  <mliska@suse.cz>
1939         Backported from mainline
1940         2016-07-08  Martin Liska  <mliska@suse.cz>
1942         PR middle-end/71606
1943         * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
1944         folding produces SAVE_EXPRs, thus return false for the type.
1946 2016-07-08  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1948         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): Remove
1949         redundant and erroneous definition of this macro accidentally
1950         inserted during backporting.
1951         (BU_P9_64BIT_MISC_0): Likewise.
1952         (BU_P9_MISC_0): Likewise.
1954 2016-07-08  Jiong Wang  <jiong.wang@arm.com>
1956         Back port from the trunk
1957         2016-07-08  Jiong Wang  <jiong.wang@arm.com>
1959         * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
1960         variants.
1961         (smin): Likewise.
1962         (fmax): New entry.
1963         (fmin): Likewise.
1964         * config/aarch64/arm_neon.h (vmaxnm_f32): Use
1965         __builtin_aarch64_fmaxv2sf.
1966         (vmaxnmq_f32): Likewise.
1967         (vmaxnmq_f64): Likewise.
1968         (vminnm_f32): Likewise.
1969         (vminnmq_f32): Likewise.
1970         (vminnmq_f64): Likewise.
1972 2016-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
1974         Back port from trunk
1975         2016-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
1977         PR target/71806
1978         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
1979         enable -mfloat128-hardware by default.
1980         (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
1981         that IEEE 128-bit hardware support needs.
1982         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
1983         -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
1984         Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
1985         floating point requires.
1986         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
1987         -mfloat128 and -mfloat128-hardware changes.
1989 2016-07-08  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1991         Backport from mainline r237912
1992         2016-07-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1994         * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
1995         Exchange the order of the second and third operands in the vpermr
1996         instruction tmeplate.
1998 2016-07-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
2000         Back port from the trunk
2001         2016-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
2003         PR target/71720
2004         * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
2005         the insns, use an insn form that does not adjust the offset on
2006         little endian systems.
2008 2016-07-07  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2010         Backport from mainline r237885
2011         2016-06-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2013         * config/rs6000/altivec.md (darn_32): Change the condition to
2014         TARGET_P9_MISC instead of TARGET_MODULO.
2015         (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
2016         condition expression.
2017         (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
2018         condition expression.
2019         * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
2020         (DFP_TEST): New code iterator.
2021         (dfptstsfi_<code>_mode>): New define_expand.
2022         (*dfp_sgnfcnc_<mode>): New define_insn.
2023         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
2024         definition next to BU_P9_MISC_1 definition and change the MASK
2025         value to RS6000_BTM_P9_MISC.
2026         (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
2027         (BU_P9_64BIT_MISC_0): Likewise.
2028         (BU_P9_DFP_MISC_0): New macro definition.
2029         (BU_P9_DFP_MISC_1): New macro definition.
2030         (BU_P9_DFP_MISC_2): New macro definition.
2031         (BU_P9_DFP_OVERLOAD_1): New macro definition.
2032         (BU_P9_DFP_OVERLOAD_2): New macro definition.
2033         (BU_P9_DFP_OVERLOAD_3): New macro definition.
2034         (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
2035         (TSTSFI_LT_TD): Likewise.
2036         (TSTSFI_EQ_DD): Likewise.
2037         (TSTSFI_EQ_TD): Likewise.
2038         (TSTSFI_GT_DD): Likewise.
2039         (TSTSFI_GT_TD): Likewise.
2040         (TSTSFI_OV_DD): Likewise.
2041         (TSTSFI_OV_TD): Likewise.
2042         (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
2043         (TSTSFI_LT_DD): Likewise.
2044         (TSTSFI_LT_TD): Likewise.
2045         (TSTSFI_EQ): Likewise.
2046         (TSTSFI_EQ_DD): Likewise.
2047         (TSTSFI_EQ_TD): Likewise.
2048         (TSTSFI_GT): Likewise.
2049         (TSTSFI_GT_DD): Likewise.
2050         (TSTSFI_GT_TD): Likewise.
2051         (TSTSFI_OV): Likewise.
2052         (TSTSFI_OV_DD): Likewise.
2053         (TSTSFI_OV_TD): Likewise.
2054         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2055         overloaded test significance functions.
2056         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
2057         OPTION_MASK_P9_MISC into the representation of this mask.
2058         (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
2059         of this mask.
2060         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
2061         RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
2062         non-zero.
2063         (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
2064         argument is a 6-bit unsigned literal value if the icode argument
2065         represents a DFP test significance built-in call.
2066         (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
2067         flag used independently and in combination with the
2068         RS6000_BTM_64BIT flag.
2069         (rs6000_opt_masks): Add entry for power9-misc command-line option.
2070         (rs6000_builtin_mask_names): Add entry for power9-misc
2071         command-line option.
2072         * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
2073         HAVE_AS_POWER9 is not a defined macro.  Define MASK_P9_MISC and
2074         RS6000_BTM_P9_MISC macros.
2075         * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
2076         option and change the description of the -mpower9-vector option to
2077         enable only vector instructions, removing its erroneously claimed
2078         support for scalar instructions.
2079         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
2080         the ISA 3.0 digital floating point test significance built-in
2081         functions.
2083 2016-07-07  Richard Biener  <rguenther@suse.de>
2085         Backport from mainline
2086         2016-06-13  Richard Biener  <rguenther@suse.de>
2088         PR middle-end/64516
2089         * fold-const.c (fold_unary_loc): Preserve alignment when
2090         folding a VIEW_CONVERT_EXPR into a MEM_REF.
2092 2016-07-07  Richard Biener  <rguenther@suse.de>
2094         Backport from mainline
2095         2016-05-25  Richard Biener  <rguenther@suse.de>
2097         PR tree-optimization/71264
2098         * tree-vect-stmts.c (vect_init_vector): Properly deal with
2099         vector type val.
2101         2016-06-07  Richard Biener  <rguenther@suse.de>
2103         PR middle-end/71423
2104         * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
2105         for signed ops.
2107         2016-06-14  Richard Biener  <rguenther@suse.de>
2109         PR tree-optimization/71521
2110         * tree-vrp.c (extract_range_from_binary_expr_1): Guard
2111         division int_const_binop against zero divisor.
2113         2016-06-08  Richard Biener  <rguenther@suse.de>
2115         PR tree-optimization/71452
2116         * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
2117         type used for the SSA rewrite has enough precision to cover
2118         the dynamic type of the location.
2120         2016-06-14  Richard Biener  <rguenther@suse.de>
2122         PR tree-optimization/71522
2123         * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
2124         copying into float copying.
2126 2016-07-06  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2128         Backport from mainline
2129         2016-07-06  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2131         PR target/50739
2132         * config/avr/avr.c (avr_asm_select_section): Strip off
2133         SECTION_DECLARED from flags when calling get_section.
2135 2016-07-05  Pat Haugen  <pthaugen@us.ibm.com>
2137         Backport from mainline
2138         2016-06-28  Pat Haugen  <pthaugen@us.ibm.com>
2140         * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
2141         ('size' attribute): Add '128'.
2142         Include power9.md.
2143         (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
2144         *movdi_internal64, *movdf_update1): Set size attribute to '64'.
2145         (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
2146         copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
2147         *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
2148         extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
2149         *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
2150         *trunc<mode>df2_odd): Set size attribute to '128'.
2151         (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
2152         * config/rs6000/power6.md (power6-fp): Include dfp type.
2153         * config/rs6000/power7.md (power7-fp): Likewise.
2154         * config/rs6000/power8.md (power8-fp): Likewise.
2155         * config/rs6000/power9.md: New file.
2156         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
2157         * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
2158         *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
2159         htmsimple.
2160         * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
2161         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
2162         divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
2163         ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
2164         dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
2165         dfp_dscri_<mode>): Change type attribute to dfp.
2166         * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
2167         attribute to vecsimple.
2168         * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
2169         and prefetch streams.
2170         (rs6000_option_override_internal): Remove temporary code setting
2171         tuning to power8.  Don't set rs6000_sched_groups for power9.
2172         (last_scheduled_insn): Change to rtx_insn *.
2173         (divide_cnt, vec_load_pendulum): New variables.
2174         (rs6000_adjust_cost): Add Power9 to test for store->load separation.
2175         (rs6000_issue_rate): Set issue rate for Power9.
2176         (is_power9_pairable_vec_type): New.
2177         (power9_sched_reorder2): New.
2178         (rs6000_sched_reorder2): Call new function for Power9 specific
2179         reordering.
2180         (insn_must_be_first_in_group): Remove Power9.
2181         (insn_must_be_last_in_group): Likewise.
2182         (force_new_group): Likewise.
2183         (rs6000_sched_init): Fix initialization of last_scheduled_insn.
2184         Initialize divide_cnt/vec_load_pendulum.
2185         (_rs6000_sched_context, rs6000_init_sched_context,
2186         rs6000_set_sched_context): Handle context save/restore of new
2187         variables.
2189 2016-07-05  Pat Haugen  <pthaugen@us.ibm.com>
2191         Backport from mainline
2192         2016-06-27  Pat Haugen  <pthaugen@us.ibm.com>
2194         * config/rs6000/rs6000.md ('type' attribute): Add
2195         veclogical,veccmpfx,vecexts,vecmove insn types.
2196         (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
2197         copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
2198         p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
2199         (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
2200         *nabs<mode>2_hw): Change type to vecmove.
2201         (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
2202         *boolcc<mode>3_internal, *eqv<mode>3_internal,
2203         *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
2204         *ieee_128bit_vsx_abs<mode>2_internal,
2205         *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
2206         *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
2207         *ieee128_mtvsrd_32bit): Change type to veclogical.
2208         (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
2209         *movdi_internal32, *movdi_internal64): Update insn types.
2210         * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
2211         vsx_extract_<mode>): Change type to veclogical.
2212         (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
2213         (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
2214         *vsx_sign_extend_si_v2di): Change type to vecexts.
2215         * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
2216         type to veclogical.
2217         (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
2218         *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
2219         *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
2220         (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
2221         * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
2222         negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
2223         * config/rs6000/40x.md (ppc405-float): Add fpsimple.
2224         * config/rs6000/440.md (ppc440-fp): Add fpsimple.
2225         * config/rs6000/476.md (ppc476-fp): Add fpsimple.
2226         * config/rs6000/601.md (ppc601-fp): Add fpsimple.
2227         * config/rs6000/603.md (ppc603-fp): Add fpsimple.
2228         * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
2229         * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
2230         (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
2231         * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
2232         (ppc7450-vecsimple): Add veclogical, vecmove.
2233         (ppc7450-veccmp): Add veccmpfx.
2234         * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
2235         vecmove.
2236         (ppc8540_vector_compare): Add veccmpfx.
2237         * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
2238         * config/rs6000/cell.md (cell-fp): Add fpsimple.
2239         (cell-vecsimple): Add veclogical, vecmove.
2240         (cell-veccmp): Add veccmpfx.
2241         * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
2242         * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
2243         veccmpfx.
2244         * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
2245         * config/rs6000/power4.md (power4-fp): Add fpsimple.
2246         (power4-vecsimple): Add veclogical, vecmove.
2247         (power4-veccmp): Add veccmpfx.
2248         * config/rs6000/power5.md (power5-fp): Add fpsimple.
2249         * config/rs6000/power6.md (power6-fp): Add fpsimple.
2250         (power6-vecsimple): Add veclogical, vecmove.
2251         (power6-veccmp): Add veccmpfx.
2252         * config/rs6000/power7.md (power7-fp): Add fpsimple.
2253         (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
2254         * config/rs6000/power8.md (power8-fp): Add fpsimple.
2255         (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
2256         * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
2257         * config/rs6000/titan.md (titan_fp): Add fpsimple.
2258         * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
2259         fpsimple.
2260         * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
2262 2016-07-05  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2264         Backport from mainline r237391
2265         2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2267         * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
2268         RS6000_BTM_MODULO flag into the set of flags that are considered
2269         to be part of the common configuration.
2271 2016-07-04  Jakub Jelinek  <jakub@redhat.com>
2273         PR c++/71739
2274         * tree.c (attribute_value_equal): Use get_attribute_name instead of
2275         directly using TREE_PURPOSE.
2277 2016-07-04  Segher Boessenkool  <segher@kernel.crashing.org>
2279         Backport from mainline
2280         2016-06-27  Segher Boessenkool  <segher@kernel.crashing.org>
2282         PR target/71670
2283         * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
2284         gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
2286 2016-07-02  Jakub Jelinek  <jakub@redhat.com>
2288         Backported from mainline
2289         2016-06-28  Jakub Jelinek  <jakub@redhat.com>
2291         PR middle-end/71626
2292         * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
2293         a constant, force its SUBREG_REG into memory or register instead
2294         of whole op1.
2296         2016-06-20  Jakub Jelinek  <jakub@redhat.com>
2298         PR target/71559
2299         * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
2300         returned values and add UN*/LTGT/*ORDERED cases with values matching
2301         D operand modifier on vcmp for AVX.
2303 2016-07-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2305         Backport from trunk r237659
2306         2016-06-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2308         * config/rs6000/rs6000.h: Add conditional preprocessing directives
2309         to disable Power9-specific compiler features if HAVE_AS_POWER9 is
2310         not defined.
2312 2016-07-01  Peter Bergner  <bergner@vnet.ibm.com>
2314         Backport from trunk
2315         2016-06-27  Peter Bergner  <bergner@vnet.ibm.com>
2317         PR target/71656
2318         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
2319         OPTION_MASK_P9_DFORM_VECTOR.
2320         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
2321         disable -mpower9-dform-vector when using reload.
2322         (quad_address_p): Remove 'gpr_p' argument and all associated code.
2323         New 'strict' argument.  Update all callers.  Add strict addressing
2324         support.
2325         (rs6000_legitimate_offset_address_p): Remove call to
2326         virtual_stack_registers_memory_p.
2327         (rs6000_legitimize_reload_address): Add quad address support.
2328         (rs6000_legitimate_address_p): Move call to quad_address_p above
2329         call to virtual_stack_registers_memory_p.  Adjust quad_address_p args
2330         to account for new strict usage.
2331         (rs6000_output_move_128bit): Adjust quad_address_p args to account
2332         for new strict usage.
2333         * config/rs6000/predicates.md (quad_memory_operand): Likewise.
2335 2016-07-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2337         Backport from mainline
2338         2016-06-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2340         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
2341         (BU_FLOAT128_1): Likewise.
2342         (FABSQ): Likewise.
2343         (COPYSIGNQ): Likewise.
2344         (RS6000_BUILTIN_NANQ): Likewise.
2345         (RS6000_BUILTIN_NANSQ): Likewise.
2346         (RS6000_BUILTIN_INFQ): Likewise.
2347         (RS6000_BUILTIN_HUGE_VALQ): Likewise.
2348         * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
2349         (TARGET_FOLD_BUILTIN): New #define.
2350         (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
2351         (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
2352         (rs6000_fold_builtin): New target hook implementation, handling
2353         folding of 128-bit NaNs and infinities.
2354         (rs6000_init_builtins): Initialize const_str_type_node; ensure all
2355         entries are filled in to avoid problems during bootstrap
2356         self-test; define builtins for 128-bit NaNs and infinities.
2357         (rs6000_opt_mask): Add entry for float128.
2358         * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
2359         (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
2360         (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
2361         (const_str_type_node): New #define.
2362         * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
2363         to a define_expand that dispatches to either copysign<mode>3_soft
2364         or copysign<mode>3_hard.
2365         (copysign<mode>3_hard): Rename from copysign<mode>3.
2366         (copysign<mode>3_soft): New define_insn.
2367         * doc/extend.texi: Document new builtins.
2369 2016-07-01  Peter Bergner  <bergner@vnet.ibm.com>
2371         Backport from trunk
2372         2016-07-01  Peter Bergner  <bergner@vnet.ibm.com>
2374         PR target/71698
2375         * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move): Disallow
2376         TDmode values.
2378 2016-07-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2380         Backport from trunk r236992
2381         2016-06-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2383         * config/rs6000/altivec.h (vec_slv): New macro.
2384         (vec_srv): New macro.
2385         * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
2386         (UNSPEC_VSRV): New value.
2387         (vslv): New insn.
2388         (vsrv): New insn.
2389         * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
2390         (vsrv): New builtin definition.
2391         * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
2392         define argument types for new builtin.
2393         (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
2394         new builtin.
2395         * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
2396         functions.
2398 2016-07-01  Eric Botcazou  <ebotcazou@adacore.com>
2400         * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
2401         for NULL decl.
2403 2016-06-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2405         Backport from trunk r237390
2406         2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2408         * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
2409         difference unsigned.
2410         (vec_absdb): New macro for vector absolute difference unsigned
2411         byte.
2412         (vec_absdh): New macro for vector absolute difference unsigned
2413         half-word.
2414         (vec_absdw): New macro for vector absolute difference unsigned word.
2415         * config/rs6000/altivec.md (UNSPEC_VADU): New value.
2416         (vadu<mode>3): New insn.
2417         (*p9_vadu<mode>3): New insn.
2418         * config/rs6000/rs6000-builtin.def (vadub): New built-in
2419         definition.
2420         (vaduh): New built-in definition.
2421         (vaduw): New built-in definition.
2422         (vadu): New overloaded built-in definition.
2423         (vadub): New overloaded built-in definition.
2424         (vaduh): New overloaded built-in definition.
2425         (vaduw): New overloaded built-in definition.
2426         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2427         overloaded vector absolute difference unsigned functions.
2428         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
2429         the ISA 3.0 vector absolute difference unsigned built-in functions.
2431 2016-06-30  David Malcolm  <dmalcolm@redhat.com>
2433         Backport from trunk r237880.
2434         2016-06-30  David Malcolm  <dmalcolm@redhat.com>
2436         PR driver/71651
2437         * gcc.c (driver::build_option_suggestions): Pass "option" to
2438         add_misspelling_candidates.
2439         * opts-common.c (add_misspelling_candidates): Add "option" param;
2440         use it to avoid adding negated forms for options marked with
2441         RejectNegative.
2442         * opts.h (add_misspelling_candidates): Add "option" param.
2444 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
2446         PR middle-end/71693
2447         * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
2448         TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
2449         first when permuting bitwise operation with rotate.  Cast
2450         TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
2452 2016-06-30  Martin Liska  <mliska@suse.cz>
2454         Parting backport from mainline
2455         2016-06-29  Martin Liska  <mliska@suse.cz>
2457         * ipa-inline-transform.c (inline_call): Remove unnecessary call
2458         of build_optimization_node.
2460 2016-06-29  Eric Botcazou  <ebotcazou@adacore.com>
2462         Backport from mainline
2463         2016-06-09  Eric Botcazou  <ebotcazou@adacore.com>
2465         * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
2467 2016-06-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
2469         Back port from trunk
2470         2016-06-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
2472         * stor-layout.c (layout_type): Move setting complex MODE to
2473         layout_type, instead of setting it ahead of time by the caller.
2475         Back port from trunk
2476         2016-05-11  Alan Modra  <amodra@gmail.com>
2478         * config/rs6000/rs6000.c (is_complex_IBM_long_double,
2479         abi_v4_pass_in_fpr): New functions.
2480         (rs6000_function_arg_boundary): Exclude complex IBM long double
2481         from 64-bit alignment when ABI_V4.
2482         (rs6000_function_arg, rs6000_function_arg_advance_1,
2483         rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
2485         Back port from trunk
2486         2016-05-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
2488         * machmode.h (mode_complex): Add support to give the complex mode
2489         for a given mode.
2490         (GET_MODE_COMPLEX_MODE): Likewise.
2491         * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
2492         stored by build_complex_type and gfc_build_complex_type instead of
2493         trying to figure out the appropriate mode based on the size. Raise
2494         an assertion error, if the type was not set.
2495         * genmodes.c (struct mode_data): Add field for the complex type of
2496         the given type.
2497         (blank_mode): Likewise.
2498         (make_complex_modes): Remember the complex mode created in the
2499         base type.
2500         (emit_mode_complex): Write out the mode_complex array to map a
2501         type mode to the complex version.
2502         (emit_insn_modes_c): Likewise.
2503         * tree.c (build_complex_type): Set the complex type to use before
2504         calling layout_type.
2505         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
2506         support for __float128 complex datatypes.
2507         (rs6000_hard_regno_mode_ok): Likewise.
2508         (rs6000_setup_reg_addr_masks): Likewise.
2509         (rs6000_complex_function_value): Likewise.
2510         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
2511         __float128 and __ibm128 complex.
2512         (FLOAT128_IBM_P): Likewise.
2513         (ALTIVEC_ARG_MAX_RETURN): Likewise.
2514         * doc/extend.texi (Additional Floating Types): Document that
2515         -mfloat128 must be used to enable __float128.  Document complex
2516         __float128 and __ibm128 support.
2518 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
2520         PR tree-optimization/71647
2521         * omp-low.c (lower_rec_input_clauses): Convert
2522         omp_clause_aligned_alignment (c) to size_type_node for the
2523         last argument of __builtin_assume_aligned.
2525 2016-06-22  Eric Botcazou  <ebotcazou@adacore.com>
2527         * function.c (assign_parm_setup_reg): Prevent sharing in another case.
2529 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
2531         Backport from 2016-06-21 trunk r237639.
2533         PR target/30417
2534         * config/avr/gen-avr-mmcu-specs.c (print_mcu):
2535         [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
2536         [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
2538 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
2540         PR target/71103
2541         * config/avr/avr.md (movqi): Only handle loading subreg:qi of
2542         constant addresses if can_create_pseudo_p.
2544 2016-06-21  Jakub Jelinek  <jakub@redhat.com>
2546         PR tree-optimization/71588
2547         * tree-ssa-strlen.c (valid_builtin_call): New function.
2548         (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
2549         it.
2551         Backported from mainline
2552         2016-06-20  Jakub Jelinek  <jakub@redhat.com>
2554         PR middle-end/71581
2555         * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
2556         see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
2557         for conversion of scalar user var to complex type and use the
2558         underlying SSA_NAME_VAR in that case.  If EXPR is still NULL,
2559         punt.
2561         2016-06-16  Jakub Jelinek  <jakub@redhat.com>
2563         * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
2564         with base of reference to struct.
2566 2016-06-20  Ilya Enkovich  <ilya.enkovich@intel.com>
2568         Backport from mainline r237484.
2569         2016-06-15  Ilya Enkovich  <ilya.enkovich@intel.com>
2571         PR middle-end/71529
2572         * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
2573         DECL_CONTEXT for copied arguments.
2575 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
2576             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
2578         Backport from 2016-06-20 trunk r237589, r236558.
2580         PR target/71103
2581         * config/avr/avr.md (movqi): Handle loading subreg:qi (const,
2582         symbol_ref,label_ref).
2584 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
2586         PR target/71554
2587         * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
2588         (setcc + and peephole2): Likewise.
2590 2016-06-15  Andreas Tobler  <andreast@gcc.gnu.org>
2592         Backported from mainline
2593         2016-06-14  Andreas Tobler  <andreast@gcc.gnu.org>
2595         * config/arm/freebsd.h: Only enable unaligned access for armv6 on
2596         FreeBSD 11 and above.
2598 2016-06-15  Ilya Verbin  <ilya.verbin@intel.com>
2600         Backport from mainline
2601         2016-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2603         * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
2605 2016-06-14  Jakub Jelinek  <jakub@redhat.com>
2607         Backported from mainline
2608         2016-06-10  Jakub Jelinek  <jakub@redhat.com>
2610         PR middle-end/71494
2611         * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
2612         without LABEL_DECL, set *handled_ops_p to false instead of true.
2614         2016-06-08  Jakub Jelinek  <jakub@redhat.com>
2615                     Richard Biener  <rguenther@suse.de>
2617         PR c++/71448
2618         * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
2619         the same as DECL_P (base0) for indirect_base0.  Use equality_code
2620         in one further place.
2622         2016-06-04  Jakub Jelinek  <jakub@redhat.com>
2624         PR tree-optimization/71405
2625         * tree-ssa.c (execute_update_addresses_taken): For clobber with
2626         incompatible type, build a new clobber with the right type instead
2627         of building a VIEW_CONVERT_EXPR around it.
2629 2016-06-13  Eric Botcazou  <ebotcazou@adacore.com>
2631         * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
2632         update shared_lookup_references only once after changing operands.
2634 2016-06-13  Richard Biener  <rguenther@suse.de>
2636         PR tree-optimization/71505
2637         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
2638         assert match comment.
2640 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2642         Backport from mainline
2643         2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2645         PR target/71379
2646         * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
2647         one.
2649 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
2651         PR middle-end/71373
2652         Backport from trunk r237291:
2653         * tree-nested.c (convert_nonlocal_omp_clauses)
2654         (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
2655         OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
2656         OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
2658         Backport from trunk r237291:
2659         * gimplify.c (gimplify_adjust_omp_clauses): Discard
2660         OMP_CLAUSE_TILE.
2661         * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
2663         Backport from trunk r237290:
2664         * omp-low.c (scan_sharing_clauses): Don't expect
2665         OMP_CLAUSE__CACHE_.
2667         Backport trunk r235964:
2668         2016-05-06  Nathan Sidwell  <nathan@codesourcery.com>
2670         * gimple.c (gimple_call_same_target_p): Unique functions are eq.
2671         * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
2672         equality first.
2674 2016-06-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
2676         Back port from trunk
2677         2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
2679         * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
2680         alternatives, eliminating preferred register class.  Add support
2681         for the MTVSRDD instruction in ISA 3.0.
2682         (vsx_splat_v4si_internal): Use splat_input_operand instead of
2683         reg_or_indexed_operand.
2684         (vsx_splat_v4sf_internal): Likewise.
2686         Back port from trunk
2687         2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
2689         PR target/71186
2690         * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
2691         for loading up all 0's or all 1's.
2693         Back port from trunk
2694         2016-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
2696         PR target/70915
2697         * config/rs6000/constraints.md (wE constraint): New constraint
2698         for a vector constant that can be loaded with XXSPLTIB.
2699         (wM constraint): New constraint for a vector constant of a 1's.
2700         (wS constraint): New constraint for a vector constant that can be
2701         loaded with XXSPLTIB and a vector sign extend instruction.
2702         * config/rs6000/predicates.md (xxspltib_constant_split): New
2703         predicates for wE/wS constraints.
2704         (xxspltib_constant_nosplit): Likewise.
2705         (easy_vector_constant): Add support for constants that can be
2706         loaded via XXSPLTIB.
2707         (splat_input_operand): Add support for ISA 3.0 word splat operations.
2708         * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
2709         return if a constant can be loaded with the ISA 3.0 XXSPLTIB
2710         instruction and possibly with a sign extension.
2711         (output_vec_const_move): Add support for XXSPLTIB. If we are
2712         loading up 0/-1 into Altivec registers, prefer using VSPLTISW
2713         instead of XXLXOR/XXLORC.
2714         (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
2715         operations.
2716         (rs6000_legitimize_reload_address): Likewise.
2717         (rs6000_output_move_128bit): Use output_vec_const_move to emit
2718         constants.
2719         * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
2720         combine VSX_M and VSX_M2 into one iterator.
2721         (VSX_M2): Likewise.
2722         (VSINT_84): New iterators for loading constants with XXSPLTIB.
2723         (VSINT_842): Likewise.
2724         (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
2725         (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
2726         XXSPLTIB instruction.
2727         (xxspltib_<mode>_nosplit): Likewise.
2728         (xxspltib_<mode>_split): New insn to load up constants with
2729         XXSPLTIB and a sign extend instruction.
2730         (vsx_mov<mode>): Replace single move that handled all vector types
2731         with separate 32-bit and 64-bit moves.  Combine the movti_<bit>
2732         moves (when -mvsx-timode is in effect) into the main vector
2733         moves.  Eliminate separate moves for <VSr> <VSa>, where the
2734         preferred register class (<VSr>) is listed first, and the
2735         secondary register class (<VSa>) is listed second with a '?' to
2736         discourage use.  Prefer loading 0/-1 in any VSX register for ISA
2737         3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
2738         that if the register was involved in a slow operation, the
2739         clear/set operation does not wait for the slow operation to
2740         finish.  Adjust the length attributes for 32-bit mode.  Use
2741         rs6000_output_move_128bit and drop the use of the string
2742         instructions for 32-bit movti when -mvsx-timode is in effect.  Use
2743         spacing so that the alternatives and attributes don't generate
2744         long lines, and put things in columns, so that it is easier to
2745         match up the operands and attributes with the insn alternatives.
2746         (vsx_mov<mode>_64bit): Likewise.
2747         (vsx_mov<mode>_32bit): Likewise.
2748         (vsx_movti_64bit): Fold movti into normal vector moves.
2749         (vsx_movti_32bit): Likewise.
2750         (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
2751         splat instructions.
2752         (vsx_splat_v4si_internal): Likewise.
2753         (vsx_splat_v4sf_internal): Likewise.
2754         (vector fusion peepholes): Use VSX_M instead of VSX_M2.
2755         (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
2756         extend vector elements.
2757         (vsx_sign_extend_hi_<mode>): Likewise.
2758         (vsx_sign_extend_si_v2di): Likewise.
2759         * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
2760         declaration.
2761         * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
2762         constraints.  Add trailing period to wL documentation.
2764 2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
2766         Backport from mainline
2767         2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
2769         * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
2770         SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
2772 2016-06-08  Eric Botcazou  <ebotcazou@adacore.com>
2774         Backport from mainline
2775         2016-06-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
2777         * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
2778         Include the M7 SPARC DFA scheduler.
2779         New attribute v3pipe.
2780         Annotate insns with v3pipe where appropriate.
2781         Define cpu_feature vis4.
2782         Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
2783         Add (V8QI "8") to vbits.
2784         Add insns {add,sub}v8qi3
2785         Add insns ss{add,sub}v8qi3
2786         Add insns us{add,sub}{v8qi,v4hi}3
2787         Add insns {min,max}{v8qi,v4hi,v2si}3
2788         Add insns {minu,maxu}{v8qi,v4hi,v2si}3
2789         Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
2790         * config/sparc/niagara4.md: Add a comment explaining the
2791         discrepancy between the documented latenty numbers and the
2792         implemented ones.
2793         * config/sparc/niagara7.md: New file.
2794         * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
2795         supports SPARC5 and VIS 4.0 instructions.
2796         * configure: Regenerate.
2797         * config.in: Likewise.
2798         * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
2799         * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
2800         TARGET_CPU_niagara7.
2801         (ASM_CPU64_DEFAULT_SPEC): Likewise.
2802         (CPP_CPU_SPEC): Handle niagara7.
2803         (ASM_CPU_SPEC): Likewise.
2804         * config/sparc/sparc-opts.h (processor_type): Add
2805         PROCESSOR_NIAGARA7.
2806         (mvis4): New option.
2807         * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
2808         (AS_NIAGARA7_FLAG): Define.
2809         (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
2810         (CPP_CPU64_DEFAULT_SPEC): Likewise.
2811         (CPP_CPU_SPEC): Handle niagara7.
2812         (ASM_CPU_SPEC): Likewise.
2813         * config/sparc/sparc.c (niagara7_costs): Define.
2814         (sparc_option_override): Handle niagara7 and adjust cache-related
2815         parameters with better values for niagara cpus.  Also support VIS4.
2816         (sparc32_initialize_trampoline): Likewise.
2817         (sparc_use_sched_lookahead): Likewise.
2818         (sparc_issue_rate): Likewise.
2819         (sparc_register_move_cost): Likewise.
2820         (dump_target_flag_bits): Support VIS4.
2821         (sparc_vis_init_builtins): Likewise.
2822         (sparc_builtins): Likewise.
2823         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
2824         VIS4 4.0.
2825         * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
2826         UltraSparc M7.
2827         * config/sparc/sparc.opt (sparc_processor_type): New value
2828         niagara7.
2829         * config/sparc/visintrin.h (__attribute__): Prototypes for the
2830         VIS4 builtins.
2831         * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
2832         -mvis4.
2833         * doc/extend.texi (SPARC VIS Built-in Functions): Document the
2834         VIS4 builtins.
2836         2016-05-30  Jose E. Marchesi  <jose.marchesi@oracle.com>
2838         * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
2839         tune_64.
2840         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
2841         support on SPARC.
2842         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
2843         cpu_32, cpu_64, tune_32 and tune_64.
2844         * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
2846 2016-06-08  Ilya Verbin  <ilya.verbin@intel.com>
2848         Backport from mainline
2849         2016-05-25  Ilya Verbin  <ilya.verbin@intel.com>
2851         * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
2852         V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
2853         * config/i386/i386.c (enum ix86_builtins): Add
2854         IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
2855         IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
2856         IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
2857         IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
2858         IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
2859         IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
2860         (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
2861         __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
2862         __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
2863         __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
2864         __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
2865         __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
2866         Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
2867         __builtin_ia32_cvtps2dq512_mask.
2868         (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
2869         V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
2870         (ix86_builtin_vectorized_function): Handle builtins mentioned above.
2871         * config/i386/sse.md
2872         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
2873         Rename to ...
2874         (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
2875         (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
2876         to ...
2877         (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
2878         (avx512f_vec_pack_sfix_v8df): New define_expand.
2879         (avx512f_roundpd512): Rename to ...
2880         (avx512f_round<castmode>512): ... this.  Change iterator.
2881         (avx512f_roundps512_sfix): New define_expand.
2882         (round<mode>2_sfix): Change iterator.
2884 2016-06-07  Peter Bergner  <bergner@vnet.ibm.com>
2886         Backport from mainline
2887         2016-06-07  Peter Bergner  <bergner@vnet.ibm.com>
2889         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
2890         -mno-htm.
2892 2016-06-07  Uros Bizjak  <ubizjak@gmail.com>
2894         PR target/71389
2895         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
2896         Copy op1 RTX to avoid invalid sharing.
2897         (ix86_expand_vector_move_misalign): Ditto.
2899 2016-06-06  Jakub Jelinek  <jakub@redhat.com>
2901         PR tree-optimization/71259
2902         * tree-vect-slp.c (vect_get_constant_vectors): For
2903         VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
2904         one for constant op, and use COND_EXPR for non-constant.
2906 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2908         Backport from trunk
2909         2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2911         PR target/70830
2912         * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
2914 2016-06-05  Uros Bizjak  <ubizjak@gmail.com>
2916         Backport from mainline
2917         2016-06-01  Uros Bizjak  <ubizjak@gmail.com>
2918                     Jocelyn Mayer  <l_indien@magic.fr>
2920         PR target/67310
2921         * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
2922         detect processor family for signature_CENTAUR_ebx.
2923         <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
2924         signature_CENTAUR_ebx.
2925         <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
2926         <default>: Pass x86-64 for has_longmode.
2928 2016-06-03  Jakub Jelinek  <jakub@redhat.com>
2930         PR middle-end/71387
2931         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
2932         to noreturn e->callee->decl that has void return type and void
2933         arguments, adjust gimple_call_fntype and remove lhs even if it had
2934         previously addressable type.
2936 2016-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
2938         Back port from trunk
2939         2016-05-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
2941         * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
2942         for ISA 3.0 min/max support.
2943         (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
2944         conditional move support.
2945         (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
2946         rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
2947         available.
2948         * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
2949         conditional moves where the comparison type is different from move
2950         type.
2951         (fp_minmax): New code iterator for smin/smax.
2952         (minmax): New code attributes for min/max.
2953         (SMINMAX): Likewise.
2954         (smax<mode>3): Combine min, max insns into one insn using the
2955         fp_minmax code iterator.  Add support for ISA 3.0 min/max
2956         instructions that don't need -ffast-math.
2957         (s<minmax><mode>3): Likewise.
2958         (smax<mode>3_vsx): Likewise.
2959         (smin<mode>3): Likewise.
2960         (s<minmax><mode>3_vsx): Likewise.
2961         (smin<mode>3_vsx): Likewise.
2962         (pre-VSX min/max splitters): Likewise.
2963         (s<minmax><mode>3_fpr): Likewise.
2964         (movsfcc): Rewrite floating point conditional moves to combine
2965         SFmode/DFmode into a single insn.
2966         (mov<mode>cc): Likewise.
2967         (movdfcc): Likewise.
2968         (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
2969         SFDF2 iterators to handle all combinations.
2970         (fseldfsf4): Likewise.
2971         (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
2972         (fseldfdf4): Likewise.
2973         (fselsfdf4): Likewise.
2974         (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
2975         comparison instructions that set a 0/-1 mask, and use it for
2976         floating point conditional move via XXSEL.
2977         (fpmask<mode>): Likewise.
2978         (xxsel<mode>): Likewise.
2979         * config/rs6000/predicates.md (min_max_operator): Delete, no
2980         longer used.
2981         (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
2982         instructions that generate a 0/-1 mask for use with XXSEL.
2983         * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
2984         say whether floating point min/max is available, either through
2985         FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
2986         (TARGET_MINMAX_DF): Likewise.
2988         Back port from trunk
2989         2016-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
2991         * config/rs6000/predicate.md (all_ones_constant): New predicate
2992         for vector constant with all 1's set.
2994 2016-06-02  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2996         Back port from trunk
2997         2016-05-19  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2999         * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
3000         (UNSPEC_DARN_32): New unspec constant.
3001         (UNSPEC_DARN_RAW): New unspec constant.
3002         (darn_32): New instruction.
3003         (darn_raw): New instruction.
3004         (darn): New instruction.
3005         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
3006         support and documentation for this macro.
3007         (BU_P9_MISC_1): New macro definition.
3008         (BU_P9_64BIT_MISC_0): New macro definition.
3009         (BU_P9_MISC_0): New macro definition.
3010         (darn_32): New builtin definition.
3011         (darn_raw): New builtin definition.
3012         (darn): New builtin definition.
3013         * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
3014         RS6000_BUILTIN_0 directives to surround each occurrence of
3015         #include "rs6000-builtin.def".
3016         (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
3017         RS6000_BTM_64BIT flags to the returned mask, depending on
3018         configuration.
3019         (def_builtin): Correct an error in the assignments made to the
3020         debugging variable attr_string.
3021         (rs6000_expand_builtin): Add support for no-operand built-in
3022         functions.
3023         (builtin_function_type): Remove fatal_error assertion that is no
3024         longer valid.
3025         (rs6000_common_init_builtins): Add support for no-operand built-in
3026         functions.
3027         * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
3028         definition.
3029         (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
3030         definition.
3031         (RS6000_BTM_64BIT): New macro definition.
3032         * doc/extend.texi: Document __builtin_darn (void),
3033         __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
3034         functions.
3036 2016-06-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
3038         Back port from trunk
3039         2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
3041         PR target/71201
3042         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
3043         ISA 3.0 xxperm fusion alternative.
3044         (altivec_vperm_v8hiv16qi): Likewise.
3045         (altivec_vperm_<mode>_uns_internal): Likewise.
3046         (vperm_v8hiv4si): Likewise.
3047         (vperm_v16qiv8hi): Likewise.
3049         Back port from trunk
3050         2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
3051                     Kelvin Nilsen  <kelvin@gcc.gnu.org>
3053         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
3054         vpermr/xxpermr on ISA 3.0.
3055         (altivec_expand_vec_perm_le): Likewise.
3056         * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
3057         (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
3058         ISA 3.0.
3060         Back port from trunk
3061         2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
3063         * config/rs6000/altivec.md (VParity): New mode iterator for vector
3064         parity built-in functions.
3065         (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
3066         zeros.
3067         (p9v_parity<mode>2): Likewise.
3068         * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
3069         parity.
3070         (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
3071         (parity<mode>2): ISA 3.0 expander for vector parity.
3072         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
3073         power9 built-ins.
3074         (BU_P9_64BIT_MISC_0): Likewise.
3075         (BU_P9_MISC_0): Likewise.
3076         (BU_P9V_AV_1): Likewise.
3077         (BU_P9V_AV_2): Likewise.
3078         (BU_P9V_AV_3): Likewise.
3079         (BU_P9V_AV_P): Likewise.
3080         (BU_P9V_VSX_1): Likewise.
3081         (BU_P9V_OVERLOAD_1): Likewise.
3082         (BU_P9V_OVERLOAD_2): Likewise.
3083         (BU_P9V_OVERLOAD_3): Likewise.
3084         (VCTZB): Add vector count trailing zeros support.
3085         (VCTZH): Likewise.
3086         (VCTZW): Likewise.
3087         (VCTZD): Likewise.
3088         (VPRTYBD): Add vector parity support.
3089         (VPRTYBQ): Likewise.
3090         (VPRTYBW): Likewise.
3091         (VCTZ): Add overloaded vector count trailing zeros support.
3092         (VPRTYB): Add overloaded vector parity support.
3093         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3094         overloaded vector count trailing zeros and parity instructions.
3095         * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
3096         vector parity support.
3097         * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
3098         trailing zeros support.
3099         (vec_cntlz): Likewise.
3100         (vec_vctzb): Likewise.
3101         (vec_vctzd): Likewise.
3102         (vec_vctzh): Likewise.
3103         (vec_vctzw): Likewise.
3104         (vec_vprtyb): Add ISA 3.0 vector parity support.
3105         (vec_vprtybd): Likewise.
3106         (vec_vprtybw): Likewise.
3107         (vec_vprtybq): Likewise.
3108         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
3109         the ISA 3.0 vector count trailing zeros and vector parity built-in
3110         functions.
3112         Back port from trunk
3113         2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
3115         * config/rs6000/altivec.md (VNEG iterator): New iterator for
3116         VNEGW/VNEGD instructions.
3117         (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
3118         (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
3119         support for ISA 3.0 VNEGW/VNEGD instructions.
3121         Back port from trunk
3122         2016-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
3124         * config/rs6000/predicates.md (quad_memory_operand): Move most of
3125         the code into quad_address_p and call it to share code with
3126         vsx_quad_dform_memory_operand.
3127         (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
3128         d-form support.
3129         * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
3130         bit instead of being a separate word.  Split -mpower9-dform into
3131         two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
3132         * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
3133         for the register class supporting 128-bit quad word memory offsets.
3134         (mode_supports_vsx_dform_quad): Helper function to return if the
3135         register class uses quad word memory offsets.
3136         (rs6000_debug_addr_mask): Add support for quad word memory offsets.
3137         (rs6000_debug_reg_global): Always print if we are using LRA or not.
3138         (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
3139         instructions are enabled, set up the appropriate addr_masks for
3140         128-bit types.
3141         (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
3142         -mpower9-dform-scalar, instead of -mpower9-dform.
3143         (rs6000_option_override_internal): Split -mpower9-dform into two
3144         switches, -mpower9-dform-scalar and -mpower9-dform-vector.  The
3145         -mpower9-dform switch sets or clears both.  If we are not using
3146         the LRA register allocator, do not enable -mpower9-dform-vector by
3147         default.  If we are using LRA, enable -mpower9-dform-vector and
3148         -mvsx-timode if it is appropriate.  Issue a warning if either
3149         -mpower9-dform-vector or -mvsx-timode are explicitly used without
3150         enabling LRA.
3151         (quad_address_offset_p): New helper function to return if the
3152         offset is legal for quad word memory instructions.
3153         (quad_address_p): New function to determin if GPR or vector
3154         register quad word memory addresses are legal.
3155         (mem_operand_gpr): Validate quad word address offsets.
3156         (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
3157         d-form (register + offset) instructions.
3158         (offsettable_ok_by_alignment): Likewise.
3159         (rs6000_legitimate_offset_address_p): Likewise.
3160         (legitimate_lo_sum_address_p): Likewise.
3161         (rs6000_legitimize_address): Likewise.
3162         (rs6000_legitimize_reload_address): Add more debug statements for
3163         -mdebug=addr.
3164         (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
3165         d-form instructions.
3166         (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
3167         d-form instructions.  Distinguish different cases in debug
3168         output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
3169         d-form instructions.
3170         (rs6000_preferred_reload_class): Likewise.
3171         (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
3172         instructions.  If ISA 3.0 is available, generate lxvx/stxvx instead
3173         of the ISA 2.06 indexed memory instructions.
3174         (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
3175         use them to save/restore the saved vector registers instead of
3176         using Altivec instructions.
3177         (rs6000_emit_epilogue): Likewise.
3178         (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
3179         (rs6000_opt_masks): Split -mpower9-dform into
3180         -mpower9-dform-scalar and -mpower9-dform-vector.
3181         (rs6000_print_options_internal): Print -mno-<switch> if <switch>
3182         was not selected.
3183         * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
3184         ISA 3.0 vector indexed memory instructions, and fold the code into
3185         the normal mov<mode> patterns.
3186         (p9_vecstore_<mode>): Likewise.
3187         (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
3188         instructions.
3189         (vsx_movti_64bit): Likewise.
3190         (vsx_movti_32bit): Likewise.
3191         * config/rs6000/constraints.md (wO constraint): New constraint for
3192         ISA 3.0 vector d-form support.
3193         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
3194         -mpower9-dform-scalar instead of -mpower9-dform.  Add note not to
3195         include -mpower9-dform-vector until we switch over to LRA.
3196         (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
3197         switches, -mpower9-dform-scalar and -mpower9-dform-vector.
3198         * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
3199         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
3200         for -mpower9-dform and -mlra.
3201         * doc/md.texi (wO constraint): Document wO constraint.
3203 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
3205         * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
3206         the factor for live Phi nodes.
3208 2016-06-01  Jakub Jelinek  <jakub@redhat.com>
3210         PR middle-end/71371
3211         * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
3212         around creation of the temporary.
3214 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
3216         * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
3217         into account live statements for mask producers.
3219 2016-05-31  Richard Biener  <rguenther@suse.de>
3221         Backport from mainline
3222         2016-05-11  Richard Biener  <rguenther@suse.de>
3224         PR debug/71057
3225         * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
3226         (dwarf2out_finish): Move retry_incomplete_types call ...
3227         (dwarf2out_early_finish): ... here.
3229 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3231         PR target/71056
3232         * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
3233         NULL_TREE early if NEON is not available.  Remove now redundant check
3234         in ARM_CHECK_BUILTIN_MODE.
3236 2016-05-31  Tom de Vries  <tom@codesourcery.com>
3238         backport:
3239         2016-05-31  Tom de Vries  <tom@codesourcery.com>
3241         PR tree-optimization/69068
3242         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
3243         phis with more than two args.
3245 2016-05-30  Andreas Tobler  <andreast@gcc.gnu.org>
3247         Backport from mainline
3248         2016-05-30  Andreas Tobler  <andreast@gcc.gnu.org>
3250         * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
3251         armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
3252         target.
3254 2016-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3256         Backport from mainline
3257         2016-04-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3259         * config/rs6000/altivec.h: Change definitions of vec_xl and
3260         vec_xst.
3261         * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
3262         (LD_ELEMREV_V2DI): New.
3263         (LD_ELEMREV_V4SF): New.
3264         (LD_ELEMREV_V4SI): New.
3265         (LD_ELEMREV_V8HI): New.
3266         (LD_ELEMREV_V16QI): New.
3267         (ST_ELEMREV_V2DF): New.
3268         (ST_ELEMREV_V2DI): New.
3269         (ST_ELEMREV_V4SF): New.
3270         (ST_ELEMREV_V4SI): New.
3271         (ST_ELEMREV_V8HI): New.
3272         (ST_ELEMREV_V16QI): New.
3273         (XL): New.
3274         (XST): New.
3275         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3276         descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
3277         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
3278         TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
3279         (altivec_expand_builtin): Add handling for
3280         VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
3281         (rs6000_invalid_builtin): Add error-checking for
3282         RS6000_BTM_P9_VECTOR.
3283         (altivec_init_builtins): Define builtins used to implement vec_xl
3284         and vec_xst.
3285         (rs6000_builtin_mask_names): Define power9-vector.
3286         * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
3287         (RS6000_BTM_P9_VECTOR): Define.
3288         (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
3289         * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
3290         (vsx_ld_elemrev_v2df): Likewise.
3291         (vsx_ld_elemrev_v4sf): Likewise.
3292         (vsx_ld_elemrev_v4si): Likewise.
3293         (vsx_ld_elemrev_v8hi): Likewise.
3294         (vsx_ld_elemrev_v16qi): Likewise.
3295         (vsx_st_elemrev_v2df): Likewise.
3296         (vsx_st_elemrev_v2di): Likewise.
3297         (vsx_st_elemrev_v4sf): Likewise.
3298         (vsx_st_elemrev_v4si): Likewise.
3299         (vsx_st_elemrev_v8hi): Likewise.
3300         (vsx_st_elemrev_v16qi): Likewise.
3301         * doc/extend.texi: Add prototypes for vec_xl and vec_xst.  Correct
3302         grammar.
3304 2016-05-30  Richard Biener  <rguenther@suse.de>
3306         Backport from mainline
3307         2016-05-11  Richard Biener  <rguenther@suse.de>
3309         PR middle-end/71002
3310         * alias.c (reference_alias_ptr_type): Preserve alias-set zero
3311         if the langhook insists on it.
3312         * fold-const.c (make_bit_field_ref): Add arg for the original
3313         reference and preserve its alias-set.
3314         (decode_field_reference): Take exp by reference and adjust it
3315         to the original memory reference.
3316         (optimize_bit_field_compare): Adjust callers.
3317         (fold_truth_andor_1): Likewise.
3319         2016-05-13  Jakub Jelinek  <jakub@redhat.com>
3321         PR bootstrap/71071
3322         * fold-const.c (fold_checksum_tree): Allow modification
3323         of TYPE_ALIAS_SET during folding.
3325 2016-05-30  Eric Botcazou  <ebotcazou@adacore.com>
3327         * config/visium/visium.c (visium_split_double_add): Minor tweaks.
3328         (visium_expand_copysign): Use gen_int_mode directly.
3329         (visium_compute_frame_size): Minor tweaks.
3331 2016-05-30  Tom de Vries  <tom@codesourcery.com>
3333         backport:
3334         2016-05-30  Tom de Vries  <tom@codesourcery.com>
3336         PR tree-optimization/69067
3337         * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
3339 2016-05-27  Eric Botcazou  <ebotcazou@adacore.com>
3341         * config/visium/visium-protos.h (split_double_move): Rename into...
3342         (visium_split_double_move): ...this.
3343         (visium_split_double_add): Declare.
3344         * config/visium/visium.c (split_double_move): Rename into...
3345         (visium_split_double_move): ...this.
3346         (visium_split_double_add): New function.
3347         (visium_expand_copysign): Renumber operands for consistency.
3348         * config/visium/visium.md (DImode move splitter): Adjust to renaming.
3349         (DFmode move splitter): Likewise.
3350         (*addi3_insn): Split by means of visium_split_double_add.
3351         (*adddi3_insn_flags): Delete.
3352         (*plus_plus_sltu<subst_arith>): New insn.
3353         (*subdi3_insn): Split by means of visium_split_double_add.
3354         (subdi3_insn_flags): Delete.
3355         (*minus_minus_sltu<subst_arith>): New insn.
3356         (*negdi2_insn): Split by means of visium_split_double_add.
3357         (*negdi2_insn_flags): Delete.
3359 2016-05-27  Ilya Enkovich  <ilya.enkovich@intel.com>
3361         Backport from mainline r236810.
3362         2016-05-27  Ilya Enkovich  <ilya.enkovich@intel.com>
3364         PR middle-end/71279
3365         * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
3366         into comparison.
3368 2016-05-25  Eric Botcazou  <ebotcazou@adacore.com>
3370         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
3371         redundant test and bail out if the type of the new operand is not
3372         a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
3374 2016-05-24  Martin Sebor  <msebor@redhat.com>
3376         PR c++/71147
3377         * tree.h (complete_or_array_type_p): New inline function.
3379 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
3381         * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
3382         * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
3383         rather than X86_TUNE_AVOID_4BYTE_PREFIXES.  Use SSE_REGS instead
3384         of ALL_SSE_REGS.  Return SSE_REGS also when TARGET_AVX.
3386 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
3388         PR c++/71257
3389         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
3390         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
3391         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.  Add
3392         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
3393         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
3395 2016-05-23  Martin Jambor  <mjambor@suse.cz>
3397         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
3398         default block if a PHI node in the original one would be resized.
3400 2016-05-23  Martin Jambor  <mjambor@suse.cz>
3402         PR tree-optimization/70884
3403         * tree-sra.c (initialize_constant_pool_replacements): Do not check
3404         should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
3405         (sort_and_splice_var_accesses): Do not consider multiple scalar reads
3406         of constant pool data as a reason for scalarization.
3408 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
3410         * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
3411         for naked functions.
3412         (thumb1_expand_prologue): Likewise.
3414 2016-05-20  Jakub Jelinek  <jakub@redhat.com>
3416         PR c++/71210
3417         * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
3418         calls if the LHS is variable length or has addressable type.
3419         If targets[0]->decl is a noreturn call with void return type and
3420         zero arguments, adjust fntype and remove lhs in that case.
3422 2016-05-20  Uros Bizjak  <ubizjak@gmail.com>
3424         * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
3425         force pending loads from memory.
3427 2016-05-19  Marek Polacek  <polacek@redhat.com>
3429         Backport from mainline
3430         2016-05-19  Marek Polacek  <polacek@redhat.com>
3432         PR tree-optimization/71031
3433         * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
3434         condition and adjust the code a bit.
3436 2016-05-19  Martin Jambor  <mjambor@suse.cz>
3438         PR ipa/70646
3439         * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
3440         if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
3442 2016-05-19  Martin Jambor  <mjambor@suse.cz>
3444         PR ipa/70646
3445         * ipa-inline.h (condition): New field size.
3446         * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
3447         for comaprison and store it into the new condition.
3448         (evaluate_conditions_for_known_args): Use condition size to check
3449         access sizes for all but CHANGED conditions.
3450         (unmodified_parm_1): New parameter size_p, store access size into it.
3451         (unmodified_parm): Likewise.
3452         (unmodified_parm_or_parm_agg_item): Likewise.
3453         (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
3454         (set_cond_stmt_execution_predicate): Extract access sizes and store
3455         them to conditions.
3456         (set_switch_stmt_execution_predicate): Likewise.
3457         (will_be_nonconstant_expr_predicate): Likewise.
3458         (will_be_nonconstant_predicate): Likewise.
3459         (inline_read_section): Stream condition size.
3460         (inline_write_summary): Likewise.
3461         * lto-streamer.h (LTO_minor_version): Bump.
3463 2016-05-18  Martin Liska  <mliska@suse.cz>
3465         Backport from mainline
3466         2016-05-18  Martin Liska  <mliska@suse.cz>
3468         PR fortran/70856
3469         * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
3470         merged variables.
3472 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
3474         PR c++/71100
3475         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
3476         lhs if it has TREE_ADDRESSABLE type.
3478 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
3480         PR target/71145
3481         * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
3482         (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
3484 2016-05-17  Thomas Schwinge  <thomas@codesourcery.com>
3486         Backport trunk r235748:
3487         PR target/70860
3488         * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
3489         (nvptx_function_value): Assert non-NULL cfun.
3491 2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3493         Backport from mainline
3494         2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3496         PR target/70809
3497         * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
3499 2016-05-16  Martin Jambor  <mjambor@suse.cz>
3501         * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
3502         (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
3504 2016-05-16  Martin Jambor  <mjambor@suse.cz>
3506         PR hsa/70857
3507         * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
3508         the outlined kernel function.
3510 2016-05-16  James Norris  <jnorris@codesourcery.com>
3512         Backport from mainline r236098.
3513         2016-05-10  James Norris  <jnorris@codesourcery.com>
3515         PR driver/68463
3516         * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
3517         if offloading is enabled and -fopenacc or -fopenmp is specified.
3518         (CRTOFFLOADEND): Likewise.
3519         (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
3520         (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
3522 2016-05-16  Alan Modra  <amodra@gmail.com>
3524         Apply from mainline
3525         2016-05-10  Alan Modra  <amodra@gmail.com>
3526         PR target/70947
3527         * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
3528         regrename modifying insns saving lr before __morestack call.
3529         * config/rs6000/rs6000.md (split_stack_return): Similarly for
3530         insns restoring lr after __morestack call.
3532 2016-05-13  Richard Biener  <rguenther@suse.de>
3534         Backport from mainline
3535         2016-04-27  Richard Biener  <rguenther@suse.de>
3537         PR ipa/70760
3538         * tree-ssa-structalias.c (find_func_aliases_for_call): Use
3539         aggregate_value_p to determine if a function result is
3540         returned by reference.
3542         2016-05-06  Richard Biener  <rguenther@suse.de>
3544         PR middle-end/70931
3545         * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
3547         2016-05-06  Richard Biener  <rguenther@suse.de>
3549         PR middle-end/70941
3550         * fold-const.c (split_tree): Always convert to the original type
3551         before negating.
3553 2016-05-12  Martin Liska  <mliska@suse.cz>
3555         Backport from mainline
3556         2016-05-10  Martin Liska  <mliska@suse.cz>
3558         * tree-inline.c (remap_dependence_clique): Do not remap
3559         debugging statements.
3561 2016-05-12  Ilya Enkovich  <ilya.enkovich@intel.com>
3563         Backport from mainline r236171.
3564         2016-05-12  Ilya Enkovich  <ilya.enkovich@intel.com>
3566         PR tree-optimization/71006
3567         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
3568         consider COND_EXPR as a mask producer.
3570 2016-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3572         Backport from mainline
3573         2016-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3575         PR target/70830
3576         * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
3577         when popping the PC and within an interrupt handler routine.
3578         Add missing tab to output of "ldmfd".
3579         (output_return_instruction): Output LDMFD with SP update rather
3580         than POP when returning from interrupt handler.
3582 2016-05-11  Ilya Enkovich  <ilya.enkovich@intel.com>
3584         Backport from mainline r236088.
3585         2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
3587         PR middle-end/70877
3588         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
3589         calls with type casted fndecl.
3591 2016-05-11  Ilya Enkovich  <ilya.enkovich@intel.com>
3593         Backport from mainline r236086.
3594         2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
3596         PR tree-optimization/70876
3597         * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
3598         * gcc/calls.c (initialize_argument_information): Bind bounds
3599         with corresponding args passed by reference.
3601 2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3603         Backport from mainline
3604         2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3606         PR target/70963
3607         * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
3608         code for a zero scale factor.
3609         (vsx_xvcvdpuxds_scale): Likewise.
3611 2016-05-10  Jakub Jelinek  <jakub@redhat.com>
3613         Backported from mainline
3614         2016-05-03  Jakub Jelinek  <jakub@redhat.com>
3616         PR tree-optimization/70916
3617         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
3618         if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
3620 2016-05-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
3622         Backport from mainline r235962.
3623         2016-05-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
3625         PR debug/70935
3626         * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
3627         loop latch destination.
3629 2016-05-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3631         Backport from mainline
3632         2016-05-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3634         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
3635         ("*fixuns_truncdfdi2_z13")
3636         ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
3637         ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
3638         ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
3640 2016-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
3642         Backport from mainline
3643         2016-04-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
3645         * config/rtems.h (LIB_SPEC): Add -latomic.
3647 2016-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
3649         Backport from mainline
3650         2016-04-27  Joel Sherrill  <joel@rtems.org>
3652         * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
3653         xilink.ld and flags not relevant to RTEMS.
3655 2016-05-09  Uros Bizjak  <ubizjak@gmail.com>
3657         * config/i386/i386.md (absneg splitters with general regs): Use
3658         general_reg_operand predicate.
3659         (btsq peephole2): Use x86_64_immediate_operand to check if new
3660         value is suitable for immediate operand.  Generate emitted insn
3661         using RTL expressions.
3662         (btcq peephole2): Ditto.
3663         (btrq peephole2): Ditto.  Generate correct immediate operand
3664         for AND masking.
3666 2016-05-07  Tom de Vries  <tom@codesourcery.com>
3668         backport:
3669         2016-05-07  Tom de Vries  <tom@codesourcery.com>
3671         PR tree-optimization/70956
3672         * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
3673         def.
3675 2016-05-06  Marek Polacek  <polacek@redhat.com>
3677         Backported from mainline
3678         2016-05-06  Marek Polacek  <polacek@redhat.com>
3680         PR sanitizer/70875
3681         * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
3683 2016-05-06  Marek Polacek  <polacek@redhat.com>
3685         Backported from mainline
3686         2016-04-29  Marek Polacek  <polacek@redhat.com>
3687                     Jakub Jelinek  <jakub@redhat.com>
3689         PR sanitizer/70342
3690         * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
3691         TARGET_EXPR_SLOT as a base.
3693 2016-05-04  Eric Botcazou  <ebotcazou@adacore.com>
3695         * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
3696         comment.
3697         (compute_samebase_partition_bases): Fix typo.
3699 2016-05-03  Pierre-Marie de Rodat  <derodat@adacore.com>
3701         * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
3702         occurence with frame_offset_ ones.
3704 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
3706         PR target/70858
3707         * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
3708         to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
3709         (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
3710         __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
3711         __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
3713 2016-04-28  Eric Botcazou  <ebotcazou@adacore.com>
3715         Backport from mainline
3716         2016-04-27  Eric Botcazou  <ebotcazou@adacore.com>
3718         PR ada/70759
3719         * stor-layout.h (internal_reference_types): Delete.
3720         * stor-layout.c (reference_types_internal): Likewise.
3721         (internal_reference_types): Likewise.
3722         (layout_type) <REFERENCE_TYPE>: Adjust.
3724 2016-04-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3726         Backport from mainline
3727         2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3729         * config/rs6000/rs6000-builtin.def: Correct pasto error for
3730         stxvd2x and stxvw4x built-in functions.
3732 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
3734         Backported from mainline
3735         2016-04-21  H.J. Lu  <hongjiu.lu@intel.com>
3737         PR target/70750
3738         * config/i386/predicates.md (call_insn_operand): Replace
3739         sibcall_memory_operand with memory_operand.
3741 2016-04-27  Richard Biener  <rguenther@suse.de>
3743         PR ipa/70785
3744         * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
3745         function cummulating used_from_other_partition, externally_visible
3746         and force_output from aliases.
3747         (refered_from_nonlocal_var): Likewise.
3748         (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
3749         node flags properly.
3751 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
3753         Backported from mainline
3754         2016-04-23  Jakub Jelinek  <jakub@redhat.com>
3756         PR sanitizer/70712
3757         * cfgexpand.c (expand_stack_vars): Fix typo.
3759         2016-04-19  Jakub Jelinek  <jakub@redhat.com>
3761         PR middle-end/70680
3762         * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
3763         implicitly linear or lastprivate iterator on the outer context.
3765 2016-04-27  Kirill Yukhin  <kirill.yukhin@intel.com>
3767         PR target/70728
3768         * gcc/config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
3769         Extract AVX-512BW constraint from AVX.
3771 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
3773         * BASE-VER: Set to 6.1.1.
3775 2016-04-27  Release Manager
3777         * GCC 6.1.0 released.
3779 2016-04-25  Richard Biener  <rguenther@suse.de>
3781         PR tree-optimization/70780
3782         * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
3783         wasn't visited yet.
3784         (compute_antic): Mark blocks with abnormal preds as visited as
3785         they have a final empty antic-in solution already.
3787 2016-04-22  H.J. Lu  <hongjiu.lu@intel.com>
3789         Backport from mainline
3790         2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
3792         * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
3794 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3796         * system.h (list, map, set, vector): Include conditionally.
3797         * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
3798         * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
3799         * ipa-icf.c (INCLUDE_LIST): Define.
3800         * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
3801         * config/sh/sh.c (INCLUDE_VECTOR): Define.
3802         * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
3803         (INCLUDE_LIST, INCLUDE_VECTOR): Define.
3804         * cp/logic.cc (INCLUDE_LIST): Define.
3805         * fortran/trans-common.c (INCLUDE_MAP): Define.
3807 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3809         * auto-profile.c: Remove <string.h> include.
3810         * ipa-icf-gimple.c: Remove <list> include.
3811         * diagnostic.c: Remove <new> include.
3812         * genmatch.c: Likewise.
3813         * pretty-print.c: Likewise.
3814         * toplev.c: Likewise
3815         * c/c-objc-common.c: Likewise.
3816         * cp/error.c: Likewise.
3817         * fortran/error.c: Likewise.
3819 2016-04-21  Richard Biener  <rguenther@suse.de>
3821         PR middle-end/70747
3822         * fold-const.c (fold_comparison): Return properly typed
3823         constant boolean.
3825 2016-04-20  Andrew Pinski  <apinski@cavium.com>
3826             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3828         PR target/64971
3829         * config/aarch64/aarch64.md (sibcall): Force call
3830         address to be DImode for ILP32.
3831         (sibcall_value): Likewise.
3833 2016-04-20  Marek Polacek  <polacek@redhat.com>
3835         * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
3836         rather than true.
3838 2016-04-20  Marek Polacek  <polacek@redhat.com>
3840         PR tree-optimization/70725
3841         * tree-if-conv.c (is_false_predicate): New function.
3842         (predicate_mem_writes): Use it.
3844 2016-04-20  Richard Biener  <rguenther@suse.de>
3846         PR tree-optimization/70726
3847         * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
3848         shift amounts from a pattern stmt operand.
3850 2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3852         PR target/70674
3853         * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
3854         stack_restore_from_fpr pattern when restoring r15.
3855         (s390_optimize_prologue): Strip away the memory barrier in the
3856         parallel when trying to get rid of restore insns.
3857         * config/s390/s390.md ("stack_restore_from_fpr"): New insn
3858         definition for loading the stack pointer from an FPR.  Compared to
3859         the normal move insn this pattern includes a full memory barrier.
3861 2016-04-19  Richard Biener  <rguenther@suse.de>
3863         PR tree-optimization/70724
3864         * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
3865         restoring out from ...
3866         (free_scc_vn): ... here.
3867         * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
3868         * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
3869         tail merging.
3870         (pass_fre::execute): Restore SSA info.
3872 2016-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3874         * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
3875         gld requirements.
3876         (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc
3877         versions.
3878         Mention Solaris 11 packaging changes.
3879         Update gas and gld requirements.
3880         Remove reference to pre-Solaris 10 bug.
3881         (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
3882         systems and bugs.
3883         (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
3884         with cc.
3886 2016-04-18  Matthew Wahab  <matthew.wahab@arm.com>
3888         PR target/70711
3889         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
3890         armv8.1-a and armv8.1-a+crc.
3892 2016-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
3894         * has-brig.c (lendian16): Don't try to use __builtin_bswap16
3895         unless compiling with at least GCC-4.8.
3897 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
3899         PR target/70662
3900         * config/i386/sse.md (define_insn "<avx512>_vec_dup<mode><mask_name>"):
3901         Fix mode size check.
3903 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
3905         * BASE-VER: Set to 6.0.1.
3906         * DEV-PHASE: Set to prerelease.
3908 2016-04-15  Alexander Monakov  <amonakov@ispras.ru>
3910         * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
3912 2016-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3914         * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
3915         architecture revisions.
3917 2016-04-15  Bernd Schmidt  <bschmidt@redhat.com>
3919         * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
3920         * config/i386/i386.c (ix86_using_red_zone): No longer static.
3921         * config/i386/i386.md (stack decrement to push peepholes): Guard
3922         with !x86_using_red_zone ().
3924 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
3926         PR c++/70675
3927         * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
3928         to dump_generic_node.
3929         (NIY): Pass also flags to do_niy.
3931 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
3933         * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
3934         (simd_clone_vector_of_formal_parm_types)
3935         (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
3936         (simd_clone_mangle, simd_clone_create)
3937         (simd_clone_adjust_return_type, create_tmp_simd_array)
3938         (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
3939         (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
3940         (ipa_simd_modify_function_body, simd_clone_linear_addend)
3941         (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
3942         (pass_data_omp_simd_clone, class pass_omp_simd_clone)
3943         (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move
3944         into...
3945         * omp-simd-clone.c: ... this new file.
3946         (simd_clone_vector_of_formal_parm_types): Make it static.
3947         * Makefile.in (OBJS): Add omp-simd-clone.o.
3949 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
3951         PR target/70662
3952         * config/i386/sse.md: Use proper memory operand
3953         modifiers.
3956 2016-04-15  Richard Biener  <rguenther@suse.de>
3957         Alan Modra  <amodra@gmail.com>
3959         PR tree-optimization/70130
3960         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
3961         when alignment stays not the same and no not use the realign
3962         scheme then.
3964 2016-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
3966         PR target/70669
3967         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
3968         direct move handlers for KFmode. Change TFmode handlers test from
3969         FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
3971 2016-04-14  Jakub Jelinek  <jakub@redhat.com>
3973         PR c++/70594
3974         * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
3975         * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
3976         (inlined_polymorphic_ctor_dtor_block_p): Use it.
3977         * tree-ssa-live.c (remove_unused_scope_block_p): When
3978         in_ctor_dtor_block, avoid discarding not just BLOCKs with
3979         BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
3980         block_ultimate_origin is FUNCTION_DECL.
3981         (remove_unused_locals): If current_function_decl is
3982         polymorphic_ctor_dtor_p, pass initial true to
3983         remove_unused_scope_block_p' is_ctor_dtor_block.
3985 2016-04-14  Martin Sebor  <msebor@redhat.com>
3987         PR c++/69517
3988         PR c++/70019
3989         PR c++/70588
3990         * doc/extend.texi (Variable Length): Revert.
3992 2016-04-14  Marek Polacek  <polacek@redhat.com>
3993             Jan Hubicka  <hubicka@ucw.cz>
3995         PR c++/70029
3996         * tree.c (verify_type): Disable the canonical type of main variant
3997         check.
3999 2016-04-14  Jason Merrill  <jason@redhat.com>
4001         * cfgexpand.c, expr.c: Revert previous change.
4003 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
4005         PR middle-end/70643
4006         * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
4007         when building a mem ref for the incoming reduction variable.
4009 2016-04-14  Richard Biener  <rguenther@suse.de>
4011         PR tree-optimization/70614
4012         * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
4013         loop if the evolution dropped to chrec_dont_know.
4014         (interpret_condition_phi): Likewise.
4016 2016-04-14  Richard Biener  <rguenther@suse.de>
4018         PR tree-optimization/70623
4019         * tree-ssa-pre.c (changed_blocks): Make global ...
4020         (compute_antic): ... local here.  Move and fix worklist
4021         handling here.  Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
4022         (compute_antic_aux): Add dumping for MAX assumed succs.  Remove
4023         worklist handling, dump when ANTIC_IN changed.
4024         (compute_partial_antic_aux): Remove worklist handling.
4025         (init_pre): Do not compute post dominators.  Add a comment about
4026         the CFG order chosen.
4027         (fini_pre): Do not free post dominators.
4029 2016-04-13  Martin Sebor  <msebor@redhat.com>
4031         PR c++/69517
4032         PR c++/70019
4033         PR c++/70588
4034         * doc/extend.texi (Variable Length): Document C++ specifics.
4036 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
4038         PR c++/70641
4039         * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
4040         on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
4041         eh edges have been purged.
4043         PR c++/70594
4044         * tree-sra.c (create_access_replacement,
4045         get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
4046         gets fancy name.
4047         * tree-pretty-print.c (dump_fancy_name): New function.
4048         (dump_decl_name, dump_generic_node): Use it.
4050 2016-04-13  Jason Merrill  <jason@redhat.com>
4052         * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
4053         * expr.c (expand_expr_real_1): Likewise.
4055 2016-04-13  Ilya Enkovich  <ilya.enkovich@intel.com>
4057         * config/i386/i386.md (kunpckhi): Swap operands.
4058         (kunpcksi): Likewise.
4059         (kunpckdi): Likewise.
4060         * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
4061         (vec_pack_trunc_<mode>): Likewise.
4063 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
4065         PR debug/70628
4066         * explow.c (convert_memory_address_addr_space_1): Formatting fix.
4068         PR middle-end/70633
4069         * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
4070         gimplification turns some element into non-constant.
4072         PR debug/70628
4073         * rtl.h (convert_memory_address_addr_space_1): New prototype.
4074         * explow.c (convert_memory_address_addr_space_1): No longer static,
4075         add NO_EMIT argument and don't call convert_modes if true, pass
4076         it down recursively, remove break after return.
4077         (convert_memory_address_addr_space): Adjust caller.
4078         * simplify-rtx.c (simplify_unary_operation_1): Call
4079         convert_memory_address_addr_space_1 instead of convert_memory_address,
4080         if it returns NULL, don't simplify.
4082 2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
4084         PR target/70630
4085         * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
4087 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
4089         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
4090         Bump the upper SIMDLEN limits, so that if the return type or
4091         characteristic type if the return type is void can be passed in
4092         all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
4093         allowed.
4095 2016-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
4097         PR target/70640
4098         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
4099         Do not use "=" constraint on an input constraint.
4100         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
4101         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
4102         (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
4103         generates (neg (abs ...)) instead of (abs ...).
4105 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
4107         PR rtl-optimization/70596
4108         * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
4109         just invalidate LRA data and reset them.  Adjust dump wording.
4111 2016-04-12  Martin Liska  <mliska@suse.cz>
4113         Revert
4114         2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
4116         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
4117         estimates here.
4118         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
4119         max_loop_iterations_int.
4120         (tree_unswitch_outer_loop): Likewise.
4121         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
4122         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
4124 2016-04-12  Tom de Vries  <tom@codesourcery.com>
4126         PR tree-optimization/68756
4127         * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
4128         instead of new_name.
4130 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
4132         PR tree-optimization/70602
4133         * tree-sra.c (generate_subtree_copies): Don't write anything into
4134         constant pool decls.
4136         * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
4137         regardless whether there are depend clauses or not.
4139 2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
4141         PR target/70381
4142         * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
4143         target attribute and pragma from changing the -mfloat128
4144         and -mfloat128-hardware options.
4146         * doc/extend.texi (Additional Floating Types): Document PowerPC
4147         __float128 restrictions.
4149 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
4151         PR target/70133
4152         * config/aarch64/driver-aarch64.c
4153         (aarch64_get_extension_string_for_isa_flags): New.
4154         (arch_extension): Rename to...
4155         (aarch64_arch_extension): ...This.
4156         (ext_to_feat_string): Rename to...
4157         (aarch64_extensions): ...This.
4158         (aarch64_core_data): Keep track of architecture extension flags.
4159         (cpu_data): Rename to...
4160         (aarch64_cpu_data): ...This.
4161         (aarch64_arch_driver_info): Keep track of architecture extension
4162         flags.
4163         (get_arch_name_from_id): Rename to...
4164         (get_arch_from_id): ...This, change return type.
4165         (host_detect_local_cpu): Update and reformat for renames, handle
4166         extensions through common infrastructure.
4168 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
4170         PR target/70133
4171         * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
4172         track of a canonical flag name.
4173         (all_extensions): Likewise.
4174         (arch_to_arch_name): Also track extension flags enabled by the arch.
4175         (all_architectures): Likewise.
4176         (aarch64_parse_extension): Move to here.
4177         (aarch64_get_extension_string_for_isa_flags): Take a new argument,
4178         rework.
4179         (aarch64_rewrite_selected_cpu): Update for above change.
4180         * config/aarch64/aarch64-option-extensions.def: Rework the way flags
4181         are handled, such that the single explicit value enabled by an
4182         extension is kept seperate from the implicit values it also enables.
4183         * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
4184         to here.
4185         (aarch64_parse_extension): New.
4186         * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
4187         here to config/aarch64/aarch64-protos.h.
4188         (aarch64_parse_extension): Move from here to
4189         common/config/aarch64/aarch64-common.c.
4190         (aarch64_option_print): Update.
4191         (aarch64_declare_function_name): Likewise.
4192         (aarch64_start_file): Likewise.
4193         * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
4194         the canonical flag for extensions.
4195         * config.gcc (aarch64*-*-*): Extend regex for capturing extension
4196         flags.
4198 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
4200         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
4201         AARCH64_FL_CRC.
4203 2016-04-09  Tom de Vries  <tom@codesourcery.com>
4205         PR tree-optimization/68953
4206         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
4207         first to last subscript.
4209 2016-04-09  Jakub Jelinek  <jakub@redhat.com>
4211         PR tree-optimization/70586
4212         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
4213         for any calls.
4215 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
4217         PR lto/70289
4218         PR ipa/70348
4219         PR tree-optimization/70373
4220         PR middle-end/70533
4221         PR middle-end/70534
4222         PR middle-end/70535
4223         * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
4224         clauses for acc parallel reductions as necessary.  Error on those
4225         that are private.
4226         * omp-low.c (scan_sharing_clauses): Don't install variables which
4227         are used in acc parallel reductions.
4228         (lower_rec_input_clauses): Remove dead code.
4229         (lower_oacc_reductions): Add support for reference reductions.
4230         (lower_reduction_clauses): Remove dead code.
4231         (lower_omp_target): Don't remap variables appearing in acc parallel
4232         reductions.
4233         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
4235 2016-04-08  Jakub Jelinek  <jakub@redhat.com>
4237         PR middle-end/70593
4238         * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
4239         with multiple SSA_NAME defs, force the outputs other than first
4240         to be live before calling live_track_process_def on each output.
4242         PR rtl-optimization/70574
4243         * fwprop.c (forward_propagate_and_simplify): Don't add
4244         REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
4245         (try_fwprop_subst): Don't add REG_EQUAL note if there are any
4246         paradoxical subregs within *loc.
4248 2016-04-08  Thomas Schwinge  <thomas@codesourcery.com>
4250         * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
4251         -ftree-parallelize-loops={0,1}.
4252         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
4253         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
4254         * config/ia64/hpux.h (LIB_SPEC): Likewise.
4255         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
4256         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
4258 2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>
4260         PR sanitizer/70541
4261         * asan.c (instrument_derefs): If we get unknown location, extract it
4262         with EXPR_LOCATION.
4263         (maybe_instrument_call): Instrument gimple_call's arguments if needed.
4265 2016-04-08  Tom de Vries  <tom@codesourcery.com>
4267         * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
4268         implicit firstprivate clause.
4270 2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4272         PR target/70566
4273         * config/arm/thumb2.md (tst + branch-> lsls + branch
4274         peephole below *orsi_not_shiftsi_si): Require that condition
4275         register is dead after the peephole.
4276         (second peephole after the above): Likewise.
4278 2016-04-08  Alan Modra  <amodra@gmail.com>
4280         PR target/70117
4281         * builtins.c (fold_builtin_classify): For IBM extended precision,
4282         look at just the high-order double to test for NaN.
4283         (fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
4284         test just the high double for Inf but both doubles for subnormal
4285         limit.
4287 2016-04-07  Jakub Jelinek  <jakub@redhat.com>
4289         * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
4290         * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
4291         node->simdclone->mask_mode != VOIDmode masks.
4292         (simd_clone_adjust_argument_types): Likewise.  Move sc var definition
4293         earlier, use it instead of node->simdclone.
4294         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
4295         Set clonei->mask_mode.
4297 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
4299         PR c/70436
4300         * parser.c (cp_parser_iteration_statement): New parameter IF_P.
4301         Pass it through to cp_parser_already_scoped_statement.
4302         (cp_parser_already_scoped_statement): New parameter IF_P.  Pass
4303         it through to cp_parser_statement.
4304         (cp_parser_statement): Pass IF_P through to
4305         cp_parser_iteration_statement.
4306         (cp_parser_pragma): Adjust call to
4307         cp_parser_iteration_statement.
4309 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
4311         PR c/70436
4312         * gimplify.c (gimplify_omp_ordered): Add explicit braces to
4313         resolve a future -Wparentheses warning.
4314         * omp-low.c (scan_sharing_clauses): Likewise.
4315         * tree-parloops.c (eliminate_local_variables): Likewise.
4317 2016-04-06  Vladimir Makarov  <vmakarov@redhat.com>
4319         PR rtl-optimization/70398
4320         * lra-constraints.c (process_address_1): Check zero scale and code
4321         for reloading with zero scale.
4323 2016-04-06  Uros Bizjak  <ubizjak@gmail.com>
4325         * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
4326         (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
4328 2016-04-06  Jakub Jelinek  <jakub@redhat.com>
4330         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
4331         Add support for AVX512F clones, include them by default for
4332         exported OpenMP declare simd functions.  For AVX2 allow simdlen 32
4333         and use it if charasteric type is 8-bit, for AVX512F allow simdlen
4334         up to 128.
4336         PR middle-end/70550
4337         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
4338         * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
4339         firstprivate clauses.
4340         * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
4341         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
4342         (lower_omp_target): Set TREE_NO_WARNING for
4343         non-addressable possibly uninitialized vars which are copied into
4344         addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
4346 2016-04-05  John David Anglin  <danglin@gcc.gnu.org>
4348         * config/pa/predicates.md (integer_store_memory_operand): Accept
4349         REG+D operands with a large offset when reload_in_progress is true.
4350         (floating_point_store_memory_operand): Likewise.
4352 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
4354         PR c++/70336
4355         * match.pd (nested int casts): Limit to GIMPLE.
4357 2016-04-05  Jan Hubicka  <hubicka@ucw.cz>
4359         PR ipa/66223
4360         * ipa-devirt.c (maybe_record_node): Fix comment; use
4361         SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
4363 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
4365         PR rtl-optimization/70542
4366         * ree.c (add_removable_extension): For VECTOR_MODE_P punt
4367         if there are any uses other than insn or debug insns.
4369 2016-04-05  Marc Glisse  <marc.glisse@inria.fr>
4370             Jakub Jelinek  <jakub@redhat.com>
4372         PR tree-optimization/70509
4373         * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
4374         Shift HOST_WIDE_INT_1U instead of 1.
4376 2016-04-05  Zdenek Sojka  <zsojka@seznam.cz>
4378         PR tree-optimization/70509
4379         * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
4380         of the vector base type for index.
4382 2016-04-05  Uros Bizjak  <ubizjak@gmail.com>
4384         PR target/70510
4385         * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
4387 2016-04-05  Richard Biener  <rguenther@suse.de>
4389         PR tree-optimization/70526
4390         * tree-sra.c (build_ref_for_offset): Use prev_base to
4391         extract the alias pointer type.
4393 2016-04-05  Richard Biener  <rguenther@suse.de>
4395         * dse.c (struct store_info): Remove alias_set member.
4396         (struct read_info_type): Likewise.
4397         (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
4398         spill_deleted, clear_alias_set_lookup): Remove.
4399         (get_group_info): Remove dead base == NULL_RTX case.
4400         (dse_step0): Remove initialization of removed variables.
4401         (delete_dead_store_insn): Reomve alias set dumping.
4402         (free_read_records): Remove alias_set handling.
4403         (canon_address): Remove alias_set_out parameter.
4404         (record_store): Remove spill_alias_set, it's always zero.
4405         (check_mem_read_rtx): Likewise.
4406         (dse_step2): Rename from ...
4407         (dse_step2_nospill): ... this.  Adjust.
4408         (scan_stores): Rename from ...
4409         (scan_stores_nospill): ... this.
4410         (scan_reads): Rename from ...
4411         (scan_reads_nospill): ... this.
4412         (scan_stores_spill, scan_reads_spill): Remove.
4413         (dse_step3_scan): Remove for_spills argument which is always false.
4414         (dse_step3): Likewise.
4415         (dse_step5): Rename from ...
4416         (dse_step5_nospill): ... this.  Remove alias_set handling.
4417         (rest_of_handle_dse): Adjust.
4419 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
4421         PR target/70525
4422         * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
4423         Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
4424         V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
4425         (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
4427 2016-04-05  Richard Biener  <rguenther@suse.de>
4429         PR middle-end/70499
4430         * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
4431         non-register type temporaries into SSA.
4433 2016-04-04  Jan Hubicka  <hubicka@ucw.cz>
4435         PR ipa/66223
4436         * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
4437         calls when sanitizing.
4438         (possible_polymorphic_call_target_p): Fix formatting.
4440 2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4441             Jakub Jelinek <jakub@redhat.com>
4443         PR middle-end/70457
4444         * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
4445         to ensure a call statement is compatible with a built-in's
4446         prototype.
4447         * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
4448         Likewise.
4450 2016-04-04  Richard Biener  <rguenther@suse.de>
4452         PR rtl-optimization/70484
4453         * rtl.h (canon_output_dependence): Declare.
4454         * alias.c (canon_output_dependence): New function.
4455         * dse.c (record_store): Use canon_output_dependence rather
4456         than canon_true_dependence.
4458 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
4460         PR ipa/68881
4461         * cgraph.h (symtab_node::copy_visibility_from): New function.
4462         * symtab.c (symtab_node::copy_visibility_from): New function.
4463         * ipa-visibility.c (optimize_weakref): New function.
4464         (function_and_variable_visibility): Use it.
4466 2016-04-04  Martin Liska  <mliska@suse.cz>
4468         PR hsa/70402
4469         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
4470         value that is really in range handled by SBR instruction.
4471         * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
4472         * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
4473         * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
4475 2016-04-03  Oleg Endo  <olegendo@gcc.gnu.org>
4477         PR target/70416
4478         PR target/67391
4479         * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
4480         set, but not for SP_REG operands.
4482 2016-04-02  Martin Sebor  <msebor@redhat.com>
4484         PR c++/67376
4485         * fold-const.c (maybe_nonzero_address): New function.
4486         (fold_comparison): Call it.  Fold equality and relational
4487         expressions involving null pointers.
4488         (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
4490 2016-03-31  Evandro Menezes  <e.menezes@samsung.com>
4492         Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
4493         the "Y" constraint (scalar FP 0.0 immediate).
4495         * gcc/config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
4496         Add the "const_double" to the list of operand constraints.
4498 2016-04-01  Jakub Jelinek  <jakub@redhat.com>
4500         PR rtl-optimization/70467
4501         * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
4502         If low word of the last operand is 0, just emit addition/subtraction
4503         for the high word.
4505 2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4507         PR target/70404
4508         * config/s390/s390.c (s390_expand_insv): Check for everything
4509         constant instead of just VOIDmode stuff.
4511 2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4513         PR target/70496
4514         * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
4516 2016-04-01  Nathan Sidwell  <nathan@acm.org>
4518         * tree.def (TRY_CATCH_EXPR): Correct documentation.
4520 2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>
4522         PR rtl-optimization/70461
4523         * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
4524         is necessary.
4526 2016-03-31  Martin Liska  <mliska@suse.cz>
4528         PR hsa/70399
4529         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
4530         a tree value or an immediate integer value to a buffer
4531         that is eventually copied to a BRIG section.
4532         (emit_immediate_operand): Call the function here.
4533         * hsa-dump.c (dump_hsa_immed): Remove checking assert.
4534         * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
4535         of class' fields that are removed.
4536         (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
4537         * hsa.h (class hsa_op_immed): Remove m_brig_repr and
4538         m_brig_repr_size fields.
4540 2016-03-31  Martin Liska  <mliska@suse.cz>
4542         PR hsa/70391
4543         * hsa-gen.c (hsa_function_representation::update_dominance): New
4544         function.
4545         (convert_addr_to_flat_segment): Likewise.
4546         (gen_hsa_memory_set): New alignment argument.
4547         (gen_hsa_ctor_assignment): Likewise.
4548         (gen_hsa_insns_for_single_assignment): Provide alignment
4549         to gen_hsa_ctor_assignment.
4550         (gen_hsa_insns_for_direct_call): Add new argument.
4551         (expand_lhs_of_string_op): New function.
4552         (expand_string_operation_builtin): Likewise.
4553         (expand_memory_copy): New function.
4554         (expand_memory_set): New function.
4555         (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
4556         (convert_switch_statements): Change signature.
4557         (generate_hsa): Use a return value of the function.
4558         (pass_gen_hsail::execute): Do not call
4559         convert_switch_statements here.
4560         * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
4561         * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
4562         (hsa_function_representation::update_dominance): New function.
4564 2016-03-31  Martin Liska  <mliska@suse.cz>
4566         PR hsa/70391
4567         * hsa-brig.c (emit_directive_variable): Emit alignment
4568         according to hsa_symbol::m_align.
4569         * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
4570         (dump_hsa_symbol): Dump alignment of HSA symbols.
4571         * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
4572         (gen_hsa_addr_with_align): New function.
4573         (hsa_bitmemref_alignment): Use newly added function.
4574         (gen_hsa_insns_for_load): Likewise.
4575         (gen_hsa_insns_for_store): Likewise.
4576         (gen_hsa_memory_copy): New argument added.
4577         (gen_hsa_insns_for_single_assignment): Respect
4578         alignment for assignments processed via gen_hsa_memory_copy.
4579         (gen_hsa_insns_for_direct_call): Likewise.
4580         (gen_hsa_insns_for_return): Likewise.
4581         (gen_function_def_parameters): Set default alignment.
4582         * hsa.c (hsa_object_alignment): New function.
4583         (hsa_byte_alignment): Pasted function.
4584         * hsa.h (hsa_symbol::m_align): New field.
4586 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
4588         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
4589         scratch field for goto case.
4591 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
4593         * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
4595 2016-03-31  Ilya Enkovich  <enkovich.gnu@gmail.com>
4597         PR target/70442
4598         * config/i386/i386.c (scalar_chain::convert_op): Fix description.
4599         (scalar_chain::convert_insn): Call convert_op for reg
4600         moves to handle undefined registers.
4602 2016-03-31  Nathan Sidwell  <nathan@acm.org>
4604         PR c++/70393
4605         * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
4606         Assert we don't want to move backwards.
4608 2016-03-31  Kirill Yukhin  <kirill.yukhin@intel.com>
4610         PR target/70453
4611         * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
4613 2016-03-31  Jakub Jelinek  <jakub@redhat.com>
4615         PR rtl-optimization/70460
4616         * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
4617         with operand from REG_LABEL_OPERAND, instead substitute
4618         SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
4619         Don't do anything for REG_NON_LOCAL_GOTO jumps.
4621 2016-03-31  Martin Liska  <mliska@suse.cz>
4623         * passes.c (execute_one_pass): Do not call
4624         todo_after for a discarded function.
4626 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
4628         * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
4629         (no_cost, infinite_cost): Initialize the new field.
4630         (get_computation_cost_at): Record setup cost.
4631         (determine_use_iv_cost_address): Skip cost computation for sub
4632         uses if we can estimate it without losing accuracy.
4634 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
4636         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
4637         estimates here.
4638         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
4639         max_loop_iterations_int.
4640         (tree_unswitch_outer_loop): Likewise.
4641         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
4642         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
4644 2016-03-30  Richard Biener  <rguenther@suse.de>
4646         PR middle-end/70450
4647         * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
4649 2016-03-30  Jakub Jelinek  <jakub@redhat.com>
4651         PR target/70421
4652         * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
4653         in gen_blendm expander.
4655 2016-03-30  Nick Clifton  <nickc@redhat.com>
4657         PR target/62254
4658         * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
4659         case where we are already provided with an SImode SUBREG.
4661 2016-03-30  H.J. Lu  <hongjiu.lu@intel.com>
4663         PR target/70439
4664         * config/i386/i386.c (ix86_expand_epilogue): Properly check
4665         conflict between DRAP register and __builtin_eh_return.
4667 2016-03-30  Michael Matz  <matz@suse.de>
4668             Richard Biener  <rguenther@suse.de>
4670         PR ipa/12392
4671         * ipa-polymorphic-call.c (struct type_change_info): Change
4672         speculative to an unsigned allowing to limit the work we do.
4673         (csftc_abort_walking_p): New inline function..
4674         (check_stmt_for_type_change): Limit the number of may-defs
4675         skipped for speculative devirtualization to
4676         max-speculative-devirt-maydefs.
4677         * params.def (max-speculative-devirt-maydefs): New param.
4678         * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
4680 2016-03-30  Mike Stump  <mrs@gcc.gnu.org>
4682         PR target/63890
4683         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
4684         and TARGET_MACHO.
4686 2016-03-30  Patrick Palka  <ppalka@gcc.gnu.org>
4688         PR tree-optimization/59124
4689         * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
4690         where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
4692 2016-03-29  Jeff Law  <law@redhat.com>
4694         * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
4696 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
4698         * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
4699         to HOST_WIDE_INT.
4701 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
4703         * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
4704         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
4705         gcrt0.o if linking dynamically.
4707 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
4709         PR ipa/70283
4710         * ipa-devirt.c (methods_equal_p): New function.
4711         (compare_virtual_tables): Use it.
4712         * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
4713         * cgraphclones.c (clone_function_name_1): Use
4714         symbol_table::symbol_suffix_separator.
4715         * coverage.c (build_var): Likewise.
4716         * symtab.c (symbol_table::symbol_suffix_separator): New.
4718 2016-03-29  Jakub Jelinek  <jakub@redhat.com>
4720         PR rtl-optimization/70429
4721         * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
4722         (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
4723         mode != result_mode.
4725         PR c++/70353
4726         * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
4728         PR tree-optimization/70405
4729         * ssa-iterators.h (num_imm_uses): Add missing braces.
4731 2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>
4733         PR rtl-optimization/68695
4734         * ira-color.c (allocno_copy_cost_saving): New.
4735         (improve_allocation): Use it.
4737 2016-03-29  Richard Henderson  <rth@redhat.com>
4739         PR middle-end/70355
4740         * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
4742 2016-03-29  Richard Biener  <rguenther@suse.de>
4744         PR middle-end/70424
4745         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
4746         use alignment returned by get_pointer_alignment_1 if it is
4747         bigger than BITS_PER_UNIT.
4748         * builtins.c (get_pointer_alignment_1): Do not return true
4749         for alignment extracted from SSA info.
4751 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
4753         * config/ft32/ft32.opt (mnodiv): New.
4754         * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
4755         * doc/invoke.texi (FT32 Options -mnodiv): New.
4757 2016-03-28  Kirill Yukhin  <kirill.yukhin@intel.com>
4759         PR target/70406
4760         * config/i386/i386.md (define_split, andn): Fix modes.
4762 2016-03-26  Richard Biener  <rguenther@suse.de>
4763             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4765         PR ipa/70366
4766         * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
4767         instead of
4768         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
4769         as 2nd argument to cl_optimization_restore().
4771 2016-03-25  Richard Henderson  <rth@redhat.com>
4773         PR target/70120
4774         * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
4775         * config/aarch64/aarch64-protos.h: Declare it.
4776         * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
4778 2016-03-25  Alan Modra  <amodra@gmail.com>
4780         PR target/70052
4781         * config/rs6000/constraints.md (j): Simplify.
4782         * config/rs6000/predicates.md (easy_fp_constant): Exclude
4783         decimal float 0.D.
4784         * config/rs6000/rs6000.md (zero_fp): New mode_attr.
4785         (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
4786          mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
4787         in all constraint alternatives.
4788         (movtd_64bit_nodm): Delete "j" constraint alternative.
4790 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
4792         * tree-ssa-propagate.c: Enhance docs for
4793         SSA_PROP_NOT_INTERESTING.
4795 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
4797         * doc/extend.texi: Fix typo in documentation to pure attribute.
4799 2016-03-24  John David Anglin  <danglin@gcc.gnu.org>
4801         PR target/70319
4802         * config/pa/pa.md (bswapdi2): Use a scratch register.
4804 2016-03-24  Richard Henderson  <rth@redhat.com>
4806         PR middle-end/69845
4807         * fold-const.c (extract_muldiv_1): Correct test for multiplication
4808         overflow.
4810 2016-03-24  Uros Bizjak  <ubizjak@gmail.com>
4812         * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
4813         using ix86_expand_binary_operator instead of gen_andsi3.
4815 2016-03-24  Richard Biener  <rguenther@suse.de>
4817         PR tree-optimization/70396
4818         * tree-vect-stmts.c (vectorizable_comparison): Use
4819         get_vectype_for_scalar_type.
4821 2016-03-24  Richard Biener  <rguenther@suse.de>
4823         PR middle-end/70370
4824         * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
4825         with register bases.
4827 2016-03-24  Richard Biener  <rguenther@suse.de>
4829         PR tree-optimization/70372
4830         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
4831         build_all_ones_cst to also handle vector types correctly.
4833 2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
4835         PR target/70381
4836         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
4837         -mfloat128 here.
4839 2016-03-23  Marek Polacek  <polacek@redhat.com>
4841         PR c++/69884
4842         * doc/invoke.texi: Document -Wignored-attributes.
4844 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
4846         PR tree-optimization/69042
4847         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
4848         parameter from 30 to 40.
4850 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
4852         PR tree-optimization/69042
4853         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
4854         for use with constant offset stripped in base.
4856 2016-03-23  Richard Biener  <rguenther@suse.de>
4858         PR middle-end/70251
4859         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
4860         mode compatibility check.
4861         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
4863 2016-03-23  Jeff Law  <law@redhat.com>
4865         PR tree-optimization/64058
4866         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
4867         CONFLICT_COUNT.
4868         (struct ssa_conflicts): Move up earlier in the file.
4869         (conflicts_, var_map_): New static variables.
4870         (initialize_conflict_count): New function to initialize the
4871         CONFLICT_COUNT field for each conflict pair.
4872         (compare_pairs): Lazily initialize the conflict count and use it
4873         as the first tie-breaker.
4874         (sort_coalesce_list): Add new arguments conflicts, map.  Initialize
4875         and wipe conflicts_ and map_ around the call to qsort.  Remove
4876         special case for 2 coalesce pairs.
4877         * bitmap.c (bitmap_count_unique_bits): New function.
4878         (bitmap_count_bits_in_word): New function, extracted from
4879         bitmap_count_bits.
4880         (bitmap_count_bits): Use bitmap_count_bits_in_word.
4881         * bitmap.h (bitmap_count_unique_bits): Declare it.
4883 2016-03-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
4885         PR target/69917
4886         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
4887         transparent alias chain for decl assembler name.
4888         * config/sol2.c (solaris_assemble_visibility): Likewise.
4890 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4892         * config/arm/arm1020e.md (1020call_op): Reduce reservation
4893         duration.
4894         (v10_fdivs): Likewise.
4895         (v10_fdivd): Likewise.
4897 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4899         PR driver/70132
4900         * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
4901         to not call fclose twice on file.
4903 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
4905         PR tree-optimization/70354
4906         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
4907         oprnd0 is wider than oprnd1 and there is a cast from the wider
4908         type to oprnd1, mask it with the mask of the narrower type.
4910         PR target/70321
4911         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
4912         Optimize TARGET_STV splitters, if high or low word of last argument
4913         is 0 or -1.
4915 2016-03-22  Jeff Law  <law@redhat.com>
4917         PR target/70232
4918         tree-ssa-threadbackward.c
4919         (fsm_find_control_statement_thread_paths): Correctly distinguish
4920         between old style jump threads vs FSM jump threads.
4922 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
4924         PR target/70302
4925         * config/i386/i386.c (scalar_chain::convert_op): Support
4926         uninitialized register usage case.
4928 2016-03-22  Richard Biener  <rguenther@suse.de>
4930         PR middle-end/70251
4931         * genmatch.c (gen_transform): Adjust last parameter to a three-state
4932         int...
4933         (capture::gen_transform): ... to change behavior when substituting
4934         a condition into cond or not-cond expr context.
4935         (dt_simplify::gen_1): Adjust.
4936         * gimple-match-head.c: Include gimplify.h for unshare_expr.
4937         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
4938         last change and instead change to
4939         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
4940         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
4942 2016-03-22  Anthony Green  <green@moxielogic.com>
4944         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
4945         issue for moxiebox targets.
4946         (CC1PLUS_SPEC): Ditto.
4948 2016-03-22  Richard Biener  <rguenther@suse.de>
4950         PR middle-end/70333
4951         * fold-const.c (extract_muldiv_1): Properly perform multiplication
4952         in the wide type.
4954 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
4956         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
4958 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
4960         PR target/70325
4961         * config/i386/i386.c (def_builtin): Handle
4962         OPTION_MASK_ISA_AVX512VL to be and-ed with other
4963         bits.
4964         (const struct builtin_description bdesc_special_args[]):
4965         Remove duplicate ISA bits.
4967 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
4969         PR target/70329
4970         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
4971         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
4972         in a way that works also for AVX512BW.
4974         PR target/70300
4975         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
4976         instead of source if operands[1] is xmm16 and above and
4977         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
4978         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
4980         PR c++/70295
4981         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
4982         on assign if (*from_p) is a comparison, set it to
4983         TREE_NO_WARNING (*from_p).
4985 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
4987         PR middle-end/70326
4988         * lra.c (restore_scratches): Ignore deleted insns.
4990 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
4991             Jakub Jelinek  <jakub@redhat.com>
4993         PR tree-optimization/70317
4994         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
4995         to HONOR_NANS.
4997 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
4999         PR target/70327
5000         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
5001         of ix86_expand_move.
5002         (movoi): Ditto.
5003         (movti): Use general_operand for operand 1 predicate.
5005 2016-03-21  Martin Liska  <mliska@suse.cz>
5007         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
5008         insns.
5009         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
5011 2016-03-21  Martin Liska  <mliska@suse.cz>
5013         PR ipa/70306
5014         * ipa-icf.c (sem_function::parse): Skip static
5015         constructors and destructors.
5017 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
5019         PR target/70296
5020         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
5021         function-like macro, peek following token(s) if it is followed
5022         by CPP_OPEN_PAREN token with optional padding in between, and
5023         if not, don't treat it like a macro.
5025 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
5026             Alexander Monakov  <amonakov@ispras.ru>
5028         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
5029         for the stabs debug format.
5031 2016-03-21  Richard Biener  <rguenther@suse.de>
5033         PR tree-optimization/70310
5034         * tree-vect-generic.c (expand_vector_condition): Fold the built
5035         condition.
5037 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
5039         PR target/70293
5040         * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
5041         Block third alternative for AVX-512VL target,
5043 2016-03-21  Martin Liska  <mliska@suse.cz>
5045         PR hsa/70234
5046         * hsa-brig.c (emit_function_directives): Mark unemitted
5047         global variables for emission.
5048         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
5049         (get_symbol_for_decl): Likewise.
5050         * hsa.h (struct hsa_symbol): New flag.
5052 2016-03-21  Richard Biener  <rguenther@suse.de>
5054         PR tree-optimization/70288
5055         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
5056         we do not estimate unsimplified all-constant conditionals or
5057         switches as optimized away.
5059 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
5061         PR rtl-optimization/69102
5062         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
5063         when we have a readonly dependency context.
5065 2016-03-18  Jeff Law  <law@redhat.com>
5067         PR rtl-optimization/70263
5068         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
5069         (update_equiv_regs): When trying to move a store to after the insn
5070         that sets the source of the store, make sure the store occurs after
5071         the insn that sets the source of the store.  When successful note
5072         the REG_EQUIV note created in the dump file.
5074 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
5075             Bernd Schmidt  <bschmidt@redhat.com>
5077         * doc/extend.texi: Document more potential problems with basic asms.
5079 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
5081         PR rtl-optimization/70278
5082         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
5083         VOIDmode.
5085 2016-03-18  Jason Merrill  <jason@redhat.com>
5087         * calls.c (load_register_parameters): Fix zero size sibcall logic.
5089 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
5091         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
5092         values to 128b regs.
5094 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
5096         PR tree-optimization/70252
5097         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
5098         boolean vector has a proper number of elements.
5099         (supportable_narrowing_operation): Likewise.
5101 2016-03-18  Tom de Vries  <tom@codesourcery.com>
5103         PR ipa/70269
5104         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
5106 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
5108         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
5109         instead of replace_rtx for DEBUG_INSNs.
5111 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
5113         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
5114         load type reservations.
5116 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
5118         PR target/70188
5119         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
5120         define_constraint for "Q" and "T" constraints.
5122 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
5124         Tweak the pipeline model for Exynos M1
5126         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
5127         model.
5129 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
5131         PR c/70264
5132         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
5133         where one or both locations aren't within a line_map.
5135 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
5137         PR driver/70192
5138         * opts.c (finish_options): Don't set flag_pie to the default if
5139         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
5140         if it is -1.
5142 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
5144         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
5145         true as ALL_REGS argument to replace_rtx.
5147 2016-03-17  Richard Biener  <rguenther@suse.de>
5149         PR debug/70271
5150         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
5151         last.
5153 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
5155         PR target/70245
5156         * rtl.h (replace_rtx): Add ALL_REGS argument.
5157         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
5158         equality and assert mode is the same, instead of just rtx pointer
5159         equality.
5160         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
5161         true as ALL_REGS argument to replace_rtx.
5163 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
5165         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
5166         for boolean vector with vector mode only.
5167         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
5169 2016-03-17  Nick Clifton  <nickc@redhat.com>
5171         PR target/70162
5172         * config/rx/rx.c (rx_print_integer): Print negative constants in
5173         decimal.
5175 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
5177         PR target/70261
5178         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
5180 2016-03-16  Richard Henderson  <rth@redhat.com>
5181             Richard Biener  <rguenth@suse.de>
5183         PR middle-end/70240
5184         PR middle-end/68215
5185         PR tree-opt/68714
5186         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
5187         first operand as is_gimple_condexpr.
5189         PR middle-end/70240
5190         PR middle-end/68215
5191         Revert r231575
5192         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
5193         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
5194         Do not gimplify the result.
5195         (do_unop): Adjust call to tree_vec_extract.
5196         (do_binop): Likewise.
5197         (do_compare): Likewise.
5198         (do_plus_minus): Likewise.
5199         (do_negate): Likewise.
5200         (expand_vector_condition): Likewise.
5201         (do_cond): Likewise.
5203 2016-03-16  Richard Henderson  <rth@redhat.com>
5205         PR target/70048
5206         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
5207         (aarch64_classify_address): Use it.
5208         (aarch64_legitimize_address): Force all subexpressions of PLUS
5209         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
5211 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
5212             Richard Biener  <rguenth@suse.de>
5214         PR target/70245
5215         * rtlanal.c (replace_rtx): For REG, if from is a REG,
5216         return to even if only REGNO is equal, and assert
5217         mode is the same.
5219 2016-03-11  Jeff Law  <law@redhat.com>
5221         PR rtl-optimization/70224
5222         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
5224 2016-03-16  Richard Henderson  <rth@redhat.com>
5226         PR middle-end/70199
5227         * function.h (struct function): Add has_forced_label_in_static.
5228         * gimplify.c (force_labels_r): Set it.
5229         * lto-streamer-in.c (input_struct_function_base): Read it.
5230         * lto-streamer-out.c (output_struct_function_base): Write it.
5231         * tree-inline.c (has_label_address_in_static_1): Remove.
5232         (copy_forbidden): Remove fndecl parameter; test
5233         has_forced_label_in_static.
5234         (inline_forbidden_p): Update call to copy_forbidden.
5235         (tree_versionable_function_p): Likewise.
5236         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
5237         (chkp_versioning): Likewise.
5238         * tree-inline.h (copy_forbidden): Update decl.
5240 2016-03-16  Marek Polacek  <polacek@redhat.com>
5242         PR c/70093
5243         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
5244         function being thunked if the result type doesn't have fixed size.
5245         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
5246         doesn't have fixed size.
5248 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
5250         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
5251         reporting malformed loop nest.
5253 2016-03-16  Tom de Vries  <tom@codesourcery.com>
5255         PR lto/70187
5256         * ipa-devirt.c (possible_polymorphic_call_targets): Move
5257         nodes.length () == 1 test to before first nodes[0] access.
5259 2016-03-16  Tom de Vries  <tom@codesourcery.com>
5261         PR tree-optimization/68715
5262         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
5263         single_pred_p test.
5265 2016-03-16  Tom de Vries  <tom@codesourcery.com>
5267         PR tree-optimization/68809
5268         * graphite-scop-detection.c (same_close_phi_node): Test if result types
5269         are the same.
5271 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
5272             Sandra Loosemore  <sandra@codesourcery.com>
5274         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
5275         on leaf attribute. Mention ELF interposition problems.
5277 2016-03-16  Alan Modra  <amodra@gmail.com>
5279         PR rtl-optimization/69195
5280         PR rtl-optimization/47992
5281         * ira.c (indirect_jump_optimize): Ignore artificial defs.
5282         Add comments.
5284 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
5286         PR bootstrap/69513
5287         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
5289 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
5291         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
5293 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
5295         PR rtl-optimization/70222
5296         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
5297         optimization if mode is different from result_mode, queue up masking
5298         of the result in outer_op.  Formatting fix.
5300         PR middle-end/70239
5301         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
5302         of safe_grow.
5304 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
5306         PR rtl-optimization/69032
5307         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
5308         looping backwards over basic block insns.
5310 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
5312         PR target/66660
5313         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
5314         to non-speculative when propagating trap bits.
5316 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
5318         PR rtl-optimization/63384
5319         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
5320         DEBUG_INSN_P insns.
5322 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
5324         PR target/64411
5325         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
5326         factored out from ...
5327         (sched_analyze_insn): ... here.
5328         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
5329         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
5330         get_implicit_reg_pending_clobbers in it.
5331         (setup_id_reg_sets): Use setup_id_implicit_regs.
5332         (deps_init_id): Ditto.
5334 2016-03-15  Tom de Vries  <tom@codesourcery.com>
5336         PR ipa/70161
5337         * cgraph.c (cgraph_node::get_body): Save, reset and restore
5338         dump_file_name.
5339         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
5340         execute_function_dump.
5341         (execute_one_pass): Don't dump function if it will be dumped after ipa
5342         transform.
5344 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
5346         * genrecog.c (match_pattern_2): If pred is NULL don't call
5347         safe_predicate_mode on it.
5349 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
5351         PR middle-end/70219
5352         * lra-constraints.c (delete_move_and_clobber): Change assertion
5353         to also allow dregno == 0.
5355 2016-03-14  Richard Henderson  <rth@redhat.com>
5357         PR tree-opt/68714
5358         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
5359         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
5360         (reassociate_bb): Use optimize_vec_cond_expr; avoid
5361         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
5362         on vectors.
5364 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
5366         PR target/70083
5367         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
5368         regs.
5369         (lra_create_live_ranges_1): initialize hard register biggest_mode to
5370         VOIDmode.
5371         * lra-constraints.c (split_reg): For hard regs, try to find the
5372         biggest single-register mode used in the function.
5374 2016-03-14  Richard Biener  <rguenther@suse.de>
5376         PR tree-optimization/56365
5377         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
5378         constants to compare against.
5380 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
5382         PR target/70098
5383         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
5384         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
5385         (define_split for the GPR case): Use int_reg_operand instead of
5386         gpc_reg_operand for the output.
5388 2016-03-14  Tom de Vries  <tom@codesourcery.com>
5390         PR tree-optimization/70045
5391         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
5392         create_empty_if_region_on_edge argument.
5394 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
5396         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
5397         (STACK_CHECK_PROTECT): Likewise.
5398         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
5399         (STACK_CHECK_PROTECT): Likewise.
5400         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
5401         (STACK_CHECK_PROTECT): Likewise.
5402         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
5403         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5404         (STACK_CHECK_PROTECT): Likewise.
5406 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
5408         PR rtl-optimization/69307
5409         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
5410         registers in modes that span more than one register.
5412 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
5414         PR target/69614
5415         * lra-constraints.c (delete_move_and_clobber): New.
5416         (remove_inheritance_pseudos): Use it.
5418 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
5420         PR ada/70017
5421         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
5422         the libcall is LCT_THROW.
5423         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
5424         for the checking routine.
5426 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
5428         PR target/70131
5429         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
5430         optimization if we have direct move.
5431         (roundu32<mode>2_fprs): Likewise.
5433 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
5435         PR target/70123
5436         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
5437         be rematerialized.
5438         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
5439         Arguments swapped.  All callers changed.  Take reg_renumber into
5440         account, and Calculate and compare register ranges for hard regs.
5442 2016-03-11  Jeff Law  <law@redhat.com>
5444         PR tree-optimization/70190
5445         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
5446         Handle cases where we can not extract the taken edge, even though we
5447         found a constant value.
5449         PR tree-optimization/64058
5450         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
5451         (num_coalesce_pairs): Move up earlier in file.
5452         (find_coalesce_pair): Initialize the INDEX field for each pair
5453         discovered.
5454         (compare_pairs): No longer sort on the elements in each pair.
5455         Instead break ties with the index of the coalesce pair.
5457 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5459         PR target/70002
5460         * config/aarch64/aarch64-protos.h
5461         (aarch64_save_restore_target_globals): New prototype.
5462         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
5463         Call the above when popping pragma.
5464         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
5465         New function.
5466         (aarch64_set_current_function): Rewrite using the above.
5468 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
5470         PR tree-optimization/70177
5471         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
5472         (extract_ops_from_tree): ... this.  In the 2 argument
5473         overload remove _1 suffix.
5474         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
5475         (extract_ops_from_tree): ... this.
5476         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
5477         Adjust callers.
5478         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
5479         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
5480         extract_ops_from_tree instead of 2 operand one.
5482 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
5484         PR tree-optimization/70013
5485         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
5486         for constant-pool entries.
5488 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
5490         PR rtl-optimization/70174
5491         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
5492         followed by gen_lowpart on force_reg instead of just gen_lowpart.
5494         PR tree-optimization/70169
5495         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
5496         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
5497         for unknown codes.
5499 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
5500             Jakub Jelinek  <jakub@redhat.com>
5502         PR target/70160
5503         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
5504         of uninitialized values.
5506 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5508         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
5509         define_expand.
5510         ("*trunctddd2"): New pattern definition.
5511         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
5512         TD->DD truncation.
5514 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5516         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
5517         definitions for BFP and DFP rounding modes.
5518         ("fixuns_truncdddi2", "fixuns_trunctddi2")
5519         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
5520         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
5521         ("fix_trunctf<mode>2"): Use the new constants instead of magic
5522         numbers.
5524 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5526         * config/s390/constraints.md: Adjust comment.
5527         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
5528         s390_decompose_addrstyle_without_index.
5529         * config/s390/predicates.md (shift_count_or_setmem_operand):
5530         Rename to setmem_operand.
5531         * config/s390/s390-protos.h
5532         (s390_decompose_shift_count): Rename to
5533         s390_decompose_addrstyle_without_index.
5534         * config/s390/s390.c (s390_decompose_shift_count)
5535         (s390_mem_constraint, print_shift_count_operand)
5536         (print_operand_address, print_operand): Rename
5537         s390_decompose_shift_count to
5538         s390_decompose_addrstyle_without_index and rename
5539         print_shift_count_operand to print_addrstyle_operand troughout the
5540         file.
5541         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
5542         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
5543         Rename shift_count_or_setmem_operand to setmem_operand.
5544         * config/s390/vx-builtins.md ("vec_insert<mode>")
5545         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
5546         nonmemory_operand.
5548 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5550         PR target/70168
5551         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
5552         Handle overlapping retval and newval.
5554 2016-03-10  Nick Clifton  <nickc@redhat.com>
5556         PR target/7044
5557         * config/aarch64/aarch64.c
5558         (aarch64_override_options_after_change_1): When forcing
5559         flag_omit_frame_pointer to be true, use a special value that can
5560         be detected if this function is called again, thus preventing
5561         flag_omit_leaf_frame_pointer from being forced to be false.
5563 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5565         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
5566         Set x_flag_omit_leaf_frame_pointer when handling
5567         -momit-leaf-frame-pointer.
5569 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
5571         PR lto/69589
5572         * cgraph.c (cgraph_node::dump): Dump split_part and
5573         indirect_call_target.
5574         * cgraph.h (cgraph_node): Add indirect_call_target flag.
5575         * ipa.c (has_addr_references_p): Cleanup.
5576         (is_indirect_call_target_p): New.
5577         (walk_polymorphic_call_targets): Do not mark virtuals that may be
5578         called indirectly as local.
5579         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
5581 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
5583         PR ipa/69630
5584         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
5585         on cxa_pure_virtual.
5587 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
5589         PR lto/69589
5590         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
5592 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
5594         PR lto/69589
5595         * tree.c (need_assembler_name_p): Only record main variant type names.
5597 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
5599         PR target/70113.
5600         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
5601         Always define to 0 or 1.
5602         (TARGET_FIX_ERR_A53_843419): New macro.
5603         * config/aarch64/aarch64-elf-raw.h
5604         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
5605         * config/aarch64/aarch64-linux.h: Likewise.
5606         * config/aarch64/aarch64.c
5607         (aarch64_override_options_after_change_1): Do not default
5608         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
5609         843419 is on.
5610         (aarch64_attributes): Handle fix-cortex-a53-843419.
5611         (aarch64_can_inline_p): Likewise.
5612         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
5614 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
5615         Jakub Jelinek <jakub@redhat.com>
5617         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
5618         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
5619         DECL_COMMONS if flag_unconstrained_commons is set.
5620         * tree-dfa.c (get_ref_base_and_extent): Likewise.
5621         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
5622         (funconstrained-commons): Document.
5624 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
5626         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
5627         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
5629 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
5631         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
5632         has a proper number of elements.
5634 2016-03-10  Alan Modra  <amodra@gmail.com>
5636         PR rtl-optimization/69195
5637         PR rtl-optimization/47992
5638         * ira.c (recorded_label_ref): Delete.
5639         (update_equiv_regs): Return void.
5640         (indirect_jump_optimize): New function.
5641         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
5642         before regstat_compute_ri.  Don't rebuild_jump_labels here.
5643         Delete update_regstat.
5645 2016-03-10  Richard Biener  <rguenther@suse.de>
5647         PR tree-optimization/70128
5648         * tree-ssa-structalias.c (set_uids_in_ptset): Set
5649         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
5651 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
5653         PR tree-optimization/70152
5654         * tree-sra.c (replace_removed_params_ssa_names): Copy over
5655         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
5657         PR target/70086
5658         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
5659         instead of gen_sse2_loadlpd.
5660         * config/i386/sse.md (*vec_concatv2df): Rename to...
5661         (vec_concatv2df): ... this.
5663         PR tree-optimization/70127
5664         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
5666 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
5668         PR c/68473
5669         PR c++/70105
5670         * diagnostic-show-locus.c (compatible_locations_p): New function.
5671         (layout::layout): Sanitize ranges using compatible_locations_p.
5673 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
5675         PR c/68473
5676         PR c++/70105
5677         * diagnostic-show-locus.c (layout_range::layout_range): Replace
5678         location_range param with three const expanded_locations * and a
5679         bool.
5680         (layout::layout): Replace call to
5681         rich_location::lazily_expand_location with get_expanded_location.
5682         Extract the range and perform location expansion here, passing
5683         the results to the layout_range ctor.
5684         * diagnostic.c (source_range::debug): Delete.
5685         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
5686         of rich_location::get_expanded_location.
5687         * gcc-rich-location.c (get_range_for_expr): Delete.
5688         (gcc_rich_location::add_expr): Reimplement to avoid the
5689         rich_location::add_range overload that took a location_range,
5690         passing a location_t instead.
5692 2016-03-09  Richard Biener  <rguenther@suse.de>
5693         Jakub Jelinek  <jakub@redhat.com>
5695         PR tree-optimization/70138
5696         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
5697         Also skip vect_double_reduction_def.
5699 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
5701         PR target/70049
5702         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
5703         if the operand is "m".
5705 2016-03-09  Nathan Sidwell  <nathan@acm.org>
5707         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
5709 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
5711         * config/i386/i386.c (processor_target_table): Fix cost table
5712         intialization order for znver1.
5714 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
5716         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
5717         - becuase -> because.
5718         * ipa-reference.c (ignore_module_statics): Likewise.
5719         * cgraph.c (cgraph_node::get_body): Likewise.
5720         * ipa-inline.c (early_inliner): Likewise.
5721         * ipa-devirt.c (types_same_for_odr): Likewise.
5722         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
5723         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
5725 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5727         * tree-ssa-math-opts.c: Fix typo in comment.
5729 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
5731         PR target/70110
5732         * config/i386/i386.c (scalar_chain::make_vector_copies,
5733         scalar_chain::convert_reg): Call end_sequence in between
5734         get_insns and emit_conversion_insns rather than after both
5735         calls.
5737 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
5739         PR target/70064
5740         * config/i386/i386.h (machine_function): Add
5741         pc_thunk_call_expanded flag.
5742         (ix86_pc_thunk_call_expanded): New define.
5743         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
5744         (*set_got): Rename insn pattern from set_got.
5745         (*set_got_labelled): Rename inst pattern from set_got_labelled.
5746         * config/i386/i386.c (ix86_compute_frame_layout): Use
5747         ix86_pc_thunk_call_expanded to prevent red-zone.
5749 2016-03-07  Martin Jambor  <mjambor@suse.cz>
5751         * hsa.h (hsa_get_ctor_statements): Declare.
5752         (hsa_get_dtor_statements): Likewise.
5753         (hsa_get_kernel_dispatch_type): Likewise.
5754         * hsa.c (hsa_get_ctor_statements): New function.
5755         (hsa_get_dtor_statements): Likewise.
5756         (hsa_get_kernel_dispatch_type): Likewise.
5757         * hsa-brig.c (hsa_cdtor_statements): Removed.
5758         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
5759         hsa_get_dtor_statements.
5760         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
5761         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
5763 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
5765         * config/arm/arm-cores.def (cortex-r8): New.
5766         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
5767         * config/arm/arm-tune.md: Likewise.
5768         * gcc/doc/invoke.texi: Add cortex-r8 to list of cpu values.
5770 2016-03-07  Martin Sebor  <msebor@redhat.com>
5772         PR rtl-optimization/19705
5773         * doc/invoke.texi (Options That Control Optimization): Clarify
5774         -fno-branch-count-reg.
5776 2016-02-26  Richard Biener  <rguenther@suse.de>
5777             Jeff Law  <law@redhat.com>
5779         PR tree-optimization/69740
5780         * cfghooks.c (remove_edge): Request loop fixups if we delete
5781         an edge that might turn an irreducible loop into a natural
5782         loop.
5783         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
5784         Move after definition of loops_state_clear.
5786 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
5788         PR rtl-optimization/69052
5789         * rtlanal.c (commutative_operand_precedence): Set higher precedence
5790         to CONST_WIDE_INT.
5792 2016-03-07  Tom de Vries  <tom@codesourcery.com>
5794         PR tree-optimization/70116
5795         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
5796         is_tm_ending stmts and ubsan/asan internal functions.
5797         (find_duplicate): Use it.  Don't test is_tm_ending here.
5799 2016-03-07  Richard Biener  <rguenther@suse.de>
5801         PR tree-optimization/70115
5802         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
5803         (propagate_constants_for_unrolling): Use replace_uses_by.
5805 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
5807         PR middle-end/69916
5808         * omp-low.c (struct oacc_loop): Add ifns.
5809         (new_oacc_loop_raw): Initialize it.
5810         (finish_oacc_loop): Clear mask & flags if no ifns.
5811         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
5812         (oacc_loop_xform_loop): Add ifns arg & adjust.
5813         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
5815 2016-03-07  Richard Henderson  <rth@redhat.com>
5817         PR rtl-opt/70061
5818         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
5819         (insert_value_copy_on_edge): Likewise.
5821 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5823         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
5825 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5827         PR target/62281
5828         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
5830 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
5832         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
5834 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
5836         Fix sseimul type attribute.
5837         * config/i386/znver1.md
5838         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
5839         znver1_sseimul_avx256_load) : Fix the type attribute.
5840         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
5841         pipe usage and latency.
5843 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
5845         PR c++/70084
5846         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
5847         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
5848         to the right type.
5850 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
5852         PR c/69973
5853         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
5855         PR rtl-optimization/69941
5856         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
5857         the reg share its mode.
5859 2016-03-04  Jeff Law  <law@redhat.com>
5861         PR tree-optimization/69196
5862         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
5863         If the both SSA_NAMEs are anonymous, then consider them unassociated
5864         and include the PHI in the statement count.
5866 2016-03-05  Tom de Vries  <tom@codesourcery.com>
5868         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
5869         construct in oacc routine.  Check for oacc region in oacc routine.
5871 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
5873         PR target/70062
5874         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
5875         2016-02-22 changes, instead don't recurse if RECUR is already true.
5876         Don't change *dynamic_check if RECUR.  Adjust recursive caller
5877         to pass true to the new argument.
5878         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
5880         PR target/70059
5881         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
5882         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
5883         fixes.
5884         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
5886 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
5888         PR rtl-optimization/57676
5889         * lra-assigns.c (lra_assign): Guard test for maximum iterations
5890         with flag_checking.
5892 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
5894         * tree-vect-patterns.c (search_type_for_mask): Handle
5895         comparison of booleans.
5897 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
5899         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
5900         Fix @xref usage.
5902         PR debug/69947
5903         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
5904         all other ops that have dw_val_class_die_ref operands,
5905         and DW_OP_GNU_entry_value.
5907 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5909         PR rtl-optimization/69904
5910         * config/arm/arm.c (arm_cannot_copy_insn_p):
5911         Return true for load-exclusive instructions.
5913 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
5915         PR target/70021
5916         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
5917         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
5918         the pattern no matter if it is used just by non-pattern, pattern
5919         or mix thereof.
5920         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
5921         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
5922         oprnd1 def_stmt is in pattern, don't look through it.
5924 2016-03-03  Marek Polacek  <polacek@redhat.com>
5926         PR middle-end/70050
5927         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
5929 2016-03-03  Martin Liska  <mliska@suse.cz>
5931         PR tree-optimization/70043
5932         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
5933         previous statement if we see a debug statement.
5935 2016-03-03  Richard Biener  <rguenther@suse.de>
5937         PR tree-optimization/55936
5938         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
5939         parameter and guard unsafe equivalence use.
5940         (vrp_evaluate_conditional_warnv_with_ops): Always use
5941         safe equivalences but not via the quadratic compare_names
5942         helper.
5944 2016-03-03  Michael Collison  <michael.collison@linaro.org>
5946         PR target/70014
5947         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
5948         for operand 1 to s_register_operand. Change predicate for operand
5949         2 to arm_not_immediate_operand.
5951 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
5953         * doc/tm.texi: Regenerated.
5955 2016-03-02  Richard Henderson  <rth@redhat.com>
5957         PR rtl-opt/67145
5958         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
5959         simplification when all args are positive non-fixed registers.
5961 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5963         * target.def (lra_p): Specify that new ports should use LRA.
5965 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
5967         PR libgomp/69555
5968         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
5969         gimplify_type_sizes the type they refer to.
5970         (omp_notice_variable): Handle reference vars to VLAs.
5971         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
5972         reference to VLA decls in the second pass instead of first pass.
5974 2016-03-02  Tom de Vries  <tom@codesourcery.com>
5976         PR tree-optimization/68659
5977         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
5978         new_expr == NULL_TREE.
5979         (get_new_name): Handle ADDR_EXPR.
5981 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
5983         PR rtl-optimization/69052
5984         * loop-invariant.c (canonicalize_address): New function.
5985         (inv_can_prop_to_addr_use): Check validity of address expression
5986         which is canonicalized by above function.
5988 2016-03-02  Alan Modra  <amodra@gmail.com>
5990         PR ipa/69990
5991         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
5992         larger alignment.
5994 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
5996         PR target/70028
5997         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
5998         (*movhi_internal): Put mask moves from and to memory separately
5999         from moves from/to GPRs.
6001 2016-03-02  Richard Biener  <rguenther@suse.de>
6003         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
6004         GENERIC expressions in GIMPLE.
6006 2016-03-02  Richard Biener  <rguenther@suse.de>
6008         * config/i386/i386.c (type_natural_mode): Fix typo.
6010 2016-03-02  Nick Clifton  <nickc@redhat.com>
6012         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
6014 2016-03-02  Richard Biener  <rguenther@suse.de>
6015             Uros Bizjak  <ubizjak@gmail.com>
6017         PR target/67278
6018         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
6020 2016-03-02  Richard Biener  <rguenther@suse.de>
6022         PR middle-end/67278
6023         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
6025 2016-03-02  Marek Polacek  <polacek@redhat.com>
6027         PR c/67854
6028         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
6029         "is promoted to" warning.
6031 2016-03-01  DJ Delorie  <dj@redhat.com>
6033         * config.gcc: Deprecate mep-*.
6035 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
6037         PR middle-end/70025
6038         * lra-constraints.c (regno_val_use_in): New.
6039         (match_reload): Use it instead of regno_use_in.
6041 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
6043         PR rtl-optimization/70007
6044         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
6045         references present in REG_EQUAL notes attached to non-SET patterns.
6047 2016-03-01  Jeff Law  <law@redhat.com>
6049         PR tree-optimization/69196
6050         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6051         Appropriately clamp the number of statements to copy when the
6052         thread path does not traverse a loop backedge.
6054         PR tree-optimization/69196
6055         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6056         Do count some PHIs in the thread path against the insn count.  Decrease
6057         final statement count by one as the control statement in the last
6058         block will get removed.  Remove special cased code for handling PHIs
6059         in the last block.
6061 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
6063         PR target/70027
6064         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
6065         asm dialect alternatives to explicit GOTPCREL calls.
6067 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
6069         PR ada/70017
6070         * ira.c (do_reload): Issue warning for generic stack checking here...
6071         * reload1.c (reload): ...instead of here and streamline it.
6073 2016-03-01  Nick Clifton  <nickc@redhat.com>
6075         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
6077 2016-03-01  Richard Biener  <rguenther@suse.de>
6079         PR tree-optimization/69983
6080         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
6081         types and fall back to operand_equal_p.
6083 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6085         Revert
6086         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6088         * config/s390/constraints.md ("jm8"): New constraint.
6089         * config/s390/predicates.md ("const_int_8bitset_operand"): New
6090         predicate.
6091         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
6092         into ...
6093         ("*setmem_long<setmem_and>"): New pattern.
6094         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
6095         into ...
6096         ("*setmem_long_31z<setmem_and>"): New pattern.
6097         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
6098         New substitution rules with the required attributes.
6101 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6103         Revert
6104         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6106         * gensupport.c (process_substs_on_one_elem): Split loop to
6107         complete mark_operands_used_in_match_dup on all expressions in the
6108         vector first.
6109         (adjust_operands_numbers): Inline into process_substs_on_one_elem
6110         and remove function.
6112 2016-03-01  Richard Biener  <rguenther@suse.de>
6114         PR middle-end/70022
6115         * fold-const.c (fold_indirect_ref_1): Fix range checking for
6116         vector BIT_FIELD_REF extract.
6118 2016-03-01  Richard Biener  <rguenther@suse.de>
6120         PR tree-optimization/69994
6121         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
6123 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
6125         PR tree-optimization/69956
6126         * tree-vect-stmts.c (supportable_widening_operation): Support
6127         multi-step conversion of boolean vectors.
6128         (supportable_narrowing_operation): Likewise.
6130 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6132         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
6133         anymore.
6135 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6137         * config/s390/subst.md (DSI_VI): New mode iterator.
6138         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
6139         * config/s390/vector.md ("vec_set<mode>"): Move expander before
6140         the insn definition.
6141         ("*vec_set<mode>"): Change predicate and add alternative to
6142         support only either register or const_int operands as element
6143         selector.
6144         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
6145         operands.
6146         ("vec_extract<mode>"): New expander.
6147         ("*vec_extract<mode>"): New insn definition supporting reg and
6148         const_int element selectors.
6149         ("*vec_extract<mode>_plus"): New insn definition supporting
6150         reg+const_int element selectors.
6151         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
6152         following expander+insn definition.
6153         ("<vec_shifts_name><mode>3"): New expander.
6154         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
6156 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6158         * config/s390/s390.md ("*tabort_1"): Change predicate to
6159         nonmemory_operand.  Add a second alternative to cover
6160         register as well as const int operands.
6161         ("*tabort_1_plus"): New pattern definition.
6163 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6165         * config/s390/s390.md ("*ashrdi3_cc_31")
6166         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
6167         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
6168         Merge insn definitions into ...
6169         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
6170         New pattern definition.
6171         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
6172         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
6173         ("*ashr<mode>3_and"): Merge insn definitions into ...
6174         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
6175         New pattern definition.
6176         * config/s390/subst.md ("addr_style_op_cc_subst")
6177         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
6178         substitutions patterns plus attributes.
6179         Add ashiftrt to SUBST iterator.
6181 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6183         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
6184         op2 to nonmemory_operand.
6185         ("*<shift>di3_31", "*<shift>di3_31_and"):
6186         Merge into single pattern definition ...
6187         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
6188         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
6189         pattern definition ...
6190         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
6191         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
6192         iterator.
6194 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6196         * config/s390/predicates.md (const_int_6bitset_operand): New
6197         predicate.
6198         * config/s390/s390.md: Include subst.md.
6199         ("rotl<mode>3"): New expander.
6200         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
6201         ...
6202         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
6203         * config/s390/subst.md: New file.
6205 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6207         * config/s390/s390.md ("op_type", "atype", "length" attributes):
6208         Remove RRR type.  It doesn't really exist.
6209         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
6210         attributes.
6211         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
6212         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
6213         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
6214         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
6215         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
6216         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
6217         `enabled' attribute.
6219 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6221         * gensupport.c (process_substs_on_one_elem): Split loop to
6222         complete mark_operands_used_in_match_dup on all expressions in the
6223         vector first.
6224         (adjust_operands_numbers): Inline into process_substs_on_one_elem
6225         and remove function.
6227 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
6229         PR target/69706
6230         * config/sparc/sparc.c (NWORDS_UP): Rename to...
6231         (CEIL_NWORDS): ...this.  Use CEIL macro.
6232         (compute_fp_layout): Adjust to above renaming.
6233         (function_arg_union_value): Likewise.
6234         (sparc_arg_partial_bytes): Likewise.
6235         (sparc_function_arg_advance): Likewise.
6237 2016-02-29  Jeff Law  <law@redhat.com>
6239         PR tree-optimization/70005
6240         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
6241         where an object with a boolean range is compared against a value
6242         outside [0..1].
6244         PR tree-optimization/69999
6245         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
6246         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
6247         loop cleanups.
6249 2016-02-29  Richard Biener  <rguenther@suse.de>
6251         PR tree-optimization/69994
6252         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
6253         (get_unary_op): Look through nop conversions.
6254         (ops_equal_values_p): New function, look for equality diregarding
6255         nop conversions.
6256         (eliminate_plus_minus_pair): Use ops_equal_values_p
6257         (repropagate_negates): Do not use get_unary_op here.
6259 2016-02-29  Martin Liska  <mliska@suse.cz>
6261         * system.h: Poison ENABLE_CHECKING macro.
6263 2016-02-29  Martin Liska  <mliska@suse.cz>
6265         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
6266         is presented in dump flags.
6267         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
6268         (hsa_regalloc): Likewise.
6270 2016-02-19  Richard Biener  <rguenther@suse.de>
6272         PR tree-optimization/69980
6273         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
6274         permutation of those we need to keep.
6276 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
6278         PR target/69706
6279         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
6280         (NWORDS_UP): ...this
6281         (init_cumulative_args): Minor tweaks.
6282         (sparc_promote_function_mode): Likewise.
6283         (scan_record_type): Delete.
6284         (traverse_record_type): New function template.
6285         (classify_data_t): New structure type.
6286         (classify_registers): New inline function.
6287         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
6288         exhausted.  Instantiate traverse_record_type on classify_registers and
6289         deal with the case of a structure passed in slot #15 with no FP field
6290         in the first word.
6291         (assign_data_t): New structure type.
6292         (compute_int_layout): New static function.
6293         (compute_fp_layout): Likewise.
6294         (count_registers): New inline function.
6295         (assign_int_registers): New static function.
6296         (assign_fp_registers): Likewise.
6297         (assign_registers): New inline function.
6298         (function_arg_record_value_1): Delete.
6299         (function_arg_record_value_2): Likewise.
6300         (function_arg_record_value_3): Likewise.
6301         (function_arg_record_value): Adjust to above changes.  Instantiate
6302         traverse_record_type on count_registers to first count the number of
6303         registers to be used and then on assign_registers to assign them.
6304         (function_arg_union_value): Adjust to above renaming.
6305         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
6306         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
6307         case of a structure passed in slot #15
6308         (sparc_function_arg_advance): Likewise.
6309         (function_arg_padding): Minor tweak.
6311 2016-02-29  Richard Biener  <rguenther@suse.de>
6313         PR tree-optimization/69720
6314         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
6315         the adjustment_def path for possibly vectorized defs.
6316         (vect_create_epilog_for_reduction): Handle vectorized initial
6317         defs properly.
6319 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
6321         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
6323 2016-02-27  Jeff Law  <law@redhat.com>
6325         Revert
6326         2016-02-26  Richard Biener  <rguenther@suse.de>
6327                     Jeff Law  <law@redhat.com>
6329         PR tree-optimization/69740
6330         * cfghooks.c (remove_edge): Request loop fixups if we delete
6331         an edge that might turn an irreducible loop into a natural
6332         loop.
6334 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
6336         PR rtl-optimization/69896
6337         * tree-vect-generic.c (get_compute_type): Avoid single element
6338         vector types.
6340 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
6342         Rename the AArch64 tuning option and related functions to enable the
6343         Newton series for the reciprocal square root to reflect its
6344         approximative characteristic.
6346         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
6347         function to "aarch64_emit_approx_rsqrt".
6348         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
6349         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
6350         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
6351         (xgene1_tunings): Likewise.
6352         (use_rsqrt_p): Likewise.
6353         (aarch64_emit_swrsqrt): Use new function name.
6354         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
6355         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
6356         text explaining this option.
6357         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
6359 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
6361         PR target/69969
6362         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
6363         complain about -mallow-movmisalign without -mvsx if
6364         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
6366 2016-02-26  Joel Sherrill  <joel@rtems.org>
6368         * config.gcc: Add x86_64-*-rtems*.
6369         * gcc/config/i386/rtems-64.h: New file.
6371 2016-02-26  Joel Sherrill  <joel@rtems.org>
6373         * config.gcc: Add aarch64-*-rtems*.
6374         * gcc/config/aarch64/rtems.h: New file.
6376 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
6378         PR target/69946
6379         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
6380         shift amount using %h.  Add comment.
6382 2016-02-26  Richard Biener  <rguenther@suse.de>
6383             Jeff Law  <law@redhat.com>
6385         PR tree-optimization/69740
6386         * cfghooks.c (remove_edge): Request loop fixups if we delete
6387         an edge that might turn an irreducible loop into a natural
6388         loop.
6390 2016-02-26  Martin Jambor  <mjambor@suse.cz>
6392         PR middle-end/69920
6393         * tree-sra.c (sra_modify_assign): Do not remove loads of
6394         uninitialized aggregates to SSA_NAMEs.
6396 2016-02-26  Richard Henderson  <rth@redhat.com>
6398         PR target/69709
6399         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
6400         pseudo in case the target rtx matches the source of the left
6401         shift.
6403 2016-02-26  Martin Jambor  <mjambor@suse.cz>
6405         PR hsa/69568
6406         * hsa.h (hsa_type_packed_p): Declare.
6407         * hsa.c (hsa_type_packed_p): New function.
6408         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
6409         loads.
6410         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
6411         * hsa-brig.c (emit_basic_insn): Likewise.
6413 2016-02-26  Martin Jambor  <mjambor@suse.cz>
6415         pr hsa/69674
6416         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
6417         pointers.
6418         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
6420 2016-02-26  Martin Jambor  <mjambor@suse.cz>
6422         * hsa.h (is_a_helper): New overload for hsa_op_immed for
6423         hsa_op_with_type operands.
6424         (hsa_unsigned_type_for_type): Declare.
6425         * hsa.c (hsa_unsigned_type_for_type): New function.
6426         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
6427         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
6428         the finalizer.  Do not emit extra move.
6430 2016-02-26  Martin Jambor  <mjambor@suse.cz>
6432         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
6433         atomic operations in private segment.
6435 2016-02-26  Martin Jambor  <mjambor@suse.cz>
6437         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
6438         statements to wi->info.  Also disallow omp simd constructs.
6439         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
6440         for not gridifying.  Dump special string for omp_for.
6442 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6444         PR target/69245
6445         * config/aarch64/aarch64.c (aarch64_set_current_function):
6446         Save/restore target globals when switching to
6447         target_option_default_node.
6449 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6451         PR target/69613
6452         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
6453         Return 0 if !SHIFT_COUNT_TRUNCATED.
6455 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
6456             Eric Botcazou  <ebotcazou@adacore.com>
6458         PR rtl-optimization/69891
6459         * dse.c (scan_insn): If we can't figure out memset arguments
6460         or they are non-constant, call clear_rhs_from_active_local_stores.
6462 2016-02-26  Martin Liska  <mliska@suse.cz>
6464         * doc/extend.texi: Mention clog10, clog10f an clog10l
6465         in Builtins section.
6467 2016-02-26  Martin Liska  <mliska@suse.cz>
6469         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
6470         CHECKING_P.
6471         (resolve_args_picking_1): Likewise.
6472         * dwarf2out.h (struct GTY): Likewise.
6474 2016-02-26  Martin Liska  <mliska@suse.cz>
6476         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
6477         with flag_checking.
6478         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
6480 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
6481             Martin Liska  <mliska@suse.cz>
6483         * doc/install.texi: Mention --enable-valgrind-annotations.
6485 2016-02-26  Richard Biener  <rguenther@suse.de>
6487         PR tree-optimization/69551
6488         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
6489         looking through aliases adjust DECL_PT_UID to refer to the
6490         ultimate alias target.
6492 2016-02-25  Martin Liska  <mliska@suse.cz>
6494         PR middle-end/69919
6495         * alloc-pool.c (after_memory_report): New variable.
6496         * alloc-pool.h (base_pool_allocator ::release): Do not use
6497         the infrastructure if after_memory_report.
6498         * toplev.c (toplev::main): Mark after memory report.
6500 2016-02-25  Richard Biener  <rguenther@suse.de>
6502         PR tree-optimization/48795
6503         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
6505 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
6507         PR driver/68463
6508         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
6509         offloading is enabled and -fopenacc or -fopenmp is specified.
6510         (CRTOFFLOADEND): Likewise.
6511         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
6512         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
6513         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
6514         (offload_objects_file_name): New static var.
6515         (tool_cleanup): Remove offload_objects_file_name file.
6516         (find_offloadbeginend): Replace with ...
6517         (find_crtoffloadtable): ... this.
6518         (run_gcc): Remove offload_argc and offload_argv.
6519         Get offload_objects_file_name from -foffload-objects=... option.
6520         Read names of object files with offload from this file, pass them to
6521         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
6522         don't pass offloadbegin and offloadend to the linker.  Don't pass
6523         offload non-LTO files to the linker, because now they're not claimed.
6525 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
6527         PR ipa/69630
6528         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
6529         on builtin_unreachable.
6531 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
6533         PR rtl-optimization/69896
6534         * regcprop.c: Include cfgrtl.h.
6535         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
6536         than remembered mode, either delete it (if noop_move_p), or
6537         treat like copy_p but not noop_p instruction.
6539 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
6541         PR debug/69705
6542         * dwarf2out.c (gen_variable_die): Work around buggy LTO
6543         - allow NULL decl for Fortran DW_TAG_common_block variables.
6545 2016-02-24  Jason Merrill  <jason@redhat.com>
6547         * common.opt (flifetime-dse): Add -flifetime-dse=1.
6549 2016-02-24  Richard Biener  <rguenther@suse.de>
6550             Jakub Jelinek  <jakub@redhat.com>
6552         PR middle-end/69760
6553         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
6554         conditionally executed ops to well-defined overflow behavior.
6556 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
6558         PR middle-end/69915
6559         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
6560         elements.
6562 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6564         PR rtl-optimization/69886
6565         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
6566         argument.  Use it when checking validity of set instructions.
6567         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
6568         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
6569         callsite.
6570         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
6571         * store-motion.c (find_moveable_store): Update
6572         can_assign_to_reg_without_clobbers_p callsite.
6574 2016-02-24  Richard Biener  <rguenther@suse.de>
6576         PR middle-end/68963
6577         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
6578         bogus check.
6579         (record_nonwrapping_iv): Do not fall back to the low/high bound
6580         for non-constant IV bases if the stmt is not always executed.
6582 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6584         * config/arm/arm-cores.def (cortex-a32): New entry.
6585         * config/arm/arm-tables.opt: Regenerate.
6586         * config/arm/arm-tune.md: Regenerate.
6587         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
6588         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
6589         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
6590         for -mcpu and -mtune.
6592 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6594         PR target/69875
6595         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
6596         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
6597         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
6598         (atomic_loaddi_1): Delete.
6599         (atomic_loaddi): Rewrite expander using the above changes.
6601 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
6603         PR c/69918
6604         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
6605         2 to 3.
6607 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
6608             Richard Biener  <rguenth@suse.de>
6610         PR middle-end/69909
6611         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
6612         set_mem_attributes if tem is SSA_NAME which got expanded
6613         as a MEM.
6615 2016-02-24  Richard Biener  <rguenther@suse.de>
6617         PR tree-optimization/69907
6618         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
6619         end of permutations for BB vectorization.
6621 2016-02-24  Christian Bruel  <christian.bruel@st.com>
6623         * config/arm/arm-c.c (arm_option_override): Initialize
6624         target_option_current_node.
6625         * config/arm/arm.c (arm_pragma_target_parse): Replace
6626         build_target_option_node call by target_option_current_node.
6627         Set target_option_current_node.
6628         Fix comments.
6630 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
6632         PR target/69810
6633         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
6634         define_insn_and_split to define_insn.
6635         (zero_extendqi<mode>2_dot2): Same.
6636         (extendqi<mode>2_dot): Same.
6637         (extendqi<mode>2_dot2): Same.
6639 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
6641         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
6642         and add bypass for AES{D,E} and AESMC pairs.
6643         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
6644         and AESMC pairs.
6646 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
6648         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
6649         series for reciprocal square root in Exynos M1.
6651 2016-02-23  Martin Sebor  <msebor@redhat.com>
6653         PR c/69759
6654         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
6655         __builtin_alloca_with_align.
6657 2016-02-23  Richard Henderson  <rth@redhat.com>
6659         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
6660         (ix86_register_pragmas): Remove __seg_tls.
6661         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
6662         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
6663         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
6664         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
6665         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
6666         * doc/extend.texi (__seg_tls): Remove item.
6668 2016-02-23  Richard Biener  <rguenther@suse.de>
6670         * alloc-pool.h (struct allocation_object): Make id member
6671         conditional on CHECKING_P again.
6672         (get_instance): Adjust.
6673         (base_pool_allocator): Likewise.
6675 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
6677         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
6678         (parallelize_loops): In OpenACC kernels mode, set n_threads to
6679         zero.
6680         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
6681         flag_openacc.
6682         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
6684 2016-02-23  Richard Biener  <rguenther@suse.de>
6686         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
6687         * bitmap.h (struct bitmap_usage): Likewise.
6688         (bitmap_move): Declare.
6689         * bitmap.c (register_overhead): Take size_t argument.
6690         (bitmap_move): New function.
6691         * df-problems.c (df_rd_transfer_function): Use bitmap_move
6692         to properly account overhead.
6693         * tree.c (free_node): Use tree_size.
6695 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
6697         PR c++/69902
6698         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
6699         when inverting comparison.
6701         PR c/69900
6702         * common.opt (Wunreachable-code): Add Warning flag.
6704 2016-02-23  Mark Wielaard  <mjw@redhat.com>
6705             Jakub Jelinek  <jakub@redhat.com>
6707         PR c/69911
6708         * cgraphunit.c (check_global_declaration): Check main_input_filename
6709         and DECL_SOURCE_FILE are not NULL.
6711 2016-02-23  Martin Jambor  <mjambor@suse.cz>
6713         PR tree-optimization/69666
6714         * tree-sra.c (sra_modify_assign): Do not attempt to create
6715         default_def replacements for unscalarizable regions.
6717 2016-02-20  Mark Wielaard  <mjw@redhat.com>
6719         PR c/28901
6720         * cgraphunit.c (check_global_declaration): Check level of
6721         warn_unused_const_variable and main_input_filename.
6722         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
6723         (-Wunused-variable): For C implies -Wunused-const-variable=1.
6724         (-Wunused-const-variable): Explain levels 1 and 2.
6726 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
6728         PR target/69888
6729         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
6730         identical arguments.  Formatting and spelling fixes.
6732         PR target/69885
6733         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
6734         be specified.
6736         PR target/69894
6737         PR target/69895
6738         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
6739         and m68k-devices.def.
6740         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
6741         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
6743 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
6745         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
6746         and HImode registers.
6748 2016-02-22  Richard Biener  <rguenther@suse.de>
6750         PR tree-optimization/69882
6751         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
6752         preserve permutations present because of gaps.
6753         (vect_supported_load_permutation_p): Always continue checking
6754         permutations after vect_attempt_slp_rearrange_stmts.
6756 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
6758         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
6759         min_profitable_estimate, rather than min_profitable_iters.
6761 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
6763         PR target/69885
6764         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
6765         SImode for last match_operand.
6767 2016-02-22  Martin Liska  <mliska@suse.cz>
6769         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
6770         return bitsize - 1 as the return value.
6772 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
6774         PR target/69806
6775         PR target/54089
6776         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
6777         Handle negative shift counts.
6778         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
6779         force_reg on the shift constant.
6780         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
6781         (lshrsi3_d): Handle negative shift counts.
6783 2016-02-22  Richard Biener  <rguenther@suse.de>
6784             Tom de Vries  <tom@codesourcery.com>
6786         * graph.c: Include dumpfile.h.
6787         (print_graph_cfg): Split into three overloads.
6788         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
6790 2016-02-22  Tom de Vries  <tom@codesourcery.com>
6792         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
6793         dump-fn.
6795 2016-02-22  Richard Biener  <rguenther@suse.de>
6797         PR ipa/37448
6798         * ipa-inline-transform.c (inline_call): When not updating
6799         overall summaries adjust self size by the growth estimate.
6800         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
6801         hash-set, do not update overall summaries here.  Renamed from ...
6802         (inline_to_all_callers): ... this which is now wrapping the
6803         above and performing delayed overall summary update.
6804         (early_inline_small_functions): Delay updating of the overall
6805         summary.
6807 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
6809         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
6810         variable.
6812 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
6814         PR driver/69805
6815         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
6816         :%* in %:gt() argument.
6817         (greater_than_spec_func): Adjust for expecting only numbers,
6818         if there are more than two numbers, compare the last two.
6820 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
6822         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
6823         -Wnarrowing with -std.
6825 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
6827         PR c++/69851
6828         * expr.c (store_field): Don't use bit-field path if exp is
6829         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
6830         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
6831         and the assignment can be performed by bitwise copy.  Formatting
6832         fix.
6834         PR middle-end/69838
6835         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
6836         call copy_reg_eh_region_note_forward on before and/or after sequences
6837         and remove note from insn if it no longer can throw.
6839         PR target/69820
6840         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
6841         if TARGET_AVX512BW.
6843 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6845         * config/s390/vector.md: Add missing commutative operand markers
6846         to the patterns which qualify for one.
6847         * config/s390/vx-builtins.md: Likewise.
6849 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6851         * config/s390/vector.md (VI, VI_QHS): Add single element vector
6852         types to mode iterators.
6853         (vec_double): ... and mode attribute.
6854         * config/s390/vx-builtins.md (non_vec_int): Likewise.
6856 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6858         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
6859         Change the predicate of op2 from nonimmediate to general and let
6860         reload fix it if necessary.
6862 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6864         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
6866 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6868         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
6869         mode.
6871 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6873         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
6874         * config/s390/s390.c (s390_expand_vec_movstr): New function.
6875         * config/s390/s390.md ("movstr<P:mode>"): Call
6876         s390_expand_vec_movstr.
6878 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6880         * config/s390/s390.md: Add missing output modifier for operand 1
6881         to print it as address properly.
6883 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6885         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
6886         * config/s390/2964.md: New file.
6887         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
6888         of insn grouping attributes depending on the CPU level.
6889         (s390_get_unit_mask): New function.
6890         (s390_sched_score): Remove the OOO from the scheduling macros.
6891         Add loop to calculate a score for the instruction mix.
6892         (s390_sched_reorder): Likewise plus improve debug output.
6893         (s390_sched_variable_issue): Rename macros as above.  Calculate
6894         the unit distances after actually scheduling an insn.  Improve
6895         debug output.
6896         (s390_sched_init): Clear last_scheduled_unit_distance array.
6897         * config/s390/s390.md: Include 2964.md.
6899 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
6901         PR target/69671
6902         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
6903         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
6904         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
6905         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
6906         *avx512f_<code>v8div16qi2_mask_1): New insns.
6908 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
6910         PR target/68404
6911         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
6912         2016-02-09 change.
6914         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
6915         earlyclobber from target.  Use wF constraint for fused memory
6916         address.
6917         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
6919 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
6920             Martin Liska  <mliska@suse.cz>
6922         PR sanitizer/69863
6923         * cfgexpand.c (asan_sanitize_stack_p): New function.
6924         (partition_stack_vars): Use the function.
6925         (expand_stack_vars): Likewise.
6926         (defer_stack_allocation): Likewise.
6927         (expand_used_vars): Likewise.
6929 2016-02-18  Richard Biener  <rguenther@suse.de>
6931         PR middle-end/69553
6932         * fold-const.c (operand_equal_p): Properly compare offsets for
6933         IMAGPART_EXPR and ARRAY_REF.
6935 2016-02-18  Nick Clifton  <nickc@redhat.com>
6937         PR target/62254
6938         PR target/69610
6939         * config/arm/arm.c (arm_option_override_internal): Disable
6940         interworking if the target does not support thumb instructions.
6941         (arm_reload_in_hi): Handle the case where a register to register
6942         move needs reloading because there is no simple pattern to handle
6943         it.
6944         (arm_reload_out_hi): Likewise.
6946 2016-02-18  Richard Biener  <rguenther@suse.de>
6948         PR middle-end/69854
6949         * match.pd: Don't use fold_binary or fold_unary for folding
6950         constants.
6952 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
6954         PR c++/69850
6955         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
6956         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
6957         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
6958         warn on gimple_no_warning_p statements.
6960 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
6962         * doc/extend.texi (C++ Attributes): Correct description of
6963         warn_unused type attribute.
6965 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6967         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
6968         correct instruction.
6970 2016-02-17  Richard Biener  <rguenther@suse.de>
6972         PR rtl-optimization/69609
6973         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
6974         (find_traces_1_round): When ending a trace update cached priority
6975         of successors.
6976         (bb_to_key): Use cached priority when available.
6977         (copy_bb): Initialize cached priority.
6978         (reorder_basic_blocks_software_trace_cache): Likewise.
6980 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6982         PR target/69161
6983         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
6984         New predicate.
6985         (aarch64_comparison_operator): Break overly long line into two.
6986         (aarch64_comparison_operation): Likewise.
6987         * config/aarch64/aarch64.md (cstorecc4): Use
6988         aarch64_comparison_operator_mode instead of
6989         aarch64_comparison_operator.
6990         (cstore<mode>4): Likewise.
6991         (aarch64_cstore<mode>): Likewise.
6992         (*cstoresi_insn_uxtw): Likewise.
6993         (cstore<mode>_neg): Likewise.
6994         (*cstoresi_neg_uxtw): Likewise.
6996 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6998         PR target/69161
6999         * config/arm/predicates.md (arm_comparison_operator_mode):
7000         New predicate.
7001         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
7002         instead of arm_comparison_operator.
7003         (*mov_negscc): Likewise.
7004         (*mov_notscc): Likewise.
7005         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
7006         (*thumb2_mov_negscc): Likewise.
7007         (*thumb2_mov_negscc_strict_it): Likewise.
7008         (*thumb2_mov_notscc): Likewise.
7009         (*thumb2_mov_notscc_strict_it): Likewise.
7011 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
7013         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
7014         Add missing return.
7016 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
7018         * config/visium/visium.c (machine_libfunc_index): New enum.
7019         (machine_libfuncs): New structure.
7020         (visium_libfuncs): New static variable.
7021         (TARGET_INIT_LIBFUNCS): Define to...
7022         (visium_init_libfuncs): ...this.  New function.
7023         (expand_block_move_4): Use the appropriate libfunc.
7024         (expand_block_move_2): Likewise.
7025         (expand_block_move_1): Likewise.
7026         (expand_block_set_4): Likewise.
7027         (expand_block_set_2): Likewise.
7028         (expand_block_set_1): Likewise.
7029         (visium_trampoline_init): Likewise.
7031 2016-02-17  Nick Clifton  <nickc@redhat.com>
7033         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
7034         TI's devices.csv file as of March 2016.
7036 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
7038         PR Target/48344
7039         * opts-global.c (handle_common_deferred_options): Introduce and
7040         initialize two global variables to remember command-line options
7041         specifying a stack-limiting register.
7042         * opts.h: Add extern declarations of the two new global variables.
7043         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
7044         variable based on the values of the two new global variables.
7046 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
7048         PR c/69835
7049         * common.opt (Wnonnull-compare): New warning.
7050         * doc/invoke.texi (-Wnonnull): Remove text about comparison
7051         of arguments against NULL.
7052         (-Wnonnull-compare): Document.
7053         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
7054         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
7055         * passes.def (pass_warn_nonnull_compare): Add.
7056         * gimple-ssa-nonnull-compare.c: New file.
7058 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
7060         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
7061         AARCH64_EXTRA_TUNE_RECIP_SQRT.
7063 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
7065         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
7066         reciprocal sqrt for -mlow-precision-recip-sqrt.
7068 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
7069             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7071         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
7072         always use lane loads to construct non-constant vectors.
7074 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
7076         * config/aarch64/aarch64.md
7077         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
7078         constraints for operand 3.
7079         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
7081 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
7082             Richard Biener  <rguenther@suse.de>
7084         PR tree-optimization/69820
7085         * tree-vect-patterns.c (type_conversion_p): Return false if
7086         *orig_type is unsigned single precision or boolean.
7087         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
7088         Formatting fix.
7090 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
7092         PR rtl-optimization/69764
7093         PR rtl-optimization/69771
7094         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
7095         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
7097 2016-02-16  Richard Biener  <rguenther@suse.de>
7099         PR tree-optimization/69776
7100         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
7101         sets from caller.
7102         (indirect_refs_may_alias_p): Likewise.
7103         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
7104         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
7105         according to tbaa_p.
7106         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
7107         (optimize_stmt): For redundant store discovery do not allow tbaa.
7109 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
7111         PR tree-optimization/69714
7112         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
7113         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
7115 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
7117         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
7118         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
7119         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
7120         * config/arc/arc.c (arc_init): Check FPU options.
7121         (get_arc_condition_code): Handle new CC_FPU* modes.
7122         (arc_select_cc_mode): Likewise.
7123         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
7124         register pair only. Allow access for ARCv2 accumulator.
7125         (gen_compare_reg): Whenever we have FPU support use FPU compare
7126         instructions.
7127         (arc_reorg): Don't generate brcc insns when FPU compare
7128         instructions are involved.
7129         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
7130         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
7131         floating point emulation.
7132         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
7133         (REVERSE_CONDITION): Add new CC_FPU* modes.
7134         (TARGET_FP_SP_BASE): Define.
7135         (TARGET_FP_DP_BASE): Likewise.
7136         (TARGET_FP_SP_FUSED): Likewise.
7137         (TARGET_FP_DP_FUSED): Likewise.
7138         (TARGET_FP_SP_CONV): Likewise.
7139         (TARGET_FP_DP_CONV): Likewise.
7140         (TARGET_FP_SP_SQRT): Likewise.
7141         (TARGET_FP_DP_SQRT): Likewise.
7142         (TARGET_FP_DP_AX): Likewise.
7143         * config/arc/arc.md (ARCV2_ACC): New constant.
7144         (type): New fpu type attribute.
7145         (SDF): Conditional iterator.
7146         (cstore<mode>, cbranch<mode>): Change expand condition.
7147         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
7148         handles FPU/FPX cases as well.
7149         * config/arc/arc.opt (mfpu): New option.
7150         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
7151         Renamed.
7152         (adddf3, muldf3, subdf3): Removed.
7153         * config/arc/predicates.md (proper_comparison_operator): Recognize
7154         CC_FPU* modes.
7155         * config/arc/fpu.md: New file.
7156         * doc/invoke.texi (ARC Options): Document mfpu option.
7158 2016-02-16  Richard Biener  <rguenther@suse.de>
7160         PR rtl-optimization/69291
7161         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
7162         noce_operand_ok check.
7164 2016-02-16  Tom de Vries  <tom@codesourcery.com>
7166         PR lto/67709
7167         * omp-low.c (simd_clone_create): Remove call to
7168         symtab->call_cgraph_insertion_hooks.
7170 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
7172         PR tree-optimization/69802
7173         * tree-ssa-reassoc.c (update_range_test): If op is
7174         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
7175         op == 1 test of precision 1 integral op, otherwise handle
7176         that case as op itself.  Fix up formatting.
7177         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
7178         up formatting.
7180 2016-02-16  Richard Biener  <rguenther@suse.de>
7182         PR tree-optimization/69586
7183         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
7184         types for conversion sources.
7186 2016-02-16  Richard Biener  <rguenther@suse.de>
7188         PR middle-end/69801
7189         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
7190         mask OEP_ADDRESS_OF.
7192 2016-02-16  Alan Modra  <amodra@gmail.com>
7194         PR target/68973
7195         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
7196         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
7197         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
7198         (p8_mtvsrwz): New.
7199         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
7200         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
7201         (p8_fmrgow_<mode>): Likewise.
7202         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
7203         changes.
7204         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
7205         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
7206         to use movdi_internal64.  Remove op0_di.
7207         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
7209 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
7211         Add support for the FCCMP insn types
7213         * config/aarch64/aarch64.md (fccmp): Change insn type.
7214         (fccmpe): Likewise.
7215         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
7216         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
7217         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
7218         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
7219         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
7220         * config/arm/types.md (fccmps): Add new insn type.
7221         (fccmpd): Likewise.
7223 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7225         * alias.c (get_alias_set): Fix a typo in comment.
7227 2016-02-15  Richard Biener  <rguenther@suse.de>
7229         PR tree-optimization/69595
7230         * match.pd: Complete range test simplification to true.
7232 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
7234         PR rtl-optimization/69648
7235         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
7236         pic_offset_table_rtx.
7238         PR rtl-optimization/69752
7239         * ira.c (update_equiv_regs): When looking for more than a single SET,
7240         also take other side effects into account.
7242 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
7244         * config/s390/s390.c (s390_function_profiler): Add a new sequence
7245         for z900+ CPUs in 31-bit mode.
7247 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
7249         * common/config/s390/s390-common.c (s390_supports_split_stack):
7250         New function.
7251         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
7252         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
7253         * config/s390/s390.c (struct machine_function): New field
7254         split_stack_varargs_pointer.
7255         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
7256         in s390_emit_prologue.
7257         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
7258         vararg pointer.
7259         (morestack_ref): New global.
7260         (SPLIT_STACK_AVAILABLE): New macro.
7261         (s390_expand_split_stack_prologue): New function.
7262         (s390_live_on_entry): New function.
7263         (s390_va_start): Use split-stack vararg pointer if appropriate.
7264         (s390_asm_file_end): Emit the split-stack note sections.
7265         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
7266         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
7267         (UNSPECV_SPLIT_STACK_CALL): New unspec.
7268         (UNSPECV_SPLIT_STACK_DATA): New unspec.
7269         (split_stack_prologue): New expand.
7270         (split_stack_space_check): New expand.
7271         (split_stack_data): New insn.
7272         (split_stack_call): New expand.
7273         (split_stack_call_*): New insn.
7274         (split_stack_cond_call): New expand.
7275         (split_stack_cond_call_*): New insn.
7277 2016-02-15  Richard Biener  <rguenther@suse.de>
7279         PR tree-optimization/69783
7280         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
7281         Add trivially correct cases.
7283 2016-02-15  Tom de Vries  <tom@codesourcery.com>
7285         PR lto/69655
7286         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
7287         do_force_output.
7288         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
7290 2016-02-15  Richard Biener  <rguenther@suse.de>
7292         PR tree-optimization/69776
7293         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
7294         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
7295         indicate whether we can use TBAA to disambiguate against stores.
7296         Use alias-set zero if not.
7297         (visit_reference_op_store): Do not use TBAA when looking up
7298         redundant stores.
7299         * tree-ssa-pre.c (compute_avail): Use TBAA here.
7300         (eliminate_dom_walker::before_dom_children): But not when looking
7301         up redundant stores.
7303 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
7305         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
7307 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
7309         *  config/i386/znver1.md
7310         (znver1_pop, znver1_pop_mem,
7311         znver1_load_imov_double_store,
7312         znver1_load_imov_direct_store,
7313         znver1_load_imov_direct_load,
7314         znver1_load_imov_double_load): Add new.
7315         (znver1_insn, znver1_insn_load): Add icmov type.
7316         (znver1_sseavx_fma,
7317         znver1_sseavx_fma_load,
7318         znver1_avx256_fma,
7319         znver1_avx256_fma_load): Fix pipe usage.
7321 2016-02-14  Alan Modra  <amodra@gmail.com>
7323         PR target/68973
7324         * reloads.c (find_reloads_address_1): For pre/post-inc/dec
7325         with an invalid hard reg, reload just the reg not the entire
7326         pre/post-inc/dec address expression.
7328 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
7330         PR target/67260
7331         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
7332         fixed R1_REG scratch reg.
7333         (sibcall_value_pcrel_fdpic): Likewise.
7335 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
7337         PR target/67636
7338         PR target/64345
7339         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
7341 2016-02-12  Walter Lee  <walt@tilera.com>
7343         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
7344         * config/tilegx/t-tilegx: Likewise.
7346 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
7348         PR other/69554
7349         * diagnostic-show-locus.c (struct line_span): New struct.
7350         (layout::get_first_line): Delete.
7351         (layout::get_last_line): Delete.
7352         (layout::get_num_line_spans): New member function.
7353         (layout::get_line_span): Likewise.
7354         (layout::print_heading_for_line_span_index_p): Likewise.
7355         (layout::get_expanded_location): Likewise.
7356         (layout::calculate_line_spans): Likewise.
7357         (layout::m_first_line): Delete.
7358         (layout::m_last_line): Delete.
7359         (layout::m_line_spans): New field.
7360         (layout::layout): Update comment.  Replace m_first_line and
7361         m_last_line with m_line_spans, replacing their initialization
7362         with a call to calculate_line_spans.
7363         (diagnostic_show_locus): When printing source lines and
7364         annotations, rather than looping over a single span
7365         of lines, instead loop over each line_span within
7366         the layout, with an inner loop over the lines within them.
7367         Call the context's start_span callback when changing line spans.
7368         * diagnostic.c (diagnostic_initialize): Initialize start_span.
7369         (diagnostic_build_prefix): Break out the building of the location
7370         part of the string into...
7371         (diagnostic_get_location_text): ...this new function, rewriting
7372         it from nested ternary expressions to a sequence of "if"
7373         statements.
7374         (default_diagnostic_start_span_fn): New function.
7375         * diagnostic.h (diagnostic_start_span_fn): New typedef.
7376         (diagnostic_context::start_span): New field.
7377         (default_diagnostic_start_span_fn): New prototype.
7379 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
7381         PR driver/69779
7382         * gcc.c (driver::finalize): Fix cleanup of "specs".
7384 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
7386         PR driver/69265
7387         PR driver/69453
7388         * gcc.c (driver::driver): Initialize m_option_suggestions.
7389         (driver::~driver): Clean up m_option_suggestions.
7390         (suggest_option): Convert to...
7391         (driver::suggest_option): ...this, and split out into
7392         driver::build_option_suggestions and find_closest_string.
7393         (driver::build_option_suggestions): New function, from
7394         first half of suggest_option.  Special-case
7395         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
7396         the sanitizer_opts array.  For options of enum types, add the
7397         various enum values to the candidate strings.
7398         (driver::handle_unrecognized_options): Remove "const".
7399         * gcc.h (driver::handle_unrecognized_options): Likewise.
7400         (driver::build_option_suggestions): New decl.
7401         (driver::suggest_option): New decl.
7402         (driver::m_option_suggestions): New field.
7403         * opts-common.c (add_misspelling_candidates): New function.
7404         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
7405         and make non-static.
7406         * opts.h (sanitizer_opts): New array decl.
7407         (add_misspelling_candidates): New function decl.
7408         * spellcheck.c (find_closest_string): New function.
7409         * spellcheck.h (find_closest_string): New function decl.
7411 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
7413         PR rtl-optimization/69764
7414         PR rtl-optimization/69771
7415         * optabs.c (expand_binop_directly): For shift_optab_p, force
7416         convert_modes with VOIDmode if xop1 has VOIDmode.
7418 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
7420         PR target/69729
7421         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
7422         to correctly determine instrumentation thunks.
7424 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
7426         PR ipa/69241
7427         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
7428         type by reference, force lhs on the call.
7430         PR ipa/68672
7431         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
7432         Compute retval and retbnd early in all cases if split_part_return_p
7433         and return_bb is not EXIT.  Remove all clobber stmts and reset
7434         all debug stmts that refer to SSA_NAMEs defined in split part,
7435         except if it is retval, in that case replace the old retval with the
7436         lhs of the call to the split part.
7438 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
7440         revert:
7441         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
7443         PR middle-end/66726
7444         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
7445         whose result is used in PHI.
7446         (maybe_optimize_range_tests): Likewise.
7447         (final_range_test_p): Likweise.
7449 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
7451         PR middle-end/66726
7452         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
7453         whose result is used in PHI.
7454         (maybe_optimize_range_tests): Likewise.
7455         (final_range_test_p): Likweise.
7457 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
7459         * cgraph.c: Spelling fixes - behaviour -> behavior and
7460         neighbour -> neighbor.
7461         * target.def: Likewise.
7462         * sel-sched.c: Likewise.
7463         * config/mips/mips.c: Likewise.
7464         * config/arc/arc.md: Likewise.
7465         * config/arm/cortex-a57.md: Likewise.
7466         * config/arm/arm.c: Likewise.
7467         * config/arm/neon.md: Likewise.
7468         * config/arm/arm-c.c: Likewise.
7469         * config/vms/vms-c.c: Likewise.
7470         * config/s390/s390.c: Likewise.
7471         * config/i386/znver1.md: Likewise.
7472         * config/i386/i386.c: Likewise.
7473         * config/ia64/hpux-unix2003.h: Likewise.
7474         * config/msp430/msp430.md: Likewise.
7475         * config/rx/rx.c: Likewise.
7476         * config/rx/rx.md: Likewise.
7477         * config/aarch64/aarch64-simd.md: Likewise.
7478         * config/aarch64/aarch64.c: Likewise.
7479         * config/nvptx/nvptx.c: Likewise.
7480         * config/bfin/bfin.c: Likewise.
7481         * config/cris/cris.opt: Likewise.
7482         * config/rs6000/rs6000.c: Likewise.
7483         * target.h: Likewise.
7484         * spellcheck.c: Likewise.
7485         * ira-build.c: Likewise.
7486         * tree-inline.c: Likewise.
7487         * builtins.c: Likewise.
7488         * lra-constraints.c: Likewise.
7489         * explow.c: Likewise.
7490         * hwint.h: Likewise.
7491         * targhooks.c: Likewise.
7492         * tree-vect-data-refs.c: Likewise.
7493         * expr.c: Likewise.
7494         * doc/tm.texi: Likewise.
7495         * doc/extend.texi: Likewise.
7496         * doc/install.texi: Likewise.
7497         * doc/md.texi: Likewise.
7498         * tree-ssa-tail-merge.c: Likewise.
7499         * sched-int.h: Likewise.
7500         * match.pd: Likewise.
7501         * sched-ebb.c: Likewise.
7502         * target.def (omit_struct_return_reg): Likewise.
7503         * gimple-ssa-isolate-paths.c: Likewise.
7504         (find_implicit_erroneous_behaviour): Renamed to...
7505         (find_implicit_erroneous_behavior): ... this.
7506         (find_explicit_erroneous_behaviour): Renamed to...
7507         (find_explicit_erroneous_behavior): ... this.
7508         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
7510 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
7512         PR rtl-optimization/64682
7513         PR rtl-optimization/69567
7514         PR rtl-optimization/69737
7515         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
7516         in I2 as well, just lose it.
7518 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7520         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
7521         New variable.
7522         (aarch64_last_printed_tune_string): Likewise.
7523         (aarch64_declare_function_name): Only output .arch assembler
7524         directive if it will be different from the previously output
7525         directive.  Same for .tune comment but only if -dA is set.
7526         (aarch64_start_file): New function.
7527         (TARGET_ASM_FILE_START): Define.
7529 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
7531         PR plugins/69758
7532         * Makefile.in (PLUGIN_HEADERS): Add params.list.
7534 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
7536         PR target/65313
7537         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
7538         -Wmaybe-uninitialized warning.
7540 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
7542         PR target/69713
7543         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
7545 2016-02-11  Richard Biener  <rguenther@suse.de>
7547         PR rtl-optimization/69291
7548         * ifcvt.c (noce_try_store_flag_constants): Do not allow
7549         subexpressions affected by changing the result.
7551 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
7553         PR target/69148
7554         * lra-constraints.c (curr_insn_transform): Find in/out operands
7555         for secondary memory moves.  Update dups.
7557 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
7559         PR tree-optimization/69652
7560         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
7561         to nested loop, did source re-formatting, skip debug statements,
7562         add check on statement with volatile operand, remove dead scalar
7563         statements.
7565 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
7566             Patrick Palka  <ppalka@gcc.gnu.org>
7568         PR ipa/69241
7569         PR c++/69649
7570         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
7571         calls if the return type is TREE_ADDRESSABLE.
7572         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
7573         * ipa-split.c (split_function): Fix doubled "we" in comment.
7574         Use void return type for the split part even if
7575         !split_point->split_part_set_retval.
7577 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
7579         PR tree-optimization/68021
7580         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
7581         when computing the value of biv cand by itself.
7583 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
7585         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
7586         (cortexa57_tunings): Likewise.
7587         (cortexa72_tunings): Likewise.
7588         (arch_macro_fusion_pair_p): Add support for AES fusion.
7589         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
7590         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
7591         Allow virtual registers before reload so early scheduling works.
7592         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
7593         correct latency and pipeline.
7594         (cortex_a57_crypto_complex): Likewise.
7595         (cortex_a57_crypto_xor): Likewise.
7596         (define_bypass): Add AES bypass.
7598 2016-02-10  Richard Biener  <rguenther@suse.de>
7600         PR tree-optimization/69726
7601         * passes.def: Add DCE pass before late uninit.
7602         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
7603         really fixup if-conversions job.
7605 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
7607         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
7608         (arm_cortex_a57_tune): Likewise.
7609         (aarch_macro_fusion_pair_p): Add support for AES fusion.
7610         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
7612 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
7614         * timevar.def (TV_PHASE_DBGINFO): Delete.
7615         (TV_PHASE_CHECK_DBGINFO): Likewise.
7616         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
7618 2016-02-10  Richard Biener  <rguenther@suse.de>
7620         PR tree-optimization/69719
7621         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
7622         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
7624 2016-02-09  Andrew Pinski  <apinski@cavium.com>
7626         PR tree-opt/69282
7627         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
7628         get_vcond_mask_icode returns false.
7630 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
7632         PR target/68404
7633         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
7634         an ADDIS that adds a pointer to a large constant that sets the
7635         upper16 bits with a load operation.
7637 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
7639         PR target/68532
7640         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
7641         order.
7642         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
7643         endian.
7644         (vzipq_s16): Likewise.
7645         (vzipq_s32): Likewise.
7646         (vzipq_f32): Likewise.
7647         (vzipq_u8): Likewise.
7648         (vzipq_u16): Likewise.
7649         (vzipq_u32): Likewise.
7650         (vzipq_p8): Likewise.
7651         (vzipq_p16): Likewise.
7653 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
7655         PR target/68532
7656         * config/arm/arm.c (neon_endian_lane_map): New function.
7657         (neon_vector_pair_endian_lane_map): New function.
7658         (arm_evpc_neon_vuzp): Allow for big endian lane order.
7659         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
7660         endian.
7661         (vuzpq_s16): Likewise.
7662         (vuzpq_s32): Likewise.
7663         (vuzpq_f32): Likewise.
7664         (vuzpq_u8): Likewise.
7665         (vuzpq_u16): Likewise.
7666         (vuzpq_u32): Likewise.
7667         (vuzpq_p8): Likewise.
7668         (vuzpq_p16): Likewise.
7670 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
7672         PR target/69634
7673         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
7674         debug insns.
7676 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
7678         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
7679         truncate const_int operand 1 to QImode.
7681 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
7683         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
7684         corresponding to an abnormal edge.
7686 2016-02-09  Tom de Vries  <tom@codesourcery.com>
7688         PR tree-optimization/69599
7689         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
7690         function.
7691         (find_func_aliases_for_builtin_call, find_func_clobbers)
7692         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
7693         partition.
7695 2016-02-09  Richard Biener  <rguenther@suse.de>
7697         PR tree-optimization/69715
7698         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
7699         LHS on calls as non-rewritable.
7701 2016-02-09  Tom de Vries  <tom@codesourcery.com>
7703         PR lto/69707
7704         * lto-wrapper.c (append_diag_options): New function.
7705         (compile_offload_image): Call append_diag_options.
7707 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
7709         PR other/69722
7710         * doc/extend.texi (Flag Output Operands): Correct sectioning.
7711         Minor copy-edit to fix verb tenses.
7713 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
7715         PR tree-optimization/69209
7716         * ipa-split.c (split_function): If split part is not
7717         returning retval, retval has gimple type but is not
7718         gimple value, force it into a SSA_NAME first.
7720 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
7722         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
7723         outdated section.
7725 2016-02-08  Jason Merrill  <jason@redhat.com>
7727         PR c++/69631
7728         * convert.c (convert_to_integer_1): Check dofold on truncation
7729         distribution.
7730         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
7731         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
7732         Rename from *_nofold.
7733         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
7734         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
7736 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
7738         PR target/60410
7739         * tree.c (build_common_tree_nodes): Remove short_double argument.
7740         All callers changed.
7741         * tree.h (build_common_tree_nodes): Adjust declaration.
7742         * doc/invoke.texi (-fshort-double): Remove documentation.
7743         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
7744         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
7745         * lto-wrapper.c (merge_and_complain, append_compiler_options)
7746         (append_linker_options): Don't handle OPT_fshort_double.
7748         PR rtl-optimization/68730
7749         * lra-remat.c (insn_to_cand_activation): New static variable.
7750         (lra_remat): Allocate and free it.
7751         (create_cand): New arg activation. Initialize a field in
7752         insn_to_cand_activation if it is nonnull.
7753         (create_cands): Pass the activation insn to create_cand when making
7754         a candidate involving an output reload.  Reorganize code a little.
7755         (do_remat): Keep track of active status of candidates in a separate
7756         bitmap.
7758 2016-02-08  Richard Biener  <rguenther@suse.de>
7760         PR tree-optimization/69719
7761         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
7762         Properly use absolute of the difference of the two offsets to
7763         compare or adjust the segment length.
7765 2016-02-08  Richard Biener  <rguenther@suse.de>
7766             Jeff Law  <law@redhat.com>
7768         PR target/68273
7769         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
7770         types for anonymous SSA names.
7772 2016-02-08   Richard Biener  <rguenther@suse.de>
7774         PR rtl-optimization/69274
7775         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
7777 2016-02-08  Jeff Law  <law@redhat.com>
7779         PR tree-optimization/65917
7780         * tree-ssa-dom.c (record_temporary_equivalences): Record both
7781         equivalences from if (x == y) style conditionals.
7782         (loop_depth_of_name): Remove.
7783         (record_equality): Remove loop depth check.
7784         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
7785         (const_and_copies::record_const_or_copy_raw): New member function.
7786         * tree-ssa-scopedtables.c
7787         (const_and_copies::record_const_or_copy_raw): New, factored out of
7788         (const_and_copies::record_const_or_copy): Call new member function.
7790 2016-02-05  Jeff Law  <law@redhat.com>
7792         PR tree-optimization/68541
7793         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
7794         (count_stmts_in_block): New function.
7795         (poor_ifcvt_candidate_code): Likewise.
7796         (is_feasible_trace): Add some heuristics to determine when path
7797         splitting is profitable.
7798         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
7799         is a diamond with a single exit.
7801 2016-02-05  Martin Sebor  <msebor@redhat.com>
7803         PR c++/69662
7804         * doc/invoke.texi: Update -Wplacement-new to take an optional
7805         argument.
7807 2016-02-06  Richard Henderson  <rth@redhat.com>
7809         PR c/69643
7810         * tree.c (tree_nop_conversion_p): Do not strip casts into or
7811         out of non-standard address spaces.
7813 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
7815         PR rtl-optimization/69691
7816         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
7818 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
7820         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
7821         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
7822         (*ieee128_mfvsrd_64bit): Likewise.
7823         (*ieee128_mfvsrd_32bit): Likewise.
7825 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
7827         PR target/69369
7828         Revert r232560:
7829         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
7831         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
7832         instrumented_version.
7834 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
7836         * doc/invoke.texi (Optimize Options): In table of --param options
7837         rename second occurrence of tracer-min-branch-ratio to
7838         tracer-min-branch-probability, rename
7839         tracer-min-branch-ratio-feedback to
7840         tracer-min-branch-probability-feedback and clarify description,
7841         rename sched-spec-state-edge-prob-cutoff to
7842         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
7843         to selsched-insns-to-rename, rename lto-minpartition to
7844         lto-min-partition, delete reorder-blocks-duplicate and
7845         reorder-blocks-duplicate-feedback.
7847 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7849         * config/s390/s390.c (s390_register_info_set_ranges): Remove
7850         superfluous loops.
7852 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7854         * doc/extend.texi: S/390: Correct some typos.
7856 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7858         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
7860 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7862         PR target/69625
7863         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
7864         (s390_register_info_gprtofpr): Use new macros above.
7865         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
7866         its name.
7867         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
7868         its name.  Adjust restore and save gpr ranges.
7869         (s390_register_info_set_ranges): New function.
7870         (s390_register_info): Use new macros above.  Call
7871         s390_register_info_set_ranges.
7872         (s390_optimize_register_info): Likewise.
7873         (s390_hard_regno_rename_ok): Use new macros.
7874         (s390_hard_regno_scratch_ok): Likewise.
7875         (s390_emit_epilogue): Likewise.
7876         (s390_can_use_return_insn): Likewise.
7877         (s390_optimize_prologue): Likewise.
7878         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
7880 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
7882         PR bootstrap/69677
7883         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
7884         alignment fixes.
7885         (ix86_option_override_internal): Disable TARGET_STV even for
7886         -m{incoming,preferred}-stack-boundary=3.
7888 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7890         * config.gcc: Mark deprecated rtems targets as obsolete.
7892 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
7894         PR rtl-optimization/64682
7895         PR rtl-optimization/69567
7896         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
7897         before I2 only if the register is both used and set in I2.
7899 2016-02-04  DJ Delorie  <dj@redhat.com>
7901         * config/msp430/msp430.c (msp430_start_function): Add function type.
7903 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
7905         PR fortran/69368
7906         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
7908 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
7910         PR rtl-optimization/69577
7911         Revert:
7912         2015-10-29  Richard Henderson  <rth@redhat.com>
7914         PR target/68124
7915         PR rtl-opt/67609
7916         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
7917         sse check to the exact conditions of PR 67609.
7919 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
7921         PR target/69667
7922         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
7923         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
7924         not allowed into the traditional Altivec registers.
7925         (movtd_64bit_nodm): Likewise.
7926         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
7928 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
7930         * config/aarch64/cortex-a57-fma-steering.c
7931         (aarch64_register_fma_steering): Remove "static" from arguments
7932         to register_pass.
7934 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
7936         PR target/69619
7937         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
7938         twice when complex.
7940 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
7942         * doc/invoke.texi: Delete -mno-fma4.
7944 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
7946         PR rtl-optimization/69577
7947         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
7948         (find_subregs_of_mode): Update accordingly.  Iterate over partial
7949         definitions.
7951 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
7953         * config/arm/arm-protos.h (neon_reinterpret): Remove.
7954         * config/arm/arm.c (neon_reinterpret): Remove.
7955         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
7956         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
7957         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
7958         vreinterpretti): Remove.
7959         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
7960         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
7961         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
7962         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
7963         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
7964         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
7965         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
7966         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
7967         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
7968         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
7969         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
7970         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
7971         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
7972         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
7973         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
7974         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
7975         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
7976         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
7977         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
7978         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
7979         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
7980         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
7981         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
7982         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
7983         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
7984         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
7985         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
7986         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
7987         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
7988         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
7989         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
7990         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
7991         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
7992         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
7993         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
7994         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
7995         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
7996         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
7997         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
7998         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
7999         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
8000         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
8001         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
8002         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
8003         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
8004         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
8005         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
8006         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
8007         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
8008         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
8009         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
8010         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
8011         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
8012         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
8013         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
8014         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
8015         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
8016         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
8017         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
8018         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
8019         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
8020         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
8021         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
8022         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
8023         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
8024         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
8025         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
8026         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
8027         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
8028         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
8029         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
8030         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
8031         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
8032         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
8033         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
8034         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
8035         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
8036         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
8037         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
8038         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
8039         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
8040         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
8041         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
8042         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
8043         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
8044         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
8045         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
8046         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
8047         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
8048         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
8049         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
8050         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
8051         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
8052         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
8053         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
8054         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
8055         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
8056         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
8057         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
8058         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
8059         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
8060         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
8061         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
8063 2016-02-04  Martin Liska  <mliska@suse.cz>
8065         PR sanitizer/69276
8066         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
8067         that are gimple_store_p.
8068         (maybe_instrument_call): Likewise.
8070 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
8072         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
8073         register scaling out of memory reference and comment why.
8075 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8077         PR target/65932
8078         PR target/67714
8079         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
8080         folding the source of a SET.
8082 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8084         PR target/65932
8085         PR target/67714
8086         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
8087         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
8089 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
8091         PR target/65932
8092         PR target/67714
8093         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
8094         HImode.
8096 2016-02-04  Christian Bruel  <christian.bruel@st.com>
8098         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
8099         * config/arm/arm.c (arm_set_current_function): Likewise.
8101 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
8102             Ilya Enkovich  <enkovich.gnu@gmail.com>
8103             H.J. Lu  <hongjiu.lu@intel.com>
8105         PR target/69454
8106         * config/i386/i386.c (convert_scalars_to_vector): Remove
8107         stack alignment fixes.
8108         (ix86_option_override_internal): Disable TARGET_STV if stack
8109         might not be aligned enough.
8110         (ix86_minimum_alignment): Assert that TARGET_STV is false.
8112 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
8114         * gcc/config/i386/x86-tune.def: Disable default prefetching
8115         for -march=znver1.
8117 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
8118             Vladimir Makarov  <vmakarov@redhat.com>
8120         PR target/69461
8121         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
8122         in validating fused toc addresses.
8124 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
8126         PR c/69627
8127         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
8128         range->m_caret fields if range->m_show_caret_p is false.
8130         PR target/69644
8131         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
8132         Force oldval into register if it does not satisfy reg_or_short_operand
8133         predicate.  Fix up formatting.
8135 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
8136             Alexandre Oliva  <aoliva@redhat.com>
8138         PR target/69461
8139         * lra-constraints.c (simplify_operand_subreg): Check additionally
8140         address validity after potential reloading.
8141         (process_address_1): Check insns validity.  In case of failure do
8142         nothing.
8144 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
8146         PR target/69118
8147         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
8148         Fix target.
8150 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
8152         * wide-int.cc (canonize_uhwi): New function.
8153         (wi::divmod_internal): Use it.
8155 2016-02-02  James Norris  <jnorris@codesourcery.com
8157         * gimplify.c (omp_notice_variable): Add usage check.
8159 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
8161         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
8162         like LE, GE, LT, GT when emitting relational operator.
8164 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
8166         * ira-costs.c (find_costs_and_classes): Add extra argument.
8167         * target.def (ira_change_pseudo_allocno_class): Add parameter.
8168         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
8169         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
8170         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
8171         Add best_class parameter, and return it if not ALL_REGS.
8172         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
8173         Add parameter.
8174         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
8175         Update target hook.
8177 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
8179         * config/aarch64/aarch64.c
8180         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
8181         (aarch64_ira_change_pseudo_allocno_class): New function.
8183 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
8185         PR target/67032
8186         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
8188 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
8190         * config/avr/avr.c (avr_option_override): Set
8191         PARAM_ALLOW_STORE_DATA_RACES to 1.
8193 2016-02-02  Richard Biener  <rguenther@suse.de>
8195         PR tree-optimization/69595
8196         * match.pd: Add range test simplifications to true/false.
8198 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
8200         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
8201         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
8202         instead.
8204 2016-02-02  Richard Biener  <rguenther@suse.de>
8206         PR tree-optimization/69606
8207         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
8208         info on the result before moving a stmt.
8210 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
8212         PR middle-end/68542
8213         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
8214         branch with vector comparison.
8215         * config/i386/sse.md (VI48_AVX): New mode iterator.
8216         (define_expand "cbranch<mode>4): Add support for conditional branch
8217         with vector comparison.
8218         * tree-vect-loop.c (optimize_mask_stores): New function.
8219         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
8220         has_mask_store field of vect_info.
8221         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
8222         vectorized loops having masked stores after vec_info destroy.
8223         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
8224         correspondent macros.
8225         (optimize_mask_stores): Add prototype.
8227 2016-02-02  Alan Modra  <amodra@gmail.com>
8229         PR target/69548
8230         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
8231         allow subregs.
8233 2016-02-02  Alan Modra  <amodra@gmail.com>
8235         PR target/68662
8236         * config/rs6000/rs6000.c (need_toc_init): New var, set it
8237         whenever toc_label_name used.
8238         (rs6000_file_start): Don't set up toc section here,
8239         (rs6000_output_function_epilogue): do so here instead,
8240         (rs6000_xcoff_file_start): and here.
8241         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
8242         (load_toc_aix_di): Likewise.
8244 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
8246         PR rtl-optimization/69592
8247         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
8248         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
8249         (num_sign_bit_copies_binary_arith_p): New inline function.
8250         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
8252 2016-02-01  Jeff Law  <law@redhat.com>
8254         PR tree-optimization/69580
8255         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
8256         * tree-ssa-threadbackward.c
8257         (fsm_find_control_statement_thread_paths): Do not try to walk
8258         through large PHI nodes.
8260 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
8262         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
8263         when count is incremented above limit, don't analyze further
8264         insns afterwards.
8266         * omp-low.c (oacc_parse_default_dims): Avoid
8267         -Wsign-compare warning, make sure value fits into int
8268         rather than just unsigned int.
8270 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
8272         PR tree-optimization/67921
8273         * fold-const.c (split_tree): New parameters.  Convert pointer
8274         type variable part to proper type before negating.
8275         (fold_binary_loc): Pass new arguments to split_tree.
8277 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
8279         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
8280         (nvptx_goacc_validate_dims): Extend to handle global defaults.
8281         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
8282         * doc/tm.texti: Rebuilt.
8283         * doc/invoke.texi (fopenacc-dim): Document.
8284         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
8285         (append_compiler_options): Likewise.
8286         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
8287         (oacc_parse_default_dims): New.
8288         (oacc_validate_dims): Add USED arg.  Select non-unity default when
8289         possible.
8290         (oacc_loop_fixed_partitions): Return mask of used partitions.
8291         (oacc_loop_auto_partitions): Emit dump info.
8292         (oacc_loop_partition): Return mask of used partitions.
8293         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
8294         loop partitioning and validation calls.
8296 2016-02-01  Richard Biener  <rguenther@suse.de>
8298         PR middle-end/69556
8299         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
8301 2016-02-01  Richard Biener  <rguenther@suse.de>
8303         PR tree-optimization/69574
8304         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
8305         of asserting return chrec_dont_know.
8307 2016-02-01  Martin Liska  <mliska@suse.cz>
8309         * mem-stats-traits.h: Add copyright header.
8310         * mem-stats.h: Likewise.
8312 2016-02-01  Richard Biener  <rguenther@suse.de>
8314         PR tree-optimization/69579
8315         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
8316         Do not propagate through abnormal PHI results.
8318 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
8320         * postreload.c (reload_cse_simplify): Remove dead code.
8322 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
8324         PR rtl-optimization/69570
8325         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
8326         if there is more than one set, not if there is a single set.
8328 2016-02-01  Richard Henderson  <rth@redhat.com>
8330         PR rtl-opt/69535
8331         * combine.c (make_compound_operation): When looking through a
8332         subreg, make sure to re-extend to the width of the outer mode.
8334 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
8336         PR tree-optimization/69546
8337         * wide-int.cc (wi::divmod_internal): For unsigned division
8338         where both operands fit into uhwi, if o1 is 1 and o0 has
8339         msb set, if divident_prec is larger than bits per hwi,
8340         clear another quotient word and return 2 instead of 1.
8341         Similarly for remainder with msb in HWI set, if dividend_prec
8342         is larger than bits per hwi.
8344 2016-01-29  Martin Jambor  <mjambor@suse.cz>
8346         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
8347         Use short lowercase names.
8348         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
8349         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
8350         acq_rel one.  Protect warning agains segfaults if
8351         get_memory_order_name returns NULL.
8352         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
8353         with release semantics.  Do not warn if get_memory_order already did.
8354         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
8355         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
8356         if get_memory_order already did.
8358 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
8360         * doc/install.texi: Document that isl-0.16 is supported.
8362 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
8364         PR target/69299
8365         * config/i386/constraints.md (Bm): Describe as special memory
8366         constraint.
8367         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
8368         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
8369         * genpreds.c (struct constraint_data): Add is_special_memory.
8370         (have_special_memory_constraints, special_memory_start): New
8371         static vars.
8372         (special_memory_end): Ditto.
8373         (add_constraint): Add new arg is_special_memory.  Add code to
8374         process its true value.  Update have_special_memory_constraints.
8375         (process_define_constraint): Pass the new arg.
8376         (process_define_register_constraint): Ditto.
8377         (choose_enum_order): Process special memory.
8378         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
8379         function insn_extra_special_memory_constraint.
8380         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
8381         * gensupport.c (process_rtx): Process
8382         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
8383         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
8384         * ira-lives.c (single_reg_class): Use
8385         insn_extra_special_memory_constraint.
8386         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
8387         * lra-constraints.c (process_alt_operands): Ditto.
8388         (curr_insn_transform): Use insn_extra_special_memory_constraint.
8389         * recog.c (asm_operand_ok, preprocess_constraints): Process
8390         CT_SPECIAL_MEMORY.
8391         * reload.c (find_reloads): Ditto.
8392         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
8393         * stmt.c (parse_input_constraint): Use
8394         insn_extra_special_memory_constraint.
8396 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
8398         PR target/69530
8399         * lra-splill.c (lra_final_code_change): Revert r229087 by
8400         removing all sub-registers.
8402 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
8404         PR target/65604
8405         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
8407 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
8409         PR target/69551
8410         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
8411         SSE1, copy target into the temporary reg first before recursing
8412         on it.
8414 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
8416         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
8417         with vm.
8419 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
8421         * ginclude/stdarg.h: Test __cplusplus instead of
8422         __GXX_EXPERIMENTAL_CXX0X__.
8424 2016-01-29  Richard Biener  <rguenther@suse.de>
8426         PR tree-optimization/69547
8427         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
8428         Do not mark clobbers necessary.
8429         (mark_all_reaching_defs_necessary_1): Likewise.
8431 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8433         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
8434         declaration name with %qs and print it in both error messages.
8435         Also fix indentation.
8437 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8439         PR other/69006
8440         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
8441         trailing blank line from error message.
8443 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
8445         PR c++/69462
8446         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
8447         for C++-11.
8449 2016-01-29  Richard Biener  <rguenther@suse.de>
8451         PR middle-end/69537
8452         * match.pd: Allow all integral types when simplifying a
8453         widening or sign-changing conversion.
8455 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
8457         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
8458         back to setting codegen_error to fail codegen.
8460 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
8462         PR target/69459
8463         * config/i386/constraints.md (C): Only accept constant zero operand.
8464         (BC): New constraint.
8465         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
8466         instead of C constraint.
8467         * doc/md.texi (Machine Constraints): Update description
8468         of C constraint.
8470 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
8472         PR target/68400
8473         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
8475 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
8477         PR middle-end/69542
8478         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
8479         non-debug insns.
8481 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
8483         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
8484         branches if using guessed profile.
8486 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
8488         * graphite-optimize-isl.c (optimize_isl): Fix dump.
8490 2016-01-28  Richard Henderson  <rth@redhat.com>
8492         PR target/69305
8493         * config/aarch64/aarch64-modes.def (CC_Cmode): New
8494         * config/aarch64/aarch64-protos.h: Update.
8495         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
8496         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
8497         (aarch64_get_condition_code_1): Handle CC_Cmode.
8498         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
8499         (*add<mode>3_compareC_cconly_imm): New.
8500         (*add<mode>3_compareC_cconly): New.
8501         (*add<mode>3_compareC_imm): New.
8502         (add<mode>3_compareC): New.
8503         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
8504         to be first.  Use aarch64_carry_operation.
8505         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
8506         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
8507         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
8508         (subti3): Use subdi3_compare1.
8509         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
8510         (sub<mode>3_compare1): New.
8511         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
8512         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
8513         (*subsi3_carryin_uxtw): Likewise.
8514         (*ngc<mode>, *ngcsi_uxtw): Likewise.
8515         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
8516         * config/aarch64/iterators.md (DWI): New.
8517         * config/aarch64/predicates.md (aarch64_carry_operation): New.
8518         (aarch64_borrow_operation): New.
8520 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
8522         * graphite-optimize-isl.c (optimize_isl): Print a different debug
8523         message when isl does not return a valid schedule.
8525 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
8527         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
8528         Remove comments from class declarations: they are already in the code
8529         close by the defs.
8531 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
8533         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
8534         codegen_error_p.
8535         (ternary_op_to_tree): Same.
8536         (unary_op_to_tree): Same.
8537         (nary_op_to_tree): Same.
8538         (gcc_expression_from_isl_expr_op): Same.
8539         (gcc_expression_from_isl_expression): Same.
8540         (graphite_create_new_loop): Same.
8541         (graphite_create_new_loop_guard): Same.
8542         (build_iv_mapping): Same.
8543         (graphite_create_new_guard): Same.
8544         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
8545         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
8547 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
8549         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
8550         instead of setting codegen_error to fail codegen.
8552 2016-01-28  Jason Merrill  <jason@redhat.com>
8554         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
8556 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
8558         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
8559         Remove CONST_INT_P check in CCMP cost calculation.
8561 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
8563         * config/aarch64/aarch64.c (generic_vector_cost):
8564         Set vec_permute_cost.
8565         (cortexa57_vector_cost): Likewise.
8566         (exynosm1_vector_cost): Likewise.
8567         (xgene1_vector_cost): Likewise.
8568         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
8569         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
8570         Add vec_permute_cost entry.
8572 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
8574         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
8575         immediate as %1.
8576         (add<mode>3_compare0): Likewise.
8577         (addsi3_compare0_uxtw): Likewise.
8578         (add<mode>3nr_compare0): Likewise.
8579         (compare_neg<mode>): Likewise.
8580         (<optab><mode>3): Likewise.
8582 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
8584         * tree-vect-stmts.c (vectorizable_comparison): Add
8585         NULL check for vectype.
8587 2016-01-28  Richard Biener  <rguenther@suse.de>
8589         PR tree-optimization/69466
8590         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
8591         Account for PHIs we couldn't duplicate.
8593 2016-01-28  Martin Liska  <mliska@suse.cz>
8595         PR pch/68758
8596         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
8597         instead of ENABLE_VALGRIND_CHECKING.
8599 2016-01-27  Richard Henderson  <rth@redhat.com>
8601         PR rtl-opt/69447
8602         * lra-remat.c (subreg_regs): New.
8603         (dump_candidates_and_remat_bb_data): Dump it.
8604         (operand_to_remat): Reject if operand in subreg_regs.
8605         (set_bb_regs): Collect subreg_regs.
8606         (lra_remat): Init and free subreg_regs.  Compute
8607         calculate_local_reg_remat_bb_data before create_cands.
8609 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
8611         PR target/68986
8612         * config/i386/i386.c (ix86_update_stack_boundary): Don't
8613         change stack_alignment_needed for __tls_get_addr call.
8615 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
8617         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
8619 2016-01-27  Jeff Law  <law@redhat.com>
8621         PR tree-optimization/68398
8622         PR tree-optimization/69196
8623         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
8624         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
8625         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8626         Only count PHIs in the last block in the path.  The others will
8627         const/copy propagate away.  Add heuristic to allow more irreducible
8628         subloops to be created when it is likely profitable to do so.
8630         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8631         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
8632         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
8634 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
8636         PR lto/69254
8637         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
8638         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
8639         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
8640         * tree-streamer-in.c: Include asan.h.
8641         (streamer_get_builtin_tree): For builtins in sanitizer
8642         range call initialize_sanitizer_builtins and retry.
8644 2016-01-27  Ian Lance Taylor  <iant@google.com>
8646         * common.opt (fkeep-gc-roots-live): New undocumented option.
8647         * tree-ssa-loop-ivopts.c (add_candidate_1): If
8648         -fkeep-gc-roots-live, skip pointers.
8649         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
8650         NULL.
8652 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
8654         PR target/69512
8655         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
8656         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
8658 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
8660         PR target/68380
8661         * configure.ac: NetBSD provides SSP in its C library.
8662         * configure: Updated.
8664 2016-01-27  Richard Biener  <rguenther@suse.de>
8666         PR tree-optimization/69166
8667         * tree-vect-loop.c (vect_is_simple_reduction): Always check
8668         reduction code for commutativity / associativity.
8670 2016-01-27  Martin Jambor  <mjambor@suse.cz>
8672         PR tree-optimization/69355
8673         * tree-sra.c (analyze_access_subtree): Correct hole detection when
8674         total_scalarization fails.
8676 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
8678         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
8679         power9.
8681 2016-01-27  Christian Bruel  <christian.bruel@st.com>
8683         PR target/69245
8684         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
8685         Move arm_reset_previous_fndecl and set_target_option_current_node in
8686         the conditional part.  Call save_restore_target_globals.
8687         * config/arm/arm.c (arm_set_current_function):
8688         Refactor to better support #pragma target and attribute mix.
8689         Call save_restore_target_globals.
8690         * config/arm/arm-protos.h (save_restore_target_globals): New function.
8692 2016-01-27  Martin Liska  <mliska@suse.cz>
8694         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
8695         reference for an HSA kernel and its host function.
8697 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
8699         PR tree-optimization/69399
8700         * wide-int.h (wi::lrshift): For larger precisions, only
8701         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
8703 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
8705         * config/arc/predicates.md (proper_comparison_operator): Reject
8706         constant-constant comparison.
8708 2016-01-26  Tom de Vries  <tom@codesourcery.com>
8710         PR tree-optimization/69110
8711         * tree-data-ref.c (initialize_data_dependence_relation): Handle
8712         DR_NUM_DIMENSIONS == 0.
8714 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
8715             Sebastian Pop  <s.pop@samsung.com>
8717         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
8718         isl_ast_op_cond and isl_ast_op_select.
8719         (gcc_expression_from_isl_expr_op): Same.
8721 2016-01-26  Jason Merrill  <jason@redhat.com>
8723         PR c++/68782
8724         * tree.c (recompute_constructor_flags): Split out from
8725         build_constructor.
8726         (verify_constructor_flags): New.
8727         * tree.h: Declare them.
8729 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
8731         PR rtl-optimization/69217
8732         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
8733         are no TYPE_FIELDS set for the record type.
8735 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
8737         PR target/68662
8738         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
8739         toc_label_name unconditionally.
8740         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
8741         SYMBOL_REF string.  Use toc_label_name instead of constructing
8742         LCTOC1.
8743         (rs6000_elf_declare_function_name): Use toc_label_name instead of
8744         constructing LCTOC1.
8746 2016-01-26  Martin Sebor  <msebor@redhat.com>
8748         PR other/69477
8749         * doc/extend.texi (Common Type Attributes): Move text that talks about
8750         attribute packed from attribute aligned to the section discussing
8751         the former attribute for clarity.
8753 2016-01-26  Richard Henderson  <rth@redhat.com>
8755         PR middle-end/60908
8756         * trans-mem.c (tm_region_init): Mark entry block as visited.
8758 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
8760         PR other/69006
8761         * diagnostic-show-locus.c (layout::print_source_line): Replace
8762         call to pp_newline with call to layout::print_newline.
8763         (layout::print_annotation_line): Likewise.
8764         (layout::move_to_column): Likewise.
8765         (layout::print_any_fixits): After printing any fixits, print a
8766         trailing newline, if necessary.
8767         (layout::print_newline): New method, resetting any colorization
8768         before a newline.
8769         (diagnostic_show_locus): Move the pp_newline to before the
8770         early bailout.  Remove dummy block enclosing the layout instance.
8771         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
8772         of pp_newline_and_flush with pp_flush.
8773         (diagnostic_append_note): Delete use of pp_newline.
8774         (diagnostic_append_note_at_rich_loc): Delete.
8775         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
8776         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
8777         when newline characters are added to the buffer.
8779 2016-01-26  Michael Matz  <matz@suse.de>
8781         * configure.ac (ac_cv_std_swap_in_utility): New test.
8782         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
8783         * configure: Regenerate.
8784         * config.in: Regenerate.
8786 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
8788         * config/arc/arc.md (cstoresi4): Force operand into register.
8789         (arcset<code>): Fix predicate.
8790         (arcsetltu): Likewise.
8791         (arcsetgeu): Likewise.
8792         (arcsethi): Likewise.
8793         (arcsetls): Likewise.
8795 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
8797         PR tree-optimization/69483
8798         * gimple-fold.c (canonicalize_constructor_val): Return NULL
8799         if base has error_mark_node type.
8801 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
8803         PR target/68620
8804         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
8805         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
8806         New helper macros.
8807         (vget_lane_f16): Handle big-endian.
8808         (vgetq_lane_f16): Likewise.
8809         (vset_lane_f16): Likewise.
8810         (vsetq_lane_f16): Likewise.
8811         * config/arm/iterators.md (VQXMOV): Add V8HF.
8812         (VDQ): Add V4HF and V8HF.
8813         (V_reg): Handle V4HF and V8HF.
8814         (Is_float_mode): Likewise.
8815         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
8816         neon_vdup_nv8hf): New patterns.
8817         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
8818         Use VD_LANE iterator.
8819         (neon_vld1_dup<mode>): Use VQ2 iterator.
8821 2016-01-26  Nathan Sidwell  <nathan@acm.org>
8823         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
8824         (set_oacc_fn_attrib): Add IS_KERNEL arg.
8825         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
8826         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
8827         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
8828         (oacc_validate_dims): Add LEVEL arg, don't return level.
8829         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
8830         oacc_validate_dims.
8831         (execute_oacc_device_lower): Adjust, add more dump output.
8832         * tree-ssa-loop.c (gate_oacc_kernels): Use
8833         oacc_fn_attrib_kernels_p.
8834         * tree-parloops.c (create_parallel_loop): Adjust
8835         set_oacc_fn_attrib call.
8837 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
8839         PR lto/69254
8840         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
8841         (append_compiler_options): Handle -fcilkplus.
8842         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
8844 2016-01-26  Nick Clifton  <nickc@redhat.com>
8846         PR target/66655
8847         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
8848         been marked as DECL_ONE_ONLY but we do not the means to make it
8849         so, then do not allow it to bind locally.
8851 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
8853         PR lto/69254
8854         * opts.h (parse_sanitizer_options): New prototype.
8855         * opts.c (sanitizer_opts): New array.
8856         (parse_sanitizer_options): New function.
8857         (common_handle_option): Use parse_sanitizer_options.
8859 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
8861         PR target/68986
8862         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
8863         alignment adjustment to ...
8864         (ix86_update_stack_boundary): Here.  Don't over-align stack for
8865         __tls_get_addr.
8866         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
8867         if __tls_get_addr is called.
8869 2016-01-26  Christian Bruel  <christian.bruel@st.com>
8871         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
8873 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
8875         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
8877 2016-01-26  Richard Biener  <rguenther@suse.de>
8879         PR middle-end/69467
8880         * match.pd: Guard X * CST CMP 0 pattern with single_use.
8882 2016-01-26  Richard Biener  <rguenther@suse.de>
8884         PR tree-optimization/69452
8885         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
8886         (move_computations_dom_walker::before_dom_children): Rename
8887         to ...
8888         (move_computations_worker): This.
8889         (move_computations): Perform an RPO rather than a DOM walk.
8891 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
8893         PR target/69442
8894         * combine.c (combine_instructions): For REG_EQUAL note with
8895         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
8896         to the underlying register.
8897         * doc/rtl.texi (REG_EQUAL): Document the behavior of
8898         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
8900 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
8902         PR target/67896
8903         * config/aarch64/aarch64-builtins.c
8904         (aarch64_init_simd_builtin_types): Do not set structural
8905         equality to __Poly{8,16,64,128}_t types.
8907 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
8909         PR tree-optimization/69400
8910         * wide-int.cc (wi_pack): Take the precision as argument and
8911         perform canonicalization here rather than in the callers.
8912         Use the main loop to handle all full-width HWIs.  Add a
8913         zero HWI if in_len isn't a full result.
8914         (wi::divmod_internal): Update accordingly.
8915         (wi::mul_internal): Likewise.  Simplify.
8917 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
8918             Sebastian Pop  <s.pop@samsung.com>
8920         * graphite-poly.c (apply_poly_transforms): Simplify.
8921         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
8922         (print_isl_map): Same.
8923         (print_isl_union_map): Same.
8924         (print_isl_schedule): New.
8925         (debug_isl_schedule): New.
8926         * graphite-dependences.c (scop_get_reads): Do not call
8927         isl_union_map_add_map that is undocumented isl functionality.
8928         (scop_get_must_writes): Same.
8929         (scop_get_may_writes): Same.
8930         (scop_get_original_schedule): Remove.
8931         (scop_get_dependences): Do not call isl_union_map_compute_flow that
8932         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
8933         (compute_deps): Remove.
8934         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
8935         (debug_schedule_ast): New.
8936         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
8937         set_separate_option.
8938         (graphite_regenerate_ast_isl): Add dump.
8939         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
8940         from scop->transformed_schedule.
8941         (graphite_regenerate_ast_isl): Add more dump.
8942         * graphite-optimize-isl.c (optimize_isl): Set
8943         scop->transformed_schedule.  Check whether schedules are equal.
8944         (apply_poly_transforms): Move here.
8945         * graphite-poly.c (apply_poly_transforms): ... from here.
8946         (free_poly_bb): Static.
8947         (free_scop): Static.
8948         (pbb_number_of_iterations_at_time): Remove.
8949         (print_isl_ast): New.
8950         (debug_isl_ast): New.
8951         (debug_scop_pbb): New.
8952         * graphite-scop-detection.c (print_edge): Move.
8953         (print_sese): Move.
8954         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
8955         (build_scop_scattering): Remove.
8956         (create_pw_aff_from_tree): Assert instead of bailing out.
8957         (add_condition_to_pbb): Remove unused code, do not fail.
8958         (add_conditions_to_domain): Same.
8959         (add_conditions_to_constraints): Remove.
8960         (build_scop_context): New.
8961         (add_iter_domain_dimension): New.
8962         (build_iteration_domains): Initialize pbb->iterators.
8963         Call add_conditions_to_domain.
8964         (nested_in): New.
8965         (loop_at): New.
8966         (index_outermost_in_loop): New.
8967         (index_pbb_in_loop): New.
8968         (outermost_pbb_in): New.
8969         (add_in_sequence): New.
8970         (add_outer_projection): New.
8971         (outer_projection_mupa): New.
8972         (add_loop_schedule): New.
8973         (build_schedule_pbb): New.
8974         (build_schedule_loop): New.
8975         (embed_in_surrounding_loops): New.
8976         (build_schedule_loop_nest): New.
8977         (build_original_schedule): New.
8978         (build_poly_scop): Call build_original_schedule.
8979         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
8980         (free_poly_dr): Remove.
8981         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
8982         (free_poly_bb): Remove.
8983         (debug_loop_vec): Remove.
8984         (print_isl_ast): Declare.
8985         (debug_isl_ast): Declare.
8986         (scop_do_interchange): Remove.
8987         (scop_do_strip_mine): Remove.
8988         (scop_do_block): Remove.
8989         (flatten_all_loops): Remove.
8990         (optimize_isl): Remove.
8991         (pbb_number_of_iterations_at_time): Remove.
8992         (debug_scop_pbb): Declare.
8993         (print_schedule_ast): Declare.
8994         (debug_schedule_ast): Declare.
8995         (struct scop): Remove schedule.  Add original_schedule,
8996         transformed_schedule.
8997         (free_gimple_poly_bb): Remove.
8998         (print_generated_program): Remove.
8999         (debug_generated_program): Remove.
9000         (unify_scattering_dimensions): Remove.
9001         * sese.c (print_edge): ... here.
9002         (print_sese): ... here.
9003         (debug_edge): ... here.
9004         (debug_sese): ... here.
9005         * sese.h (print_edge): Declare.
9006         (print_sese): Declare.
9007         (dump_edge): Declare.
9008         (dump_sese): Declare.
9010 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
9011             Sebastian Pop  <s.pop@samsung.com>
9013         * Makefile.in: Set ISLVER in site.exp.
9015 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
9017         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
9018         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
9019         through DECL_VALUE_EXPR for expansion.
9021 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9023         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
9024         the frame info after reload completed.
9026 2016-01-25  Jeff Law  <law@redhat.com>
9028         PR tree-optimization/69196
9029         PR tree-optimization/68398
9030         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
9031         tree-ssa-threadupdate.c.
9032         (determine_bb_domination_status): Prototype
9033         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
9034         (determine_bb_domination_status): No longer static.
9035         (valid_jump_thread_path): Remove code to detect characteristics
9036         of the jump thread path not associated with correctness.
9037         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
9038         Correct test for thread path length.  Count PHIs for real operands as
9039         statements that need to be copied.  Do not count ASSERT_EXPRs.
9040         Look at all the blocks in the thread path.  Compute and selectively
9041         filter thread paths based on threading through the latch, threading
9042         a multiway branch or crossing a multiway branch.
9044 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9046         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
9047         decl with __attribute__ ((unused)) annotation.
9049 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
9051         PR target/69421
9052         * tree-vect-stmts.c (vectorizable_condition): Check vectype
9053         of operands is compatible with a statement vectype.
9055 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
9057         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
9058         improve wording for mixed storage order support.
9060 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
9062         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
9063         (vcvt_u64_f64): Likewise.
9064         (vcvta_s64_f64): Likewise.
9065         (vcvta_u64_f64): Likewise.
9066         (vcvtm_s64_f64): Likewise.
9067         (vcvtm_u64_f64): Likewise.
9068         (vcvtn_s64_f64): Likewise.
9069         (vcvtn_u64_f64): Likewise.
9070         (vcvtp_s64_f64): Likewise.
9071         (vcvtp_u64_f64): Likewise.
9073 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
9075         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
9076         (arc_init): Check validity mll64 option.
9077         (arc_save_restore): Use double load/store instruction.
9078         (arc_expand_movmem): Likewise.
9079         (arc_split_move): Don't split if we have double load/store
9080         instructions. Returns a boolean.
9081         (arc_process_double_reg_moves): Change function to return boolean
9082         instead of a sequence of instructions.
9083         (arc_dwarf_register_span): New function.
9084         * config/arc/arc-protos.h (arc_split_move): Change prototype.
9085         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
9086         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
9087         (*movdf_insn): Likewise.
9088         * config/arc/arc.opt (mll64): New option.
9089         * config/arc/predicates.md (even_register_operand): New predicate.
9090         * doc/invoke.texi (ARC Options): Add mll64 documentation.
9092 2016-01-25  Richard Biener  <rguenther@suse.de>
9094         PR lto/69393
9095         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
9096         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
9097         DECL_NAMELESS.
9098         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
9100 2016-01-25  Richard Biener  <rguenther@suse.de>
9102         PR tree-optimization/69376
9103         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
9104         flag.
9105         (VN_INFO_ANTI_RANGE_P): New inline.
9106         (VN_INFO_RANGE_TYPE): Likewise.
9107         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
9108         SSA_NAME_ANTI_RANGE_P.
9109         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
9110         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
9111         Properly query VN_INFO_RANGE_TYPE.
9113 2016-01-25  Nick Clifton  <nickc@redhat.com>
9115         PR target/66655
9116         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
9118 2016-01-23  Tom de Vries  <tom@codesourcery.com>
9120         PR tree-optimization/69426
9121         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
9122         removed clobber.
9124 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
9126         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
9127         "the the" with "the" in the comments.
9128         * ipa-devirt.c (build_type_inheritance_graph,
9129         update_type_inheritance_graph): Likewise.
9130         * tree.c (build_function_type_list_1): Likewise.
9131         * cfgloopmanip.c (scale_loop_profile): Likewise.
9132         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
9133         * gimple-ssa-split-paths.c
9134         (find_block_to_duplicate_for_splitting_paths): Likewise.
9135         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
9136         * expr.c (convert_move): Likewise.
9137         * var-tracking.c (vt_stack_adjustments): Likewise.
9138         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
9139         * tree-vrp.c (test_for_singularity): Likewise.
9141         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
9142         directly instead of building a temporary tree.
9144         PR bootstrap/69434
9145         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
9146         remove <algorithm> include.
9148 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
9150         PR target/69432
9151         * config/i386/i386.c: Include dojump.h.
9152         (expand_small_movmem_or_setmem,
9153         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
9154         fixes.
9155         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
9156         if dynamic_check != -1.
9158 2016-01-21  Jeff Law  <law@redhat.com>
9160         PR middle-end/69347
9161         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
9162         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
9163         into dominated_by_p.
9164         (cprop_into_successor_phis): Avoid unnecessary tests.
9166 2016-01-22  Richard Henderson  <rth@redhat.com>
9168         PR target/69416
9169         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
9170         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
9172 2016-01-22  Michael Matz  <matz@suse.de>
9174         * system.h (string, algorithm): Include only conditionally.
9175         (new): Include always under C++.
9176         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
9177         * final.c (toplevel): Ditto.
9178         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
9179         * genconditions.c (write_header): Make gencondmd.c define
9180         INCLUDE_STRING.
9181         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
9183         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
9184         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
9186 2016-01-22  Christian Bruel  <christian.bruel@st.com>
9188         PR target/68674
9189         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
9191 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9193         PR target/69403
9194         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
9195         define_insn_and_split.  Ensure operands[1] and operands[0] do not
9196         get assigned the same register.
9198 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
9200         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
9202 2016-01-22  Christian Bruel  <christian.bruel@st.com>
9204         * config/arm/arm-c.c (arm_pragma_target_parse):
9205         Remove warn_builtin_macro_redefined overwrite.
9207 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
9209         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
9210         flag_non_call_exceptions compatibility.
9212 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
9214         PR debug/66668
9215         * dwarf2out.c (add_child_die_after): New function.
9216         (dwarf_qual_info_t): New type.
9217         (dwarf_qual_info): New variable.
9218         (qualified_die_p): New function.
9219         (modified_type_die): For -fdebug-types-section, ensure
9220         canonical order of qualifiers.  Put qualified DIEs adjacent
9221         to the corresponding non-qualified type DIE and search there
9222         for existing qualified DIEs.
9224 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
9226         * doc/extend.texi (scalar_storage_order type attribute): Document
9227         restriction on type punning and aliasing, and remove future tense.
9229 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
9231         PR target/69252
9232         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
9233         first stage.
9235 2016-01-21  Jeff Law  <law@redhat.com>
9237         PR middle-end/69347
9238         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
9239         useless call to record_temporary_equivalences.
9240         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
9241         allocate 10 slots in the bb_path vector and let it grow as needed.
9242         (fsm_find_control_statement_thread_paths): Similarly for the next_path
9243         vector.
9245 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
9247         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
9248         Detangle.
9249         * configure: Regenerate.
9251 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
9253         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
9254         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
9256 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
9258         PR middle-end/66178
9259         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
9260         drop EXPAND_INITIALIZER.
9261         * rtl.h (contains_symbolic_reference_p): Declare.
9262         * rtlanal.c (contains_symbolic_reference_p): New function.
9263         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
9264         a subtraction into a NOT if symbolic constants are involved.
9266 2016-01-21  Anton Blanchard  <anton@samba.org>
9267             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9269         PR target/63354
9270         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
9271         #define.
9272         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
9273         function.
9275 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
9277         * config/microblaze/microblaze.c
9278         (get_branch_target): New.
9279         (insert_wic_for_ilb_runout): New.
9280         (insert_wic): New.
9281         (microblaze_machine_dependent_reorg): New.
9282         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
9283         * config/microblaze/microblaze.md
9284         (UNSPEC_IPREFETCH): Define.
9285         (iprefetch): New pattern
9286         * config/microblaze/microblaze.opt
9287         (mxl-prefetch): New flag.
9289 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
9291         * config/microblaze/microblaze.h
9292         (FIXED_REGISTERS): Update in macro.
9293         (CALL_USED_REGISTERS): Update in macro.
9295 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
9297         PR rtl-optimization/68920
9298         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
9299         moves.
9301 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
9303         PR rtl-optimization/68990
9304         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
9305         pseudo instead of inheritance ones.
9307 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9308             Nick Clifton  <nickc@redhat.com>
9310         PR target/69129
9311         PR target/69012
9312         * config/mips/mips.c (mips_compute_frame_info): Initialise
9313         args_size and hard_frame_pointer_offset fields of the frame
9314         structure before calling mips_global_pointer.
9316 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
9318         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
9319         label reference.
9320         * configure: Regenerate.
9322 2016-01-21  Richard Biener  <rguenther@suse.de>
9324         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
9326 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
9328         * config/s390/s390.c (s390_asm_declare_function_size): Add code
9329         to actually emit the .size directive.
9331 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
9332              Jakub Jelinek  <jakub@redhat.com>
9334         PR target/69187
9335         PR target/65624
9336         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
9337         args array size by one to avoid buffer overflow.
9339 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
9341         * config/s390/s390.md (pool_section_start): Use switch_to_section
9342         to select proper read-only data section instead of hardcoding
9343         .rodata.
9344         (pool_section_end): Use switch_to_section to match the above.
9346 2016-01-21  Richard Biener  <rguenther@suse.de>
9348         PR tree-optimization/69378
9349         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
9350         (set_ssa_val_to): Use it for dominance checks taking into
9351         account not executable edges.
9353 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
9355         PR c++/69355
9356         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
9357         for bitsize instead of GET_MODE_PRECISION (mode).
9359 2016-01-20  Martin Sebor  <msebor@redhat.com>
9361         PR c/52291
9362         * extend.texi (__sync Builtins): Clarify the semantics of
9363         __sync_fetch_and_OP built-ins on pointers.
9364         (__atomic Builtins): Same.
9366 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
9367             Sebastian Pop  <s.pop@samsung.com>
9369         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
9370         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
9371         (is_valid_rename): Same.
9372         (translate_isl_ast_to_gimple::get_rename): Same.
9373         (translate_isl_ast_to_gimple::rename_all_uses): Same.
9374         (translate_isl_ast_to_gimple::rename_uses): Same.
9375         (get_new_name): Check for close_phi nodes.
9376         (copy_loop_phi_args): Use phi_node_kind.
9377         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
9378         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
9380 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
9381             Sebastian Pop  <s.pop@samsung.com>
9383         Revert commit r229783.
9384         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
9385         Remove use of parameter_rename_map.
9386         (copy_def): Remove.
9387         (copy_internal_parameters): Remove.
9388         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
9389         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
9390         (free_sese_info): Do not free parameter_rename_map.
9391         (set_rename): Do not use parameter_rename_map.
9392         (rename_uses): Update call to set_rename.
9393         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
9394         * sese.h (parameter_rename_map_t): Remove.
9395         (struct sese_info_t): Remove field parameter_rename_map.
9397 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
9398             Sebastian Pop  <s.pop@samsung.com>
9400         * graphite-isl-ast-to-gimple.c: Fix comment.
9401         * graphite-scop-detection.c (defined_in_loop_p): New.
9402         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
9403         names defined in loop.
9405 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
9406             Sebastian Pop  <s.pop@samsung.com>
9408         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
9409         Discard unstructured if-then-else regions.
9411 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
9412             Sebastian Pop  <s.pop@samsung.com>
9414         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
9415         (cleanup_loop_iter_dom): Remove.
9416         (build_loop_iteration_domains): Remove.
9417         (build_scop_context): Remove.
9418         (build_scop_iteration_domain): Remove.
9419         (add_loop_constraints): New.
9420         (build_iteration_domains): New.
9421         (build_poly_scop): Call build_iteration_domains.
9423 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
9424             Sebastian Pop  <s.pop@samsung.com>
9426         * graphite-scop-detection.c
9427         (scop_detection::harmful_loop_in_region): Free dom and loops.
9428         (scop_detection::loop_body_is_valid_scop): Free bbs.
9430 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
9431             Sebastian Pop  <s.pop@samsung.com>
9433         * graphite-scop-detection.c (record_loop_in_sese): New.
9434         (gather_bbs::before_dom_children): Call record_loop_in_sese.
9435         (build_scops): Remove call to build_sese_loop_nests.
9436         * sese.c (sese_record_loop): Remove.
9437         (build_sese_loop_nests): Remove.
9438         (new_sese_info): Remove region->loops.
9439         (free_sese_info): Same.
9440         * sese.h (sese_contains_loop): Same.
9441         (build_sese_loop_nests): Remove.
9442         (sese_contains_loop): Remove.
9444 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
9445             Sebastian Pop  <s.pop@samsung.com>
9447         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
9448         loop_is_valid_in_scop.
9449         (scop_detection::harmful_stmt_in_region): Renamed
9450         harmful_loop_in_region.
9451         Call loop_is_valid_in_scop.
9453 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
9454             Sebastian Pop  <s.pop@samsung.com>
9456         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
9457         isl_ast_node_mark.
9459 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
9460             Sebastian Pop  <s.pop@samsung.com>
9462         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
9463         * graphite.h (struct poly_bb): Remove field is_reduction.
9464         (PBB_IS_REDUCTION): Remove.
9466 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
9467             Sebastian Pop  <s.pop@samsung.com>
9469         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
9470         (add_pdr_constraints): Same.
9471         (scop_get_reads): Same.
9472         (scop_get_must_writes): Same.
9473         (scop_get_may_writes): Same.
9474         (scop_get_original_schedule): Same.
9475         (extend_schedule): Same.
9476         (apply_schedule_on_deps): Same.
9477         (carries_deps): Same.
9478         (compute_deps): Same.
9479         (scop_get_dependences): Same.
9480         * graphite-isl-ast-to-gimple.c
9481         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
9482         * graphite-optimize-isl.c (get_schedule_for_band): Same.
9483         (get_schedule_for_band_list): Same.
9484         (get_schedule_map): Same.
9485         (apply_schedule_map_to_scop): Same.
9486         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
9487         (build_loop_iteration_domains): Same.
9488         (add_condition_to_pbb): Same.
9489         (add_param_constraints): Same.
9490         (pdr_add_memory_accesses): Same.
9491         (pdr_add_data_dimensions): Same.
9493 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
9495         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
9496         requirements.
9498 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
9500         * common.opt (feliminate-dwarf2-dups): Replace references to
9501         "DWARF 2" with just "DWARF".
9502         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
9503         * doc/extend.texi: Likewise.
9504         * doc/cpp.texi: Likewise.
9505         * doc/invoke.texi: Likewise.
9506         (Option Summary): Add -gdwarf to list of Debugging Options.
9507         (Debugging Options): Document -gdwarf.
9508         * doc/contrib.texi: Spell "DWARF" like that.
9510 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
9512         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
9513         warning.  Fix up formatting.
9515         PR middle-end/67653
9516         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
9517         attempt to mark memory input operand addressable and
9518         call prepare_gimple_addressable in that case.  Don't adjust
9519         input_location for diagnostics, use error_at instead.
9521 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
9523         * config/rs6000/ppc-auxv.h: New file.
9524         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
9525         (cpu_is): Likewise.
9526         (cpu_supports): Likewise.
9527         * config/rs6000/rs6000.c: include "ppc-auxv.h".
9528         (cpu_is_info): New variable.
9529         (cpu_supports_info): Likewise.
9530         (tcb_verification_symbol): Likewise.
9531         (cpu_builtin_p): Likewise.
9532         (cpu_expand_builtin): New function.
9533         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
9534         (rs6000_init_builtins): Likewise.
9535         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
9536         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
9537         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
9538         * configure: Regenerate.
9539         * config.in: Likewise.
9540         * doc/extend.texi (PowerPC Built-in Functions): Document
9541         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
9543 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
9545         PR target/68609
9546         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
9547         domain check.
9548         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
9549         for V4SFmode.
9551 2016-01-20  Richard Henderson  <rth@redhat.com>
9553         PR bootstrap/69343
9554         PR bootstrap/69339
9555         PR tree-opt/68964
9556         Revert:
9557         * tree.c (tm_define_builtin): New.
9558         (find_tm_vector_type): New.
9559         (build_tm_vector_builtins): New.
9560         (build_common_builtin_nodes): Call it.
9562 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
9564         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
9565         (arm_fp_ok): Likewise.
9566         (arm_fp): Likewise.
9567         (arm_crypto): Likewise.
9569 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
9570             Richard Biener  <rguenther@suse.de>
9572         PR tree-optimization/69328
9573         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
9574         vectors have same number of elements.
9575         (vectorizable_condition): Fix masked version recognition.
9577 2016-01-20  Richard Biener  <rguenther@suse.de>
9579         PR tree-optimization/69345
9580         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
9581         (VN_INFO_PTR_INFO): Likewise.
9582         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
9583         info when it is equal between non-dominating SSA names.
9584         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
9585         Make sure to look at original SSA infos.
9587 2016-01-20  Jeff Law  <law@redhat.com>
9589         PR target/25114
9590         * config/m68k/predicates.md (pow2_m1_operand): New predicate
9591         extracted from ...
9592         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
9593         (pc_or_label_operand): New predicate.
9594         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
9595         tests for small integers that are 2^n - 1.
9597 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
9599         * doc/invoke.texi (Options Summary): Add '.' after @xref.
9601 2016-01-19  Jeff Law  <law@redhat.com>
9603         PR middle-end/69347
9604         * tree-ssa-threadbackwards.c
9605         (fsm_find_control_statement_thread_paths): Do not try to lookup
9606         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
9608 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
9610         * doc/lto.texi: Remove text that says only Gold has linker plugin
9611         support.
9613 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
9615         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
9616         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
9617         the DIE accordingly.
9618         (modified_type_die): Add REVERSE parameter and pass it recursively,
9619         as well as to base_type_die.  Adjust presence check accordingly.
9620         (base_type_for_mode): Adjust call to modified_type_die.
9621         (add_type_attribute): Add REVERSE parameter and pass it to
9622         modified_type_die.
9623         (generic_parameter_die): Adjust call to add_type_attribute.
9624         (add_scalar_info): Likewise.
9625         (add_subscript_info): Likewise.
9626         (gen_array_type_die): Likewise.
9627         (gen_descr_array_type_die): Likewise.
9628         (gen_entry_point_die): Likewise.
9629         (gen_enumeration_type_die): Likewise.
9630         (gen_formal_parameter_die): Likewise.
9631         (gen_subprogram_die): Likewise.
9632         (gen_variable_die ): Likewise.
9633         (gen_const_die): Likewise.
9634         (gen_field_die): Likewise.
9635         (gen_pointer_type_die): Likewise.
9636         (gen_reference_type_die): Likewise.
9637         (gen_ptr_to_mbr_type_die): Likewise.
9638         (gen_inheritance_die): Likewise.
9639         (gen_subroutine_type_die): Likewise.
9640         (gen_typedef_die): Likewise.
9641         (force_type_die): Adjust call to modified_type_die.
9643 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
9645         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
9646         flow throughout the file.  Fix broken link to Objective-C 2.0
9647         documentation.
9648         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
9649         errors.
9651 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
9653         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
9655 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
9657         PR ipa/66223
9658         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
9659         (maybe_record_node): Record cxa_pure_virtual as the only possible
9660         target if there are not ohter candidates.
9661         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
9663 2016-01-19  Richard Biener  <rguenther@suse.de>
9665         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
9666         (get_memory_order): Likewise.
9668 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
9670         * tree-vect-stmts.c (vectorizable_store): Check
9671         rhs vectype.
9673 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
9675         PR jit/68446
9676         * gcc.c (driver::decode_argv): Add call to
9677         init_opts_obstack before init_options_struct.
9678         * opts.c (init_opts_obstack): Remove idempotency.
9679         (init_options_struct): Replace call to init_opts_obstack
9680         with a gcc_assert to verify that it has already been called.
9681         * toplev.c (toplev::main): Add call to init_opts_obstack before
9682         calls to init_options_struct.
9683         (toplev::finalize): Move cleanup of opts_obstack next to
9684         cleanup of save_decoded_options, clearing the latter, and
9685         save_decoded_options_count.
9687 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9689         PR target/69135
9690         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
9691         attribute to unconditional.  Remove %? from output template.
9693 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
9694             Jiong Wang  <jiong.wang@arm.com>
9696         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
9697         generated from different expand order.
9699 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
9701         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
9702         Add support for CCMP costing.
9704 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
9706         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
9707         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
9708         (fccmpe<mode>): Likewise.
9709         (fcmp): Rename to fcmp and globalize pattern.
9710         (fcmpe): Likewise.
9711         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
9712         (aarch64_gen_ccmp_next): Add FP support.
9714 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
9716         * target.def (gen_ccmp_first): Update documentation.
9717         (gen_ccmp_next): Likewise.
9718         * doc/tm.texi (gen_ccmp_first): Update documentation.
9719         (gen_ccmp_next): Likewise.
9720         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
9721         expand_ccmp_expr_1.  Improve comments.
9722         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
9723         (ccmp_ior<mode>): Remove pattern.
9724         (cmp<mode>): Remove expand.
9725         (cmp): Globalize pattern.
9726         (cstorecc4): Use cc_register.
9727         (mov<mode>cc): Remove ccmp_cc_register check.
9728         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
9729         Simplify after removal of CC_DNE/* modes.
9730         (aarch64_ccmp_mode_to_code): Remove.
9731         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
9732         In 'k' case use integer as condition.
9733         (aarch64_nzcv_codes): Remove inverted cases.
9734         (aarch64_code_to_ccmode): Remove.
9735         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
9736         comparison with CC register to be used in folowing CCMP/branch/CSEL.
9737         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
9738         pattern.  Return the comparison with CC register.  Invert conditions
9739         when bitcode is OR.
9740         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
9741         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
9743 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
9745         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
9746         instrumented_version.
9748 2016-01-19  Richard Biener  <rguenther@suse.de>
9750         PR tree-optimization/69336
9751         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
9752         handled components with get_ref_base_and_extent.
9753         (equal_mem_array_ref_p): Adjust.
9755 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
9757         PR debug/65779
9758         * shrink-wrap.c: Include valtrack.h.
9759         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
9760         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
9761         in between insn and where it will be moved to.  Call
9762         dead_debug_insert_temp.
9763         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
9764         first and dead_debug_local_finish at the end.
9765         For uses and defs bitmap, handle all regs in between REGNO and
9766         END_REGNO, not just the first one.
9768 2016-01-19  Richard Biener  <rguenther@suse.de>
9770         PR tree-optimization/69352
9771         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
9772         (equal_mem_array_ref_p): Constrain size and max size properly.
9773         Compare the reverse flag.
9775 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
9777         * ira.c (ira): Update regstat data if we deleted insns.
9779 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
9781         PR rtl-optimization/68955
9782         PR rtl-optimization/64557
9783         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
9784         here.  Fix up formatting.
9785         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
9787 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
9789         PR lto/69133
9790         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
9791         assume that the node has body.
9792         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
9793         check.
9795 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
9797         * lto-streamer-out.c (lto_output): Do not stream instrumentation
9798         thunks.
9800 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
9802         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
9803         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
9805 2016-01-19  Martin Jambor  <mjambor@suse.cz>
9806             Martin Liska  <mliska@suse.cz>
9807             Michael Matz  <matz@suse.de>
9809         * Makefile.in (OBJS): Add new source files.
9810         (GTFILES): Add hsa.c.
9811         * common.opt (disable_hsa): New variable.
9812         (-Whsa): New warning.
9813         * config.in (ENABLE_HSA): New.
9814         * configure.ac: Treat hsa differently from other accelerators.
9815         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
9816         $enable_offloading.
9817         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
9818         * doc/install.texi (Configuration): Document --with-hsa-runtime,
9819         --with-hsa-runtime-include, --with-hsa-runtime-lib and
9820         --with-hsa-kmt-lib.
9821         * doc/invoke.texi (-Whsa): Document.
9822         (hsa-gen-debug-stores): Likewise.
9823         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
9824         to invoke offload compiler for hsa acclerator.
9825         * opts.c (common_handle_option): Determine whether HSA offloading
9826         should be performed.
9827         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
9828         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
9829         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
9830         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
9831         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
9832         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
9833         GF_OMP_FOR_KIND_GRID_LOOP.
9834         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
9835         (pp_gimple_stmt_1): Likewise.
9836         * gimple-walk.c (walk_gimple_stmt): Likewise.
9837         * gimple.c (gimple_build_omp_grid_body): New function.
9838         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
9839         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
9840         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
9841         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
9842         GF_OMP_TEAMS_GRID_PHONY.
9843         (gimple_statement_omp_single_layout): Updated comments.
9844         (gimple_build_omp_grid_body): New function.
9845         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
9846         (gimple_omp_for_grid_phony): New function.
9847         (gimple_omp_for_set_grid_phony): Likewise.
9848         (gimple_omp_parallel_grid_phony): Likewise.
9849         (gimple_omp_parallel_set_grid_phony): Likewise.
9850         (gimple_omp_teams_grid_phony): Likewise.
9851         (gimple_omp_teams_set_grid_phony): Likewise.
9852         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
9853         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
9854         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
9855         (BUILT_IN_GOMP_TARGET): Updated type.
9856         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
9857         (adjust_for_condition): New function.
9858         (get_omp_for_step_from_incr): Likewise.
9859         (extract_omp_for_data): Moved parts to adjust_for_condition and
9860         get_omp_for_step_from_incr.
9861         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
9862         (fixup_child_record_type): Bail out if receiver_decl is NULL.
9863         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
9864         (scan_omp_parallel): Do not create child functions for phony
9865         constructs.
9866         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
9867         (scan_omp_1_op): Checking assert we are not remapping to
9868         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
9869         (parallel_needs_hsa_kernel_p): New function.
9870         (expand_parallel_call): Register apprpriate parallel child
9871         functions as HSA kernels.
9872         (grid_launch_attributes_trees): New type.
9873         (grid_attr_trees): New variable.
9874         (grid_create_kernel_launch_attr_types): New function.
9875         (grid_insert_store_range_dim): Likewise.
9876         (grid_get_kernel_launch_attributes): Likewise.
9877         (get_target_argument_identifier_1): Likewise.
9878         (get_target_argument_identifier): Likewise.
9879         (get_target_argument_value): Likewise.
9880         (push_target_argument_according_to_value): Likewise.
9881         (get_target_arguments): Likewise.
9882         (expand_omp_target): Call get_target_arguments instead of looking
9883         up for teams and thread limit.
9884         (grid_expand_omp_for_loop): New function.
9885         (grid_arg_decl_map): New type.
9886         (grid_remap_kernel_arg_accesses): New function.
9887         (grid_expand_target_kernel_body): New function.
9888         (expand_omp): Call it.
9889         (lower_omp_for): Do not emit phony constructs.
9890         (lower_omp_taskreg): Do not emit phony constructs but create for them
9891         a temporary variable receiver_decl.
9892         (lower_omp_taskreg): Do not emit phony constructs.
9893         (lower_omp_teams): Likewise.
9894         (lower_omp_grid_body): New function.
9895         (lower_omp_1): Call it.
9896         (grid_reg_assignment_to_local_var_p): New function.
9897         (grid_seq_only_contains_local_assignments): Likewise.
9898         (grid_find_single_omp_among_assignments_1): Likewise.
9899         (grid_find_single_omp_among_assignments): Likewise.
9900         (grid_find_ungridifiable_statement): Likewise.
9901         (grid_target_follows_gridifiable_pattern): Likewise.
9902         (grid_remap_prebody_decls): Likewise.
9903         (grid_copy_leading_local_assignments): Likewise.
9904         (grid_process_kernel_body_copy): Likewise.
9905         (grid_attempt_target_gridification): Likewise.
9906         (grid_gridify_all_targets_stmt): Likewise.
9907         (grid_gridify_all_targets): Likewise.
9908         (execute_lower_omp): Call grid_gridify_all_targets.
9909         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
9910         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
9911         (tree_omp_clause): Added union field dimension.
9912         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
9913         * tree.c (omp_clause_num_ops): Added number of arguments of
9914         OMP_CLAUSE__GRIDDIM_.
9915         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
9916         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
9917         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
9918         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
9919         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
9920         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
9921         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
9922         * tree-pass.h (make_pass_gen_hsail): Declare.
9923         (make_pass_ipa_hsa): Likewise.
9924         * ipa-hsa.c: New file.
9925         * lto-section-in.c (lto_section_name): Add hsa section name.
9926         * lto-streamer.h (lto_section_type): Add hsa section.
9927         * timevar.def (TV_IPA_HSA): New.
9928         * hsa-brig-format.h: New file.
9929         * hsa-brig.c: New file.
9930         * hsa-dump.c: Likewise.
9931         * hsa-gen.c: Likewise.
9932         * hsa.c: Likewise.
9933         * hsa.h: Likewise.
9934         * toplev.c (compile_file): Call hsa_output_brig.
9935         * hsa-regalloc.c: New file.
9937 2016-01-18  Jeff Law  <law@redhat.com>
9939         PR tree-optimization/69320
9940         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
9941         ranged object, do nothing if the RHS constant is not [0..1].
9942         (optimize_stmt): Comparing a boolean ranged object against a
9943         constant outside [0..1] results in a compile-time constant.
9945         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
9946         test.
9948 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
9950         * doc/invoke.texi (Invoking GCC): Add new section to menu.
9951         (Option Summary): Update to reflect new section and moved options.
9952         (C++ Dialect Options): Move -fstats to new section.
9953         (Debugging Options): Move all dump, statistics, and other GCC
9954         developer options to new section.  Rewrite section introduction
9955         and re-order remaining options to put the more basic ones first.
9956         (Optimization Options): Move -fira-verbose and -flto-report* to
9957         new section.
9958         (Developer Options): New section incorporating moved options.
9959         * doc/cppopts.texi (-dM): Update cross-reference.
9961 2016-01-18  Richard Henderson  <rth@redhat.com>
9963         PR target/69176
9964         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
9965         operands to pseudo only if CSE is expected.  Split long immediate
9966         operands only after reload, and for the stack pointer.
9967         (*add<GPI>3_pluslong): Remove.
9968         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
9969         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
9970         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
9971         (*add<GPI>3 peepholes): New.
9972         (*add<GPI>3 splitters): New.
9973         * config/aarch64/constraints.md (Upl): New.
9974         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
9976 2016-01-18  Richard Biener  <rguenther@suse.de>
9978         PR tree-optimization/69297
9979         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
9980         stmt at most once.
9981         (vect_bb_vectorization_profitable_p): Clear visited flag again.
9983 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
9985         PR middle-end/68542
9986         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
9987         of mixind vector and scalar types.
9988         (fold_relational_const): Add handling of vector
9989         comparison with boolean result.
9990         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
9991         comparison of vector operands with boolean result for EQ/NE only.
9992         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
9993         (verify_gimple_cond): Likewise.
9994         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
9995         valid type of VAL.
9997 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
9999         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
10000         !TARGET_OCTEON.
10002 2016-01-18  Richard Biener  <rguenther@suse.de>
10004         PR middle-end/69308
10005         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
10007 2016-01-18  Tom de Vries  <tom@codesourcery.com>
10009         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
10011 2016-01-18  Tom de Vries  <tom@codesourcery.com>
10013         * omp-low.c (set_oacc_fn_attrib): Make extern.
10014         * omp-low.h (set_oacc_fn_attrib): Declare.
10015         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
10016         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
10017         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
10018         Add and handle function parameter oacc_kernels_p.
10019         (find_reduc_addr, get_omp_data_i_param): New function.
10020         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
10021         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
10022         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
10023         Calculate dominance info.  Skip loops that are not in a kernels region
10024         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
10025         (pass_parallelize_loops::execute): Call parallelize_loops with
10026         oacc_kernels_p argument.
10027         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
10028         New member function.
10029         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
10030         * passes.def: Add argument to pass_parallelize_loops instantation.
10032 2016-01-18  Tom de Vries  <tom@codesourcery.com>
10034         * tree-parloops.c (pass_parallelize_loops::execute): Allow
10035         pass_parallelize_loops to be run outside the loop pipeline.
10037 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
10039         * tree-scalar-evolution.c (follow_copies_to_constant): New.
10040         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
10042 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
10044         PR target/63679
10045         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
10046         using get_ref_base_and_extent.
10047         (equal_mem_array_ref_p): New.
10048         (hashable_expr_equal_p): Add call to previous.
10050 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
10052         PR target/63679
10053         * tree-sra.c (disqualified_constants, constant_decl_p): New.
10054         (sra_initialize): Allocate disqualified_constants.
10055         (sra_deinitialize): Free disqualified_constants.
10056         (disqualify_candidate): Update disqualified_constants when appropriate.
10057         (create_access): Scan for constant-pool entries as we go along.
10058         (scalarizable_type_p): Add check against type_contains_placeholder_p.
10059         (maybe_add_sra_candidate): Allow constant-pool entries.
10060         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
10061         (initialize_constant_pool_replacements): New.
10062         (sra_modify_assign): Avoid mangling assignments created by previous,
10063         and don't generate writes into constant pool.
10064         (sra_modify_function_body): Call initialize_constant_pool_replacements.
10066 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
10068         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
10069         andnot instruction.
10070         (scalar_chain::convert_op): Likewise.
10071         * config/i386/i386.md (*andndi3_doubleword): New.
10073 2016-01-18  Richard Biener  <rguenther@suse.de>
10075         PR tree-optimization/69170
10076         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
10077         building a vector from scalar results of a pattern stmt.
10079 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
10081         * haifa-sched.c (autopref_multipass_init): Work around
10082         -Wmaybe-uninitialized warning.
10084 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10086         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
10087         against the constant 0.
10089 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10091         PR tree-optimization/68799
10092         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
10093         look up phi candidates in the statement-candidate map.
10094         (phi_add_costs): Likewise.
10095         (record_phi_increments): Likewise.
10096         (phi_incr_cost): Likewise.
10097         (ncd_with_phi): Likewise.
10098         (all_phi_incrs_profitable): Likewise.
10100 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
10102         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
10103         -Wmaybe-uninitialized warning.
10105 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
10107         * doc/invoke.texi (Invoking GCC): Add new section to menu.
10108         (Option Summary): Update to reflect new section and moved options.
10109         (C++ Dialect Options): Move -fvtable-verify and related options.
10110         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
10111         and profiling-related options.
10112         (Optimization Options): Move profile generation options and
10113         -fstack-protector and related options.
10114         (Instrumentation Options): New section incorporating moved options.
10115         (Code Generation Options): Move -finstrument-functions and
10116         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
10118 2016-01-16  Tom de Vries  <tom@codesourcery.com>
10120         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
10122 2016-01-16  Tom de Vries  <tom@codesourcery.com>
10124         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
10126 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
10128         * hash-table.h (hash_table::empty): Turn into an inline wrapper
10129         that checks whether the table is already empty.  Rename the
10130         original implementation to...
10131         (hash_table::empty_slot): ...this new private function.
10133 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
10135         PR diagnostic/68899
10136         * diagnostic-show-locus.c (layout::print_source_line): Move x
10137         offset of line until after call to
10138         get_line_width_without_trailing_whitespace.
10140 2016-01-15  Jeff Law  <law@redhat.com>
10142         PR tree-optimization/69270
10143         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
10144         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
10145         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
10146         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
10147         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
10148         ssa_name_has_boolean_range and constant_boolean_node.
10150 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
10152         PR rtl-optimization/69030
10153         * lra-spills.c (remove_pseudos): Check nrefs and make the function
10154         returning bool.
10155         (spill_pseudos): Delete debug insn for dead pseudo.
10156         (lra_spill): Initiate spill_hard_reg and slots memory separately.
10158 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
10160         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
10161         New.
10162         (TYPES_UNOPUS): Likewise.
10163         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
10164         builtin type, from UNOP to UNOPUS.
10165         (lbtruncuv4sf): Likewise.
10166         (lbtruncuv2df): Likewise.
10167         (lrounduv2sf): Likewise.
10168         (lrounduv4sf): Likewise.
10169         (lrounduv2df): Likewise.
10170         (lroundusf): Likewise.
10171         (lroundusf): Likewise.
10172         (lceiluv2sf): Likewise.
10173         (lceiluv4sf): Likewise.
10174         (lceiluv2df): Likewise.
10175         (lceilusf): Likewise.
10176         (lceiludf): Likewise.
10177         (lflooruv2sf): Likewise.
10178         (lflooruv4sf): Likewise.
10179         (lflooruv2df): Likewise.
10180         (lfloorusf): Likewise.
10181         (lfloorudf): Likewise.
10182         (lfrintnuv2sf): Likewise.
10183         (lfrintnuv4sf): Likewise.
10184         (lfrintnuv2df): Likewise.
10185         (lfrintnusf): Likewise.
10186         (lfrintnudf): Likewise.
10187         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
10188         conversion.
10189         (vcvtq_u32_f32): Likewise.
10190         (vcvtq_u64_f64): Likewise.
10191         (vcvta_u32_f32): Likewise.
10192         (vcvtaq_u32_f32): Likewise.
10193         (vcvtaq_u64_f64): Likewise.
10194         (vcvtm_u32_f32): Likewise.
10195         (vcvtmq_u32_f32): Likewise.
10196         (vcvtmq_u64_f64): Likewise.
10197         (vcvtn_u32_f32): Likwise.
10198         (vcvtnq_u32_f32): Likewise.
10199         (vcvtnq_u64_f64): Likewise.
10200         (vcvtp_u32_f32): Likewise.
10201         (vcvtpq_u32_f32): Likewise.
10202         (vcvtpq_u64_f64): Likewise.
10203         (vcvtmd_u64_f64): Likewise.
10204         (vcvtms_u32_f32): Likewise.
10205         (vcvtad_u64_f64): Likewise.
10206         (vcvtas_u32_f32): Likewise.
10207         (vcvtnd_u64_f64): Likewise.
10208         (vcvtns_u32_f32): Likewise.
10209         (vcvtpd_u64_f64): Likewise.
10210         (vcvtps_u32_f32): Likewise.
10212 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10214         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
10215         CSEL of zero_extended registers.
10217 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10219         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
10220         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
10222 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10224         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
10225         false when argument string is not found in the attributes table
10226         at all.
10228 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
10230         PR target/68609
10231         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
10232         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
10233         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
10234         precision estimate.
10236 2016-01-15  Richard Biener  <rguenther@suse.de>
10238         PR tree-optimization/66856
10239         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
10240         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
10241         (vect_create_new_slp_node): Increment stmt reference count.
10242         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
10243         an SLP tree before swapping operands.
10244         (vect_build_slp_tree): Likewise.
10245         (destroy_bb_vec_info): Free stmt info after SLP instances.
10246         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
10247         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
10248         (STMT_VINFO_NUM_SLP_USES): New macro.
10250 2016-01-15  Richard Biener  <rguenther@suse.de>
10252         PR debug/69137
10253         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
10254         (add_linkage_name): ... here.
10255         (gen_typedef_die): Use add_linkage_name_raw instead of
10256         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
10257         if necessary.
10259 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
10261         * gimplify.c (oacc_default_clause): Decode reference and pointer
10262         types for both kernels and parallel regions.
10264 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
10266         PR middle-end/69246
10267         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
10269 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
10271         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
10272         (convert_scalars_to_vector): Likewise.
10274 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
10276         * doc/extend.texi (Type Traits): Fix grammar.
10278 2016-01-15  Martin Jambor  <mjambor@suse.cz>
10280         * tree-inline.c (remap_decl): Use existing dclarations if
10281         remapping a type and prevent_decl_creation_for_types.
10282         (replace_locals_stmt): Do an initial remapping of non-VLA typed
10283         decls first.  Do real remapping with
10284         prevent_decl_creation_for_types set.
10285         * tree-inline.h (copy_body_data): New field
10286         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
10287         padding.
10289 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10291         * config/s390/s390.opt (mmvcle): More verbose help text.
10293 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10295         * config/s390/s390.opt: Add period to -mzvector option text.
10297 2016-01-15  Richard Biener  <rguenther@suse.de>
10299         PR tree-optimization/68961
10300         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
10301         of invariants in stores again.
10303 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10305         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
10307 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
10309         * config/i386/i386.c (ix86_expand_branch): Don't split
10310         DI mode xor instruction to SI mode.
10312 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
10314         PR ipa/68148
10315         * ipa-icf.c (sem_function::merge): Virtual functions may become
10316         reachable even if they address is not taken and there are no
10317         idrect calls.
10319 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
10321         * lto-streamer-out.c (subtract_estimated_size): New function.
10322         (get_symbol_initial_value): Use it.
10324 2016-01-15  Christian Bruel  <christian.bruel@st.com>
10326         PR target/65837
10327         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
10328         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
10329         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
10330         use add_builtin_function_ext_scope instead of add_builtin_function.
10331         (neon_set_p, neon_crypto_set_p): Remove.
10332         (arm_init_builtins): Always call arm_init_neon_builtins and
10333         arm_init_crypto_builtins.
10334         (arm_expand_builtin): Check that builtins are allowed for the arch.
10335         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
10336         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
10337         arm_init_neon_builtins call.
10339 2016-01-15  Richard Biener  <rguenther@suse.de>
10341         PR tree-optimization/69117
10342         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
10343         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
10344         of the leader conservatively.
10345         (free_scc_vn): Restore original SSA name infos.
10347 2016-01-14  Jeff Law  <law@redhat.com>
10349         PR tree-optimization/69270
10350         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
10351         single bit of precision, verify it's also unsigned.
10352         (record_edge_info): Use constant_boolean_node rather than fold_convert
10353         to convert boolean_true/boolean_false to the right type.
10355 2016-01-14  Richard Henderson  <rth@redhat.com>
10357         PR rtl-opt/69014
10358         * loop-doloop.c (record_reg_sets): New.
10359         (doloop_optimize): Reject the transform if the sequence
10360         clobbers registers live at the end of the loop block.
10361         (doloop_optimize_loops): Enable df_live if needed.
10363 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
10365         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
10366         * gcc/config/rs6000/rs6000.c: Likewise.
10367         * gcc/config/rs6000/rs6000.h: Likewise.
10368         * gcc/config/rs6000/rs6000.md: Likewise.
10369         * gcc/doc/extend.texi: Likewsie.
10371 2016-01-14  Jeff Law  <law@redhat.com>
10373         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
10374         typo.
10376 2016-01-14  Richard Henderson  <rth@redhat.com>
10378         PR c/69272
10379         PR tree-opt/68964
10380         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
10381         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
10382         instead of builtin_decl_declared_p to test for declaration.
10384 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
10386         * doc/loop.texi (Loop Analysis and Representation): Document
10387         loop_depth function.
10389 2016-01-14  Tom de Vries  <tom@codesourcery.com>
10391         PR tree-optimization/68773
10392         * omp-low.c (expand_omp_target): Don't set force_output.
10393         * varpool.c (varpool_node::get_create): Same.
10394         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
10395         offload_funcs with force_output.
10397 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
10399         PR debug/69244
10400         * lra-eliminations.c (move_plus_up): Don't change anything if either
10401         the outer or inner subreg mode is not MODE_INT.
10402         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
10403         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
10405 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
10407         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
10408         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
10409         reduc_uplus_@var{m}): Remove.
10410         * expr.c (expand_expr_real_2): Remove expansion path for
10411         reduc_[us](min|max|plus) optabs.
10412         * optabs-tree.c (scalar_reduc_to_vector): Remove.
10413         * optabs-tree.h (scalar_reduc_to_vector): Remove.
10414         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
10415         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
10416         * tree-vect-loop.c (vectorizable_reduction): Remove test for
10417         reduc_[us](min|max|plus) optabs.
10419 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
10421         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
10422         (reduc_plus_scal_v2sf): New.
10423         (reduc_smax_v2sf): Rename to...
10424         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
10425         (reduc_smin_v2sf): Rename to...
10426         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
10428 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
10430         * alias.c (compare_base_symbol_refs): New function.
10431         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
10432         it.
10434 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
10436         PR middle-end/68146
10437         PR tree-optimization/69155
10438         * tree-complex.c: Include cfganal.h.
10439         (phis_to_revisit): New variable.
10440         (extract_component): Add phiarg_p argument.  Assert that returned
10441         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
10442         (update_phi_components): Partly rewrite to use loop over real/imag
10443         components instead of code duplication.  If extract_component returns
10444         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
10445         create_tmp_reg into the PHI node instead, and mention the phi triplet
10446         in phis_to_revisit.
10447         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
10448         in phis_to_revisit at the end.
10450 2016-01-14  Richard Biener  <rguenther@suse.de>
10452         PR tree-optimization/68060
10453         * tree-vect-loop.c (vect_is_simple_reduction): Check the
10454         outer loop reduction is only used in the inner loop before
10455         detecting a double reduction.
10457 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
10459         PR target/68269
10460         * combine.c (expand_field_assignment): Punt if compute_mode is
10461         unsupported scalar mode.
10463 2016-01-14  Richard Biener  <rguenther@suse.de>
10465         PR tree-optimization/66856
10466         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
10467         SLP node only if it built successfully.
10468         (vect_analyze_slp_instance): Adjust.
10470 2016-01-14  Jeff Law  <law@redhat.com>
10472         PR tree-optimization/69270
10473         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
10474         (record_edge_info): Use it.  Convert boolean_{true,false}_node
10475         to the type of op0.
10477 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
10479         PR ipa/66487
10480         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
10481         use block_ultimate_origin
10482         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
10484 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
10486         * doc/invoke.texi (Submodel Options): Rename section to
10487         "Machine-Dependent Options" to better reflect its content.
10488         Rewrite introductory text to remove archaic CPU names.
10489         Update references.
10491 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
10493         * doc/invoke.texi (Code Gen Options): Move section up in file,
10494         before target-specific options.  Update menu and option summary
10495         to reflect the new section ordering.
10497 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
10499         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
10500         (C++ Dialect Options): Add cross-reference to -std option.
10501         * doc/standards.texi (C++ Language): Document C++14 support.
10503 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
10505         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
10506         for pack/unpack functions for __ibm128.
10507         (PACK_IF): Likewise.
10508         (UNPACK_IF): Likewise.
10510         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
10511         support for __ibm128 pack/unpack functions.
10512         (rs6000_invalid_builtin): Likewise.
10513         (rs6000_init_builtins): Likewise.
10514         (rs6000_opt_masks): Likewise.
10516         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
10517         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
10518         functions
10519         (RS6000_BTM_COMMON): Likewise.
10521         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
10522         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
10523         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
10524         128-bit floating point.  Add support for the double values to be
10525         in Altivec registers for TF/IF packing and unpacking, but restrict
10526         TD packing sub-fields to be FPR registers.  Don't allow overlapped
10527         register support for packing.  Allow pack inputs to be memory
10528         locations.  Don't build generator functions for unpack<mode>_dm
10529         and unpack<mode>_nodm.
10530         (unpack<mode>_dm): Likewise.
10531         (unpack<mode>_nodm): Likewise.
10532         (pack<mode>): Likewise.
10534         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
10535         built-in functions to pack/unpack explicit __ibm128 values.
10536         (__builtin_unpack_ibm128): Likewise.
10538         * doc/extend.texi (PowerPC Built-in Functions): Document
10539         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
10541 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
10543         PR c/66208
10544         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
10545         Add new arg loc and pass it down as context.
10546         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
10547         to the location to use for the warning.
10548         (check_function_arguments): New arg loc.  All callers changed.  Pass
10549         it to check_function_nonnull.
10550         * c-common.h (check_function_arguments): Adjust declaration.
10552 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
10554         PR tree-optimization/69156
10555         * gimple.c (validate_type): Removed.
10556         (gimple_builtin_call_types_compatible_p): Use
10557         useless_type_conversion_p instead of validate_type.
10558         * value-prof.c (gimple_stringop_fixed_value): Fold
10559         icall_size to correct type.
10561 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
10563         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
10564         effects.
10566 2016-01-13  Richard Henderson  <rth@redhat.com>
10568         PR tree-opt/68964
10569         * target.def (builtin_tm_load, builtin_tm_store): Remove.
10570         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
10571         (ix86_builtin_tm_store): Remove.
10572         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
10573         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
10574         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
10575         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
10576         * doc/tm.texi: Rebuild.
10578         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
10579         (BUILT_IN_TM_MEMCPY_RTWN): New.
10580         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
10581         fallback from vector to integer helpers.
10582         (build_tm_load): Handle vector types directly, instead of
10583         via target hook.
10584         (build_tm_store): Likewise.
10585         (expand_assign_tm): Prepare for register types not handled by
10586         the above.  Copy them to memory and use memcpy.
10587         * tree.c (tm_define_builtin): New.
10588         (find_tm_vector_type): New.
10589         (build_tm_vector_builtins): New.
10590         (build_common_builtin_nodes): Call it.
10592 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
10594         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
10595         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
10597 2016-01-13  Tom de Vries  <tom@codesourcery.com>
10599         PR tree-optimization/69169
10600         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
10601         handled_struct_type param.
10602         (create_variable_info_for, intra_create_variable_infos): Call
10603         create_variable_info_for_1 with extra arg.
10605 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
10607         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
10608         and "armv8.1-a+crc" entries.
10610 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
10612         PR target/69228
10613         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
10614         Change first operand predicate from register_or_constm1_operand
10615         to register_operand.
10616         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
10617         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
10618         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
10619         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
10620         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
10621         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
10622         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
10623         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
10624         comparison with constm1_rtx from vec_prefetch_gen part.
10626 2016-01-13  Richard Biener  <rguenther@suse.de>
10628         PR tree-optimization/69013
10629         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
10630         Exchange assert for a test.
10632 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10634         PR target/69247
10635         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
10637 2016-01-13  Richard Biener  <rguenther@suse.de>
10639         PR tree-optimization/69242
10640         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
10641         assert with a check.
10643 2016-01-13  Richard Biener  <rguenther@suse.de>
10645         PR tree-optimization/69186
10646         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
10647         Properly guard vect_update_misalignment_for_peel call.
10649 2016-01-12  Jeff Law  <law@redhat.com>
10651         PR tree-optimization/pr67755
10652         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
10653         "need_profile_correction".
10654         (thread_block_1): Initialize new field to false by default.  If we
10655         have multiple thread paths through a common joiner to different
10656         final targets, then set new field to true.
10657         (compute_path_counts): Only do count adjustment when it's really
10658         needed.
10660 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
10662         * doc/invoke.texi (Spec Files): Move section down in file, past
10663         all command-line option descriptions.
10665 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10667         PR middle-end/54809
10668         * doc/gty.texi: Remove documentation of mark_hook.
10669         * gengtype.c (struct write_types_data): Remove code to support
10670         mark_hook attribute.
10671         (walk_type): Likewise.
10672         (write_func_for_structure): Likewise.
10674 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
10676         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
10677         Directory Options, and -specs= to Overall Options.
10678         (Overall Options): Adjust similarly.  Reorder to group related
10679         options together.  Make -specs= cross-reference the spec file details.
10680         (Directory Options): Adjust similarly.
10682 2016-01-12  Jeff Law  <law@redhat.com>
10684         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
10686 2016-01-12  Olivier Hainque  <hainque@adacore.com>
10688         * gcc.c (spec_undefvar_allowed): New global.
10689         (process_command): Set to true when running for --version or --help,
10690         alone or together.
10691         (getenv_spec_function): When the variable is not defined, use the
10692         variable name as the variable value if we're allowed not to issue
10693         a fatal error.
10695 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
10697         PR tree-optimization/68911
10698         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
10699         information computed for expression "init + nit * step".
10701 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
10703         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
10704         about name of GCC executable.  Remove deleted node from menu.
10705         (Directory Options) <-B>: Remove cross-reference to deleted node.
10706         (Target Options): Delete section.
10708 2016-01-12  Christian Bruel  <christian.bruel@st.com>
10710         PR target/69180
10711         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
10712         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
10714 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
10716         PR target/69198
10717         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
10718         aligned_mem is properly set for AVX512-VL floating point masked
10719         stores.
10721         PR target/69175
10722         * ifcvt.c (cond_exec_process_if_block): When removing the last
10723         insn from then_bb, remove also any possible barriers that follow it.
10725 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
10727         PR target/68456
10728         PR target/69226
10729         * config/i386/iamcu.h (SIZE_TYPE): New macro.
10730         (PTRDIFF_TYPE): Likewise.
10731         (WCHAR_TYPE): Likewise.
10732         (WCHAR_TYPE_SIZE): Likewise.
10733         (STDINT_LONG32): Likewise.
10735 2016-01-12  Richard Biener  <rguenther@suse.de>
10737         PR tree-optimization/69053
10738         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
10739         convert initial value for cond reductions.
10741 2016-01-12  Richard Biener  <rguenther@suse.de>
10743         PR tree-optimization/69007
10744         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
10745         widen_sum after dot_prod and sad.
10747 2016-01-12  Richard Biener  <rguenther@suse.de>
10749         PR tree-optimization/69168
10750         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
10751         pattern stmt SLP type.
10752         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
10753         end up unused so cope with that case.
10755 2016-01-12  Richard Biener  <rguenther@suse.de>
10757         PR tree-optimization/69157
10758         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
10759         stmts def type only during analyze phase.
10760         (vectorizable_call): Likewise.
10761         (vectorizable_simd_clone_call): Likewise.
10762         (vectorizable_conversion): Likewise.
10763         (vectorizable_assignment): Likewise.
10764         (vectorizable_shift): Likewise.
10765         (vectorizable_operation): Likewise.
10766         (vectorizable_store): Likewise.
10767         (vectorizable_load): Likewise.
10769 2016-01-12  Richard Biener  <rguenther@suse.de>
10771         PR tree-optimization/69174
10772         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
10773         space.
10774         (vectorizable_load): Properly compute the number of loads needed
10775         for permuted strided SLP loads and do not spuriously assign
10776         to SLP_TREE_VEC_STMTS.
10778 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
10780         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
10781         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
10782         (MD_EXEC_PREFIX): Remove.
10783         (MD_STARTFILE_PREFIX) Removee.
10784         (FILE_NAME_ABSOLUTE_P): Remove.
10785         (CPP_SPEC): Do not read macros from sys/version.h.
10786         (LINK_COMMAND_SPEC): Remove.
10787         (LOCAL_INCLUDE_DIR): Remove.
10788         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
10789         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
10790         (POST_LINK_SPEC): Define to invoke stubify after linker
10791         (LIBSTDCXX): Remove define
10792         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
10793         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
10794         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
10795         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
10796         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
10797         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
10798         (i386_djgpp_asm_named_section): Add propotype of new procedure
10800         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
10801         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
10802         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
10803         in config/i386/djgpp.h).
10804         (STANDARD_STARTFILE_PREFIX_2): Define identical to
10805         STANDARD_STARTFILE_PREFIX_1.
10806         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
10807         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
10808         installation errors.
10809         (MAX_OFILE_ALIGNMENT): Define to 128.
10810         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
10812         * config/i386/djgpp.c: New file. Add implementation of
10813         i386_djgpp_asm_named_section.
10815         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
10817         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
10818         Add rule for building djgpp.o.
10820 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10822         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
10823         (rtx_is_swappable_p): Reductions are swappable.
10824         (insn_is_swappable_p): V2DF reductions are swappable.
10826 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
10828         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
10829         reloads for other unsupported memory operands.
10831 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
10832             Jim Wilson  <jim.wilson@linaro.org>
10834         PR target/69194
10835         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
10836         copy_to_mode_reg instead of force_reg.
10838 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
10840         PR target/69225
10841         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
10842         TARGET_80387 is true.
10844 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
10846         PR target/69071
10847         * lra-eliminations.c (move_plus_up): Only move plus up
10848         if subreg of the constant can be simplified into constant
10849         and use the simplified subreg of the constant instead of
10850         the original constant.
10852         * fold-const.c (fold_convertible_p): Don't return true
10853         for conversion of VECTOR_TYPE to same sized integral type.
10854         (fold_convert_loc): Fix up formatting.  Fold conversion of
10855         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
10856         instead of NOP_EXPR.
10858         PR tree-optimization/69214
10859         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
10860         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
10861         Formatting fix.
10863         PR tree-optimization/69207
10864         * tree-vect-slp.c (vect_get_constant_vectors): For
10865         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
10866         fold_convertible_p to vector_type's element type, and always
10867         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
10869 2016-01-11  Richard Biener  <rguenther@suse.de>
10871         PR tree-optimization/69173
10872         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
10873         fixup the cycle if all stmts are in a pattern.
10875 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
10877         PR middle-end/68999
10878         * alias.c (base_alias_check): Move check for addresses with
10879         alignment ANDs before the call for compare_base_decls.
10880         (memrefs_conflict_p): Return -1 for different decls
10881         that went through alignment adjustments.
10883 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10885         PR rtl-optimization/68796
10886         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
10887         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
10888         and QImode comparisons against zero with CC_NZmode.
10889         * config/aarch64/iterators.md (short_mask): New mode_attr.
10891 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
10893         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
10894         (<avx512>_store<mode>_mask): Likewise.
10896 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
10897             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10899         PR rtl-optimization/68841
10900         * ifcvt.c (struct noce_if_info): Add orig_x field.
10901         (bbs_ok_for_cmove_arith): Add to_rename parameter.
10902         Don't record conflicts on to_rename if it's present.
10903         Allow memory destinations in sets.
10904         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
10905         blocks, passing orig_x to the checks.
10906         (noce_process_if_block): Set if_info->orig_x appropriately.
10908 2016-01-11  Tom de Vries  <tom@codesourcery.com>
10910         PR tree-optimization/69069
10911         * tree-parloops.c (create_parallel_loop): Add missing phi args.
10913 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
10915         PR rtl-optimization/68920
10916         * config/i386/i386.c (ix86_option_override_internal): Restrict number
10917         of conditional moves for  RTL if-conversion to 1 for
10918         TARGET_ONE_IF_CONV_INSN.
10919         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
10920         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
10921         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
10922         parameter to restirct number of conditional moves for
10923         RTL if-conversion.
10924         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
10925         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
10926         conditionl moves.
10928 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
10930         PR bootstrap/69123
10931         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
10932         onepart vars.  Fix typo in comment.  Fix reversed condition in
10933         unshare test.
10934         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
10936         PR bootstrap/69123
10937         * var-tracking.c (dump_onepart_variable_differences): New.
10938         (dataflow_set_different): If a detailed dump is requested,
10939         delay early returns and dump differences between onepart
10940         variables present before and after, and added variables.
10942 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
10944         PR target/69010
10945         * expr.c (expand_expr_real_1): For boolean vector constants
10946         with a scalar mode use const_scalar_mask_from_tree.
10947         (const_scalar_mask_from_tree): New.
10948         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
10949         assigned to a mask type to handle constants.
10951 2016-01-11  Martin Jambor  <mjambor@suse.cz>
10953         PR ipa/69044
10954         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
10955         useless parameters if we cannot change function signature.
10957 2016-01-11  Martin Jambor  <mjambor@suse.cz>
10959         PR ipa/66616
10960         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
10961         flag.
10963 2016-01-11  Tom de Vries  <tom@codesourcery.com>
10965         PR tree-optimization/69109
10966         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
10967         latch with phi.
10969 2016-01-11  Tom de Vries  <tom@codesourcery.com>
10971         PR tree-optimization/69108
10972         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
10973         res is not used in a phi.
10975 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
10977         PR 67425
10978         * common.opt (frandom-seed): Fix parameter name.
10979         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
10981 2016-01-11  Tom de Vries  <tom@codesourcery.com>
10983         PR tree-optimization/69058
10984         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
10985         not supported.
10987 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
10989         * config/arc/arc.opt (mdiv-rem): Add period to the end.
10990         (mcode-density): Likewise.
10992 2016-01-10  Tom de Vries  <tom@codesourcery.com>
10994         PR tree-optimization/69062
10995         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
10996         (parallelize_loops): Don't paralelize loop that has phi with address
10997         arg.
10999 2016-01-10  Tom de Vries  <tom@codesourcery.com>
11001         PR tree-optimization/69039
11002         * tree-parloops.c (try_create_reduction_list): Only allow single exit
11003         phi for reduction.
11005 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
11007         PR middle-end/68743
11008         * match.pd: Require target has function_c99_misc before doing
11009         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
11011 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
11013         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
11014         use GMPINC.
11015         * configure: Regenerate.
11017 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
11019         PR middle-end/50865
11020         PR tree-optimization/69097
11021         * fold-const.h (expr_not_equal_to): New prototype.
11022         * fold-const.c: Include stringpool.h and tree-ssanames.h.
11023         (expr_not_equal_to): New function.
11024         * match.pd (X % -Y is the same as X % Y): Don't optimize
11025         unless X is known not to be equal to minimum or Y is known
11026         not to be equal to -1.
11027         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
11028         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
11029         (simplify_stmt_using_ranges): Adjust caller.
11030         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
11031         substitute_and_fold.
11033 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
11035         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
11036         w/o DECL_NAME.
11038 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
11040         PR tree-optimization/69167
11041         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
11042         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
11043         ops[0] comparison.
11044         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
11046 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
11047             Richard Biener  <rguenther@suse.de>
11049         PR tree-optimization/68707
11050         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
11051         instances that can be handled via vect_load_lanes.
11053 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
11055         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
11056         if we can't determine address equivalence.
11057         * alias.c (compare_base_decl): Update for changed return value of
11058         symtab_node::equal_address_to.
11060 2016-01-08  Jason Merrill  <jason@redhat.com>
11062         PR c++/68983
11063         PR c++/67557
11064         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
11065         * expr.c (store_field): Not here.
11066         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
11067         call with TREE_ADDRESSABLE type.
11068         * tree-cfg.c (verify_gimple_call): Adjust.
11070 2016-01-08  Olivier Hainque  <hainque@adacore.com>
11072         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
11073         libc_internal.
11075 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
11077         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
11078         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
11079         (reduc_smin_v2sf): Rename to...
11080         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
11081         (reduc_splus_v2sf): Rename to...
11082         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
11084 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
11086         PR tree-optimization/69162
11087         * gimplify.c (gimplify_va_arg_expr): Encode original type of
11088         valist argument in another argument.
11089         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
11090         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
11091         to determine the va_list type, build a MEM_REF instead of
11092         build_fold_indirect_ref.
11094         PR tree-optimization/69172
11095         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
11096         gimple_build.
11098 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11100         PR tree-optimization/67781
11101         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
11102         and cmpnop in two steps: first the ones not accessed in original
11103         gimple expression in a endian independent way and then the ones not
11104         accessed in the final result in an endian-specific way.
11106 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
11108         PR tree-optimization/69083
11109         * tree-vect-slp.c (vect_get_constant_vectors): For
11110         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
11111         element type.  If op is fold_convertible_p to vector_type's element
11112         type, use NOP_EXPR instead of VCE.
11114 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
11116         PR rtl-optimization/67778
11117         PR rtl-optimization/68634
11118         PR rtl-optimization/68909
11119         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
11120         block from the stack until done with it.  Remove a superfluous
11121         bitmap set.  Remove a superfluous bitmap test.
11123 2016-01-07  Martin Sebor  <msebor@redhat.com>
11125         PR c/68966
11126         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
11127         constraint on the type of arguments.
11129 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
11131         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
11132         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
11133         unaligned_access on the gcc_options set.
11134         * config/arm/arm.c (arm_option_override_internal): Use
11135         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
11137 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
11139         PR target/69140
11140         * config/i386/i386.c (ix86_frame_pointer_required): Enable
11141         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
11143 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
11145         Revert
11146         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
11148         PR target/69140
11149         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
11150         depending on frame_pointer_needed before remaining integer and SSE
11151         registers are saved.
11153 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
11155         PR 1078
11156         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
11158 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
11160         PR target/69171
11161         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
11162         Use the "xBm" constraint.
11163         (float<sseintvecmodelower><mode>2<mask_name><round_name):
11164         Likewise.
11165         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
11166         (sse_cvtsi2ssq<round_name>): Likewise.
11167         (sse_cvtss2si<round_name>): Likewise.
11168         (sse_cvtss2siq<round_name>): Likewise.
11169         (sse2_cvtsi2sdq<round_name>): Likewise.
11170         (sse2_cvtsd2si<round_name>): Likewise.
11171         (sse2_cvtsd2siq<round_name>): Likewise.
11172         * config/i386/subst.md (round_nimm_scalar_predicate): New
11173         predicate.
11175 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
11177         PR middle-end/67639
11178         * varasm.c (make_decl_rtl): Mark invalid register vars as
11179         DECL_EXTERNAL.
11181         PR rtl-optimization/66206
11182         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
11183         All callers changed.
11185 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
11187         PR tree-optimization/69141
11188         * tree-ssa-pre.c: Include langhooks.h.
11189         (eliminate_dom_walker::before_dom_children): Use
11190         lang_hooks.decl_printable_name instead of
11191         cgraph_node::get ()->name ().
11193         PR middle-end/68960
11194         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
11195         it and DECL_ALIGN too.
11197 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
11199         * config/mips/mips-ftypes.def: Sort to lexicographical order.
11201 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
11203         PR target/69140
11204         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
11205         depending on frame_pointer_needed before remaining integer and SSE
11206         registers are saved.
11208 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11210         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
11211         mode iterator with VSX_M2.
11212         (*p9_vecstore_<mode>): Likewise.
11213         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
11214         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
11215         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
11216         (define_split for VSX_LE128 stores): Likewise.
11217         (define_peephole2 for TImode LE swaps): Likewise.
11218         (define_split for VSX_LE128 post-reload stores): Likewise.
11220 2016-01-06  Marek Polacek  <polacek@redhat.com>
11222         PR sanitizer/69099
11223         * convert.c (convert_to_integer_1): Adjust call to
11224         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
11225         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
11226         EXPR instead of ARG.
11227         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
11229 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
11231         PR 1078
11232         * doc/extend.texi (RL78 Variable Attributes): New section.
11234 2016-01-05  Marek Polacek  <polacek@redhat.com>
11236         PR c/69104
11237         * builtins.c (get_memmodel): Use expansion point location rather than
11238         the input location.  Call warning_at rather than warning.
11239         (expand_builtin_atomic_compare_exchange): Likewise.
11240         (expand_builtin_atomic_load): Likewise.
11241         (expand_builtin_atomic_store): Likewise.
11242         (expand_builtin_atomic_clear): Likewise.
11244 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
11246         PR target/68991
11247         * config/i386/i386.c (ix86_expand_vector_logical_operator):
11248         Replace nonimmediate_operand with vector_operand.
11249         * config/i386/predicates.md (vector_operand): New predicate.
11250         (general_vector_operand): Replace nonimmediate_operand with
11251         vector_operand.
11252         * config/i386/sse.md: Replace nonimmediate_operand with
11253         vector_operand and m constraint with Bm constraint on SSE
11254         patterns with 16-byte memory operand.
11255         * config/i386/subst.md (round_nimm_predicate): Replace
11256         nonimmediate_operand with vector_operand.
11257         (round_saeonly_nimm_predicate): Likewise.
11258         (round_saeonly_nimm_scalar_predicate): New.
11260 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
11262         PR target/68991
11263         * config/i386/constraints.md (Bm): New constraint.
11264         * config/i386/predicates.md (vector_memory_operand): New
11265         predicate.
11266         * config/i386/sse.md: Replace xm with xBm in plusminus and
11267         any_logic patterns.
11269 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
11271         PR 1078
11272         * doc/extend.texi (V850 Function Attributes): New section.
11273         (V850 Variable Attributes): New section.
11275 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
11277         PR 1078
11278         * doc/extend.texi (MicroBlaze Function Attributes): Document
11279         interrupt_handler and fast_interrupt attributes.
11281 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
11283         PR other/60465
11284         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
11285         for local symbolic operands.
11286         * config/ia64/predicates.md (local_symbolic_operand64): New
11287         predicate.
11289 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11291         PR rtl-optimization/68651
11292         * combine.c (combine_simplify_rtx): Canonicalize x + x into
11293         x << 1.
11295 2016-01-05  Nathan Sidwell  <nathan@acm.org>
11297         * alias.c (compare_base_decls): Use symtab_node::get.
11299 2016-01-05  Nick Clifton  <nickc@redhat.com>
11301         PR target/68770
11302         * ira-costs.c (copy_cost): Initialise the t_icode field of the
11303         secondary_reload_info structure.
11305         PR target/66655
11306         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
11307         decls if weak support is available.
11309 2016-01-04  Martin Sebor  <msebor@redhat.com>
11311         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
11313 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
11315         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
11316         OPTION_MASK_P9_DFORM.
11318         * config/rs6000/constraints.md (wo constraint): New constraint for
11319         ISA 3.0 (power9).
11321         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
11322         for wo constraint.
11323         (rs6000_init_hard_regno_mode_ok): Likewise.
11325         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
11326         wo constraint.
11328         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
11329         expanders not to have constraints.  Add support for ISA 3.0 xxperm
11330         instruction.  Add support for fusing xxlor with xxperm.
11331         (altivec_vperm_<mode>_internal): Likewise.
11332         (altivec_vperm_v8hiv16qi): Likewise.
11333         (altivec_vperm_<mode>v16q): Likewise.
11334         (altivec_vperm_<mode>_uns): Likewise.
11335         (vperm_v8hiv4si): Likewise.
11336         (vperm_v16qiv8hi): Likewise.
11338         * doc/md.texi (RS/6000 constraints): Document wo constraint.
11340 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
11342         Update copyright years.
11344         * gcc.c (process_command): Update copyright notice dates.
11345         * gcov-dump.c (print_version): Ditto.
11346         * gcov.c (print_version): Ditto.
11347         * gcov-tool.c (print_version): Ditto.
11348         * gengtype.c (create_file): Ditto.
11349         * doc/cpp.texi: Bump @copying's copyright year.
11350         * doc/cppinternals.texi: Ditto.
11351         * doc/gcc.texi: Ditto.
11352         * doc/gccint.texi: Ditto.
11353         * doc/gcov.texi: Ditto.
11354         * doc/install.texi: Ditto.
11355         * doc/invoke.texi: Ditto.
11357 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
11359         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
11360         modes larger than TImode as TImode if NEON is not enabled.
11362 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
11364         PR target/69100
11365         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
11366         mode for %f0-%f31 only if TARGET_FPU.
11368 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
11370         PR target/69072
11371         * config/sparc/sparc.c (scan_record_type): Take into account subfields
11372         to compute the PACKED_P predicate.
11373         (function_arg_record_value): Minor tweaks.
11375 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11377         * doc/install.texi (--with-multilib-list): Describe the meaning of the
11378         option for arm*-*-* targets.
11380 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
11382         * doc/extend.texi (Common Function Attributes): Move docs for
11383         MSP430-specific attributes to....
11384         (MSP430 Function Attributes): ...here.  Delete the redundant
11385         entries and copy-edit the remaining text.
11386         (MSP430 Variable Attributes): Use uniform format for index
11387         entries and add a cross-reference to the corresponding function
11388         attribute docs.
11390 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
11392         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
11393         -finite-math typo.
11394         (x86 Options): Likewise.
11396 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
11398         PR 1078
11400         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
11401         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
11402         to corresponding attribute.
11404 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
11406         * doc/extend.texi (Common Function Attributes) <noplt>: Move
11407         to correct alphabetization of table.  Copy-edit and correct
11408         markup.
11409         <stack_protect>: Likewise.
11410         <target_clones>: Likewise.
11411         <simd>: Likewise.
11412         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
11413         Correct punctuation.
11414         (Code Gen Options) <-fno-plt>: Copy-edit.
11416 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11418         PR target/68917
11419         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
11420         SI values.  Explicitly convert SI to DI and vice-versa.
11422 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
11424         PR tree-optimization/69070
11425         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
11426         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
11428         PR sanitizer/69055
11429         * ubsan.c (ubsan_instrument_float_cast): Call
11430         initialize_sanitizer_builtins.
11432         PR target/69015
11433         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
11435 Copyright (C) 2016 Free Software Foundation, Inc.
11437 Copying and distribution of this file, with or without modification,
11438 are permitted in any medium without royalty provided the copyright
11439 notice and this notice are preserved.