Add more subreg offset helpers
[official-gcc.git] / gcc / ChangeLog
blobaa1d22f92d7b19449df3e965e13fe3fa5db91eda
1 2016-11-23  Richard Sandiford  <richard.sandiford@arm.com>
2             Alan Hayward  <alan.hayward@arm.com>
3             David Sherwood  <david.sherwood@arm.com>
5         * rtl.h (subreg_size_offset_from_lsb): Declare.
6         (subreg_offset_from_lsb): New function.
7         (subreg_size_lowpart_offset): Declare.
8         (subreg_lowpart_offset): Turn into an inline function.
9         (subreg_size_highpart_offset): Declare.
10         (subreg_highpart_offset): Turn into an inline function.
11         * emit-rtl.c (subreg_size_lowpart_offset): New function.
12         (subreg_size_highpart_offset): Likewise
13         * rtlanal.c (subreg_size_offset_from_lsb): Likewise.
15 2016-11-23  Richard Biener  <rguenther@suse.de>
17         PR tree-optimization/78482
18         * tree-cfgcleanup.c: Include tree-ssa-loop-niter.h.
19         (remove_forwarder_block_with_phi): When merging with a loop
20         header creates a new latch reset number of iteration information
21         of the loop.
23 2016-11-23  Eric Botcazou  <ebotcazou@adacore.com>
25         * config/sparc/sparc.md (*ashrsi3_extend): Rename to...
26         (*ashrsi3_extend0): ...this.  Accept constant integers.
27         (*ashrsi3_extend2): Rename to...
28         (*ashrsi3_extend1): ...this.
29         (*ashrsi3_extend2): New pattern.
30         (*lshrsi3_extend1): Accept constant integers.
31         (*lshrsi3_extend2): Fix condition on operand 2.
33 2016-11-23  Martin Liska  <mliska@suse.cz>
35         * config/i386/i386.c: Initialize function pointer to NULL.
37 2016-11-23  Bin Cheng  <bin.cheng@arm.com>
39         * fold-const.c (fold_cond_expr_with_comparison): Move simplification
40         for A == C1 ? A : C2 to below.
41         * match.pd: Move from above to here:
42         (cond (eq (convert1? x) c1) (convert2? x) c2)
43           -> (cond (eq x c1) c1 c2).
45 2016-11-23  Bin Cheng  <bin.cheng@arm.com>
47         * fold-const.c (fold_cond_expr_with_comparison): Move simplification
48         for A cmp C1 ? A : C2 to below, also simplify remaining code.
49         * match.pd: Move and extend simplification from above to here:
50         (cond (cmp (convert1? x) c1) (convert2? x) c2) -> (minmax (x c)).
51         * tree-if-conv.c (ifcvt_follow_ssa_use_edges): New func.
52         (predicate_scalar_phi): Call fold_stmt using the new valueize func.
54 2016-11-23  Martin Liska  <mliska@suse.cz>
55             Martin Jambor  <mjambor@suse.cz>
57         * doc/install.texi: Remove entry about --with-hsa-kmt-lib.
59 2016-11-23  Aldy Hernandez  <aldyh@redhat.com>
61         PR target/78213
62         * opts.c (finish_options): Set -fsyntax-only if running self
63         tests.
65 2016-11-23  Richard Biener  <rguenther@suse.de>
67         PR middle-end/71762
68         * match.pd ((~X & Y) -> X < Y, (X & ~Y) -> Y < X,
69         (~X | Y) -> X <= Y, (X | ~Y) -> Y <= X): Remove.
71 2016-11-23  Richard Biener  <rguenther@suse.de>
73         PR lto/78472
74         * tree.c (gimple_canonical_types_compatible_p): Ignore zero-sized
75         fields.
77 2016-11-23  Richard Biener  <rguenther@suse.de>
78             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.rog>
80         PR tree-optimization/78154
81         * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Return true if function
82         returns it's argument and the argument is nonnull.
83         * builtin-attrs.def: Define ATTR_RETURNS_NONNULL,
84         ATT_RETNONNULL_NOTHROW_LEAF.
85         * builtins.def (BUILT_IN_MEMPCPY): Change attribute to
86         ATTR_RETNONNULL_NOTHROW_LEAF.
87         (BUILT_IN_STPCPY): Likewise.
88         (BUILT_IN_STPNCPY): Likewise.
89         (BUILT_IN_MEMPCPY_CHK): Likewise.
90         (BUILT_IN_STPCPY_CHK): Likewise.
91         (BUILT_IN_STPNCPY_CHK): Likewise.
92         (BUILT_IN_STRCAT): Change attribute to ATTR_RET1_NOTHROW_NONNULL_LEAF.
93         (BUILT_IN_STRNCAT): Likewise.
94         (BUILT_IN_STRNCPY): Likewise.
95         (BUILT_IN_MEMSET_CHK): Likewise.
96         (BUILT_IN_STRCAT_CHK): Likewise.
97         (BUILT_IN_STRCPY_CHK): Likewise.
98         (BUILT_IN_STRNCAT_CHK): Likewise.
99         (BUILT_IN_STRNCPY_CHK): Likewise.
101 2016-11-23  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
103         * fold-const.c (tree_expr_nonzero_p) : Make non-static.
104         * fold-const.h (tree_expr_nonzero_p) : Declare.
105         * match.pd (cmp (mult:c @0 @1) (mult:c @2 @1) : New Pattern.
107 2016-11-23  Paolo Bonzini  <bonzini@gnu.org>
109         * system.h (HAVE_DESIGNATED_INITIALIZERS,
110         HAVE_DESIGNATED_UNION_INITIALIZERS): Do not use
111         "defined" in macros.
112         * doc/cpp.texi (Defined): Mention -Wexpansion-to-defined.
113         * doc/cppopts.texi (Invocation): Document -Wexpansion-to-defined.
114         * doc/invoke.texi (Warning Options): Document -Wexpansion-to-defined.
116 2016-11-23  Georg-Johann Lay  <avr@gjlay.de>
118         PR target/60300
119         * config/avr/constraints.md (Csp): Widen range to [-11..6].
120         * config/avr/avr.c (avr_prologue_setup_frame): Limit number
121         of RCALLs in prologue to 3.
123 2016-11-22  Michael Collison  <michael.collison@arm.com>
125         * config/aarch64/aarch64-protos.h
126         (aarch64_and_split_imm1, aarch64_and_split_imm2)
127         (aarch64_and_bitmask_imm): New prototypes
128         * config/aarch64/aarch64.c (aarch64_and_split_imm1):
129         New overloaded function to create bit mask covering the
130         lowest to highest bits set.
131         (aarch64_and_split_imm2): New overloaded functions to create bit
132         mask of zeros between first and last bit set.
133         (aarch64_and_bitmask_imm): New function to determine if a integer
134         is a valid two instruction "and" operation.
135         * config/aarch64/aarch64.md:(and<mode>3): New define_insn and _split
136         allowing wider range of constants with "and" operations.
137         * (ior<mode>3, xor<mode>3): Use new LOGICAL2 iterator to prevent
138         "and" operator from matching restricted constant range used for
139         ior and xor operators.
140         * config/aarch64/constraints.md (UsO constraint): New SImode constraint
141         for constants in "and" operantions.
142         (UsP constraint): New DImode constraint for constants in "and" operations.
143         * config/aarch64/iterators.md (lconst2): New mode iterator.
144         (LOGICAL2): New code iterator.
145         * config/aarch64/predicates.md (aarch64_logical_and_immediate): New
146         predicate
147         (aarch64_logical_and_operand): New predicate allowing extended constants
148         for "and" operations.
150 2016-11-22  Walter Lee  <walt@tilera.com>
152         * config/tilegx/tilegx.md (trap): New pattern.
153         * config/tilepro/tilepro.md (trap): Likewise.
155 2016-11-22  Walter Lee  <walt@tilera.com>
157         * config/tilegx/tilegx.md (*zero_extract): Use
158         define_insn_and_split instead of define_insn; Handle pos + size >
159         64.
160         (*sign_extract): Likewise.
162 2016-11-22  Marek Polacek  <polacek@redhat.com>
164         PR tree-optimization/78455
165         * tree-ssa-uninit.c (can_chain_union_be_invalidated_p): Fix typo.
167 2016-11-22  Ian Lance Taylor  <iant@golang.org>
169         PR go/78431
170         PR go/78432
171         * godump.c (go_format_type): Always pass alignment as 1 when
172         calling go_append_padding at end of struct/union.
174 2016-11-22  Jakub Jelinek  <jakub@redhat.com>
176         PR target/78451
177         * config/i386/avx512bwintrin.h (_mm512_setzero_qi,
178         _mm512_setzero_hi): Removed.
179         (_mm512_maskz_mov_epi16, _mm512_maskz_loadu_epi16,
180         _mm512_maskz_mov_epi8, _mm512_maskz_loadu_epi8,
181         _mm512_maskz_broadcastb_epi8, _mm512_maskz_set1_epi8,
182         _mm512_maskz_broadcastw_epi16, _mm512_maskz_set1_epi16,
183         _mm512_mulhrs_epi16, _mm512_maskz_mulhrs_epi16, _mm512_mulhi_epi16,
184         _mm512_maskz_mulhi_epi16, _mm512_mulhi_epu16,
185         _mm512_maskz_mulhi_epu16, _mm512_maskz_mullo_epi16,
186         _mm512_cvtepi8_epi16, _mm512_maskz_cvtepi8_epi16, _mm512_cvtepu8_epi16,
187         _mm512_maskz_cvtepu8_epi16, _mm512_permutexvar_epi16,
188         _mm512_maskz_permutexvar_epi16, _mm512_avg_epu8, _mm512_maskz_avg_epu8,
189         _mm512_maskz_add_epi8, _mm512_maskz_sub_epi8, _mm512_avg_epu16,
190         _mm512_maskz_avg_epu16, _mm512_subs_epi8, _mm512_maskz_subs_epi8,
191         _mm512_subs_epu8, _mm512_maskz_subs_epu8, _mm512_adds_epi8,
192         _mm512_maskz_adds_epi8, _mm512_adds_epu8, _mm512_maskz_adds_epu8,
193         _mm512_maskz_sub_epi16, _mm512_subs_epi16, _mm512_maskz_subs_epi16,
194         _mm512_subs_epu16, _mm512_maskz_subs_epu16, _mm512_maskz_add_epi16,
195         _mm512_adds_epi16, _mm512_maskz_adds_epi16, _mm512_adds_epu16,
196         _mm512_maskz_adds_epu16, _mm512_srl_epi16, _mm512_maskz_srl_epi16,
197         _mm512_packs_epi16, _mm512_sll_epi16, _mm512_maskz_sll_epi16,
198         _mm512_maddubs_epi16, _mm512_maskz_maddubs_epi16, _mm512_unpackhi_epi8,
199         _mm512_maskz_unpackhi_epi8, _mm512_unpackhi_epi16,
200         _mm512_maskz_unpackhi_epi16, _mm512_unpacklo_epi8,
201         _mm512_maskz_unpacklo_epi8, _mm512_unpacklo_epi16,
202         _mm512_maskz_unpacklo_epi16, _mm512_shuffle_epi8,
203         _mm512_maskz_shuffle_epi8, _mm512_min_epu16, _mm512_maskz_min_epu16,
204         _mm512_min_epi16, _mm512_maskz_min_epi16, _mm512_max_epu8,
205         _mm512_maskz_max_epu8, _mm512_max_epi8, _mm512_maskz_max_epi8,
206         _mm512_min_epu8, _mm512_maskz_min_epu8, _mm512_min_epi8,
207         _mm512_maskz_min_epi8, _mm512_max_epi16, _mm512_maskz_max_epi16,
208         _mm512_max_epu16, _mm512_maskz_max_epu16, _mm512_sra_epi16,
209         _mm512_maskz_sra_epi16, _mm512_srav_epi16, _mm512_maskz_srav_epi16,
210         _mm512_srlv_epi16, _mm512_maskz_srlv_epi16, _mm512_sllv_epi16,
211         _mm512_maskz_sllv_epi16, _mm512_maskz_packs_epi16, _mm512_packus_epi16,
212         _mm512_maskz_packus_epi16, _mm512_abs_epi8, _mm512_maskz_abs_epi8,
213         _mm512_abs_epi16, _mm512_maskz_abs_epi16, _mm512_dbsad_epu8,
214         _mm512_maskz_dbsad_epu8, _mm512_srli_epi16, _mm512_maskz_srli_epi16,
215         _mm512_slli_epi16, _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
216         _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
217         _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
218         _mm512_maskz_srai_epi16, _mm512_packs_epi32,
219         _mm512_maskz_packs_epi32, _mm512_packus_epi32,
220         _mm512_maskz_packus_epi32): Use _mm512_setzero_si512 instead of
221         _mm512_setzero_qi or _mm512_setzero_hi.
222         (_mm512_maskz_alignr_epi8, _mm512_dbsad_epu8,
223         _mm512_maskz_dbsad_epu8): Formatting fixes.
224         (_mm512_srli_epi16, _mm512_maskz_srli_epi16, _mm512_slli_epi16,
225         _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
226         _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
227         _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
228         _mm512_maskz_srai_epi16): Use _mm512_setzero_si512 instead of
229         _mm512_setzero_qi or _mm512_setzero_hi.
231 2016-11-22  Nathan Sidwell  <nathan@acm.org>
233         * gcc-ar.c (main): Fix indentation.
234         * gcov-io.c (gcov_write_summary): Remove extraneous {...}
235         * ggc-page.c (move_ptes_to_front): Fix formatting.
236         * hsa-dump.c (dump_has_cfun): Fix indentation.
237         * sel-sched-ir.h: Remove trailing blank lines.
239 2016-11-22  Jakub Jelinek  <jakub@redhat.com>
240             Alexander Monakov  <amonakov@ispras.ru>
242         * internal-fn.c (expand_GOMP_USE_SIMT): New function.
243         * tree.c (omp_clause_num_ops): OMP_CLAUSE__SIMT_ has 0 operands.
244         (omp_clause_code_name): Add _simt_ name.
245         (walk_tree_1): Handle OMP_CLAUSE__SIMT_.
246         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SIMT_.
247         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__SIMT_.
248         (scan_omp_simd): New function.
249         (scan_omp_1_stmt): Use it in target regions if needed.
250         (omp_max_vf): Don't max with omp_max_simt_vf.
251         (lower_rec_simd_input_clauses): Use omp_max_simt_vf if
252         OMP_CLAUSE__SIMT_ is present.
253         (lower_rec_input_clauses): Compute maybe_simt from presence of
254         OMP_CLAUSE__SIMT_.
255         (lower_lastprivate_clauses): Likewise.
256         (expand_omp_simd): Likewise.  Remove explicit offloaded region check.
257         (execute_omp_device_lower): Lower IFN_GOMP_USE_SIMT.
258         * internal-fn.def (GOMP_USE_SIMT): New internal function.
259         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__SIMT_.
261 2016-11-22  Alexander Monakov  <amonakov@ispras.ru>
263         * internal-fn.c (expand_GOMP_SIMT_LANE): New.
264         (expand_GOMP_SIMT_VF): New.
265         (expand_GOMP_SIMT_LAST_LANE): New.
266         (expand_GOMP_SIMT_ORDERED_PRED): New.
267         (expand_GOMP_SIMT_VOTE_ANY): New.
268         (expand_GOMP_SIMT_XCHG_BFLY): New.
269         (expand_GOMP_SIMT_XCHG_IDX): New.
270         * internal-fn.def (GOMP_SIMT_LANE): New.
271         (GOMP_SIMT_VF): New.
272         (GOMP_SIMT_LAST_LANE): New.
273         (GOMP_SIMT_ORDERED_PRED): New.
274         (GOMP_SIMT_VOTE_ANY): New.
275         (GOMP_SIMT_XCHG_BFLY): New.
276         (GOMP_SIMT_XCHG_IDX): New.
277         * omp-low.c (omp_maybe_offloaded_ctx): New, outlined from...
278         (create_omp_child_function): ...here.  Set "omp target entrypoint"
279         or "omp declare target" attribute based on is_gimple_omp_offloaded.
280         (omp_max_simt_vf): New.  Use it...
281         (omp_max_vf): ...here.
282         (lower_rec_input_clauses): Add reduction lowering for SIMT execution.
283         (lower_lastprivate_clauses): Likewise, for "lastprivate" lowering.
284         (lower_omp_ordered): Likewise, for "ordered" lowering.
285         (expand_omp_simd): Add SIMT transforms.
286         (pass_data_lower_omp): Add PROP_gimple_lomp_dev.
287         (execute_omp_device_lower): New.
288         (pass_data_omp_device_lower): New.
289         (pass_omp_device_lower): New pass.
290         (make_pass_omp_device_lower): New.
291         * passes.def (pass_omp_device_lower): Position new pass.
292         * tree-pass.h (PROP_gimple_lomp_dev): Define.
293         (make_pass_omp_device_lower): Declare.
295 2016-11-22  Jakub Jelinek  <jakub@redhat.com>
297         PR target/78451
298         * config/i386/avx512vlintrin.h (_mm_setzero_di): Removed.
299         (_mm_maskz_mov_epi64): Use _mm_setzero_si128 instead of
300         _mm_setzero_di.
301         (_mm_maskz_load_epi64): Likewise.
302         (_mm_setzero_hi): Removed.
303         (_mm_maskz_loadu_epi64): Use _mm_setzero_si128 instead of
304         _mm_setzero_di.
305         (_mm_abs_epi64, _mm_maskz_abs_epi64, _mm_maskz_srl_epi64,
306         _mm_maskz_unpackhi_epi64, _mm_maskz_unpacklo_epi64,
307         _mm_maskz_compress_epi64, _mm_srav_epi64, _mm_maskz_srav_epi64,
308         _mm_maskz_sllv_epi64, _mm_maskz_srlv_epi64, _mm_rolv_epi64,
309         _mm_maskz_rolv_epi64, _mm_rorv_epi64, _mm_maskz_rorv_epi64,
310         _mm_min_epi64, _mm_max_epi64, _mm_max_epu64, _mm_min_epu64,
311         _mm_lzcnt_epi64, _mm_maskz_lzcnt_epi64, _mm_conflict_epi64,
312         _mm_maskz_conflict_epi64, _mm_sra_epi64, _mm_maskz_sra_epi64,
313         _mm_maskz_sll_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
314         _mm_ror_epi64, _mm_maskz_ror_epi64, _mm_alignr_epi64,
315         _mm_maskz_alignr_epi64, _mm_srai_epi64, _mm_maskz_slli_epi64):
316         Likewise.
317         (_mm_cvtepi32_epi8, _mm256_cvtepi32_epi8, _mm_cvtsepi32_epi8,
318         _mm256_cvtsepi32_epi8, _mm_cvtusepi32_epi8, _mm256_cvtusepi32_epi8,
319         _mm_cvtepi32_epi16, _mm256_cvtepi32_epi16, _mm_cvtsepi32_epi16,
320         _mm256_cvtsepi32_epi16, _mm_cvtusepi32_epi16, _mm256_cvtusepi32_epi16,
321         _mm_cvtepi64_epi8, _mm256_cvtepi64_epi8, _mm_cvtsepi64_epi8,
322         _mm256_cvtsepi64_epi8, _mm_cvtusepi64_epi8, _mm256_cvtusepi64_epi8,
323         _mm_cvtepi64_epi16, _mm256_cvtepi64_epi16, _mm_cvtsepi64_epi16,
324         _mm256_cvtsepi64_epi16, _mm_cvtusepi64_epi16, _mm256_cvtusepi64_epi16,
325         _mm_cvtepi64_epi32, _mm256_cvtepi64_epi32, _mm_cvtsepi64_epi32,
326         _mm256_cvtsepi64_epi32, _mm_cvtusepi64_epi32, _mm256_cvtusepi64_epi32,
327         _mm_maskz_set1_epi32, _mm_maskz_set1_epi64): Formatting fixes.
328         (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
329         instead of _mm_setzero_hi.
330         (_mm256_permutex_pd, _mm256_maskz_permutex_epi64, _mm256_insertf32x4,
331         _mm256_maskz_insertf32x4, _mm256_inserti32x4, _mm256_maskz_inserti32x4,
332         _mm256_extractf32x4_ps, _mm256_maskz_extractf32x4_ps,
333         _mm256_shuffle_i32x4, _mm256_maskz_shuffle_i32x4, _mm256_shuffle_f64x2,
334         _mm256_maskz_shuffle_f64x2, _mm256_shuffle_f32x4,
335         _mm256_maskz_shuffle_f32x4, _mm256_maskz_shuffle_pd,
336         _mm_maskz_shuffle_pd, _mm256_maskz_shuffle_ps, _mm_maskz_shuffle_ps,
337         _mm256_maskz_srli_epi32, _mm_maskz_srli_epi32, _mm_maskz_srli_epi64,
338         _mm256_mask_slli_epi32, _mm256_maskz_slli_epi32, _mm256_mask_slli_epi64,
339         _mm256_maskz_slli_epi64, _mm256_roundscale_ps,
340         _mm256_maskz_roundscale_ps, _mm256_roundscale_pd,
341         _mm256_maskz_roundscale_pd, _mm_roundscale_ps, _mm_maskz_roundscale_ps,
342         _mm_roundscale_pd, _mm_maskz_roundscale_pd, _mm256_getmant_ps,
343         _mm256_maskz_getmant_ps, _mm_getmant_ps, _mm_maskz_getmant_ps,
344         _mm256_getmant_pd, _mm256_maskz_getmant_pd, _mm_getmant_pd,
345         _mm_maskz_getmant_pd, _mm256_maskz_shuffle_epi32,
346         _mm_maskz_shuffle_epi32, _mm256_rol_epi32, _mm256_maskz_rol_epi32,
347         _mm_rol_epi32, _mm_maskz_rol_epi32, _mm256_ror_epi32,
348         _mm256_maskz_ror_epi32, _mm_ror_epi32, _mm_maskz_ror_epi32,
349         _mm_maskz_alignr_epi32, _mm_maskz_alignr_epi64,
350         _mm256_maskz_srai_epi32, _mm_maskz_srai_epi32, _mm_srai_epi64,
351         _mm_maskz_srai_epi64, _mm256_maskz_permutex_pd,
352         _mm256_maskz_permute_pd, _mm256_maskz_permute_ps, _mm_maskz_permute_pd,
353         _mm_maskz_permute_ps, _mm256_permutexvar_ps): Formatting fixes.
354         (_mm_maskz_slli_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
355         _mm_ror_epi64, _mm_maskz_ror_epi64): Use _mm_setzero_si128 instead of
356         _mm_setzero_di.
357         (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
358         instead of _mm_setzero_hi.
359         * config/i386/avx512dqintrin.h (_mm512_broadcast_f64x2,
360         _mm512_broadcast_i64x2, _mm512_broadcast_f32x2, _mm512_broadcast_i32x2,
361         _mm512_broadcast_f32x8, _mm512_broadcast_i32x8): Formatting fixes.
362         (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
363         _mm_setzero_si128 instead of _mm_setzero_di.
364         (_mm512_cvtt_roundpd_epi64, _mm512_mask_cvtt_roundpd_epi64,
365         _mm512_maskz_cvtt_roundpd_epi64, _mm512_cvtt_roundpd_epu64,
366         _mm512_mask_cvtt_roundpd_epu64, _mm512_maskz_cvtt_roundpd_epu64,
367         _mm512_cvtt_roundps_epi64, _mm512_mask_cvtt_roundps_epi64,
368         _mm512_maskz_cvtt_roundps_epi64, _mm512_cvtt_roundps_epu64,
369         _mm512_mask_cvtt_roundps_epu64, _mm512_maskz_cvtt_roundps_epu64,
370         _mm512_cvt_roundpd_epi64, _mm512_mask_cvt_roundpd_epi64,
371         _mm512_maskz_cvt_roundpd_epi64, _mm512_cvt_roundpd_epu64,
372         _mm512_mask_cvt_roundpd_epu64, _mm512_maskz_cvt_roundpd_epu64,
373         _mm512_cvt_roundps_epi64, _mm512_mask_cvt_roundps_epi64,
374         _mm512_maskz_cvt_roundps_epi64, _mm512_cvt_roundps_epu64,
375         _mm512_mask_cvt_roundps_epu64, _mm512_maskz_cvt_roundps_epu64,
376         _mm512_cvt_roundepi64_ps, _mm512_mask_cvt_roundepi64_ps,
377         _mm512_maskz_cvt_roundepi64_ps, _mm512_cvt_roundepu64_ps,
378         _mm512_mask_cvt_roundepu64_ps, _mm512_maskz_cvt_roundepu64_ps,
379         _mm512_cvt_roundepi64_pd, _mm512_mask_cvt_roundepi64_pd,
380         _mm512_maskz_cvt_roundepi64_pd, _mm512_cvt_roundepu64_pd,
381         _mm512_mask_cvt_roundepu64_pd, _mm512_maskz_cvt_roundepu64_pd,
382         _mm512_reduce_pd, _mm512_maskz_reduce_pd, _mm512_reduce_ps,
383         _mm512_maskz_reduce_ps, _mm512_extractf32x8_ps,
384         _mm512_maskz_extractf32x8_ps, _mm512_extractf64x2_pd,
385         _mm512_maskz_extractf64x2_pd, _mm512_extracti32x8_epi32,
386         _mm512_maskz_extracti32x8_epi32, _mm512_range_pd,
387         _mm512_maskz_range_pd, _mm512_range_ps, _mm512_maskz_range_ps,
388         _mm512_range_round_pd, _mm512_maskz_range_round_pd,
389         _mm512_range_round_ps, _mm512_maskz_range_round_ps,
390         _mm512_maskz_insertf64x2, _mm512_insertf32x8,
391         _mm512_maskz_insertf32x8): Formatting fixes.
392         (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
393         _mm_setzero_si128 instead of _mm_setzero_di.
394         * config/i386/avx512vldqintrin.h (_mm_cvttpd_epi64,
395         _mm_cvttpd_epu64, _mm_cvtpd_epi64, _mm_cvtpd_epu64,
396         _mm_cvttps_epi64, _mm_maskz_cvttps_epi64, _mm_cvttps_epu64,
397         _mm_maskz_cvttps_epu64, _mm_maskz_mullo_epi64, _mm_cvtps_epi64,
398         _mm_maskz_cvtps_epi64, _mm_cvtps_epu64, _mm_maskz_cvtps_epu64,
399         _mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64): Use
400         _mm_setzero_si128 instead of _mm_setzero_di.
401         (_mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64):
402         Likewise in macros.
403         * config/i386/avx512vlbwintrin.h (_mm_maskz_mov_epi8,
404         _mm_maskz_loadu_epi16, _mm_maskz_mov_epi16, _mm_maskz_loadu_epi8,
405         _mm_permutexvar_epi16, _mm_maskz_maddubs_epi16): Use
406         _mm_setzero_si128 instead of _mm_setzero_hi.
407         (_mm_maskz_min_epu16, _mm_maskz_max_epu8, _mm_maskz_max_epi8,
408         _mm_maskz_min_epu8, _mm_maskz_min_epi8, _mm_maskz_max_epi16,
409         _mm_maskz_max_epu16, _mm_maskz_min_epi16): Use _mm_setzero_si128
410         instead of _mm_setzero_di.
411         (_mm_dbsad_epu8, _mm_maskz_shufflehi_epi16,
412         _mm_maskz_shufflelo_epi16): Use _mm_setzero_si128 instead of
413         _mm_setzero_hi.
414         (_mm_maskz_shufflehi_epi16, _mm_maskz_shufflelo_epi16,
415         _mm_maskz_slli_epi16): Use _mm_setzero_si128 instead of
416         _mm_setzero_hi.
417         (_mm_maskz_alignr_epi8): Use _mm_setzero_si128 instead of
418         _mm_setzero_di.
419         (_mm_maskz_mulhi_epi16, _mm_maskz_mulhi_epu16, _mm_maskz_mulhrs_epi16,
420         _mm_maskz_mullo_epi16, _mm_srav_epi16, _mm_srlv_epi16,
421         _mm_sllv_epi16): Use _mm_setzero_si128 instead of _mm_setzero_hi.
423 2016-11-22  Carl Love  <cel@us.ibm.com>
425         * config/rs6000/rs6000-c.c: Add built-in support for vector compare
426         equal and vector compare not equal.  The vector compares take two
427         arguments of type vector bool char, vector bool short, vector bool int,
428         vector bool long long with the same return type.
429         * doc/extend.texi: Update built-in documentation file for the new
430         powerpc built-ins.
432 2016-11-22  Uros Bizjak  <ubizjak@gmail.com>
434         * Makefile.in ($(lang_checks_parallelized)): Fix detection
435         of -j argument.
437 2016-11-22  Thomas Preud'homme  <thomas.preudhomme@arm.com>
439         * config.gcc: Allow new rmprofile value for configure option
440         --with-multilib-list.
441         * config/arm/t-rmprofile: New file.
442         * doc/install.texi (--with-multilib-list): Document new rmprofile value
443         for ARM.
445 2016-11-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
447         PR target/78439
448         * config/arm/vfp.md (*movdi_vfp_cortexa8): Use 'q' constraints for the
449         register operand in alternatives 4,5,6.
451 2016-11-22  Thomas Preud'homme  <thomas.preudhomme@arm.com>
453         PR target/77904
454         * config/arm/arm.c (thumb1_compute_save_reg_mask): Mark frame pointer
455         in save register mask if it is needed.
457 2016-11-22  Jakub Jelinek  <jakub@redhat.com>
459         PR tree-optimization/78436
460         * gimple-ssa-store-merging.c (zero_char_buf): Removed.
461         (shift_bytes_in_array, shift_bytes_in_array_right,
462         merged_store_group::apply_stores): Formatting fixes.
463         (clear_bit_region): Likewise.  Use memset.
464         (encode_tree_to_bitpos): Formatting fixes.  Fix comment typos - EPXR
465         instead of EXPR and inerted instead of inserted.  Use memset instead
466         of zero_char_buf.  For !BYTES_BIG_ENDIAN decrease byte_size by 1
467         if shift_amnt is 0.
469         PR middle-end/78416
470         * expmed.c (expand_divmod): Use wide_int for computation of
471         op1_is_pow2.  Don't set it if op1 is 0.  Formatting fixes.
472         Use size <= HOST_BITS_PER_WIDE_INT instead of
473         HOST_BITS_PER_WIDE_INT >= size.
475         PR tree-optimization/78445
476         * tree-if-conv.c (tree_if_conversion): If any_pred_load_store or
477         any_complicated_phi, version loop even if flag_tree_loop_if_convert
478         is 1.  Formatting fix.
480 2016-11-22  Martin Liska  <mliska@suse.cz>
482         PR ipa/78309
483         * ipa-icf.c (void sem_item::set_hash): Update m_hash_set.
484         (sem_function::get_hash): Use the new field.
485         (sem_function::parse): Remove an argument from ctor.
486         (sem_variable::parse): Likewise.
487         (sem_variable::get_hash): Use the new field.
488         (sem_item_optimizer::read_section): Use new ctor and set hash.
489         * ipa-icf.h: _hash is removed from sem_item::sem_item,
490         sem_variable::sem_variable, sem_function::sem_function.
492 2016-11-21  Jeff Law  <law@redhat.com>
494         PR target/68538
495         * config/cris/cris.md: Don't call copy_to_mode_reg unless
496         can_create_pseudo_p is true.
498 2016-11-21  Segher Boessenkool  <segher@kernel.crashing.org>
500         PR target/68803
501         * config/rs6000/rs6000.md (*rotlsi3_insert_5, *rotldi3_insert_6,
502         *rotldi3_insert_7): New define_insns.
504 2016-11-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
506         * config/rs6000/rs6000.md (movdi_internal32): Change constraints
507         so that DImode can be allocated to FP/vector registers in more
508         cases, and we can avoid direct move operations.  If the register
509         needs reloading, prefer GPRs over FP/vector registers.  In the
510         case of FPR vs. Altivec registers, prefer FPR registers unless we
511         have the ISA 3.0 reg+offset scalar instructions.
512         (movdi_internal64): Likewise.
514 2016-11-21  Jakub Jelinek  <jakub@redhat.com>
516         PR middle-end/67335
517         * omp-simd-clone.c (simd_clone_adjust_argument_types): Use NULL prefix
518         for tmp simd array if DECL_NAME (parm) is NULL.
520 2016-11-20  Jeff Law  <law@redhat.com>
522         PR target/25128
523         * config/m68k/predicates.md (swap_peephole_relational_operator): New
524         predicate.
525         * config/m68k/m68k.md (relational tests against 65535/65536): New
526         peephole2.
528 2016-11-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
530         * tree-ssa-loop-prefetch.c: Delete FIXME after the includes.
532 2016-11-21  Martin Sebor  <msebor@redhat.com>
534         * doc/invoke.texi (-fprintf-return-value): Document that option
535         is enabled by default.
537 2016-11-21  Georg-Johann Lay  <avr@gjlay.de>
539         * config/avr/avr-c.c (avr_register_target_pragmas): Use C++
540         for-loop declaration of loop variable.
541         (avr_register_target_pragmas, avr_cpu_cpp_builtins): Same.
542         * config/avr/avr.c (avr_popcount_each_byte)
543         (avr_init_expanders, avr_regs_to_save, sequent_regs_live)
544         (get_sequence_length, avr_prologue_setup_frame, avr_map_metric)
545         (avr_expand_epilogue, avr_function_arg_advance)
546         (avr_out_compare, avr_out_plus_1, avr_out_bitop, avr_out_fract)
547         (avr_rotate_bytes, _reg_unused_after, avr_assemble_integer)
548         (avr_adjust_reg_alloc_order, output_reload_in_const)
549         (avr_conditional_register_usage, avr_find_unused_d_reg)
550         (avr_map_decompose, avr_fold_builtin): Same.
552 2016-11-21  Georg-Johann Lay  <avr@gjlay.de>
554         * config/avr/avr.c (avr_popcount): Remove static function.
555         (avr_popcount_each_byte, avr_out_bitop): Use popcount_hwi instead.
557 2016-11-21  Richard Earnshaw  <rearnsha@arm.com>
559         * arm.opt (mapcs-float): Delete option.
560         * arm.c (arm_option_override): Remove hunk relating to
561         TARGET_APCS_FLOAT.
562         * doc/invoke.texi (arm options): Remove documentation for -mapcs-float.
564 2016-11-21  Richard Sandiford  <richard.sandiford@arm.com>
566         * tree-tailcall.c (process_assignment): Simplify the check for
567         a valid copy, allowing the source to be a local variable as
568         well as an SSA name.
569         (find_tail_calls): Allow copies between local variables to follow
570         the call.  Allow the result to be stored in any local variable,
571         even if it's an aggregate.
572         (eliminate_tail_call): Check whether the result is an SSA name
573         before updating its SSA_NAME_DEF_STMT.
575 2016-11-21  David Malcolm  <dmalcolm@redhat.com>
577         PR preprocessor/78324
578         * input.c (get_substring_ranges_for_loc): Fail gracefully if
579         -ftrack-macro-expansion has a value other than 2.
581 2016-11-21  Segher Boessenkool  <segher@kernel.crashing.org>
583         PR rtl-optimization/78400
584         * shrink-wrap.c (try_shrink_wrapping_separate): Call
585         df_update_entry_exit_and_calls instead of df_update_entry_block_defs
586         and df_update_exit_block_uses.
588 2016-11-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
590         PR c++/71973
591         * doc/invoke.texi (-Wno-builtin-declaration-mismatch): Document the
592         new default-enabled warning..
593         * builtin-types.def (BT_CONST_TM_PTR): New primitive type.
594         (BT_PTR_CONST_STRING): Updated.
595         (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR): Removed.
596         (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_TM_PTR): New function type.
597         * builtins.def (DEF_TM_BUILTIN): Disable BOTH_P for TM builtins.
598         (strftime): Update builtin function.
599         * tree-core.h (TI_CONST_TM_PTR_TYPE): New enum value.
600         * tree.h (const_tm_ptr_type_node): New type node.
601         * tree.c (free_lang_data, build_common_tree_nodes): Initialize
602         const_tm_ptr_type_node.
604 2016-11-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
606         PR tree-optimization/78413
607         * tree-if-conv.c (versionable_outer_loop_p): Require that both
608         inner and outer loop latches have single predecessors.
610 2016-11-21  Georg-Johann Lay  <avr@gjlay.de>
612         PR target/78093
613         * config/avr/avr.c (avr_decl_maybe_lds_p): New static function.
614         (avr_encode_section_info) [TARGET_ABSDATA && AVR_TINY]: Use it.
616 2016-11-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
618         * rtl.h: Adjust prototype.
619         * rtlanal.c (dead_or_set_p): Change argument type to rtx_insn *.
620         (dead_or_set_regno_p): Likewise.
622 2016-11-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
624         * rtl.h: Adjust prototype.
625         * rtlanal.c (add_int_reg_note): Change argument type to rtx_insn *.
627 2016-11-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
629         * function.c (contains): Change argument type to rtx_insn *.
630         (prologue_contains): Likewise.
631         (epilogue_contains): Likewise.
632         (prologue_epilogue_contains): Likewise.
633         * function.h: Adjust prototype.
635 2016-11-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
637         * optabs.c (emit_libcall_block): Change argument type to
638         rtx_insn *.
639         * optabs.h: Adjust prototype.
641 2016-11-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
643         * cfgrtl.c (delete_insn): Change argument type to rtx_insn *.
644         (fixup_reorder_chain): Adjust.
645         * cfgrtl.h: Adjust prototype.
647 2016-11-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
649         * rtl.h: Adjust prototype.
650         * rtlanal.c (replace_label_in_insn): Change argument type to
651         rtx_insn *.
653 2016-11-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
655         * config/v850/v850.c (expand_prologue): Adjust.
656         (expand_epilogue): Likewise.
657         * expr.c (init_expr_target): Likewise.
658         * genrecog.c (print_subroutine): Always make the argument type
659         rtx_insn *.
660         * recog.h: Adjust prototype.
662 2016-11-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
664         * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): split
665         up variables to make some rtx_insn *.
666         * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
667         * config/arc/arc.c: Likewise.
668         * config/arm/arm.c: Likewise.
669         * config/mn10300/mn10300.c (mn10300_legitimize_pic_address): Likewise.
670         * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue):
671         Likewise.
672         * config/spu/spu.c (spu_emit_branch_hint): Likewise.
674 2016-11-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
676         * config/arm/arm.c (legitimize_pic_address): Change to use
677         rtx_insn * as the type of variables.
678         (arm_pic_static_addr): Likewise.
679         (arm_emit_movpair): Likewise.
680         * config/c6x/c6x.c (reorg_split_calls): Likewise.
681         * config/darwin.c (machopic_legitimize_pic_address): Likewise.
682         * config/frv/frv.c (frv_optimize_membar_local): Likewise.
683         * config/frv/frv.md: Likewise.
684         * config/i386/i386-protos.h: Likewise.
685         * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
686         (ix86_split_fp_branch): Likewise.
687         (predict_jump): Likewise.
688         * config/ia64/ia64.c: Likewise.
689         * config/mcore/mcore.c: Likewise.
690         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
691         * config/s390/s390.c: Likewise.
692         * config/s390/s390.md: Likewise.
693         * config/spu/spu.md: Likewise.
694         * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise.
695         * lower-subreg.c (resolve_simple_move): Likewise.
697 2016-11-20  Jeff Law  <law@redhat.com>
699         PR target/48551
700         * reload.h (struct target_reload): Make x_double_reg_address_ok
701         be per-mode rather.
702         * reload.c (find_reloads_address): Check if double_reg_address_ok
703         is true for the mode of the memory reference.
704         * reload1.c (init_reload): Initialize double_reg_address_ok for
705         each mode.
707 2016-11-20  Aldy Hernandez  <aldyh@redhat.com>
709         PR middle-end/61409
710         * tree-ssa-uninit.c: Define new global max_phi_args.
711         (compute_uninit_opnds_pos): Use max_phi_args.
712         (prune_uninit_phi_opnds): Same.
713         (use_pred_not_overlap_with_undef_path_pred): Remove reference to
714         missing NUM_PREDS in function comment.
715         (can_one_predicate_be_invalidated_p): New.
716         (can_chain_union_be_invalidated_p): New.
717         (flatten_out_predicate_chains): New.
718         (uninit_ops_invalidate_phi_use): New.
719         (is_use_properly_guarded): Call uninit_ops_invalidate_phi_use.
721 2016-11-20  Marc Glisse  <marc.glisse@inria.fr>
723         * fold-const.c (fold_comparison): Ignore EXACT_DIV_EXPR.
724         * match.pd (A /[ex] B CMP C): New simplifications.
726 2016-11-20  Marc Glisse  <marc.glisse@inria.fr>
728         * match.pd (0 / X, X / X, X % X): New simplifications.
730 2016-11-19  Jakub Jelinek  <jakub@redhat.com>
732         * config/i386/i386.c (ix86_can_inline_p): Use || instead of &
733         when checking if callee's isa flags are subset of caller's isa flags.
734         Fix comment wording.
736         * config/i386/i386.c (ix86_valid_target_attribute_tree): Don't
737         clear opts->x_ix86_isa_flags, clear opts->x_ix86_isa_flags2
738         instead and using = 0 instead of &= 0.
740         * config/i386/i386.c (def_builtin, def_builtin2, def_builtin_const2,
741         ix86_add_new_builtins): Formatting fixes.
742         (ix86_expand_builtin): Use || instead of && for isa vs. isa2.
743         (ix86_get_builtin): Likewise.
745         * config/i386/i386.c (ix86_expand_builtin): Remove msk_mov variable,
746         don't initialize it, don't use it for the case where it isn't
747         provable %{z} nor using the same argument, instead move merge
748         argument into a new pseudo and use that as target.  Formatting fixes.
750 2016-11-19  Jeff Law  <law@redhat.com>
752         PR target/25111
753         * config/m68k/m68k.md (bsetdreg): New pattern.
754         (bchgdreg, bclrdreg): Likewise.
756 2016-11-19  Kaz Kojima  <kkojima@gcc.gnu.org>
758         PR target/78426
759         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Use copy_to_mode_reg
760         instead of force_reg.
761         (sh_expand_setmem): Likewise.
763 2016-11-19  Krister Walfridsson  <krister.walfridsson@gmail.com>
765         * config.gcc (*-*-netbsd): Set use_gcc_stdint=wrap.
767 2016-11-18  Walter Lee  <walt@tilera.com>
769         * config/tilegx/tilegx.c (tilegx_gen_bundles): Preserve
770           end-of-bundle marker for consecutive barriers.
772 2016-11-18  Walter Lee  <walt@tilera.com>
774         * config/tilegx/tilegx.md (clzsi2): Fix for big-endian.
776 2016-11-18  Jakub Jelinek  <jakub@redhat.com>
778         PR middle-end/78419
779         * multiple_target.c (get_attr_len): Start with argnum and increment
780         argnum on every arg.  Use strchr in a loop instead of counting commas
781         manually.
782         (get_attr_str): Increment argnum for every comma in the string.
783         (separate_attrs): Use for instead of while loop, simplify.
784         (expand_target_clones): Rename defenition argument to definition.
785         Free attrs and attr_str even when diagnosing errors.  Temporarily
786         change input_location around targetm.target_option.valid_attribute_p
787         calls.  Don't emit warning or errors if that function fails.
789         * dwarf2out.c (size_of_discr_list): Fix typo in function comment.
791         PR debug/78191
792         * dwarf2out.c (abbrev_opt_base_type_end): New variable.
793         (die_abbrev_cmp): Sort dies with die_abbrev smaller than
794         abbrev_opt_base_type_end only by increasing die_abbrev, before
795         any other dies.
796         (optimize_abbrev_table): Don't change abbrev numbers of
797         base types and CU or optimize implicit consts in them if
798         calc_base_type_die_sizes has been called during build_abbrev_table.
799         (calc_base_type_die_sizes): If abbrev_opt_start, set
800         abbrev_opt_base_type_end to one plus largest base type's die_abbrev.
802 2016-11-18  Jeff Law  <law@redhat.com>
804         PR target/25112
805         * config/m68k/m68k.c (moveq feeding equality comparison): New
806         peepholes.
807         * config/m68k/predicates.md (addq_subq_operand): New predicate.
808         (equality_comparison_operator): Likewise.
810 2016-11-18  Richard Sandiford  <richard.sandiford@arm.com>
812         * rtlanal.c (load_extend_op): Move to...
813         * rtl.h: ...here and make inline.
815 2016-11-18  Terry Guo  <terry.guo@arm.com>
816             Thomas Preud'homme  <thomas.preudhomme@arm.com>
818         * common/config/arm/arm-common.c (arm_target_thumb_only): New function.
819         * config/arm/arm-opts.h: Include arm-flags.h.
820         (struct arm_arch_core_flag): Define.
821         (arm_arch_core_flags): Define.
822         * config/arm/arm-protos.h: Include arm-flags.h
823         (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M, FL_MODE26, FL_MODE32,
824         FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED, FL_STRONG, FL_ARCH5E,
825         FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF, FL_ARCH6K, FL_THUMB2, FL_NOTM,
826         FL_THUMB_DIV, FL_VFPV3, FL_NEON, FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV,
827         FL_ARCH8, FL_CRC32, FL_SMALLMUL, FL_NO_VOLATILE_CE, FL_IWMMXT,
828         FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1, FL2_ARCH8_2, FL2_FP16INST,
829         FL_TUNE, FL_FOR_ARCH2, FL_FOR_ARCH3, FL_FOR_ARCH3M, FL_FOR_ARCH4,
830         FL_FOR_ARCH4T, FL_FOR_ARCH5, FL_FOR_ARCH5T, FL_FOR_ARCH5E,
831         FL_FOR_ARCH5TE, FL_FOR_ARCH5TEJ, FL_FOR_ARCH6, FL_FOR_ARCH6J,
832         FL_FOR_ARCH6K, FL_FOR_ARCH6Z, FL_FOR_ARCH6ZK, FL_FOR_ARCH6KZ,
833         FL_FOR_ARCH6T2, FL_FOR_ARCH6M, FL_FOR_ARCH7, FL_FOR_ARCH7A,
834         FL_FOR_ARCH7VE, FL_FOR_ARCH7R, FL_FOR_ARCH7M, FL_FOR_ARCH7EM,
835         FL_FOR_ARCH8A, FL2_FOR_ARCH8_1A, FL2_FOR_ARCH8_2A, FL_FOR_ARCH8M_BASE,
836         FL_FOR_ARCH8M_MAIN, arm_feature_set, ARM_FSET_MAKE,
837         ARM_FSET_MAKE_CPU1, ARM_FSET_MAKE_CPU2, ARM_FSET_CPU1, ARM_FSET_CPU2,
838         ARM_FSET_EMPTY, ARM_FSET_ANY, ARM_FSET_HAS_CPU1, ARM_FSET_HAS_CPU2,
839         ARM_FSET_HAS_CPU, ARM_FSET_ADD_CPU1, ARM_FSET_ADD_CPU2,
840         ARM_FSET_DEL_CPU1, ARM_FSET_DEL_CPU2, ARM_FSET_UNION, ARM_FSET_INTER,
841         ARM_FSET_XOR, ARM_FSET_EXCLUDE, ARM_FSET_IS_EMPTY,
842         ARM_FSET_CPU_SUBSET): Move to ...
843         * config/arm/arm-flags.h: This new file.
844         * config/arm/arm.h (TARGET_MODE_SPEC_FUNCTIONS): Define.
845         (EXTRA_SPEC_FUNCTIONS): Add TARGET_MODE_SPEC_FUNCTIONS to its value.
846         (TARGET_MODE_SPECS): Define.
847         (DRIVER_SELF_SPECS): Add TARGET_MODE_SPECS to its value.
849 2016-11-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
851         * config/arm/arm-protos.h (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M,
852         FL_MODE26, FL_MODE32, FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED,
853         FL_STRONG, FL_ARCH5E, FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF,
854         FL_ARCH6K, FL_THUMB2, FL_NOTM, FL_THUMB_DIV, FL_VFPV3, FL_NEON,
855         FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV, FL_ARCH8, FL_CRC32, FL_SMALLMUL,
856         FL_NO_VOLATILE_CE, FL_IWMMXT, FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1,
857         FL2_ARCH8_2, FL2_FP16INST): Reindent comment, add final dot when
858         missing and make value unsigned.
859         (arm_feature_set): Use unsigned entries instead of unsigned long.
861 2016-11-18  Dominik Vogt  <vogt@linux.vnet.ibm.com>
863         Re-apply after PR bootstrap/77359 is fixed:
864         2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
866         * explow.c (get_dynamic_stack_size): Take known alignment of stack
867         pointer + STACK_DYNAMIC_OFFSET into account when calculating the
868         size needed.
870 2016-11-18  Dominik Vogt  <vogt@linux.vnet.ibm.com>
872         PR bootstrap/77359
873         * config/rs6000/rs6000.c (rs6000_stack_info): Properly align local
874         variables in functions calling alloca.  Also update the ASCII
875         drawings.
876         * config/rs6000/rs6000.h (STARTING_FRAME_OFFSET)
877         (STACK_DYNAMIC_OFFSET): Likewise.
878         * config/rs6000/aix.h (STARTING_FRAME_OFFSET)
879         (STACK_DYNAMIC_OFFSET): Copy AIX specific versions of the rs6000.h
880         macros to aix.h.
882 2016-11-18  Richard Sandiford  <richard.sandiford@arm.com>
883             Alan Hayward  <alan.hayward@arm.com>
884             David Sherwood  <david.sherwood@arm.com>
886         * combine.c (try_combine): Use rtx_mode_t instead of std::make_pair.
887         * dwarf2out.c (mem_loc_descriptor, loc_descriptor): Likewise.
888         (add_const_value_attribute): Likewise.
889         * explow.c (plus_constant): Likewise.
890         * expmed.c (expand_mult, make_tree): Likewise.
891         * expr.c (convert_modes): Likewise.
892         * loop-doloop.c (doloop_optimize): Likewise.
893         * postreload.c (reload_cse_simplify_set): Likewise.
894         * simplify-rtx.c (simplify_const_unary_operation): Likewise
895         (simplify_binary_operation_1, simplify_const_binary_operation):
896         Likewise.
897         (simplify_const_relational_operation, simplify_immed_subreg): Likewise.
898         * wide-int.h: Update documentation to recommend rtx_mode_t
899         instead of std::make_pair.
901 2016-11-18  Richard Sandiford  <richard.sandiford@arm.com>
902             Alan Hayward  <alan.hayward@arm.com>
903             David Sherwood  <david.sherwood@arm.com>
905         * tree.h (SET_DECL_MODE): New macro.
906         * cfgexpand.c (avoid_deep_ter_for_debug): Use SET_DECL_MODE.
907         (expand_gimple_basic_block): Likewise.
908         * function.c (split_complex_args): Likeise.
909         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
910         * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Likewise.
911         * stor-layout.c (layout_decl, relayout_decl): Likewise.
912         (finish_bitfield_representative): Likewise.
913         * tree.c (make_node_stat): Likewise.
914         * tree-inline.c (remap_ssa_name): Likewise.
915         (tree_function_versioning): Likewise.
916         * tree-into-ssa.c (rewrite_debug_stmt_uses): Likewise.
917         * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
918         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
919         * tree-ssa-loop-ivopts.c (remove_unused_ivs): Likewise.
920         * tree-ssa.c (insert_debug_temp_for_var_def): Likewise.
921         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
922         * varasm.c (make_debug_expr_from_rtl): Likewise.
924 2016-11-18  Segher Boessenkool  <segher@kernel.crashing.org>
926         PR rtl-optimization/71785
927         * bb-reorder.c (maybe_duplicate_computed_goto): New function.
928         (duplicate_computed_gotos): New function.
929         (pass_duplicate_computed_gotos::execute): Rewrite.
931 2016-11-17  Jeff Law  <law@redhat.com>
933         PR target/47192
934         * config/m68k/m68k.c (m68k_expand_epilogue): Emit a scheduling
935         barrier prior to deallocating the stack.
937 2016-11-17  Andrew Burgess  <andrew.burgess@embecosm.com>
939         * config/arc/arc.md (cmem bit/sign-extend peephole2): New peephole
940         to make better use of cmem loads in the case where a single bit is
941         being accessed.
942         * config/arc/predicates.md (ge_lt_comparison_operator): New predicate.
944 2016-11-17  Andrew Senkevich <andrew.senkevich@intel.com>
946         * config/i386/i386.c (processor_features): Add F_AVX5124VNNIW,
947         F_AVX5124FMAPS.
948         (isa_names_table): Handle new features.
950 2016-11-17  Kirill Yukhin  <kirill.yukhin@gmail.com>
951             Andrew Senkevich <andrew.senkevich@intel.com>
953         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX5124FMAPS_SET,
954         OPTION_MASK_ISA_AVX5124FMAPS_UNSET, OPTION_MASK_ISA_AVX5124VNNIW_SET,
955         OPTION_MASK_ISA_AVX5124VNNIW_UNSET): New.
956         (ix86_handle_option): Handle OPT_mavx5124fmaps, OPT_mavx5124vnniw.
957         * config.gcc: Add avx5124fmapsintrin.h, avx5124vnniwintrin.h.
958         * config/i386/avx5124fmapsintrin.h: New file.
959         * config/i386/avx5124vnniwintrin.h: Ditto.
960         * config/i386/constraints.md (h): New constraint.
961         * config/i386/cpuid.h (bit_AVX5124VNNIW, bit_AVX5124FMAPS): New.
962         * config/i386/driver-i386.c (host_detect_local_cpu):
963         Detect avx5124fmaps, avx5124vnniw.
964         * config/i386/i386-builtin-types.def: Add types
965         V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF_V16SF_UHI,
966         V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF,
967         V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF,
968         V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF_V4SF_UQI,
969         V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI,
970         V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI_V16SI_UHI.
971         * config/i386/i386-builtin.def (__builtin_ia32_4fmaddps_mask,
972         __builtin_ia32_4fmaddps, __builtin_ia32_4fmaddss,
973         __builtin_ia32_4fmaddss_mask, __builtin_ia32_4fnmaddps_mask,
974         __builtin_ia32_4fnmaddps, __builtin_ia32_4fnmaddss,
975         __builtin_ia32_4fnmaddss_mask, __builtin_ia32_vp4dpwssd,
976         __builtin_ia32_vp4dpwssd_mask, __builtin_ia32_vp4dpwssds,
977         __builtin_ia32_vp4dpwssds_mask): New.
978         * config/i386/i386-c.c (ix86_target_macros_internal):
979         Define __AVX5124FMAPS__, __AVX5124VNNIW__.
980         * config/i386/i386-modes.def: Fixed comment typos, added new
981         modes (VECTOR_MODES (FLOAT, 256), VECTOR_MODE (INT, SI, 64)).
982         * config/i386/i386.c (ix86_target_string): Add -mavx5124fmaps,
983         -mavx5124vnniw.
984         (PTA_AVX5124FMAPS, PTA_AVX5124VNNIW): Define.
985         (ix86_option_override_internal): Handle new options.
986         (ix86_valid_target_attribute_inner_p): Add avx5124fmaps,
987         avx5124vnniw.
988         (ix86_expand_builtin): Handle new builtins.
989         (ix86_additional_allocno_class_p): New.
990         * config/i386/i386.h (TARGET_AVX5124FMAPS, TARGET_AVX5124FMAPS_P,
991         TARGET_AVX5124VNNIW, TARGET_AVX5124VNNIW_P): Define.
992         (reg_class): Add MOD4_SSE_REGS.
993         (MOD4_SSE_REG_P, MOD4_SSE_REGNO_P): New.
994         * config/i386/i386.opt: Add mavx5124fmaps, mavx5124vnniw.
995         * config/i386/immintrin.h: Include avx5124fmapsintrin.h,
996         avx5124vnniwintrin.h.
997         * config/i386/sse.md (unspec): Add UNSPEC_VP4FMADD, UNSPEC_VP4FNMADD,
998         UNSPEC_VP4DPWSSD, UNSPEC_VP4DPWSSDS.
999         (define_mode_iterator IMOD4): New.
1000         (define_mode_attr imod4_narrow): Ditto.
1001         (define_insn "mov<mode>"): Ditto.
1002         (define_insn "avx5124fmaddps_4fmaddps"): Ditto.
1003         (define_insn "avx5124fmaddps_4fmaddps_mask"): Ditto.
1004         (define_insn "avx5124fmaddps_4fmaddps_maskz"): Ditto.
1005         (define_insn "avx5124fmaddps_4fmaddss"): Ditto.
1006         (define_insn "avx5124fmaddps_4fmaddss_mask"): Ditto.
1007         (define_insn "avx5124fmaddps_4fmaddss_maskz"): Ditto.
1008         (define_insn "avx5124fmaddps_4fnmaddps"): Ditto.
1009         (define_insn "avx5124fmaddps_4fnmaddps_mask"): Ditto.
1010         (define_insn "avx5124fmaddps_4fnmaddps_maskz"): Ditto.
1011         (define_insn "avx5124fmaddps_4fnmaddss"): Ditto.
1012         (define_insn "avx5124fmaddps_4fnmaddss_mask"): Ditto.
1013         (define_insn "avx5124fmaddps_4fnmaddss_maskz"): Ditto.
1014         (define_insn "avx5124vnniw_vp4dpwssd"): Ditto.
1015         (define_insn "avx5124vnniw_vp4dpwssd_mask"): Ditto.
1016         (define_insn "avx5124vnniw_vp4dpwssd_maskz"): Ditto.
1017         (define_insn "avx5124vnniw_vp4dpwssds"): Ditto.
1018         (define_insn "avx5124vnniw_vp4dpwssds_mask"): Ditto.
1019         (define_insn "avx5124vnniw_vp4dpwssds_maskz"): Ditto.
1020         * init-regs.c (initialize_uninitialized_regs): Add emit_clobber call.
1021         * genmodes.c (mode_size_inline): Extend return type.
1022         * machmode.h (mode_size, mode_base_align): Extend type.
1024 2016-11-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
1026         PR target/78101
1027         * config/rs6000/predicates.md (fusion_addis_mem_combo_load): Add
1028         the appropriate checks for SFmode/DFmode load/stores in GPR
1029         registers.
1030         (fusion_addis_mem_combo_store): Likewise.
1031         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Rename
1032         fusion_fpr_* to fusion_vsx_* and add in support for ISA 3.0 scalar
1033         d-form instructions for traditional Altivec registers.
1034         (emit_fusion_p9_load): Likewise.
1035         (emit_fusion_p9_store): Likewise.
1036         * config/rs6000/rs6000.md (p9 fusion store peephole2): Remove
1037         early clobber from scratch register.  Do not match if the register
1038         being stored is the scratch register.
1039         (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_load): Rename fusion_fpr_*
1040         to fusion_vsx_* and add in support for ISA 3.0 scalar d-form
1041         instructions for traditional Altivec registers.
1042         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
1043         (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
1044         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
1046 2016-11-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1048         PR target/77933
1049         * config/arm/arm.c (thumb1_expand_prologue): Distinguish between lr
1050         being live in the function and lr needing to be saved.  Distinguish
1051         between already saved pushable registers and registers to push.
1052         Check for LR being an available pushable register.
1054 2016-11-17  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
1056         * config/i386/i386.md (cmpstrnsi): New test to bail out if neither
1057         string input is a string constant.
1058         * builtins.c (expand_builtin_strncmp): Attempt expansion of strncmp
1059         via cmpstrnsi even if neither string is constant.
1061 2016-11-17  Jakub Jelinek  <jakub@redhat.com>
1063         PR middle-end/78201
1064         * varasm.c (default_use_anchors_for_symbol_p): Fix a comment typo.
1065         Don't test decl != NULL.  Don't look at DECL_SIZE, but DECL_SIZE_UNIT
1066         instead, return false if it is NULL, or doesn't fit into uhwi, or
1067         is larger or equal to targetm.max_anchor_offset.
1069 2016-11-17  Pip Cet  <pipcet@gmail.com>
1070             Eric Botcazou  <ebotcazou@adacore.com>
1072         PR rtl-optimization/78355
1073         * doc/tm.texi.in (SLOW_UNALIGNED_ACCESS): Document that the macro only
1074         needs to deal with unaligned accesses.
1075         * doc/tm.texi: Regenerate.
1076         * lra-constraints.c (simplify_operand_subreg): Only invoke
1077         SLOW_UNALIGNED_ACCESS on innermode if the MEM is not aligned enough.
1079 2016-11-17  David Malcolm  <dmalcolm@redhat.com>
1081         * input.c (selftest::test_lexer_string_locations_long_line): New
1082         function.
1083         (selftest::test_lexer_string_locations_raw_string_multiline): New
1084         function.
1085         (selftest::input_c_tests): Call the new functions, via
1086         for_each_line_table_case.
1088 2016-11-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1090         * config/aarch64/aarch64.md (mov<mode>): Call
1091         aarch64_split_dimode_const_store on DImode constant stores.
1092         * config/aarch64/aarch64-protos.h (aarch64_split_dimode_const_store):
1093         New prototype.
1094         * config/aarch64/aarch64.c (aarch64_split_dimode_const_store): New
1095         function.
1097 2016-11-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1098             Richard Biener  <rguenther@suse.de>
1100         PR tree-optimization/77848
1101         * tree-if-conv.c (tree_if_conversion): Always version loops unless
1102         the user specified -ftree-loop-if-convert.
1104 2016-11-17  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1106         PR target/77308
1107         * config/arm/arm.md (*thumb2_ldrd, *thumb2_ldrd_base,
1108         *thumb2_ldrd_base_neg, *thumb2_strd, *thumb2_strd_base,
1109         *thumb2_strd_base_neg): Recognize insn regardless of
1110         current_tune->prefer_ldrd_strd.
1111         * config/arm/ldrdstrd.md: Enable all ldrd/strd peephole rules
1112         whenever possible.
1114 2016-11-17  Claudiu Zissulescu  <claziss@synopsys.com>
1116         * config/arc/arc.c (arc_ccfsm_post_advance): Handle return
1117         instruction type.
1119 2016-11-17  Claudiu Zissulescu  <claziss@synopsys.com>
1121         * config/arc/arc-arches.def: Add FPX quarkse instruction as valid
1122         for arcem.
1123         * config/arc/arc-c.def (__ARC_FPX_QUARK__): Define.
1124         * config/arc/arc-cpus.def (quarkse_em): Add.
1125         * config/arc/arc-options.def (FL_FPX_QUARK, FL_QUARK): Likewise.
1126         * config/arc/arc-opts.h (FPX_QK): Define.
1127         * config/arc/arc-tables.opt: Regenerate.
1128         * config/arc/arc.c (gen_compare_reg): Change.
1129         (arc_register_move_cost): Avoid Dy,Dx moves.
1130         * config/arc/arc.h (TARGET_HARD_FLOAT): Change.
1131         (TARGET_FPX_QUARK, TARGET_FP_ASSIST): Define.
1132         * config/arc/arc.md (divsf3, sqrtsf2, fix_truncsfsi2, floatsisf2):
1133         New expands.
1134         * config/arc/fpu.md (divsf3_fpu, sqrtsf2_fpu, floatsisf2_fpu)
1135         (fix_truncsfsi2_fpu): Rename.
1136         * config/arc/fpx.md (cmp_quark, cmpsf_quark_, cmpsf_quark_ord)
1137         (cmpsf_quark_uneq, cmpsf_quark_eq, divsf3_quark, sqrtsf2_quark)
1138         (fix_truncsfsi2_quark, floatsisf2_quark): New patterns.
1139         * config/arc/t-multilib: Regenerate.
1141 2016-11-17  Georg-Johann Lay  <avr@gjlay.de>
1143         * config/avr/avr.c (avr_print_operand_address): Use CONST_INT_P if
1144         appropriate.
1145         (ashlqi3_out, ashlsi3_out, ashrqi3_out, ashrhi3_out): Same.
1146         (ashrsi3_out, lshrqi3_out, lshrhi3_out, lshrsi3_out): Same.
1147         (avr_rtx_costs_1, extra_constraint_Q): Same.
1148         (avr_address_cost): Use SUBREG_P if possible.
1150 2016-11-17  Richard Biener  <rguenther@suse.de>
1152         PR middle-end/78383
1153         * tree-cfgcleanup.c (cleanup_control_flow_bb): Do not turn
1154         non-local goto into CFG.
1156 2016-11-17  Richard Biener  <rguenther@suse.de>
1158         * common.opt (ftree-loop-if-convert-stores): Mark as preserved for
1159         backward compatibility.
1160         * doc/invoke.texi (ftree-loop-if-convert-stores): Remove.
1161         * tree-if-conv.c (pass_if_conversion::gate): Do not test
1162         flag_tree_loop_if_convert_stores.
1163         (pass_if_conversion::execute): Likewise.
1165 2016-11-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1167         * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): Check for
1168         const_double code before calling aarch64_float_const_zero_rtx_p.
1170 2016-11-17  Richard Biener  <rguenther@suse.de>
1172         PR tree-optimization/78306
1173         * ipa-inline-analysis.c (initialize_inline_failed): Do not
1174         inhibit inlining if function calls cilk_spawn.
1175         (can_inline_edge_p): Likewise.
1177 2016-11-17  Richard Biener  <rguenther@suse.de>
1179         PR middle-end/78305
1180         * fold-const.c (negate_expr_p): Fix multiplication case.
1182 2016-11-17  Chung-Lin Tang  <cltang@codesourcery.com>
1184         PR target/78357
1185         * config/nios2/nios2.c (nios2_init_libfuncs): Remove TARGET_LINUX_ABI
1186         condition.
1187         (TARGET_INIT_LIBFUNCS): Delete definition and...
1188         * config/nios2/linux.h (TARGET_INIT_LIBFUNCS): ...move to here, add
1189         comments.
1191 2016-11-17  Krister Walfridsson  <krister.walfridsson@gmail.com>
1193         * config/netbsd-stdint.h: New.
1194         * config.gcc (i[34567]86-*-netbsd): Add netbsd-stdint.h to tm_file.
1195         (x86_64-*-netbsd*): Likewise.
1197 2016-11-16  Andrew PInski  <apinski@cavium.com>
1199         * config/aarch64/aarch64.opt (mverbose-cost-dump): New option.
1200         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
1201         flag_aarch64_verbose_cost instead of checking for details dump.
1202         (aarch64_rtx_costs_wrapper): Likewise.
1204 2016-11-16  Jakub Jelinek  <jakub@redhat.com>
1206         PR rtl-optimization/78378
1207         * combine.c (make_extraction): Use force_to_mode for non-{REG,MEM}
1208         inner only if pos is 0.  Fix up formatting.
1210 2016-11-17  Alan Modra  <amodra@gmail.com>
1212         PR rtl-optimization/78325
1213         PR rtl-optimization/70890
1214         * ira.c (combine_and_move_insns): Only remove REG_EQUIV notes
1215         for dead regno.
1217 2016-11-16  Jason Merrill  <jason@redhat.com>
1219         * rtl.h: Declare gt_ggc_mx and gt_pch_nx.
1221 2016-11-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1222             Richard Biener  <rguenther@suse.de>
1224         PR tree-optimization/77848
1225         * tree-if-conv.c (version_loop_for_if_conversion): When versioning
1226         an outer loop, only save basic block aux information for the inner
1227         loop.
1228         (versionable_outer_loop_p): New function.
1229         (tree_if_conversion): Version the outer loop instead of the inner
1230         one if the pattern will be recognized for outer-loop
1231         vectorization.
1233 2016-11-16  Andrew Burgess  <andrew.burgess@embecosm.com>
1235         * gcc/bb-reorder.c: Remove 'toplev.h' include.
1236         (pass_partition_blocks::gate): No longer check
1237         user_defined_section_attribute, instead check the function decl
1238         for a section attribute.
1239         * gcc/c-family/c-attribs.c (handle_section_attribute): No longer
1240         set user_defined_section_attribute.
1241         * gcc/final.c (rest_of_handle_final): Likewise.
1242         * gcc/toplev.c: Remove definition of user_defined_section_attribute.
1243         * gcc/toplev.h: Remove declaration of
1244         user_defined_section_attribute.
1246 2016-11-16  Maciej W. Rozycki  <macro@imgtec.com>
1248         * config/mips/mips.md (casesi_internal_mips16_<mode>):
1249         Explicitly switch between JR and JRC for the table jump.  Adjust
1250         instruction count.
1252 2016-11-16  Maciej W. Rozycki  <macro@imgtec.com>
1254         * config/mips/mips.md (casesi_internal_mips16_<mode>): Set
1255         `insn_count' to 11 rather than 16.
1257 2016-11-16  Maciej W. Rozycki  <macro@imgtec.com>
1259         * config/mips/mips.md (casesi_internal_mips16_<mode>): Use the
1260         `ltu' rather than `leu' operation in the RTL pattern
1262 2016-11-16  Maciej W. Rozycki  <macro@imgtec.com>
1264         * config/mips/mips.md (casesi_internal_mips16_<mode>): Add
1265         missing <d> instruction prefixes throughout.  Correct
1266         formatting.
1268 2016-11-16  Maciej W. Rozycki  <macro@imgtec.com>
1270         * config/mips/mips.c (mips_output_jump): Output R_MICROMIPS_JALR
1271         rather than R_MIPS_JALR relocation in microMIPS code.  Do not
1272         cancel short delay slots in PIC call relaxation.
1274 2016-11-16  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1276         * config/arm/arm.md (arm_addsi3): Add alternative for addition of
1277         general register with general register or ARM constant into SP
1278         register.
1280 2016-11-16  Jakub Jelinek  <jakub@redhat.com>
1282         PR fortran/78299
1283         * omp-low.c (expand_omp_for_static_nochunk): Don't assert
1284         that loop->header == body_bb if broken_loop.
1286 2015-11-16  Wilco Dijkstra  <wdijkstr@arm.com>
1288         * tree-ssa-math-opts.c (bswap_replace): Remove test
1289         of SLOW_UNALIGNED_ACCESS.
1291 2016-11-16  Alexander Monakov  <amonakov@ispras.ru>
1293         * config/nvptx/mkoffload.c (main): Check that either OpenACC or OpenMP
1294         is selected.  Pass -mgomp to offload compiler in OpenMP case.
1295         * config/nvptx/nvptx-protos.h (nvptx_shuffle_kind): Move enum
1296         declaration from nvptx.c.
1297         (nvptx_gen_shuffle): Declare.
1298         (nvptx_output_set_softstack): Declare.
1299         * config/nvptx/nvptx.c (nvptx_shuffle_kind): Move to nvptx-protos.h.
1300         (need_softstack_decl): New variable.
1301         (need_unisimt_decl): New variable.
1302         (diagnose_openacc_conflict): New.  Use it...
1303         (nvptx_option_override): ...here.  Handle TARGET_GOMP.
1304         (nvptx_encode_section_info): Handle "shared" attribute.
1305         (write_as_kernel): Restrict to OpenACC target regions.
1306         (init_softstack_frame): New.
1307         (nvptx_init_unisimt_predicate): New.
1308         (write_omp_entry): New.  Use it...
1309         (nvptx_declare_function_name): ...here to emit OpenMP target region
1310         entrypoints.  Handle TARGET_SOFT_STACK.  Call
1311         nvptx_init_unisimt_predicate.
1312         (nvptx_output_set_softstack): New.
1313         (nvptx_get_drap_rtx): Return %argp as the DRAP if needed.
1314         (nvptx_gen_shuffle): Export.
1315         (nvptx_output_call_insn): Handle COND_EXEC patterns.  Emit instruction
1316         predicate.
1317         (nvptx_print_operand): Fix handling of instruction predicates.
1318         (nvptx_get_unisimt_master): New helper function.
1319         (nvptx_get_unisimt_predicate): Ditto.
1320         (nvptx_call_insn_is_syscall_p): Ditto.
1321         (nvptx_unisimt_handle_set): Ditto.
1322         (nvptx_reorg_uniform_simt): New.  Transform code for -muniform-simt.
1323         (nvptx_reorg): Call nvptx_reorg_uniform_simt.
1324         (nvptx_handle_shared_attribute): New.  Use it...
1325         (nvptx_attribute_table): ... here (new entry).
1326         (nvptx_record_offload_symbol): Handle NULL attributes.
1327         (nvptx_file_end): Handle need_softstack_decl and need_unisimt_decl.
1328         (nvptx_simt_vf): New.
1329         (TARGET_SIMT_VF): Define.
1330         * config/nvptx/nvptx.h (TARGET_CPU_CPP_BUILTINS): Define
1331         __nvptx_softstack or __nvptx_unisimt__ when -msoft-stack, or resp.
1332         -muniform-simt option is active.
1333         (STACK_SIZE_MODE): Define.
1334         (FIXED_REGISTERS): Adjust.
1335         (SOFTSTACK_SLOT_REGNUM): New.
1336         (SOFTSTACK_PREV_REGNUM): New.
1337         (REGISTER_NAMES): Adjust.
1338         (struct machine_function): New fields.
1339         * config/nvptx/nvptx.md (UNSPEC_SET_SOFTSTACK): New.
1340         (UNSPEC_VOTE_BALLOT): Ditto.
1341         (UNSPEC_LANEID): Ditto.
1342         (UNSPECV_NOUNROLL): Ditto.
1343         (atomic): New attribute.
1344         (predicable): New attribute.  Generate predicated forms via
1345         define_cond_exec.
1346         (br_true): Mark as not predicable.
1347         (br_false): Ditto.
1348         (br_true_uni): Ditto.
1349         (br_false_uni): Ditto.
1350         (return): Ditto.
1351         (trap_if_true): Ditto.
1352         (trap_if_false): Ditto.
1353         (nvptx_fork): Ditto.
1354         (nvptx_forked): Ditto.
1355         (nvptx_joining): Ditto.
1356         (nvptx_join): Ditto.
1357         (nvptx_barsync): Ditto.
1358         (epilogue): Emit stack restore if TARGET_SOFT_STACK.
1359         (allocate_stack): Implement for TARGET_SOFT_STACK.  Remove unused code.
1360         (allocate_stack_<mode>): Remove unused pattern.
1361         (set_softstack_insn): New pattern.
1362         (restore_stack_block): Handle for TARGET_SOFT_STACK.
1363         (nvptx_vote_ballot): New pattern.
1364         (omp_simt_lane): Ditto.
1365         (omp_simt_last_lane): Ditto.
1366         (omp_simt_ordered): Ditto.
1367         (omp_simt_vote_any): Ditto.
1368         (omp_simt_xchg_bfly): Ditto.
1369         (omp_simt_xchg_idx): Ditto.
1370         (nvptx_nounroll): Ditto.
1371         (atomic_compare_and_swap<mode>_1): Mark with atomic attribute.
1372         (atomic_exchange<mode>): Ditto.
1373         (atomic_fetch_add<mode>): Ditto.
1374         (atomic_fetch_addsf): Ditto.
1375         (atomic_fetch_<logic><mode>): Ditto.
1376         * config/nvptx/nvptx.opt (msoft-stack): New option.
1377         (muniform-simt): Ditto.
1378         (mgomp): Ditto.
1379         * config/nvptx/t-nvptx (MULTILIB_OPTIONS): New.
1380         * doc/extend.texi (Nvidia PTX Variable Attributes): New section.
1381         * doc/invoke.texi (msoft-stack): Document.
1382         (muniform-simt): Document
1383         (mgomp): Document.
1384         * doc/tm.texi: Regenerate.
1385         * doc/tm.texi.in (TARGET_SIMT_VF): New hook.
1386         * target.def: Define it.
1387         * target-insns.def (omp_simt_lane): New.
1388         (omp_simt_last_lane): New.
1389         (omp_simt_ordered): New.
1390         (omp_simt_vote_any): New.
1391         (omp_simt_xchg_bfly): New.
1392         (omp_simt_xchg_idx): New.
1394 2016-11-16  Maciej W. Rozycki  <macro@imgtec.com>
1396         * config/mips/mips-protos.h (mips_set_text_contents_type): New
1397         prototype.
1398         * config/mips/mips.h (ASM_OUTPUT_BEFORE_CASE_LABEL): New macro.
1399         (ASM_OUTPUT_CASE_END): Likewise.
1400         * config/mips/mips.c (mips_set_text_contents_type): New function.
1401         (mips16_emit_constants): Record the pool's initial label number
1402         with the `consttable' insn.  Emit a `consttable_end' insn at the end.
1403         (mips_final_prescan_insn): Call `mips_set_text_contents_type'
1404         for `consttable' insns.
1405         (mips_final_postscan_insn): Call `mips_set_text_contents_type'
1406         for `consttable_end' insns.
1407         * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE_END enum value.
1408         (consttable): Add operand.
1409         (consttable_end): New insn.
1411 2016-11-16  Yuri Rumyantsev  <ysrumyan@gmail.com>
1413         * params.def (PARAM_VECT_EPILOGUES_NOMASK): New.
1414         * tree-if-conv.c (tree_if_conversion): Make public.
1415         * * tree-if-conv.h: New file.
1416         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences) Avoid
1417         dynamic alias checks for epilogues.
1418         * tree-vect-loop-manip.c (vect_do_peeling): Return created epilog.
1419         * tree-vect-loop.c: include tree-if-conv.h.
1420         (new_loop_vec_info): Add zeroing orig_loop_info field.
1421         (vect_analyze_loop_2): Don't try to enhance alignment for epilogues.
1422         (vect_analyze_loop): Add argument ORIG_LOOP_INFO which is not NULL
1423         if epilogue is vectorized, set up orig_loop_info field of loop_vinfo
1424         using passed argument.
1425         (vect_transform_loop): Check if created epilogue should be returned
1426         for further vectorization with less vf.  If-convert epilogue if
1427         required. Print vectorization success for epilogue.
1428         * tree-vectorizer.c (vectorize_loops): Add epilogue vectorization
1429         if it is required, pass loop_vinfo produced during vectorization of
1430         loop body to vect_analyze_loop.
1431         * tree-vectorizer.h (struct _loop_vec_info): Add new field
1432         orig_loop_info.
1433         (LOOP_VINFO_ORIG_LOOP_INFO): New.
1434         (LOOP_VINFO_EPILOGUE_P): New.
1435         (LOOP_VINFO_ORIG_VECT_FACTOR): New.
1436         (vect_do_peeling): Change prototype to return epilogue.
1437         (vect_analyze_loop): Add argument of loop_vec_info type.
1438         (vect_transform_loop): Return created loop.
1440 2016-11-16  Segher Boessenkool  <segher@kernel.crashing.org>
1442         * config/rs6000/rs6000.c (rs6000_components_for_bb): Mark the LR
1443         component as used also if LR_REGNO is a live input to the bb.
1444         * df-scan.c (df_get_entry_block_def_set): Return immediately after
1445         clearing the set if DF_SCAN_EMPTY_ENTRY_EXIT is set.
1446         (df_get_exit_block_use_set): Ditto.
1447         * df.h (df_scan_flags): New enum.
1448         * shrink-wrap.c (try_shrink_wrapping_separate): Set
1449         DF_SCAN_EMPTY_ENTRY_EXIT in df_scan->local_flags, and call
1450         df_update_entry_block_defs and df_update_exit_block_uses
1451         at the start; clear the flag and call those functions at the end.
1453 2016-11-16  Richard Sandiford  <richard.sandiford@arm.com>
1454             Alan Hayward  <alan.hayward@arm.com>
1455             David Sherwood  <david.sherwood@arm.com>
1457         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Set
1458         nb_iterations to the number of latch iterations rather than the
1459         number of loop iterations.
1461 2016-11-16  Richard Sandiford  <richard.sandiford@arm.com>
1462             Alan Hayward  <alan.hayward@arm.com>
1463             David Sherwood  <david.sherwood@arm.com>
1465         * combine.c (maybe_swap_commutative_operands): New function.
1466         (combine_simplify_rtx): Use it.
1467         (change_zero_ext): Likewise.
1468         (make_compound_operation_int): New function, split out of...
1469         (make_compound_operation): ...here.  Use
1470         maybe_swap_commutative_operands for both.
1472 2016-11-16  Richard Earnshaw  <rearnsha@arm.com>
1474         * arm/arm-fpus.def (vfpv2): New FPU, currently an alias for 'vfp'.
1475         (neon-vfpv3): New FPU, currently an alias for 'neon'.
1476         * arm/arm-tables.opt: Regenerated.
1477         * arm/t-aprofile (MULTILIB_REUSE): Add reuse rules for vfpv2 and
1478         neon-vfpv3.
1479         * doc/invoke.texi (ARM: -mfpu): Document new options.  Note that 'vfp'
1480         and 'neon' are aliases for specific implementations.
1482 2016-11-16  Richard Sandiford  <richard.sandiford@arm.com>
1483             Alan Hayward  <alan.hayward@arm.com>
1484             David Sherwood  <david.sherwood@arm.com>
1486         * optabs.c (vector_compare_rtx): Add a cmp_mode parameter
1487         and use it in the final call to gen_rtx_fmt_ee.
1488         (expand_vec_cond_expr): Update accordingly.
1489         (expand_vec_cmp_expr): Likewise.
1491 2016-11-16  Richard Sandiford  <richard.sandiford@arm.com>
1492             Alan Hayward  <alan.hayward@arm.com>
1493             David Sherwood  <david.sherwood@arm.com>
1495         * cprop.c (local_cprop_find_used_regs): Use df_read_modify_subreg_p.
1497 2016-11-16  Richard Biener  <rguenther@suse.de>
1499         PR middle-end/78333
1500         * gimplify.c (gimplify_function_tree): Do not instrument
1501         GNU extern inline functions.
1503 2016-11-16  Martin Liska  <mliska@suse.cz>
1505         PR sanitizer/78270
1506         * gimplify.c (gimplify_switch_expr): Always save previous
1507         gimplify_ctxp->live_switch_vars.
1509 2016-11-16  Andrew Burgess  <andrew.burgess@embecosm.com>
1511         * config/arc/arc.md (movb peephole2): New peephole2 to merge two
1512         zero_extract operations to allow a movb to occur.
1513         * testsuite/gcc.target/arc/movb-1.c: Update little endian arc results.
1514         * testsuite/gcc.target/arc/movb-2.c: Likewise.
1515         * testsuite/gcc.target/arc/movb-5.c: Likewise.
1516         * testsuite/gcc.target/arc/movh_cl-1.c: Extend test to cover
1517         little endian arc.
1519 2016-11-16  Richard Sandiford  <richard.sandiford@arm.com>
1520             Alan Hayward  <alan.hayward@arm.com>
1521             David Sherwood  <david.sherwood@arm.com>
1523         * expr.c (emit_group_load_1): Tighten check for whether an
1524         access involves only one operand of a CONCAT.  Use extract_bit_field
1525         for constants if the bit range does span the whole operand.
1527 2016-11-16  Richard Sandiford  <richard.sandiford@arm.com>
1528             Alan Hayward  <alan.hayward@arm.com>
1529             David Sherwood  <david.sherwood@arm.com>
1531         * rtlanal.c (rtx_addr_can_trap_p_1): Handle unknown sizes.
1533 2016-11-16  Richard Sandiford  <richard.sandiford@arm.com>
1534             Alan Hayward  <alan.hayward@arm.com>
1535             David Sherwood  <david.sherwood@arm.com>
1537         * tree-vect-loop.c (vect_transform_loop): Protect the updates of
1538         all three iteration counts with an any_* test.  Use a single update
1539         for each count.  Fix the calculation of nb_iterations_estimate.
1541 2016-11-16  Richard Sandiford  <richard.sandiford@arm.com>
1543         * config/pdp11/pdp11.c: Include dbxout.h.
1545 2016-11-16  Richard Sandiford  <richard.sandiford@arm.com>
1547         * config/arc/arc.c (arc_loop_hazard): Add missing brackets.
1549 2016-11-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1551         PR target/78364
1552         * config/arm/arm.md (*extv_reg): Restrict operands 2 and 3 to the
1553         proper ranges for an SBFX instruction.
1554         (extzv_t2): Likewise for UBFX.
1556 2016-11-16  Richard Biener  <rguenther@suse.de>
1558         PR tree-optimization/78348
1559         * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMMOVE.
1560         (generate_memcpy_builtin): Honor PKIND_MEMCPY on the partition.
1561         (classify_partition): Set PKIND_MEMCPY if dependence analysis
1562         revealed no dependency, PKIND_MEMMOVE otherwise.
1564 2016-11-16  Jakub Jelinek  <jakub@redhat.com>
1566         PR sanitizer/77823
1567         * ubsan.c (ubsan_build_overflow_builtin): Add DATAP argument, if
1568         it points to non-NULL tree, use it instead of ubsan_create_data.
1569         (instrument_si_overflow): Handle vector signed integer overflow
1570         checking.
1571         * ubsan.h (ubsan_build_overflow_builtin): Add DATAP argument.
1572         * tree-vrp.c (simplify_internal_call_using_ranges): Punt for
1573         vector IFN_UBSAN_CHECK_*.
1574         * internal-fn.c (expand_addsub_overflow): Add DATAP argument,
1575         pass it through to ubsan_build_overflow_builtin.
1576         (expand_neg_overflow, expand_mul_overflow): Likewise.
1577         (expand_vector_ubsan_overflow): New function.
1578         (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB,
1579         expand_UBSAN_CHECK_MUL): Use tit for vector arithmetics.
1580         (expand_arith_overflow): Adjust expand_*_overflow callers.
1582 2016-11-16  Matthias Klose  <doko@ubuntu.com>
1584         * doc/install.texi: Remove references to java/libjava.
1586 2016-11-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
1588         * tree-ssa-coalesce.c (register_default_def): Remove
1589         register_ssa_partition.
1590         (create_outofssa_var_map): Likewise.
1591         * tree-ssa-live.c (register_ssa_partition_check): Remove.
1592         * tree-ssa-live.h (register_ssa_partition): Likewise.
1594 2016-11-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1596         * genattrtab.c (attr_rtx_1): Avoid allocating new rtx objects.
1597         Clear ATTR_CURR_SIMPLIFIED_P for re-used binary rtx objects.
1598         Use DEF_ATTR_STRING for string arguments.  Use RTL_HASH for
1599         integer arguments.  Only set ATTR_PERMANENT_P on newly hashed
1600         rtx when all sub-rtx are also permanent.
1601         (attr_eq): Simplify.
1602         (attr_copy_rtx): Remove.
1603         (make_canonical, get_attr_value): Use attr_equal_p.
1604         (copy_boolean): Rehash NOT.
1605         (simplify_test_exp_in_temp,
1606         optimize_attrs): Remove call to attr_copy_rtx.
1607         (attr_alt_intersection, attr_alt_union,
1608         attr_alt_complement, mk_attr_alt): Rehash EQ_ATTR_ALT.
1609         (make_automaton_attrs): Use attr_eq.
1611 2016-11-15  Matthias Klose  <doko@ubuntu.com>
1613         * doc/install.texi: Remove references to java/libjava.
1614         * doc/sourcebuild.texi: Likewise.
1615         * doc/invoke.texi: Likewise.
1616         * doc/standards.texi: Likewise.
1618 2016-11-15  Richard Sandiford  <richard.sandiford@arm.com>
1619             Alan Hayward  <alan.hayward@arm.com>
1620             David Sherwood  <david.sherwood@arm.com>
1622         * config/i386/i386.h (INCOMING_RETURN_ADDR_RTX): Use Pmode instead
1623         of VOIDmode.
1624         * config/ia64/ia64.h (INCOMING_RETURN_ADDR_RTX): Likewise.
1625         * config/iq2000/iq2000.h (INCOMING_RETURN_ADDR_RTX): Likewise.
1626         * config/m68k/m68k.h (INCOMING_RETURN_ADDR_RTX): Likewise.
1627         * config/microblaze/microblaze.h (INCOMING_RETURN_ADDR_RTX): Likewise.
1628         * config/mips/mips.h (INCOMING_RETURN_ADDR_RTX): Likewise.
1629         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Likewise.
1630         * config/nios2/nios2.h (INCOMING_RETURN_ADDR_RTX): Likewise.
1632 2016-11-15  Richard Sandiford  <richard.sandiford@arm.com>
1633             Alan Hayward  <alan.hayward@arm.com>
1634             David Sherwood  <david.sherwood@arm.com>
1636         * dce.c (check_argument_store): Pass the size instead of
1637         the memory reference.
1638         (find_call_stack_args): Pass MEM_SIZE to check_argument_store.
1640 2016-11-15  Richard Sandiford  <richard.sandiford@arm.com>
1641             Alan Hayward  <alan.hayward@arm.com>
1642             David Sherwood  <david.sherwood@arm.com>
1644         * alias.c (canon_rtx): Use simplify_gen_binary.
1646 2016-11-15  Richard Sandiford  <richard.sandiford@arm.com>
1647             Alan Hayward  <alan.hayward@arm.com>
1648             David Sherwood  <david.sherwood@arm.com>
1650         * rtl.h (load_extend_op): Declare.
1651         * rtlanal.c (load_extend_op): New function.
1652         (nonzero_bits1): Use it.
1653         (num_sign_bit_copies1): Likewise.
1654         * cse.c (cse_insn): Likewise.
1655         * fold-const.c (fold_single_bit_test): Likewise.
1656         (fold_unary_loc): Likewise.
1657         * fwprop.c (free_load_extend): Likewise.
1658         * postreload.c (reload_cse_simplify_set): Likewise.
1659         (reload_cse_simplify_operands): Likewise.
1660         * combine.c (try_combine): Likewise.
1661         (simplify_set): Likewise.  Remove redundant SUBREG_BYTE and
1662         subreg_lowpart_p checks.
1664 2016-11-15  Richard Sandiford  <richard.sandiford@arm.com>
1665             Alan Hayward  <alan.hayward@arm.com>
1666             David Sherwood  <david.sherwood@arm.com>
1668         * combine.c (simplify_shift_const_1): Use the number of bits
1669         in the inner mode to determine the range of the shift.
1670         When handling shifts of vectors, skip any rules that apply
1671         only to scalars.
1673 2016-11-15  Richard Sandiford  <richard.sandiford@arm.com>
1674             Alan Hayward  <alan.hayward@arm.com>
1675             David Sherwood  <david.sherwood@arm.com>
1677         * rtlanal.c (num_sign_bit_copies1): Calculate bitwidth after
1678         handling VOIDmode.
1680 2016-11-15  Matthias Klose  <doko@ubuntu.com>
1682         * doc/install.texi: Remove references to gcj/libjava.
1683         * doc/invoke.texi: Likewise.
1685 2016-11-15  Jeff Law  <law@redhat.com>
1687         * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove unneeded
1688         parameter.  Callers changed.
1689         (check-subpath_and_update_thread_path): Extracted from
1690         fsm_find_control_statement_thread_paths.
1691         (handle_phi, handle_assignment, handle_assignment_p): Likewise.
1692         (handle_phi, handle_assignment): Allow any constant node, not
1693         just INTEGER_CST.
1695 2016-11-15  Claudiu Zissulescu  <claziss@synopsys.com>
1697         * config/arc/arc-arch.h: New file.
1698         * config/arc/arc-arches.def: Likewise.
1699         * config/arc/arc-cpus.def: Likewise.
1700         * config/arc/arc-options.def: Likewise.
1701         * config/arc/t-multilib: Likewise.
1702         * config/arc/genmultilib.awk: Likewise.
1703         * config/arc/genoptions.awk: Likewise.
1704         * config/arc/arc-tables.opt: Likewise.
1705         * config/arc/driver-arc.c: Likewise.
1706         * testsuite/gcc.target/arc/nps400-cpu-flag.c: Likewise.
1707         * common/config/arc/arc-common.c (arc_handle_option): Trace
1708         toggled options.
1709         * config.gcc (arc*-*-*): Add arc-tables.opt to arc's extra
1710         options; check for supported cpu against arc-cpus.def file.
1711         (arc*-*-elf*, arc*-*-linux-uclibc*): Use new make fragment; define
1712         TARGET_CPU_BUILD macro; add driver-arc.o as an extra object.
1713         * config/arc/arc-c.def: Add emacs local variables.
1714         * config/arc/arc-opts.h (processor_type): Use arc-cpus.def file.
1715         (FPU_FPUS, FPU_FPUD, FPU_FPUDA, FPU_FPUDA_DIV, FPU_FPUDA_FMA)
1716         (FPU_FPUDA_ALL, FPU_FPUS_DIV, FPU_FPUS_FMA, FPU_FPUS_ALL)
1717         (FPU_FPUD_DIV, FPU_FPUD_FMA, FPU_FPUD_ALL): New defines.
1718         (DEFAULT_arc_fpu_build): Define.
1719         (DEFAULT_arc_mpy_option): Define.
1720         * config/arc/arc-protos.h (arc_init): Delete.
1721         * config/arc/arc.c (arc_cpu_name): New variable.
1722         (arc_selected_cpu, arc_selected_arch, arc_arcem, arc_archs)
1723         (arc_arc700, arc_arc600, arc_arc601): New variable.
1724         (arc_init): Add static; remove selection of default tune value,
1725         cleanup obsolete error messages.
1726         (arc_override_options): Make use of .def files for selecting the
1727         right cpu and option configurations.
1728         * config/arc/arc.h (stdbool.h): Include.
1729         (TARGET_CPU_DEFAULT): Define.
1730         (CPP_SPEC): Remove mcpu=NPS400 handling.
1731         (arc_cpu_to_as): Declare.
1732         (EXTRA_SPEC_FUNCTIONS): Define.
1733         (OPTION_DEFAULT_SPECS): Likewise.
1734         (ASM_DEFAULT): Remove.
1735         (ASM_SPEC): Use arc_cpu_to_as.
1736         (DRIVER_SELF_SPECS): Remove deprecated options.
1737         (arc_base_cpu): Declare.
1738         (TARGET_ARC600, TARGET_ARC601, TARGET_ARC700, TARGET_EM)
1739         (TARGET_HS, TARGET_V2, TARGET_ARC600): Make them use arc_base_cpu
1740         variable.
1741         (MULTILIB_DEFAULTS): Use ARC_MULTILIB_CPU_DEFAULT.
1742         * config/arc/arc.md (attr_cpu): Remove.
1743         * config/arc/arc.opt (mno-mpy): Deprecate.
1744         (mcpu=ARC600, mcpu=ARC601, mcpu=ARC700, mcpu=NPS400, mcpu=ARCEM)
1745         (mcpu=ARCHS): Remove.
1746         (mcrc, mdsp-packa, mdvbf, mmac-d16, mmac-24, mtelephony, mrtsc):
1747         Deprecate.
1748         (mbarrel_shifte, mspfp_, mdpfp_, mdsp_pack, mmac_): Remove.
1749         (arc_fpu): Use new defines.
1750         (mpy-option): Change to use numeric or string like inputs.
1751         * config/arc/t-arc (driver-arc.o): New target.
1752         (arc-cpus, t-multilib, arc-tables.opt): Likewise.
1753         * config/arc/t-arc-newlib: Delete.
1754         * config/arc/t-arc-uClibc: Renamed to t-uClibc.
1755         * doc/invoke.texi (ARC): Update arc options.
1757 2016-11-15  Maciej W. Rozycki  <macro@imgtec.com>
1759         * config/mips/mips.c (mips16_emit_constants): Emit `consttable'
1760         insn at the beginning of the constant pool.
1761         (mips_insert_insn_pseudos): New function.
1762         (mips_machine_reorg2): Call it.
1763         * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE and
1764         UNSPEC_INSN_PSEUDO enum values.
1765         (insn_pseudo, consttable): New insns.
1767 2016-11-15  Michael Matz  <matz@suse.de>
1769         PR missed-optimization/77881
1770         * combine.c (simplify_comparison): Remove useless subregs
1771         also inside the loop, not just after it.
1772         (make_compound_operation): Recognize some subregs as being
1773         masking as well.
1775 2016-11-15  Richard Sandiford  <richard.sandiford@arm.com>
1776             Alan Hayward  <alan.hayward@arm.com>
1777             David Sherwood  <david.sherwood@arm.com>
1779         * dwarf2out.c (mem_loc_descriptor): Fix GET_MODE_CLASS/
1780         GET_MODE_SIZE typo.
1782 2016-11-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
1784         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Add support
1785         for using xxinsertw and vinsert{b,h} on ISA 3.0.
1787         * config/rs6000/vsx.md (vsx_extract_<mode>): Update comment.
1788         (vsx_set_<mode>_p9): New insn to generate xxinsertw and
1789         vinsert{b,h} on ISA 3.0.
1791 2016-11-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1793         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
1794         and cmpnop in two steps: first the ones not accessed in original gimple
1795         expression in a endian independent way and then the ones not accessed
1796         in the final result in an endian-specific way.
1797         (bswap_replace): Stop doing big endian adjustment.
1799 2016-11-14  Uros Bizjak  <ubizjak@gmail.com>
1801         * config/i386/i386.md (*andndi3_doubleword): Merge operand constraints.
1802         (*ashl<mode>3_doubleword): Ditto.
1804 2016-11-14  Martin Liska  <mliska@suse.cz>
1806         * tree-ssa-dse.c (dse_optimize_stmt): Remove quotes and extra new line.
1808 2016-11-14  Prasad Ghangal  <prasad.ghangal@gmail.com>
1809             Richard Biener  <rguenther@suse.de>
1811         * doc/invoke.texi (fgimple): Document.
1812         * dumpfile.h (TDF_GIMPLE): Add.
1813         * dumpfile.c (dump_options): Add gimple.
1814         * gimple-pretty-print.c (dump_gimple_switch): Adjust dump
1815         for TDF_GIMPLE.
1816         (dump_gimple_label): Likewise.
1817         (dump_gimple_phi): Likewise.
1818         (dump_gimple_bb_header): Likewise.
1819         (dump_phi_nodes): Likewise.
1820         (pp_cfg_jump): Likewise.  Pass in dump flags.
1821         (dump_implicit_edges): Adjust.
1822         * passes.c (pass_init_dump_file): Do not dump function header
1823         for TDF_GIMPLE.
1824         * tree-cfg.c (dump_function_to_file): Dump function return type
1825         and __GIMPLE keyword for TDF_GIMPLE.  Change guard for dumping
1826         GIMPLE stmts.
1827         * tree-pretty-print.c (dump_decl_name): Adjust dump for TDF_GIMPLE.
1828         (dump_generic_node): Likewise.
1829         * function.h (struct function): Add pass_startwith member.
1830         * passes.c (execute_one_pass): Implement startwith.
1831         * tree-ssanames.c (make_ssa_name_fn): New argument, check for version
1832         and assign proper version for parsed ssa names.
1833         * tree-ssanames.h (make_ssa_name_fn): Add new argument to the function.
1834         * internal-fn.c (expand_PHI): New function.
1835         * internal-fn.h (expand_PHI): Declared here.
1836         * internal-fn.def: New defination for PHI.
1837         * tree-cfg.c (lower_phi_internal_fn): New function.
1838         (build_gimple_cfg): Call it.
1839         (verify_gimple_call): Condition for passing label as arg in internal
1840         function PHI.
1841         * tree-into-ssa.c (rewrite_add_phi_arguments): Handle already
1842         present PHIs with arguments.
1844 2016-11-14  Martin Liska  <mliska@suse.cz>
1846         PR bootstrap/78069
1847         * common.opt: Add prefer-atomic as a new enum value for
1848         -fprofile-update.
1849         * coretypes.h: Likewise.
1850         * doc/invoke.texi: Document the new option value.
1851         * gcc.c: Replace atomic with prefer-atomic.  Remove warning.
1852         * tree-profile.c (tree_profiling): Select default value
1853         of -fprofile-update when 'prefer-atomic' is selected.
1855 2016-11-14  Wilco Dijkstra  <wdijkstr@arm.com>
1857         * config/arm/cortex-a57.md (cortex_a57_alu): Move extend here, bfm...
1858         (cortex_a57_alu_shift): ...here.
1860 2016-11-14  Wilco Dijkstra  <wdijkstr@arm.com>
1862         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3)
1863         Use bfx attribute.
1864         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
1865         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
1866         (<optab>si3_insn_uxtw): Likewise.
1867         (<optab><mode>3_insn): Likewise.
1868         (<ANY_EXTEND:optab><GPI:mode>_ashl<SHORT:mode>): Likewise.
1869         (zero_extend<GPI:mode>_lshr<SHORT:mode>): Likewise.
1870         (extend<GPI:mode>_ashr<SHORT:mode>): Likewise.
1871         (<optab><mode>): Likewise.
1872         (insv<mode>): Likewise.
1873         (andim_ashift<mode>_bfiz): Likewise.
1874         * config/aarch64/thunderx.md (thunderx_shift): Add bfx.
1875         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
1876         * config/arm/cortex-a57.md (cortex_a57_alu): Add bfx.
1877         * config/arm/exynos-m1.md (exynos_m1_alu): Add bfx.
1878         (exynos_m1_alu_p): Likewise.
1879         * config/arm/types.md: Add bfx.
1880         * config/arm/xgene1.md (xgene1_bfm): Add bfx.
1882 2016-11-14  Wilco Dijkstra  <wdijkstr@arm.com>
1884         * config/aarch64/aarch64.c (cortexa57_vector_cost):
1885         Change vec_stmt_cost, vec_align_load_cost and vec_unalign_load_cost.
1887 2016-11-14  Richard Biener  <rguenther@suse.de>
1889         PR tree-optimization/78312
1890         * gimple-ssa-backprop.c (backprop::prepare_change): Reset
1891         flow-sensitive info.
1893 2016-11-14  Georg-Johann Lay  <avr@gjlay.de>
1895         PR target/78093
1896         * doc/invoke.texi (AVR Options) [-mabsdata]: Document new option.
1897         * config/avr/avr.opt (-mabsdata): New option.
1898         * config/avr/avr-arch.h (avr_device_specific_features): Add AVR_ISA_LDS.
1899         * config/avr/avr.c (avr_encode_section_info) [AVR_TINY]: If
1900         -mabsdata & symbol is not progmem, tag as AVR_SYMBOL_FLAG_TINY_ABSDATA.
1901         * config/avr/avr-mcus.def (attiny4/5/9/10/20): Use AVR_ISA_LDS.
1902         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Print cc1_absdata
1903         spec depending on AVR_ISA_LDS.
1904         * config/avr/specs.h (CC1_SPEC): Enhanced by cc1_absdata spec.
1906 2016-11-13  Jakub Jelinek  <jakub@redhat.com>
1908         * match.pd: Don't try to compare addresses of variables with
1909         DECL_VALUE_EXPR.
1911 2016-11-13  Kugan Vivekanandarajah  <kuganv@linaro.org>
1913         * ipa-cp.c (ipa_get_jf_pass_through_result): Skip unary expressions.
1914         (propagate_vr_accross_jump_function): Handle unary expressions.
1915         * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
1916         (load_from_param_1): New.
1917         (load_from_unmodified_param): Factor common part into load_from_param_1.
1918         (load_from_param): New.
1919         (compute_complex_assign_jump_func): Handle unary expressions.
1920         (update_jump_functions_after_inlining): Likewise.
1921         (ipa_write_jump_function): Likewise.
1922         (ipa_read_jump_function): Likewise.
1924 2016-11-13  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1926         PR c/35503
1927         * doc/invoke.texi: Document Wrestrict.
1928         * pretty-print.c (pp_format): Add case for "Z" specifier.
1929         (test_pp_format): Test "Z" specifier.
1931 2016-11-13  Eric Botcazou  <ebotcazou@adacore.com>
1933         * ipa-icf.c (sem_function::merge): Do not create a wrapper also if the
1934         original function needs a static chain.
1936 2016-11-13  David Edelsohn  <dje.gcc@gmail.com>
1938         PR target/78336
1939         * config/rs6000/rs6000.c (rs6000_asm_weaken_decl): Protect
1940         ASM_OUTPUT_DEF.
1942 2016-11-12  Segher Boessenkool  <segher@kernel.crashing.org>
1944         PR target/77957
1945         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
1946         return early if !optional_tbtab.
1948 2016-11-11  Eric Botcazou  <ebotcazou@adacore.com>
1950         PR rtl-optimization/59461
1951         * doc/rtl.texi (paradoxical subregs): Add missing word.
1952         * combine.c (reg_nonzero_bits_for_combine): Do not discard results
1953         in modes with precision larger than that of last_set_mode.
1954         * rtlanal.c (nonzero_bits1) <SUBREG>: If WORD_REGISTER_OPERATIONS is
1955         set and LOAD_EXTEND_OP is appropriate, propagate results from inner
1956         REGs to paradoxical SUBREGs.
1957         (num_sign_bit_copies1) <SUBREG>: Likewise.  Check that the mode is not
1958         larger than a word before invoking LOAD_EXTEND_OP on it.
1960 2016-11-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
1962         PR target/78243
1963         * config/rs6000/vsx.md (vsx_extract_<mode>_p9): Correct the
1964         element order for little endian ordering.
1966         * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Use
1967         VECTOR_ELT_ORDER_BIG and not BYTES_BIG_ENDIAN to adjust element
1968         number.
1970 2016-11-11  Uros Bizjak  <ubizjak@gmail.com>
1972         PR target/78310
1973         * config/i386/i386.md (rotate to rotatex splitter): Avoid overflow
1974         when calculating operand 2.
1975         (rotate to rotatex zext splitter): Ditto.
1977 2016-11-11  Jeff Law  <law@redhat.com>
1979         * gimple-ssa-isolate-paths.c (is_divmod_with_given_divisor): New
1980         function.
1981         (stmt_uses_name_in_undefined_way): New function, extracted from
1982         find_implicit_erroneous_behavior and extended for div/mod case.
1983         (stmt_uses_0_or_null_in_undefined_way): New function, extracted from
1984         find_explicit_erroneous_behavior and extended for div/mod case.
1985         (find_implicit_erroneous_behavior): Use new helper function.
1986         (find_explicit_erroneous_behavior): Use new helper function.
1988 2016-11-11  Richard Biener  <rguenther@suse.de>
1990         PR tree-optimization/71575
1991         * graphite-isl-ast-to-gimple.c (copy_cond_phi_nodes): Remove
1992         bogus assert.
1994 2016-11-11  Richard Biener  <rguenther@suse.de>
1996         PR middle-end/78295
1997         * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
1998         about uninitialized destination arg of BIT_INSERT_EXPR.
2000 2016-11-10  Sandra Loosemore  <sandra@codesourcery.com>
2002         PR c/37998
2003         * doc/invoke.texi (Code Gen Options) [-fno-common]: Use correct
2004         terminology.  Expand to remove ambiguity.
2006 2016-11-10  Segher Boessenkool  <segher@kernel.crashing.org>
2008         PR rtl-optimization/78232
2009         * combine.c (try_combine): Add a big comment about why reusing i2dest
2010         is undesirable.
2011         (change_zero_ext): Do not call simplify_gen_binary, do the
2012         simplifications manually.
2014 2016-11-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
2016         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If ISA 3.0,
2017         enable HImode and QImode to go in vector registers by default if
2018         the -mvsx-small-integer option is enabled.
2019         (rs6000_secondary_reload_simple_move): Likewise.
2020         (rs6000_preferred_reload_class): Don't force integer constants to
2021         be loaded into vector registers that we can easily make into
2022         memory (or being created in the GPRs and moved over with direct move).
2023         * config/rs6000/vsx.md (UNSPEC_P9_MEMORY): Delete, no longer used.
2024         (vsx_extract_<mode>): Rework V4SImode, V8HImode, and V16QImode
2025         vector extraction on ISA 3.0 when the scalar integer can be
2026         allocated in vector registers.  Generate the VEC_SELECT directy,
2027         and don't use UNSPEC's to avoid having the scalar type in a vector
2028         register.  Make the expander target registers, and let the
2029         combiner fold in results storing to memory, if the machine
2030         supports stores.
2031         (vsx_extract_<mode>_di): Likewise.
2032         (vsx_extract_<mode>_p9): Likewise.
2033         (vsx_extract_<mode>_di_p9): Likewise.
2034         (vsx_extract_<mode>_store_p9): Likewise.
2035         (vsx_extract_si): Likewise.
2036         (vsx_extract_<mode>_p8): Likewise.
2037         (p9_lxsi<wd>zx): Delete, no longer used.
2038         (p9_stxsi<wd>x): Likewise.
2039         * config/rs6000/rs6000.md (INT_ISA3): New mode iterator for
2040         integers in vector registers for ISA 3.0.
2041         (QHI): Update comment.
2042         (zero_extendqi<mode>2): Add support for ISA 3.0 scalar load or
2043         vector extract instructions in sign/zero extend.
2044         (zero_extendhi<mode>): Likewise.
2045         (extendqi<mode>): Likewise.
2046         (extendhi<mode>2): Likewise.
2047         (HImode splitter for load/sign extend in vector register): Likewise.
2048         (float<QHI:mode><FP_ISA3:mode>2): Eliminate old method of
2049         optimizing floating point conversions to/from small data types and
2050         rewrite it to support QImode/HImode being allowed in vector
2051         registers on ISA 3.0.
2052         (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
2053         (floatuns<QHI:mode><FP_ISA3:mode>2): Likewise.
2054         (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
2055         (fix_trunc<SFDF:mode><QHI:mode>2): Likewise.
2056         (fix_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
2057         (fixuns_trunc<SFDF:mode><QHI:mode>2): Likewise.
2058         (fixuns_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
2059         VSPLITISW on ISA 2.07.
2060         (movhi_internal): Combine movhi_internal and movqi_internal into
2061         one mov<mode>_internal with an iterator.  Add support for QImode
2062         and HImode being allowed in vector registers.  Make large number
2063         of attributes and constraints easier to read.
2064         (movqi_internal): Likewise.
2065         (mov<mode>_internal): Likewise.
2066         (movdi_internal64): Fix constraint to allow loading -16..15 with
2067         VSPLITISW on ISA 2.07.
2068         (integer XXSPLTIB splitter): Add support for QI, HI, and SImode as
2069         well as DImode.
2071 2016-11-10  Pat Haugen  <pthaugen@us.ibm.com>
2073         PR rtl-optimization/78241
2074         * loop-unroll.c (unroll_loop_runtime_iterations): Don't adjust 'niter',
2075         but emit initial peel copy if niter expr is not reliable.
2077 2016-11-10  Segher Boessenkool  <segher@kernel.crashing.org>
2079         * dwarf2cfi.c (dump_cfi_row): Add forward declaration.
2080         (maybe_record_trace_start): If the CFI is different on the new and
2081         old paths, print out both to the dump file before ICEing.
2083 2016-11-10  Vladimir Makarov  <vmakarov@redhat.com>
2085         * target.def (additional_allocno_class_p): New.
2086         * hooks.h (hook_bool_reg_class_t_false): New prototype.
2087         * hooks.c (hook_bool_reg_class_t_false): New.
2088         * ira.c (setup_allocno_and_important_classes): Use the new hook.
2089         * doc/tm.texi.in (TARGET_ADDITIONAL_ALLOCNO_CLASS_P): Add it.
2090         * doc/tm.texi: Update.
2092 2016-11-10  Jason Merrill  <jason@redhat.com>
2094         * gengtype.c (new_structure): Append to structures list.
2095         (find_structure): Likewise.
2097 2016-11-10  Jim Wilson  <jim.wilson@linaro.org>
2099         * tree-loop-distribution.c (pg_add_dependence_edges): Return 2 if
2100         this_dir is 2.  Check for this_dir non-zero before dir != this_dir
2101         check.
2103 2016-11-10  Jakub Jelinek  <jakub@redhat.com>
2105         * omp-low.c (lower_omp_target): Fix up argument to is_reference.
2106         (expand_omp_ordered_sink): Handle TREE_PURPOSE of deps being
2107         TRUNC_DIV_EXPR.
2108         * gimplify.c (gimplify_scan_omp_clauses): Likewise.  Set
2109         ctx->target_map_scalars_firstprivate on OMP_TARGET even for Fortran.
2110         Remove omp_no_lastprivate callers.  Propagate lastprivate on combined
2111         teams distribute parallel for simd even to distribute and teams
2112         construct.  For OMP_CLAUSE_DEPEND add missing break at the end of
2113         OMP_CLAUSE_DEPEND_SINK case.
2114         (omp_notice_variable): Use lang_hooks.decls.omp_scalar_p.
2115         (omp_no_lastprivate): Removed.
2116         (gimplify_adjust_omp_clauses): Remove omp_no_lastprivate callers.
2117         (gimplify_omp_for): Likewise.
2118         (computable_teams_clause): Fail for automatic vars from current
2119         function not yet seen in bind expr.
2120         * langhooks.c (lhd_omp_scalar_p): New function.
2121         * langhooks.h (struct lang_hooks_for_decls): Add omp_scalar_p.
2122         * varpool.c (varpool_node::get_create): Set node->offloading
2123         even for DECL_EXTERNAL decls.
2124         * langhooks-def.h (lhd_omp_scalar_p): New prototype.
2125         (LANG_HOOKS_OMP_SCALAR_P): Define.
2126         (LANG_HOOKS_DECLS): Use it.
2128 2016-11-10  Martin Liska  <mliska@suse.cz>
2130         PR sanitizer/78270
2131         * gimplify.c (gimplify_switch_expr): Create live_switch_vars
2132         only when SWITCH_BODY is a BIND_EXPR.
2134 2016-11-10  Pierre-Marie de Rodat  <derodat@adacore.com>
2136         PR debug/78112
2137         * dwarf2out.c (dwarf2out_early_global_decl): Call dwarf2out_decl
2138         on the context only when it has no DIE yet.
2140 2016-11-10  Richard Earnshaw  <rearnsha@arm.com>
2142         * arm.h (target_cpus): Delete.
2143         * arm-opts.h (enum processor_type): Prefix entires with TARGET_CPU_.
2144         * arm.c (all_cores): Prefix IDENT with TARGET_CPU_.
2145         (all_architectures): Likewise.
2146         (arm_option_override): Adjust use of CPU enums.
2147         (arm_sched_reorder): Likewise.
2148         * vfp.md (movdi_vfp, movdi_vfp_cortexa8): Likewise.
2149         * arm.opt (mcpu, mtune): Adjust use of CPU enums.
2150         * arm/genopt.sh (processor_type): Prefix enumeration entries with
2151         TARGET_CPU_.
2152         * arm-tables.opt: Regenerated.
2154 2016-11-10  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
2156         * config/aarch64/aarch64-cores.def (qdf24xx): Update part number.
2157         (falkor): New core.
2158         * config/aarch64/aarch64-tune.md: Regenerated.
2159         * config/arm/arm-cores.def (falkor): New core.
2160         * config/arm/arm-tables.opt: Regenerated.
2161         * config/arm/arm-tune.md: Regenerated.
2162         * config/arm/bpabi.h (BE8_LINK_SPEC): Add falkor support.
2163         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
2164         * doc/invoke.texi (AArch64 Options/-mtune): Document it.
2165         (ARM Options/-mtune): Likewise.
2167 2016-11-10  Kugan Vivekanandarajah  <kuganv@linaro.org>
2169         Revert
2170         2016-11-09  Kugan Vivekanandarajah  <kuganv@linaro.org>
2172         * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
2173         (propagate_vr_accross_jump_function): Likewise.
2174         * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
2175         (load_from_param_1): New.
2176         (load_from_unmodified_param): Factor common part into load_from_param_1.
2177         (load_from_param): New.
2178         (compute_complex_assign_jump_func): Handle unary expressions.
2179         (ipa_write_jump_function): Likewise.
2180         (ipa_read_jump_function): Likewise.
2182 2016-11-09  Segher Boessenkool  <segher@kernel.crashing.org>
2184         * simplify-rtx.c (simplify_binary_operation_1): Simplify
2185         (xor (and (xor A B) C) B) to (ior (and A C) (and B ~C)) and
2186         (xor (and (xor A B) C) A) to (ior (and A ~C) (and B C)) if C
2187         is a const_int.
2189 2016-11-09  David Malcolm  <dmalcolm@redhat.com>
2191         * print-rtl-function.c: Include varasm.h.
2192         (print_any_param_name): New function.
2193         (print_param): New function.
2194         (print_rtx_function): Call print_param for each argument.
2195         * print-rtl.c (rtx_writer::finish_directive): New function.
2196         * print-rtl.h (rtx_writer::finish_directive): New decl.
2198 2016-11-09  Uros Bizjak  <ubizjak@gmail.com>
2200         PR target/78262
2201         * config/i386/i386.md (*<shift_insn><mode>3_doubleword): Mark
2202         operand 0 as earlyclobber.
2203         (*ashl<mode>3_doubleword): Ditto for all operand 0 alternatives.
2205 2016-11-09  Martin Liska  <mliska@suse.cz>
2207         * fold-const-call.c (fold_const_call): Fix up type of s0 and s1.
2209 2016-11-09  Jakub Jelinek  <jakub@redhat.com>
2211         PR target/77718
2212         * builtins.c (expand_builtin_memcmp): Formatting fix.
2214         * flag-types.h (enum sanitize_code): Add SANITIZE_SHIFT_BASE
2215         and SANITIZE_SHIFT_EXPONENT, change SANITIZE_SHIFT to bitwise
2216         or of them, renumber other enumerators.
2217         * opts.c (sanitizer_opts): Add shift-base and shift-exponent.
2218         * doc/invoke.texi: Document -fsanitize=shift-base and
2219         -fsanitize-shift-exponent, document -fsanitize=shift as
2220         having those 2 suboptions.
2222 2016-11-09  Richard Biener  <rguenther@suse.de>
2224         * fold-const.c (tree_swap_operands_p): Remove unused arg.
2225         * fold-const.c (tree_swap_operands_p): Likewise.
2226         (fold_binary_loc): Adjust.
2227         (fold_ternary_loc): Likewise.
2228         * genmatch.c (dt_operand::gen_gimple_exp): Likewise.
2229         * gimple-fold.c (fold_stmt_1): Likewise.
2230         * gimple-match-head.c (gimple_resimplify2): Likewise.
2231         (gimple_resimplify3): Likewise.
2232         (gimple_simplify): Likewise.
2233         * tree-ssa-dom.c (record_equality): Likewise.
2234         * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Likewise.
2235         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
2236         * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): Likewise.
2238 2016-11-09  Richard Biener  <rguenther@suse.de>
2240         * tree-ssa-dom.c (canonicalize_comparison): Remove.
2241         (optimize_stmt): Remove redundant pre-propagation canonicalization
2242         of comparison operand order.
2244 2016-11-09  Martin Liska  <mliska@suse.cz>
2246         * fold-const-call.c (fold_const_call): Fix the folding.
2248 2016-11-09  Richard Biener  <rguenther@suse.de>
2250         * common.opt (flag_evaluation_order): Remove.
2251         * expr.c (expand_operands): Remove code guarded by
2252         flag_evaluation_order.
2253         * fold-const.c (reorder_operands_p): Remove, it always returns
2254         true.
2255         (negate_expr_p): Remove calls to reorder_operands_p.
2256         (fold_negate_expr): Likewise.
2257         (tree_swap_operands_p): Likewise.
2258         (fold_binary_loc): Likewise.
2260 2016-11-09  Andreas Schwab  <schwab@suse.de>
2262         PR target/78254
2263         * config/m68k/m68k.md: Reject out-of-range bit pos in bit-fields
2264         insns operating on a register.
2266 2016-11-09  Richard Biener  <rguenther@suse.de>
2268         PR tree-optimization/78007
2269         * tree-vect-stmts.c (vectorizable_bswap): New function.
2270         (vectorizable_call): Call vectorizable_bswap for
2271         BUILT_IN_BSWAP{16,32,64} if arguments are not promoted.
2273 2016-11-09  Richard Biener  <rguenther@suse.de>
2275         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
2276         Look at the DR_BASE_ADDRESS object for forcing alignment.
2278 2016-11-09  Kugan Vivekanandarajah  <kuganv@linaro.org>
2280         * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
2281         (propagate_vr_accross_jump_function): Likewise.
2282         * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
2283         (load_from_param_1): New.
2284         (load_from_unmodified_param): Factor common part into load_from_param_1.
2285         (load_from_param): New.
2286         (compute_complex_assign_jump_func): Handle unary expressions.
2287         (ipa_write_jump_function): Likewise.
2288         (ipa_read_jump_function): Likewise.
2290 2016-11-09  Kugan Vivekanandarajah  <kuganv@linaro.org>
2292         PR ipa/78121
2293         * ipa-cp.c (propagate_vr_accross_jump_function): Pass param type.
2294         Also fold constant passed as argument while computing value range.
2295         (propagate_constants_accross_call): Pass param type.
2296         * ipa-prop.c: export ipa_get_callee_param_type.
2297         * ipa-prop.h: export ipa_get_callee_param_type.
2299 2016-11-09  Maxim Ostapenko  <m.ostapenko@samsung.com>
2301         * asan.h (asan_intercepted_p): Handle BUILT_IN_STRCSPN,
2302         BUILT_IN_STRPBRK, BUILT_IN_STRSPN and BUILT_IN_STRSTR.
2304 2016-11-09  Maxim Ostapenko  <m.ostapenko@samsung.com>
2306         * asan.h (ASAN_STACK_MAGIC_PARTIAL): Remove.
2307         * asan.c (ASAN_STACK_MAGIC_PARTIAL): Replace with
2308         ASAN_STACK_MAGIC_MIDDLE.
2309         (asan_global_struct): Increase the size of fields.
2310         (asan_add_global): Add new field constructor.
2311         * sanitizer.def (__asan_version_mismatch_check_v6): Replace with
2312         __asan_version_mismatch_check_v8.
2314 2016-11-08  David Edelsohn  <dje.gcc@gmail.com>
2316         * dwarf2asm.c (USE_LINKONCE_INDIRECT): Test XCOFF_DEBUGGING_INFO
2317         at runtime.
2319 2016-11-08  Uros Bizjak  <ubizjak@gmail.com>
2321         PR target/70799
2322         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
2323         Handle ASHIFT and LSHIFTRT.
2324         (dimode_scalar_chain::compute_convert_gain): Ditto.
2325         (dimode_scalar_chain::convert_insn): Ditto.
2327 2016-11-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2329         * gimple-ssa-store-merging.c: Include selftest.h
2330         (verify_array_eq): New function.
2331         (verify_shift_bytes_in_array): Likewise.
2332         (verify_shift_bytes_in_array_right): Likewise.
2333         (verify_clear_bit_region): Likewise.
2334         (verify_clear_bit_region_be): Likewise.
2335         (store_merging_c_tests): Likewise.
2336         * selftest.h (store_merging_c_tests): Declare prototype.
2337         * selftest-run-tests.c (selftest::run_tests): Run
2338         store_merging_c_tests.
2340 2016-11-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2342         * config/arm/arm.opt (mold-rtx-costs): Delete.
2343         (mnew-generic-costs): Delete.
2344         * config/arm/arm-protos.h (struct tune_params): Delete rtx_costs field.
2345         * config/arm/arm.c (arm_rtx_costs_1): Delete.
2346         (arm_size_rtx_costs): Likewise.
2347         (arm_slowmul_rtx_costs): Likewise.
2348         (arm_fastmul_rtx_costs): Likewise.
2349         (arm_xscale_rtx_costs): Likewise.
2350         (arm_9e_rtx_costs): Likewise.
2351         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
2352         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
2353         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
2354         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
2355         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
2356         arm_cortex_a5_tune, arm_xgene1_tune, arm_marvell_pj4_tune,
2357         arm_cortex_a35_tune, arm_exynosm1_tune, arm_cortex_a73_tune,
2358         arm_cortex_m7_tune):
2359         Delete rtx_costs field.
2360         (arm_new_rtx_costs): Rename to...
2361         (arm_rtx_costs_internal): ... This.
2362         (arm_rtx_costs): Remove old way of doing rtx costs.
2364 2016-11-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2366         * config/arm/arm.c (arm_slowmul_tune): Use generic_extra_costs.
2367         (arm_fastmul_tune): Likewise.
2368         (arm_strongarm_tune): Likewise.
2369         (arm_xscale_tune): Likewise.
2370         (arm_9e_tune): Likewise.
2371         (arm_marvell_pj4_tune): Likewise.
2372         (arm_v6t2_tune): Likewise.
2373         (arm_v6m_tune): Likewise.
2374         (arm_fa726te_tune): Likewise.
2376 2016-11-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2378         PR tree-optimization/78234
2379         * gimple-ssa-store-merging.c (clear_bit_region): Fix off-by-one error
2380         in start != 0 case.
2382 2016-11-08  Martin Liska  <mliska@suse.cz>
2384         PR testsuite/78242
2385         * dbgcnt.def: Add new debug counter asan_use_after_scope.
2386         * gimplify.c (gimplify_decl_expr): Do not sanitize vars
2387         with a value expr.  Do not add artificial variables to
2388         live_switch_vars.  Use the debug counter.
2389         (gimplify_target_expr): Use the debug counter.
2390         * internal-fn.def: Remove ECF_TM_PURE from ASAN_MARK builtin.
2391         * sanitizer.def: Set ATTR_NOTHROW_LEAF_LIST to
2392         BUILT_IN_ASAN_CLOBBER_N and BUILT_IN_ASAN_UNCLOBBER_N.
2394 2016-11-08  Richard Biener  <rguenther@suse.de>
2396         * tree-vect-stmts.c (get_group_load_store_type): If the
2397         access is aligned do not trigger peeling for gaps.
2398         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
2399         force alignment of vars with DECL_USER_ALIGN.
2401 2016-11-08  James Greenhalgh  <james.greenhalgh@arm.com>
2403         * config/aarch64/t-aarch64 (aarch64-c.o): Depend on TARGET_H.
2405 2016-11-08  Richard Biener  <rguenther@suse.de>
2407         PR tree-optimization/78205
2408         * tree-vect-stmts.c (vectorizable_load): Move check whether
2409         we may run into gaps when BB vectorizing SLP permutations ...
2410         * tree-vect-slp.c (vect_supported_load_permutation_p): ...
2411         here where we can do a more precise check.
2413 2016-11-08  Richard Biener  <rguenther@suse.de>
2415         PR tree-optimization/78224
2416         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
2417         Split the fallthru edge in case its successor may have PHIs.
2418         Do not free dominance info.
2420 2016-11-07  Jakub Jelinek  <jakub@redhat.com>
2422         PR target/78229
2423         * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
2424         EH info even for bzhi and pdep/pext.
2426 2016-11-07  Peter Bergner  <bergner@vnet.ibm.com>
2428         * config.gcc (powerpc*-*-*, rs6000*-*-*): Remove setting of
2429         INCLUDE_EXTRA_SPEC for Advance Toolchain builds.
2431 2016-11-07  Segher Boessenkool  <segher@kernel.crashing.org>
2433         * config/rs6000/rs6000.md (div<mode>3): Expand using rs6000_emit_swdiv
2434         if appropriate.
2435         * config/rs6000/vector.md (div<mode>3): Ditto.
2437 2016-11-07  David Edelsohn  <dje.gcc@gmail.com>
2439         * configure.ac (.hidden): Change to conftest_s string. Provide string
2440         for AIX assembler.
2441         (gcc_cv_ld_hidden): Yes for AIX.
2442         * configure: Regenerate.
2444         * dwarf2asm.c (USE_LINKONCE_INDIRECT): Don't set for AIX (XCOFF).
2446         * config/rs6000/rs6000-protos.h (rs6000_asm_weaken_decl): Declare
2447         (rs6000_xcoff_asm_output_aligned_decl_common): Declare.
2448         * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_DECL_NAME): Define.
2449         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
2450         (ASM_OUTPUT_ALIGNED_COMMON): Delete.
2451         * config/rs6000/rs6000.c (rs6000_init_builtins): Change clog rename
2452         from #if to if.
2453         (rs6000_xcoff_visibility): New.
2454         (rs6000_xcoff_declare_function_name): Add visibility support.
2455         (rs6000_xcoff_asm_globalize_decl_name): New.
2456         (rs6000_xcoff_asm_output_aligned_decl_common): New.
2457         (rs6000_asm_weaken_decl): New.
2458         (rs6000_code_end): Disable HIDDEN_LINKONCE on XCOFF.
2459         config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Change definition to
2460         reference function.
2462 2016-11-07  Jack Howarth  <howarth.at.gcc@gmail.com>
2464         PR driver/78206
2465         * incpath.c (remove_dup): Also silently ignore EPERM.
2467 2016-11-07  Martin Jambor  <mjambor@suse.cz>
2469         * tree.c (verify_type_variant): Use pointer comparison to check that
2470         TYPE_SIZE_UNIT match.
2472 2016-11-07  Jakub Jelinek  <jakub@redhat.com>
2474         PR target/77834
2475         * dse.c (dse_step5): Call scan_reads even if just
2476         insn_info->frame_read.  Improve and fix dump file messages.
2478         PR target/78227
2479         * config/i386/i386.c (ix86_expand_sse_cmp): Force dest into
2480         cmp_mode argument even for -O0 if cmp_mode != mode and maskcmp.
2482 2016-11-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2484         PR middle-end/35691
2485         * match.pd: Add following two patterns:
2486         (x == 0 & y == 0) -> (x | typeof(x)(y)) == 0.
2487         (x != 0 | y != 0) -> (x | typeof(x)(y)) != 0.
2489 2016-11-07  Bernd Schmidt  <bschmidt@redhat.com>
2491         * emit-rtl.c (emit_copy_of_insn_after): Duplicate notes in order.
2492         * sel-sched-ir.c (create_copy_of_insn_rtx): Likewise.
2493         * rtl.h (duplicate_reg_notes): Declare.
2494         * rtlanal.c (duplicate_reg_note): New function.
2496         PR rtl-optimization/77309
2497         * combine.c (make_compound_operation): Allow EQ for IN_CODE, and
2498         don't assume an equality comparison for plain COMPARE.
2499         (simplify_comparison): Pass a more accurate code to
2500         make_compound_operation.
2502 2016-11-07  Pat Haugen  <pthaugen@us.ibm.com>
2504         * target.def (compute_pressure_classes): New target hook.
2505         * doc/tm.texi.in: Document it.
2506         * doc/tm.texi: Regenerate.
2507         * ira.c (setup_pressure_classes): Call target hook if defined.
2509 2016-11-07  David Malcolm  <dmalcolm@redhat.com>
2511         * print-rtl.c (rtx_writer::operand_has_default_value_p): New
2512         method.
2513         (rtx_writer::print_rtx): In compact mode, omit trailing operands
2514         that have the default values.
2515         * print-rtl.h (rtx_writer::operand_has_default_value_p): New
2516         method.
2517         * rtl-tests.c (selftest::test_dumping_insns): Remove empty
2518         label string from expected dump.
2519         (seltest::test_uncond_jump): Remove trailing "(nil)" for REG_NOTES
2520         from expected dump.
2522 2016-11-07  Jakub Jelinek  <jakub@redhat.com>
2524         PR target/77834
2525         * alias.c (nonoverlapping_memrefs_p): If one decl is
2526         FUNCTION_DECL or LABEL_DECL and the other is not, return 1.
2528 2016-11-07  Richard Biener  <rguenther@suse.de>
2530         PR target/78229
2531         * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
2532         EH info.
2534 2016-11-07  Richard Biener  <rguenther@suse.de>
2536         PR tree-optimization/78218
2537         * gimple-ssa-store-merging.c
2538         (pass_store_merging::terminate_all_aliasing_chains):
2539         Drop unused argument, fix alias check to also consider uses.
2540         (pass_store_merging::execute): Adjust.
2542 2016-11-07  Richard Biener  <rguenther@suse.de>
2544         PR tree-optimization/78228
2545         * tree-ssa-phiopt.c (abs_replacement): Avoid introducing
2546         undefined behavior.
2548 2016-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2550         PR target/77822
2551         * config/aarch64/aarch64.md (*tb<optab><mode>1): Use
2552         aarch64_simd_shift_imm_<mode> predicate for operand 1.
2553         (<optab>, ANY_EXTRACT): Use tighter predicates on operands 2 and 3
2554         to restrict them to an appropriate range and add FAIL check if the
2555         region they specify is out of range.  Delete useless constraint
2556         strings.
2557         (*<optab><mode>, ANY_EXTRACT): Add appropriate predicates on operands
2558         2 and 3 to restrict their range and add pattern predicate.
2560 2016-11-07  Martin Liska  <mliska@suse.cz>
2562         * asan.c (enum asan_check_flags): Move the enum to header file.
2563         (asan_init_shadow_ptr_types): Make type creation more generic.
2564         (shadow_mem_size): New function.
2565         (asan_emit_stack_protection): Use newly added ASAN_SHADOW_GRANULARITY.
2566         Rewritten stack unpoisoning code.
2567         (build_shadow_mem_access): Add new argument return_address.
2568         (instrument_derefs): Instrument local variables if use after scope
2569         sanitization is enabled.
2570         (asan_store_shadow_bytes): New function.
2571         (asan_expand_mark_ifn): Likewise.
2572         (asan_sanitize_stack_p): Moved from asan_sanitize_stack_p.
2573         * asan.h (enum asan_mark_flags): Moved here from asan.c
2574         (asan_protect_stack_decl): Protect all declaration that need
2575         to live in memory.
2576         (asan_sanitize_use_after_scope): New function.
2577         (asan_no_sanitize_address_p): Likewise.
2578         * cfgexpand.c (partition_stack_vars): Consider
2579         asan_sanitize_use_after_scope in condition.
2580         (expand_stack_vars): Likewise.
2581         * common.opt (-fsanitize-address-use-after-scope): New option.
2582         * doc/invoke.texi (use-after-scope-direct-emission-threshold):
2583         Explain the parameter.
2584         * flag-types.h (enum sanitize_code): Define SANITIZE_USE_AFTER_SCOPE.
2585         * gimplify.c (build_asan_poison_call_expr): New function.
2586         (asan_poison_variable): Likewise.
2587         (gimplify_bind_expr): Generate poisoning/unpoisoning for local
2588         variables that have address taken.
2589         (gimplify_decl_expr): Likewise.
2590         (gimplify_target_expr): Likewise for C++ temporaries.
2591         (sort_by_decl_uid): New function.
2592         (gimplify_expr): Unpoison all variables for a label we can jump
2593         from outside of a scope.
2594         (gimplify_switch_expr): Unpoison variables defined in the switch
2595         context.
2596         (gimplify_function_tree): Clear asan_poisoned_variables.
2597         (asan_poison_variables): New function.
2598         (warn_switch_unreachable_r): Handle IFN_ASAN_MARK.
2599         * internal-fn.c (expand_ASAN_MARK): New function.
2600         * internal-fn.def (ASAN_MARK): Declare.
2601         * opts.c (finish_options): Handle -fstack-reuse if
2602         -fsanitize-address-use-after-scope is enabled.
2603         (common_handle_option): Enable address sanitization if
2604         -fsanitize-address-use-after-scope is enabled.
2605         * params.def (PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD):
2606         New parameter.
2607         * params.h: Likewise.
2608         * sancov.c (pass_sanopt::execute): Handle IFN_ASAN_MARK.
2609         * sanitizer.def: Define __asan_poison_stack_memory and
2610         __asan_unpoison_stack_memory functions.
2611         * asan.c (asan_mark_poison_p): New function.
2612         (transform_statements): Handle asan_mark_poison_p calls.
2613         * gimple.c (nonfreeing_call_p): Handle IFN_ASAN_MARK.
2615 2016-11-07  Tamar Christina  <tamar.christina@arm.com>
2617         PR driver/78196
2618         * Makefile.in (SELFTEST_FLAGS): Added -o /dev/null.
2620 2016-11-07  Martin Liska  <mliska@suse.cz>
2622         * tree-profile.c (gimple_gen_time_profiler): Set proper type
2623         to time_profiler_counter_ptr.
2625 2016-11-07  Richard Biener  <rguenther@suse.de>
2627         PR tree-optimization/37150
2628         * tree-vectorizer.h (vect_transform_slp_perm_load): Add n_perms
2629         parameter.
2630         * tree-vect-slp.c (vect_supported_load_permutation_p): Adjust.
2631         (vect_analyze_slp_cost_1): Account for the real number of
2632         permutations emitted and for dead loads.
2633         (vect_transform_slp_perm_load): Add n_perms parameter counting
2634         the number of emitted permutations.
2635         * tree-vect-stmts.c (vectorizable_load): Adjust.
2637 2016-11-07  Richard Biener  <rguenther@suse.de>
2639         PR tree-optimization/78189
2640         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Fix
2641         alignment computation.
2643 2016-11-06  Kugan Vivekanandarajah  <kuganv@linaro.org>
2645         * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove unreachable code.
2647 2016-11-05  Martin Sebor  <msebor@redhat.com>
2649         * doc/invoke.texi (Warning Options): Correct typos in -Walloca
2650         documentation.
2652 2016-11-05  David Edelsohn  <dje.gcc@gmail.com>
2654         PR bootstrap/78188
2655         PR c++/71848
2656         * ipa-comdats.c (pass_ipa_comdats::gate): Require HAVE_COMDAT_GROUP.
2658 2016-11-04  Jakub Jelinek  <jakub@redhat.com>
2660         PR target/77834
2661         * alias.c (nonoverlapping_memrefs_p): Return 0 if exprx or expry
2662         doesn't have rtl set.
2664 2016-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2666         * config/rs6000/rs6000.c (gimple-ssa.h): New #include.
2667         (TARGET_GIMPLE_FOLD_BUILTIN): Define as
2668         rs6000_gimple_fold_builtin.
2669         (rs6000_gimple_fold_builtin): New function.  Add handling for
2670         early expansion of vector addition builtins.
2672 2016-11-04  Eric Botcazou  <ebotcazou@adacore.com>
2674         * expr.h (copy_blkmode_from_reg): Delete.
2675         * expr.c (copy_blkmode_from_reg): Make static.
2677 2016-11-04  Eric Botcazou  <ebotcazou@adacore.com>
2679         * defaults.h (LOAD_EXTEND_OP): Define if not already defined.
2680         * combine.c (LOAD_EXTEND_OP): Delete.
2681         (simplify_comparison): Fix comment about LOAD_EXTEND_OP.
2682         * cse.c (LOAD_EXTEND_OP): Delete.
2683         * fold-const.c (LOAD_EXTEND_OP): Likewise.
2684         * fwprop.c (free_load_extend): Remove #ifdef LOAD_EXTEND_OP/#endif.
2685         * postreload.c (LOAD_EXTEND_OP): Delete.
2686         * reload.c (push_reload): Remove #ifdef LOAD_EXTEND_OP/#endif.
2687         Convert conditional compilation based on WORD_REGISTER_OPERATIONS.
2688         (find_reloads): Likewise.
2689         * reload1.c (eliminate_regs_1): Likewise.
2690         * rtlanal.c (nonzero_bits1): Remove #ifdef LOAD_EXTEND_OP/#endif.
2691         (num_sign_bit_copies1): Likewise.
2693 2016-11-04  David Malcolm  <dmalcolm@redhat.com>
2695         * config/i386/i386.c: Include "selftest.h" and "selftest-rtl.h".
2696         (selftest::ix86_test_dumping_hard_regs): New function.
2697         (selftest::ix86_run_selftests): New function.
2698         (TARGET_RUN_TARGET_SELFTESTS): When CHECKING_P, wire this up to
2699         selftest::ix86_run_selftests.
2700         * doc/tm.texi.in (TARGET_RUN_TARGET_SELFTESTS): New.
2701         * doc/tm.texi: Regenerate
2702         * selftest-rtl.h: New file.
2703         * rtl-tests.c: Include "selftest-rtl.h".
2704         (selftest::assert_rtl_dump_eq): Make non-static.
2705         (ASSERT_RTL_DUMP_EQ): Move to selftest-rtl.h.
2706         (selftest::test_dumping_regs): Update comment.
2707         * selftest-run-tests.c: Include "target.h".
2708         (selftest::run_tests): If non-NULL, call
2709         targetm.run_target_selftests.
2710         * target.def (run_target_selftests): New hook.
2712 2016-11-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2714         * config/arm/arm-arches.def (armv8-m.main+dsp): Set Cortex-M33 as
2715         representative core for this architecture.
2716         * config/arm/arm-cores.def (cortex-m33): Define new processor.
2717         * config/arm/arm-tables.opt: Regenerate.
2718         * config/arm/arm-tune.md: Likewise.
2719         * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M33 to the list of
2720         valid -mcpu options.
2721         * doc/invoke.texi (ARM Options): Document new Cortex-M33 processor.
2723 2016-11-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2725         * config/arm/arm-arches.def (armv8-m.base): Set Cortex-M23 as
2726         representative core for this architecture.
2727         * config/arm/arm-cores.def (cortex-m23): Define new processor.
2728         * config/arm/arm-tables.opt: Regenerate.
2729         * config/arm/arm-tune.md: Likewise.
2730         * config/arm/arm.c (arm_v6m_tune): Add Cortex-M23 to the list of cores
2731         this tuning parameters apply to in the comment.
2732         * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M23 to the list of
2733         valid -mcpu options.
2734         * doc/invoke.texi (ARM Options): Document new Cortex-M23 processor.
2736 2016-11-04  Bin Cheng  <bin.cheng@arm.com>
2738         * fold-const.c (fold_cond_expr_with_comparison): Remove call
2739         to pedantic_non_lvalue_loc.  Remove useless code for lvalue
2740         where cond_expr can't be a lvalue.
2742 2016-11-04  Claudiu Zissulescu  <claziss@synopsys.com>
2744         * config/arc/arc.c (arc_process_double_reg_moves): Use
2745         gen_dexcl_2op call.
2746         * config/arc/arc.md (movsi_insn): Disable unsupported move
2747         instructions for ARCv2 cores.
2748         (movdi): Use prepare_move_operands.
2749         (movsf, movdf): Use move_dest_operand predicate.
2750         * config/arc/constraints.md (Chs): Enable when barrel shifter is
2751         present.
2752         * config/arc/fpu.md (divsf3): Change to divsf3_fpu.
2753         * config/arc/fpx.md (dexcl_3op_peep2_insn): Dx data register is
2754         also a destination.
2755         (dexcl_3op_peep2_insn_nores): Likewise.
2756         * config/arc/arc.h (SHIFT_COUNT_TRUNCATED): Define to one.
2757         (LINK_COMMAND_SPEC): Remove.
2759 2016-11-04  Richard Biener  <rguenther@suse.de>
2761         PR middle-end/78185
2762         * loop-invariant.c (find_exits): Record entering inner
2763         loops as possibly exiting to handle infinite sub-loops.
2764         * tree-ssa-loop-im.c: Include tree-ssa-loop-niter.h.
2765         (fill_always_executed_in_1): Honor infinite child loops.
2767 2016-11-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
2769         PR target/78192
2770         * config/rs6000/vsx.md (vsx_extract_<mode>_di): The element number
2771         has already been adjusted for endianness, so don't adjust it any
2772         further.
2774         PR target/77993
2775         * config/rs6000/rs6000.h (FLOAT128_IBM_P): Do not allow IFmode or
2776         ICmode unless we have standard PowerPC floating point.
2777         * config/rs6000/rs6000.md (FP iterator): Likewise.
2778         (FMOVE128 iterator): Likewise.
2780 2016-11-03  Jakub Jelinek  <jakub@redhat.com>
2781             Alexandre Oliva  <aoliva@redhat.com>
2782             Jason Merrill  <jason@redhat.com>
2784         PR debug/28767
2785         PR debug/56974
2786         * langhooks.h (struct lang_hooks_for_types): Add type_dwarf_attribute
2787         langhook.
2788         * langhooks.c (lhd_type_dwarf_attribute): New function.
2789         * langhooks-def.h (lhd_type_dwarf_attribute): Declare.
2790         (LANG_HOOKS_TYPE_DWARF_ATTRIBUTE): Define.
2791         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add
2792         LANG_HOOKS_TYPE_DWARF_ATTRIBUTE.
2793         (check_qualified_type, check_aligned_type): Call it.
2794         * dwarf2out.c (modified_type_die): Don't use type_main_variant
2795         for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
2796         check_base_type and check_lang_type.
2797         (gen_ptr_to_mbr_type_die): If lookup_type_die is already non-NULL,
2798         return early.  For pointer-to-data-member add DW_AT_use_location
2799         attribute.
2800         (gen_subroutine_type_die): Add DW_AT_{,rvalue_}reference attribute
2801         if needed.
2802         (gen_type_die_with_usage): Don't use type_main_variant
2803         for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
2804         check_base_type and check_lang_type.  Formatting fixes. Call
2805         get_debug_type langhook.
2807 2016-11-03  Jason Merrill  <jason@redhat.com>
2809         * tree.c (check_lang_type): New.
2810         (check_qualified_type): Use it.
2811         (check_aligned_type): Use it.
2812         * tree.h: Declare it.
2814 2016-11-03  Richard Earnshaw  <rearnsha@arm.com>
2816         * config.gcc (arm-wrs-vxworks): Set target_cpu_cname.
2817         (arm*-freebsd*): Likewise.
2818         (arm*-*-netbsdelf*): Likewise.
2819         (arm*-*-linux*): Likewise.
2820         (arm*-*-uclinux*eabi*): Likewise.
2821         (arm*-*-phoenix*): Likewise.
2822         (arm*-*-eabi*, arm*-*-symbianelf*, arm*-*-rtems*): Likewise.
2823         (arm*-*-*): Don't clobber target_cpu_cname when --with-cpu is not
2824         specified.  Default to arm6 if target_cpu_cname is not set.
2825         * arm/arm.c (arm_option_override): Simplify logic.  Assert that the
2826         default cpu has been correctly configured.
2827         * arm/arm.h (TARGET_CPU_DEFAULT): Delete.
2828         (target_cpus): Delete TARGET_CPU_generic, add TARGET_CPU_num_cores.
2829         * arm/freebsd.h (SUBTARGET_CPU_DEFAULT): Delete.
2830         * arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Delete.
2831         * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
2832         * arm/symbian.h (SUBTARGET_CPU_DEFAULT): Delete.
2833         * arm/unknown-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
2835 2016-11-03  Jiong Wang  <jiong.wang@arm.com>
2837         * reg-notes.def (CFA_VAL_EXPRESSION): New entry.
2838         * dwarf2cfi.c (dwarf2out_frame_debug_cfa_val_expression): New function.
2839         (dwarf2out_frame_debug): Support REG_CFA_VAL_EXPRESSION.
2840         (output_cfa_loc): Support DW_CFA_val_expression.
2841         (output_cfa_loc_raw): Likewise.
2842         (output_cfi): Likewise.
2843         (output_cfi_directive): Likewise.
2844         * dwarf2out.c (dw_cfi_oprnd1_desc): Support DW_CFA_val_expression.
2845         (dw_cfi_oprnd2_desc): Likewise.
2846         (mem_loc_descriptor): Recognize new pattern generated for value
2847         expression.
2849 2016-11-03  Segher Boessenkool  <segher@kernel.crashing.org>
2851         PR rtl-optimization/78186
2852         * combine.c (change_zero_ext): Mask the RHS of a zero_extract as
2853         well, when converting to IOR.
2855 2016-11-03  Eric Botcazou  <ebotcazou@adacore.com>
2857         * config/sparc/sparc.md (vec_interleave_lowv8qi): Delete.
2858         (vec_interleave_highv8qi): Likewise.
2860 2016-11-03  Martin Liska  <mliska@suse.cz>
2862         * profile.c (instrument_values): Fix coding style.
2863         (branch_prob): Use renamed function.
2864         * tree-profile.c (init_ic_make_global_vars): Likewise.
2865         (gimple_init_edge_profiler): Rename to
2866         gimple_init_gcov_profiler.
2867         tree_time_profiler_counter variable declaration.
2868         (gimple_gen_time_profiler): Rewrite to do a direct gimple code
2869         emission.
2870         * value-prof.h: Remove an argument.
2872 2016-11-03  Richard Biener  <rguenther@suse.de>
2874         * config/rs6000/rs6000.c (rs6000_xcoff_declare_object_name): Use
2875         symtab_node::get_create.
2877 2016-11-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2879         * rtlanal.c (nonzero_bits1): Fix WORD_REGISTER_OPERATIONS condition.
2880         Move comments into more natural position.
2882 2016-11-03  Vineet Gupta  <vgupta@synopsys.com>
2884         * config/arc/arc.h (SIZE_TYPE): Define as unsigned int.
2885         (PTRDIFF_TYPE): Define as int.
2887 2016-11-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2889         * ccmp.c (expand_ccmp_expr_1): Adjust.
2890         (expand_ccmp_expr): Likewise.
2891         (expand_ccmp_next): Likewise.
2892         * config/aarch64/aarch64.c (aarch64_gen_ccmp_next): Likewise.
2893         (aarch64_gen_ccmp_first): Likewise.
2894         * doc/tm.texi: Regenerate.
2895         * target.def (gen_ccmp_first): Change argument types to rtx_insn *.
2896         (gen_ccmp_next): Likewise.
2898 2016-11-03  Bin Cheng  <bin.cheng@arm.com>
2900         * tree-vect-loop.c (destroy_loop_vec_info): Handle cond_expr.
2901         (vect_is_simple_reduction): Swap cond_reduction by inversion.
2903 2016-11-02  Uros Bizjak  <ubizjak@gmail.com>
2905         * config/i386/i386.c (ix86_init_libfuncs): New.  Call
2906         darwin_rename_builtins here.
2907         (ix86_expand_divmod_libfunc): New.
2908         (TARGET_INIT_LIBFUNCS): Unconditionally define to ix86_init_libfuncs.
2909         (TARGET_EXPAND_DIVMOD_LIBFUNC): Define.
2911 2016-11-02  Cesar Philippidis  <cesar@codesourcery.com>
2912             Nathan Sidwell  <nathan@acm.org>
2914         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): Set to zero.
2916 2016-11-02  Max Filippov  <jcmvbkbc@gmail.com>
2918         * config/xtensa/xtensa.c (xtensa_output_integer_literal_parts):
2919         New function.
2920         (xtensa_output_literal): Use xtensa_output_integer_literal_parts
2921         to format MODE_INT and MODE_PARTIAL_INT literals.
2923 2016-11-02  Segher Boessenkool  <segher@kernel.crashing.org>
2925         PR target/78168
2926         * config/r6000/rs6000.c (rs6000_get_separate_components): Return
2927         NULL if TARGET_SPE_ABI.
2929 2016-11-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2931         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Don't forget to
2932         clear padding bits even when they're less than a byte.
2934 2016-11-02  Richard Biener  <rguenther@suse.de>
2936         * gimple-ssa-store-merging.c: Include gimplify-me.h.
2937         (imm_store_chain_info::output_merged_stores): Force base_addr
2938         to be proper GIMPLE for a MEM_REF address.
2939         (pass_store_merging::execute): Restrict negative bitpos
2940         handling to non-MEM_REF bases.  Remove TREE_THIS_VOLATILE
2941         check.  Take into account non-NULL_TREE offset if the base
2942         is already addressable.
2944 2016-11-26  Wilco Dijkstra  <wdijkstr@arm.com>
2946         * config/aarch64/aarch64-simd.md (aarch64_crypto_sha1hv4si):
2947         New pattern.
2948         (aarch64_be_crypto_sha1hv4si): New pattern.
2950 2016-11-02  Wilco Dijkstra  <wdijkstr@arm.com>
2952         * config/aarch64/aarch64.md (add<mode>3): Remove
2953         redundant code.  Don't split frame based additions.
2955 2016-11-02  Richard Biener  <rguenther@suse.de>
2957         * gimple-ssa-store-merging.c (struct store_immediate_info): Remove
2958         redundant val and dest members.
2959         (store_immediate_info::store_immediate_info): Adjust.
2960         (merged_store_group::merged_store_group): Adjust.
2961         (merged_store_group::apply_stores): Likewise.
2962         (struct imm_store_chain_info): Add base_addr field.
2963         (imm_store_chain_info::imm_store_chain_info): New constructor.
2964         (imm_store_chain_info::terminate_and_process_chain): Do not pass base.
2965         (imm_store_chain_info::output_merged_store): Likewise.  Use
2966         addr_base which is already the address.
2967         (imm_store_chain_info::output_merged_stores): Likewise.
2968         (pass_tree_store_merging::terminate_all_aliasing_chains): Take
2969         imm_store_chain_info instead of base.  Fix alias check.
2970         (pass_tree_store_merging::terminate_and_release_chain): Likewise.
2971         (imm_store_chain_info::coalesce_immediate_stores): Adjust.
2972         (pass_store_merging::execute): Refuse to operate on TARGET_MEM_REF.
2973         use the address of the base and adjust for other changes.
2975 2016-11-02  Martin Liska  <mliska@suse.cz>
2977         * fold-const-call.c (host_size_t_cst_p): Test whether
2978         t is convertible to size_t.
2980 2016-11-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2982         PR tree-optimization/78170
2983         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Truncate padding
2984         introduced by native_encode_expr on little-endian as well.
2986 2016-11-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2988         PR tree-optimization/78162
2989         * gimple-ssa-store-merging.c (execute): Mark stores with bitpos < 0
2990         as invalid.
2992 2016-11-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2994         * config/aarch64/aarch64.c (aarch64_register_saved_on_entry): Add
2995         function comment.
2996         (aarch64_next_callee_save): Likewise.
2997         (aarch64_pushwb_single_reg): Likewise.
2998         (aarch64_gen_storewb_pair): Likewise.
2999         (aarch64_push_regs): Likewise.
3000         (aarch64_gen_loadwb_pair): Likewise.
3001         (aarch64_pop_regs): Likewise.
3002         (aarch64_gen_store_pair): Likewise.
3003         (aarch64_gen_load_pair): Likewise.
3004         (aarch64_save_callee_saves): Likewise.
3005         (aarch64_restore_callee_saves): Likewise.
3007 2016-11-02  Richard Biener  <rguenther@suse.de>
3009         PR tree-optimization/78035
3010         PR tree-optimization/77964
3011         * gimple-pretty-print.c (pp_points_to_solution): Print
3012         vars_contains_interposable.
3013         * tree-ssa-alias.c: Include varasm.h.
3014         (ptrs_compare_unequal): Check vars_contains_interposable and
3015         decl_binds_to_current_def_p.
3016         (dump_points_to_solution): Dump vars_contains_interposable.
3017         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_interposable
3018         flag.
3019         * tree-ssa-structalias.c: Include varasm.h.
3020         (set_uids_in_ptset): Record whether vars contains a
3021         not decl_binds_to_current_def_p variable in vars_contains_interposable.
3022         (ipa_escaped_pt): Update initializer.
3024 2016-11-02  Richard Biener  <rguenther@suse.de>
3026         PR tree-optimization/78047
3027         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Initialize
3028         fake field at offset zero conservatively regarding to may_have_pointers.
3030 2016-11-02  Richard Biener  <rguenther@suse.de>
3032         * tree-vrp.c (evrp_dom_walker::before_dom_children): Call
3033         infer_value_range on stmt ops and update value-ranges.
3034         Dump visited stmts and blocks.
3035         (evrp_dom_walker::push_value_range): Dump changes.
3036         (evrp_dom_walker::pop_value_range): Likewise.
3037         (evrp_dom_walker::try_find_new_range): Avoid noop changes.
3039 2016-11-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3041         * emit-rtl.c (prev_nonnote_insn_bb): Change argument type to
3042         rtx_insn *.
3043         * rtl.h (prev_nonnote_insn_bb): Adjust prototype.
3045 2016-11-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3047         * cfgrtl.c (delete_insn_chain): Change argument type to rtx_insn *
3048         and adjust for that.
3049         * cfgrtl.h (delete_insn_chain): Adjust prototype.
3051 2016-11-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3053         * config/rl78/rl78.c (gen-and_emit_move): Change argument type
3054         to rtx_insn *.
3055         (transcode_memory_rtx): Likewise.
3056         (move_to_acc): Likewise.
3057         (move_from_acc): Likewise.
3058         (move_acc_to_reg): Likewise.
3059         (move_to_x): Likewise.
3060         (move_to_hl): Likewise.
3061         (move_to_de): Likewise.
3062         * config/rs6000/rs6000.c (emit_frame_save): Likewise.
3063         (rs6000_emit_savres_rtx): Likewise.
3064         (rs6000_emit_prologue): Likewise.
3065         * reorg.c (update_reg_unused_notes): Likewise.
3066         * rtl.h (remove_note): Adjust prototype.
3067         * rtlanal.c (remove_note): Make argument type rtx_insn *.
3069 2016-11-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3071         * config/alpha/alpha.c (alpha_legitimize_address_1): Split up
3072         variables so some can be rtx_insn *.
3073         (alpha_emit_xfloating_libcall): Likewise.
3074         * config/mips/mips.c (mips_call_tls_get_addr): Likewise.
3075         (mips_legitimize_tls_address): Likewise.
3076         * optabs.c (expand_binop): Likewise.
3077         * reload1.c (gen_reload): Likewise.
3079 2016-11-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3081         * reorg.c (relax_delay_slots): Split up the trial variable.
3083 2016-11-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3085         * config/arc/arc.c (arc_emit_call_tls_get_addr): Make the type
3086         of variables rtx_insn *.
3087         * config/arm/arm.c (arm_call_tls_get_addr): Likewise.
3088         (legitimize_tls_address): Likewise.
3089         * config/bfin/bfin.c (hwloop_optimize): Likewise.
3090         (bfin_gen_bundles): Likewise.
3091         * config/c6x/c6x.c (reorg_split_calls): Likewise.
3092         (c6x_reorg): Likewise.
3093         * config/frv/frv.c (frv_reorder_packet): Likewise.
3094         * config/i386/i386.c (ix86_split_idivmod): Likewise.
3095         * config/ia64/ia64.c (ia64_expand_compare): Likewise.
3096         * config/m32c/m32c.c (m32c_prepare_shift): Likewise.
3097         * config/mn10300/mn10300.c: Likewise.
3098         * config/rl78/rl78.c: Likewise.
3099         * config/s390/s390.c (s390_fix_long_loop_prediction): Likewise.
3100         * config/sh/sh-mem.cc (sh_expand_cmpstr): Likewise.
3101         (sh_expand_cmpnstr): Likewise.
3102         (sh_expand_strlen): Likewise.
3103         (sh_expand_setmem): Likewise.
3104         * config/sh/sh.md: Likewise.
3105         * emit-rtl.c (emit_pattern_before): Likewise.
3106         * except.c: Likewise.
3107         * final.c: Likewise.
3108         * jump.c: Likewise.
3110 2016-11-01  Jason Merrill  <jason@redhat.com>
3112         * tree-inline.c (copy_tree_body_r): Only copy the taken branch of
3113         a COND_EXPR with constant condition.
3115 2016-11-01  Jakub Jelinek  <jakub@redhat.com>
3117         * dwarf2out.c (gen_variable_die): Remove again origin_die variable
3118         and its initialization.
3120 2016-11-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3122         * dwarf2out.c (output_rnglists): Wrap basebuf, len in
3123         HAVE_AS_LEB128.
3125 2016-11-01  Jakub Jelinek  <jakub@redhat.com>
3127         * dwarf2out.c (add_name_and_src_coords_attributes): Add NO_LINKAGE_NAME
3128         argument, don't call add_linkage_name if it is true.
3129         (gen_variable_die): For C++ inline static data members, consider the
3130         initial call when old_die is NULL to be declaration and call
3131         add_name_and_src_coords_attributes in that case with true as
3132         NO_LINKAGE_NAME.  Add DW_AT_inline attribute if needed.
3133         (gen_member_die): For C++ inline static data members, emit a
3134         definition DIE right away in DW_TAG_compile_unit context.
3136 2016-11-01  John David Anglin  <danglin@gcc.gnu.org>
3138         PR target/78166
3139         * config/pa/pa.md: Add new shift/add patterns to handle
3140         (plus (mult (reg) (mem_shadd_operand)) (reg)) source operand.
3142 2016-11-01  Max Filippov  <jcmvbkbc@gmail.com>
3144         * config/xtensa/xtensa-protos.h
3145         (xtensa_use_return_instruction_p): New prototype.
3146         * config/xtensa/xtensa.c (xtensa_current_frame_size,
3147         xtensa_callee_save_size): Remove.
3148         (struct machine_function): Add new fields: current_frame_size,
3149         callee_save_size, frame_laid_out and epilogue_done.
3150         (compute_frame_size, xtensa_expand_prologue,
3151         xtensa_expand_epilogue): Replace xtensa_callee_save_size with
3152         cfun->machine->callee_save_size and xtensa_current_frame_size
3153         with cfun->machine->current_frame_size.
3154         (compute_frame_size): Update cfun->machine->frame_laid_out and
3155         don't update frame layout after reload completion.
3156         (xtensa_expand_epilogue): Set cfun->machine->epilogue_done
3157         instead of zeroing xtensa_current_frame_size.
3158         (xtensa_use_return_instruction_p): New function.
3159         * config/xtensa/xtensa.h (xtensa_current_frame_size): Remove
3160         declaration.
3161         (INITIAL_ELIMINATION_OFFSET): Use return value of
3162         compute_frame_size instead of xtensa_current_frame_size value.
3163         * config/xtensa/xtensa.md ("return" pattern): Use new predicate
3164         function xtensa_use_return_instruction_p instead of inline code.
3166 2016-11-01  Jakub Jelinek  <jakub@redhat.com>
3168         * tree.h (BLOCK_IN_COLD_SECTION_P): Define.
3169         * final.c (final_scan_insn): Set BLOCK_IN_COLD_SECTION_P.
3170         * dwarf2out.c (rnglist_idx): New variable.
3171         (struct dw_ranges): Add label, idx and maybe_new_sec fields.
3172         (DEBUG_RNGLISTS_SECTION): Define.
3173         (ranges_base_label): New variable.
3174         (size_of_die) <case dw_val_class_range_list>: If using
3175         DW_FORM_rnglistx, count size of uleb128 of range list index.
3176         (value_format) <case dw_val_class_range_list>: For
3177         -gdwarf-5 -gsplit-dwarf return DW_FORM_rnglistx.
3178         (output_range_list_offset): Handle -gdwarf-5 .debug_rnglists
3179         offsets.  Multiply dwarf < 5 offsets by 2 * DWARF_ADDR_SIZE.
3180         (add_ranges_num): Remove useless prototype.  Don't multiply
3181         by 2 * DWARF2_ADDR_SIZE.  Add maybe_new_sec argument, adjust
3182         for new fields added to dw_ranges struct.
3183         (add_ranges): Add maybe_new_sec argument and pass it
3184         through to add_ranges_num.
3185         (note_rnglist_head): New function.
3186         (add_ranges_by_labels): Pass true as maybe_new_sec to
3187         add_ranges_num, call note_rnglist_head on the head of the list.
3188         (output_ranges): Add function comment.  Switch to
3189         .debug_ranges section here and emit .Ldebug_ranges0 label.
3190         (index_rnglists, output_rnglists): New functions.
3191         (gen_subprogram_die): Formatting fixes.
3192         (add_high_low_attributes): Don't divide offsets
3193         by 2 * DWARF2_ADDR_SIZE.  Call note_rnglist_head on the
3194         first list element or when pointing into the middle of
3195         a list.  Pass true as second argument to add_ranges on the
3196         first block fragment after cold/hot section switch.
3197         (init_sections_and_labels): For -gdwarf-5 use .debug_rnglists
3198         section instead of .debug_ranges.  Initialize
3199         ranges_base_label if -gdwarf-5 -gsplit-dwarf.
3200         (dwarf2out_finish): For -gdwarf-5 -gsplit-dwarf call
3201         index_rnglists and add DW_AT_rnglists_base attr.  Don't switch
3202         to dwarf_ranges_section here or emit .Ldebug_ranges0 label.
3203         Call output_rnglists for -gdwarf-5.
3204         (dwarf2out_c_finalize): Clear rnglist_idx.
3206 2016-11-01  Fritz Reese  <fritzoreese@gmail.com>
3208         * combine.c (simplify_compare_const): Add gcc_fallthrough.
3210 2016-11-01  Bilyan Borisov  <bilyan.borisov@arm.com>
3211             Tamar Christina <tamar.christina@arm.com>
3213         * config/arm/arm-c.c (arm_cpu_builtins): New macro definition.
3214         * config/arm/arm_neon.h (vmaxnm_f32): New intrinsinc.
3215         (vmaxnmq_f32): Likewise.
3216         (vminnm_f32): Likewise.
3217         (vminnmq_f32): Likewise.
3218         * config/arm/arm_neon_builtins.def (vmaxnm): New builtin.
3219         (vminnm): Likewise.
3220         * config/arm/neon.md (neon_<fmaxmin_op><mode>, VCVTF): New
3221         expander.
3223 2016-10-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
3225         * config/rs6000/vsx.md (VSX_EXTRACT_FL): New iterator for all
3226         binary floating point types supported by the hardware except for
3227         double.
3228         (vsx_xvcvsxwdp_df): Provide scalar result alternative to the
3229         vector instruction for optimizing extracting a SImode from a
3230         V4SImode vector and converting it to floating point.
3231         (vsx_xvcvuxwdp_df): Likewise.
3232         (vsx_extract_si): On ISA 3.0, allow extract target and temporary
3233         registers to be any VSX register.  Move stores to the end of the
3234         constraints.
3235         (vsx_extract_si_<uns>float_df): New combiner pattern and splitter
3236         to optimize extracting a SImode from a V4SImode vector and
3237         converting it to a binary floating point type supported by the
3238         hardware.  Use the vector converts instead of extracting the
3239         element, sign extending it, and then converting it to double.
3240         Other floating point types  than double first convert to double,
3241         then the double is converted to that type.
3242         (vsx_extract_si_<uns>float_<mode>): Likewise.
3244 2016-10-31  Andrew Pinski  <apinski@cavium.com>
3246         * config/aarch64/driver-aarch64.c (host_detect_local_cpu):
3247         Rewrite handling of part num to handle the case where
3248         multiple implementers share the same part num.
3250 2016-10-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
3251             Jakub Jelinek  <jakub@redhat.com>
3253         * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): Adjust for -gdwarf-5.
3254         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Likewise.
3256 2016-10-31  Jakub Jelinek  <jakub@redhat.com>
3258         * dwarf2out.c (dwarf_AT): Handle DW_AT_dwo_name.
3259         (use_debug_types): Adjust comment for DWARF5 DW_UT_type units.
3260         (new_die): Handle DW_TAG_skeleton_unit like DW_TAG_compile_unit.
3261         (is_cu_die, is_unit_die): Likewise.
3262         (should_move_die_to_comdat, break_out_comdat_types): Adjust
3263         comments for DWARF5 DW_UT_type units.
3264         (output_compilation_unit_header): Add UT argument, output
3265         start of DWARF5 .debug_info section header.
3266         (output_comp_unit): Add dwo_id argument.  Adjust
3267         output_compilation_unit_header caller, for DW_UT_split_compile
3268         emit dwo_id field, otherwise padding1.  Emit padding2 field.
3269         (add_top_level_skeleton_die_attrs): Add DW_AT_dwo_name
3270         rather than DW_AT_GNU_dwo_name attr for -gdwarf-5.
3271         (output_skeleton_debug_sections): Add dwo_id argument, for
3272         -gdwarf-5 emit DWARF 5 DW_UT_skeleton header.
3273         (output_comdat_type_unit): For -gdwarf-5 emit .debug_info
3274         DW_UT_type or DW_UT_split_type units rather than .debug_types.
3275         (dwarf2out_finish): Use DW_TAG_skeleton_unit rather than
3276         DW_TAG_compile_unit for skeleton unit die.  Don't add
3277         DW_AT_GNU_dwo_id attributes for -gdwarf-5, instead pass checksum
3278         address to output_comp_unit and output_skeleton_debug_sections.
3280         * dwarf2out.c (debug_line_str_section): New variable.
3281         (debug_line_str_hash): Likewise.
3282         (DEBUG_LINE_STR_SECTION): Define.
3283         (set_indirect_string): Handle DW_FORM_line_strp like
3284         DW_FORM_strp.
3285         (find_string_form): Fix up formatting.
3286         (size_of_die): Handle DW_FORM_line_strp like DW_FORM_strp.
3287         Fix up indentation.
3288         (output_die): Handle DW_FORM_line_strp.
3289         (DWARF5_USE_DEBUG_LINE_STR): Define.
3290         (output_line_string): New function.
3291         (output_file_names): Add -gdwarf-5 support.
3292         (output_line_info): Likewise.
3293         (init_sections_and_labels): Initialize debug_line_str_section.
3294         (output_indirect_string): Change 2nd argument from void *
3295         to enum dwarf_form form, compare with form rather than
3296         DW_FORM_strp.
3297         (output_indirect_strings): Pass DW_FORM_strp to
3298         output_indirect_string traversion.
3299         (dwarf2out_finish): Output .debug_line_str strings.
3300         (dwarf2out_c_finalize): Clear debug_line_str_section and
3301         debug_line_str_hash.
3303 2016-10-31  Tom Tromey  <tom@tromey.com>
3305         PR debug/77315
3306         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_form_tls_address.
3307         (resolve_args_picking_1): Move DW_OP_form_tls_address case next to
3308         DW_OP_GNU_push_tls_address case.
3309         (loc_list_from_tree_1): Use DW_OP_form_tls_address.
3311 2016-10-31  Jakub Jelinek  <jakub@redhat.com>
3313         * dwarf2out.h (struct dw_loc_descr_node): Adjust comment
3314         for frame_offset_rel bit.
3315         (struct array_descr_info): Add rank field.
3316         * dwarf2out.c (struct loc_descr_context): Add placeholder_arg
3317         and placeholder_seen fields.
3318         (resolve_args_picking_1): Handle also frame_offset_rel DW_OP_dup
3319         and DW_OP_over.  Optimize DW_OP_pick 0 into DW_OP_dup and
3320         DW_OP_pick 1 into DW_OP_over.
3321         (function_to_dwarf_procedure, type_byte_size, field_byte_offset,
3322         gen_variant_part): Clear placeholder_{arg,seen}.
3323         (loc_list_from_tree_1): Drop const from context argument.
3324         Handle integral PLACEHOLDER_EXPR if context->placeholder_arg.
3325         (loc_list_for_address_of_addr_expr_of_indirect_ref,
3326         loc_list_from_tree, loc_descriptor_from_tree): Drop const from
3327         context argument.
3328         (add_scalar_info): Drop const from context argument.  Handle
3329         context->placeholder_arg.
3330         (add_bound_info): Drop const from context argument.
3331         (gen_descr_array_type_die): Drop const from ctx variable.
3332         Initialize placeholder_arg and placeholder_seen.  Add DW_AT_rank
3333         attribute and use a single DW_TAG_generic_subrange instead of
3334         7 DW_TAG_subrange_type for assumed rank arrays.
3336         * dwarf2out.h (enum dw_val_class): Add dw_val_class_loclistsptr.
3337         * dwarf2out.c (struct dw_loc_list_struct): Change emitted field
3338         from bool to 1-bit uchar bitfield.  Add num_assigned and
3339         offset_emitted bitfields.
3340         (dw_val_equal_p): Compare v.val_lbl_id rather than v.val_unsigned
3341         for dw_val_class_lineptr and dw_val_class_macptr.  Handle
3342         dw_val_class_loclistsptr.
3343         (new_addr_loc_descr): Fix up formatting.
3344         (DEBUG_LOCLISTS_SECTION, DEBUG_DWO_LOCLISTS_SECTION): Define.
3345         (add_AT_low_high_pc): Fix up formatting.
3346         (add_AT_loclistsptr): New function.
3347         (AT_lbl): Allow dw_val_class_loclistsptr.
3348         (print_dw_val, attr_checksum, attr_checksum_ordered, same_dw_val_p):
3349         Handle dw_val_class_loclistsptr.
3350         (loc_list_idx): New variable.
3351         (output_loclists_offsets, assign_location_list_indexes): New
3352         functions.
3353         (size_of_die): For dw_val_class_loc_list -gsplit-dwarf -gdwarf-5
3354         add size_of_uleb128 of the index.  Drop never used
3355         dwarf_split_debug_info AT_index handling.  Handle
3356         dw_val_class_loclistsptr.
3357         (value_format): Return DW_FORM_loclistsx for dw_val_class_loc_list
3358         if -gsplit-dwarf -gdwarf-5.  Handle dw_val_class_loclistsptr.
3359         (output_loc_list): Handle DWARF 5 .debug_loclists* format.
3360         (output_loc_list_offset): Handle -gsplit-dwarf -gdwarf-5
3361         DW_FORM_loclistx indexes.
3362         (output_attr_index_or_value): Fix up formatting.  Don't handle
3363         dw_val_class_loc_list here.
3364         (output_die): Formatting fixes.  Handle dw_val_class_loclistsptr.
3365         For dw_val_class_loc_list call output_loc_list_offset rather than
3366         output_attr_index_or_value.
3367         (init_sections_and_labels): For -gdwarf-5 use .debug_loclists
3368         or .debug_loclists.dwo section name for debug_loc_section.
3369         (resolve_addr_in_expr): Formatting fix.
3370         (index_location_lists): Likewise.
3371         (dwarf2out_finish): If there are any location lists, for
3372         -gsplit-dwarf -gdwarf-5 add DW_AT_loclists_base attribute.  Call
3373         index_location_lists only if have_location_lists.  Call
3374         assign_location_list_indexes for -gsplit-dwarf -gdwarf-5.  Emit
3375         .debug_loclists{,.dwo} section header for -gdwarf-5, for -gdwarf-5
3376         -gsplit-dwarf also emit offset table.
3378         * dwarf2out.c (DWARF_LARGEST_DATA_FORM_BITS): Define.
3379         (size_of_die, value_format, output_die): Use
3380         DW_FORM_data16 for 128-bit dw_val_class_const_double or
3381         dw_val_class_wide_int.
3383         * dwarf2out.c (dwarf_op): Renamed to ...
3384         (dwarf_OP): ... this.
3385         (convert_descriptor_to_mode, scompare_loc_descriptor,
3386         minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
3387         implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr): Adjust
3388         callers.
3389         (dwarf_AT, dwarf_TAG): New functions.
3390         (check_die): Disallow DW_AT_call_all_calls next to
3391         DW_AT_GNU_all_call_sites.
3392         (gen_call_site_die): Use dwarf_TAG and dwarf_AT with DWARF 5 tag
3393         and attributes instead of the corresponding GNU tag and attributes.
3394         (gen_subprogram_die): Likewise.  Emit call site information even
3395         for -gdwarf-5 -gstrict-dwarf.  Replace DW_AT_GNU_defaulted with
3396         DW_AT_defaulted in comment.
3397         (resolve_addr): Handle DW_AT_call_origin attribute on
3398         DW_TAG_call_site DIE like DW_AT_abstract_origin on
3399         DW_TAG_GNU_call_site DIE.
3401         * dwarf2out.c (dwarf_op): New function.
3402         (size_of_loc_descr): Handle DW_OP_{implicit_pointer,entry_value},
3403         DW_OP_{const,regval,deref}_type and DW_OP_{convert,reinterpret}.
3404         (output_loc_operands, output_loc_operands_raw): Likewise.
3405         (resolve_args_picking_1, prune_unused_types_walk_loc_descr,
3406         mark_base_types, hash_loc_operands, compare_loc_operands): Likewise.
3407         (resolve_addr_in_expr): Likewise.  Only punt for !dwarf_strict
3408         if dwarf_version < 5.
3409         (convert_descriptor_to_mode): Use dwarf_op (DW_OP_xxx) instead of
3410         DW_OP_GNU_xxx.
3411         (scompare_loc_descriptor, ucompare_loc_descriptor,
3412         minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
3413         implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr,
3414         optimize_location_into_implicit_ptr): Likewise.  Only punt for
3415         !dwarf_strict if dwarf_version < 5.
3416         (string_cst_pool_decl): Adjust comment.
3417         (non_dwarf_expression): Handle DW_OP_implicit_pointer.
3419         * dwarf2out.h (enum dw_val_class): Add dw_val_class_const_implicit,
3420         dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
3421         (struct dw_val_node): Add val_file_implicit field.
3422         * dwarf2out.c (dw_val_equal_p, print_dw_val, attr_checksum,
3423         attr_checksum_ordered, same_dw_val_p, size_of_die, value_format,
3424         output_die): Handle dw_val_class_const_implicit,
3425         dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
3426         (abbrev_die_table): Change into va_gc vec.
3427         (abbrev_die_table_allocated, abbrev_die_table_in_use,
3428         ABBREV_DIE_TABLE_INCREMENT): Remove.
3429         (AT_int, AT_unsigned, AT_file): Allow dw_val_class_*_implicit.
3430         (abbrev_opt_start, abbrev_usage_count, sorted_abbrev_dies): New
3431         variables.
3432         (build_abbrev_table): Adjust for abbrev_die_table being a va_gc vec.
3433         If abbrev_opt_start, fill in abbrev_usage_count and abbrev_dies
3434         vectors.
3435         (die_abbrev_cmp, optimize_implicit_const, optimize_abbrev_table): New
3436         functions.
3437         (output_die_abbrevs): For DW_FORM_implicit_const emit sleb128 with
3438         the implicit value.
3439         (output_abbrev_section): Adjust for abbrev_die_table being a va_gc
3440         vec.
3441         (output_comp_unit): Initialize abbrev_opt_start if emitting the main
3442         unit.  Call optimize_abbrev_table.
3443         (dwarf2out_init, dwarf2out_finish, dwarf2out_c_finalize): Adjust for
3444         abbrev_die_table being a va_gc vec.
3446         PR tree-optimization/77860
3447         * tree-ssa-reassoc.c (eliminate_using_constants): Handle
3448         also integral complex and vector constants.
3450         * dwarf2out.c (dwarf2out_define, dwarf2out_undef, output_macinfo_op,
3451         optimize_macinfo_range, save_macinfo_strings): Replace
3452         DW_MACRO_GNU_* constants with corresponding DW_MACRO_* constants.
3453         (output_macinfo): Likewise.  Emit .debug_macro* rather than
3454         .debug_macinfo* even for -gstrict-dwarf -gdwarf-5.
3455         (init_sections_and_labels): Use .debug_macro* labels rather than
3456         .debug_macinfo* labels even for -gstrict-dwarf -gdwarf-5.
3457         (dwarf2out_finish): Use DW_AT_macros instead of DW_AT_macro_info
3458         or DW_AT_GNU_macros for -gdwarf-5.
3460 2016-10-31  Waldemar Brodkorb  <wbx@openadk.org>
3462         * config/microblaze/linux.h (UCLIBC_DYNAMIC_LINKER): Define.
3464 2016-09-11  Le-Chun Wu  <lcwu@google.com>
3465             Mark Wielaard  <mjw@redhat.com>
3467         * common.opt (Wshadow=global): New option. Default for -Wshadow.
3468         (Wshadow=local): New option.
3469         (Wshadow-local): Hidden alias for -Wshadow=local.
3470         (Wshadow=compatible-local): New option.
3471         (Wshadow-compatible-local): Hidden alias for
3472         -Wshadow=compatible-local.
3473         * doc/invoke.texi: Document Wshadow=global, Wshadow=local and
3474         Wshadow=compatible-local.
3476 2016-10-31  Bin Cheng  <bin.cheng@arm.com>
3478         * tree-vect-slp.c (vect_get_and_check_slp_defs): New parameter SWAP.
3479         Check slp defs for COND_EXPR by swapping/inverting operands if the
3480         new parameter SWAP indicates so.
3481         (vect_build_slp_tree_1): New parameter SWAP.  Check COND_EXPR stmt
3482         is isomorphic to the first stmt via swapping/inverting.  Store swap
3483         information in the new parameter SWAP.
3484         (vect_build_slp_tree): New local array SWAP and pass it to function
3485         vect_build_slp_tree_1.  Cleanup result handling code for function
3486         call to vect_get_and_check_slp_defs.  Skip operand swapping if the
3487         order of operands has been fixed as indicated by SWAP[i].
3489 2016-10-31  Bin Cheng  <bin.cheng@arm.com>
3491         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): Skip
3492         unnecessary data dependence check after visited store stmt.
3494 2016-10-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3496         PR tree-optimization/71915
3497         PR tree-optimization/71490
3498         * gimple-ssa-strength-reduction.c (struct slsr_cand_d): Add
3499         stride_type field.
3500         (find_basis_for_base_expr): Require stride types to match when
3501         seeking a basis.
3502         (alloc_cand_and_find_basis): Record the stride type.
3503         (slsr_process_phi): Pass stride type to alloc_cand_and_find_basis.
3504         (backtrace_base_for_ref): Pass types to legal_cast_p_1 rather than
3505         the expressions having those types.
3506         (slsr_process_ref): Pass stride type to alloc_cand_and_find_basis.
3507         (create_mul_ssa_cand): Likewise.
3508         (create_mul_imm_cand): Likewise.
3509         (create_add_ssa_cand): Likewise.
3510         (create_add_imm_cand): Likewise.
3511         (legal_cast_p_1): Change interface to accept types rather than the
3512         expressions having those types.
3513         (legal_cast_p): Pass types to legal_cast_p_1.
3514         (slsr_process_cast): Pass stride type to
3515         alloc_cand_and_find_basis.
3516         (slsr_process_copy): Likewise.
3517         (dump_candidate): Display stride type when a cast exists.
3518         (create_add_on_incoming_edge): Introduce a cast when necessary for
3519         the stride type.
3520         (analyze_increments): Change the code checking for invalid casts
3521         to rely on the stride type, and update the documentation and
3522         example.  Change the code checking for pointer multiplies to rely
3523         on the stride type.
3524         (insert_initializers): Introduce a cast when necessary for the
3525         stride type.  Use the stride type for the type of the initializer.
3527 2016-10-30  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3529         * config/arm/arm.c (arm_const_not_ok_for_debug_p): Use VAR_P.
3531 2016-10-29  Jakub Jelinek  <jakub@redhat.com>
3533         PR rtl-optimization/77919
3534         * expr.c (expand_expr_real_1) <normal_inner_ref>: Only avoid forcing
3535         into memory if both modes are complex and their inner modes have the
3536         same precision.  If the two modes are different complex modes, convert
3537         each part separately and generate a new CONCAT.
3539 2016-10-29  John David Anglin  <danglin@gcc.gnu.org>
3541         * config/pa/pa64-hpux.h (FINI_SECTION_ASM_OP): Define to null string.
3543 2016-10-29  Jakub Jelinek  <jakub@redhat.com>
3545         PR target/78148
3546         * gimple-ssa-store-merging.c
3547         (imm_store_chain_info::output_merged_store): Use build_aligned_type
3548         instead of SET_TYPE_ALIGN on shared integral type.
3550 2016-10-29  John David Anglin  <danglin@gcc.gnu.org>
3552         * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
3553         (MALLOC_ABI_ALIGNMENT): Define to 128 on all targets except SOM.
3554         Adjust comment.
3556 2016-10-28  Jeff Law  <law@redhat.com>
3558         * config/vax/vax.h (REGNO_REG_CLASS): Access the REGNO argument.
3559         * config/spu/spu.h (REGNO_REG_CLASS): Likewise.
3561 2016-10-28  Eric Botcazou  <ebotcazou@adacore.com>
3563         * doc/sourcebuild.texi (Ada Tests): Remove mention of gcc chapter.
3565 2016-10-28  Eric Botcazou  <ebotcazou@adacore.com>
3567         * target.def (min_arithmetic_precision): New hook.
3568         * doc/tm.texi.in (Misc): Add TARGET_MIN_ARITHMETIC_PRECISION.
3569         * doc/tm.texi: Regenerate.
3570         * internal-fn.c (expand_arith_overflow): Adjust handling of target
3571         dependent support by means of TARGET_MIN_ARITHMETIC_PRECISION.
3572         * targhooks.c (default_min_arithmetic_precision): New function.
3573         * targhooks.h (default_min_arithmetic_precision): Declare.
3574         * config/sparc/sparc.c (TARGET_MIN_ARITHMETIC_PRECISION): Define.
3575         (sparc_min_arithmetic_precision): New function.
3577 2016-10-28  Segher Boessenkool  <segher@kernel.crashing.org>
3579         PR target/71847
3580         * combine.c (change_zero_ext): Handle zero_ext of hard registers.
3581         Swap commutative operands in new RTL if needed.  Handle zero_ext
3582         in the set_dest.
3583         (recog_for_combine): Pass *pnewpat to change_zero_ext instead of
3584         PATTERN (insn).
3586 2016-10-28  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3587             Kugan Vivekanandarajah  <kuganv@linaro.org>
3588             Jim Wilson  <jim.wilson@linaro.org>
3590         PR tree-optimization/43721
3591         * target.def: New hook expand_divmod_libfunc.
3592         * doc/tm.texi.in: Add hook for TARGET_EXPAND_DIVMOD_LIBFUNC.
3593         * doc/tm.texi: Regenerate.
3594         * internal-fn.def: Add new entry for DIVMOD ifn.
3595         * internal-fn.c (expand_DIVMOD): New.
3596         * tree-ssa-math-opts.c: Include optabs-libfuncs.h, tree-eh.h,
3597         targhooks.h.
3598         (widen_mul_stats): Add new field divmod_calls_inserted.
3599         (target_supports_divmod_p): New.
3600         (divmod_candidate_p): Likewise.
3601         (convert_to_divmod): Likewise.
3602         (pass_optimize_widening_mul::execute): Call calculate_dominance_info,
3603         renumber_gimple_stmt_uids at beginning of function. Call
3604         convert_to_divmod and record stats for divmod.
3605         * config/arm/arm.c (arm_expand_divmod_libfunc): Override hook
3606         TARGET_EXPAND_DIVMOD_LIBFUNC.
3607         * doc/sourcebuild.texi: Add items for arm_divmod_simode, divmod,
3608         divmod_simode.
3610 2016-10-28  Eric Botcazou  <ebotcazou@adacore.com>
3611             Segher Boessenkool  <segher@kernel.crashing.org>
3613         * dojump.c (do_jump_by_parts_greater_rtx): Invert probability when
3614         swapping the arms of the branch.
3615         * internal-fn.c (expand_addsub_overflow): Use a straight-line code
3616         sequence for the generic signed-signed-signed case.
3618 2016-10-28  Jeff Law  <law@redhat.com>
3620         * config/bfin/bfin.c (bfin_legitimate_address_p): Add missing
3621         fallthru comment.
3622         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
3624 2016-10-28  Segher Boessenkool  <segher@kernel.crashing.org>
3626         PR rtl-optimization/78029
3627         * function.c (prologue_contains, epilogue_contains): New functions.
3628         (record_prologue_seq, record_epilogue_seq): New functions.
3629         * function.h (prologue_contains, epilogue_contains,
3630         record_prologue_seq, record_epilogue_seq): New declarations.
3631         * sched-deps.c (sched_analyze_insn): Make dependencies to prevent
3632         mixing prologue and epilogue insns.
3633         (init_deps): Initialize the new fields in struct deps_desc.
3634         * sched-int.h (struct deps_desc): New fields last_prologue,
3635         last_epilogue, and last_logue_was_epilogue.
3636         * shrink-wrap.c (emit_common_heads_for_components): Record all
3637         emitted prologue and epilogue insns.
3638         (emit_common_tails_for_components): Ditto.
3639         (insert_prologue_epilogue_for_components): Ditto.
3641 2016-10-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3643         PR middle-end/22141
3644         * Makefile.in (OBJS): Add gimple-ssa-store-merging.o.
3645         * common.opt (fstore-merging): New Optimization option.
3646         * opts.c (default_options_table): Add entry for
3647         OPT_ftree_store_merging.
3648         * fold-const.h (can_native_encode_type_p): Declare prototype.
3649         * fold-const.c (can_native_encode_type_p): Define.
3650         * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Define.
3651         (PARAM_MAX_STORES_TO_MERGE): Likewise.
3652         * timevar.def (TV_GIMPLE_STORE_MERGING): New timevar.
3653         * passes.def: Insert pass_tree_store_merging.
3654         * tree-pass.h (make_pass_store_merging): Declare extern
3655         prototype.
3656         * gimple-ssa-store-merging.c: New file.
3657         * doc/invoke.texi (Optimization Options): Document
3658         -fstore-merging.
3659         (--param documentation): Document store-merging-allow-unaligned
3660         and max-stores-to-merge.
3662 2016-10-28  Will Schmidt <will_schmidt@vnet.ibm.com>
3664         PR middle-end/72747
3665         * gimplify.c (gimplify_init_constructor): Move emit of constructor
3666         assignment to earlier in the if/else logic.
3668 2016-10-28  Richard Biener  <rguenther@suse.de>
3670         PR middle-end/78128
3671         PR middle-end/71002
3672         * fold-const.c (make_bit_field_ref): Only adjust alias set
3673         when the original alias set was zero.
3675 2016-10-28  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3677         * config/s390/s390.c (s390_adjust_loop_scan_osc): New function.
3678         (s390_adjust_loops): New function.
3679         (s390_reorg): Invoke s390_adjust_loops.
3680         * config/s390/s390.md (UNSPEC_OSC_BREAK): New constant.
3681         ("osc_break"): New insn definition.
3683 2016-10-28  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3685         * config/s390/s390.opt: Support alternate cpu level naming (archXX).
3686         * config.gcc: Support alternate archXX cpu levels with
3687         --with-arch= and --with-tune=.
3688         * config/s390/linux.h: Translate new archXX cpu levels to the
3689         original names when calling GAS.
3690         * config/s390/tpf.h: Likewise.
3691         * doc/invoke.texi: Document the alternate cpu level names.
3693 2016-10-28  Jakub Jelinek  <jakub@redhat.com>
3695         PR rtl-optimization/77919
3696         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force CONCAT into
3697         MEM if mode1 is not a complex mode.
3699         PR rtl-optimization/78132
3700         * ree.c (combine_reaching_defs): Give up if copy_needed and
3701         !HARD_REGNO_MODE_OK (REGNO (src_reg), dst_mode).
3703 2016-10-27  Eric Botcazou  <ebotcazou@adacore.com>
3705         * config/sparc/sparc.md (<*vlop:code><VL:mode>3): Remove leading '*'.
3707 2016-10-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
3709         * config/rs6000/constraints.md (wH constraint): Add new
3710         constraints for allowing 32-bit integers (and eventually 8/16-bit
3711         integers) into the vector registers.
3712         (wI constraint): Likewise.
3713         (wJ constraint): Likewise.
3714         (wK constraint): Likewise.
3715         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
3716         -mvsx-small-integer as a default option for ISA 2.07
3717         (i.e. power8).
3718         (POWERPC_MASKS): Likewise.
3719         * config/rs6000/rs6000.opt (-mvsx-small-integer): Add new debug
3720         switch to turn off small integer support in vector registers.
3721         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Eliminate
3722         test for -mupper-regs-di, since it is already done with the
3723         reg_add[mode].scalar_in_vsx_p.  Add support for the switch
3724         -mvsx-small-integer.
3725         (rs6000_debug_reg_global): Add support for wH, wI, wJ, and wK
3726         constraints.
3727         (rs6000_setup_reg_addr_masks): Likewise.
3728         (rs6000_init_hard_regno_mode_ok): Likewise.
3729         (rs6000_option_override_internal): Add consistency checks for
3730         -mvsx-small-integer.
3731         (rs6000_secondary_reload_simple_move): SImode is a simple move if
3732         -mvsx-small-integer.
3733         (rs6000_secondary_reload): Use std::swap.
3734         (rs6000_preferred_reload_class): Don't prefer FLOAT_REGS over
3735         VSX_REGS for small integers in vector registers, since there is no
3736         D-FORM address mode for such types.
3737         (rs6000_register_move_cost): Use FIRST_FPR_REGNO instead of 32.
3738         (rs6000_opt_masks): Add -mvsx-small-integer.
3739         * config/rs6000/vsx.md (VSINT_84): Add SImode for small integer
3740         support.
3741         (VSX_EXTRACT_I2): Clone VSX_EXTRACT_I, but drop V4SI since SImode
3742         extracts can be done on ISA 2.07.
3743         (vsx_extract_<mode>): Add support for small integers in vsx
3744         registers.
3745         (vsx_extract_<mode>_p9): Use 'v' instead of VSX_EX, since we no
3746         longer support V4SImode in this pattern.
3747         (vsx_extract_si): New insn to support extraction of SImode in ISA
3748         2.07 using either xxextractuw or vspltw.
3749         (vsx_extract_<mode>_p8): Use 'v' instead of VSX_EX, since we no
3750         longer support V4SImode in this pattern.
3751         * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wH, wI,
3752         wJ, and wK constraints.
3753         * config/rs6000/rs6000.md (f32_sv): Use correct instruction for
3754         storing SDmode with VSX instructions.
3755         (zero_extendsi<mode>2): Reorder pattern, so RLDICL comes after the
3756         GPR load and before the FPR and VSX loads.  Remove ??, ! from the
3757         constraints.  Add MFVSRWZ and XXEXTRACTUW instructions to support
3758         small integers in vector registers.
3759         (extendsi<mode>2): Reorder pattern, so EXTSW comes after the GPR
3760         load and before the FPR and VSX loads.  Remove ??, ! from the
3761         constraints.  Add VEXTSW2D support for small integers in vector
3762         registers.
3763         (lfiwax): Remove ! constraint.  Add VEXTSW2D support for small
3764         integers in vector registers.
3765         (floatsi<mode>2_lfiwax): If -mvsx-small-integer issue a normal
3766         move instead of using an UNSPEC.
3767         (lfiwzx): Remove ! constraint.  Add XXEXTRACTUW support for small
3768         integers in vector registers.
3769         (floatunssi<mode>2_lfiwzx): If -mvsx-small-integer issue a normal
3770         move instead of using an UNSPEC.
3771         (movsi_internal1): Add support for -mvsx-small-integer.  Align
3772         columns so that it is more readable.
3773         (SImode splitter for ISA 3.0 constants): Add splitter for
3774         -128..127 constants that can easily be constructed on ISA 3.0.
3775         * doc/md.texi (PowerPC Constraints): Document wH, wI, wJ, and wK
3776         constraints.
3778 2016-10-27  Jakub Jelinek  <jakub@redhat.com>
3780         PR middle-end/78025
3781         * omp-simd-clone.c (simd_clone_adjust): Handle noreturn declare simd
3782         functions.
3784 2016-10-27  Aldy Hernandez  <aldyh@redhat.com>
3786         * builtins.c (expand_builtin_nonlocal_goto): Avoid evaluating
3787         PIC_OFFSET_TABLE_REGNUM twice.
3789 2016-10-27  Bin Cheng  <bin.cheng@arm.com>
3791         * match.pd ((convert (op:s (convert@2 @0) (convert?@3 @1)))): Add
3792         support for constant operand for OP.
3794 2016-10-27  Jakub Jelinek  <jakub@redhat.com>
3796         * dwarf2out.c (gen_member_die): Only reparent_child instead of
3797         splice_child_die if child doesn't have DW_AT_specification attribute.
3799 2016-10-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3801         * config/arm/arm.h (TARGET_HAVE_LDREX): Define for ARMv8-M Baseline.
3802         (TARGET_HAVE_LDREXBH): Likewise.
3803         (TARGET_HAVE_LDACQ): Likewise.
3805 2016-10-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3807         * config/arm/arm.c (arm_split_atomic_op): Add function comment.  Add
3808         logic to to decide whether to copy over old value to register for new
3809         value.
3810         * config/arm/sync.md: Add comments explaning why mode and code
3811         attribute are not defined in iterators.md
3812         (thumb1_atomic_op_str): New code attribute.
3813         (thumb1_atomic_newop_str): Likewise.
3814         (thumb1_atomic_fetch_op_str): Likewise.
3815         (thumb1_atomic_fetch_newop_str): Likewise.
3816         (thumb1_atomic_fetch_oldop_str): Likewise.
3817         (atomic_exchange<mode>): Add new ARMv8-M Baseline only alternatives to
3818         mirror the more restrictive constraints of the Thumb-1 insns after
3819         split compared to Thumb-2 counterpart insns.
3820         (atomic_<sync_optab><mode>): Likewise.  Add comment to keep constraints
3821         in sync with non atomic version.
3822         (atomic_nand<mode>): Likewise.
3823         (atomic_fetch_<sync_optab><mode>): Likewise.
3824         (atomic_fetch_nand<mode>): Likewise.
3825         (atomic_<sync_optab>_fetch<mode>): Likewise.
3826         (atomic_nand_fetch<mode>): Likewise.
3827         * config/arm/thumb1.md (thumb1_addsi3): Add comment to keep contraint
3828         in sync with atomic version.
3829         (thumb1_subsi3_insn): Likewise.
3830         (thumb1_andsi3_insn): Likewise.
3831         (thumb1_iorsi3_insn): Likewise.
3832         (thumb1_xorsi3_insn): Likewise.
3834 2016-10-27  Nick Clifton  <nickc@redhat.com>
3836         * plugin.c (register_plugin_info): Produce an error message if the
3837         plugin is not found in the hash table.
3839 2016-10-27  Bin Cheng  <bin.cheng@arm.com>
3841         * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
3842         New pattern.
3844 2016-10-26  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3846         PR target/78056
3847         * config/rs6000/rs6000.c (spe_init_builtins): Modify loops to not
3848         define builtin functions from the bdesc_spe_predicates or
3849         bdesc_spe_evsel arrays if the builtin mask is not compatible with
3850         the current compiler configuration.
3851         (paired_init_builtins): Modify loop to not define define builtin
3852         functions from the bdesc_paried_preds array if the builtin mask is
3853         not compatible with the current compiler configuration.
3854         (altivec_init_builtins): Modify loops to not define the
3855         __builtin_altivec_stxvl function nor the builtin functions from
3856         the bdesc_dst or bdesc_altivec_preds, or bdesc_abs arrays if the
3857         builtin mask is not compatible with the current compiler
3858         configuration.
3860 2016-10-26  Jeff Law  <law@redhat.com>
3862         * config/sh/sh.c (output_branch): Add missing fallthru comments.
3863         (gen_shl_and): Likewise.
3864         * config/sh/sh.md (movsicc): Add missing fallthru comments.
3866         * config/mips/mips.c (mips16_constant_cost): Add missing
3867         fallthru comments.
3868         (mips16_build_call_stub): Increase buffer size.  Adjust
3869         fallthru comment.
3871 2016-10-26  David Malcolm  <dmalcolm@redhat.com>
3873         * print-rtl.c (rtx_writer::print_rtx_operand_code_u): Print
3874         INSN_UIDs for all insns in compact mode.
3875         (rtx_writer::print_rtx): Likewise.
3876         * print-rtl.h (rtx_writer::flag_compact): Update comment.
3877         * rtl-tests.c (selftest::test_dumping_insns): Update expected
3878         output to include INSN_UID.
3879         (selftest::test_uncond_jump): Likewise.
3881 2016-10-26  Pat Haugen  <pthaugen@us.ibm.com>
3883         * haifa-sched.c (call_used_regs_num): Rename to...
3884         (call_saved_regs_num): ...this.
3885         (fixed_regs_num): New variable.
3886         (sched_pressure_start_bb): Subtract out fixed_regs. Scale call_saved
3887         regs not call_used.
3888         (alloc_global_sched_pressure_data): Compute call_saved and fixed regs.
3890 2016-10-26  David Malcolm  <dmalcolm@redhat.com>
3892         * print-rtl-function.c (print_rtx_function): Rewrite in terms of
3893         class rtx_writer.
3894         * print-rtl.c (outfile): Delete global.
3895         (sawclose): Likewise.
3896         (indent): Likewise.
3897         (in_call_function_usage): Likewise.
3898         (flag_compact): Likewise.
3899         (flag_simple): Likewise.
3900         (rtx_writer::rtx_writer): New ctor.
3901         (print_rtx_operand_code_0): Convert to...
3902         (rtx_writer::print_rtx_operand_code_0): ...this.
3903         (print_rtx_operand_code_e): Convert to...
3904         (rtx_writer::print_rtx_operand_code_e): ...this.
3905         (print_rtx_operand_codes_E_and_V): Convert to...
3906         (rtx_writer::print_rtx_operand_codes_E_and_V): ...this.
3907         (print_rtx_operand_code_i): Convert to...
3908         (rtx_writer::print_rtx_operand_code_i): ...this.
3909         (print_rtx_operand_code_r): Convert to...
3910         (rtx_writer::print_rtx_operand_code_r): ...this.
3911         (print_rtx_operand_code_u): Convert to...
3912         (rtx_writer::print_rtx_operand_code_u): ...this.
3913         (print_rtx_operand): Convert to...
3914         (rtx_writer::print_rtx_operand): ...this.
3915         (print_rtx): Convert to...
3916         (rtx_writer::print_rtx): ...this.
3917         (print_inline_rtx): Rewrite in terms of class rtx_writer.
3918         (debug_rtx): Likewise.
3919         (print_rtl): Convert to...
3920         (rtx_writer::print_rtl): ...this.
3921         (print_rtl): Reimplement in terms of class rtx_writer.
3922         (print_rtl_single): Rewrite in terms of class rtx_writer.
3923         (print_rtl_single_with_indent): Convert to..
3924         (rtx_writer::print_rtl_single_with_indent): ...this.
3925         (print_simple_rtl): Rewrite in terms of class rtx_writer.
3926         * print-rtl.h (flag_compact): Delete decl.
3927         (class rtx_writer): New class.
3928         * rtl-tests.c (selftest::assert_rtl_dump_eq): Rewrite in terms of
3929         class rtx_writer.
3931 2016-10-26  Jeff Law  <law@redhat.com>
3933         * config/microblaze/microblaze.c (tls_mentioned_p): Avoid
3934         fallthru.
3936         * config/arc/arc.c (acr_print_operand): Adjust fallthru comment.
3937         (check_if_valid_sleep_operand): Add missing fallthru comment.
3938         (arc_register_move_cost): Increase buffer size.
3939         * config/arc/arc.md (cbranch4si_scratch): Add missing fallthru
3940         comment.
3941         * config/arc/predicates.md (move_str_operand): Avoid fallthru.
3943         * config/cr16/cr16.c (cr16_print_operand): Add missing fallthru
3944         comment.  Add gcc_unreachable for path that should never happen.
3946         * config/epiphany/epiphany.c (epiphany_print_operand): Adjust
3947         fallthru comment.
3949 2016-10-26  Jakub Jelinek  <jakub@redhat.com>
3950             Martin Liska  <mliska@suse.cz>
3952         PR fortran/77973
3953         * gimplify.c (gimplify_adjust_omp_clauses_1): For all added map
3954         clauses with OMP_CLAUSE_SIZE being a decl, call omp_notice_variable
3955         on outer context if any.
3957 2016-10-26  Jakub Jelinek  <jakub@redhat.com>
3959         * gen-pass-instances.awk (adjust_linenos): Increment pass_lines[p]
3960         by increment rather than double it.
3961         (insert_remove_pass): Strip leading whitespace from args[3].  Don't
3962         emit a space before args[4].
3963         (END): Don't emit a space before with_arg.
3965 2016-10-26  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3967         * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Add new ARMv8-M
3968         Baseline only alternatives to (i) hold store atomic success value in a
3969         return register rather than a scratch register, (ii) use a low register
3970         for it and to (iii) ensure the cbranchsi insn generated by the split
3971         respect the constraints of Thumb-1 cbranchsi4_insn and
3972         cbranchsi4_scratch.
3973         * config/arm/thumb1.md (cbranchsi4_insn): Add comment to indicate
3974         constraints must match those in atomic_compare_and_swap.
3975         (cbranchsi4_scratch): Likewise.
3977 2016-10-26  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3979         * config/arm/arm.c (arm_expand_compare_and_swap): Add new bdst local
3980         variable.  Add the new parameter to the insn generator.  Set that
3981         parameter to be CC flag for 32-bit targets, bval otherwise.  Set the
3982         return value from the negation of that parameter for Thumb-1, keeping
3983         the logic unchanged otherwise except for using bdst as the destination
3984         register of the compare_and_swap insn.
3985         (arm_split_compare_and_swap): Add explanation about how is the value
3986         returned to the function comment.  Rename scratch variable to
3987         neg_bval.  Adapt initialization of variables holding operands to the
3988         new operand numbers.  Use return register to hold result of store
3989         exclusive for Thumb-1, scratch register otherwise.  Construct the
3990         appropriate cbranch for Thumb-1 targets, keeping the logic unchanged
3991         for 32-bit targets.  Guard Z flag setting to restrict to 32bit targets.
3992         Use gen_cbranchsi4 rather than hand-written conditional branch to loop
3993         for strongly ordered compare_and_swap.
3994         * config/arm/predicates.md (cc_register_operand): New predicate.
3995         * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Use a
3996         match_operand with the new predicate to accept either the CC flag or a
3997         destination register for the boolean return value, restricting it to
3998         CC flag only via constraint.  Adapt operand numbers accordingly.
4000 2016-10-26  Jeff Law  <law@redhat.com>
4002         * config/fr30/fr30.c (fr30_print_operand): Adjust fallthru comment.
4004         * config/frv/frv.c (comparison_string): Do not fall through after
4005         an error.
4007         * config/iq2000/iq2000.c (iq2000_function_arg): Adjust fallthru
4008         comment.
4009         (expand_one_builtin): Add missing break.
4011         * config/m32c/m32c.c (encode_pattern_1): Add fallthru comment.
4012         (m32c_legitimate_address_p): Likewise.
4014         * config/m32r/m32r.c (m32r_print_operand): Adjust fallthru comment.
4016         * config/mcore/mcore.c (mcore_gen_compare): Adjust fallthru comments.
4018         * config/microblaze/microblaze.c (microblaze_function_arg): Adjust
4019         fallthru comment.
4021         * config/msp430/msp430.c (msp430_legitimate_address_p): Adjust
4022         fallthru comment.
4024         * config/nios2/nios2.c (nios2_rtx_costs): Avoid fallthru.
4026         * config/rl78/rl78.c (rl78_calculate_death_notes): Add fallthru
4027         comment.
4028         (rl78_asm_ctor_dtor): Increase buffer size.
4030         * config/stormy16/stormy16.c (xstormy16_asm_output_destrutor): Increase
4031         buffer size.
4032         (xstormy16_asm_output_constructor): Likewise.
4034         * config/pa/pa.c (pa_asm_output_mi_thunk): Increase buffer
4035         size.
4037         * config/h8300/h8300.c (h8300_print_operand): Adjust FALLTHRU
4038         comment to silence warning.
4040         * config/spu/spu.c (spu_sched_reorder): Add missing fallthru comment.
4041         (spu_legitimate_address_p): Fix logic error and add missing fallthru
4042         comment.
4044 2016-10-26  Michael Matz  <matz@suse.de>
4046         PR tree-optimization/78060
4047         PR tree-optimization/78061
4048         PR tree-optimization/78088
4049         * tree-ssa-loop-split.c (easy_exit_values): New function.
4050         (tree_ssa_split_loops): Use it.
4051         (compute_new_first_bound): Change order of operations,
4052         fix invalid use of types.
4054 2016-10-26  Georg-Johann Lay  <avr@gjlay.de>
4056         gen-pass-instances.awk is sensitive to the order in which
4057         passes are added; passes that appear later have to be added first.
4059         PR target/71676
4060         PR target/71678
4061         * config/avr/avr-passes.def: Swap order of directives for
4062         gen-pass-instances.awk.
4064 2016-10-25  Jeff Law  <law@redhat.com>
4066         * config/vax/vax.c (vad_address_cost_1): Add missing FALLTHRU comment.
4067         (vax_notice_update_cc): Likewise.
4069 2016-10-25  Eric Botcazou  <ebotcazou@adacore.com>
4071         * config.gcc (sparc*-*-solaris2*): Adjust.
4072         (sparc64-*-linux*): Likewise.
4073         * config/sparc/default-64.h: Rename to...
4074         * config/sparc/default64.h: ...this.
4075         * config/sparc/sparc.c (sparc_option_override): Replace TARGET_64BIT
4076         with TARGET_ARCH64.
4077         (sparc_mangle_type): Replace !TARGET_64BIT with TARGET_ARCH32.
4078         * config/sparc/sparc.h: Minor tweaks.
4079         * config/sparc/sparc.md: Replace !TARGET_64BIT and !TARGET_ARCH64 with
4080         TARGET_ARCH32 throughout.  Minor various tweaks throughout.
4082 2016-10-25  David Malcolm  <dmalcolm@redhat.com>
4084         * input.c (fcache::file_patch): Add comment about lifetime.
4085         (selftest::cpp_reader_ptr): New class.
4086         (selftest::lexer_test): Convert m_parser from cpp_reader *
4087         to a cpp_reader_ptr, and move m_tempfile to after it.
4088         (selftest::lexer_test::lexer_test): Update for above reordering.
4089         (lexer_test::~lexer_test): Move cleanup of m_parser to
4090         cpp_reader_ptr's dtor.
4092 2016-10-25  David Malcolm  <dmalcolm@redhat.com>
4094         * toplev.c (toplev::main): Remove call to
4095         location_adhoc_data_fini.
4097 2016-10-25  Eric Botcazou  <ebotcazou@adacore.com>
4099         * tree.h (wi::fits_to_tree_p): Accept only 0 and 1 for boolean types.
4100         * tree.c (int_fits_type_p): Likewise.  Adjust head comment.
4102 2016-10-25  David Malcolm  <dmalcolm@redhat.com>
4104         * ggc-tests.c (forcibly_ggc_collect): Rename to...
4105         (selftest::forcibly_ggc_collect): ...this, and remove "static".
4106         (test_basic_struct): Update for above renaming.
4107         (test_length): Likewise.
4108         (test_union): Likewise.
4109         (test_finalization): Likewise.
4110         (test_deletable_global): Likewise.
4111         (test_inheritance): Likewise.
4112         (test_chain_next): Likewise.
4113         (test_user_struct): Likewise.
4114         (test_tree_marking): Likewise.
4115         * selftest-run-tests.c (selftest::run_tests): Call
4116         selftest::forcibly_ggc_collect at the end of the selftests.
4117         * selftest.h (selftest::forcibly_ggc_collect): New decl.
4119 2016-10-25  Jakub Jelinek  <jakub@redhat.com>
4121         PR target/78102
4122         * optabs.def (vcondeq_optab, vec_cmpeq_optab): New optabs.
4123         * optabs.c (expand_vec_cond_expr): For comparison codes
4124         EQ_EXPR and NE_EXPR, attempt vcondeq_optab as fallback.
4125         (expand_vec_cmp_expr): For comparison codes
4126         EQ_EXPR and NE_EXPR, attempt vec_cmpeq_optab as fallback.
4127         * optabs-tree.h (expand_vec_cmp_expr_p, expand_vec_cond_expr_p):
4128         Add enum tree_code argument.
4129         * optabs-query.h (get_vec_cmp_eq_icode, get_vcond_eq_icode): New
4130         inline functions.
4131         * optabs-tree.c (expand_vec_cmp_expr_p): Add CODE argument.  For
4132         CODE EQ_EXPR or NE_EXPR, attempt to use vec_cmpeq_optab as
4133         fallback.
4134         (expand_vec_cond_expr_p): Add CODE argument.  For CODE EQ_EXPR or
4135         NE_EXPR, attempt to use vcondeq_optab as fallback.
4136         * tree-vect-generic.c (expand_vector_comparison,
4137         expand_vector_divmod, expand_vector_condition): Adjust
4138         expand_vec_cmp_expr_p and expand_vec_cond_expr_p callers.
4139         * tree-vect-stmts.c (vectorizable_condition,
4140         vectorizable_comparison): Likewise.
4141         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern,
4142         check_bool_pattern, search_type_for_mask_1): Likewise.
4143         * expr.c (do_store_flag): Likewise.
4144         * doc/md.texi (@code{vec_cmpeq@var{m}@var{n}},
4145         @code{vcondeq@var{m}@var{n}}): Document.
4146         * config/i386/sse.md (vec_cmpeqv2div2di, vcondeq<VI8F_128:mode>v2di):
4147         New expanders.
4149 2016-10-25  Jeff Law  <law@redhat.com>
4151         * config/v850/v850.c (v850_handle_data_area_attribute): Fix fallthru
4152         comment.
4153         (v850_output_aligned_bss): Add missing break.
4155         * config/m68k/m68k.c (m68k_get_reloc_decoration): Add gcc_unreachable.
4157 2016-10-25  Martin Liska  <mliska@suse.cz>
4159         PR sanitizer/78106
4160         * sanopt.c (imm_dom_path_with_freeing_call): Handle gasm
4161         statements as they can also contain possibly a freeing call.
4163 2016-10-25  H.J. Lu  <hongjiu.lu@intel.com>
4164             Martin Liska  <mliska@suse.cz>
4166         PR ipa/78099
4167         * common.opt: Mark flag_ipa_icf_variables as Optimization flag.
4168         * ipa-icf.c (sem_function::get_hash): Add target optimization
4169         node to hash.
4171 2016-10-25  Wilco Dijkstra  <wdijkstr@arm.com>
4173         PR target/78041
4174         * config/arm/neon.md (ashldi3_neon): Add "r 0 i" and "&r r i" variants.
4175         Remove partial overlap check for shift by 1.
4176         (ashldi3_neon): Likewise.
4178 2016-10-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4180         * config/arm/constraints.md (Q constraint): Document its use for
4181         Thumb-1.
4182         (Pf constraint): New constraint for relaxed, consume or relaxed memory
4183         models.
4184         * config/arm/sync.md (atomic_load<mode>): Add new ARMv8-M Baseline only
4185         alternatives to allow any register when memory model matches Pf and
4186         thus lda is used, but only low registers otherwise.  Use unpredicated
4187         output template for Thumb-1 targets.
4188         (atomic_store<mode>): Likewise for stl.
4189         (arm_load_exclusive<mode>): Add new ARMv8-M Baseline only alternative
4190         whose output template does not have predication.
4191         (arm_load_acquire_exclusive<mode>): Likewise.
4192         (arm_load_exclusivesi): Likewise.
4193         (arm_load_acquire_exclusivesi): Likewise.
4194         (arm_store_release_exclusive<mode>): Likewise.
4195         (arm_store_exclusive<mode>): Use unpredicated output template for
4196         Thumb-1 targets.
4198 2016-10-25  Jakub Jelinek  <jakub@redhat.com>
4200         * internal-fn.def (LAUNDER): New internal function.
4201         * internal-fn.c (expand_LAUNDER): New function.
4203 2016-10-25  Georg-Johann Lay  <avr@gjlay.de>
4204             Pitchumani Sivanupandi  <pitchumani.sivanupandi@microchip.com>
4206         New avr target pass to work around performance loss by PR fix.
4208         PR target/71676
4209         PR target/71678
4210         * config/avr/avr.md (casesi_<mode>_sequence) [qi,hi]: New insn.
4211         (*cmp<mode>) [qi,qq,uqq,hi,hq,uhq,ha,uha]: Rename to cmp<mode>3.
4212         * config/avr/predicates.md (extend_operator): New.
4213         * config/avr/avr-passes.def (avr_pass_casesi): Register new pass.
4214         * config/avr/avr-protos.h (avr_casei_sequence_check_operands)
4215         (make_avr_pass_casesi): New prototypes.
4216         * config/avr/avr.c (print-rtl.h): Include it.
4217         (pass_data avr_pass_data_casesi): Data for new pass.
4218         (avr_pass_casesi): New class implementing rtl_opt_pass .avr-casesi.
4219         (make_avr_pass_casesi, avr_parallel_insn_from_insns)
4220         (avr_is_casesi_sequence, avr_casei_sequence_check_operands)
4221         (avr_optimize_casesi): New functions.
4223 2016-10-25  Georg-Johann Lay  <avr@gjlay.de>
4224             Pitchumani Sivanupandi  <pitchumani.sivanupandi@microchip.com>
4226         PR target/71676
4227         PR target/71678
4228         * config/avr/avr.md (casesi): Rewrite avoiding subregs of SI.
4230 2016-10-24  Jakub Jelinek  <jakub@redhat.com>
4232         * dwarf2out.c (gen_subprogram_die): Add DW_AT_reference or
4233         DW_AT_rvalue_reference attributes.
4235 2016-10-24  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4237         * doc/invoke.text (Wint-in-bool-context): Update documentation.
4238         * value-prof.c (stringop_block_profile): Fix a warning.
4240 2016-10-24  Martin Sebor  <msebor@redhat.com>
4242         PR middle-end/77735
4243         * builtins.c (string_length): New function.
4244         (c_strlen): Use string_length.  Correctly handle wide strings.
4245         * gimple-ssa-sprintf.c (target_max_value, target_size_max): New
4246         functions.
4247         (target_int_max): Call target_max_value.
4248         (format_result::knownrange): New data member.
4249         (fmtresult::fmtresult): Define default constructor.
4250         (format_integer): Use it and set format_result::knownrange.
4251         Handle global constants.
4252         (format_floating_max): Add third argument.
4253         (format_floating): Recompute maximum value for %a for each argument.
4254         (get_string_length): Use fmtresult default ctor.
4255         (format_string): Set format_result::knownrange.
4256         (format_directive): Check format_result::knownrange.
4257         (add_bytes): Same.  Correct caret placement in diagnostics.
4258         (pass_sprintf_length::compute_format_length): Set
4259         format_result::knownrange.
4260         (pass_sprintf_length::handle_gimple_call): Use target_size_max.
4262 2016-10-24  Jakub Jelinek  <jakub@redhat.com>
4264         * config/i386/i386.c (ix86_in_large_data_p, ix86_expand_builtin): Use
4265         VAR_P (x) instead of TREE_CODE (x) == VAR_DECL.
4267 2016-10-24  Ximin Luo  <infinity0@pwned.gg>
4269         PR debug/77985
4270         * dwarf2out.c (file_table_relative_p): Remove.
4271         (gen_compile_unit_die, dwarf2out_early_finish): Emit DW_AT_comp_dir
4272         also for absolute paths.
4273         * doc/tm.texi: Update.
4274         * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Remove.
4275         * target.def (force_at_comp_dir): Remove hook.
4276         * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Remove define.
4278 2016-10-24  Richard Biener  <rguenther@suse.de>
4280         * tree-vrp.c (evrp_dom_walker::before_dom_children): Ignore
4281         backedges when identifying the single predecessor to take
4282         conditional info from.  Use SCEV to get at ranges for loop IVs.
4283         * lto-streamer-out.c (lto_write_mode_table): CSE inner mode to
4284         avoid false warning.
4286 2016-10-24  Georg-Johann Lay  <avr@gjlay.de>
4288         PR target/78093
4289         * doc/extend.texi (AVR Variable Attributes) [absdata]: Document it.
4290         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_ABSDATA): New macro.
4291         (avr_address_tiny_absdata_p): New static function.
4292         (avr_legitimate_address_p, avr_legitimize_address) [AVR_TINY]: Use
4293         it to determine validity of constant addresses.
4294         (avr_attribute_table) [absdata]: New variable attribute...
4295         (avr_handle_absdata_attribute): ...and handler.
4296         (avr_decl_absdata_p): New static function.
4297         (avr_encode_section_info) [AVR_TINY]: Use it to add flag
4298         AVR_SYMBOL_FLAG_TINY_ABSDATA to respective symbols_refs.
4299         (avr_address_cost) [AVR_TINY]: absdata addresses cost 2.
4301 2016-10-24  Richard Biener  <rguenther@suse.de>
4303         PR tree-optimization/78076
4304         * tree-ssa-loop-split.c (tree_ssa_split_loops): Reset aux
4305         also on the loop tree root.
4307 2016-10-24  Jakub Jelinek  <jakub@redhat.com>
4309         * config/i386/i386.c (ix86_fold_builtin): Handle
4310         IX86_BUILTIN_BEXTR{,I}{32,64}, IX86_BUILTIN_BZHI{32,64},
4311         IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
4312         (ix86_gimple_fold_builtin): Handle IX86_BUILTIN_BZHI{32,64},
4313         IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
4315 2016-10-24  Martin Liska  <mliska@suse.cz>
4317         PR sanitizer/77966
4318         * opts.c (finish_options): Skip conditionally.
4320 2016-10-23  Martin Sebor  <msebor@redhat.com>
4322         PR target/77837
4323         * config/rs6000/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define.
4324         * config/rs6000/linux64.h (TARGET_PRINTF_POINTER_FORMAT): Likewise.
4326 2016-10-23  Eric Botcazou  <ebotcazou@adacore.com>
4328         * config/sparc/sparc.md (cpu_feature): Minor tweak.
4329         (enabled): Likewise.
4330         (movsi_insn, movdi_insn_sp32, movdi_insn_sp64, movsf_insn,
4331         movdf_insn_sp32, movdf_insn_sp64, zero_extendsidi2_insn_sp64,
4332         sign_extendsidi2_insn, mov<VM32:mode>_insn, mov<VM64:mode>_insn_sp64,
4333         mov<VM64:mode>_insn_sp32, not_<code><mode>, nand<mode>_vis,
4334         <code>_not1<mode>_vi, <code>_not2<mode>_vis, one_cmpl<mode>2,
4335         fcmp<code><GCM:gcm_name>, pdistn<mode>_vis): Likewise.
4337 2016-10-23  Eric Botcazou  <ebotcazou@adacore.com>
4339         * config/sparc/sparc-c.c (sparc_target_macros): Replace TARGET_64BIT
4340         with TARGET_ARCH64.  Define __VIS to 0x400 if TARGET_VIS4.
4342 2016-10-21  Andrew Pinski  <apinski@cavium.com>
4344         * config/aarch64/aarch64-cores.def: Rewrite so IMP and PART are
4345         integer constants.
4346         * config/aarch64/driver-aarch64.c (struct aarch64_core_data): Change
4347         implementer_id to unsigned char.
4348         Change part_no to unsigned int.
4349         (AARCH64_BIG_LITTLE): New define.
4350         (INVALID_IMP): New define.
4351         (INVALID_CORE): New define.
4352         (cpu_data): Change the last element's implementer_id and part_no to
4353         integers.
4354         (valid_bL_string_p): Rewrite to ..
4355         (valid_bL_core_p): this for integers instead of strings.
4356         (parse_field): New function.
4357         (contains_string_p): Rewrite to ...
4358         (contains_core_p): this for integers and only for the part_no.
4359         (host_detect_local_cpu): Rewrite handling of implementation and
4360         par num to be integers; simplifying the code.
4362 2016-10-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
4364         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Create nonzero
4365         value range for pointers in more cases.
4367 2016-10-21  Wilco Dijkstra  <wdijkstr@arm.com>
4369         * config/aarch64/aarch64.c (aarch64_add_constant_internal):
4370         Add extra argument to allow emitting the move immediate.
4371         Use add/sub with positive immediate.
4372         (aarch64_add_constant): Add inline function.
4373         (aarch64_add_sp): Likewise.
4374         (aarch64_sub_sp): Likewise.
4375         (aarch64_expand_prologue): Call aarch64_sub_sp.
4376         (aarch64_expand_epilogue): Call aarch64_add_sp.
4377         Decide when to leave out move.
4378         (aarch64_output_mi_thunk): Call aarch64_add_constant.
4380 2016-10-21  Wilco Dijkstra  <wdijkstr@arm.com>
4382         * config/aarch64/aarch64.c (aarch64_layout_frame):
4383         Align FP callee-saves.
4385 2016-10-21  Jakub Jelinek  <jakub@redhat.com>
4387         * config/i386/adxintrin.h (_subborrow_u32, _addcarry_u32,
4388         _addcarryx_u32, _subborrow_u64, _addcarry_u64, _addcarryx_u64):
4389         Formatting fixes.
4390         * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
4391         _rdseed64_step): Likewise.
4392         * config/i386/tbmintrin.h (__bextri_u32): Likewise.
4394         PR target/78057
4395         * config/i386/i386.c: Include fold-const-call.h, tree-vrp.h
4396         and tree-ssanames.h.
4397         (ix86_fold_builtin): Fold IX86_BUILTIN_[LT]ZCNT{16,32,64}
4398         with INTEGER_CST argument.
4399         (ix86_gimple_fold_builtin): New function.
4400         (TARGET_GIMPLE_FOLD_BUILTIN): Define.
4402         * dwarf2out.c (ranges_table): Change into vec<dw_ranges, va_gc> *.
4403         (ranges_by_label): Change into vec<dw_ranges_by_label, va_gc> *.
4404         (ranges_table_allocated, ranges_table_in_use,
4405         ranges_by_label_allocated, ranges_by_label_in_use,
4406         RANGES_TABLE_INCREMENT): Removed.
4407         (add_ranges_num): Use vec_safe_push into ranges_table.
4408         (add_ranges_by_labels): Use vec_safe_push into ranges_by_label.
4409         (output_ranges): Adjust for ranges_table and ranges_by_label
4410         conversion from arrays to vec.
4411         (add_high_low_attributes, dwarf2out_finish): Adjust for range_table
4412         conversion from arrays to vec.
4413         (dwarf2out_c_finalize): Don't clear ranges_table_allocated,
4414         ranges_table_in_use, ranges_by_label_allocated and
4415         ranges_by_label_in_use.  Set ranges_by_label to NULL instead of 0.
4417         * dwarf2out.c (gen_variable_die): Emit DW_AT_const_expr attribute
4418         if needed.  Re-add origin_die variable and its initialization.
4420         * gimplify.c (gimplify_bind_expr): Handle oacc_declare_returns
4421         even for -fstack-reuse=none, or for volatile vars etc.
4423 2016-10-21  David Malcolm  <dmalcolm@redhat.com>
4425         * print-rtl-function.c (flag_compact): Move extern decl to...
4426         * print-rtl.h (flag_compact): ...here.
4427         * rtl-tests.c (selftests::assert_rtl_dump_eq): New function.
4428         (ASSERT_RTL_DUMP_EQ): New macro.
4429         (selftest::test_dumping_regs): New function.
4430         (selftest::test_dumping_insns): New function.
4431         (selftest::test_uncond_jump): Add uses of ASSERT_RTL_DUMP_EQ on
4432         the insns.
4433         (selftest::rtl_tests_c_tests): Call the new test functions.
4435 2016-10-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4437         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
4438         (outgoing_edges_match): Likewise.
4439         (try_crossjump_to_edge): Likewise.
4440         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
4441         (rtl_tidy_fallthru_edge): Likewise.
4442         * rtl.h (tablejump_p): Adjust prototype.
4443         * rtlanal.c (tablejump_p): Return the label as a rtx_insn *.
4445 2016-10-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4447         * rtl.h (label_ref_label): New function.
4448         (set_label_ref_label): New function.
4449         (LABEL_REF_LABEL): Delete.
4450         * alias.c (rtx_equal_for_memref_p): Adjust.
4451         * cfgbuild.c (make_edges): Likewise.
4452         (purge_dead_tablejump_edges): Likewise.
4453         * cfgexpand.c (convert_debug_memory_address): Likewise.
4454         * cfgrtl.c (patch_jump_insn): Likewise.
4455         * combine.c (distribute_notes): Likewise.
4456         * cse.c (hash_rtx_cb): Likewise.
4457         (exp_equiv_p): Likewise.
4458         (fold_rtx): Likewise.
4459         (check_for_label_ref): Likewise.
4460         * cselib.c (rtx_equal_for_cselib_1): Likewise.
4461         (cselib_hash_rtx): Likewise.
4462         * emit-rtl.c (mark_label_nuses): Likewise.
4463         * explow.c (convert_memory_address_addr_space_1): Likewise.
4464         * final.c (output_asm_label): Likewise.
4465         (output_addr_const): Likewise.
4466         * gcse.c (add_label_notes): Likewise.
4467         * genconfig.c (walk_insn_part): Likewise.
4468         * genrecog.c (validate_pattern): Likewise.
4469         * ifcvt.c (cond_exec_get_condition): Likewise.
4470         (noce_emit_store_flag): Likewise.
4471         (noce_get_alt_condition): Likewise.
4472         (noce_get_condition): Likewise.
4473         * jump.c (maybe_propagate_label_ref): Likewise.
4474         (mark_jump_label_1): Likewise.
4475         (redirect_exp_1): Likewise.
4476         (rtx_renumbered_equal_p): Likewise.
4477         * lra-constraints.c (operands_match_p): Likewise.
4478         * print-rtl.c (print_value): Likewise.
4479         * reload.c (find_reloads): Likewise.
4480         * reload1.c (set_label_offsets): Likewise.
4481         * reorg.c (get_branch_condition): Likewise.
4482         * rtl-tests.c (test_uncond_jump): Likewise.
4483         * rtl.c (rtx_equal_p_cb): Likewise.
4484         (rtx_equal_p): Likewise.
4485         * rtlanal.c (reg_mentioned_p): Likewise.
4486         (rtx_referenced_p): Likewise.
4487         (get_condition): Likewise.
4488         * varasm.c (const_hash_1): Likewise.
4489         (compare_constant): Likewise.
4490         (const_rtx_hash_1): Likewise.
4491         (output_constant_pool_1): Likewise.
4493 2016-10-21  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
4495         PR target/71627
4496         * reload.c (find_valid_class_1): Allow regclass if atleast one
4497         regno in regclass is ok. Compute and use rclass size based on
4498         actually available regnos for mode in rclass.
4500 2016-10-21  Eric Botcazou  <ebotcazou@adacore.com>
4502         * config/sparc/sparc-modes.def (CCV): New.
4503         (CCXV): Likewise.
4504         * config/sparc/predicates.md (v_comparison_operator): New.
4505         (icc_comparison_operator): Add support for CCV/CCXV.
4506         (xcc_comparison_operator): Likewise.
4507         * config/sparc/sparc.c (output_cbranch): Likewise.
4508         (sparc_print_operand): Likewise.
4509         * config/sparc/sparc.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
4510         (uaddvdi4): New expander.
4511         (addvdi4): Likewise.
4512         (uaddvdi4_sp32): New instruction.
4513         (addvdi4_sp32): Likewise.
4514         (uaddvsi4): New expander.
4515         (addvsi4): Likewise.
4516         (cmp_ccc_plus_sltu_set): New instruction.
4517         (cmp_ccv_plus): Likewise.
4518         (cmp_ccxv_plus): Likewise.
4519         (cmp_ccv_plus_set): Likewise.
4520         (cmp_ccxv_plus_set): Likewise.
4521         (cmp_ccv_plus_sltu_set): Likewise.
4522         (uaddvdi4): New expander.
4523         (subvdi4): Likewise.
4524         (usubdi4_sp32): New instruction.
4525         (subvdi4_sp32): Likewise.
4526         (usubvsi4): New expander.
4527         (subvsi4): Likewise.
4528         (cmpsi_minus_sltu_set): New instruction.
4529         (cmp_ccv_minus): Likewise.
4530         (cmp_ccxv_minus): Likewise.
4531         (cmp_ccv_minus_set): Likewise.
4532         (cmp_ccxv_minus_set): Likewise.
4533         (cmp_ccv_minus_sltu_set): Likewise.
4534         (unegvdi3): New expander.
4535         (negvdi3): Likewise.
4536         (unegdi3_sp32): New instruction.
4537         (negvdi3_sp32): Likewise.
4538         (unegvsi3): New expander.
4539         (negvsi3): Likewise.
4540         (cmp_ccc_neg_sltu_set): New instruction.
4541         (cmp_ccv_neg): Likewise.
4542         (cmp_ccxv_neg): Likewise.
4543         (cmp_ccv_neg_set): Likewise.
4544         (cmp_ccxv_neg_set): Likewise.
4545         (cmp_ccv_neg_sltu_set): Likewise.
4547         * tree-ssa-loop-split.c: Remove trailing spaces.
4548         * match.pd: Likewise.
4550 2016-10-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4552         PR rtl-optimization/78038
4553         * ree.c (get_defs): Return NULL if a defining insn for REG cannot
4554         be deduced to set REG through the RTL structure.
4555         (make_defs_and_copies_lists): Return false on a failing get_defs call.
4557 2016-10-21  Richard Biener  <rguenther@suse.de>
4559         PR tree-optimization/78051
4560         * tree-vrp.c (evrp_dom_walker::before_dom_children): Update stmt
4561         and mark replaced if folding did something.
4563 2016-10-21  David Edelsohn  <dje.gcc@gmail.com>
4565         * config/rs6000/rs6000.c (rs6000_assemble_visibility): Swap "internal"
4566         and "protected" in visibility types.
4567         (rs6000_xcoff_declare_function_name): Fix formatting.
4568         (rs6000_xcoff_declare_object_name): Fix formatting.
4570 2016-10-21  Uros Bizjak  <ubizjak@gmail.com>
4572         * config/i386/i386.c (ix86_fold_builtin): Handle IX86_BUILTIN_INFQ
4573         and IX86_BUILTIN_HUGE_VALQ here ...
4574         (ix86_expand_builtin): ... not here.
4576 2016-10-20  Jakub Jelinek  <jakub@redhat.com>
4578         * doc/gty.texi (for_user): Use @item next to @findex.
4580 2016-10-20  Uros Bizjak  <ubizjak@gmail.com>
4582         PR target/78037
4583         * config/i386/bmiintrin.h (__tzcnt_u16): Call __builtin_ia32_tzcnt_u16.
4584         (__tzcnt_u32, _tzcnt_u32): Call __builtin_ia32_tzcnt_u32.
4585         (__tzcnt_u64, _tzcnt_u64): Call __builtin_ia32_tzcnt_u64.
4586         * config/i386/lzcntintrin.h (__lzcnt_u16): Call
4587         __builtin_ia32_lzcnt_u16.
4588         (__lzcnt_u32, _lzcnt_u32): Call __builtin_ia32_lzcnt_u32.
4589         (__lzcnt_u64, _lzcnt_u64): Call __builtin_ia32_lzcnt_u64.
4590         * config/i386/i386.md (UNSPEC_LZCNT, UNSPEC_TZCNT): New unspecs.
4591         (ctz<mode>2, *ctz<mode>2): Use SWI48 mode iterator.
4592         (bmi_tzcnt_<mode>): New expander.
4593         (*bmi_tzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
4594         (*bmi_tzcnt_<mode>_falsedep, *bmi_tzcnt_<mode>): New insn patterns.
4595         (clz<mode>2_lzcnt, *clz<mode>2_lzcnt): Use SWI48 mode iterator.
4596         (lzcnt_<mode>): New expander.
4597         (*lzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
4598         (*lzcnt_<mode>_falsedep, *lzcnt_<mode>): New insn patterns.
4599         * config/i386/i386-builtin-types.def (UINT_FTYPE_UINT): New.
4600         (UINT64_FTYPE_UINT64): New.
4601         * config/i386/i386-builtin.def (__builtin_clzs): Remove description.
4602         (__builtin_ia32_lzcnt_u16): New description.
4603         (__builtin_ia32_lzcnt_u32): Ditto.
4604         (__builtin_ia32_lzcnt_u64): Ditto.
4605         (__builtin_ctzs): Remove description.
4606         (__builtin_ia32_tzcnt_u16): New description.
4607         (__builtin_ia32_tzcnt_u32): Ditto.
4608         (__builtin_ia32_tzcnt_u64): Ditto.
4609         * config/i386/i386.c (ix86_expand_args_builtin): Handle
4610         UINT_FTYPE_UINT and UINT64_FTYPE_UINT64.
4612 2016-10-20  Martin Liska  <mliska@suse.cz>
4614         PR lto/78049
4615         * lto-streamer-in.c (fixup_call_stmt_edges_1): Replace value
4616         comparison with STMT_UID_NOT_IN_RANGE.
4617         (fixup_call_stmt_edges): Do not fixup edges of a thunk in
4618         LTRANS.
4620 2016-10-20  Eric Botcazou  <ebotcazou@adacore.com>
4622         * compare-elim.c (conforming_compare): Accept UNSPECs.
4623         (find_comparison_dom_walker::before_dom_children): Deal with
4624         instructions both using and killing the flags register.
4625         (equivalent_reg_at_start): New function extracted from...
4626         (try_eliminate_compare): ...here.  Use it and add support for
4627         registers and UNSPECs as second operand of the compare.
4628         * config/visium/visium-modes.def (CCV): New.
4629         * config/visium/predicates.md (visium_v_comparison_operator): New.
4630         (visium_branch_operator): Deal with CCV mode.
4631         * config/visium/visium.c (visium_select_cc_mode): Likewise.
4632         (output_cbranch): Likewise.
4633         * config/visium/visium.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
4634         (uaddv<mode>4): New expander.
4635         (addv<mode>4): Likewise.
4636         (add<mode>3_insn_set_carry): New instruction.
4637         (add<mode>3_insn_set_overflow): Likewise.
4638         (addsi3_insn_set_overflow): Likewise.
4639         (usubv<mode>4): New expander.
4640         (subv<mode>4): Likewise.
4641         (sub<mode>3_insn_set_carry): New instruction.
4642         (sub<mode>3_insn_set_overflow): Likewise.
4643         (subsi3_insn_set_overflow): Likewise.
4644         (unegv<mode>3): New expander.
4645         (negv<mode>3): Likewise.
4646         (neg<mode>2_insn_set_overflow): New instruction.
4647         (addv_tst<mode>): Likewise.
4648         (subv_tst<mode>): Likewise.
4649         (negv_tst<mode>): Likewise.
4650         (cbranch<mode>4_addv_insn): New splitter and instruction.
4651         (cbranch<mode>4_subv_insn): Likewise.
4652         (cbranch<mode>4_negv_insn): Likewise.
4654 2016-10-20  Richard Biener  <rguenther@suse.de>
4656         * tree-ssa-alias.c (ptrs_compare_unequal): Remove code duplication.
4657         Handle decls possibly not bound.
4658         * tree-ssa-structalias.c (get_constraint_for_ssa_var): Add
4659         nothing_id for decls that might not be bound if we are interested
4660         for the address.
4661         (get_constraint_for_component_ref): Deal with that.
4663 2016-10-20  Michael Matz  <matz@suse.de>
4665         Loop splitting.
4666         * common.opt (-fsplit-loops): New flag.
4667         * passes.def (pass_loop_split): Add.
4668         * opts.c (default_options_table): Add OPT_fsplit_loops entry at -O3.
4669         (enable_fdo_optimizations): Add loop splitting.
4670         * timevar.def (TV_LOOP_SPLIT): Add.
4671         * tree-pass.h (make_pass_loop_split): Declare.
4672         * tree-ssa-loop-manip.h (rewrite_into_loop_closed_ssa_1): Declare.
4673         * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h,
4674         * tree-ssa-loop-split.c: New file.
4675         * Makefile.in (OBJS): Add tree-ssa-loop-split.o.
4676         * doc/invoke.texi (fsplit-loops): Document.
4677         * doc/passes.texi (Loop optimization): Add paragraph about loop
4678         splitting.
4680 2016-10-20  Richard Biener  <rguenther@suse.de>
4682         * cgraphunit.c (analyze_functions): Set node->definition to
4683         false to signal symbol removal to debug_hooks->late_global_decl.
4684         * ipa.c (symbol_table::remove_unreachable_nodes): When not in
4685         WPA signal symbol removal to the debuginfo machinery.
4686         * dwarf2out.c (dwarf2out_late_global_decl): Instead of
4687         using early_finised to guard the we're called for symbol
4688         removal case look at the symtabs definition flag.
4689         (gen_variable_die): Remove redundant check.
4691 2016-10-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4693         * config/s390/s390.md ("prefetch"): Add fallthrough comment.
4695 2016-10-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4697         PR tree-optimization/53979
4698         * match.pd ((a ^ b) | a -> a | b): New pattern.
4700 2016-10-19  John David Anglin  <danglin@gcc.gnu.org>
4702         * config/pa/pa64-hpux.h (PA_INIT_FRAME_DUMMY_ASM_OP): Move to
4703         config/pa/pa64-hpux-lib.h.
4704         (PA_CRTBEGIN_HACK): Likewise.
4705         (DTOR_LIST_BEGIN): Likewise.
4707 2016-10-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4709         * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
4710         register only if "in" and "out" are different registers.
4712 2016-10-19  Eric Botcazou  <ebotcazou@adacore.com>
4714         * omp-low.c (pass_oacc_device_lower::gate): New method.
4715         (execute): Always call execute_oacc_device_lower.
4717 2016-10-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4719         PR tree-optimization/77916
4720         PR tree-optimization/77937
4721         * gimple-ssa-strength-reduction.c (analyze_increments): Remove
4722         stopgap fix.
4723         (insert_initializers): Requirement of initializer for -1 should be
4724         based on pointer-typedness of the candidate basis.
4726 2016-10-19  Bin Cheng  <bin.cheng@arm.com>
4728         PR tree-optimization/78005
4729         * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Compute
4730         upper (included) bound for niters of prolog loop.
4731         (vect_gen_scalar_loop_niters): Change parameter VF to VFM1.
4732         Compute niters of scalar loop above which vectorized loop is
4733         preferred, as well as the upper (included) bound for the niters.
4734         (vect_do_peeling): Record niter bound for loops accordingly.
4736 2016-10-19  Thomas Schwinge  <thomas@codesourcery.com>
4738         PR lto/77458
4739         * tree-core.h (enum tree_index): Put the complex types after their
4740         component types.
4741         * tree-streamer.c (verify_common_node_recorded): New function.
4742         (preload_common_nodes) <TREE_CODE (node) == COMPLEX_TYPE>: Use it.
4744 2016-10-19  Martin Liska  <mliska@suse.cz>
4746         * cgraph.h (cgraph_edge::binds_to_current_def_p):
4747         Replace NULL with false as a return value.
4749 2016-10-19  Thomas Schwinge  <thomas@codesourcery.com>
4751         PR tree-optimization/78024
4752         * omp-low.c (oacc_loop_discovery): Call clear_bb_flags before, and
4753         don't clear BB_VISITED after processing.
4755 2016-10-19  Richard Biener  <rguenther@suse.de>
4757         * domwalk.c (dom_walker::walk): Use RPO order.
4759 2016-10-19  Richard Biener  <rguenther@suse.de>
4761         * tree-vrp.c (evrp_dom_walker::evrp_dom_walker): Initialize
4762         stmts_to_remove.
4763         (evrp_dom_walker::~evrp_dom_walker): Free it.
4764         (evrp_dom_walker::stmts_to_remove): Add.
4765         (evrp_dom_walker::before_dom_children): Mark PHIs and stmts
4766         whose output we fully propagate for removal.  Propagate
4767         into BB destination PHI arguments.
4768         (execute_early_vrp): Remove queued stmts.  Dump value ranges
4769         before stmt removal.
4771 2016-10-18  Aldy Hernandez  <aldyh@redhat.com>
4773         * Makefile.in (OBJS): Add gimple-ssa-warn-alloca.o.
4774         * passes.def: Add two instances of pass_walloca.
4775         * tree-pass.h (make_pass_walloca): New.
4776         * gimple-ssa-warn-alloca.c: New file.
4777         * doc/invoke.texi: Document -Walloca, -Walloca-larger-than=, and
4778         -Wvla-larger-than= options.
4780 2016-10-18  Thomas Schwinge  <thomas@codesourcery.com>
4782         * cfg.c (clear_bb_flags): Use FOR_ALL_BB_FN.
4783         * config/nvptx/nvptx.c (nvptx_find_sese): Likewise.
4785 2016-10-18  Kelvin Nilsen  <kelvin@gcc.gnu.org>
4787         * config/rs6000/altivec.h (vec_xl_len): New macro.
4788         (vec_xst_len): New macro.
4789         (vec_cmpnez): New macro.
4790         (vec_cntlz_lsbb): New macro.
4791         (vec_cnttz_lsbb): New macro.
4792         (vec_xlx): New macro.
4793         (vec_xrx): New macro.
4794         (vec_all_nez): New C++ predicate template.
4795         (vec_any_eqz): New C++ predicate template.
4796         (vec_all_ne): Revised C++ predicate template under _ARCH_PWR9
4797         conditional compilation.
4798         (vec_any_eq): Revised C++ predicate template under _ARCH_PWR9
4799         conditional compilation.
4800         (vec_all_nez): New macro.
4801         (vec_any_eqz): New macro.
4802         (vec_all_ne): Revised macro under _ARCH_PWR9 conditional
4803         compilation.
4804         (vec_any_eq): Revised macro under _ARCH_PWR9 conditional
4805         compilation.
4806         * config/rs6000/vector.md (VI): Moved this mode iterator
4807         definition from altivec.md to vector.md.
4808         (UNSPEC_NEZ_P): New value.
4809         (vector_ne_<mode>_p): New expansion for implementation of
4810         vec_all_ne and vec_any_eq built-in functions.
4811         (vector_nez_<mode>_p): New expansion for implementation of
4812         vec_all_nez and vec_any_eqz built-in functions.
4813         (vector_ne_v2di_p): New expansion for implementation of vec_all_ne
4814         and vec_any_eq built-in function.
4815         (cr6_test_for_zero): New commentary to explain this expansion.
4816         (cr6_test_for_zero_reverse): New commentary to explain this expansion.
4817         (cr6_test_for_lt): New commentary to explain this expansion.
4818         (cr6_test_for_lt_reverse): New commentary to explain this
4819         expansion.
4820         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4821         overloaded function prototypes for vec_all_ne, vec_all_nez,
4822         vec_any_eq, vec_any_eqz, vec_cmpnez, vec_cntlz_lsbb,
4823         vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx, and vec_xrx
4824         built-in functions.
4825         (altivec_resolve_overloaded_builtin): Modify the handling of
4826         ALTIVEC_BUILTIN_VEC_CMPNE to use the Power9 instructions when
4827         the compiler is configured to support TARGET_P9_VECTOR.
4828         * config/rs6000/rs6000-builtin.def (BU_ALTIVEC_P): Add commentary
4829         to explain the special processing that is given to predicate
4830         built-ins introduced using this macro.
4831         (BU_ALTIVEC_OVERLOAD_P): Add commentary to alert maintainers to
4832         the special processing given to predicate built-ins introduced
4833         using this macro.
4834         (BU_VSX_P): Likewise.
4835         (BU_P8V_AV_P): Likewise.
4836         (BU_P9V_AV_P): Likewise.
4837         (BU_P9V_AV_X): New macro.
4838         (BU_P9V_64BIT_AV_X): New macro.
4839         (BU_P9V_VSX_3): New macro.
4840         (BU_P9V_OVERLOAD_P): New macro.
4841         (LXVL): New BU_P9V_64BIT_VSX_2.
4842         (VEXTUBLX): New BU_P9V_AV_2.
4843         (VEXTUBRX): Likewise.
4844         (VEXTUHLX): Likewise.
4845         (VEXTUHRX): Likewise.
4846         (VEXTUWLX): Likewise.
4847         (VEXTUWRX): Likewise.
4848         (STXVL): New BU_P9V_64BIT_AV_X.
4849         (VCLZLSBB): New BU_P9V_AV_1.
4850         (VCTZLSBB): Likewise.
4851         (CMPNEB): New BU_P9V_AV_2.
4852         (CMPNEH): Likewise.
4853         (CMPNEW): Likewise.
4854         (CMPNEF): Likewise.
4855         (CMPNED): Likewise.
4856         (VCMPNEB_P): New BU_P9V_AV_P.
4857         (VCMPNEH_P): Likewise.
4858         (VCMPNEW_P): Likewise.
4859         (VCMPNED_P): Likewise.
4860         (VCMPNEFP_P): Likewise.
4861         (VCMPNEDP_P): Likewise.
4862         (CMPNEZB): New BU_P9V_AV_2.
4863         (CMPNEZH): Likewise.
4864         (CMPNEZW): Likewise.
4865         (VCMPNEZB_P): New BU_P9V_AV_P.
4866         (VCMPNEZH_P): Likewise.
4867         (VCMPNEZW_P): Likewise.
4868         (LXVL): New BU_P9V_OVERLOAD_2.
4869         (STXVL): New BU_P9V_OVERLOAD_3.
4870         (VEXTULX): New BU_P9V_OVERLOAD_2.
4871         (VEXTURX): Likewise.
4872         (CMPNEZ): Likewise.
4873         (VCMPNEZ_P): New BU_P9V_OVERLOAD_P.
4874         (VCMPNE_P): Likewise.
4875         (VCLZLSBB): New BU_P9V_OVERLOAD_1.
4876         (VCTZLSBB): Likewise.
4877         * config/rs6000/rs6000.c (altivec_expand_predicate_builtin): Add
4878         comment to explain mode used for scratch register.
4879         (altivec_expand_stxvl_builtin): New function.
4880         (altivec_expand_builtin): Add case for new constant P9V_BUILTIN_STXVL.
4881         (altivec_init_builtins): Add initialized variable
4882         void_ftype_v16qi_pvoid_long and use this type to define the
4883         built-in function __builtin_altivec_stxvl.
4884         * config/rs6000/vsx.md (UNSPEC_LXVL): New value.
4885         (UNSPEC_STXVL): New value.
4886         (UNSPEC_VCLZLSBB): New value.
4887         (UNSPEC_VCTZLSBB): New value.
4888         (UNSPEC_VEXTUBLX): New value.
4889         (UNSPEC_VEXTUHLX): New value.
4890         (UNSPEC_VEXTUWLX): New value.
4891         (UNSPEC_VEXTUBRX): New value.
4892         (UNSPEC_VEXTUHRX): New value.
4893         (UNSPEC_VEXTUWRX): New value.
4894         (UNSPEC_VCMPNEB): New value.
4895         (UNSPEC_VCMPNEZB): New value.
4896         (UNSPEC_VCMPNEH): New value.
4897         (UNSPEC_VCMPNEZH): New value.
4898         (UNSPEC_VCMPNEW): New value.
4899         (UNSPEC_VCMPNEZW): New value.
4900         (*vsx_ne_<mode>_p): New insn for vector test all not equal with
4901         vector of integer modes.
4902         (*vsx_ne_<mode>_p): New insn for vector test all not equal with
4903         vector of float or double modes.
4904         (*vector_nez_<mode>_p): New insn for vector test all not equal or
4905         zero.
4906         (lxvl): New expand for load VSX vector with length.
4907         (*lxvl): New insn for load VSX vector with length.
4908         (stxvl): New expand for store VSX vector with length.
4909         (*stxvl): New insn for store VSX vector with length.
4910         (vcmpneb): New insn for vector of byte compare not equal.
4911         (vcmpnezb): New insn for vector of byte compare not equal or zero.
4912         (vcmpneh): New insn for vector of half word compare not equal.
4913         (vcmpnezh): New insn for vector of half word compare not equal or
4914         zero.
4915         (vcmpnew): New insn for vector of word compare not equal.
4916         (vcmpne<VSs>): New insn for vector of float or double compare not
4917         equal.
4918         (vcmpnezw): New insn for vector of word compare not equal or zero.
4919         (vclzlsbb): New insn for vector count leading zero
4920         least-significant bits byte.
4921         (vctzlsbb): New insn for vector count trailing zero least
4922         signficant bits byte.
4923         (vextublx): New insn for vector extract unsigned byte left
4924         indexed.
4925         (vextubrx): New insn for vector extract unsigned byte right
4926         indexed.
4927         (vextuhlx): New insn for vector extract unsigned half word left
4928         indexed.
4929         (vextuhrx): New insn for vector extract unsigned half word right
4930         indexed.
4931         (vextuwlx): New insn for vector extract unsigned word left
4932         indexed.
4933         (vextuwrx): New insn for vector extract unsigned word right
4934         indexed.
4935         * config/rs6000/rs6000.h (RS6000_BTC_CONST): Enhance comment to
4936         clarify intent of this constant.
4937         * config/rs6000/altivec.md (VI): Move this mode iterator to vsx.md.
4938         * doc/extend.texi (PowerPC Altivec Built-in Functions): Add
4939         documentation for vec_all_nez, vec_any_eqz, vec_cmpnez,
4940         vec_cntlz_lsbb, vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx,
4941         and vec_xrx functions.
4943 2016-10-18  Andrew Pinski  <apinski@cavium.com>
4945         PR tree-opt/65950
4946         * predict.c (is_exit_with_zero_arg): New function.
4947         (tree_bb_level_predictions): Don't consider paths leading to exit(0)
4948         as nottaken.
4950 2016-10-18  Uros Bizjak  <ubizjak@gmail.com>
4952         PR target/77991
4953         * config/i386/i386.c (legitimize_tls_address)
4954         <case TLS_MODEL_INITIAL_EXEC>: For TARGET_64BIT || TARGET_ANY_GNU_TLS
4955         convert dest to Pmode if different than Pmode.
4957 2016-10-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4959         PR tree-optimization/77916
4960         * gimple-ssa-strength-reduction.c (analyze_increments): Reinstate
4961         stopgap fix, as pointers with -1 increment are still broken.
4963 2016-10-18  David Edelsohn  <dje.gcc@gmail.com>
4965         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Move storage
4966         mapping class decoration from here...
4967         (rs6000_xcoff_encode_section): ...to here.
4969         (rs6000_savres_strategy) [AIX,ELFv2]: Inline FPR save and restore
4970         if shrink-wrapping and optimizing for speed.
4972 2016-10-18  Richard Biener  <rguenther@suse.de>
4974         * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
4975         not visited but non-executable predecessors.  Return taken edge.
4976         Simplify conditions and refactor propagation vs. folding step.
4978 2016-10-18  Segher Boessenkool  <segher@kernel.crashing.org>
4980         * config/rs6000/rs6000.c (rs6000_savres_strategy): Do not select
4981         {SAVE,REST}_MULTIPLE if shrink-wrapping separate components.
4982         (rs6000_get_separate_components): Assert we do not have those
4983         strategies selected.
4985 2016-10-18  Richard Biener  <rguenther@suse.de>
4987         * tree-ssa-propagate.h (substitute_and_fold): Adjust prototype.
4988         * tree-ssa-propagate.c (ssa_prop_fini): Remove final BB_VISITED
4989         clearing.
4990         (substitute_and_fold_dom_walker): Adjust constructor.
4991         (substitute_and_fold_dom_walker::before_dom_children): Remove
4992         do_dce flag and handling (always true).
4993         (substitute_and_fold): Likewise.
4994         * tree-vrp.c (vrp_finalize): Adjust.
4995         (execute_early_vrp): Remove final BB_VISITED clearing.
4996         * tree-ssa-ccp.c (ccp_finalize): Adjust.
4997         * tree-ssa-copy.c (fini_copy_prop): Likewise.
4998         * ira.c (ira): Call clear_bb_flags.
5000 2016-10-18  Richard Biener  <rguenther@suse.de>
5002         * genmatch.c (dt_operand::gen_gimple_expr): Use get_name to
5003         get at the operand to look at with TREE_OPERAND for generic
5004         sub-nodes.
5006 2016-10-18  David Malcolm  <dmalcolm@redhat.com>
5008         * genattrtab.c (attr_string): Use rtx_reader_ptr for call to
5009         copy_md_ptr_loc.
5010         (gen_attr): Use rtx_reader_ptr for lookup_enum_type call.
5011         (write_test_expr): Use rtx_reader_ptr for calls to
5012         fprint_c_condition.
5013         (write_attr_value): Likewise.
5014         * genconditions.c (write_one_condition): Use rtx_reader_ptr for
5015         call to print_md_ptr_loc.
5016         (write_one_condition): Likewise for calls to print_c_condition.
5017         * genconstants.c: Include "statistics.h" and "vec.h".
5018         (main): Update for conversion to member functions.
5019         * genemit.c (emit_c_code): Use rtx_reader_ptr for
5020         call to print_md_ptr_loc.
5021         * genenums.c: Include "statistics.h" and "vec.h".
5022         (main): Update for conversion of traverse_enum_types to a method.
5023         * genmddeps.c: Include "statistics.h" and "vec.h".
5024         * genoutput.c (process_template): Use rtx_reader_ptr for call to
5025         print_md_ptr_loc.
5026         * genpreds.c (write_predicate_subfunction): Likewise.
5027         (write_predicate_expr): Likewise for calls to print_c_condition.
5028         * genrecog.c (print_test): Likewise.
5029         * gensupport.c (process_rtx): Likewise for calls to
5030         copy_md_ptr_loc and join_c_conditions.
5031         (alter_test_for_insn): Likewise for call to join_c_conditions.
5032         (process_substs_on_one_elem): Likewise.
5033         (gen_mnemonic_setattr): Update for move of string_obstack to a
5034         field of rtx_reader.
5035         (mnemonic_htab_callback): Likewise.  Fix formatting.
5036         (gen_mnemonic_attr): Likewise.
5037         * gentarget-def.c (def_target_insn): Use rtx_reader_ptr for calls
5038         to print_c_condition.
5039         * read-md.c: Include "statistics.h" and "vec.h".
5040         (string_obstack): Convert this global to field "m_string_obstack"
5041         of class rtx_reader.
5042         (ptr_locs): Likewise, as "m_ptr_locs".
5043         (ptr_loc_obstack): Likewise, as "m_ptr_loc_obstack".
5044         (joined_conditions): Likewise, as "m_joined_conditions".
5045         (joined_conditions_obstack): Likewise, as "m_joined_conditions_obstack".
5046         (md_constants): Likewise, as "m_md_constants".
5047         (enum_types): Likewise, as "m_enum_types".
5048         (set_md_ptr_loc): Convert to...
5049         (rtx_reader::set_md_ptr_loc): ...member function.
5050         (get_md_ptr_loc): Convert to...
5051         (rtx_reader::get_md_ptr_loc): ...member function.
5052         (copy_md_ptr_loc): Convert to...
5053         (rtx_reader::copy_md_ptr_loc): ...member function.
5054         (fprint_md_ptr_loc): Convert to...
5055         (rtx_reader::fprint_md_ptr_loc): ...member function.
5056         (print_md_ptr_loc): Convert to...
5057         (rtx_reader::print_md_ptr_loc): ...member function.
5058         (join_c_conditions): Convert to...
5059         (rtx_reader::join_c_conditions): ...member function.
5060         (fprint_c_condition): Convert to...
5061         (rtx_reader::fprint_c_condition): ...member function.
5062         (print_c_condition): Convert to...
5063         (rtx_reader::print_c_condition): ...member function.
5064         (read_name): Convert to...
5065         (rtx_reader::read_name): ...member function.
5066         (read_escape): Convert to...
5067         (rtx_reader::read_escape): ...member function.
5068         (read_quoted_string): Convert to...
5069         (rtx_reader::read_quoted_string): ...member function.
5070         (read_braced_string): Convert to...
5071         (rtx_reader::read_braced_string): ...member function.
5072         (read_string): Convert to...
5073         (rtx_reader::read_string): ...member function.
5074         (read_skip_construct): Convert to...
5075         (rtx_reader::read_skip_construct): ...member function.
5076         (handle_constants): Convert to...
5077         (rtx_reader::handle_constants): ...member function.
5078         (traverse_md_constants): Convert to...
5079         (rtx_reader::traverse_md_constants): ...member function.
5080         (handle_enum): Convert to...
5081         (rtx_reader::handle_enum): ...member function.
5082         (lookup_enum_type): Convert to...
5083         (rtx_reader::lookup_enum_type): ...member function.
5084         (traverse_enum_types): Convert to...
5085         (rtx_reader::traverse_enum_types): ...member function.
5086         (rtx_reader::rtx_reader): Move initializations
5087         of various former global data from rtx_reader::read_md_files to
5088         here, as fields, along with the call to unlock_std_streams.
5089         (rtx_reader::~rtx_reader): Clean up m_base_dir, and clean up
5090         the new fields.
5091         (rtx_reader::read_md_files): Move initializations of various
5092         global data from here to the ctor.
5093         * read-md.h (read_name): Convert to...
5094         (rtx_reader::read_name): ...member function.
5095         (rtx_reader::read_escape): New method decl.
5096         (read_quoted_string): Convert to...
5097         (rtx_reader::read_quoted_string): ...member function.
5098         (rtx_reader::read_braced_string): New method decl.
5099         (read_string): Convert to...
5100         (rtx_reader::read_string): ...member function.
5101         (rtx_reader::read_skip_construct): New method decl.
5102         (rtx_reader::set_md_ptr_loc): New method decl.
5103         (rtx_reader::get_md_ptr_loc): New method decl.
5104         (copy_md_ptr_loc): Convert to...
5105         (rtx_reader::copy_md_ptr_loc): ...member function.
5106         (fprint_md_ptr_loc): Convert to...
5107         (rtx_reader::fprint_md_ptr_loc): ...member function.
5108         (print_md_ptr_loc): Convert to...
5109         (rtx_reader::print_md_ptr_loc): ...member function.
5110         (rtx_reader::lookup_enum_type): New method decl.
5111         (rtx_reader::traverse_enum_types): New method decl.
5112         (rtx_reader::handle_constants): New method decl.
5113         (traverse_md_constants): Convert to...
5114         (rtx_reader::traverse_md_constants): ...member function.
5115         (rtx_reader::handle_enum): New method decl.
5116         (rtx_reader::join_c_conditions): New method decl.
5117         (fprint_c_condition): Convert to...
5118         (rtx_reader::fprint_c_condition): ...member function.
5119         (print_c_condition): Convert to...
5120         (rtx_reader::print_c_condition): ...member function.
5121         (rtx_reader::apply_iterator_to_string): New method decl.
5122         (rtx_reader::copy_rtx_for_iterators): New method decl.
5123         (rtx_reader::read_conditions): New method decl.
5124         (rtx_reader::record_potential_iterator_use): New method decl.
5125         (rtx_reader::read_mapping): New method decl.
5126         (rtx_reader::read_rtx): New method decl.
5127         (rtx_reader::read_rtx_code): New method decl.
5128         (rtx_reader::read_rtx_operand): New method decl.
5129         (rtx_reader::read_nested_rtx): New method decl.
5130         (rtx_reader::read_rtx_variadic): New method decl.
5131         (rtx_reader::get_string_obstack): New method.
5132         (rtx_reader::get_md_constants): New method.
5133         (string_obstack): Convert global variable decl to...
5134         (rtx_reader::m_string_obstack): ...this new field.
5135         (rtx_reader::m_ptr_locs): New field.
5136         (rtx_reader::m_ptr_loc_obstack): New field.
5137         (rtx_reader::m_joined_conditions): New field.
5138         (rtx_reader::m_joined_conditions_obstack): New field.
5139         (rtx_reader::m_md_constants): New field.
5140         (rtx_reader::m_enum_types): New field.
5141         * read-rtl.c (apply_iterator_to_string): Convert to...
5142         (rtx_reader::apply_iterator_to_string): ...member function.
5143         (copy_rtx_for_iterators): Convert to...
5144         (rtx_reader::copy_rtx_for_iterators): ...member function.
5145         (add_condition_to_string): Use rtx_reader_ptr for
5146         calls join_c_conditions.
5147         (apply_iterators): Use rtx_reader_ptr for calls to
5148         join_c_conditions and copy_rtx_for_iterators.
5149         (read_conditions): Convert to...
5150         (rtx_reader::read_conditions): ...member function.
5151         (record_potential_iterator_use): Convert to...
5152         (rtx_reader::record_potential_iterator_use): ...member function.
5153         (read_mapping): Convert to...
5154         (rtx_reader::read_mapping): ...member function.
5155         (read_subst_mapping): Use rtx_reader_ptr for read_string call.
5156         (read_rtx): Convert to...
5157         (rtx_reader::read_rtx): ...member function.
5158         (read_rtx_code): Convert to...
5159         (rtx_reader::read_rtx_code): ...member function.
5160         (read_rtx_operand): Convert to...
5161         (rtx_reader::read_rtx_operand): ...member function.  Update for move
5162         of string_obstack to a field.
5163         (read_nested_rtx): Convert to..
5164         (rtx_reader::read_nested_rtx): ...member function.
5165         (read_rtx_variadic): Convert to..
5166         (rtx_reader::read_rtx_variadic): ...member function.
5168 2016-10-18  Kugan Vivekanandarajah  <kuganv@linaro.org>
5170         * tree-vrp.c (get_value_range): Check get_ptr_nonnull.
5172 2016-10-18  Kugan Vivekanandarajah  <kuganv@linaro.org>
5174         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Set value range
5175         for pointer type too.
5176         (ipcp_update_vr): set_ptr_nonnull for pointer.
5178 2016-10-18  Kugan Vivekanandarajah  <kuganv@linaro.org>
5180         * tree-ssa-alias.h (pt_solution_singleton_or_null_p): Renamed from
5181         pt_solution_singleton_p.
5182         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use renamed
5183         pt_solution_singleton_or_null_p from pt_solution_singleton_p.
5184         * tree-ssa-structalias.c (find_what_p_points_to): Preserve
5185         pointer nonnull computed by VRP.
5186         Also Conservatively set pt.null to 1.
5187         (pt_solution_reset): Conservatively set pt.null to 1.
5188         (pt_solution_singleton_or_null_p): Renamed from
5189         pt_solution_singleton_p.
5190         * tree-ssanames.h (set_ptr_nonnull): Declare.
5191         (get_ptr_nonnull): Likewise.
5192         * tree-ssanames.c (set_ptr_nonnull): New.
5193         (get_ptr_nonnull): Likewise.
5194         * tree-vrp.c (vrp_finalize): Set ptr that are nonnull.
5195         (evrp_dom_walker::before_dom_children): Likewise.
5197 2016-10-17  Eric Botcazou  <ebotcazou@adacore.com>
5199         * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
5200         * config/i386/i386.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
5201         * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
5202         * config/ia64/ia64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
5203         * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to.
5204         * config/rs6000/rs6000.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
5205         (rs6000_option_override_internal): Clear it if ABI_AIX.
5206         * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
5207         * config/sparc/sparc.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ... here.
5209 2016-10-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5211         * gimple-ssa-strength-reduction.c (record_increment): Remove
5212         garbage comment.
5214 2016-10-17  Eric Botcazou  <ebotcazou@adacore.com>
5216         * expmed.c (expand_shift_1): Add MAY_FAIL parameter and do not assert
5217         that the result is non-zero if it is true.
5218         (maybe_expand_shift): New wrapper around expand_shift_1.
5219         (emit_store_flag): Call maybe_expand_shift in lieu of expand_shift.
5221 2016-10-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5223         PR tree-optimization/77916
5224         * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
5225         Don't allow a MINUS_EXPR for pointer arithmetic for either known
5226         or unknown strides.
5227         (record_increment): Increments of -1 for unknown strides just use
5228         a multiply initializer like other negative values.
5229         (analyze_increments): Remove stopgap solution for -1 increment
5230         applied to pointer arithmetic.
5232 2016-10-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
5234         * dominance.c (dom_info::dom_info): Add new constructor for region
5235         which is vector of basic blocks.
5236         (dom_init): New method to initialize members common for both
5237         constructors.
5238         (dom_info::dom_info): Invoke dom_init for partial initialization.
5239         (dom_info::get_idom): Add check to corner cases on basic blocks which
5240         are not in region.
5241         (dom_info::calc_dfs_tree): Check M_FAKE_EXIT_EDGE instead of M_REVERSE
5242         to detect unreachable bbs.
5243         (dom_info::calc_idoms): Likewise.
5244         (compute_dom_fast_query_in_region): New function.
5245         (calculate_dominance_info_for_region): Likewise.
5246         (free_dominance_info_for_region): Likewise.
5247         * dominance.h: Add prototypes for introduced region-based functions
5248         * tree-if-conv.c (build_region): New function.
5249         (if_convertible_loop_p_1): Invoke local version of post-dominators
5250         calculation before basic block predication with subsequent freeing
5251         post-dominator info.
5252         (tree_if_conversion): Remove free of post-dominator info
5253         (pass_if_conversion::execute): Delete detection of infinite loops
5254         and fake edges to exit block since post-dominator calculation is
5255         performed per if-converted loop only.
5257 2016-10-17  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5259         PR target/77308
5260         * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
5261         register explicitly.
5262         * config/arm/arm.md (ashldi3, ashrdi3, lshrdi3): Don't FAIL if
5263         optimizing for size.
5265 2016-10-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5267         * config/aarch64/aarch64.c: Delete inclusion of
5268         cortex-a57-fma-steering.h.
5269         (aarch64_override_options): Delete call
5270         to aarch64_register_fma_steering.
5271         * config/aarch64/aarch64-protos.h (make_pass_fma_steering): Declare.
5272         * config/aarch64/cortex-a57-fma-steering.h: Delete.
5273         * config/aarch64/aarch64-passes.def: New file.
5274         * config/aarch64/cortex-a57-fma-steering.c
5275         (aarch64_register_fma_steering): Delete definition.
5276         (make_pass_fma_steering): Remove static qualifier.
5277         * config/aarch64/t-aarch64 (PASSES_EXTRA): New directive.
5278         (cortex-a57-fma-steering.o): Remove dependency on
5279         cortex-a57-fma-steering.h.
5281 2016-10-17  Eric Botcazou  <ebotcazou@adacore.com>
5283         * explow.c (validize_mem): Do not modify the argument in-place.
5285 2016-10-17  Thomas Schwinge  <thomas@codesourcery.com>
5287         * tree-streamer.c (record_common_node): Explicitly list expected
5288         tree codes.
5290 2016-10-17  Richard Biener  <rguenther@suse.de>
5292         PR tree-optimization/77988
5293         * tree-vrp.c (remove_range_assertions): Use replace_uses_by.
5295 2016-10-17  Marek Polacek  <polacek@redhat.com>
5297         * Makefile.in (C_COMMON_OBJS): Add c-family/c-attribs.o.
5299 2016-10-17  Richard Biener  <rguenther@suse.de>
5301         * bb-reorder.c (reorder_basic_blocks_simple): Clear BB_VISITED
5302         before using it.
5304 2016-10-17  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5306         PR tree-optimization/71636
5307         * match.pd (x & ((1 << b) - 1) -> x & ~(~0 << b)): New pattern.
5309 2016-10-17  Richard Biener  <rguenther@suse.de>
5311         * gimplify.c (gimplify_function_tree): Do not move the outer
5312         binds block.
5314 2016-10-17  Jakub Jelinek  <jakub@redhat.com>
5316         * langhooks.h (struct lang_hooks_for_decls): Remove
5317         function_decl_explicit_p, function_decl_deleted_p and
5318         function_decl_defaulted hooks.  Add decl_dwarf_attribute hook.
5319         * langhooks-def.h (lhd_decl_dwarf_attribute): Declare.
5320         (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
5321         LANG_HOOKS_FUNCTION_DECL_DELETED_P,
5322         LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Remove.
5323         (LANG_HOOKS_DECL_DWARF_ATTRIBUTE): Define.
5324         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
5325         LANG_HOOKS_FUNCTION_DECL_DELETED_P and
5326         LANG_HOOKS_FUNCTION_DECL_DEFAULTED.  Add
5327         LANG_HOOKS_DECL_DWARF_ATTRIBUTE.
5328         * langhooks.c (lhd_decl_dwarf_attribute): New function.
5329         * dwarf2out.c (gen_subprogram_die): Use
5330         lang_hooks.decls.decl_dwarf_attribute instead of
5331         lang_hooks.decls.function_decl_*.
5333 2016-10-16  Eric Botcazou  <ebotcazou@adacore.com>
5335         PR ada/37139
5336         PR ada/67205
5337         * common.opt (-ftrampolines): New option.
5338         * doc/invoke.texi (Code Gen Options): Document it.
5339         * doc/tm.texi.in (Trampolines): Add TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
5340         * doc/tm.texi: Regenerate.
5341         * builtins.def: Add init_descriptor and adjust_descriptor.
5342         * builtins.c (expand_builtin_init_trampoline): Do not issue a warning
5343         on platforms with descriptors.
5344         (expand_builtin_init_descriptor): New function.
5345         (expand_builtin_adjust_descriptor): Likewise.
5346         (expand_builtin) <BUILT_IN_INIT_DESCRIPTOR>: New case.
5347         <BUILT_IN_ADJUST_DESCRIPTOR>: Likewise.
5348         * calls.c (prepare_call_address): Remove SIBCALLP parameter and add
5349         FLAGS parameter.  Deal with indirect calls by descriptor and adjust.
5350         Set STATIC_CHAIN_REG_P on the static chain register, if any.
5351         (call_expr_flags): Set ECF_BY_DESCRIPTOR for calls by descriptor.
5352         (expand_call): Likewise.  Move around call to prepare_call_address
5353         and pass all flags to it.
5354         * cfgexpand.c (expand_call_stmt): Reinstate CALL_EXPR_BY_DESCRIPTOR.
5355         * gimple.h (enum gf_mask): New GF_CALL_BY_DESCRIPTOR value.
5356         (gimple_call_set_by_descriptor): New setter.
5357         (gimple_call_by_descriptor_p): New getter.
5358         * gimple.c (gimple_build_call_from_tree): SetCALL_EXPR_BY_DESCRIPTOR.
5359         (gimple_call_flags): Deal with GF_CALL_BY_DESCRIPTOR.
5360         * langhooks.h (struct lang_hooks): Add custom_function_descriptors.
5361         * langhooks-def.h (LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS): Define.
5362         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS.
5363         * rtl.h (STATIC_CHAIN_REG_P): New macro.
5364         * rtlanal.c (find_first_parameter_load): Skip static chain registers.
5365         * target.def (custom_function_descriptors): New POD hook.
5366         * tree.h (FUNC_ADDR_BY_DESCRIPTOR): New flag on ADDR_EXPR.
5367         (CALL_EXPR_BY_DESCRIPTOR): New flag on CALL_EXPR.
5368         * tree-core.h (ECF_BY_DESCRIPTOR): New mask.
5369         Document FUNC_ADDR_BY_DESCRIPTOR and CALL_EXPR_BY_DESCRIPTOR.
5370         * tree.c (make_node_stat) <tcc_declaration>: Use FUNCTION_ALIGNMENT.
5371         (build_common_builtin_nodes): Initialize init_descriptor and
5372         adjust_descriptor.
5373         * tree-nested.c: Include target.h.
5374         (struct nesting_info): Add 'any_descr_created' field.
5375         (get_descriptor_type): New function.
5376         (lookup_element_for_decl): New function extracted from...
5377         (create_field_for_decl): Likewise.
5378         (lookup_tramp_for_decl): ...here.  Adjust.
5379         (lookup_descr_for_decl): New function.
5380         (convert_tramp_reference_op): Deal with descriptors.
5381         (build_init_call_stmt): New function extracted from...
5382         (finalize_nesting_tree_1): ...here.  Adjust and deal with descriptors.
5383         * defaults.h (FUNCTION_ALIGNMENT): Define.
5384         (TRAMPOLINE_ALIGNMENT): Set to above instead of FUNCTION_BOUNDARY.
5385         * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
5386         * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
5387         * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS):Likewise.
5388         * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
5390 2016-10-16  Eric Botcazou  <ebotcazou@adacore.com>
5392         * config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
5393         constants in CONST_VECTORs.
5395 2016-10-15  Eric Botcazou  <ebotcazou@adacore.com>
5397         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
5398         register as destination of bmask.
5399         (vector_init_bshuffle): Likewise.
5400         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
5401         (bmaskdi_vis): Enable only in 64-bit mode.
5403 2016-10-15  Segher Boessenkool  <segher@kernel.crashing.org>
5405         * config/rs6000/rs6000.c (rs6000_get_separate_components): Do not
5406         make LR a separately shrink-wrapped component unless savres_strategy
5407         contains all of {SAVE,REST}_INLINE_{GPRS,FPRS,VRS}.  Do not wrap
5408         GPRs unless both {SAVE,REST}_INLINE_GPRS.  Do not disallow all
5409         wrapping when not both {SAVE,REST}_INLINE_GPRS.
5411 2016-10-15  Eric Botcazou  <ebotcazou@adacore.com>
5413         * optabs.c (expand_parity): Fix mode mismatch, add final conversion
5414         and keep looping on failure.
5416 2016-10-14  David Malcolm  <dmalcolm@redhat.com>
5418         * print-rtl-function.c (print_edge): Omit "(flags)" when none are
5419         set.
5420         (print_rtx_function): Update example in comment for...
5421         * print-rtl.c (print_rtx_operand_code_r): In compact mode, print
5422         non-virtual pseudos with a '%' sigil followed by the regno, offset
5423         by (LAST_VIRTUAL_REGISTER + 1), so that the first non-virtual
5424         pseudo is dumped as "%0".
5426 2016-10-14  Jakub Jelinek  <jakub@redhat.com>
5428         PR middle-end/77959
5429         * expr.c (expand_expr_real_1) <case CONST_DECL>: For EXPAND_WRITE
5430         return a MEM.
5432 2016-10-14  Eric Botcazou  <ebotcazou@adacore.com>
5434         * config/sparc/sparc-passes.def: New file.
5435         * config/sparc/t-sparc (PASSES_EXTRA): Add sparc-passes.def.
5436         * config/sparc/sparc-protos.h (make_pass_work_around_errata): New.
5437         * config/sparc/sparc.c (sparc_option_override): Don't register passes.
5439 2016-10-14  Pat Haugen  <pthaugen@us.ibm.com>
5441         * loop-unroll.c (unroll_loop_runtime_iterations): Condition initial
5442         loop peel to loops with exit test at the beginning.
5444 2016-10-14  Pat Haugen  <pthaugen@us.ibm.com>
5446         PR rtl-optimization/68212
5447         * cfgloopmanip.c (duplicate_loop_to_header_edge): Use preheader edge
5448         frequency when computing scale factor for peeled copies.
5449         * loop-unroll.c (unroll_loop_runtime_iterations): Fix freq/count
5450         values for switch/peel blocks/edges.
5452 2016-10-14  Pedro Alves  <palves@redhat.com>
5454         * coretypes.h (OVERRIDE, FINAL): Delete, moved to include/ansidecl.h.
5456 2016-10-14  Catherine Moore  <clm@codesourcery.com>
5458         * config/mips/mips.c (mips_prepare_pch_save): Initialize
5459         micromips_globals to zero.
5461 2016-10-14  Richard Biener  <rguenther@suse.de>
5463         PR tree-optimization/77979
5464         * tree-vrp.c (compare_name_with_value): Handle released SSA names
5465         in the equivalency sets.
5466         (compare_names): Likewise.
5468 2016-10-14  Martin Liska  <mliska@suse.cz>
5470         * builtins.h(target_char_cst_p): Declare the function.
5471         * builtins.c (fold_builtin_memchr): Remove.
5472         (target_char_cst_p): Move the function from gimple-fold.c.
5473         (fold_builtin_3): Do not call the function.
5474         * gimple-fold.c (gimple_fold_builtin_memchr): New function.
5475         (gimple_fold_builtin): Call the function.
5476         * fold-const-call.c (fold_const_call_1): Handle CFN_BUILT_IN_MEMCHR.
5478 2016-10-14  Martin Liska  <mliska@suse.cz>
5480         * builtins.c (fold_builtin_strcmp): Remove function.
5481         (fold_builtin_strncmp): Likewise.
5482         (fold_builtin_2): Remove call of the function.
5483         (fold_builtin_3): Likewise.
5484         * fold-const-call.c (fold_const_call): Add constant folding
5485         for CFN_BUILT_IN_STRCASECMP and CFN_BUILT_IN_STRNCASECMP.
5486         * fold-const-call.h (build_cmp_result): Declare the function.
5487         * gimple-fold.c (gimple_load_first_char): New function.
5488         (gimple_fold_builtin_string_compare): Likewise.
5489         (gimple_fold_builtin): Call the function.
5491 2016-10-14  Nathan Sidwell  <nathan@acm.org>
5493         * gcov-io.c (gcov_open): Deconstify 'mode'.
5495 2016-10-14  Martin Liska  <mliska@suse.cz>
5497         * fold-const.c (c_getstr): Support of properly \0-terminated
5498         string constants.  New argument is added.
5499         * fold-const.h: New argument is added.
5501 2016-10-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5503         * config/aarch64/aarch64.c (aarch64_print_hint_for_core_or_arch):
5504         New function.
5505         (aarch64_print_hint_for_core): Likewise.
5506         (aarch64_print_hint_for_arch): Likewise.
5507         (aarch64_validate_march): Use it.  Fix indentation in type signature.
5508         (aarch64_validate_mcpu): Use aarch64_print_hint_for_core_or_arch.
5509         (aarch64_validate_mtune): Likewise.
5510         (aarch64_handle_attr_arch): Likewise.
5511         (aarch64_handle_attr_cpu): Likewise.
5512         (aarch64_handle_attr_tune): Likewise.
5514 2016-10-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5516         * optabs.def: Remove optab function gen_int_libfunc for sdivmod_optab
5517         and udivmod_optab.
5519 2016-10-13  Andreas Schwab  <schwab@linux-m68k.org>
5521         * config/m68k/m68k.c (m68k_option_override): Check
5522         opt_fstack_limit_symbol_arg and opt_fstack_limit_register_no
5523         instead of stack_limit_rtx.
5525 2016-10-13  Jakub Jelinek  <jakub@redhat.com>
5527         * dwarf2out.c (gen_member_die): Handle inline static data member
5528         definitions.
5530 2016-10-13  Nathan Sidwell  <nathan@acm.org>
5532         * gcov-io.c (gcov_open): Fix documentation.  Simplify setting
5533         gcov_var.mode.  Remove unnecessary fstat.
5535 2016-10-13  Segher Boessenkool  <segher@kernel.crashing.org>
5537         PR bootstrap/77962
5538         * function.c (thread_prologue_and_epilogue_insns): Call all
5539         make_*logue_seq in the same order as traditional.  Call them
5540         all a second time if shrink_wrapped_separate.
5542 2016-10-13  Marek Polacek  <polacek@redhat.com>
5544         * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
5545         insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Don't
5546         use -Wno-error.
5548 2016-10-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5550         PR tree-optimization/77937
5551         * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
5552         to infinite when we have a pointer with an increment of -1.
5554 2016-10-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5556         * coretypes.h: Move MEMMODEL_* macros and enum memmodel definition
5557         into ...
5558         * memmodel.h: This file.
5559         * alias.c, asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
5560           caller-save.c, calls.c, ccmp.c, cfgbuild.c, cfgcleanup.c,
5561           cfgexpand.c, cfgloopanal.c, cfgrtl.c, cilk-common.c, combine.c,
5562           combine-stack-adj.c, common/config/aarch64/aarch64-common.c,
5563           common/config/arm/arm-common.c, common/config/bfin/bfin-common.c,
5564           common/config/c6x/c6x-common.c, common/config/i386/i386-common.c,
5565           common/config/ia64/ia64-common.c, common/config/nvptx/nvptx-common.c,
5566           compare-elim.c, config/aarch64/aarch64-builtins.c,
5567           config/aarch64/aarch64-c.c, config/aarch64/cortex-a57-fma-steering.c,
5568           config/arc/arc.c, config/arc/arc-c.c, config/arm/arm-builtins.c,
5569           config/arm/arm-c.c, config/avr/avr.c, config/avr/avr-c.c,
5570           config/avr/avr-log.c, config/bfin/bfin.c, config/c6x/c6x.c,
5571           config/cr16/cr16.c, config/cris/cris.c, config/darwin-c.c,
5572           config/darwin.c, config/epiphany/epiphany.c,
5573           config/epiphany/mode-switch-use.c,
5574           config/epiphany/resolve-sw-modes.c, config/fr30/fr30.c,
5575           config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
5576           config/i386/i386-c.c, config/i386/winnt.c, config/iq2000/iq2000.c,
5577           config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
5578           config/m68k/m68k.c, config/mcore/mcore.c,
5579           config/microblaze/microblaze.c, config/mmix/mmix.c,
5580           config/mn10300/mn10300.c, config/moxie/moxie.c,
5581           config/msp430/msp430.c, config/nds32/nds32-cost.c,
5582           config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
5583           config/nds32/nds32-memory-manipulation.c,
5584           config/nds32/nds32-predicates.c, config/nds32/nds32.c,
5585           config/nios2/nios2.c, config/nvptx/nvptx.c, config/pa/pa.c,
5586           config/pdp11/pdp11.c, config/rl78/rl78.c, config/rs6000/rs6000-c.c,
5587           config/rx/rx.c, config/s390/s390-c.c, config/s390/s390.c,
5588           config/sh/sh.c, config/sh/sh-c.c, config/sh/sh-mem.cc,
5589           config/sh/sh_treg_combine.cc, config/sol2.c, config/spu/spu.c,
5590           config/stormy16/stormy16.c, config/tilegx/tilegx.c,
5591           config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
5592           config/visium/visium.c, config/vms/vms-c.c, config/xtensa/xtensa.c,
5593           coverage.c, cppbuiltin.c, cprop.c, cse.c, cselib.c, dbxout.c, dce.c,
5594           df-core.c, df-problems.c, df-scan.c, dojump.c, dse.c, dwarf2asm.c,
5595           dwarf2cfi.c, dwarf2out.c, emit-rtl.c, except.c, explow.c, expmed.c,
5596           expr.c, final.c, fold-const.c, function.c, fwprop.c, gcse.c,
5597           ggc-page.c, haifa-sched.c, hsa-brig.c, hsa-gen.c, hw-doloop.c,
5598           ifcvt.c, init-regs.c, internal-fn.c, ira-build.c, ira-color.c,
5599           ira-conflicts.c, ira-costs.c, ira-emit.c, ira-lives.c, ira.c, jump.c,
5600           loop-doloop.c, loop-invariant.c, loop-iv.c, loop-unroll.c,
5601           lower-subreg.c, lra.c, lra-assigns.c, lra-coalesce.c,
5602           lra-constraints.c, lra-eliminations.c, lra-lives.c, lra-remat.c,
5603           lra-spills.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
5604           postreload-gcse.c, postreload.c, predict.c, print-rtl-function.c,
5605           recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
5606           reload.c, reload1.c, reorg.c, resource.c, rtl-chkp.c, rtl-tests.c,
5607           rtlanal.c, rtlhooks.c, sched-deps.c, sched-rgn.c, sdbout.c,
5608           sel-sched-ir.c, sel-sched.c, shrink-wrap.c, simplify-rtx.c,
5609           stack-ptr-mod.c, stmt.c, stor-layout.c, target-globals.c,
5610           targhooks.c, toplev.c, tree-nested.c, tree-outof-ssa.c,
5611           tree-profile.c, tree-ssa-coalesce.c, tree-ssa-ifcombine.c,
5612           tree-ssa-loop-ivopts.c, tree-ssa-loop.c, tree-ssa-reassoc.c,
5613           tree-ssa-sccvn.c, tree-vect-data-refs.c, ubsan.c, valtrack.c,
5614           var-tracking.c, varasm.c: Include memmodel.h.
5615         * genattrtab.c (write_header): Include memmodel.h in generated file.
5616         * genautomata.c (main): Likewise.
5617         * gengtype.c (open_base_files): Likewise.
5618         * genopinit.c (main): Likewise.
5619         * genconditions.c (write_header): Include memmodel.h earlier in
5620         generated file.
5621         * genemit.c (main): Likewise.
5622         * genoutput.c (output_prologue): Likewise.
5623         * genpeep.c (main): Likewise.
5624         * genpreds.c (write_insn_preds_c): Likewise.
5625         * genrecog.c (write_header): Likewise.
5626         * Makefile.in (PLUGIN_HEADERS): Include memmodel.h
5628 2016-10-13  David Malcolm  <dmalcolm@redhat.com>
5630         * function-tests.c (selftest::test_expansion_to_rtl): Add "true"
5631         for new "compact" param of print_rtx_function.  Check for "cinsn"
5632         rather than "insn".
5633         * print-rtl-function.c (flag_compact): New decl.
5634         (print_rtx_function): Add param "compact" and use it to set
5635         flag_compact, adding a description of the effect to the leading
5636         comment, and updating the example output.
5637         * print-rtl.c (flag_compact): New variable.
5638         (print_rtx_operand_code_0): Omit the JUMP_LABEL reference in compact
5639         mode.
5640         (print_rtx_operand_code_i): When printing source locations, wrap
5641         xloc.file in quotes.  Don't print INSN_CODEs in compact mode.
5642         (print_rtx_operand_code_r): Don't print regnos for hard regs and
5643         virtuals in compact mode.
5644         (print_rtx_operand_code_u): Don't print insn UIDs in compact mode,
5645         apart from in LABEL_REFs.
5646         (print_rtx_operand): In case 'w', don't print in hex in compact mode.
5647         Don't print basic block ids in compact mode.
5648         (print_rtx):  In compact mode, prefix the code of insns with "c",
5649         only print the INSN_UID of CODE_LABELs, and omit their LABEL_NUSES.
5650         * print-rtl.h (print_rtx_function): Add "compact" param.
5652 2016-10-13  Richard Earnshaw  <rearnsha@arm.com>
5654         * arm.h (TARGET_VFP): Delete.
5655         (TARGET_VFPD32): Remove references to TARGET_VFP.
5656         (TARGET_VFP3, TARGET_VFP5): Likewise.
5657         (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Likewise.
5658         (TARGET_NEON_FP16): Likewise.
5659         (TARGET_FMA): Likewise.
5660         (TARGET_CRYPTO): Likewise.
5661         (TARGET_NEON): Likewise.
5662         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
5663         (FUNCTION_ARG_REGNO_P): Likewise.
5664         * arm.c (arm_option_check_internal): Likewise.
5665         (arm_option_override): Likewise.
5666         (use_return_insn): Likewise.
5667         (arm_function_value_regno_p): Likewise.
5668         (arm_apply_result_size): Likewise.
5669         (use_vfp_abi): Likewise.
5670         (arm_legitimate_address_outer_p): Likewise.
5671         (thumb2_legitimate_address_p): Likewise.
5672         (arm_legitimate_index_p): Likewise.
5673         (thumb2_legitimate_index_p): Likewise.
5674         (arm_legitimate_address): Likewise.
5675         (arm_get_vfp_saved_size): Likewise.
5676         (arm_emit_vfp_multi_reg_pop): Likewise.
5677         (arm_get_frame_offsets): Likewise.
5678         (arm_save_coproc_regs): Likewise.
5679         (arm_hard_regno_mode_ok): Likewise.
5680         (arm_expand_epilogue_apcs_frame): Likewise.
5681         (arm_expand_epilogue): Likewise.
5682         (arm_file_start): Likewise.
5683         (arm_conditional_register_usage): Likewise.
5684         (arm_validize_comparison): Use vfp_compare_operand directly.
5685         * arm-builtins.c (arm_init_builtins): Remove references to TARGET_VFP.
5686         (arm_expand_vfp_builtin): Use TARGET_HARD_FLOAT for detecting
5687         unsupported usage.
5688         (arm_atomic_assign_expand_fenv): Likewise.
5689         * arm.md (divsf3): Likewise.
5690         (arm_negsi2): Likewise.
5691         (absdf2): Likewise.
5692         (arm_movdi): Likewise.
5693         (arm_movt): Likewise.
5694         (cbranchsf4): Change predicate to vfp_compare_operand.
5695         (cbranchdf4): Change predicate to vfp_compare_operand.
5696         (cstorehf4): Change predicate to vfp_compare_operand.
5697         (cstoresf4): Change predicate to vfp_compare_operand.
5698         (cstoredf4): Change predicate to vfp_compare_operand.
5699         (vfp_pop_multiple_with_writeback): Remove references to TARGET_VFP.
5700         (movhi_insn_arch4, movhi_bytes): Likewise.
5701         * constraints.md (Dt): Likewise.
5702         (Dp): Likewise.
5703         * iterators.md (SDF): Likewise.
5704         * predicates.md (arm_float_compare_operand): Delete.
5705         (const_double_vcvt_power_of_two_reciprocal): Remove references to
5706         TARGET_VFP.
5707         (const_double_vcvt_power_of_two): Likewise.
5708         * thumb2.md thumb2_movsi_insn): Likewise.
5709         * vfp.md (arm_movhi_vfp, thumb2_movhi_vfp): Likewise.
5710         (movhf_vfp): Likewise.
5711         (arm_movsi_vfp, thumb2_movsi_vfp): Likewise.
5712         (movdi_vfp, movdi_vfp_cortexa8): Likewise.
5713         (movsf_vfp, thumb2_movsf_vfp): Likewise.
5714         (movdf_vfp, thumb2_movdf_vfp): Likewise.
5715         (movsfcc_vfp, abssf2_vfp, negsf2_vfp, addsf3_vfp): Likewise.
5716         (subsf3_vfp, divsf3_vfp): Likewise.
5717         (mulsf3_vfp, mulsf3negsf_vfp, negmulsf3_vfp): Likewise.
5718         (mulsf3addsf_vfp, (mulsf3subsf_vfp, mulsf3negsfaddsf_vfp): Likewise.
5719         (mulsf3negsfsubsf_vfp): Likewise.
5720         (truncsisf2_vfp, fixuns_truncsfsi2, floatsisf2_vfp): Likewise.
5721         (floatunssisf2, sqrtsf2_vfp): Likewise.
5722         (movcc_vfp): Likewise.
5723         (cmpsf_split_vfp, cmpsf_trap_split_vfp): Likewise.
5724         (cmpsf_vfp, cmpsf_trap_vfp): Likewise.
5725         (push_multi_vfp): Likewise.
5726         (set_fpscr, get_fpscr): Likewise.
5727         * arm-c.c (arm_cpu_builtins): Unconditionally define __VFP_FP__.
5729 2016-10-13  Richard Earnshaw  <rearnsha@arm.com>
5731         * arm.h (TARGET_VFP): Unconditionally define to 1.
5732         (arm_fpu_desc): Remove 'model' field.
5733         (TARGET_FPU_MODEL): Delete.
5734         * arm.c (all_fpus): Don't initialize the model field.
5735         (arm_can_inline_p): Don't check the FPU model.
5736         * arm-fpus.def: Remove redundant model field from all FPU
5737         descriptions.
5739 2016-10-13  Richard Biener  <rguenther@suse.de>
5741         PR middle-end/77826
5742         * genmatch.c (struct capture): Add value_match member.
5743         (commutate): Preserve value_match.
5744         (lower_opt_convert): Likewise.
5745         (lower_cond): Likewise.
5746         (replace_id): Likewise.
5747         (struct dt_operand): Add value_match member.
5748         (decision_tree::cmp_node): Compare it.
5749         (decision_tree::insert_operand): Honor it when finding and
5750         when appending a DT_MATCH.
5751         (dt_operand::gen_match_op): Generate a type check after
5752         operand_equal_p if ! value_match for both GENERIC and GIMPLE.
5753         (parser::get_internal_capture_id): New helper.
5754         (parser::finish_match_operand): New function lowering @@<id>.
5755         (parser::parse_capture): Parse @@<id> as value-match.
5756         (parser::parse_expr): Use get_internal_capture_id.
5757         (parser::parse_simplify): Call finish_match_operand.
5758         (walk_captures): New helper.
5759         * match.pd (X - (X / Y) * Y -> X % Y): Use value-matching instead
5760         of operand_equal_p.
5761         ((X /[ex] A) * A -> X): Likewise.
5762         ((X | Y) ^ X -> Y & ~ X): Handle constants properly by using
5763         convert[12] and value-matching.
5764         ((A | B) & (A | C) ->  A | (B & C)): Likewise.
5765         ((X | Y) | Y -> X | Y): Likewise.
5766         ((X ^ Y) ^ Y -> X): Likewise.
5767         (A - (A & B) -> ~B & A): Likewise.
5768         ((T)(P + A) - (T)P -> (T) A): Likewise.
5769         ((T)P - (T)(P + A) -> -(T) A): Likewise.
5770         ((T)(P + A) - (T)(P + B) -> (T)A - (T)B): Likewise.
5771         * doc/match-and-simplify.texi: Amend capture section.
5773 2016-10-13  Claudiu Zissulescu  <claziss@synopsys.com>
5775         * config/arc/arc.md (umul_600): Remove predicated variant.
5776         (umul64_600): Likewise.
5778 2016-10-13  Claudiu Zissulescu  <claziss@synopsys.com>
5780         * config/arc/arc.h (INSN_LENGTH_ALIGNMENT): Change.
5782 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
5784         * tree-vect-loop.c (loop_niters_no_overflow): New func.
5785         (vect_transform_loop): Call loop_niters_no_overflow.  Pass the
5786         no-overflow information to vect_do_peeling_for_loop_bound and
5787         vect_gen_vector_loop_niters.
5789 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
5791         * tree-predcom.c (tree_predictive_commoning_loop): Skip loop that only
5792         iterates 1 time.
5794 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
5796         * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Don't release
5797         adjust_vec automatically.
5798         (slpeel_add_loop_guard): Remove param cond_expr_stmt_list.  Rename
5799         param exit_bb to guard_to.
5800         (slpeel_checking_verify_cfg_after_peeling):
5801         (set_prologue_iterations):
5802         (create_lcssa_for_virtual_phi): New func which is factored out from
5803         slpeel_tree_peel_loop_to_edge.
5804         (slpeel_tree_peel_loop_to_edge):
5805         (iv_phi_p): New func.
5806         (vect_can_advance_ivs_p): Call iv_phi_p.
5807         (vect_update_ivs_after_vectorizer): Call iv_phi_p.  Directly insert
5808         new gimple stmts in basic block.
5809         (vect_gen_niters_for_prolog_loop): Rename to...
5810         (vect_gen_prolog_loop_niters): ...Rename from.  Change parameters and
5811         adjust implementation.
5812         (vect_update_inits_of_drs): Fix code style issue.  Convert niters to
5813         sizetype if necessary.
5814         (vect_build_loop_niters): Move to here from tree-vect-loop.c.  Change
5815         it to external function.
5816         (vect_gen_scalar_loop_niters, vect_gen_vector_loop_niters): New.
5817         (vect_gen_vector_loop_niters_mult_vf): New.
5818         (slpeel_update_phi_nodes_for_loops): New.
5819         (slpeel_update_phi_nodes_for_guard1): Reimplement.
5820         (find_guard_arg, slpeel_update_phi_nodes_for_guard2): Reimplement.
5821         (slpeel_update_phi_nodes_for_lcssa, vect_do_peeling): New.
5822         * tree-vect-loop.c (vect_build_loop_niters): Move to file
5823         tree-vect-loop-manip.c
5824         (vect_generate_tmps_on_preheader): Delete.
5825         (vect_transform_loop): Rename vectorization_factor to vf.  Call
5826         vect_do_peeling instead of vect_do_peeling-* functions.
5827         * tree-vectorizer.h (vect_do_peeling): New decl.
5828         (vect_build_loop_niters, vect_gen_vector_loop_niters): New decls.
5829         (vect_do_peeling_for_loop_bound): Delete.
5830         (vect_do_peeling_for_alignment): Delete.
5832 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
5834         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Put
5835         duplicated loop after its preheader and after the original loop.
5837 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
5839         * tree-vect-loop.c (vect_analyze_loop_2): Check and skip loop if it
5840         has no enough iterations for LOOP_VINFO_PEELING_FOR_GAPS.
5842 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
5844         * tree-vect-loop.c (vectorizable_live_operation): Support handling
5845         for live variable outside loop but not in lcssa form.
5847 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
5849         * cfg.c (reset_original_copy_tables): New func.
5850         * cfg.h (reset_original_copy_tables): New decl.
5852 2016-10-13  Jakub Jelinek  <jakub@redhat.com>
5854         PR c/77946
5855         * tree.h (FALLTHROUGH_LABEL_P): Use private_flag instead of
5856         public_flag.
5857         * varasm.c (default_binds_local_p_3): Formatting fix.
5859 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
5861         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Fix code
5862         style issue.
5863         (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
5864         Remove useless code.
5866 2016-10-13  Martin Liska  <mliska@suse.cz>
5868         PR tree-optimization/77943
5869         * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
5870         a different EH landing pads.
5872 2016-10-13  Jakub Jelinek  <jakub@redhat.com>
5874         PR target/77957
5875         * hooks.h (hook_tree_void_null): Declare.
5876         * hooks.c (hook_tree_void_null): New function.
5877         * langhooks.c (lhd_return_null_tree_v): Remove.
5878         * langhooks-def.h (lhd_return_null_tree_v): Remove.
5879         * cfgexpand.c (stack_protect_prologue): If guard_decl is NULL,
5880         set y to const0_rtx.
5881         * function.c (stack_protect_epilogue): Likewise.
5882         * config/tilepro/tilepro.c (TARGET_STACK_PROTECT_GUARD): Redefine
5883         if TARGET_THREAD_SSP_OFFSET is defined.
5884         * config/s390/s390.c (TARGET_STACK_PROTECT_GUARD): Likewise.
5885         * config/sparc/sparc.c (TARGET_STACK_PROTECT_GUARD): Likewise.
5886         * config/tilegx/tilegx.c (TARGET_STACK_PROTECT_GUARD): Likewise.
5887         * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Likewise.
5888         * config/i386/i386.c (TARGET_STACK_PROTECT_GUARD): Likewise.
5889         (ix86_stack_protect_guard): New function.
5891 2016-10-13  Richard Biener  <rguenther@suse.de>
5893         * dwarf2out.c (tree_add_const_value_attribute): Do not try
5894         rtl_for_decl_init during early phase.
5895         (gen_variable_die): Do not create locations during early phase.
5896         (gen_label_die): Likewise.
5897         (decls_for_scope): Do not waste time handling BLOCK_NONLOCALIZED_VARs
5898         twice.
5900 2016-10-12  Richard Biener  <rguenther@suse.de>
5902         * tree-vrp.c (evrp_dom_walker::try_find_new_range): Renamed from
5903         try_add_new_range and made to eturn new range.
5904         (evrp_dom_walker::before_dom_children): Push op1 value range before
5905         pushing op0 value range.
5907 2016-10-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5909         PR tree-optimization/77937
5910         * gimple-ssa-strength-reduction.c (analyze_increments): Use
5911         POINTER_TYPE_P on the candidate type to determine whether
5912         candidates in this chain require pointer arithmetic.
5914 2016-10-12  Eric Botcazou  <ebotcazou@adacore.com>
5916         * config/visium/visium.c (visium_gimplify_va_arg): Emit a big-endian
5917         correction if the type is smaller than a word.
5918         (visium_select_cc_mode): Add ... fall through ... comment.
5920 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
5922         * config/rs6000/rs6000.c (machine_function): Add new fields
5923         gpr_is_wrapped_separately and lr_is_wrapped_separately.
5924         (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
5925         TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
5926         TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
5927         TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
5928         TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
5929         TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
5930         (rs6000_get_separate_components): New function.
5931         (rs6000_components_for_bb): New function.
5932         (rs6000_disqualify_components): New function.
5933         (rs6000_emit_prologue_components): New function.
5934         (rs6000_emit_epilogue_components): New function.
5935         (rs6000_set_handled_components): New function.
5936         (rs6000_emit_prologue): Don't emit LR save if lr_is_wrapped_separately.
5937         Don't emit GPR saves if gpr_is_wrapped_separately for that register.
5938         (restore_saved_lr): Don't restore LR if lr_is_wrapped_separately.
5939         (rs6000_emit_epilogue): Don't emit GPR restores if
5940         gpr_is_wrapped_separately for that register.  Don't make a
5941         REG_CFA_RESTORE note for registers we did not restore, either.
5943 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
5945         * function.c (thread_prologue_and_epilogue_insns): Call
5946         try_shrink_wrapping_separate.  Compute the prologue_seq afterwards,
5947         if it has possibly changed.  Compute the split_prologue_seq and
5948         epilogue_seq later, too.
5949         * shrink-wrap.c: #include cfgbuild.h and insn-config.h.
5950         (dump_components): New function.
5951         (struct sw): New struct.
5952         (SW): New function.
5953         (init_separate_shrink_wrap): New function.
5954         (fini_separate_shrink_wrap): New function.
5955         (place_prologue_for_one_component): New function.
5956         (spread_components): New function.
5957         (disqualify_problematic_components): New function.
5958         (emit_common_heads_for_components): New function.
5959         (emit_common_tails_for_components): New function.
5960         (insert_prologue_epilogue_for_components): New function.
5961         (try_shrink_wrapping_separate): New function.
5962         * shrink-wrap.h: Declare try_shrink_wrapping_separate.
5964 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
5966         * regrename.c (build_def_use): Invalidate chains that have a
5967         REG_CFA_RESTORE on some instruction.
5969 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
5971         * dce.c (delete_unmarked_insns): Don't delete instructions with
5972         a REG_CFA_RESTORE note.
5974 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
5976         * common.opt (-fshrink-wrap-separate): New flag.
5977         * doc/invoke.texi: Document it.
5978         * doc/tm.texi.in (Shrink-wrapping separate components): New subsection.
5979         * doc/tm.texi: Regenerate.
5980         * emit-rtl.h (struct rtl_data): New field shrink_wrapped_separate.
5981         * target.def (shrink_wrap): New hook vector.
5982         (get_separate_components, components_for_bb, disqualify_components,
5983         emit_prologue_components, emit_epilogue_components,
5984         set_handled_components): New hooks.
5986 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
5988         * config/rs6000/rs6000.c (rs6000_return_in_memory): Warn for
5989         vector return by reference only if -Wpsabi.
5990         (rs6000_pass_by_reference): Similarly, for argument passing.
5992 2016-10-12  David Malcolm  <dmalcolm@redhat.com>
5994         * function-tests.c: Include "print-rtl.h".
5995         (selftest::test_expansion_to_rtl): Call print_rtx_function on the
5996         function, and verify what is dumped.
5997         * print-rtl-function.c (print_edge): New function.
5998         (begin_any_block): New function.
5999         (end_any_block): New function.
6000         (can_have_basic_block_p): New function.
6001         (print_rtx_function): Track the basic blocks of insns in the
6002         chain, wrapping those that are within blocks within "(block)"
6003         directives.  Remove the "(cfg)" directive.
6005 2016-10-12  David Malcolm  <dmalcolm@redhat.com>
6007         * selftest.c (selftest::read_file): New function.
6008         (selftest::test_read_file): New function.
6009         (selftest::selftest_c_tests): Call test_read_file.
6010         * selftest.h (selftest::read_file): New decl.
6012 2016-10-12  Richard Biener  <rguenther@suse.de>
6014         PR debug/77947
6015         * cgraphunit.c (analyze_functions): Preserve cgraph nodes
6016         function context.
6018 2016-10-12  Thomas Schwinge  <thomas@codesourcery.com>
6020         * lto-streamer.c: Fix LTO_STREAMER_DEBUG build.
6022         * dwarf2out.c (dwarf2_lineno_debug_hooks): Use
6023         dwarf2out_assembly_start.
6025         * Makefile.in (SELFTEST_FLAGS): Add -nostdinc.
6027         * Makefile.in (SELFTEST_FLAGS): New variable.
6028         (s-selftest, selftest-gdb, selftest-valgrind): Use it.
6030         * vmsdbgout.c (vmsdbg_debug_hooks): Add filename parameter to
6031         early_finish hook.
6033 2016-10-12  Georg-Johann Lay  <avr@gjlay.de>
6035         * rtl.h (struct rtx_def): Comment how RTX_FLAGS will be
6036         dumped in RTL dumps.
6038 2016-10-12  Martin Liska  <mliska@suse.cz>
6040         * gimple-fold.c (create_tmp_reg_or_ssa_name): New function.
6041         (gimple_fold_builtin_memory_op): Use the function.
6042         (gimple_fold_builtin_strchr): Likewise.
6043         (gimple_fold_builtin_strcat): Likewise.
6044         (gimple_build): Likewise.
6046 2016-10-12  Nathan Sidwell  <nathan@acm.org>
6048         * diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
6050 2016-10-12  Pierre-Marie de Rodat  <derodat@adacore.com>
6052         * dwarf2out.c (int_loc_descriptor): Generate opcodes for another
6053         equivalent 32-bit constant (modulo 2**32) when that yields
6054         smaller instructions.
6055         (size_of_int_loc_descriptor): Update accordingly.
6057 2016-10-12  Pierre-Marie de Rodat  <derodat@adacore.com>
6059         * dwarf2out.c (dwarf2out_early_global_decl): For nested
6060         functions, call dwarf2out_decl on the parent function first.
6062 2016-10-12  Richard Biener  <rguenther@suse.de>
6064         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
6065         on the conversion.
6067 2016-10-12  Richard Biener  <rguenther@suse.de>
6069         * tree-ssa-propagate.c
6070         (substitute_and_fold_dom_walker::before_dom_children): Do not
6071         ignore ASSERT_EXPRs but only preserve them.
6072         * tree-vrp.c (remove_range_assertions): Deal with ASSERT_EXPRs
6073         that have been propagated into.
6074         (vrp_finalize): Enable DCE for substitute_and_fold.
6076 2016-10-12  Richard Biener  <rguenther@suse.de>
6078         PR tree-optimization/77920
6079         * tree-vrp.c (simplify_div_or_mod_using_ranges): Simplify.
6080         (simplify_min_or_max_using_ranges): Pass in gsi and use it.
6081         (simplify_abs_using_ranges): Likewise.
6082         (simplify_conversion_using_ranges): Likewise.
6083         (simplify_stmt_using_ranges): Adjust.
6085 2016-10-12  Jakub Jelinek  <jakub@redhat.com>
6087         PR tree-optimization/77929
6088         * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle
6089         (*ops)[ranges[i].idx]->op != ranges[i].exp case.
6091 2016-10-12  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
6093         PR target/77934
6094         * config/rs6000/vmx.md (vsx_concat_<mode>): The mtvsrdd instruction
6095         needs a base register for arg 1.
6097 2016-10-12  Jakub Jelinek  <jakub@redhat.com>
6099         * common.opt (Wimplicit-fallthrough) Turn into alias to
6100         -Wimplicit-fallthrough=3.  Remove EnabledBy.
6101         (Wimplicit-fallthrough=): New option.
6102         * gimplify.c (warn_implicit_fallthrough_r): Use
6103         OPT_Wimplicit_fallthrough_ instead of OPT_Wimplicit_fallthrough.
6104         * doc/invoke.texi (-Wimplicit-fallthrough): Document as alias
6105         to -Wimplicit-fallthrough=3.
6106         (-Wimplicit-fallthrough=): Document.
6108 2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>
6110         * config/sparc/sparc.c (emit_scc_insn): Remove direct support for EQ
6111         and GEU in DImode if TARGET_SUBXC.
6112         * config/sparc/sparc.md (seqdi<W:mode>_zero): Remove TARGET_SUBXC.
6113         (seqdi<W:mode>_zero_subxc): Delete.
6114         (neg_seqdi<W:mode>_zero): Remove TARGET_VIS3.
6115         (neg_seqdi<W:mode>_zero_vis3): Delete.
6116         (plus_seqdi<W:mode>_zero): Likewise.
6117         (minus_seqdi<W:mode>_zero): Likewise.
6118         (plus_plus_sltu<W:mode>): Accept only register.
6119         (addx<W:mode>): Likewise.
6120         (plus_sltu<W:mode>_vis3): Likewise.
6121         (plus_plus_sltu<W:mode>_vis3): Likewise.
6122         (neg_sgeu<W:mode>_vis3): Delete.
6123         (minus_sgeu<W:mode>_vis3): Likewise.
6124         (addxc<W:mode>): Accept only registers.
6125         (neg_sltu<W:mode>_subxc): Write %%g0 instead of 0.
6126         (minus_neg_sltu<W:mode>_subxc): Accept only register.
6127         (neg_plus_sltu<W:mode>_subxc): Likewise.
6128         (minus_sltu<W:mode>_subxc): Write %%g0 instead of 0.
6129         (minus_minus_sltu<W:mode>_subxc): Accept only register.
6130         (sgeu<W:mode>_insn_subxc): Delete.
6131         (plus_sgeu<W:mode>_subxc): Likewise.
6132         (subxc<W:mode>): Accept only register.
6133         (scc splitter): Split always GEU again.
6135 2016-10-11  Jeff Law  <law@redhat.com>
6137         PR tree-optimization/77424
6138         * tree-ssa-threadupdate.c (thread_through_all_blocks): Remove
6139         dead conditionals.  Assert that all e->aux fields are NULL.
6141 2016-10-11  David Malcolm  <dmalcolm@redhat.com>
6143         * print-rtl.c (print_rtx): Rename "i" to "idx".  Split out the
6144         operand-printing "switch" statement into...
6145         (print_rtx_operand_code_0): ...this new function, ...
6146         (print_rtx_operand_code_e): ...this new function, ...
6147         (print_rtx_operand_codes_E_and_V): ...this new function, ...
6148         (print_rtx_operand_code_i): ...this new function, ...
6149         (print_rtx_operand_code_r): ...this new function, ...
6150         (print_rtx_operand_code_u): ...this new function, ...
6151         (print_rtx_operand): ...and this new function.
6153 2016-10-11  Uros Bizjak  <ubizjak@gmail.com>
6155         * config/alpha/alpha-passes.def: New file.
6156         * config/alpha/t-alpha: New file.
6157         * config/alpha/alpha-protos.h (gcc::context, rtl_opt_pass): Declare.
6158         (make_pass_handle_trap_shadows): New prototype.
6159         (make_pass_align_insns): Ditto.
6160         * config/alpha/alpha.c (alpha_option_override): Don't register
6161         passes here.
6162         * config.gcc (alpha*-*-*) Add alpha/t-alpha to tmake_file.
6164 2016-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
6166         PR target/77924
6167         * config/rs6000/rs6000.c (rs6000_init_builtins): Only create the
6168         distinct __ibm128 IBM extended double type if long doubles are
6169         128-bits and the default format for long double is IEEE 128-bit.
6171 2016-10-11  Richard Biener  <rguenther@suse.de>
6173         * dwarf2out.c (DEBUG_STR_OFFSETS_SECTION): Remove conditional.
6174         (init_sections_and_labels): Use DEBUG_DWO_STR_OFFSETS_SECTION.
6175         (verify_die): New function.
6176         (dwarf2out_finish): Call it.
6177         (output_line_info): Handle case of -gsplit-dwarf without
6178         DWARF2_ASM_LINE_DEBUG_INFO.
6180 2016-10-11  Richard Biener  <rguenther@suse.de>
6182         PR debug/77931
6183         * gimple-low.c (lower_gimple_bind): Handle arbitrary common
6184         sub-chains of BLOCK_VARS and gimple_bind_vars.
6186 2016-10-11  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
6188         * config/i386/znver1.md : Fix imov/imovx load type reservations.
6190 2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>
6192         * config/sparc/sparc.opt (msubxc): New option.
6193         * doc/invoke.texi (SPARC options): Document it and tidy up.
6194         * doc/tm.texi.in (Condition Codes): Adjust SPARC example.
6195         * doc/tm.texi: Regenerate.
6196         * config/sparc/sparc-modes.def (CC_NOOV): Rename into...
6197         (CCNZ): ...this.
6198         (CCX_NOOV): Rename into...
6199         (CCXNZ): ...this.
6200         (CCC): New.
6201         (CCXC): Likewise.
6202         * config/sparc/predicates.m (fcc_register_operand): Simplify.
6203         (fcc0_register_operand): Likewise.
6204         (icc_register_operand): New.
6205         (icc_or_fcc_register_operand): Simplify.
6206         (nz_comparison_operator): New.
6207         (c_comparison_operator): Likewise.
6208         (noov_compare_operator): Rename into...
6209         (icc_comparison_operator): ...this.  Use above predicates.
6210         (noov_compare64_operator): Rename into...
6211         (v9_comparison_operator): ...this and tidy up.
6212         (fcc_comparison_operator): New.
6213         (icc_or_fcc_comparison_operator): Likewise.
6214         (v9_register_compare_operator): Rename info...
6215         (v9_register_comparison_operator): ...this.
6216         * config/sparc/sparc.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
6217         (sparc_option_override): Remove redundant VIS masks and add MASK_SUBXC
6218         for Niagara-7.
6219         (sparc_fixed_condition_code_regs): New function.
6220         (select_cc_mode): Remove ATTRIBUTE_UNUSED.  Adjust for CCNZ/CCXNZ
6221         renaming and add support for CCC/CCXC.
6222         (output_cbranch): Likewise.
6223         (sparc_print_operand): Likewise.
6224         (gen_v9_scc): Remove obsolete assertion.
6225         (emit_scc_insn): Emit RTL directly for EQ and NE.  Add direct support
6226         for EQ in DImode if TARGET_SUBXC.  Remove test on TARGET_VIS3 for GEU.
6227         (output_cbcond): Remove bogus handling of CC modes.
6228         (sparc_register_move_cost): Return 100 for NO_REGS.
6229         * config/sparc/sparc.md (W): New mode iterator.
6230         (length): Adjust for noov_compare64_operator renaming.
6231         (cmpsi_sne): New instruction.
6232         (cmpdi_sne): Likewise.
6233         (seqdi_special): Delete.
6234         (seqdi_special): Likewise.
6235         (snesi<P:mode>_special): Likewise.
6236         (snedi_special): Likewise.
6237         (snedi_special_vis3): Likewise.
6238         (snesi patterns): Use W iterator.
6239         (snedi patterns): Likewise.  Add TARGET_SUBXC patterns.
6240         (sltu patterns): Likewise.
6241         (sgeu patterns): Likewise.
6242         (scc splitter): Do not split GEU in DImode if TARGET_SUBXC.
6243         (normal_branch): Use icc_comparison_operator predicate.
6244         (inverted_branch): Likewise.
6245         (cbcond_sp32): Use comparison_operator predicate.
6246         (cbcond_sp64): Likewise.
6247         (normal_int_branch_sp64): Adjust for renaming
6248         (inverted_int_branch_sp64): Likewise.
6249         (mov<I:mode>_cc_reg_sp64): Likewise.
6250         (movsf_cc_reg_sp6): Likewise.
6251         (movdf_cc_reg_sp64): Likewise.
6252         (movtf_cc_reg_hq_sp64): Likewise.
6253         (movtf_cc_reg_sp64): Likewise.
6254         (mov<I:mode>_cc_v9): Use icc_or_fcc_comparison_operator predicate.
6255         (movsf_cc_v9): Likewise.
6256         (movdf_cc_v9): Likewise.
6257         (movtf_cc_hq_v9): Likewise.
6258         (movtf_cc_v9): Likewise.
6259         (adddi3): Call gen_adddi3_sp32.
6260         (adddi3_insn_sp32): Rename to...
6261         (adddi3_sp32): ...this.  Accept only register_operand as operand #1
6262         and use CCCmode for the carry.
6263         (addx_extend_sp32): Use CCCmode for the carry.
6264         (addx_extend_sp64): Delete.
6265         (adddi3_extend_sp32): Use CCCmode for the carry.
6266         (cmp_plus patterns): Use CCNZ/CCXNZ mode and add C variants.
6267         (subdi3): Call gen_subdi3_sp32.
6268         (subdi3_insn_sp32): Rename to...
6269         (subdi3_sp32): ...this and use CCmode for the carry.
6270         (subx_extend_sp32): Use CCCmode for the carry.
6271         (subx_extend_sp64): Delete.
6272         (subdi3_extend_sp32): Use CCmode for the carry.
6273         (cmp_minus patterns): Use CCNZ/CCXNZ mode and add C variants.
6274         (negdi3): Call gen_negdi3_sp32.
6275         (negdi3_sp32): Use CCCmode for the carry.
6276         (cmp_neg patterns): Use CCNZ/CCXNZ mode and add C variants.
6277         (cmp_nz_ashift_1): Use CCNZ mode.
6278         (cmp_nz_set_ashift_1): Likewise.
6279         (ctrapsi4): Use comparison_operator predicate.
6280         (ctrapdi4): Likewise.
6281         (trapsi_insn): Use icc_comparison_operator predicate.
6282         (trapdi_insn): Likewise.
6283         (edge8 patterns): Use CCNZmode.
6284         (edge16 patterns): Likewise.
6285         (edge32 patterns): Likewise.
6287 2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>
6289         * config/visium/visium-modes.def (CC_NOOV): Rename into...
6290         (CCNZ): ...this.
6291         (CC_BTST): Rename into...
6292         (CCC): ...this.
6293         * config/visium/predicates.md (real_add_operand): New.
6294         (visium_btst_operator): Rename into...
6295         (visium_equality_comparison_operator): ...this.
6296         (visium_noov_operator): Rename into...
6297         (visium_nz_comparison_operator): ...this.
6298         (visium_c_comparison_operator): New.
6299         (visium_branch_operator): Adjust and deal with all CC modes.
6300         * config/visium/visium.c (visium_adjust_cost): Adjust.
6301         (visium_split_double_add): Use the *_set_carry patterns.
6302         (visium_select_cc_mode): Add support for CCC mode and adjust.
6303         (output_cbranch): Adjust and use the carry-based operators for
6304         floating-point comparisons.
6305         * config/visium/visium.md (flags_subst_arith): Adjust.
6306         (addsi3_insn_set_carry): New instruction.
6307         (subsi3_insn_set_carry): Likewise.
6308         (negsi2_insn_set_carry): Likewise.
6309         (btst): Adjust.
6310         (cmp<mode>_sne): Likewise.
6311         (cbranch<mode>4): Use ordered_comparison_operator.
6312         (cbranch<mode>4_insn): Likewise.
6313         (cbranchsi4_btst_insn): Adjust.
6315 2016-10-11  Tom de Vries  <tom@codesourcery.com>
6317         PR middle-end/77558
6318         * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
6319         special-casing.
6321 2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>
6323         * tree.h (build_complex_type): Add second parameter with default.
6324         * tree.c (build_complex_type): Add NAMED second parameter and adjust
6325         recursive call.  Create a TYPE_DECL only if NAMED is true.
6326         (build_common_tree_nodes): Pass true in calls to build_complex_type.
6328 2016-10-11  Georg-Johann Lay  <avr@gjlay.de>
6330         New avr-passes.def to register AVR specific passes.
6332         * config/avr/avr-passes.def: New file.
6333         * config/avr/t-avr (PASSES_EXTRA): Add avr-passes.def.
6334         * config/avr/avr-protos.h (gcc::context, rtl_opt_pass): Declare.
6335         (make_avr_pass_recompute_note): New proto.
6336         * config/avr/avr.c (make_avr_pass_recompute_notes): New function.
6337         (avr_pass_recompute_notes): Use anonymous namespace.
6338         (avr_register_passes): Remove function...
6339         (avr_option_override): ...and its call.
6341 2016-10-11  Robert Suchanek  <robert.suchanek@imgtec.com>
6343         * config/mips/mips-cpus.def: Replace PTF_AVOID_BRANCHLIKELY with
6344         PTF_AVOID_BRANCHLIKELY_ALWAYS for generic architecture and with
6345         PTF_AVOID_BRANCHLIKELY_SPEED for others.
6346         (mips2, mips3, mips4): Add PTF_AVOID_BRANCHLIKELY_SIZE to tune
6347         flags.
6348         * config/mips/mips.c (mips_option_override): Enable the branch
6349         likely depending on the tune flags and optimization level.
6350         * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): Remove.
6351         (PTF_AVOID_BRANCHLIKELY_SPEED): Define.
6352         (PTF_AVOID_BRANCHLIKELY_SIZE): Likewise.
6353         (PTF_AVOID_BRANCHLIKELY_ALWAYS): Likewise.
6355 2016-10-11  Richard Biener  <rguenther@suse.de>
6357         * lto-streamer-out.c (collect_block_tree_leafs): New helper.
6358         (output_function): Properly stream the whole block tree.
6359         * lto-streamer-in.c (input_function): Likewise.
6361 2016-10-11  Marek Polacek  <polacek@redhat.com>
6363         * Makefile.in (C_COMMON_OBJS): Add c-family/c-warn.o.
6365 2016-10-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
6367         * tree-vrp.c (evrp_dom_walker::try_add_new_range): New.
6368         (evrp_dom_walker::before_dom_children): Infer and push new value
6369         ranges for x in y < x.
6371 2016-10-10  Joseph Myers  <joseph@codesourcery.com>
6373         PR target/77586
6374         * config/ia64/ia64.c (ia64_libgcc_floating_mode_supported_p)
6375         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
6376         * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Likewise.
6377         * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Likewise.
6378         * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
6379         (IA64_NO_LIBGCC_TFMODE): Likewise.
6381 2016-10-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
6383         * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
6384           copying.
6386 2016-10-10  Andreas Tobler  <andreast@gcc.gnu.org>
6388         * config.gcc: Add aarch64-*-freebsd* support.
6389         * config.host: Likewise.
6390         * config/aarch64/aarch64-freebsd.h: New file.
6391         * config/aarch64/t-aarch64-freebsd: Ditto.
6393 2016-10-10  Jeff Law  <law@redhat.com>
6395         PR tree-optimization/71947
6396         * tree-ssa-dom.c (cprop_into_stmt): Avoid replacing A with B, then
6397         B with A within a single statement.
6399 2016-10-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6401         PR tree-optimization/77824
6402         * gimple-ssa-strength-reduction.c (stmt_cost): Explicitly return
6403         zero cost for copies.
6404         (find_candidates_dom_walker::before_dom_children): Replace
6405         MODIFY_EXPR with SSA_NAME.
6406         (replace_mult_candidate): Likewise.
6407         (replace_profitable_candidates): Likewise.
6409 2016-10-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6411         * config/s390/s390.h: Wrap more macros args in brackets and fix
6413 2016-10-10  Georg-Johann Lay  <avr@gjlay.de>
6415         * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
6417 2016-10-10  Andreas Schwab  <schwab@suse.de>
6419         PR target/77738
6420         * config/ia64/ia64.md ("doloop_end"): Reject if mode of loop
6421         pseudo is not DImode.
6423 2016-10-10  Claudiu Zissulescu  <claziss@synopsys.com>
6425         * common/config/arc/arc-common.c (arc_option_optimization_table):
6426         Remove compact casesi option.
6427         * config/arc/arc.c (arc_override_options): Use compact casesi
6428         option only for pre-ARCv2 cores.
6429         * doc/invoke.texi (mcompact-casesi): Update text.
6431 2016-10-09  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
6433         * config/rs6000/rs6000.h (TARGET_EFFICIENT_OVERLAPPING_UNALIGNED):
6434         Add macro to say we can efficiently handle overlapping unaligned
6435         loads.
6436         * config/rs6000/rs6000.c (expand_block_compare): Avoid generating
6437         poor code for processors older than p8.
6439 2016-10-09  Eric Botcazou  <ebotcazou@adacore.com>
6441         * gen-pass-instances.awk: Remove GNUism.
6443 2016-10-09  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6445         * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to
6446         NULL of (*ipcp_transformations)][node->uid].
6448 2016-10-09  John David Anglin  <danglin@gcc.gnu.org>
6450         * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
6451         (MALLOC_ABI_ALIGNMENT): Define.
6453 2016-10-09  Jakub Jelinek  <jakub@redhat.com>
6455         * tree-ssa.c (target_for_debug_bind, verify_phi_args,
6456         ssa_undefined_value_p, maybe_optimize_var): Use VAR_P and/or
6457         VAR_OR_FUNCTION_DECL_P macros.
6458         * tree-chkp.c (chkp_register_var_initializer, chkp_make_static_bounds,
6459         chkp_get_bounds_for_decl_addr, chkp_parse_array_and_component_ref,
6460         chkp_find_bounds_1): Likewise.
6461         * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Likewise.
6462         * hsa-gen.c (get_symbol_for_decl): Likewise.
6463         * cgraphunit.c (check_global_declaration, analyze_functions,
6464         handle_alias_pairs, thunk_adjust, cgraph_node::expand_thunk):
6465         Likewise.
6466         * gimple-fold.c (can_refer_decl_in_current_unit_p,
6467         canonicalize_constructor_val, gimple_get_virt_method_for_vtable):
6468         Likewise.
6469         * tree.c (set_decl_section_name, copy_node_stat,
6470         need_assembler_name_p, free_lang_data_in_decl, find_decls_types_r,
6471         merge_dllimport_decl_attributes, handle_dll_attribute,
6472         decl_init_priority_insert, auto_var_in_fn_p, array_at_struct_end_p,
6473         verify_type): Likewise.
6474         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior,
6475         find_explicit_erroneous_behavior): Likewise.
6476         * sdbout.c (sdbout_toplevel_data, sdbout_late_global_decl): Likewise.
6477         * ipa.c (process_references): Likewise.
6478         * tree-chkp-opt.c (chkp_get_check_result): Likewise.
6479         * varasm.c (get_block_for_decl, use_blocks_for_decl_p, make_decl_rtl,
6480         notice_global_symbol, assemble_variable, mark_decl_referenced,
6481         build_constant_desc, output_constant_def_contents, do_assemble_alias,
6482         make_decl_one_only, default_section_type_flags,
6483         categorize_decl_for_section, default_encode_section_info): Likewise.
6484         * trans-mem.c (requires_barrier): Likewise.
6485         * gimple-expr.c (mark_addressable): Likewise.
6486         * cfgexpand.c (add_scope_conflicts_1, expand_one_var,
6487         expand_used_vars_for_block, clear_tree_used, stack_protect_decl_p,
6488         expand_debug_expr): Likewise.
6489         * tree-dump.c (dequeue_and_dump): Likewise.
6490         * ubsan.c (instrument_bool_enum_load): Likewise.
6491         * tree-pretty-print.c (print_declaration): Likewise.
6492         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
6493         * tree-ssa-uninit.c (warn_uninitialized_vars): Likewise.
6494         * asan.c (asan_protect_global, instrument_derefs): Likewise.
6495         * tree-into-ssa.c (rewrite_stmt, maybe_register_def,
6496         pass_build_ssa::execute): Likewise.
6497         * var-tracking.c (var_debug_decl, track_expr_p): Likewise.
6498         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost, split_address_cost):
6499         Likewise.
6500         * ipa-split.c (test_nonssa_use, consider_split, mark_nonssa_use):
6501         Likewise.
6502         * tree-inline.c (insert_debug_decl_map, remap_ssa_name,
6503         can_be_nonlocal, remap_decls, copy_debug_stmt,
6504         initialize_inlined_parameters, add_local_variables,
6505         reset_debug_binding, replace_locals_op): Likewise.
6506         * dse.c (can_escape): Likewise.
6507         * ipa-devirt.c (compare_virtual_tables, referenced_from_vtable_p):
6508         Likewise.
6509         * tree-diagnostic.c (default_tree_printer): Likewise.
6510         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
6511         unpack_ts_decl_with_vis_value_fields,
6512         lto_input_ts_decl_common_tree_pointers): Likewise.
6513         * builtins.c (builtin_save_expr, fold_builtin_expect,
6514         readonly_data_expr): Likewise.
6515         * tree-ssa-structalias.c (new_var_info, get_constraint_for_ssa_var,
6516         create_variable_info_for, set_uids_in_ptset, visit_loadstore):
6517         Likewise.
6518         * gimple-streamer-out.c (output_gimple_stmt): Likewise.
6519         * gimplify.c (force_constant_size, gimplify_bind_expr,
6520         gimplify_decl_expr, gimplify_var_or_parm_decl,
6521         gimplify_compound_lval, gimplify_init_constructor,
6522         gimplify_modify_expr, gimplify_asm_expr, gimplify_oacc_declare,
6523         gimplify_type_sizes): Likewise.
6524         * cgraphbuild.c (record_reference, record_type_list, mark_address,
6525         mark_load, mark_store, pass_build_cgraph_edges::execute): Likewise.
6526         * tree-ssa-live.c (mark_all_vars_used_1, remove_unused_scope_block_p,
6527         remove_unused_locals): Likewise.
6528         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p, ptrs_compare_unequal,
6529         ref_maybe_used_by_call_p_1, call_may_clobber_ref_p_1): Likewise.
6530         * function.c (instantiate_expr, instantiate_decls_1,
6531         setjmp_vars_warning, add_local_decl): Likewise.
6532         * alias.c (ao_ref_from_mem, get_alias_set, compare_base_symbol_refs):
6533         Likewise.
6534         * tree-stdarg.c (find_va_list_reference, va_list_counter_struct_op,
6535         va_list_ptr_read, va_list_ptr_write, check_all_va_list_escapes,
6536         optimize_va_list_gpr_fpr_size): Likewise.
6537         * tree-nrv.c (pass_nrv::execute): Likewise.
6538         * tsan.c (instrument_expr): Likewise.
6539         * tree-ssa-dce.c (remove_dead_stmt): Likewise.
6540         * vtable-verify.c (verify_bb_vtables): Likewise.
6541         * tree-dfa.c (ssa_default_def, set_ssa_default_def,
6542         get_ref_base_and_extent): Likewise.
6543         * toplev.c (wrapup_global_declaration_1, wrapup_global_declaration_2):
6544         Likewise.
6545         * tree-sra.c (static bool constant_decl_p, find_var_candidates,
6546         analyze_all_variable_accesses): Likewise.
6547         * tree-nested.c (get_nonlocal_debug_decl,
6548         convert_nonlocal_omp_clauses, note_nonlocal_vla_type,
6549         note_nonlocal_block_vlas, convert_nonlocal_reference_stmt,
6550         get_local_debug_decl, convert_local_omp_clauses,
6551         convert_local_reference_stmt, nesting_copy_decl, remap_vla_decls):
6552         Likewise.
6553         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Likewise.
6554         * stmt.c (decl_overlaps_hard_reg_set_p): Likewise.
6555         * dbxout.c (dbxout_late_global_decl, dbxout_type_fields,
6556         dbxout_symbol, dbxout_common_check): Likewise.
6557         * expr.c (expand_assignment, expand_expr_real_2, expand_expr_real_1,
6558         string_constant): Likewise.
6559         * hsa.c (hsa_get_declaration_name): Likewise.
6560         * passes.c (rest_of_decl_compilation): Likewise.
6561         * tree-ssanames.c (make_ssa_name_fn): Likewise.
6562         * tree-streamer-out.c (pack_ts_decl_common_value_fields,
6563         pack_ts_decl_with_vis_value_fields,
6564         write_ts_decl_common_tree_pointers): Likewise.
6565         * stor-layout.c (place_field): Likewise.
6566         * symtab.c (symtab_node::maybe_create_reference,
6567         symtab_node::verify_base, symtab_node::make_decl_local,
6568         symtab_node::copy_visibility_from,
6569         symtab_node::can_increase_alignment_p): Likewise.
6570         * dwarf2out.c (add_var_loc_to_decl, tls_mem_loc_descriptor,
6571         decl_by_reference_p, reference_to_unused, rtl_for_decl_location,
6572         fortran_common, add_location_or_const_value_attribute,
6573         add_scalar_info, add_linkage_name, set_block_abstract_flags,
6574         local_function_static, gen_variable_die, dwarf2out_late_global_decl,
6575         optimize_one_addr_into_implicit_ptr,
6576         optimize_location_into_implicit_ptr): Likewise.
6577         * gimple-low.c (record_vars_into): Likewise.
6578         * ipa-visibility.c (update_vtable_references): Likewise.
6579         * tree-ssa-address.c (fixed_address_object_p, copy_ref_info):
6580         Likewise.
6581         * lto-streamer-out.c (tree_is_indexable, get_symbol_initial_value,
6582         DFS::DFS_write_tree_body, write_symbol): Likewise.
6583         * langhooks.c (lhd_warn_unused_global_decl,
6584         lhd_set_decl_assembler_name): Likewise.
6585         * attribs.c (decl_attributes): Likewise.
6586         * except.c (output_ttype): Likewise.
6587         * varpool.c (varpool_node::get_create, ctor_for_folding,
6588         varpool_node::assemble_decl, varpool_node::create_alias): Likewise.
6589         * fold-const.c (fold_unary_loc): Likewise.
6590         * ipa-prop.c (ipa_compute_jump_functions_for_edge,
6591         ipa_find_agg_cst_from_init): Likewise.
6592         * omp-low.c (expand_omp_regimplify_p, expand_omp_taskreg,
6593         expand_omp_target, lower_omp_regimplify_p,
6594         grid_reg_assignment_to_local_var_p, grid_remap_prebody_decls,
6595         find_link_var_op): Likewise.
6596         * tree-chrec.c (chrec_contains_symbols): Likewise.
6597         * tree-cfg.c (verify_address, verify_expr, verify_expr_location_1,
6598         gimple_duplicate_bb, move_stmt_op, replace_block_vars_by_duplicates,
6599         execute_fixup_cfg): Likewise.
6601         PR tree-optimization/77901
6602         * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Only optimize
6603         if ranges[i].exp is SSA_NAME when looking for >= and only when
6604         ranges[i].exp is NULL or SSA_NAME when looking for the other
6605         comparison.
6607 2016-10-09  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6609         * ipa-cp.c (ipcp_alignment_lattice): Remove.
6610         (ipcp_param_lattices): Remove field alignment.
6611         (print_all_lattices): Remove call to ipcp_alignment_lattice::print.
6612         (set_all_contains_variable): Remove call to
6613         ipcp_alignment_lattice::set_to_bottom.
6614         (initialize_node_lattices): Likewise.
6615         (propagate_alignment_accross_jump_function): Remove.
6616         (propagate_constants_accross_call): Remove call to
6617         propagate_alignment_accross_jump_function.
6618         (ipcp_store_alignment_results): Remove.
6619         (ipcp_driver): Remove call to ipcp_store_alignment_results.
6620         (propagate_bits_accross_jump_function): Handle ancestor jump function.
6621         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Remove
6622         pretty-printing of alignment jump function.
6623         (ipa_set_jf_unknown): Remove assignment to jfunc->alignment.known.
6624         (ipa_compute_jump_functions_for_edge): Adjust ipa_bits jump function for
6625         alignments and remove computing ipa_alignment jump function.
6626         (ipa_node_params_t::duplicate): Remove copying of src_trans->alignments.
6627         (ipa_write_jump_functions): Remove streaming for ipa_alignment.
6628         (ipa_read_jump_function): Remove reading of ipa_alignment.
6629         (write_ipcp_transformation_info): Remove streaming for alignment
6630         propagation summary.
6631         (read_ipcp_transformation_info): Remove reading of alignment
6632         propagation summary.
6633         (ipcp_update_alignments): Remove.
6634         (ipcp_update_bits): Adjust to set alignment for parameters of pointer
6635         type.
6636         (ipcp_transform_function): Remove call to ipcp_update_alignments()
6637         and remove assignment to (*ipcp_transformations)[node->uid].alignments.
6638         * ipa-prop.h (ipa_alignment): Remove.
6639         (ipa_jump_func): Remove field alignment.
6640         (ipcp_transformation_summary): Remove field alignments.
6641         * doc/invoke.texi: Mark fipa-cp-alignment as obsolete.
6642         * opts.c (default_options_table): Remove entry for fipa-cp-alignment.
6643         (enable_fdo_optimizations): Remove checking for fipa-cp-alignment.
6645 2016-10-08  Eric Botcazou  <ebotcazou@adacore.com>
6647         * config/sparc/sparc.h (FIXED_REGISTERS): Add %icc.
6649         * config/visium/visium.c (visium_expand_int_cstore): Revert latest
6650         change.
6651         (visium_expand_fp_cstore): Likewise.
6653 2016-10-08  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6655         * diagnostic-core.h (warning_at_rich_loc_n): Declare.
6656         * diagnostic.c (warning_at_rich_loc_n): New function.
6657         (diagnostic_n_impl_richloc): Likewise.
6658         (diagnostic_n_impl): Move most of the function to
6659         diagnostic_n_impl_richloc and call it.
6661 2016-10-08  Jakub Jelinek  <jakub@redhat.com>
6663         * gen-pass-instances.awk: Rewritten.
6664         * Makefile.in (pass-instances.def): Depend on $(PASSES_EXTRA), pass
6665         $(PASSES_EXTRA) after passes.def to the script.
6666         * config/i386/t-i386 (PASSES_EXTRA): Add i386-passes.def.
6667         * config/i386/i386-passes.def: New file.
6668         * config/i386/i386-protos.h (make_pass_insert_vzeroupper,
6669         make_pass_stv): Declare.
6670         * config/i386/i386.c (pass_stv::pass_stv): Initialize timode_p to
6671         false.
6672         (pass_stv::gate): Depending on timode_p member require TARGET_64BIT
6673         or !TARGET_64BIT.
6674         (pass_stv::clone, pass_stv::set_pass_param): New methods.
6675         (pass_stv::timode_p): New non-static data member.
6676         (ix86_option_override): Don't register passes here.
6678         * doc/invoke.texi: Document accepting Else, fallthrough.
6680         * doc/invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment
6681         style changes.
6683         * doc/invoke.texi (-Wimplicit-fallthrough): Document the accepted
6684         FALLTHRU comment styles.
6686 2016-10-07  Andrew Pinski  <apinski@cavium.com>
6688         * config/aarch64/aarch64-arches.def (AARCH64_ARCH): #undef at the end.
6689         * config/aarch64/aarch64-cores.def (AARCH64_CORE): Likewise.
6690         * config/aarch64/aarch64-fusion-pairs.def (AARCH64_FUSION_PAIR):
6691         Likewise.
6692         * config/aarch64/aarch64-option-extensions.def (AARCH64_OPT_EXTENSION):
6693         Likewise.
6694         * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNING_OPTION):
6695         Likewise.
6696         * config/aarch64/aarch64-opts.h (AARCH64_CORE): Don't #undef here.
6697         (AARCH64_ARCH): Likewise.
6698         * common/config/aarch64/aarch64-common.c (AARCH64_OPT_EXTENSION):
6699         Likewise.
6700         (AARCH64_CORE): Likewise.
6701         (AARCH64_ARCH): Likewise.
6702         * config/aarch64/aarch64-protos.h (AARCH64_FUSION_PAIR): Likewise.
6703         (AARCH64_EXTRA_TUNING_OPTION): Likewise.
6704         * config/aarch64/aarch64.c (AARCH64_FUION_PAIR): Likewise.
6705         (AARCH64_EXTRA_TUNING_OPTION): Likewise.
6706         (AARCH64_ARCH): Likewise.
6707         (AARCH64_CORE): Likewise.
6708         * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
6709         * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Likewise.
6710         (AARCH64_CORE): Likewise.
6711         (AARCH64_ARCH): Likewise.
6713 2016-10-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
6715         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Split
6716         -mfloat128 into -mfloat128-type that enables the IEEE 128-bit
6717         floating point type infrastructre, and -mfloat128 that enables the
6718         keyword.  Define __FLOAT128__ if -mfloat128, and __FLOAT128_TYPE__
6719         if -mfloat128-type.  Define __ibm128 to be long double by default.
6720         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print whether
6721         the IEEE 128-bit floating point type infrastructure should
6722         automatically be enabled.
6723         (rs6000_init_hard_regno_mode_ok): Switch to use -mfloat128-type
6724         instead of -mfloat128 to enable KFmode.
6725         (rs6000_option_override_internal): Split the option -mfloat128
6726         into -mfloat128-type and -mfloat128.  On Linux PowerPC 64-bit
6727         systems, automatically set -mfloat128-type, but don't enable it on
6728         other operating systems.  Move setting the long double size and
6729         IEEE quad support before the IEEE 128-bit floating point changes.
6730         (rs6000_init_builtins): Do not create a unique type for __ibm128
6731         if long double is IBM extended double, instead rely on __ibm128
6732         being defined as 'long double'.  If -mfloat128-type and not
6733         -mfloat128, create the KFmode type with an undocumented __ieee128
6734         keyword.
6735         (rs6000_init_libfuncs): Use -mfloat128-type instead of
6736         -mfloat128 for tests about the types, but keep tests for
6737         -mfloat128 to enable the keyword support.
6738         (rs6000_complex_function_value): Likewise.
6739         (rs6000_scalar_mode_supported_p): Likewise.
6740         (rs6000_floatn_mode): Likewise.
6741         (rs6000_c_mode_for_suffix): Likewise.
6742         (rs6000_opt_masks): Add -mfloat128-type.
6743         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add support for
6744         -mfloat128-type being split from -mfloat128.  Add
6745         -mfloat128-hardware, which was missing.
6746         * config/rs6000/rs6000.opt (-mfloat128): Split -mfloat128 into
6747         -mfloat128 and -mfloat128-type:
6748         (-mfloat128-type): Likewise.
6749         * config/rs6000/linux64.h (TARGET_FLOAT128_ENABLE_TYPE): Define so
6750         that 64-bit Linux systems with enable -mfloat128-type by default
6751         on VSX systems.
6752         * config/rs6000/rs6000.h (TARGET_FLOAT128_ENABLE_TYPE): Likewise.
6753         (FLOAT128_VECTOR_P): Switch IEEE 128-bit floating points to use
6754         -mfloat128-type instead of -mfloat128.
6755         (FLOAT128_2REG_P): Likewise.
6756         (MASK_FLOAT128_TYPE): Likewise.
6757         (ALTIVEC_ARG_MAX_RETURN): Likewise.
6758         (RS6000_BTM_FLOAT128): Likewise.
6759         (TARGET_FLOAT128): Poison old identifiers.
6760         (OPTION_MASK_FLOAT128): Likewise.
6761         (MASK_FLOAT128): Likewise.
6762         * config/rs6000/rs6000.md (FP): Likewise.
6763         (FLOAT128): Likewise.
6764         (fix_trunc<mode>di2): Likewise.
6765         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
6766         (floatdi<mode>2): Likewise.
6767         (floatuns<SDI:mode><IEEE128:mode>2): Likewise.
6768         (neg<mode>2, FLOAT128 iterator): Likewise.
6769         (abs<mode>2, FLOAT128 iterator): Likewise.
6770         (ieee_128bit_negative_zero): Likewise.
6771         (ieee_128bit_vsx_neg<mode>2): Likewise.
6772         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
6773         (ieee_128bit_vsx_abs<mode>2): Likewise.
6774         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
6775         (ieee_128bit_vsx_nabs<mode>2): Likewise.
6776         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
6777         (extendiftf2): Likewise.
6778         (extendifkf2): Likewise.
6779         (extendtfkf2): Likewise.
6780         (trunciftf2): Likewise.
6781         (truncifkf2): Likewise.
6782         (trunckftf2): Likewise.
6783         (trunctfif2): Likewise.
6784         (extendkftf2): Likewise.
6785         (trunctfkf2): Likewise.
6787 2016-10-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6789         * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
6790         before merging in bytes to pass down to real_from_target.
6792 2016-10-07  Richard Biener  <rguenther@suse.de>
6794         * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
6795         required hack.
6796         (substitute_and_fold_dom_walker::before_dom_children):
6797         Substitute and fold before pass specific folding to avoid
6798         feeding that with SSA names that will be later released.
6799         * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
6800         introduced by folding and visited by evaluate_stmt called during
6801         ccp_fold_stmt.
6802         (likely_value): Likewise.
6803         (evaluate_stmt): Likewise.
6804         * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
6805         (simplify_div_or_mod_using_ranges): Likewise.
6806         (simplify_min_or_max_using_ranges): Likewise.
6807         (simplify_abs_using_ranges): Likewise.
6808         (simplify_conversion_using_ranges): Likewise.
6809         (simplify_float_conversion_using_ranges): Likewise.
6810         (simplify_stmt_using_ranges): Likewise.
6812 2016-10-07  Marek Polacek  <polacek@redhat.com>
6814         * gimplify.c (should_warn_for_implicit_fallthrough): Check for
6815         FALLTHROUGH_LABEL_P here...
6816         (warn_implicit_fallthrough_r): ...not here.
6818 2016-10-07  Bernd Schmidt  <bschmidt@redhat.com>
6820         PR tree-optimization/77880
6821         * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
6822         necessary.
6824 2016-10-07  Marek Polacek  <polacek@redhat.com>
6826         PR c++/77803
6827         * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
6829 2016-10-07  Richard Biener  <rguenther@suse.de>
6831         * bitmap.h: Document constraints on bitmap modification while
6832         iterating over it.
6834 2016-10-07  Richard Biener  <rguenther@suse.de>
6836         * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
6837         * bitmap.h (bmp_iter_set): When advancing to the next element
6838         check that we didn't remove the current one.
6839         (bmp_iter_and): Likewise.
6840         (bmp_iter_and_compl): Likewise.
6841         * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
6842         we currently iterate on but keep a one-level queue.
6843         * sched-deps.c (remove_from_deps): Do not clear current bit
6844         but keep a one-level queue.
6846 2016-10-07  Jakub Jelinek  <jakub@redhat.com>
6848         PR tree-optimization/77664
6849         * tree-ssa-reassoc.c (update_range_test): Also clear low and high
6850         for the other ranges.
6851         (optimize_range_tests_diff): Fix up formatting.
6852         (optimize_range_tests_var_bound): New function.
6853         (optimize_range_tests): Use it.
6855 2016-10-07  Martin Liska  <mliska@suse.cz>
6857         * coverage.c (build_gcov_exit_decl): Fix priority what
6858         should be really 99.
6860 2016-10-07  Richard Biener  <rguenther@suse.de>
6862         * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
6863         vars in gimple_bind_vars but not in BLOCK_VARS.
6865 2016-10-07  Richard Biener  <rguenther@suse.de>
6867         PR tree-optimization/77879
6868         * tree-ssa-structalias.c (handle_const_call): Properly handle
6869         NRV return slots.
6870         (handle_pure_call): Likewise.
6872 2016-10-06  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
6874         * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
6875         (rs6000_elf_asm_out_destructor): increase size of buf to avoid
6876         possible overflow.
6878 2016-10-06  Andrew Pinski  <apinski@cavium.com>
6880         * config/aarch64/aarch64-cores.def: Add a comment before each
6881         set of cores.
6883 2016-10-06  Kugan Vivekanandarajah  <kuganv@linaro.org>
6885         PR tree-optimization/77862
6886         * tree-vrp.c (add_equivalence): Use get_value_range so that
6887         num_vr_values is checked before accessing vr_values.
6889 2016-10-06  Kugan Vivekanandarajah  <kuganv@linaro.org>
6891         * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
6892           POINTER_TYPE_P.
6894 2016-10-05  Jeff Law  <law@redhat.com>
6896         PR tree-optimization/71661
6897         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
6898         removal of a forwarder exposes a new natural loop.
6900 2016-10-06  Uros Bizjak  <ubizjak@gmail.com>
6902         * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
6903         Introduce ssesuffix variable.
6904         (<mask_codefor><code><mode>3<mask_name>): Ditto.
6905         (*<code><mode>3): Ditto.
6907 2016-10-06  Jan Hubicka  <hubicka@ucw.cz>
6909         * postreload.c (reload_cse_simplify): Skip also USE when detecting
6910         noop move.
6912 2016-10-06  Richard Biener  <rguenther@suse.de>
6914         PR tree-optimization/77855
6915         * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
6916         instead of removing the current item while iterating over the set
6917         which is not safe.
6919 2016-10-06  James Clarke  <jrtc27@jrtc27.com>
6920             Eric Botcazou  <ebotcazou@adacore.com>
6922         PR target/77759
6923         * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
6924         (classify_registers): Don't set it
6925         (function_arg_slotno): Don't initialize and test it.  Tidy up.
6927 2016-10-06  Richard Biener  <rguenther@suse.de>
6929         PR tree-optimization/77839
6930         * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
6931         lattice transition.
6933 2016-10-06  Martin Liska  <mliska@suse.cz>
6935         * gcc.c: Set -fprofile-update=atomic when profiling is
6936         enabled and -pthread is set.  Warn when one combines
6937         -pthread and -fprofile-update=single for an app using
6938         profiling code.
6940 2016-10-06  Martin Liska  <mliska@suse.cz>
6942         PR bootstrap/77788
6943         * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
6944         * gimple-ssa-strength-reduction.c (slsr_process_cast):
6945         Initialize a pointer to NULL.
6946         (slsr_process_copy): Likewise.
6947         * input.c (location_get_source_line): Likewise.
6948         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
6950 2016-10-05  Andrew Senkevich  <andrew.senkevich@intel.com>
6952         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
6953         OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
6954         (ix86_handle_option): Deleted handle of OPT_mpcommit.
6955         * config.gcc: Deleted pcommitintrin.h
6956         * config/i386/pcommitintrin.h: Deleted file.
6957         * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
6958         * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
6959         detection.
6960         * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
6961         __PCOMMIT__.
6962         * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
6963         (PTA_PCOMMIT): Deleted define.
6964         (ix86_option_override_internal): Deleted handle of option.
6965         (ix86_valid_target_attribute_inner_p): Deleted pcommit.
6966         * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
6967         __builtin_ia32_pcommit): Deleted.
6968         * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
6969         * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
6970         (pcommit): Deleted instruction.
6971         * config/i386/i386.opt: Mention -mpcommit deprecation.
6972         * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
6974 2016-10-05  Uros Bizjak  <ubizjak@gmail.com>
6976         PR target/77874
6977         * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
6978         Remove wrong assert.
6979         (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
6980         Use <round_constraint> as operand 1 constraint.
6982 2016-10-05  Jakub Jelinek  <jakub@redhat.com>
6984         PR sanitizer/66343
6985         * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
6986         (ubsan_instrument_float_cast): And not here.
6988         PR sanitizer/66343
6989         * ubsan.c (ubsan_ids): New GTY(()) array.
6990         (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
6991         instead of static local counters.
6993 2016-10-05  Martin Sebor  <msebor@redhat.com>
6995         PR bootstrap/77819
6996         * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
6997         * config/linux.c (gnu_libc_printf_pointer_format): Remove.
6998         * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
6999         (default_printf_pointer_format): Define function.
7000         * targhooks.c (linux_printf_pointer_format): Define new function.
7001         * targhooks.h (linux_printf_pointer_format): Declare.
7002         (gnu_libc_printf_pointer_format): Remove declaration.
7004 2016-10-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7006         * fold-const.c (native_encode_real): Fix logic for selecting offset
7007         to write to when BYTES_BIG_ENDIAN.
7009 2016-10-05  Wilco Dijkstra  <wdijkstr@arm.com>
7011         * builtins.c (fold_builtin_strchr): Remove function.
7012         (fold_builtin_strrchr): Likewise.
7013         (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
7014         * gimple-fold.c (target_char_cst_p): New function.
7015         (gimple_fold_builtin_strchr) Add more foldings.
7016         (gimple_fold_builtin): Add index, strrchr, rindex cases.
7018 2016-10-05  Richard Biener  <rguenther@suse.de>
7020         PR middle-end/77863
7021         * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
7022         capture ids in c-exprs.
7024 2016-10-05  Richard Biener  <rguenther@suse.de>
7026         PR middle-end/77826
7027         * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
7028         with types_match for GIMPLE code gen to handle type mismatched
7029         constants properly.
7030         (dt_operand::gen): Adjust.
7031         * match.pd ((X /[ex] A) * A -> X): Properly handle converted
7032         and constant A.
7034 2016-10-05  Richard Biener  <rguenther@suse.de>
7036         * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
7038 2016-10-05  Richard Biener  <rguenther@suse.de>
7040         PR middle-end/77842
7041         * genmatch.c (parser::parse_c_expr): Handle premature EOF.
7043 2016-10-05  Pierre-Marie de Rodat  <derodat@adacore.com>
7045         * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
7046         version check to protect only DW_TAG_imported_module generation.
7048 2016-10-05  Richard Biener  <rguenther@suse.de>
7050         PR middle-end/55152
7051         * match.pd (min(a,-a) -> -abs(a)): New pattern.
7053 2016-10-04  Ian Lance Taylor  <iant@golang.org>
7055         * explow.c (allocate_dynamic_stack_space): Call
7056         do_pending_stack_adjust before handling flag_split_stack.
7058 2016-10-04  David Malcolm  <dmalcolm@redhat.com>
7060         * genattrtab.c (make_internal_attr): Supply dummy column number to
7061         file_location ctor.
7062         (main): Likewise.
7063         * genoutput.c (init_insn_for_nothing): Likewise.
7064         * gensupport.c (add_define_attr): Likewise.
7065         * read-md.c (message_at_1): Print column number.
7066         (fatal_with_file_and_line): Likewise.
7067         (rtx_reader::read_char): Track column numbers.
7068         (rtx_reader::unread_char): Likewise.
7069         (rtx_reader::rtx_reader): Initialize m_read_md_colno.
7070         (rtx_reader::handle_include): Stash and restore m_read_md_colno.
7071         (rtx_reader::handle_file): Initialize m_read_md_colno.
7072         (rtx_reader::get_current_location): Supply column number to
7073         file_location ctor.
7074         * read-md.h (struct file_location): Add field "colno".
7075         (file_location::file_location): Likewise.
7076         (rtx_reader::get_colno): New accessor.
7077         (rtx_reader::m_read_md_colno): New field.
7078         (rtx_reader::m_last_line_colno): New field.
7080 2016-10-04  Jakub Jelinek  <jakub@redhat.com>
7082         * doc/extend.texi (Java Exceptions): Remove.
7083         (java_interface): Remove.
7085 2016-10-04  Doug Gilmore  <doug.gilmore@imgtec.com>
7087         PR tree-optimization/77808
7088         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
7089         and addr are different before copying points-to information.
7091 2016-10-04  Uros Bizjak  <ubizjak@gmail.com>
7093         * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
7094         * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
7095         * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
7096         of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
7098 2016-10-04  Richard Biener  <rguenther@suse.de>
7100         PR tree-optimization/77399
7101         * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
7102         verify the target can convert.
7104 2016-10-04  Richard Biener  <rguenther@suse.de>
7106         PR middle-end/77833
7107         * explow.c (plus_constant): Verify the mode of the constant
7108         pool offset before calling plus_constant.
7110 2016-10-04  Richard Biener  <rguenther@suse.de>
7112         PR middle-end/77407
7113         * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
7114         type support, mark with :C.
7115         (X / -X -> -1): Mark with :C.
7117 2016-10-04  Jakub Jelinek  <jakub@redhat.com>
7119         * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
7120         * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
7121         * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
7122         * doc/tm.texi: Regenerated.
7123         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
7124         * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
7125         * config/darwin.h (JCR_SECTION_NAME): Remove.
7126         * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
7127         * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
7128         * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
7129         * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
7130         * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
7131         * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
7133 2016-10-03  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7135         * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
7136         between "because" and "param" in dump message in call to fprintf.
7138 2016-10-03  Jeff Law  <law@redhat.com>
7140         PR tree-optimization/71550
7141         PR tree-optimization/71403
7142         * tree-ssa-threadbackward.c: Include tree-vectorizer.h
7143         (profitable_jump_thread_path): Also return boolean indicating if
7144         the realized path will create an irreducible loop.
7145         Remove loop depth tests from 71403.
7146         (fsm_find_control_statement_thread_paths): Remove loop depth tests
7147         from 71403.  If threading will create an irreducible loop, then
7148         throw away loop iteration and related information.
7150 2016-10-03  Uros Bizjak  <ubizjak@gmail.com>
7152         * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
7153         -Woverloaded-virtual checks for warning options.
7154         * configure: Regenerate.
7156 2016-10-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7158         PR preprocessor/77699
7159         * input.c (maybe_grow): Don't allocate one byte extra headroom.
7160         (get_next_line): Return false on error.
7161         (read_next_line): Removed, use get_next_line instead.
7162         (read_line_num): Don't copy the line.
7163         (location_get_source_line): Don't use static data.
7164         (selftest::test_reading_source_line): Add more test cases.
7166 2016-10-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7168         Revert
7169         2016-09-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7171         * ifcvt.c (noce_try_avoid_const_materialization): New function.
7172         (noce_process_if_block): Use it.
7174 2016-10-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7176         * doc/invoke.texi: Update -Wint-in-bool-context.
7178 2016-10-02  Jakub Jelinek  <jakub@redhat.com>
7180         * dwarf2out.c (output_fde, output_call_frame_info,
7181         dwarf2out_do_cfi_startproc, set_indirect_string,
7182         gen_internal_sym, output_die, output_line_info): Use
7183         MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
7184         ASM_GENERATE_INTERNAL_LABEL output.
7186 2016-10-01  Richard Biener  <rguenther@suse.de>
7188         PR middle-end/77798
7189         * genmatch.c (get_operand_type): Add operand position arg
7190         and handle COND_EXPR comparison operand with fixed boolean_type_node.
7191         (expr::gen_transform): Adjust.
7192         (dt_simplify::gen_1): Likewise.
7194 2016-10-01  Jakub Jelinek  <jakub@redhat.com>
7196         * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
7197         comments.  Simplify asserts, remove unnecessary conditions.
7198         Formatting fixes.
7199         (*<code><mode>3): Likewise.
7201 2016-09-30  Jakub Jelinek  <jakub@redhat.com>
7203         * doc/invoke.texi (-Wregister): Document.
7205 2016-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7207         * configure.ac: Split CHECKING_P into CHECKING_P and
7208         ENABLE_EXTRA_CHECKING.
7209         * configure: Regenerated.
7210         * config.in: Adjust commment of CHECKING_P.  Add ENABLE_EXTRA_CHECKING.
7211         * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
7213 2016-09-30  Prasad Ghangal  <prasad.ghangal@gmail.com>
7215         PR other/31566
7216         * gcc.c (process_command): For @filename handling, output
7217         the correct name if the file does not exist.
7219 2016-09-30  Marek Polacek  <polacek@redhat.com>
7221         * config/aarch64/aarch64-simd.md: Adjust fall through comments.
7222         * config/alpha/predicates.md: Likewise.
7224 2016-09-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7226         * ifcvt.c (noce_try_avoid_const_materialization): New function.
7227         (noce_process_if_block): Use it.
7229 2016-09-30  Martin Liska  <mliska@suse.cz>
7231         * doc/invoke.texi: Document asan-use-after-return that
7232         it's disabled by default in runtime.
7234 2016-09-30  Richard Biener  <rguenther@suse.de>
7236         * tree-vrp.c (intersect_ranges): If we failed to handle
7237         the intersection choose a constant singleton range if available.
7239 2016-09-30  Richard Biener  <rguenther@suse.de>
7241         PR tree-optimization/77399
7242         * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
7243         float <-> int conversions.
7245 2016-09-30  Alan Modra  <amodra@gmail.com>
7247         * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
7249 2016-09-29  Uros Bizjak  <ubizjak@gmail.com>
7251         * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
7252         ext_level before calling CPUID with 0x80000008.
7253         Simplify xgetbv checks.
7255 2016-09-29  David Malcolm  <dmalcolm@redhat.com>
7257         * Makefile.in (OBJS): Add print-rtl-function.o.
7258         * print-rtl-function.c: New file.
7259         * print-rtl.h (print_rtx_function): New decl.
7261 2016-09-29  Uros Bizjak  <ubizjak@gmail.com>
7263         PR target/77756
7264         * config/i386/cpuid.h (__get_cpuid_count): New.
7265         (__get_cpuid): Rename __level to __leaf.
7267 2016-09-29  Marek Polacek  <polacek@redhat.com>
7269         * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
7271 2016-09-29  Bernd Schmidt  <bschmidt@redhat.com>
7273         PR target/77718
7274         * builtins.c (expand_builtin_memcmp): Don't swap args unless
7275         result is only being compared with zero.
7277 2016-09-29  Marek Polacek  <polacek@redhat.com>
7279         * dwarf2out.c (loc_descriptor): Add fall through comment.
7280         (add_const_value_attribute): Likewise.
7282 2016-09-29  Matthew Wahab  <matthew.wahab@arm.com>
7284         * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
7285         with "v6t2".  Move "arch" attribute above "pool_range".
7286         * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
7287         with "v6t2".
7288         (*thumb2_movhi_vfp): Likewise.
7289         (*arm_movhi_fp16): Likewise.
7290         (*thumb2_movhi_fp16): Likewise.
7291         (*arm_movsi_vfp): Remove "arch" attribute.
7292         (*thumb2_movsi_vfp): Likewise.
7294 2016-09-29  Martin Liska  <mliska@suse.cz>
7296         * doc/extend.texi: Remove limitation of Objective C for
7297         __attribute__((constructor)) and __attribute__((destructor)).
7299 2016-09-29  Richard Biener  <rguenther@suse.de>
7301         PR tree-optimization/77768
7302         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7303         Handle stores to readonly memory when removing redundant stores.
7305 2016-09-29  Richard Biener  <rguenther@suse.de>
7307         PR middle-end/77407
7308         * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
7309         X / -X -> -1 simplifications.
7311 2016-09-29  Richard Biener  <rguenther@suse.de>
7313         PR middle-end/55152
7314         * match.pd: Add max(a,-a) -> abs(a) pattern.
7315         * tree-ssa-phiopt.c (minmax_replacement): Disable for
7316         HONOR_SIGNED_ZEROS types.
7318 2016-09-29  James Greenhalgh  <james.greenhalgh@arm.com>
7320         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
7321         * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
7323 2016-09-29  Richard Biener  <rguenther@suse.de>
7325         * tree-vrp.c (set_defs_to_varying): New helper avoiding
7326         writing to vr_const_varying.
7327         (vrp_initialize): Call it.
7328         (vrp_visit_stmt): Likewise.
7329         (evrp_dom_walker::before_dom_children): Likewise.
7331 2016-09-29  Richard Biener  <rguenther@suse.de>
7333         * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
7334         constructors with vector elements.
7336 2016-09-29  Richard Biener  <rguenther@suse.de>
7338         PR tree-optimization/77768
7339         * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
7340         with stores to a place we know has a constant value.
7342 2016-09-29  Alan Modra  <amodra@gmail.com>
7344         * config/rs6000/sysv4.opt (mgnu-attribute): New option.
7345         * doc/invoke.texi: Document it.
7346         * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
7347         (rs6000_passes_float): Comment.
7348         (rs6000_passes_long_double): New static var.
7349         (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
7350         (init_cumulative_args): Set up to emit fp .gnu_attribute for
7351         ELF 64-bit ABIs as well as 32-bit ELF.  Correct rs6000_passes_float
7352         to include fp values returned in vectors.
7353         Set rs6000_passes_long_double.
7354         (rs6000_function_arg_advance_1): Likewise for function args.
7355         (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
7356         and SPE.  Emit long double tag value too.
7357         (rs6000_opt_vars): Add gnu-attr.
7358         * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
7359         * configure: Regenerate.
7360         * config.in: Regenerate.
7362 2016-09-28  Jakub Jelinek  <jakub@redhat.com>
7364         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
7365         of 0 < x.
7366         (format_floating, format_string, format_directive,
7367         get_destination_size, pass_sprintf_length::handle_gimple_call):
7368         Likewise.
7370 2016-09-28  Jakub Jelinek  <jakub@redhat.com>
7372         * gimple-ssa-sprintf.c: Fix comment formatting.
7373         (format_integer): Use is_gimple_assign.
7374         (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
7375         and gimple_call_fndecl.  Reorder case BUILT_IN_SPRINTF_CHK.  Fix up
7376         BUILT_IN_SNPRINTF_CHK comment.  Replace "to to" with "to" in comment.
7377         (pass_sprintf_length::execute): Use is_gimple_call.
7379 2016-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
7381         * gimple-fold.c (gimple_fold_builtin): After failing to fold
7382         strchr, also try the generic folding.
7384 2016-09-28  Martin Sebor  <msebor@redhat.com>
7386         PR c/77762
7387         * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
7388         Fix typos.
7390 2016-09-28  Martin Sebor  <msebor@redhat.com>
7392         PR middle-end/77683
7393         * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
7394         length modifier is not expected.
7395         (format_floating): Ignore l length modifier and fail gracefuly
7396         when it isn't one of the other expected ones.
7398 2016-09-28  Martin Sebor  <msebor@redhat.com>
7400         PR bootstrap/77753
7401         * varasm.c (assemble_addr_to_section): Increase local buffer size.
7403 2016-09-27  Richard Biener  <rguenther@suse.de>
7405         * dwarf2out.c (cu_die_list): New global.
7406         (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs.  Add
7407         main_comp_unit_die to cu_die_list if we created it.
7408         Move break_out_includes ...
7409         (dwarf2out_early_finish): ... here.  Push created CU DIEs onto
7410         the cu_die_list.
7412 2016-09-28  Richard Biener  <rguenther@suse.de>
7414         * dwarf2out.c (struct die_struct): Add removed flag.
7415         (lookup_type_die): If the DIE is marked as removed, clear
7416         TYPE_SYMTAB_DIE and return NULL.
7417         (lookup_decl_die): If the DIE is marked as removed, remove it
7418         from the hash and return NULL.
7419         (mark_removed): New helper.
7420         (prune_unused_types_prune): Call it for removed DIEs.
7421         (gen_subprogram_die): Move the premark_used_types call to after
7422         DIEs for the functions scopes are generated.
7423         (process_scope_var): Do not re-create pruned types or type decls.
7424         Make sure to also re-parent type decls.
7425         (dwarf2out_finish): Move unused type pruning and debug_types
7426         handling ...
7427         (dwarf2out_early_finish): ... here.
7429 2016-09-29  Claudiu Zissulescu  <claziss@synopsys.com>
7431         * config/arc/arc-c.c: New file.
7432         * config/arc/arc-c.def: Likewise.
7433         * config/arc/t-arc: Likewise.
7434         * config.gcc: Include arc-c.o as c and cpp object.
7435         * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
7436         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
7437         arc_cpu_cpp_builtins.
7439 2016-09-29  Claudiu Zissulescu  <claziss@synopsys.com>
7441         * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
7442         (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
7444 2016-09-28  Nathan Sidwell  <nathan@acm.org>
7446         * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
7447         printing.
7449 2016-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
7451         PR tree-optimization/61056
7452         * gimple-fold.c (gimple_fold_builtin_strchr):
7453         New function to optimize strchr (s, 0) to strlen.
7454         (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
7456 2016-09-27  Robin Dapp  <rdapp@linux.vnet.ibm.com>
7458         PR tree-optimization/77724
7459         * tree-vect-loop-manip.c (create_intersect_range_checks_index):
7460         Add tree_fits_shwi_p check.
7462 2016-09-27  Jakub Jelinek  <jakub@redhat.com>
7464         * auto-inc-dec.c (try_merge): Remove break after return.
7465         * cselib.c (autoinc_split): Likewise.
7466         * explow.c (promote_mode): Likewise.
7467         * fixed-value.c (fixed_arithmetic): Likewise.
7468         * hsa.c (hsa_internal_fn::get_arity): Likewise.
7469         * rtlanal.c (modified_between_p, modified_in_p): Likewise.
7470         * trans-mem.c (get_attrs_for): Likewise.
7471         * tree-if-conv.c (if_convertible_stmt_p): Likewise.
7472         * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
7473         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
7474         * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
7475         * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
7476         * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
7477         * config/cris/cris.c (cris_op_str): Likewise.
7478         * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
7479         * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
7481 2016-09-27  Nathan Sidwell  <nathan@codesourcery.com>
7483         * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
7484         IFN_GOACC_REDUCTION_CODES): New.
7485         (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
7486         ifn_goacc_reduction_kind): Use them.
7487         * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
7488         of internal functions, when applicable.
7490 2016-09-27  Maciej W. Rozycki  <macro@imgtec.com>
7492         * config/mips/constraints.md (d): Fix documentation.
7493         * doc/md.texi (Machine Constraints): Update accordingly.
7495 2016-09-27  Richard Biener  <rguenther@suse.de>
7497         * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
7498         cur_line_info_table initialization ...
7499         (dwarf2out_assembly_start): ... here.
7501 2016-09-27  Matthew Wahab  <matthew.wahab@arm.com>
7503         * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
7504         * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
7505         (*thumb2_movhi_vfp): Likewise.
7506         (*arm_movhi_fp16): Remove predication operand from VMOV.F16
7507         template.  Expand predicable attribute to mark VMOV.F16 as not
7508         predicable.  Add "arch" attribute.
7509         (*thumb2_movhi_fp16): Likewise.
7510         (*arm_movsi_vfp): Break a long line.  Add "arch" attribute.
7511         (*thumb2_movsi_vfp): Add "arch" attribute.
7513 2016-09-27  David Edelsohn  <dje.gcc@gmail.com>
7515         * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
7516         VAR_DECL string.
7518 2016-09-27  Marek Polacek  <polacek@redhat.com>
7520         * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
7521         comment.
7523         * config/c6x/c6x.h: Adjust fall through comment.
7524         * config/sh/sh.c (final_prescan_insn): Likewise.
7525         * config/visium/visium.c (visium_expand_int_cstore): Likewise.
7526         (visium_expand_fp_cstore): Likewise.
7528 2016-09-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7530         * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
7531         expected by -Wimplicit-fallthrough.
7532         (thumb1_size_rtx_costs): Likewise.
7533         (thumb2_reorg): Likewise.
7534         (tls_mentioned_p): Add "Fall through" comment.
7535         (thumb2_reorg): Likewise.
7536         * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
7537         comment form expected by -Wimplicit-fallthrough.
7539 2016-09-27  Martin Liska  <mliska@suse.cz>
7541         PR gcov-profile/46266
7542         * input.h (RESERVED_LOCATION_P): New macro.
7543         * profile.c (branch_prob): Use RESERVED_LOCATION_P and
7544         instread of comparison with UNKNOWN_LOCATION.
7546 2016-09-27  Richard Biener  <rguenther@suse.de>
7548         PR tree-optimization/77745
7549         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7550         When removing redundant stores make sure to check compatibility
7551         of the TBAA state for downstream accesses.
7552         * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
7553         value-numbering virtual operands for store matches.
7555 2016-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
7557         PR target/51244
7558         * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
7559         movrt patterns.  Match them before anything else in the SET case.
7561 2016-09-27  Martin Liska  <mliska@suse.cz>
7563         PR gcov-profile/7970
7564         PR gcov-profile/16855
7565         PR gcov-profile/44779
7566         * coverage.c (build_gcov_exit_decl): New function.
7567         (coverage_obj_init): Call the function and generate __gcov_exit
7568         destructor.
7569         * doc/gcov.texi: Document when __gcov_exit function is called.
7571 2016-09-27  Marek Polacek  <polacek@redhat.com>
7573         PR bootstrap/77751
7574         * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
7575         insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
7576         -Wno-error instead of -Wno-implicit-fallthrough.
7578 2016-09-27  Martin Liska  <mliska@suse.cz>
7580         PR bootstrap/77749
7581         * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
7583 2016-09-27  Jakub Jelinek  <jakub@redhat.com>
7585         * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
7586         * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
7587         comments.  Remove break after return.
7588         (ix86_fp_compare_code_to_integer, has_dispatch,
7589         ix86_simd_clone_usable): Remove break after return.
7591 2016-09-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7593         PR rlt-optimization/77714
7594         * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
7595         REG_EQUAL note.
7597 2016-09-27  Kugan Vivekanandarajah  <kuganv@linaro.org>
7599         PR ipa/77677
7600         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
7601         extract_range_from_unary_expr to convert value_range.
7602         * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
7603         (extract_range_from_unary_expr): This.
7604         * tree-vrp.h (extract_range_from_unary_expr): Declare.
7606 2016-09-27  Segher Boessenkool  <segher@kernel.crashing.org>
7608         * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
7610 2016-09-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7612         * config/i386/i386.c (ix86_print_operand)
7613         [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
7614         * config/sparc/sparc.c (check_pic): Add fallthrough comment.
7615         (epilogue_renumber): Likewise.
7617 2016-09-26  Kugan Vivekanandarajah  <kuganv@linaro.org>
7619         PR middle-end/77719
7620         * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
7621         to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
7623 2016-09-26  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7625         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
7626         is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
7627         is_mm_seq_cst, is_mm_sync): Move to ...
7628         * memmodel.h: This.  New file.
7629         * builtins.c: Include memmodel.h.
7630         * optabs.c: Likewise.
7631         * tsan.c: Likewise.
7632         * config/aarch64/aarch64.c: Likewise.
7633         * config/alpha/alpha.c: Likewise.
7634         * config/arm/arm.c: Likewise.
7635         * config/i386/i386.c: Likewise.
7636         * config/ia64/ia64.c: Likewise.
7637         * config/mips/mips.c: Likewise.
7638         * config/rs6000/rs6000.c: Likewise.
7639         * config/sparc/sparc.c: Likewise.
7640         * genconditions.c: Include memmodel.h in generated file.
7641         * genemit.c: Likewise.
7642         * genoutput.c: Likewise.
7643         * genpeep.c: Likewise.
7644         * genpreds.c: Likewise.
7645         * genrecog.c: Likewise.
7647 2016-09-26  David Malcolm  <dmalcolm@redhat.com>
7649         * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
7650         "c" instead when parsing characters.  Move operand parsing into...
7651         (read_rtx_operand): ...this new function, renaming "i" to "idx",
7652         and tightening the scope of various locals.
7654 2016-09-26  Liu Hao  <lh_mouse@126.com>
7656         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
7658 2016-09-26  Marek Polacek  <polacek@redhat.com>
7660         * system.h: Use __has_attribute to check whether the fallthrough
7661         attribute is supported.
7663 2016-09-26  Marek Polacek  <polacek@redhat.com>
7665         * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
7666         gimple_call_internal_p.
7667         * ipa-split.c (find_return_bb): Likewise.
7668         (execute_split_functions): Likewise.
7669         * omp-low.c (dump_oacc_loop_part): Likewise.
7670         (oacc_loop_xform_head_tail): Likewise.
7671         * predict.c (predict_loops): Likewise.
7672         * sanopt.c (pass_sanopt::execute): Likewise.
7673         * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
7674         * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
7675         * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
7676         (expand_ifn_va_arg_1): Use gimple_call_internal_p.
7677         (expand_ifn_va_arg): Likewise.
7678         * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
7679         (optimize_mask_stores): Likewise.
7680         * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
7681         (vect_transform_stmt): Likewise.
7682         * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
7683         * tsan.c (instrument_memory_accesses): Likewise.
7685 2016-09-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7686             Alexander Monakov  <amonakov@ispras.ru>
7688         * regrename.c (rename_chains): Check
7689         HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
7690         HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
7691         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
7693 2016-09-26  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7695         * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
7696         (s390_sched_score): Likewise.
7698 2016-09-26  Martin Liska  <mliska@suse.cz>
7700         * doc/gcov.texi: Update program output of gcov tool.
7702 2016-09-26  Martin Liska  <mliska@suse.cz>
7704         PR gcov-profile/23332
7705         * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
7706         * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
7707         * value-prof.c (dump_histogram_value): Do not handle
7708         HIST_TYPE_CONST_DELTA.
7709         (stream_in_histogram_value): Likewise.
7710         (gimple_find_values_to_profile): Likewise.
7711         * value-prof.h (enum hist_type): Likewise.
7713 2016-09-26  Martin Liska  <mliska@suse.cz>
7715         * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
7716         from default sanitize recover values.
7717         * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
7718         -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
7719         * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
7720         consistent.
7721         * opts.c (finish_options): Do a generic loop over options
7722         that can be recovered.
7723         (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
7724         SANITIZE_RETURN.
7725         (common_handle_option): Likewise.
7726         * opts.h: Declare can_recover to sanitizer_opts_s.
7728 2016-09-26  Andre Vieira  <andre.simoesdiasvieira@arm.com>
7730         * target.def(elf_flags_numeric): Change documentation to present tense.
7731         * doc/tm.texi: Regenerate.
7733 2016-09-26  Marek Polacek  <polacek@redhat.com>
7735         PR c/7652
7736         * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
7737         insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
7738         -Wno-switch-fallthrough.
7739         * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
7740         (expand_builtin): Likewise.
7741         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
7742         * convert.c (convert_to_real_1): Likewise.
7743         (convert_to_integer_1): Likewise.
7744         * final.c (output_alternate_entry_point): Likewise.
7745         * genattrtab.c (make_canonical): Likewise.
7746         (write_test_expr): Likewise.
7747         * genpreds.c (validate_exp): Likewise.
7748         * gimple-ssa-strength-reduction.c
7749         (find_candidates_dom_walker::before_dom_children): Likewise.
7750         * godump.c (go_format_type): Likewise.
7751         * reload1.c (elimination_effects): Likewise.
7752         * resource.c (mark_referenced_resources): Likewise.
7753         (mark_set_resources): Likewise.
7754         * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
7755         * varasm.c (output_addressed_constants): Likewise.
7757 2016-09-26  Marek Polacek  <polacek@redhat.com>
7759         PR c/7652
7760         * common.opt (Wimplicit-fallthrough): New option.
7761         * doc/extend.texi: Document statement attributes and the fallthrough
7762         attribute.
7763         * doc/invoke.texi: Document -Wimplicit-fallthrough.
7764         * gimple.h (gimple_call_internal_p): New function.
7765         * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
7766         (struct label_entry): New struct.
7767         (find_label_entry): New function.
7768         (case_label_p): New function.
7769         (collect_fallthrough_labels): New function.
7770         (last_stmt_in_scope): New function.
7771         (should_warn_for_implicit_fallthrough): New function.
7772         (warn_implicit_fallthrough_r): New function.
7773         (maybe_warn_implicit_fallthrough): New function.
7774         (expand_FALLTHROUGH_r): New function.
7775         (expand_FALLTHROUGH): New function.
7776         (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
7777         expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
7778         (gimplify_label_expr): New function.
7779         (gimplify_case_label_expr): Set location.
7780         (gimplify_expr): Call gimplify_label_expr.
7781         * internal-fn.c (expand_FALLTHROUGH): New function.
7782         * internal-fn.def (FALLTHROUGH): New internal function.
7783         * langhooks.c (lang_GNU_OBJC): New function.
7784         * langhooks.h (lang_GNU_OBJC): Declare.
7785         * system.h (gcc_fallthrough): Define.
7786         * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
7787         * tree.h (FALLTHROUGH_LABEL_P): Define.
7789 2016-09-26  Richard Biener  <rguenther@suse.de>
7791         * dwarf2out.c (stripattributes): Remove unused function.
7792         (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
7793         Push dwarf_split_debug_info handling into init_sections_and_labels.
7794         (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
7795         (DEBUG_MACRO_SECTION_FLAGS): Remove.
7796         (debug_macinfo_section_name): New global.
7797         (output_macinfo): Use debug_macinfo_section_name.
7798         (init_sections_and_labels): Split out section and label generation
7799         from dwarf2out_init.  Set debug_macinfo_section_name.
7800         (dwarf2out_init): Move text section label generation and emission
7801         to ...
7802         (dwarf2out_assembly_start): ... here.
7803         (dwarf2out_finish): Call init_sections_and_labels before DWARF
7804         output starts.
7806 2016-09-26  Richard Biener  <rguenther@suse.de>
7808         PR debug/77692
7809         * cgraphunit.c (analyze_functions): Before early removing
7810         global vars calls the late_global_decl debug handler mark
7811         the variable as readonly.
7813 2016-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
7815         PR target/51244
7816         * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
7817         (sh_rtx_costs): Handle SET of movt and movrt patterns.
7818         * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
7819         declare new overloads.
7820         * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
7821         operand.
7823 2016-09-24  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
7825         * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
7826         Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
7828 2016-09-24  David Edelsohn  <dje.gcc@gmail.com>
7830         * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
7831         * configure: Regenerate.
7833 2016-09-24  Marek Polacek  <polacek@redhat.com>
7835         PR c/77490
7836         * doc/invoke.texi: Document -Wbool-operation.
7838 2016-09-23  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
7840         * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
7841         * config/rs6000/rs6000.c (expand_block_compare): New function used by
7842         cmpmemsi pattern to do builtin expansion of memcmp ().
7843         (compute_current_alignment): Add helper function for
7844         expand_block_compare used to compute alignment as the compare proceeds.
7845         (select_block_compare_mode): Used by expand_block_compare to select
7846         the mode used for reading the next chunk of bytes in the compare.
7847         (do_load_for_compare): Used by expand_block_compare to emit the load
7848         insns for the compare.
7849         (rs6000_emit_dot_insn): Moved this function to avoid a forward
7850         reference from expand_block_compare ().
7851         * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
7852         prototype for this function.
7853         * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
7854         target option for controlling how much code inline expansion of
7855         memcmp() will be allowed to generate.
7857 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
7859         * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
7860         hook_bool_mode_false, hook_bool_mode_true,
7861         hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
7862         hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
7863         hook_bool_const_rtx_insn_const_rtx_insn_true,
7864         hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
7865         hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
7866         hook_bool_const_tree_hwi_hwi_const_tree_false,
7867         hook_bool_const_tree_hwi_hwi_const_tree_true,
7868         default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
7869         hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
7870         hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
7871         hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
7872         hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
7873         hook_bool_const_tree_true, hook_bool_tree_tree_false,
7874         hook_bool_tree_tree_true, hook_bool_tree_bool_false,
7875         hook_bool_rtx_insn_true, hook_bool_rtx_false,
7876         hook_bool_uintp_uintp_false,
7877         hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
7878         hook_rtx_tree_int_null, hook_uint_mode_0,
7879         hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
7880         hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
7881         hook_constcharptr_const_rtx_insn_null,
7882         hook_constcharptr_const_tree_const_tree_null,
7883         hook_constcharptr_int_const_tree_null,
7884         hook_constcharptr_int_const_tree_const_tree_null,
7885         hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
7886         hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
7887         ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
7889         * vec.h (vNULL): Extend comment to say = vNULL initialization
7890         isn't needed for static vars.
7892         * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
7893         loop_nests, s_i_d, last_added_blocks): Remove unnecessary
7894         = vNULL initialization of file scope vec.
7895         * passes.c (pass_tab, enabled_pass_uid_range_tab,
7896         disabled_pass_uid_range_tab): Likewise.
7897         * haifa-sched.c (sched_luids, h_i_d): Likewise.
7898         * tree-chkp-opt.c (check_infos): Likewise.
7899         * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
7901         * vec.h (vnull::operator vec): Add constexpr keyword for
7902         C++11 and later.
7904 2016-09-23  Doug Gilmore  <doug.gilmore@imgtec.com>
7906         PR tree-optimization/77654
7907         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
7908         to duplicate_ssa_name_ptr_info.
7910 2016-09-23  David Malcolm  <dmalcolm@redhat.com>
7912         PR preprocessor/77672
7913         * input.c (selftest::test_lexer_string_locations_simple): Update
7914         test to expect location information of the terminator character
7915         at the location of the final closing quote.
7916         (selftest::test_lexer_string_locations_hex): Likewise.
7917         (selftest::test_lexer_string_locations_oct): Likewise.
7918         (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
7919         (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
7920         (selftest::test_lexer_string_locations_ucn4): Likewise.
7921         (selftest::test_lexer_string_locations_ucn8): Likewise.
7922         (selftest::test_lexer_string_locations_u8): Likewise.
7923         (selftest::test_lexer_string_locations_utf8_source): Likewise.
7924         (selftest::test_lexer_string_locations_concatenation_1): Likewise.
7925         (selftest::test_lexer_string_locations_concatenation_2): Likewise.
7926         (selftest::test_lexer_string_locations_concatenation_3): Likewise.
7927         (selftest::test_lexer_string_locations_macro): Likewise.
7928         (selftest::test_lexer_string_locations_long_line): Likewise.
7930 2016-09-23  Richard Biener  <rguenther@suse.de>
7932         * tree-ssa-sccvn.c (visit_reference_op_call): Value number
7933         virtual definition to virtual use if the call devirtualizes
7934         to a const or pure function.
7935         (visit_use): Also visit calls we can devirtualize to a
7936         const or pure function.
7938 2016-09-23  Richard Biener  <rguenther@suse.de>
7940         PR tree-optimization/77697
7941         * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
7942         signal error if we have sth ternary or unhandled.
7944 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
7946         * config/arm/arm_neon.h (vabd_f16): New.
7947         (vabdq_f16): New.
7948         (vabs_f16): New.
7949         (vabsq_f16): New.
7950         (vadd_f16): New.
7951         (vaddq_f16): New.
7952         (vcage_f16): New.
7953         (vcageq_f16): New.
7954         (vcagt_f16): New.
7955         (vcagtq_f16): New.
7956         (vcale_f16): New.
7957         (vcaleq_f16): New.
7958         (vcalt_f16): New.
7959         (vcaltq_f16): New.
7960         (vceq_f16): New.
7961         (vceqq_f16): New.
7962         (vceqz_f16): New.
7963         (vceqzq_f16): New.
7964         (vcge_f16): New.
7965         (vcgeq_f16): New.
7966         (vcgez_f16): New.
7967         (vcgezq_f16): New.
7968         (vcgt_f16): New.
7969         (vcgtq_f16): New.
7970         (vcgtz_f16): New.
7971         (vcgtzq_f16): New.
7972         (vcle_f16): New.
7973         (vcleq_f16): New.
7974         (vclez_f16): New.
7975         (vclezq_f16): New.
7976         (vclt_f16): New.
7977         (vcltq_f16): New.
7978         (vcltz_f16): New.
7979         (vcltzq_f16): New.
7980         (vcvt_f16_s16): New.
7981         (vcvt_f16_u16): New.
7982         (vcvt_s16_f16): New.
7983         (vcvt_u16_f16): New.
7984         (vcvtq_f16_s16): New.
7985         (vcvtq_f16_u16): New.
7986         (vcvtq_s16_f16): New.
7987         (vcvtq_u16_f16): New.
7988         (vcvta_s16_f16): New.
7989         (vcvta_u16_f16): New.
7990         (vcvtaq_s16_f16): New.
7991         (vcvtaq_u16_f16): New.
7992         (vcvtm_s16_f16): New.
7993         (vcvtm_u16_f16): New.
7994         (vcvtmq_s16_f16): New.
7995         (vcvtmq_u16_f16): New.
7996         (vcvtn_s16_f16): New.
7997         (vcvtn_u16_f16): New.
7998         (vcvtnq_s16_f16): New.
7999         (vcvtnq_u16_f16): New.
8000         (vcvtp_s16_f16): New.
8001         (vcvtp_u16_f16): New.
8002         (vcvtpq_s16_f16): New.
8003         (vcvtpq_u16_f16): New.
8004         (vcvt_n_f16_s16): New.
8005         (vcvt_n_f16_u16): New.
8006         (vcvtq_n_f16_s16): New.
8007         (vcvtq_n_f16_u16): New.
8008         (vcvt_n_s16_f16): New.
8009         (vcvt_n_u16_f16): New.
8010         (vcvtq_n_s16_f16): New.
8011         (vcvtq_n_u16_f16): New.
8012         (vfma_f16): New.
8013         (vfmaq_f16): New.
8014         (vfms_f16): New.
8015         (vfmsq_f16): New.
8016         (vmax_f16): New.
8017         (vmaxq_f16): New.
8018         (vmaxnm_f16): New.
8019         (vmaxnmq_f16): New.
8020         (vmin_f16): New.
8021         (vminq_f16): New.
8022         (vminnm_f16): New.
8023         (vminnmq_f16): New.
8024         (vmul_f16): New.
8025         (vmul_lane_f16): New.
8026         (vmul_n_f16): New.
8027         (vmulq_f16): New.
8028         (vmulq_lane_f16): New.
8029         (vmulq_n_f16): New.
8030         (vneg_f16): New.
8031         (vnegq_f16): New.
8032         (vpadd_f16): New.
8033         (vpmax_f16): New.
8034         (vpmin_f16): New.
8035         (vrecpe_f16): New.
8036         (vrecpeq_f16): New.
8037         (vrnd_f16): New.
8038         (vrndq_f16): New.
8039         (vrnda_f16): New.
8040         (vrndaq_f16): New.
8041         (vrndm_f16): New.
8042         (vrndmq_f16): New.
8043         (vrndn_f16): New.
8044         (vrndnq_f16): New.
8045         (vrndp_f16): New.
8046         (vrndpq_f16): New.
8047         (vrndx_f16): New.
8048         (vrndxq_f16): New.
8049         (vrsqrte_f16): New.
8050         (vrsqrteq_f16): New.
8051         (vrecps_f16): New.
8052         (vrecpsq_f16): New.
8053         (vrsqrts_f16): New.
8054         (vrsqrtsq_f16): New.
8055         (vsub_f16): New.
8056         (vsubq_f16): New.
8058 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
8060         * config.gcc (extra_headers): Add arm_fp16.h
8061         * config/arm/arm_fp16.h: New.
8062         * config/arm/arm_neon.h: Include "arm_fp16.h".
8064 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
8066         * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
8067         variants).
8068         (vmulf): New (v8hf, v4hf variants).
8069         (vfma): New (v8hf, v4hf variants).
8070         (vfms): New (v8hf, v4hf variants).
8071         (vsub): New (v8hf, v4hf variants).
8072         (vcage): New (v8hf, v4hf variants).
8073         (vcagt): New (v8hf, v4hf variants).
8074         (vcale): New (v8hf, v4hf variants).
8075         (vcalt): New (v8hf, v4hf variants).
8076         (vceq): New (v8hf, v4hf variants).
8077         (vcgt): New (v8hf, v4hf variants).
8078         (vcge): New (v8hf, v4hf variants).
8079         (vcle): New (v8hf, v4hf variants).
8080         (vclt): New (v8hf, v4hf variants).
8081         (vceqz): New (v8hf, v4hf variants).
8082         (vcgez): New (v8hf, v4hf variants).
8083         (vcgtz): New (v8hf, v4hf variants).
8084         (vcltz): New (v8hf, v4hf variants).
8085         (vclez): New (v8hf, v4hf variants).
8086         (vabd): New (v8hf, v4hf variants).
8087         (vmaxf): New (v8hf, v4hf variants).
8088         (vmaxnm): New (v8hf, v4hf variants).
8089         (vminf): New (v8hf, v4hf variants).
8090         (vminnm): New (v8hf, v4hf variants).
8091         (vpmaxf): New (v4hf variant).
8092         (vpminf): New (v4hf variant).
8093         (vpadd): New (v4hf variant).
8094         (vrecps): New (v8hf, v4hf variants).
8095         (vrsqrts): New (v8hf, v4hf variants).
8096         (vabs): New (v8hf, v4hf variants).
8097         (vneg): New (v8hf, v4hf variants).
8098         (vrecpe): New (v8hf, v4hf variants).
8099         (vrnd): New (v8hf, v4hf variants).
8100         (vrnda): New (v8hf, v4hf variants).
8101         (vrndm): New (v8hf, v4hf variants).
8102         (vrndn): New (v8hf, v4hf variants).
8103         (vrndp): New (v8hf, v4hf variants).
8104         (vrndx): New (v8hf, v4hf variants).
8105         (vrsqrte): New (v8hf, v4hf variants).
8106         (vmul_lane): Add v4hf and v8hf variants.
8107         (vmul_n): Add v4hf and v8hf variants.
8108         (vext): New (v8hf, v4hf variants).
8109         (vcvts): New (v8hi, v4hi variants).
8110         (vcvts): New (v8hf, v4hf variants).
8111         (vcvtu): New (v8hi, v4hi variants).
8112         (vcvtu): New (v8hf, v4hf variants).
8113         (vcvts_n): New (v8hf, v4hf variants).
8114         (vcvtu_n): New (v8hi, v4hi variants).
8115         (vcvts_n): New (v8hi, v4hi variants).
8116         (vcvtu_n): New (v8hf, v4hf variants).
8117         (vbsl): New (v8hf, v4hf variants).
8118         (vcvtas): New (v8hf, v4hf variants).
8119         (vcvtau): New (v8hf, v4hf variants).
8120         (vcvtms): New (v8hf, v4hf variants).
8121         (vcvtmu): New (v8hf, v4hf variants).
8122         (vcvtns): New (v8hf, v4hf variants).
8123         (vcvtnu): New (v8hf, v4hf variants).
8124         (vcvtps): New (v8hf, v4hf variants).
8125         (vcvtpu): New (v8hf, v4hf variants).
8127 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
8129         * config/arm/arm-builtins.c (hf_UP): New.
8130         (si_UP): New.
8131         (vfp_builtin_data): New.  Update comment.
8132         (enum arm_builtins): Include "arm_vfp_builtins.def".
8133         (ARM_BUILTIN_VFP_PATTERN_START): New.
8134         (arm_init_vfp_builtins): New.
8135         (arm_init_builtins): Add arm_init_vfp_builtins.
8136         (arm_expand_vfp_builtin): New.
8137         (arm_expand_builtins): Update for arm_expand_vfp_builtin.  Fix
8138         long line.
8139         * config/arm/arm_vfp_builtins.def: New file.
8140         * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
8141         (arm-builtins.o): Likewise.
8143 2016-09-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
8145         PR ipa/77677
8146         * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
8147         from constant while creating value range.
8149 2016-09-23  Renlin Li  <renlin.li@arm.com>
8151         * ira.c (ira): Move ira_use_lra_p initialization code to ...
8152         (ira_init_once): Here.
8154 2016-09-23  Uros Bizjak  <ubizjak@gmail.com>
8155             Jakub Jelinek  <jakub@redhat.com>
8157         * hooks.h (hook_uint_uintp_false): Rename to...
8158         (hook_bool_uint_uintp_false): ... this.
8159         * hooks.c (hook_uint_uintp_false): Rename to...
8160         (hook_bool_uint_uintp_false): ... this.
8161         * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
8162         instead of hook_uint_uintp_false.
8164 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
8166         * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
8167         (arm_init_builtins): Move body of a loop to the standalone
8168         function arm_init_neon_builtin.
8169         (arm_expand_neon_builtin_1): New.  Update comment.  Function body
8170         moved from arm_neon_builtin with some white-space fixes.
8171         (arm_expand_neon_builtin): Move code into the standalone function
8172         arm_expand_neon_builtin_1.
8174 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
8176         * config/arm/iterators.md (VCVTHI): New.
8177         (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE.  Fix a long line.
8178         (NEON_VAGLTE): New.
8179         (VFM_LANE_AS): New.
8180         (VH_CVTTO): New.
8181         (V_reg): Add HF, V4HF and V8HF.  Fix white-space.
8182         (V_HALF): Add V4HF.  Fix white-space.
8183         (V_if_elem): Add HF, V4HF and V8HF.  Fix white-space.
8184         (V_s_elem): Likewise.
8185         (V_sz_elem): Fix white-space.
8186         (V_elem_ch): Likewise.
8187         (VH_elem_ch): New.
8188         (scalar_mul_constraint): Add V8HF and V4HF.
8189         (Is_float_mode): Fix white-space.
8190         (Is_d_reg): Add V4HF and V8HF.  Fix white-space.
8191         (q): Add HF.  Fix white-space.
8192         (float_sup): New.
8193         (float_SUP): New.
8194         (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
8195         (neon_vfm_lane_as): New.
8196         * config/arm/neon.md (add<mode>3_fp16): New.
8197         (sub<mode>3_fp16): New.
8198         (mul<mode>3add<mode>_neon): New.
8199         (fma<VH:mode>4_intrinsic): New.
8200         (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
8201         (fmsub<VH:mode>4_intrinsic): New.
8202         (<absneg_str><mode>2): New.
8203         (neon_v<absneg_str><mode>): New.
8204         (neon_v<fp16_rnd_str><mode>): New.
8205         (neon_vrsqrte<mode>): New.
8206         (neon_vpaddv4hf): New.
8207         (neon_vadd<mode>): New.
8208         (neon_vsub<mode>): New.
8209         (neon_vmulf<mode>): New.
8210         (neon_vfma<VH:mode>): New.
8211         (neon_vfms<VH:mode>): New.
8212         (neon_vc<cmp_op><mode>): New.
8213         (neon_vc<cmp_op><mode>_fp16insn): New
8214         (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
8215         (neon_vca<cmp_op><mode>): New.
8216         (neon_vca<cmp_op><mode>_fp16insn): New.
8217         (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
8218         (neon_vc<cmp_op>z<mode>): New.
8219         (neon_vabd<mode>): New.
8220         (neon_v<maxmin>f<mode>): New.
8221         (neon_vp<maxmin>fv4hf: New.
8222         (neon_<fmaxmin_op><mode>): New.
8223         (neon_vrecps<mode>): New.
8224         (neon_vrsqrts<mode>): New.
8225         (neon_vrecpe<mode>): New (VH variant).
8226         (neon_vdup_lane<mode>_internal): New.
8227         (neon_vdup_lane<mode>): New.
8228         (neon_vcvt<sup><mode>): New (VCVTHI variant).
8229         (neon_vcvt<sup><mode>): New (VH variant).
8230         (neon_vcvt<sup>_n<mode>): New (VH variant).
8231         (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
8232         (neon_vcvt<vcvth_op><sup><mode>): New.
8233         (neon_vmul_lane<mode>): New.
8234         (neon_vmul_n<mode>): New.
8235         * config/arm/unspecs.md (UNSPEC_VCALE): New
8236         (UNSPEC_VCALT): New.
8237         (UNSPEC_VFMA_LANE): New.
8238         (UNSPECS_VFMS_LANE): New.
8240 2016-09-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8242         * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
8243         ("*extzv<mode><clobbercc_or_nocc>"):
8244         Correct a typo in a comment.
8245         Merged patterns.
8246         ("*insv<mode>_zEC12", "*insv<mode>_z10")
8247         ("*insv<mode><clobbercc_or_nocc>"): Ditto.
8248         ("*insv<mode>_zEC12_appendbitsleft")
8249         ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
8250         ("*insv<mode>_z10_appendbitsleft"): Ditto.
8251         ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
8252         ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
8253         Provide pattern with operands switched.
8254         ("*pre_z10_extv<mode>"):
8255         Use new subst patterns.
8256         ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
8257         ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
8258         ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
8259         ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
8260         ("*<risbg_n>_<mode>_ior_and_lshiftrt")
8261         ("*<risbg_n>_sidi_ior_and_lshiftrt")
8262         ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
8263         New patterns.
8264         ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
8265         ("*extzv_<mode>_srl<clobbercc_or_nocc>")
8266         ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
8267         on zEC12.
8268         ("SINT"): New mode_iterator with SI, HI, QI.
8269         * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
8270         ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
8271         duplication.
8273 2016-09-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8275         * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
8276         new interface of s390_contiguous_bitmask_p.
8277         ("contiguous_bitmask_nowrap_operand"): New predicate.
8278         ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
8279         * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
8280         of s390_contiguous_bitmask_p.
8281         ("NxxDw"): Rename NxxDq constraint to NxxDw.
8282         ("NxxSw"): New constraint.
8283         * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
8284         * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
8285         interface.
8286         (s390_contiguous_bitmask_nowrap_p): Export.
8287         * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
8288         former s390_contiguous_bitmask_p.
8289         (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
8290         detect contiguous bit ranges with wraparound.  Change signature to
8291         return START and END position instead of POS and LENGTH.
8292         (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
8293         ranges with wraparound.
8294         (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
8295         (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
8296         Adapt to new signature of s390_contiguous_bitmask_p.
8298 2016-09-23  Bin Cheng  <bin.cheng@arm.com>
8300         * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
8301         (create_intersect_range_checks): New.
8302         (vect_create_cond_for_alias_checks): Call above function.
8304 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
8306         * config/arm/iterators.md (Code iterators): Fix some white-space
8307         in the comments.
8308         (GLTE): New.
8309         (ABSNEG): New
8310         (FCVT): Moved from vfp.md.
8311         (VCVT_HF_US_N): New.
8312         (VCVT_SI_US_N): New.
8313         (VCVT_HF_US): New.
8314         (VCVTH_US): New.
8315         (FP16_RND): New.
8316         (absneg_str): New.
8317         (FCVTI32typename): Moved from vfp.md.
8318         (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
8319         UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
8320         UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
8321         UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N,  UNSPEC_VCVTH_S_N,
8322         UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
8323         (vcvth_op): New.
8324         (fp16_rnd_str): New.
8325         (fp16_rnd_insn): New.
8326         * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
8327         (UNSPEC_VCVT_HF_U_N): New.
8328         (UNSPEC_VCVT_SI_S_N): New.
8329         (UNSPEC_VCVT_SI_U_N): New.
8330         (UNSPEC_VCVTH_S): New.
8331         (UNSPEC_VCVTH_U): New.
8332         (UNSPEC_VCVTA_S): New.
8333         (UNSPEC_VCVTA_U): New.
8334         (UNSPEC_VCVTM_S): New.
8335         (UNSPEC_VCVTM_U): New.
8336         (UNSPEC_VCVTN_S): New.
8337         (UNSPEC_VCVTN_U): New.
8338         (UNSPEC_VCVTP_S): New.
8339         (UNSPEC_VCVTP_U): New.
8340         (UNSPEC_VCVTP_S): New.
8341         (UNSPEC_VCVTP_U): New.
8342         (UNSPEC_VRND): New.
8343         (UNSPEC_VRNDA): New.
8344         (UNSPEC_VRNDI): New.
8345         (UNSPEC_VRNDM): New.
8346         (UNSPEC_VRNDN): New.
8347         (UNSPEC_VRNDP): New.
8348         (UNSPEC_VRNDX): New.
8349         * config/arm/vfp.md (<absneg_str>hf2): New.
8350         (neon_vabshf): New.
8351         (neon_v<fp16_rnd_str>hf): New.
8352         (neon_vrndihf): New.
8353         (addhf3): New.
8354         (subhf3): New.
8355         (divhf3): New.
8356         (mulhf3): New.
8357         (*mulsf3neghf_vfp): New.
8358         (*negmulhf3_vfp): New.
8359         (*mulsf3addhf_vfp): New.
8360         (*mulhf3subhf_vfp): New.
8361         (*mulhf3neghfaddhf_vfp): New.
8362         (*mulhf3neghfsubhf_vfp): New.
8363         (fmahf4): New.
8364         (neon_vfmahf): New.
8365         (fmsubhf4_fp16): New.
8366         (neon_vfmshf): New.
8367         (*fnmsubhf4): New.
8368         (*fnmaddhf4): New.
8369         (neon_vsqrthf): New.
8370         (neon_vrsqrtshf): New.
8371         (FCVT): Move to iterators.md.
8372         (FCVTI32typename): Likewise.
8373         (neon_vcvth<sup>hf): New.
8374         (neon_vcvth<sup>si): New.
8375         (neon_vcvth<sup>_nhf_unspec): New.
8376         (neon_vcvth<sup>_nhf): New.
8377         (neon_vcvth<sup>_nsi_unspec): New.
8378         (neon_vcvth<sup>_nsi): New.
8379         (neon_vcvt<vcvth_op>h<sup>si): New.
8380         (neon_<fmaxmin_op>hf): New.
8382 2016-09-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8384         * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
8385         ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
8386         ("*insv<mode>_zEC12_appendbitsleft")
8387         ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
8388         ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
8390 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
8392         * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
8393         * sreal.h (sreal::min, sreal::max): Avoid static local vars,
8394         construct values without normalization.
8395         * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
8396         static local lhs_ops to vNULL.
8398 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
8399             Jiong Wang <jiong.wang@arm.com>
8401         * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
8402         available when FP16 instructions are available.
8403         (output_move_vfp): Add support for 16-bit data moves.
8404         (arm_validize_comparison): Fix some white-space.  Support HFmode
8405         by conversion to SFmode.
8406         * config/arm/arm.md (truncdfhf2): Fix a comment.
8407         (extendhfdf2): Likewise.
8408         (cstorehf4): New.
8409         (movsicc): Fix some white-space.
8410         (movhfcc): New.
8411         (movsfcc): Fix some white-space.
8412         (*cmovhf): New.
8413         * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
8414         instructions are available.
8415         (*thumb2_movhi_vfp): Likewise.
8416         (*arm_movhi_fp16): New.
8417         (*thumb2_movhi_fp16): New.
8418         (*movhf_vfp_fp16): New.
8419         (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
8420         (*movhf_vfp): Likewise.
8421         (extendhfsf2): Enable when VFP FP16 instructions are available.
8422         (truncsfhf2):  Enable when VFP FP16 instructions are available.
8424 2016-09-23  Martin Liska  <mliska@suse.cz>
8426         * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
8428 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
8430         * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
8431         V4HF modes.
8432         (arm_evpc_neon_vtrn): Likewise.
8433         (arm_evpc_neon_vrev): Likewise.
8434         (arm_evpc_neon_vext): Likewise.
8435         * config/arm/arm_neon.h (vbsl_f16): New.
8436         (vbslq_f16): New.
8437         (vdup_n_f16): New.
8438         (vdupq_n_f16): New.
8439         (vdup_lane_f16): New.
8440         (vdupq_lane_f16): New.
8441         (vext_f16): New.
8442         (vextq_f16): New.
8443         (vmov_n_f16): New.
8444         (vmovq_n_f16): New.
8445         (vrev64_f16): New.
8446         (vrev64q_f16): New.
8447         (vtrn_f16): New.
8448         (vtrnq_f16): New.
8449         (vuzp_f16): New.
8450         (vuzpq_f16): New.
8451         (vzip_f16): New.
8452         (vzipq_f16): New.
8453         * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
8454         (vdup_lane): New (v8hf, v4hf variants).
8455         (vext): New (v8hf, v4hf variants).
8456         (vbsl): New (v8hf, v4hf variants).
8457         * config/arm/iterators.md (VDQWH): New.
8458         (VH): New.
8459         (V_double_vector_mode): Add V8HF and V4HF.  Fix white-space.
8460         (Scalar_mul_8_16): Fix white-space.
8461         (Is_d_reg): Add V4HF and V8HF.
8462         * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
8463         (neon_vdup_lane<mode>): New.
8464         (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
8465         (*neon_vtrn<mode>_insn): Likewise.
8466         (neon_vzip<mode>_internal): Likewise. Also fix white-space.
8467         (*neon_vzip<mode>_insn): Likewise
8468         (neon_vuzp<mode>_internal): Likewise.
8469         (*neon_vuzp<mode>_insn): Likewise
8470         * config/arm/vec-common.md (vec_perm_const<mode>): New.
8472 2016-09-23  Jiong Wang  <jiong.wang@arm.com>
8473             Matthew Wahab  <matthew.wahab@arm.com>
8475         * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
8476         (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
8477         * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
8478         available.  Also fix some white-space.
8479         * config/arm/vfp.md (*arm_movhi_vfp): New.
8480         (*thumb2_movhi_vfp): New.
8482 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
8484         * config/arm/arm-c.c (arm_cpu_builtins): Define
8485         "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
8486         "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
8488 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
8490         * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
8491         arm_v8_1a_neon_ok.  Add entries for arm_v8_2a_fp16_scalar_ok,
8492         arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
8493         arm_v8_2a_fp16_neon_hw.
8494         (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
8495         arm_v8_2a_neon.
8497 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
8499         * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
8500         arm_fp16_alternative_ok and arm_fp16_none_ok.
8502 2016-09-23  Martin Liska  <mliska@suse.cz>
8504         * ipa-icf.c (sem_variable::merge): Replace adress with address.
8506 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
8508         * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
8509         ("armv8.2-a"): New.
8510         ("armv8.2-a+fp16"): New.
8511         * config/arm/arm-protos.h (FL2_ARCH8_2): New.
8512         (FL2_FP16INST): New.
8513         (FL2_FOR_ARCH8_2A): New.
8514         * config/arm/arm-tables.opt: Regenerate.
8515         * config/arm/arm.c (arm_arch8_2): New.
8516         (arm_fp16_inst): New.
8517         (arm_option_override): Set arm_arch8_2 and arm_fp16_inst.  Check
8518         for incompatible fp16-format settings.
8519         * config/arm/arm.h (TARGET_VFP_FP16INST): New.
8520         (TARGET_NEON_FP16INST): New.
8521         (arm_arch8_2): Declare.
8522         (arm_fp16_inst): Declare.
8523         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
8524         march=armv8.2-a and march=armv8.2-a+fp16.
8525         * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
8526         and armv8.2-a+fp16.
8527         * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
8528         "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
8530 2016-09-23  Martin Liska  <mliska@suse.cz>
8532         * doc/extend.texi: Remove fused-madd from i386 target options.
8534 2016-09-23  Martin Liska  <mliska@suse.cz>
8536         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
8537         Handle movbe.
8539 2016-09-23  Martin Liska  <mliska@suse.cz>
8541         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
8542         Handle crc32.
8544 2016-09-23  Martin Liska  <mliska@suse.cz>
8546         PR target/71652
8547         * config/i386/i386.c (ix86_option_override_internal): Change
8548         signature and return false when there's an error related to
8549         arch string.
8550         (release_options_strings): New function.
8551         (ix86_valid_target_attribute_tree): Call the function.
8553 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
8555         * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
8556         instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
8557         (gen_hsa_ctor_assignment): Likewise.
8558         * print-tree.c (print_node): Likewise.
8559         * tree-dump.c (dequeue_and_dump): Likewise.
8560         * tree-sra.c (sra_modify_constructor_assign): Likewise.
8561         * expr.c (store_constructor): Likewise.
8562         * fold-const.c (operand_equal_p): Likewise.
8563         * tree-pretty-print.c (dump_generic_node): Likewise.
8564         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
8565         * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
8567 2016-09-23  Richard Biener  <rguenther@suse.de>
8569         * hooks.h (hook_uint_uintp_false): Declare.
8571 2016-09-22  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
8573         * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
8574         (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
8576 2016-09-22  Martin Sebor  <msebor@redhat.com>
8578         PR target/77676
8579         * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
8580         HOST_BITS_PER_WIDE_INT, make a static local variable auto.
8581         (target_int_min): Correct computation.
8582         (format_integer): Use long long as the argument for the ll length
8583         modifier.
8584         (format_floating): Use target_int_max().
8585         (get_string_length): Same.
8586         (format_string): Avoid setting the bounded flag for strings
8587         of unknown length.
8588         (try_substitute_return_value): Avoid setting range info when
8589         the result isn't bounded.
8590         * varasm.c (assemble_name): Increase buffer size.
8592 2016-09-22  Andre Vieira  <andre.simoesdiasvieira@arm.com>
8593             Terry Guo  <terry.guo@arm.com>
8595         * target.def (elf_flags_numeric): New target hook.
8596         * targhooks.h (default_asm_elf_flags_numeric): New.
8597         * varasm.c (default_asm_elf_flags_numeric): New.
8598         (default_elf_asm_named_section): Use new target hook.
8599         * config/arm/arm.opt (mpure-code): New.
8600         * config/arm/arm.h (SECTION_ARM_PURECODE): New.
8601         * config/arm/arm.c (arm_asm_init_sections): Add section
8602         attribute to default text section if -mpure-code.
8603         (arm_option_check_internal): Diagnose use of option with
8604         non supported targets and/or options.
8605         (arm_asm_elf_flags_numeric): New.
8606         (arm_function_section): New.
8607         (arm_elf_section_type_flags): New.
8608         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
8609         for -mpure-code.
8610         * doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
8611         * doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
8613 2016-09-22  Jan Hubicka  <hubicka@ucw.cz>
8615         * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
8617 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8619         * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
8620         * rtl.h: Adjust prototype.
8622 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8624         * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
8625         (prev_active_insn): Likewise.
8626         (active_insn_p): Likewise.
8627         * rtl.h: Adjust prototypes.
8628         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
8629         * config/arc/arc.md: Likewise.
8630         * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
8631         (branch_needs_nop_p): Likewise.
8632         (use_skip_p): Likewise.
8633         * config/sh/sh.c (gen_block_redirect): Likewise.
8634         (split_branches): Likewise.
8635         * reorg.c (optimize_skip): Likewise.
8636         (fill_simple_delay_slots): Likewise.
8637         (fill_slots_from_thread): Likewise.
8638         (relax_delay_slots): Likewise.
8639         * resource.c (mark_target_live_regs): Likewise.
8641 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8643         * config/cris/cris.c (cris_asm_output_case_end): Change argument
8644         type to rtx_insn *.
8645         * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
8646         (prev_nonnote_nondebug_insn): Likewise.
8647         * config/cris/cris-protos.h: Adjust prototype.
8648         * rtl.h: Likewise.
8649         * jump.c (rtx_renumbered_equal_p): Adjust.
8651 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8653         * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
8654         * rtl.h: Adjust prototype.
8655         * config/sh/sh.md: Adjust.
8656         * dwarf2out.c (add_var_loc_to_decl): Likewise.
8658 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8660         * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
8661         (prev_nondebug_insn): Likewise.
8662         * loop-doloop.c (doloop_condition_get): Likewise.
8663         * rtl.h: Adjust prototype.
8664         * cfgloop.h: Likewise.
8666 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8668         * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
8669         (prev_nonnote_insn): Likewise.
8670         * jump.c (reversed_comparison_code_parts): Likewise.
8671         (reversed_comparison): Likewise.
8672         * rtl.h: Adjust prototypes.
8673         * config/arc/arc.md: Adjust.
8674         * cse.c (find_comparison_args): Likewise.
8675         * reorg.c (redundant_insn): Change return type to rtx_insn *.
8676         (fix_reg_dead_note): Change argument type to rtx_insn *.
8677         (delete_prior_computation): Likewise.
8678         (delete_computation): Likewise.
8679         (fill_slots_from_thread): Adjust.
8680         (relax_delay_slots): Likewise.
8681         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
8682         (simplify_relational_operation_1): Likewise.
8683         (simplify_ternary_operation): Likewise.
8685 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8687         * config/arc/arc-protos.h (arc_label_align): Change type of
8688         variables from rtx to rtx_insn *.
8689         * config/arc/arc.c (arc_label_align): Likewise.
8690         * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
8691         * config/bfin/bfin.c (workaround_speculation): Likewise.
8692         * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
8693         (find_last_same_clock): Likewise.
8694         (reorg_split_calls): Likewise.
8695         * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
8696         * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
8697         * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
8698         (same_cmp_following_p): Likewise.
8699         * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
8700         (same_cmp_following_p): Likwise.
8701         * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
8702         * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
8703         * config/nds32/nds32.c (nds32_target_alignment): Likewise.
8704         * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
8705         (rl78_alloc_physical_registers_cmp): Likewise.
8706         (rl78_alloc_physical_registers_umul): Likewise.
8707         (rl78_calculate_death_notes): Likewise.
8708         * config/s390/s390-protos.h (s390_label_align): Likewise.
8709         * config/s390/s390.c (s390_label_align): Likewise.
8710         * config/sh/sh.c (barrier_align): Likewise.
8711         * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
8712         * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
8713         (emit_cbcond_nop): Likewise.
8715 2016-09-22  Martin Liska  <mliska@suse.cz>
8717         PR ipa/77653
8718         * ipa-icf.c (sem_variable::merge): Yield merge operation if
8719         alias address matters, not necessarily address of original.
8721 2016-09-22  Richard Biener  <rguenther@suse.de>
8723         PR middle-end/77697
8724         * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
8725         fold fails.
8727 2016-09-22  Richard Biener  <rguenther@suse.de>
8729         PR middle-end/77677
8730         * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
8731         from constant folding results.
8732         (gimple_resimplify2): Likewise.
8733         (gimple_resimplify3): Likewise.
8735 2016-09-22  Richard Biener  <rguenther@suse.de>
8737         PR middle-end/77678
8738         * expr.c (expand_expr_real_1): Guard array access against negative
8739         offset.
8741 2016-09-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8743         * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
8744         of MPFR_RNDN.
8745         (format_floating): Likewise.
8747 2016-09-22  Jakub Jelinek  <jakub@redhat.com>
8749         PR fortran/77665
8750         * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
8751         for all IFN_GOMP_SIMD_* internal fns, not just for
8752         IFN_GOMP_SIMD_ORDERED_*.
8754 2016-09-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
8756         PR target/77670
8757         * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
8758         New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
8759         instructions when you want to invert the test.
8760         * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
8761         correct order for XXSEL.
8762         (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
8763         for using XSCMP{EQ,GT,GE}DP.
8765 2016-09-21  David Malcolm  <dmalcolm@redhat.com>
8767         * genconstants.c (main): Introduce noop_reader and convert call
8768         to read_md_files to a method call.
8769         * genenums.c (main): Likewise.
8770         * genmddeps.c (main): Likewise.
8771         * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
8772         rtx_reader_ptr->get_top_level_filename ().
8773         (write_tm_preds_h): Likewise.
8774         (write_insn_preds_c): Likewise.
8775         * gensupport.c (class gen_reader): New subclass of rtx_reader.
8776         (rtx_handle_directive): Convert to...
8777         (gen_reader::handle_unknown_directive): ...this.
8778         (init_rtx_reader_args_cb): Convert return type from bool to
8779         rtx_reader *.  Create a gen_reader instance, using it for the
8780         call to read_md_files.  Return it if no errors occur.
8781         (init_rtx_reader_args): Convert return type from bool to
8782         rtx_reader *.
8783         * gensupport.h (init_rtx_reader_args_cb): Likewise.
8784         (init_rtx_reader_args_cb): Likewise.
8785         * read-md.c (struct file_name_list): Move to class rtx_reader.
8786         (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
8787         (read_md_filename): Delete in favor of
8788         rtx_reader::m_read_md_filename.
8789         (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
8790         (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
8791         (base_dir): Delete in favor of rtx_reader::m_base_dir.
8792         (first_dir_md_include): Delete in favor of
8793         rtx_reader::m_first_dir_md_include.
8794         (last_dir_md_include_ptr): Delete in favor of
8795         rtx_reader::m_last_dir_md_include_ptr.
8796         (max_include_len): Delete.
8797         (rtx_reader_ptr): New.
8798         (fatal_with_file_and_line): Use get_filename and get_lineno
8799         accessors of rtx_reader_ptr.
8800         (require_char_ws): Likewise.
8801         (rtx_reader::read_char): New method, based on ::read_char.
8802         (rtx_reader::unread_char): New method, based on ::unread_char.
8803         (read_escape): Use get_filename and get_lineno accessors of
8804         rtx_reader_ptr.
8805         (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
8806         (read_string): Use get_filename and get_lineno accessors of
8807         rtx_reader_ptr.
8808         (rtx_reader::rtx_reader): New ctor.
8809         (rtx_reader::~rtx_reader): New dtor.
8810         (handle_include): Convert from a function to...
8811         (rtx_reader::handle_include): ...this method, converting
8812         handle_directive from a callback to a virtual function.
8813         (handle_file): Likewise, converting to...
8814         (rtx_reader::handle_file): ...this method.
8815         (handle_toplevel_file): Likewise, converting to...
8816         (rtx_reader::handle_toplevel_file): ...this method.
8817         (rtx_reader::get_current_location): New method.
8818         (parse_include): Convert from a function to...
8819         (rtx_reader::add_include_path): ...this method, dropping redundant
8820         update to unused max_include_len.
8821         (read_md_files): Convert from a function to...
8822         (rtx_reader::read_md_files): ...this method, converting
8823         handle_directive from a callback to a virtual function.
8824         (noop_reader::handle_unknown_directive): New method.
8825         * read-md.h (directive_handler_t): Delete this typedef.
8826         (in_fname): Delete.
8827         (read_md_file): Delete.
8828         (read_md_lineno): Delete.
8829         (read_md_filename): Delete.
8830         (class rtx_reader): New class.
8831         (rtx_reader_ptr): New decl.
8832         (class noop_reader): New subclass of rtx_reader.
8833         (read_char): Reimplement in terms of rtx_reader::read_char.
8834         (unread_char): Reimplement in terms of rtx_reader::unread_char.
8835         (read_md_files): Delete.
8836         * read-rtl.c (read_rtx_code): Update for deletion of globals
8837         read_md_filename and read_md_lineno.
8839 2016-09-21  Jason Merrill  <jason@redhat.com>
8841         * input.h (from_macro_definition_at): New.
8843 2016-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
8845         * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
8847 2016-09-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8849         PR tree-optimization/77550
8850         * tree-vect-stmts.c (create_array_ref): Change parameters.
8851         (get_group_alias_ptr_type): New function.
8852         (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
8854 2016-09-21  Marek Polacek  <polacek@redhat.com>
8856         * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
8857         Add falls through comment.
8859 2016-09-21  Richard Biener  <rguenther@suse.de>
8861         * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
8862         (replace_child): Likewise.
8863         (remove_child_TAG): Adjust.
8864         (move_marked_base_types): Likewise.
8865         (prune_unused_types_prune): Clear die_sib of removed children.
8867 2016-09-21  Georg-Johann Lay  <avr@gjlay.de>
8869         PR target/77326
8870         * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
8871         touches some regs mentioned in cc_status, do CC_STATUS_INIT.
8873 2016-09-21  Richard Biener  <rguenther@suse.de>
8875         PR tree-optimization/77648
8876         * tree-ssa-structalias.c (process_constraint): Handle all DEREF
8877         with complex RHS.
8878         (make_transitive_closure_constraints): Adjust comment.
8879         (make_any_offset_constraints): New function.
8880         (handle_rhs_call): Make sure to first expand a pointer to all
8881         subfields before transitively closing it.
8882         (handle_const_call): Likewise.  Properly expand returned
8883         pointers as well.
8884         (handle_pure_call): Likewise.
8886 2016-09-21  Richard Biener  <rguenther@suse.de>
8887             Jakub Jelinek  <jakub@redhat.com>
8889         PR tree-optimization/77621
8890         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
8891         group at non-vectorizable stmts.
8893 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
8895         PR tree-optimization/72835
8896         * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
8897         (make_new_ssa_for_all_defs): Likewise.
8898         (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
8900 2016-09-20  Martin Sebor  <msebor@redhat.com>
8902         PR middle-end/49905
8903         * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
8904         * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
8905         * config/linux.c (gnu_libc_printf_pointer_format): New function.
8906         * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
8907         * config/sol2.c (solaris_printf_pointer_format): New function.
8908         * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
8909         options.
8910         * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
8911         * doc/tm.texi: Regenerate.
8912         * gimple-fold.h (get_range_strlen): New function.
8913         (get_maxval_strlen): Declare existing function.
8914         * gimple-fold.c (get_range_strlen): Add arguments and compute both
8915         maximum and minimum.
8916          (get_range_strlen): Define overload.
8917         (get_maxval_strlen): Adjust.
8918         * gimple-ssa-sprintf.c: New file and pass.
8919         * passes.def (pass_sprintf_length): Add new pass.
8920         * targhooks.h (default_printf_pointer_format): Declare new function.
8921         (gnu_libc_printf_pointer_format): Same.
8922         (solaris_libc_printf_pointer_format): Same.
8923         * targhooks.c (default_printf_pointer_format): Define new function.
8924         * tree-pass.h (make_pass_sprintf_length): Declare new function.
8925         * print-tree.c: Increase buffer size.
8927 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
8929         * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
8931 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
8933         * common.opt: New option -fipa-vrp.
8934         * ipa-cp.c (ipa_get_vr_lat): New.
8935         (ipcp_vr_lattice::print): Likewise.
8936         (print_all_lattices): Call ipcp_vr_lattice::print.
8937         (ipcp_vr_lattice::meet_with): New.
8938         (ipcp_vr_lattice::meet_with_1): Likewise.
8939         (ipcp_vr_lattice::top_p): Likewise.
8940         (ipcp_vr_lattice::bottom_p): Likewsie.
8941         (ipcp_vr_lattice::set_to_bottom): Likewise.
8942         (set_all_contains_variable): Call VR set_to_bottom.
8943         (initialize_node_lattices): Init VR lattices.
8944         (propagate_vr_accross_jump_function): New.
8945         (propagate_constants_accross_call): Call
8946         propagate_vr_accross_jump_function.
8947         (ipcp_store_vr_results): New.
8948         (ipcp_driver): Handle VR.
8949         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
8950         (ipa_set_jf_unknown): Likewise.
8951         (ipa_compute_jump_functions_for_edge): Likewise.
8952         (ipa_node_params_t::duplicate): Likewise.
8953         (ipa_write_jump_function): Likewise.
8954         (ipa_read_jump_function): Likewise.
8955         (write_ipcp_transformation_info): Likewise.
8956         (read_ipcp_transformation_info): Likewise.
8957         (ipcp_update_vr): New.
8958         (ipcp_transform_function): Handle VR.
8959         * ipa-prop.h (struct ipa_vr): New.
8960         * cgraph.c: Include tree-vrp.h.
8961         * cgraphunit.c: Likewise.
8962         * ipa-utils.c: Likewise.
8963         * ipa.c: Likewise.
8964         * opts.c: Likewise.
8965         * toplev.c: Likewise.
8966         * ipa-devirt.c: Likewise.
8967         * ipa-inline-transform.c: Likewise.
8968         * ipa-inline.c: Likewise.
8969         * ipa-profile.c: Likewise.
8971 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
8973         * doc/invoke.texi: Document -fdump-tree-evrp.
8974         * passes.def: Define new pass_early_vrp.
8975         * timevar.def: Define new TV_TREE_EARLY_VRP.
8976         * tree-pass.h (make_pass_early_vrp): New.
8977         * tree-ssa-propagate.c: Make replace_uses_in non static.
8978         * tree-ssa-propagate.h: Export replace_uses_in.
8979         * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
8980         (extract_range_from_assert): Factor out
8981         extract_range_for_var_from_comparison_expr.
8982         (vrp_initialize_lattice): New.
8983         (vrp_initialize): Factor out vrp_initialize_lattice.
8984         (vrp_valueize): Fix it to reject complex value ranges.
8985         (vrp_free_lattice): New.
8986         (evrp_dom_walker::before_dom_children): Likewise.
8987         (evrp_dom_walker::after_dom_children): Likewise.
8988         (evrp_dom_walker::push_value_range): Likewise.
8989         (evrp_dom_walker::pop_value_range): Likewise.
8990         (execute_early_vrp): Likewise.
8991         (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
8992         (make_pass_early_vrp): New.
8994 2016-09-20  Uros Bizjak  <ubizjak@gmail.com>
8996         * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
8997         instead of exact_log2.
8999 2016-09-20  Uros Bizjak  <ubizjak@gmail.com>
9001         PR target/77621
9002         * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
9003         Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
9004         (ix86_add_stmt_cost): Penalize DFmode vector operations
9005         for !TARGET_VECTORIZE_DOUBLE.
9007 2016-09-20  Gerald Pfeifer  <gerald@pfeifer.com>
9009         * doc/invoke.texi (Warning Options): Simplify language.
9010         (Optimize Options): Complete sentence.
9012 2016-09-20  David Edelsohn  <dje.gcc@gmail.com>
9014         * dbxout.c (xcoff_debug_hooks):  Add filename parameter to
9015         early_finish hook.
9017 2016-09-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
9019         PR target/71395
9020         * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
9021         inits on power8 and above, use the VMRGEW instruction instead of a
9022         permute.
9024         * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
9025         (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
9026         initialization.
9028 2016-09-20  Tamar Christina  <tamar.christina@arm.com>
9030         * config/aarch64/arm_neon.h
9031         (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
9032         (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
9033         (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
9035 2016-09-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9037         * config/var/vax.h (ELIMINABLE_REGS): Define.
9038         (INITIAL_ELIMINATION_OFFSET): Define.
9040 2016-09-20  Jakub Jelinek  <jakub@redhat.com>
9042         PR middle-end/77624
9043         * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
9044         cast to void * if the cast is from some other pointer type.
9046 2016-09-20  Richard Biener  <rguenther@suse.de>
9048         PR tree-optimization/77646
9049         * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
9050         a VDEF.
9052 2016-09-20  Tamar Christina  <tamar.christina@arm.com>
9054         * config/aarch64/arm_neon.h: Add gnu_inline and artificial
9055         attributes to all inlined functions and make them extern.
9057 2016-09-20  Richard Biener  <rguenther@suse.de>
9059         * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
9060         hook.
9061         * debug.c (do_nothing_debug_hooks): Adjust.
9062         * dbxout.c (dbx_debug_hooks): Likewise.
9063         * sdbout.c (sdb_debug_hooks): Likewise.
9064         * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
9065         (dwarf2out_finish): Move producer, filename and
9066         path annotation ...
9067         (dwarf2out_early_finish): ... here.  Remove in_lto_p special-casing.
9068         * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
9070 2016-09-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9072         PR c++/77434
9073         * doc/invoke.texi: Document -Wint-in-bool-context.
9075         PR middle-end/77421
9076         * dwarf2out.c (output_loc_operands): Fix an assertion.
9078 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
9080         * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
9081         (CR_DECIMAL_DIG): New macro.
9083 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
9085         * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
9086         element.
9088 2016-09-19  Vladimir Makarov  <vmakarov@redhat.com>
9090         PR rtl-optimization/77416
9091         * lra-remat.c (operand_to_remat): Process hard coded insn
9092         registers.
9094 2016-09-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9096         * simplify-rtx.c (simplify_relational_operation_1): Add transformation
9097         (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
9099 2016-09-19  Segher Boessenkool  <segher@kernel.crashing.org>
9101         * target.def (lra_p): Wordsmithing.
9102         * doc/tm.texi: Regenerate.
9104 2016-09-19  Jakub Jelinek  <jakub@redhat.com>
9105             Jan Hubicka  <jh@suse.cz>
9107         PR target/77587
9108         * cgraph.c (cgraph_node::rtl_info): Pass &avail to
9109         ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
9110         Call ultimate_alias_target just once, not up to 4 times.
9112 2016-09-19  Richard Biener  <rguenther@suse.de>
9114         * dwarf2out.c (early_dwarf_finished): New global.
9115         (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
9116         is false.
9117         (dwarf2out_early_finish): Set early_dwarf_finished at the end,
9118         if called from LTO exit early.
9119         (dwarf2out_late_global_decl): When being during the early
9120         debug phase do not add locations but only const value attributes.
9121         Adjust the way we generate early DIEs for LTO.
9123 2016-09-19  Richard Biener  <rguenther@suse.de>
9125         PR middle-end/77605
9126         * tree-data-ref.c (analyze_subscript_affine_affine): Use the
9127         proper niter to bound the loops.
9129 2016-09-19  Richard Biener  <rguenther@suse.de>
9131         PR tree-optimization/77514
9132         * tree-ssa-pre.c (create_expression_by_pieces): Optimize
9133         search for folded stmt.
9135 2016-09-17  Jan Hubicka  <hubicka@ucw.cz>
9137         * passes.def (pass_early_thread_jumps): Schedule after forwprop.
9138         * tree-pass.h (make_pass_early_thread_jumps): Declare.
9139         * tree-ssa-threadbackward.c (fsm_find_thread_path,
9140         fsm_find_thread_path, profitable_jump_thread_path,
9141         fsm_find_control_statement_thread_paths,
9142         find_jump_threads_backwards): Add speed_p parameter.
9143         (pass_data_early_thread_jumps): New pass.
9144         (make_pass_early_thread_jumps): New function.
9146 2016-09-17  Andreas Schwab  <schwab@suse.de>
9148         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
9149         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
9151 2016-09-16  Eric Botcazou  <ebotcazou@adacore.com>
9153         * recog.c (rest_of_handle_split_after_reload): Delete.
9154         (pass_split_after_reload::gate): New method.
9155         (pass_split_after_reload::execute): Call split_all_insns directly.
9157 2016-09-16  Jonathan Wakely  <jwakely@redhat.com>
9159         * doc/extend.texi (Integer Overflow Builtins): Fix type of out
9160         parameters for functions taking long long arguments.
9162 2016-09-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9164         PR target/77613
9165         * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
9166         splat with truncate.
9168 2016-09-16  Jason Merrill  <jason@redhat.com>
9170         * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
9171         New.
9172         * hwint.c (exact_log2): Use pow2p_hwi.
9173         (ctz_hwi, ffs_hwi): Use least_bit_hwi.
9174         * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
9175         * builtins.c (get_object_alignment_2, get_object_alignment)
9176         (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
9177         least_bit_hwi.
9178         * calls.c (compute_argument_addresses, store_one_arg): Use
9179         least_bit_hwi.
9180         * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
9181         * combine.c (force_to_mode): Use least_bit_hwi.
9182         (contains_muldiv, find_split_point, combine_simplify_rtx)
9183         (simplify_if_then_else, simplify_set, force_to_mode)
9184         (if_then_else_cond, simplify_and_const_int_1)
9185         (simplify_compare_const): Use pow2p_hwi.
9186         * cse.c (fold_rtx): Use pow2p_hwi.
9187         * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
9188         Use least_bit_hwi.
9189         * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
9190         (init_expmed_one_conv): Use pow2p_hwi.
9191         * expr.c (is_aligning_offset): Use pow2p_hwi.
9192         * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
9193         (fold_binary_loc): Use pow2p_hwi.
9194         * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
9195         * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
9196         * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
9197         * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
9198         Use least_bit_hwi.
9199         * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
9200         * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
9201         * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
9202         * omp-low.c (oacc_loop_fixed_partitions)
9203         (oacc_loop_auto_partitions): Use least_bit_hwi.
9204         * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
9205         * stor-layout.c (place_field): Use least_bit_hwi.
9206         * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
9207         * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
9208         * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
9209         * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
9210         * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
9211         * tree-vect-data-refs.c (vect_analyze_group_access_1)
9212         (vect_grouped_store_supported, vect_grouped_load_supported)
9213         (vect_permute_load_chain, vect_shift_permute_load_chain)
9214         (vect_transform_grouped_load): Use pow2p_hwi.
9215         * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
9216         * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
9217         * tree-vect-stmts.c (vectorizable_mask_load_store): Use
9218         least_bit_hwi.
9219         * tsan.c (instrument_expr): Use least_bit_hwi.
9220         * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
9222 2016-09-16  Andreas Schwab  <schwab@suse.de>
9224         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
9225         OFFSET, not offset.
9226         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
9228 2016-09-16  Jakub Jelinek  <jakub@redhat.com>
9230         PR target/77526
9231         * combine.c (rest_of_handle_combine): If any edges have been purged,
9232         free dominators if available.
9234 2016-09-16  Jakub Jelinek  <jakub@redhat.com>
9235             Eric Botcazou  <ebotcazou@adacore.com>
9237         PR middle-end/77594
9238         * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
9239         through into expand_addsub_overflow after expand_neg_overflow.
9241 2016-09-15  David Malcolm  <dmalcolm@redhat.com>
9243         * diagnostic-show-locus.c
9244         (selftest::test_fixit_insert_containing_newline): New function.
9245         (selftest::test_fixit_replace_containing_newline): New function.
9246         (selftest::diagnostic_show_locus_c_tests): Call the above.
9248 2016-09-15  Bin Cheng  <bin.cheng@arm.com>
9250         PR tree-optimization/77503
9251         * tree-vect-loop.c (vectorizable_reduction): Record reduction
9252         code for CONST_COND_REDUCTION at analysis stage and use it at
9253         transform stage.
9254         * tree-vectorizer.h (struct _stmt_vec_info): New field.
9255         (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
9256         * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
9257         field.
9259 2016-09-15  Richard Biener  <rguenther@suse.de>
9261         PR middle-end/77544
9262         * fold-const.c (split_tree): Do not split constant ~X.
9264 2016-09-15  Jakub Jelinek  <jakub@redhat.com>
9266         PR rtl-optimization/77425
9267         * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
9268         is NULL.
9270         PR middle-end/77475
9271         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
9272         use %qs instead of %s where desirable, use argument instead of arg in
9273         the diagnostic wording, add list of supported strategies and
9274         spellcheck hint.
9275         (ix86_option_override_internal): Emit target("m...") instead of
9276         option("m...") in the diagnostic.  Use %qs instead of %s in invalid
9277         -march/-mtune option diagnostic.  Add list of supported arches/tunings
9278         and spellcheck hint.  Remove prefix, suffix and sw variables, use
9279         main_args_p ? "..." : "..." in diagnostics to make translation
9280         possible.
9282 2016-09-15  Richard Biener  <rguenther@suse.de>
9284         * dwarf2asm.h (dw2_asm_output_offset): Add overload with
9285         extra offset argument.
9286         * dwarf2asm.c (dw2_asm_output_offset): Implement that.
9287         * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
9288         to reflect new offset parameter.
9289         * doc/tm.texi: Regenerate.
9290         * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
9291         * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
9292         offset argument.
9293         (darwin_asm_output_dwarf_offset): Likewise.
9294         * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
9295         argument.
9296         (darwin_asm_output_dwarf_offset): Pass offset argument through.
9297         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
9298         * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
9300 2016-09-15  Chung-Lin Tang  <cltang@codesourcery.com>
9302         PR fortran/72743
9303         * ipa-icf.c (set_alias_uids): New function.
9304         (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
9305         all the merged variable's referring aliases.
9307 2016-09-15  Richard Biener  <rguenther@suse.de>
9309         PR tree-optimization/77514
9310         * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
9311         only forced_stmts sequence.
9313 2016-09-15  Kugan Vivekanandarajah  <kuganv@linaro.org>
9315         * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
9316         * cfgexpand.c (update_alias_info_with_stack_vars): Use
9317         FOR_EACH_SSA_NAME to iterate over SSA variables.
9318         (pass_expand::execute): Likewise.
9319         * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
9320         * tree-cfg.c (dump_function_to_file): Likewise.
9321         * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
9322         (update_ssa): Likewise.
9323         * tree-ssa-alias.c (dump_alias_info): Likewise.
9324         * tree-ssa-ccp.c (ccp_finalize): Likewise.
9325         * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
9326         (create_outofssa_var_map): Likewise.
9327         (coalesce_ssa_name): Likewise.
9328         * tree-ssa-operands.c (dump_immediate_uses): Likewise.
9329         * tree-ssa-pre.c (compute_avail): Likewise.
9330         * tree-ssa-sccvn.c (init_scc_vn): Likewise.
9331         (scc_vn_restore_ssa_info): Likewise.
9332         (free_scc_vn): Likwise.
9333         (run_scc_vn): Likewise.
9334         * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
9335         * tree-ssa-ter.c (new_temp_expr_table): Likewise.
9336         * tree-ssa-copy.c (fini_copy_prop): Likewise.
9337         * tree-ssa.c (verify_ssa): Likewise.
9339 2016-09-14  Matthew Fortune  <matthew.fortune@imgtec.com>
9341         * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
9342         and mips64r2 as default 32-bit and 64-bit architectures.
9343         (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
9344         as default 32-bit and 64-bit architectures.
9346 2016-09-14  Pat Haugen  <pthaugen@us.ibm.com>
9348         * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
9349         of succ edge.
9351 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
9353         * target.def (lra_p): Change commentary (for the manual) for the
9354         new default.
9355         * doc/tm.texi: Regenerate.
9357 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
9359         * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
9360         * config/arm/arm.c (TARGET_LRA_P): Delete macro.
9361         * config/i386/i386.c (TARGET_LRA_P): Delete macro.
9362         * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
9364 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
9366         * targhooks.c (default_lra_p): Return true instead of false.
9368 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
9370         * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
9371         hook_bool_void_false.
9372         * config/avr/avr.c: Ditto.
9373         * config/bfin/bfin.c: Ditto.
9374         * config/c6x/c6x.c: Ditto.
9375         * config/cr16/cr16.c: Ditto.
9376         * config/cris/cris.c: Ditto.
9377         * config/epiphany/epiphany.c: Ditto.
9378         * config/fr30/fr30.c: Ditto.
9379         * config/frv/frv.c: Ditto.
9380         * config/h8300/h8300.c: Ditto.
9381         * config/ia64/ia64.c: Ditto.
9382         * config/iq2000/iq2000.c: Ditto.
9383         * config/lm32/lm32.c: Ditto.
9384         * config/m32c/m32c.c: Ditto.
9385         * config/m32r/m32r.c: Ditto.
9386         * config/m68k/m68k.c: Ditto.
9387         * config/mcore/mcore.c: Ditto.
9388         * config/microblaze/microblaze.c: Ditto.
9389         * config/mmix/mmix.c: Ditto.
9390         * config/mn10300/mn10300.c: Ditto.
9391         * config/moxie/moxie.c: Ditto.
9392         * config/msp430/msp430.c: Ditto.
9393         * config/nios2/nios2.c: Ditto.
9394         * config/nvptx/nvptx.c: Ditto.
9395         * config/pa/pa.c: Ditto.
9396         * config/pdp11/pdp11.c: Ditto.
9397         * config/rl78/rl78.c: Ditto.
9398         * config/sparc/sparc.c: Ditto.
9399         * config/spu/spu.c: Ditto.
9400         * config/stormy16/stormy16.c: Ditto.
9401         * config/tilegx/tilegx.c: Ditto.
9402         * config/tilepro/tilepro.c: Ditto.
9403         * config/v850/v850.c: Ditto.
9404         * config/vax/vax.c: Ditto.
9405         * config/visium/visium.c: Ditto.
9406         * config/xtensa/xtensa.c: Ditto.
9408 2016-09-14  Jakub Jelinek  <jakub@redhat.com>
9410         PR sanitizer/68260
9411         * tsan.c: Include target.h.
9412         (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
9413         (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
9414         (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
9415         BUILT_IN_ATOMIC_TEST_AND_SET entries.
9416         (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
9418 2016-09-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9419             Martin Liska  <mliska@suse.cz>
9421         PR middle-end/77574
9422         * predict.c (force_edge_cold): Add braces to a condition.
9424 2016-09-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9426         PR rtl-optimization/77289
9427         * lra-constraints.c (get_final_hard_regno): Removed.
9428         (get_hard_regno): Add new parameter final_p.
9429         (get_reg_class): Directly call lra_get_elimination_hard_regno.
9430         (operands_match_p): Adjust call to get_hard_regno.
9431         (uses_hard_regs_p): Likewise.
9432         (process_alt_operands): Likewise.
9434 2016-09-13  Joe Seymour  <joe.s@somniumtech.com>
9436         PR target/70713
9437         * config/msp430/msp430.c (msp430_start_function): Emit an error
9438         if a function is both weak and specifies an interrupt number.
9440 2016-09-13  Jakub Jelinek  <jakub@redhat.com>
9442         PR tree-optimization/77454
9443         * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
9444         changing GIMPLE_COND.  Move update_stmt_if_modified call after this.
9445         Formatting fix.
9447 2016-09-13  Tamar Christina  <tamar.christina@arm.com>
9449         * config/aarch64/aarch64-builtins.c
9450         (aarch64_init_simd_builtins): Fix builtin type signature printing.
9452 2016-09-13  Uros Bizjak  <ubizjak@gmail.com>
9454         * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
9455         SFmode and SCmode arguments by reference.
9457 2016-09-13  David Malcolm  <dmalcolm@redhat.com>
9459         * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
9460         Rename to...
9461         (selftest::test_one_liner_fixit_insert_before): ...this, and update
9462         for renaming of add_fixit_insert to add_fixit_insert_before.
9463         (selftest::test_one_liner_fixit_insert_after): New function.
9464         (selftest::test_one_liner_fixit_validation_adhoc_locations):
9465         Update for renaming of add_fixit_insert to add_fixit_insert_before.
9466         (selftest::test_one_liner_many_fixits): Likewise.
9467         (selftest::test_diagnostic_show_locus_one_liner): Update for
9468         renaming, call new test function.
9469         (selftest::test_diagnostic_show_locus_fixit_lines): Update for
9470         renaming of add_fixit_insert to add_fixit_insert_before.
9471         (selftest::test_fixit_consolidation): Likewise.
9472         * diagnostic.c (selftest::test_print_parseable_fixits_insert):
9473         Likewise.
9474         * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
9475         (selftest::test_applying_fixits_insert_before): ...this.
9476         (selftest::test_applying_fixits_insert): Update for renaming of
9477         add_fixit_insert to add_fixit_insert_before.
9478         (selftest::test_applying_fixits_insert_after): New function.
9479         (selftest::test_applying_fixits_insert_after_at_line_end): New
9480         function.
9481         (selftest::test_applying_fixits_insert_after_failure): New function.
9482         (selftest::test_applying_fixits_multiple): Update for renaming of
9483         add_fixit_insert to add_fixit_insert_before.
9484         (selftest::change_line): Likewise.
9485         (selftest::test_applying_fixits_unreadable_file): Likewise.
9486         (selftest::test_applying_fixits_line_out_of_range): Likewise.
9487         (selftest::test_applying_fixits_column_validation): Likewise.
9488         (selftest::test_applying_fixits_column_validation): Likewise.
9489         (selftest::edit_context_c_tests): Update for renamed test function;
9490         call new test functions.
9492 2016-09-13  Pat Haugen  <pthaugen@us.ibm.com>
9494         PR tree-optimization/77536
9495         PR rtl-optimization/68212
9496         * config/rs6000/rs6000.md (div->recip splitter): Remove
9497         optimize_insn_for_speed_p condition.
9499 2016-09-13  Maciej W. Rozycki  <macro@imgtec.com>
9501         * optabs.c (prepare_cmp_insn): Update documentation comment.
9503 2016-09-13  Jakub Jelinek  <jakub@redhat.com>
9504             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9506         PR middle-end/77475
9507         * opts.h (candidates_list_and_hint): Declare.
9508         * opts-common.c (candidates_list_and_hint): New function.
9509         (cmdline_handle_error): Use it.
9511 2016-09-12  David Malcolm  <dmalcolm@redhat.com>
9513         * edit-context.c (edited_line::get_len): New accessor.
9514         (edited_file::print_diff): Split out hunk-printing into...
9515         (edited_file::print_diff_hunk): New method.
9516         (edited_file::print_diff_line): New method.
9518 2016-09-12  Andrew Pinski  <apinski@cavium.com>
9520         * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
9521         New tuning option.
9522         * config/aarch64/aarch64.c (thunderx_tunings): Enable
9523         AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
9524         (aarch64_operands_ok_for_ldpstp): Return false if
9525         AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
9526         was SImode and the alignment is less than 8 byte.
9527         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
9529 2016-09-12  Orlando Arias  <oarias@knights.ucf.edu>
9531         PR target/77570
9532         * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
9534 2016-09-12  Marek Polacek  <polacek@redhat.com>
9536         * doc/extend.texi: Use lowercase "boolean".
9537         * doc/invoke.texi: Likewise.
9538         * doc/md.texi: Likewise.
9539         * target.def: Likewise.
9540         * doc/tm.texi: Regenerated.
9542 2016-09-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9544         PR middle-end/77426
9545         * expmed.c (synth_mult): Delete duplicate mode check.
9547 2016-09-10  Tom de Vries  <tom@codesourcery.com>
9549         PR C/71602
9550         * builtins.c (std_canonical_va_list_type): Strictly return non-null for
9551         va_list type only.
9552         * config/i386/i386.c (ix86_canonical_va_list_type): Same.
9553         * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
9555 2016-09-09  Peter Bergner  <bergner@vnet.ibm.com>
9557         PR rtl-optimization/77289
9558         * lra-constraints.c (get_final_hard_regno): Add support for non hard
9559         register numbers.  Remove support for subregs.
9560         (get_hard_regno): Use SUBREG_P.  Don't call get_final_hard_regno().
9561         (get_reg_class): Delete removed get_final_hard_regno() argument.
9562         (uses_hard_regs_p): Call get_final_hard_regno().
9564 2016-09-09  Martin Sebor  <msebor@redhat.com>
9566         PR c/77520
9567         PR c/77521
9568         * pretty-print.c (pp_quoted_string): New function.
9569         (pp_format): Call it for %c and %s directives.
9571 2016-09-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9573         * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
9574         (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
9575         INITIAL_ELIMINATION_OFFSET) : Update documentation.
9576         * target.def (frame_pointer_required, can_eliminate): Likewise.
9577         * doc/tm.texi: Regenerated.
9578         * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
9579         ELIMINABLE_REGS.
9580         * df-scan.c (df_hard_reg_init): Likewise.
9581         * ira.c (ira_setup_eliminable_regset): Likewise.
9582         * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
9583         init_elim_table): Likewise.
9584         * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
9585         set_initial_elim_offsets, update_eliminables,
9586         init_elim_table): Likewise.
9587         * rtlanal.c (get_initial_register_offset): Likewise.
9588         * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
9589         * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
9590         * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
9591         * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
9592         * config/fr30/fr30.h: Fix comment.
9593         * config/frv/frv.c: Likewise.
9594         * config/frv/frv.h: Likewise.
9595         * config/ft32/ft32.h: Likewise.
9596         * config/visium/visium.h: Likewise.
9597         * config/pa/pa64-linux.h: Likewise.
9598         * config/v850/v850.h: Likewise.
9599         * config/cris/cris.c: Likewise.
9600         * config/ia64/ia64.h: Likewise.
9601         * config/moxie/moxie.h: Likewise.
9602         * config/m32r/m32r.h: Likewise.
9604 2016-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9606         PR target/77267
9607         * config.in: Regenerate.
9608         * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
9609         New macro.
9610         (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
9611         (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
9612         static-libmpxwrappers case.
9613         (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
9614         MPX_LD_AS_NEEDED_GUARD_POP.
9615         * configure: Regenerate.
9616         * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
9617         defined if linker support "--push-state"/"--pop-state".
9619 2016-09-09  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9621         * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
9623 2016-09-09  Joseph Myers  <joseph@codesourcery.com>
9625         * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
9626         (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
9627         (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
9628         (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
9629         (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
9630         (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
9631         (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
9632         Document.
9633         * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
9634         width macros from TS 18661-1.
9635         * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
9637 2016-09-08  Jakub Jelinek  <jakub@redhat.com>
9639         PR fortran/77516
9640         * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
9641         OMP_CLAUSE_SAFELEN_EXPR.
9643 2016-09-07  David Malcolm  <dmalcolm@redhat.com>
9645         * Makefile.in (OBJS): Add substring-locations.o.
9646         * langhooks-def.h (class substring_loc): New forward decl.
9647         (lhd_get_substring_location): New decl.
9648         (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
9649         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
9650         * langhooks.c (lhd_get_substring_location): New function.
9651         * langhooks.h (class substring_loc): New forward decl.
9652         (struct lang_hooks): Add field get_substring_location.
9653         * substring-locations.c: New file, taking definition of
9654         format_warning_va and format_warning_at_substring from
9655         c-family/c-format.c, making them non-static.
9656         * substring-locations.h (class substring_loc): Move class here
9657         from c-family/c-common.h.  Add and rewrite comments.
9658         (format_warning_va): New decl.
9659         (format_warning_at_substring): New decl.
9660         (get_source_location_for_substring): Add comment.
9662 2016-09-07  Eric Gallager  <egall@gwmail.gwu.edu>
9664         * config/i386/i386.c: Add 'U' suffix to processor feature bits
9665         to avoid -Wnarrowing warning.
9666         * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
9667         * opts.c: Likewise for SANITIZER_OPT bitmasks.
9669 2016-09-07  Wilco Dijkstra  <wdijkstr@arm.com>
9671         * config/aarch64/aarch64.c (aarch64_legitimize_address):
9672         Avoid use of base_offset if offset already in range.
9674 2016-09-07  Kaz Kojima  <kkojima@gcc.gnu.org>
9676         * config/sh/sh-protos.h (struct sh_atomic_model,
9677         selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
9678         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
9679         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
9680         * config/sh/sh.h (struct sh_atomic_model,
9681         selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
9682         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
9683         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
9684         Guard with __cplusplus.
9686 2016-09-06  Jakub Jelinek  <jakub@redhat.com>
9688         PR target/69255
9689         * config/i386/i386.c (ix86_expand_builtin): For builtin with
9690         unsupported or unknown ISA, use expand_call.
9692 2016-09-06  Martin Liska  <mliska@suse.cz>
9694         PR gcov-profile/77378
9695         PR gcov-profile/77466
9696         * tree-profile.c (tree_profiling): Detect whether target can use
9697         -fprofile-update=atomic.
9699 2016-09-06  Richard Biener  <rguenther@suse.de>
9701         PR tree-optimization/77479
9702         * tree-vrp.c (update_value_range): Extend overflow handling to
9703         VARYING.
9705 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
9707         PR target/77476
9708         * config/i386/i386.md (isa): Add x64_avx512bw.
9709         (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
9710         (kmov_isa): New mode attr.
9711         (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
9712         (*zero_extend<mode>si2): Likewise.
9713         (*zero_extendqihi2): Use avx512dq isa for the last alternative.
9715 2016-09-05  Gerald Pfeifer  <gerald@pfeifer.com>
9717         * doc/invoke.texi (SPU Options): nops -> NOPs.
9718         (x86 Options): Ditto.
9720 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
9722         PR middle-end/77475
9723         * toplev.c (process_options): Temporarily set input_location
9724         to UNKNOWN_LOCATION around targetm.target_option.override () call.
9726 2016-09-05  Uros Bizjak  <ubizjak@gmail.com>
9728         PR rtl-optimization/77452
9729         * explow.c (plus_constant) <case MEM>: Extract scalar constant from
9730         inner-mode reference to a CONST_VECTOR constant in the constant pool.
9732 2016-09-05  Marek Polacek  <polacek@redhat.com>
9734         PR c/77423
9735         * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
9737 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
9739         PR other/77421
9740         * gensupport.c (alter_output_for_subst_insn): Remove redundant
9741         *insn_out == '*' test.  Don't copy unnecessary to yet another
9742         memory buffer, and don't leak it.
9744         PR rtl-optimization/77425
9745         * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
9747 2016-09-03  Kirill Yukhin  <kirill.yukhin@intel.com>
9749         * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
9751 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
9753         * common.opt (fdiagnostics-generate-patch): New option.
9754         * diagnostic.c: Include "edit-context.h".
9755         (diagnostic_initialize): Initialize context->edit_context_ptr.
9756         (diagnostic_finish): Delete context->edit_context_ptr.
9757         (diagnostic_report_diagnostic): Add fix-it hints from the
9758         diagnostic to context->edit_context_ptr, if any.
9759         * diagnostic.h (class edit_context): Add forward decl.
9760         (struct diagnostic_context): Add field "edit_context_ptr".
9761         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
9762         -fdiagnostics-generate-patch.
9763         (-fdiagnostics-generate-patch): New item.
9764         * toplev.c: Include "edit-context.h".
9765         (process_options): Set global_dc->edit_context_ptr to a new
9766         edit_context if the options need one.
9767         (toplev::main): Handle -fdiagnostics-generate-patch by using
9768         global_dc->edit_context_ptr.
9770 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
9772         PR c/65467
9773         * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
9774         map and firstprivate clauses on target construct for _Atomic
9775         qualified decls.
9776         (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
9777         on target construct for _Atomic qualified decls.
9778         * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
9779         decls.
9780         * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
9781         _Atomic qualified arguments not mentioned in uniform clause.
9783 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
9785         * Makefile.in (OBJS-libcommon): Add edit-context.o.
9786         * diagnostic-color.c (color_dict): Add "diff-filename",
9787         "diff-hunk", "diff-delete", and "diff-insert".
9788         (parse_gcc_colors): Update default value of GCC_COLORS in comment
9789         to reflect above changes.
9790         * doc/invoke.texi (-fdiagnostics-color): Update description of
9791         default GCC_COLORS, and of the supported capabilities.
9792         * edit-context.c: New file.
9793         * edit-context.h: New file.
9794         * input.c (struct fcache): Add field "missing_trailing_newline".
9795         (diagnostics_file_cache_forcibly_evict_file): Initialize it to
9796         true.
9797         (add_file_to_cache_tab): Likewise.
9798         (fcache::fcache): Likewise.
9799         (get_next_line): Update c->missing_trailing_newline.
9800         (location_missing_trailing_newline): New function.
9801         * input.h (location_missing_trailing_newline): New decl.
9802         * selftest-run-tests.c (selftest::run_tests): Call
9803         edit_context_c_tests.
9804         * selftest.h (edit_context_c_tests): New decl.
9806 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
9807             Richard Biener  <rguenth@suse.de>
9809         PR tree-optimization/77444
9810         * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
9811         as steptype, remove redundant initialization.
9813 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
9815         PR sanitizer/77396
9816         * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
9817         (sanopt_optimize_walker): Optimize away
9818         __asan_before_dynamic_init (...) followed by
9819         __asan_after_dynamic_init () without intervening memory loads/stores.
9820         * ipa-pure-const.c (special_builtin_state): Handle
9821         BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
9822         BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
9824 2016-09-02  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9826         * cfg.c (free_original_copy_tables): Replace second assignment of
9827         bb_copy = NULL by bb_original = NULL.
9829 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
9831         PR other/77421
9832         * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
9833         assignment added in r216794.
9835 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
9837         * Makefile.in (OBJS): Add typed-splay-tree.o.
9838         * selftest-run-tests.c (selftest::run_tests): Call
9839         typed_splay_tree_c_tests.
9840         * selftest.h (typed_splay_tree_c_tests): New decl.
9841         * typed-splay-tree.c: New file.
9842         * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
9843         (typed_splay_tree::max): New method.
9844         (typed_splay_tree::min): New method.
9845         (typed_splay_tree::foreach): New method.
9846         (typed_splay_tree::closure): New struct.
9847         (typed_splay_tree::inner_foreach_fn): New function.
9849 2016-09-02  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9851         * ipa-cp.c (ipcp_store_bits_results): Change option name from
9852         -fipa-cp-bit to -fipa-bit-cp.
9854 2016-09-01  Martin Sebor  <msebor@redhat.com>
9856         PR tree-optimization/71831
9857         * tree-object-size.h: Return bool instead of the size and add
9858         argument for the size.
9859         * tree-object-size.c (compute_object_offset): Update signature.
9860         (addr_object_size): Same.
9861         (compute_builtin_object_size): Return bool instead of the size
9862         and add argument for the size.  Handle POINTER_PLUS_EXPR when
9863         optimization is disabled.
9864         (expr_object_size): Adjust.
9865         (plus_stmt_object_size): Adjust.
9866         (pass_object_sizes::execute): Adjust.
9867         * builtins.c (fold_builtin_object_size): Adjust.
9868         * doc/extend.texi (Object Size Checking): Update.
9869         * ubsan.c (instrument_object_size): Adjust.
9871 2016-09-01  Martin Sebor  <msebor@redhat.com>
9873         * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
9874         it fits the output of the formatted function regardless of its
9875         arguments.
9876         * genmodes.c (parser::parse_expr): Same.
9877         * gimplify.c (gimplify_asm_expr): Same.
9878         * passes.c (pass_manager::register_one_dump_file): Same.
9879         * print-tree.c (print_node): Same.
9881 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
9883         * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
9885 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
9887         * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
9889 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
9891         * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
9892         * config/rs6000/vector.md: Ditto.
9893         * config/rs6000/vsx.md: Ditto.
9895 2016-09-01  Eric Botcazou  <ebotcazou@adacore.com>
9897         * ipa-inline-analysis.c (param_change_prob): Get to the base object
9898         first in all cases.
9900 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
9902         * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
9903         *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
9904         *return_and_restore_gpregs_<mode>_r11,
9905         *return_and_restore_gpregs_<mode>_r12,
9906         *return_and_restore_gpregs_<mode>_r1,
9907         *return_and_restore_fpregs_<mode>_r11,
9908         *return_and_restore_fpregs_<mode>_r12,
9909         *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
9910         directly instead of via the "l" constraint.  Renumber operands.
9911         Fix whitespace.
9913 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
9915         * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
9916         save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
9917         *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
9918         * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
9919         load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
9920         *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
9921         *call_value_nonlocal_darwin64, reload_macho_picbase,
9922         reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
9923         * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
9924         * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
9925         *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
9926         *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
9927         *save_fpregs_<mode>_r1): Ditto.
9928         * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
9929         *return_and_restore_gpregs_spe): Ditto.
9931 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
9933         * config/rs6000/rs6000.md
9934         (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
9935         the use of the link register.
9936         (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
9938 2016-09-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9939             Michael Meissner  <meissner@linux.vnet.ibm.com>
9941         PR target/72827
9942         * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
9943         reg+reg addressing for TImode.
9944         (rs6000_legitimate_address_p): Only allow register indirect
9945         addressing for TImode, even without TARGET_QUAD_MEMORY.
9947 2016-09-01  Richard Biener  <rguenther@suse.de>
9949         PR middle-end/77436
9950         * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
9951         check whether the result fits the desired result type.
9953 2016-09-01  Nathan Sidwell  <nathan@acm.org>
9955         * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
9957 2016-09-01  Wilco Dijkstra  <wdijkstr@arm.com>
9959         * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
9960         New function.
9961         (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
9963 2016-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9965         * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
9966         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
9967         for comparisons of integer ZERO_EXTEND against zero.
9969 2016-09-01  Eric Botcazou  <ebotcazou@adacore.com>
9971         * config/i386/i386.c (ix86_option_override_internal): Also disable the
9972         STV pass if -mstackrealign is enabled.
9974 2016-08-31  Ilya Verbin  <iverbin@gmail.com>
9976         * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
9977         AVX512IFMA.
9979 2016-08-31  David Malcolm  <dmalcolm@redhat.com>
9981         * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
9982         (layout_range::intersects_line_p): New method.
9983         (test_range_contains_point_for_single_point): Rename to...
9984         (test_layout_range_for_single_point): ...this, and add testing
9985         for layout_range::intersects_line_p.
9986         (test_range_contains_point_for_single_line): Rename to...
9987         (test_layout_range_for_single_line): ...this,  and add testing
9988         for layout_range::intersects_line_p.
9989         (test_range_contains_point_for_multiple_lines): Rename to...
9990         (test_layout_range_for_multiple_lines): ...this,  and add testing
9991         for layout_range::intersects_line_p.
9992         (layout::layout): Populate m_fixit_hints.
9993         (layout::get_expanded_location): Handle the case of a line-span
9994         for a fix-it hint.
9995         (layout::validate_fixit_hint_p): New method.
9996         (get_line_span_for_fixit_hint): New function.
9997         (layout::calculate_line_spans): Add spans for fixit-hints.
9998         (layout::should_print_annotation_line_p): New method.
9999         (layout::print_any_fixits): Drop param "richloc", instead using
10000         validated fixits in m_fixit_hints.  Add "const" to hint pointers.
10001         (diagnostic_show_locus): Avoid printing blank annotation lines.
10002         (selftest::test_diagnostic_context::test_diagnostic_context):
10003         Initialize show_column and start_span.
10004         (selftest::test_diagnostic_context::start_span_cb): New static
10005         function.
10006         (selftest::test_diagnostic_show_locus_fixit_lines): New function.
10007         (selftest::diagnostic_show_locus_c_tests): Update for function
10008         renamings.  Call test_diagnostic_show_locus_fixit_lines.
10010 2016-08-31  Marc Glisse  <marc.glisse@inria.fr>
10012         PR tree-optimization/73714
10013         * match.pd (a * (1 << b)): Revert change from 2016-05-23.
10015 2016-08-31  David Malcolm  <dmalcolm@redhat.com>
10017         * selftest.c: Move "namespace selftest {" to top of file,
10018         removing explicit "selftest::" qualifiers throughout.
10020 2016-08-31  Marc Glisse  <marc.glisse@inria.fr>
10022         * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
10023         New types.
10024         (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
10025         _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
10026         Replace builtin with vector extension.
10027         * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
10028         New types.
10029         (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
10030         _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
10031         Replace builtin with vector extension.
10032         * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
10033         (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
10034         Replace builtin with vector extension.
10035         * config/i386/xmmintrin.h (__m128_u): New type.
10036         (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
10037         (_mm_load_ps, _mm_store_ps): Simplify.
10039 2016-08-31  Eric Botcazou  <ebotcazou@adacore.com>
10041         * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
10043 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
10045         * diagnostic-show-locus.c (colorizer::begin_state): Support more
10046         than 3 ranges per diagnostic by alternating between color 1 and
10047         color 2.
10048         (layout::layout): Replace use of rich_location::MAX_RANGES
10049         with richloc->get_num_locations ().
10050         (layout::calculate_line_spans): Replace use of
10051         rich_location::MAX_RANGES with m_layout_ranges.length ().
10052         (layout::print_annotation_line): Handle arbitrary numbers of
10053         ranges in caret-printing by defaulting to '^'.
10054         (selftest::test_one_liner_many_fixits): New function.
10055         (test_diagnostic_show_locus_one_liner): Call it.
10056         * diagnostic.c (diagnostic_initialize): Update for renaming
10057         of rich_location::MAX_RANGES to
10058         rich_location::STATICALLY_ALLOCATED_RANGES.
10059         * diagnostic.h (struct diagnostic_context): Likewise.
10061 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
10063         * selftest.c (selftest::named_temp_file::named_temp_file): New
10064         ctor.
10065         (selftest::temp_source_file::~temp_source_file): Move to...
10066         (selftest::named_temp_file::~named_temp_file): ...here.
10067         (selftest::test_named_temp_file): New function.
10068         (selftest::selftest_c_tests): Call test_named_temp_file.
10069         * selftest.h (class named_temp_file): New class.
10070         (class temp_source_file): Convert to a subclass of named_temp_file.
10072 2016-08-30  Segher Boessenkool  <segher@kernel.crashing.org>
10074         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
10075         USEs of LR_REGNO in returns and sibcalls.
10076         (rs6000_output_mi_thunk): Similar.
10077         (rs6000_sibcall_aix): Similar.
10078         * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
10079         sibcall_local64, sibcall_value_local32, sibcall_value_local64,
10080         sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
10081         Remove the USE of LR_REGNO from the patterns as well.  Delete an
10082         obsolete comment.
10083         (return_internal_<mode>): Delete.
10085 2016-08-30  Tamar Christina  <tamar.christina@arm.com>
10087         * config/aarch64/aarch64-simd.md
10088         (aarch64_ld2<mode>_dreg_le): New.
10089         (aarch64_ld2<mode>_dreg_be): New.
10090         (aarch64_ld2<mode>_dreg): Removed.
10091         (aarch64_ld3<mode>_dreg_le): New.
10092         (aarch64_ld3<mode>_dreg_be): New.
10093         (aarch64_ld3<mode>_dreg): Removed.
10094         (aarch64_ld4<mode>_dreg_le): New.
10095         (aarch64_ld4<mode>_dreg_be): New.
10096         (aarch64_ld4<mode>_dreg): Removed.
10097         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
10099 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
10101         * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
10102         redundant location param.
10103         (test_one_liner_fixit_remove): Likewise.
10104         (test_one_liner_fixit_replace): Likewise.
10105         (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
10106         * gcc-rich-location.c
10107         (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
10108         get_range_from_loc.  Drop overload taking a const char *.
10109         * gcc-rich-location.h
10110         (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
10111         a const char *.
10113 2016-08-30  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10115         * config/linux.c (linux_libc_has_function): Return true on musl.
10117 2016-08-30  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10119         * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
10121 2016-08-30  Eric Botcazou  <ebotcazou@adacore.com>
10123         * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
10124         used for abnormal egdes.
10126 2016-08-30  Jakub Jelinek  <jakub@redhat.com>
10128         PR tree-optimization/72866
10129         * tree-vect-patterns.c (search_type_for_mask): Turn into
10130         a small wrapper, move all code to ...
10131         (search_type_for_mask_1): ... this new function.  Add caching
10132         and adjust recursive calls.
10134         PR debug/77363
10135         * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
10136         instead of lookup_type_die (type_main_variant (type)) even for array
10137         types.
10139         PR middle-end/77377
10140         * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
10141         constant pool reference return x instead of c.
10143 2016-08-29  Segher Boessenkool  <segher@kernel.crashing.org>
10145         * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
10146         include MQ.
10148 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
10150         * input.c
10151         (selftest::test_make_location_nonpure_range_endpoints): Fix
10152         header comment.
10154 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
10156         * diagnostic-show-locus.c
10157         (selftest::test_one_liner_fixit_validation_adhoc_locations): New
10158         function.
10159         (selftest::test_diagnostic_show_locus_one_liner): Call it.
10160         * input.c (get_pure_location): Move to libcpp/line-map.c.
10161         * input.h (get_pure_location): Convert decl to an inline function
10162         calling implementation in libcpp.
10164 2016-08-29  Uros Bizjak  <ubizjak@gmail.com>
10166         PR target/77403
10167         * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
10168         template for intel asm dialect.
10169         (vec_set_hi_<mode><mask_name>): Ditto.
10171 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
10173         * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
10174         (selftest::fail_formatted): Likewise.
10176 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
10178         * input.c (make_location): Call get_start and get_finish
10179         on the endpoints to avoid storing packed ranges or ad-hoc
10180         ranges in them.
10181         (selftest::test_make_location_nonpure_range_endpoints): New function.
10182         (selftest::input_c_tests): Call it.
10183         * input.h (get_start): New inline function.
10185 2016-08-29  Tom de Vries  <tom@codesourcery.com>
10187         PR c/77398
10188         * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
10189         with assert.
10191 2016-08-29  Eric Botcazou  <ebotcazou@adacore.com>
10193         * Makefile.in (gcov-iov.h): Add dummy recipe.
10195 2016-08-29  Nathan Sidwell  <nathan@acm.org>
10197         * config/nvptx/nvptx.c: #include tree-vrp.h.
10199 2016-08-28  Eric Botcazou  <ebotcazou@adacore.com>
10201         PR target/77324
10202         * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
10203         HIGH+LO construct during reload.
10205 2016-08-28  Tom de Vries  <tom@codesourcery.com>
10207         PR lto/70955
10208         * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
10209         'sysv_abi va_list' attribute.
10210         (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
10211         (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
10212         attributes.
10214 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10216         * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
10217         * emit-rtl.c (unshare_all_rtl_1): Adjust.
10218         (unshare_all_rtl_again): Likewise.
10219         * function.c (assign_stack_local_1): Likewise.
10220         (assign_stack_temp_for_type): Likewise.
10222 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10224         * cfgbuild.c (make_edges): Adjust.
10225         * cfgrtl.c (can_delete_label_p): Likewise.
10226         * dwarf2cfi.c (create_trace_edges): Likewise.
10227         * except.c (sjlj_emit_dispatch_table): Likewise.
10228         * function.h (struct expr_status): make x_forced_labels a vector.
10229         * jump.c (rebuild_jump_labels_1): Adjust.
10230         * reload1.c (set_initial_label_offsets): Likewise.
10231         * stmt.c (force_label_rtx): Likewise.
10232         (expand_label): Likewise.
10234 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10236         * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
10238 2016-08-27  Patrick Palka  <ppalka@gcc.gnu.org>
10240         PR tree-optimization/71077
10241         PR tree-optimization/68542
10242         * fold-const.c (fold_relational_const): Fix folding of
10243         VECTOR_CST comparisons that have a scalar boolean result type.
10244         (selftest::test_vector_folding): New static function.
10245         (selftest::fold_const_c_tests): Call it.
10247 2016-08-27  Gerald Pfeifer  <gerald@pfeifer.com>
10249         * doc/extend.texi (SPU Built-in Functions): Remove stale
10250         references to material formerly at IBM and Sony.
10252 2016-08-26  David Edelsohn  <dje.gcc@gmail.com>
10254         PR target/77349
10255         * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
10257 2016-08-26  David Malcolm  <dmalcolm@redhat.com>
10259         * diagnostic-show-locus.c
10260         (selftest::test_fixit_consolidation): New function.
10261         (selftest::diagnostic_show_locus_c_tests): Call it.
10262         * gcc-rich-location.h (gcc_rich_location): Eliminate unused
10263         constructor based on source_range.
10265 2016-08-26  David Malcolm  <dmalcolm@redhat.com>
10267         * diagnostic-color.c (color_dict): Add "fixit-insert" and
10268         "fixit-delete".
10269         (parse_gcc_colors): Update description of default GCC_COLORS.
10270         * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
10271         (colorizer::set_fixit_insert): New method.
10272         (colorizer::set_fixit_delete): New method.
10273         (colorizer::get_color_by_name): New method.
10274         (colorizer::STATE_FIXIT_INSERT): New constant.
10275         (colorizer::STATE_FIXIT_DELETE): New constant.
10276         (class colorizer): Drop "_cs" suffix from fields.  Delete "_ce"
10277         fields in favor of new field "m_stop_color".  Add fields
10278         "m_fixit_insert" and "m_fixit_delete".
10279         (colorizer::colorizer): Update for above changes.  Replace
10280         colorize_start calls with calls to get_color_by_name.
10281         (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
10282         STATE_FIXIT_DELETE.  Update for field renamings.
10283         (colorizer::finish_state): Simplify by using m_stop_color,
10284         rather than multiple identical "*_ce" fields.
10285         (colorizer::get_color_by_name): New method.
10286         (layout::print_any_fixits): Print insertions and replacements
10287         using the "fixit-insert" color, and deletions using the
10288         "fixit-delete" color.
10289         * doc/invoke.texi (-fdiagnostics-color): Update description of
10290         default GCC_COLORS, and of the supported capabilities.
10292 2016-08-26  Max Filippov  <jcmvbkbc@gmail.com>
10294         * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
10295         current_function_static_stack_size variable with the static
10296         stack frame size of the current function when
10297         flag_stack_usage_info is enabled.
10299 2016-08-26  Nathan Sidwell  <nathan@acm.org>
10301         * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
10302         assignment inside if condition.
10304 2016-08-26  Richard Biener  <rguenther@suse.de>
10306         PR tree-optimization/69047
10307         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
10308         extracts similar to what FRE does.
10309         (non_rewritable_mem_ref_base): Likewise.
10311 2016-08-26  Joseph Myers  <joseph@codesourcery.com>
10313         * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
10314         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
10315         * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
10316         * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
10317         * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
10318         Likewise.
10319         * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
10320         * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
10321         * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
10322         * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
10323         * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
10325 2016-08-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10327         PR target/70473
10328         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
10329         reservation duration to 15 cycles.
10330         (cortex_a8_vfp_macs): Likewise.
10331         (cortex_a8_vfp_macd): Likewise.
10332         (cortex_a8_vfp_divs): Likewise.
10333         (cortex_a8_vfp_divd): Likewise.
10335 2016-08-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10337         * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
10338         (aarch_macro_fusion_pair_p): Use above to avoid early return.
10340 2016-08-26  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
10341             Martin Jambhor  <mjambor@suse.cz>
10343         * common.opt: New option -fipa-bit-cp.
10344         * doc/invoke.texi: Document -fipa-bit-cp.
10345         * opts.c (default_options_table): Add entry for -fipa-bit-cp.
10346         (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
10347         * tree-ssa-ccp.h: New header file.
10348         * tree-ssa-ccp.c: Include tree-ssa-ccp.h
10349         (bit_value_binop_1): Change to bit_value_binop_1 and export it.
10350         Replace all occurences of tree parameter by two new params: signop, int.
10351         (bit_value_unop_1): Change to bit_value_unop and export it.
10352         Replace all occurences of tree parameter by two new params: signop,
10353         int.
10354         (bit_value_binop): Change call from bit_value_binop_1 to
10355         bit_value_binop.
10356         (bit_value_assume_aligned): Likewise.
10357         (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
10358         (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
10359         to ccp_finalize.
10360         (ccp_finalize): Skip processing if val->mask == 0.
10361         * ipa-cp.c: Include tree-ssa-ccp.h
10362         (ipcp_bits_lattice): New class.
10363         (ipcp_param_lattice (bits_lattice): New member.
10364         (print_all_lattices): Call ipcp_bits_lattice::print.
10365         (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
10366         (initialize_node_lattices): Likewise.
10367         (propagate_bits_accross_jump_function): New function.
10368         (propagate_constants_accross_call): Call
10369         propagate_bits_accross_jump_function.
10370         (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
10371         (ipcp_store_bits_results): New function.
10372         (ipcp_driver): Call ipcp_store_bits_results.
10373         * ipa-prop.h (ipa_bits): New struct.
10374         (ipa_jump_func): Add new member bits of type ipa_bits.
10375         (ipa_param_descriptor): Change decl to decl_or_type.
10376         (ipa_get_param): Change decl to decl_or_type and assert on
10377         PARM_DECL.
10378         (ipa_get_type): New function.
10379         (ipcp_transformation_summary): New member bits.
10380         * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
10381         (ipa_populate_param_decls): Likewise.
10382         (ipa_dump_param): Likewise.
10383         (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
10384         function.
10385         (ipa_set_jf_unknown): Set ipa_bits::known to false.
10386         (ipa_compute_jump_functions_for_edge): Compute jump function for bits
10387         propagation.
10388         (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
10389         (ipa_write_jump_function): Add streaming for ipa_bits.
10390         (ipa_read_jump_function): Add support for reading streamed ipa_bits.
10391         (write_ipcp_transformation_info): Add streaming for ipa_bits
10392         summary for ltrans.
10393         (read_ipcp_transfomration_info): Add support for reading streamed
10394         ipa_bits.
10395         (ipcp_update_bits): New function.
10396         (ipcp_transform_function): Call ipcp_update_bits.
10398 2016-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10400         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
10401         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
10403 2016-08-25  David Edelsohn  <dje.gcc@gmail.com>
10405         * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
10407 2016-08-25  Richard Biener  <rguenther@suse.de>
10409         * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
10410         Only add locations in late dwarf.
10411         (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
10412         (dwarf2out_early_finish): But do it here.
10414 2016-08-24  Michael Collison  <michael.collison@linaro.org>
10415             Michael Collison  <michael.collison@arm.com>
10417         * config/arm/arm-modes.def: Add new condition code mode CC_V
10418         to represent the overflow bit.
10419         * config/arm/arm.c (maybe_get_arm_condition_code):
10420         Add support for CC_Vmode.
10421         (arm_gen_unlikely_cbranch): New function to generate common
10422         rtl conditional branches for overflow patterns.
10423         * config/arm/arm-protos.h: Add prototype for
10424         arm_gen_unlikely_cbranch.
10425         * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
10426         addsi3_compareV_upper): New patterns to support signed
10427         builtin overflow add operations.
10428         (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
10429         New patterns to support unsigned builtin add overflow operations.
10430         (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
10431         builtin overflow subtract operations,
10432         (usubv<mode>4): New patterns to support unsigned builtin subtract
10433         overflow operations.
10434         (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
10435         to support builtin overflow negate operations.
10437 2016-08-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10439         Revert
10440         2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10442         * explow.c (get_dynamic_stack_size): Take known alignment of stack
10443         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
10444         needed.
10446 2016-08-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10448         * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
10449         MULTILIB_OPTIONS should be used.  Small wording fixes.
10450         * genmultilib: Memorize set of all option combinations in
10451         combination_space.  Detect if RHS of MULTILIB_REUSE uses an option not
10452         found in MULTILIB_OPTIONS by checking if option set is listed in
10453         combination_space.  Output new and existing error message to stderr.
10455 2016-08-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10457         * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
10458         -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
10459         Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
10460         (MULTILIB_REUSE): Remove reuse rules for option set including
10461         -mfpu=fp-armv8 and -mfpu=vfpv4
10463 2016-08-24  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10465         * config/arm/t-rtems: Add vfp multilib.
10467 2016-08-23  Ian Lance Taylor  <iant@golang.org>
10469         * config/s390/s390.c (s390_asm_file_start): Call
10470         default_file_start.
10472 2016-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
10474         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
10475         initialization of all 0's to the 0 constant, instead of directly
10476         generating XOR.  Add support for V4SImode vector initialization on
10477         64-bit systems with direct move, and rework the ISA 3.0 V4SImode
10478         initialization.  Change variables used in V4SFmode vector
10479         intialization.  For V4SFmode vector splat on ISA 3.0, make sure
10480         any memory addresses are in index form.  Add support for using
10481         VSPLTH/VSPLTB to initialize vector short and vector char vectors
10482         with all of the same element.
10483         (regno_or_subregno): New helper function to return a register
10484         number for either REG or SUBREG.
10485         (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
10486         Use regno_or_subregno where possible.
10487         (rs6000_split_v4si_init_di_reg): New helper function to build up a
10488         DImode value from two SImode values in order to generate V4SImode
10489         vector initialization on 64-bit systems with direct move.
10490         (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
10491         initialization.
10492         (rtx_is_swappable_p): V4SImode vector initialization insn is not
10493         swappable.
10494         * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
10495         declaration.
10496         * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
10497         attributes to initialize V8HImode and V16QImode vectors with the
10498         same element.
10499         (VSX_SPLAT_COUNT): Likewise.
10500         (VSX_SPLAT_SUFFIX): Likewise.
10501         (UNSPEC_VSX_VEC_INIT): New unspec.
10502         (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
10503         Allow SFmode values to come from Altivec registers.
10504         (vsx_init_v4si): New insn/split for V4SImode vector initialization
10505         on 64-bit systems with direct move.
10506         (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
10507         vector initializations, to allow V4SImode vector initializations
10508         on 64-bit systems with direct move.
10509         (vsx_splat_v4si): Likewise.
10510         (vsx_splat_v4si_di): Likewise.
10511         (vsx_splat_v4sf): Likewise.
10512         (vsx_splat_v4sf_internal): Likewise.
10513         (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
10514         register classes.
10515         (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
10516         (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
10517         initializing V8HImode and V16QImode vectors with the same
10518         element.
10519         * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
10520         optimization if -maltivec=be.
10522 2016-08-23  Christophe Lyon  <christophe.lyon@linaro.org>
10524         * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
10525         attribute for alternatives 3 and 4.
10527 2016-08-23  David Malcolm  <dmalcolm@redhat.com>
10529         * selftest.c (selftest::assert_str_contains): New function.
10530         (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
10531         * selftest.h (selftest::assert_str_contains): New decl.
10532         (ASSERT_STR_CONTAINS): New macro.
10534 2016-08-23  Richard Biener  <rguenther@suse.de>
10536         PR tree-optimization/77286
10537         * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
10538         the CFG here.
10539         (vect_transform_loop): Split exit edges of loop and scalar
10540         loop if required and at the appropriate time.
10542 2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10544         * explow.c (get_dynamic_stack_size): Take known alignment of stack
10545         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
10546         needed.
10547         Correct a typo in a comment.
10549 2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10551         * config/s390/s390.md ("*andc_split"): New splitter for and with
10552         complement.
10554 2016-08-23  Richard Biener  <rguenther@suse.de>
10556         PR tree-optimization/27336
10557         * tree-vrp.c (infer_value_range): Handle stmts that can throw
10558         by looking for a non-EH edge.
10559         (process_assert_insertions_for): Likewise.
10561 2016-08-23  Richard Biener  <rguenther@suse.de>
10563         PR middle-end/77305
10564         * statistics.c (statistics_counter_event): Robustify against
10565         NULL current_pass.
10567 2016-08-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
10569         * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
10570         for targets amdfam10 and barcelona.
10572 2016-08-22  Uros Bizjak  <ubizjak@gmail.com>
10574         * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
10575         (zero_extend<mode>di2): Ditto.
10576         (*zero_extend<mode>si2): Ditto.
10577         (*zero_extendqihi2): Ditto.
10579 2016-08-22  Joseph Myers  <joseph@codesourcery.com>
10581         PR middle-end/77269
10582         * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
10583         (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
10585 2016-08-22  Patrick Palka  <ppalka@gcc.gnu.org>
10587         * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
10588         identical consecutive elements.
10589         [SSA_NAME]: Print the name's def stmt on its own line.  When printing
10590         the node's def stmt, avoid printing an unwanted trailing newline by
10591         replacing the call to print_gimple_stmt() with its inlined body and
10592         adjusting it to not set pp_needs_newline and to call pp_flush()
10593         instead of pp_newline_and_flush().
10595 2016-08-22  Joseph Myers  <joseph@codesourcery.com>
10597         * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
10598         (float32_type_node, float64_type_node, float32x_type_node)
10599         (float128x_type_node): New macros.
10600         * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
10601         (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
10602         (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
10603         (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
10604         (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
10605         (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
10606         (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
10607         (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
10608         (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
10609         (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
10610         (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
10611         (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
10612         (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
10613         (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
10614         (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
10615         (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
10616         * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
10617         (copysign, fabs, huge_val, inf, nan, nans): Use it.
10618         * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
10619         and copysign.
10620         (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
10621         (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
10622         * doc/extend.texi (Other Builtins): Document these built-in
10623         functions.
10624         * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
10625         for nan and nans.
10627 2016-08-22  Gerald Pfeifer  <gerald@pfeifer.com>
10629         * doc/install.texi (Binaries): www.opencsw.org now uses https.
10631 2016-08-22  Richard Biener  <rguenther@suse.de>
10633         * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
10635 2016-08-21  Uros Bizjak  <ubizjak@gmail.com>
10637         PR target/77270
10638         * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
10639         TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
10640         non-SSE2 athlons only, otherwise prefer SSE prefetches.
10642 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
10644         * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
10645         (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
10646         (vrp_visit_switch_stmt): Likewise.
10647         (extract_range_from_stmt): Factored out from vrp_visit_stmt.
10648         (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
10649         (vrp_visit_stmt): Use extract_range_from_stmt.
10650         (vrp_visit_phi_node): Use extract_range_from_phi_node.
10652 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
10654         * Makefile.in: Add tree-vrp.h to GTFILES.
10655         * gengtype.c (open_base_files): Add tree-vrp.h.
10656         * asan.c: Add tree-vrp.h which now has the definition value_range_type.
10657         * builtins.c: Likewise.
10658         * fold-const.c: Likewise.
10659         * gimple-builder.c: Likewise.
10660         * gimple-laddress.c: Likewise.
10661         * hsa-gen.c: Likewise.
10662         * internal-fn.c: Likewise.
10663         * ssa.h: Likewise.
10664         * targhooks.c: Liewise,
10665         * tree-ssa-address.c: Likewise.
10666         * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
10667         * tree-vrp.c (struct value_range): Move to tree-vrp.h
10668         * tree-vrp.h: New file.
10670 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
10672         PR tree-optimization/61839
10673         * tree-vrp.c (two_valued_val_range_p): New.
10674         (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
10675         two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
10676         Also Convert VAR BINOP CST where VAR is two-valued to
10677         VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
10679 2016-08-19  David Malcolm  <dmalcolm@redhat.com>
10681         * diagnostic-show-locus.c
10682         (layout::annotation_line_showed_range_p): New method.
10683         (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
10684         Reimplement case fixit_hint::REPLACE to cover removals, and
10685         replacements where the range of the replacement isn't one
10686         of the ranges in the rich_location.
10687         (test_one_liner_fixit_replace): Likewise.
10688         (selftest::test_one_liner_fixit_replace_non_equal_range): New
10689         function.
10690         (selftest::test_one_liner_fixit_replace_equal_secondary_range):
10691         New function.
10692         (selftest::test_diagnostic_show_locus_one_liner): Call the new
10693         functions.
10694         * diagnostic.c (print_parseable_fixits): Remove case
10695         fixit_hint::REMOVE.
10697 2016-08-19  Uros Bizjak  <ubizjak@gmail.com>
10699         PR target/77270
10700         * config/i386/i386.c (ix86_option_override_internal): Remove
10701         PTA_PRFCHW from entries that also have PTA_3DNOW flag.
10702         Enable SSE prefetch also for TARGET_PREFETCHWT1.
10703         Do not try to enable TARGET_PRFCHW ISA flag here.
10704         * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
10705         Rewrite expander function body.
10706         (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
10708 2016-08-19  Joseph Myers  <joseph@codesourcery.com>
10710         PR c/32187
10711         * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
10712         (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
10713         (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
10714         (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
10715         (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
10716         (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
10717         (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
10718         (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
10719         (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
10720         tree_index values.
10721         (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
10722         macros.
10723         (struct floatn_type_info): New structure type.
10724         (floatn_nx_types): New variable declaration.
10725         * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
10726         (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
10727         (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
10728         * tree.c (floatn_nx_types): New variable.
10729         (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
10730         corresponding complex types.
10731         * target.def (floatn_mode): New hook.
10732         * targhooks.c: Include "real.h".
10733         (default_floatn_mode): New function.
10734         * targhooks.h (default_floatn_mode): New prototype.
10735         * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
10736         types.
10737         * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
10738         effective-target and dg-add-options keywords.
10739         (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
10740         Document new effective-target keywords.
10741         * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
10742         * doc/tm.texi: Regenerate.
10743         * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
10744         __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
10745         [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
10746         18661-3.
10747         * real.h (struct real_format): Add field ieee_bits.
10748         * real.c (ieee_single_format, mips_single_format)
10749         (motorola_single_format, spu_single_format, ieee_double_format)
10750         (mips_double_format, motorola_double_format)
10751         (ieee_extended_motorola_format, ieee_extended_intel_96_format)
10752         (ieee_extended_intel_128_format)
10753         (ieee_extended_intel_96_round_53_format, ibm_extended_format)
10754         (mips_extended_format, ieee_quad_format, mips_quad_format)
10755         (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
10756         (decimal_double_format, decimal_quad_format, ieee_half_format)
10757         (arm_half_format, real_internal_format: Initialize ieee_bits
10758         field.
10759         * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
10760         float128_type_node.  Set float80_type_node to float64x_type_node
10761         if appropriate and long_double_type_node not appropriate.
10762         * config/ia64/ia64.c (ia64_init_builtins): Likewise.
10763         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
10764         Initialize ieee_bits field.
10765         * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
10766         (rs6000_init_builtins): Set ieee128_float_type_node to
10767         float128_type_node.
10768         (rs6000_floatn_mode): New function.
10770 2016-08-19  Jakub Jelinek  <jakub@redhat.com>
10772         * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
10773         _rdseed64_step): Uglify argument names and/or local variable names
10774         in inline functions.
10775         * config/i386/rtmintrin.h (_xabort): Likewise.
10776         * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
10777         _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
10778         _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
10779         _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
10780         _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
10781         _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
10782         _mm_maskz_ternarylogic_epi32): Likewise.
10783         * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
10784         __lwpins32, __lwpins64): Likewise.
10785         * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
10786         _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
10787         _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
10788         _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
10789         _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
10790         _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
10791         _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
10792         _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
10793         _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
10794         _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
10795         _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
10796         _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
10797         _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
10798         _mm256_mask_i64gather_epi32): Likewise.
10799         * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
10800         * config/i386/ia32intrin.h (__writeeflags): Likewise.
10801         * config/i386/pkuintrin.h (_wrpkru): Likewise.
10802         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
10803         _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
10804         _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
10805         _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
10806         _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
10807         _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
10808         _mm512_mask_prefetch_i64scatter_ps): Likewise.
10809         * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
10810         * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
10811         _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
10812         _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
10813         _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
10814         _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
10815         _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
10816         _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
10818         * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
10819         returning void.
10820         (_fxrstor, _fxsave64, _fxrstor64): Likewise.
10821         * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
10822         Likewise.
10823         * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
10824         * config/i386/pkuintrin.h (_wrpkru): Likewise.  Add space after
10825         function name.
10826         (_rdpkru_u32): Add space after function name.
10828         * config/i386/t-i386 (i386-c.o): Don't depend on
10829         i386-builtin-types.inc.
10830         (i386.o): Depend on i386-builtin-types.inc.
10832 2016-08-19  Matthew Wahab  <matthew.wahab@arm.com>
10834         PR target/77281
10835         * config/arm/arm.c (neon_valid_immediate): Delete declaration.
10836         Use const_vec_duplicate to check for duplicated elements.
10838 2016-08-19  Richard Biener  <rguenther@suse.de>
10840         PR tree-optimization/77290
10841         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10842         Fix flag_tree_parallelize_loops check.
10844 2016-08-19  Richard Biener  <rguenther@suse.de>
10846         * match.pd (x | 0 -> x): Add.
10848 2016-08-19  Richard Biener  <rguenther@suse.de>
10850         PR tree-optimization/77286
10851         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
10852         Deal with virtual PHIs being out-of-order.
10854 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
10856         * doc/invoke.texi (fverbose-asm): Note that source code lines
10857         are emitted, and provide an example.
10858         * final.c (asm_show_source): New function.
10859         (final_scan_insn): Call asm_show_source.
10861 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
10863         * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
10864         param with diagnostic_kind.
10865         (class colorizer): Similarly replace field m_diagnostic with
10866         m_diagnostic_kind.
10867         (colorizer::colorizer): Replace diagnostic
10868         param with diagnostic_kind.
10869         (colorizer::begin_state): Update for above field change.
10870         (layout::layout): Replace diagnostic param with rich_location *
10871         and diagnostic_kind.
10872         (diagnostic_show_locus): Replace diagnostic param with richloc
10873         and diagnostic_kind.
10874         (class selftest::test_diagnostic_context): New class.
10875         (selftest::test_diagnostic_show_locus_unknown_location): New
10876         function.
10877         (selftest::test_one_liner_simple_caret): New function.
10878         (selftest::test_one_liner_caret_and_range): New function.
10879         (selftest::test_one_liner_multiple_carets_and_ranges): New
10880         function.
10881         (selftest::test_one_liner_fixit_remove): New function.
10882         (selftest::test_one_liner_fixit_replace): New function.
10883         (selftest::test_diagnostic_show_locus_one_liner): New function.
10884         (selftest::diagnostic_show_locus_c_tests): Call the new test
10885         functions.
10886         * diagnostic.c (diagnostic_initialize): Initialize
10887         colorize_source_p, show_ruler_p and parseable_fixits_p.
10888         (default_diagnostic_finalizer): Update for change to
10889         diagnostic_show_locus.
10890         (diagnostic_append_note): Likewise.
10891         * diagnostic.h (diagnostic_show_locus): Replace
10892         const diagnostic_info * param with location * and diagnostic_t.
10894 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
10896         * input.c (saved_line_table): New global.
10897         (class selftest::temp_line_table): Rename to line_table_test and
10898         move declaration to selftest.h, and drop field m_old_line_table.
10899         (selftest::temp_line_table::temp_line_table): Rename ctor to...
10900         (selftest::line_table_test::line_table_test): ...this.  Add a
10901         default ctor.  Store current value of line_table within
10902         saved_line_table.
10903         (selftest::temp_line_table::~temp_line_table): Rename dtor to...
10904         (selftest::line_table_test::~line_table_test): ...this, and
10905         restore line_table from the saved_line_table, rather than
10906         m_old_line_table.
10907         (selftest::test_accessing_ordinary_linemaps): Update for above
10908         renaming.
10909         (selftest::test_lexer): Likewise.
10910         (struct selftest::lexer_test): Likewise.
10911         (selftest::lexer_test::lexer_test): Likewise.
10912         (selftest::input_c_tests): Move the looping over test cases from
10913         here into...
10914         (selftest::for_each_line_table_case): New function.
10915         * input.h (saved_line_table): New decl.
10916         * selftest.h (struct selftest::line_table_case): New forward decl.
10917         (class selftest::line_table_test): New class, moved here from
10918         selftest::temp_line_table in input.c, and renamed.
10919         (selftest::for_each_line_table_case): New decl.
10921 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
10923         PR target/72839
10924         * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
10926 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
10928         PR middle-end/70895
10929         * gimplify.c (omp_add_variable): Adjust/add variable mapping on
10930         enclosing parallel construct for reduction variables on OpenACC loop
10931         directives.
10933 2016-08-18  Pierre-Marie de Rodat  <derodat@adacore.com>
10935         * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
10936         (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
10937         -gdwarf-3.
10938         (function_to_dwarf_procedure): Update comment.
10940 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
10942         * input.c (diagnostics_file_cache_forcibly_evict_file): New
10943         function.
10944         * input.h (diagnostics_file_cache_forcibly_evict_file): New
10945         declaration.
10946         * selftest.c (selftest::temp_source_file::~temp_source_file):
10947         Evict m_filename from the diagnostic file cache.
10949 2016-08-18  Richard Biener  <rguenther@suse.de>
10951         * tree-pass.h (make_pass_materialize_all_clones): Declare.
10952         * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
10953         make_pass_materialize_all_clones): New simple IPA pass encapsulating
10954         clone materialization.
10955         * passes.def (all_late_ipa_passes): Start with
10956         pass_materialize_all_clones.
10957         * cgraphunit.c (symbol_table::compile): Remove call to
10958         materialize_all_clones.
10959         * tree-into-ssa.c: Include statistics.h.
10960         (update_ssa): Count number of times we do incremental/rewrite
10961         SSA update.
10963 2016-08-18  Richard Biener  <rguenther@suse.de>
10965         PR tree-optimization/77282
10966         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10967         When doing auto-parallelizing also prevent use of PHIs that
10968         carry dependences across loop backedges.
10970 2016-08-18  Tamar Christina  <tamar.christina@arm.com>
10971             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10973         * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
10975 2016-08-18  Richard Biener  <rguenther@suse.de>
10977         * ssa-iterators.h (ssa_vuse_operand): New inline.
10978         * tree-if-conv.c (ifc_temp_var): Update virtual operand.
10979         (predicate_all_scalar_phis): Use remove_phi_node to remove
10980         phi nodes predicated.  Delay removing virtual PHIs.
10981         (predicate_mem_writes): Update virtual operands.
10982         (combine_blocks): Likewise.  Propagate out remaining virtual PHIs.
10983         (tree_if_conversion): Do not rewrite virtual SSA form.
10984         * tree-phinodes.c (release_phi_node): Make static.
10985         * tree-phinodes.h (release_phi_node): Remove.
10987 2016-08-18  Jakub Jelinek  <jakub@redhat.com>
10989         * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
10990         codes that appear in bdesc_* arrays, instead include i386-builtin.def
10991         twice to define those.
10992         (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
10993         bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
10994         bdesc_multi_arg): Define by including i386-builtin.def the third time.
10995         * config/i386/i386-builtin.def: New file.
10997 2016-08-17  David Malcolm  <dmalcolm@redhat.com>
10999         * input.c (get_source_range_for_char): Rename to...
11000         (selftest::get_source_range_for_char): ...this, and move within
11001         the #if CHECKING_P guard.
11002         (get_num_source_ranges_for_substring): Rename to...
11003         (selftest::get_num_source_ranges_for_substring): ...this, move
11004         within the #if CHECKING_P guard, and make static.
11005         (selftest::assert_num_substring_ranges): Initialize
11006         actual_num_ranges.
11008 2016-08-18  Alan Modra  <amodra@gmail.com>
11010         PR rtl-optimization/72771
11011         * reload.c (find_reloads): Don't assume that a subreg mem is OK
11012         when find_reloads_toplev returns address_reloaded==-1.
11013         (alternative_allows_const_pool_ref): Update comment.
11015 2015-08-17  Alan Hayward  <alan.hayward@arm.com>
11017         PR tree-optimization/71752
11018         * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
11019         * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
11021 2016-08-17  Jakub Jelinek  <jakub@redhat.com>
11023         * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
11024         instead of testing ECF_NORETURN bit in gimple_call_flags.
11025         * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
11026         * predict.c (tree_bb_level_predictions): Likewise.
11027         * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
11029         PR middle-end/77259
11030         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
11031         turning a call into __builtin_unreachable-like noreturn call, adjust
11032         gimple_call_set_fntype.
11033         * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
11034         gimple_call_fntype has void return type.
11036 2016-08-17  Chung-Lin Tang  <cltang@codesourcery.com>
11038         * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
11039         maybe_lookup_decl, to handle nested acc loop directives.
11041 2016-08-17  Richard Biener  <rguenther@suse.de>
11043         PR tree-optimization/76490
11044         * tree-vrp.c (update_value_range): Preserve overflow infinities
11045         when intersecting with ranges from get_range_info.
11046         (operand_less_p): Handle overflow infinities correctly.
11047         (value_range_constant_singleton): Use vrp_operand_equal_p
11048         to handle overflow max/min correctly.
11049         (vrp_valueize): Likewise.
11050         (union_ranges): Likewise.
11051         (intersect_ranges): Likewise.
11052         (vrp_visit_phi_node): Improve iteration limitation to only
11053         apply when we'll possibly re-visit the PHI via a changed argument
11054         on the backedge.
11056 2016-08-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11058         * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
11059         (MULTILIB_REQUIRED): This by specifying multilib needing to be built
11060         rather than those that should not be built.
11062 2016-08-17  Stanislaw Halik  <sthalik@misaki.pl>
11064         PR target/66488
11065         * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
11067 2016-08-17  Richard Biener  <rguenther@suse.de>
11069         * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
11070         (verify_vssa): New function verifying virtual SSA form.
11071         (verify_ssa): Call it.
11072         * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
11073         Do not apply loop-closed SSA handling to virtuals.
11074         * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
11075         * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
11076         when rewriting their symbol.
11077         (prepare_def_site_for): Likewise.
11078         * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
11079         operands of moved stmts.
11081 2016-08-17  Richard Biener  <rguenther@suse.de>
11083         PR tree-optimization/23855
11084         * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
11085         (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
11086         find guards to hoist.  Do not update SSA form but rewrite virtuals
11087         into loop closed SSA.
11088         (find_loop_guard): Adjust to skip already hoisted guards.  Do
11089         not mark virtuals for renaming or update SSA form.
11091 2016-08-17  Martin Liska  <mliska@suse.cz>
11093         * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
11094         a LONG_LONG_TYPE_SIZE comparison.
11095         * gcov-io.h: Remove macro definitions.
11096         * tree-profile.c (gimple_gen_edge_profiler): Replace usage
11097         of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
11098         comparison.
11100 2016-08-16  Jakub Jelinek  <jakub@redhat.com>
11102         * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
11103         that builtins not mentioned in bdesc_* arrays come first, then
11104         the ones mentioned in bdesc_* arrays in the order they appear in
11105         the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
11106         IX86_BUILTIN__BDESC_*_LAST enumerator.
11107         (bdesc_mpx): Fix up a comment typo.
11108         (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
11109         __builtin_ia32_vpcomneu[bwdq] builtins.
11110         (BDESC_VERIFY, BDESC_VERIFYS): Define.
11111         (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
11112         enum ix86_builtins ordering.
11113         (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
11114         for direct bdesc_* array member access instead of searching all the
11115         arrays until an fcode match is found.
11117 2016-08-16  Uros Bizjak  <ubizjak@gmail.com>
11119         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
11120         pattern as define_insn_and_split.  Split insn before reload to
11121         ashl<mode>3_1.
11122         (*<shift_insn><mode>3_mask): Ditto.  Split insn before reload to
11123         <shift_insn><mode>3_1.
11124         (*<rotate_insn><mode>3_mask): Ditto.  Split insn before reload to
11125         <rotate_insn><mode>3_1.
11127 2016-08-16  David Malcolm  <dmalcolm@redhat.com>
11129         PR c/72857
11130         * input.c (get_source_range_for_substring): Rename to...
11131         (get_source_location_for_substring): ...this, adding param
11132         "caret_idx", and converting output param from source_range * to
11133         location_t *.
11134         (get_source_range_for_char): New function.
11135         (get_num_source_ranges_for_substring): Update comment to reflect
11136         above renaming.
11137         (assert_char_at_range): Update to use get_source_range_for_char
11138         rather than get_source_range_for_substring.
11139         (test_lexer_string_locations_concatenation_2): Likewise.
11140         * substring-locations.h (get_source_range_for_substring): Rename
11141         to...
11142         (get_source_location_for_substring): ...this, and adding param
11143         "caret_idx", and converting output param from source_range * to
11144         location_t *.
11146 2016-08-16  David Malcolm  <dmalcolm@redhat.com>
11148         * input.c (class selftest::temp_source_file): Move to
11149         selftest.h.
11150         (selftest::temp_source_file::temp_source_file): Move to
11151         selftest.c.
11152         (selftest::temp_source_file::~temp_source_file): Likewise.
11153         * selftest.c (selftest::temp_source_file::temp_source_file): Move
11154         here from input.c.
11155         (selftest::temp_source_file::~temp_source_file): Likewise.
11156         * selftest.h (class selftest::temp_source_file): Move here from
11157         input.c
11159 2016-08-16  Jakub Jelinek  <jakub@redhat.com>
11161         PR target/71910
11162         * tree-cfg.c (execute_fixup_cfg): Add node variable, use it.  Before
11163         inlining, add cgraph edge for the added __builtin_unreachable call.
11165         PR middle-end/67485
11166         * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
11167         only cast it to SHWI for the final comparison.
11169 2016-08-16  Martin Liska  <mliska@suse.cz>
11171         PR gcov-profile/36412
11172         * doc/gcov.texi: Document --hash-filenames(-x).
11173         * gcov.c (print_usage): Add the option.
11174         (process_args): Process the option, sort options alphabetically.
11175         (md5sum_to_hex): New function.
11176         (make_gcov_file_name): Do the md5sum and append it to a
11177         filename.
11179 2016-08-16  Bin Cheng  <bin.cheng@arm.com>
11181         PR tree-optimization/69848
11182         * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
11183         and swtich operands to avoid additional NOT instruction.
11184         (vcond<v_cmp_mixed><mode>): Ditto.
11185         (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
11187 2016-08-16  Eric Botcazou  <ebotcazou@adacore.com>
11189         * doc/install.texi (*-*-solaris2*): Adjust latest change.
11191 2016-08-16  Richard Biener  <rguenther@suse.de>
11193         PR tree-optimization/76783
11194         * tree-ssa-propagate.c (ssa_prop_init): Use RPO order.  Clear
11195         BB visited flags at start.
11197 2016-08-16  Bin Cheng  <bin.cheng@arm.com>
11199         PR tree-optimization/72817
11200         PR tree-optimization/73450
11201         * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
11202         multiple_of_p for adjusted IV.base.
11204 2016-08-15  Uros Bizjak  <ubizjak@gmail.com>
11206         PR target/72867
11207         * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
11208         Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
11209         for !flag_finite_math_only or flag_signed_zeros.
11210         (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
11211         *<code><mode>3_finite<mask_name><round_saeonly_name>.  Do not
11212         depend on flag_finite_math_only.
11213         (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
11214         New insn pattern.
11215         (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
11216         (*ieee_smin<mode>3): Ditto.
11217         (*ieee_smax<mode>3): Ditto.
11218         * config/i386/mmx.md (mmx_<code>v2sf3): Emit
11219         mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
11220         flag_signed_zeros.
11221         (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite.  Do not
11222         depend on flag_finite_math_only.
11223         (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
11224         (*mmx_<code>v2sf3): Remove.
11225         * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
11226         * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
11227         flag_signed_zeros instead of !flag_unsafe_math_optimizations.
11229 2016-08-15  Segher Boessenkool  <segher@kernel.crashing.org>
11231         PR rtl-optimization/73650
11232         * lra-constraints.c (simple_move_p): If the insn is multiple_sets
11233         it is not a simple move.
11235 2016-08-15  Martin Liska  <mliska@suse.cz>
11237         PR driver/72765
11238         * gcc.c (do_spec_1): Call save_string with the right size.
11239         (save_string): Do an assert about string we copy.
11241 2016-08-15  Richard Biener  <rguenther@suse.de>
11243         * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
11244         * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
11245         TV_MACH_DEP.
11246         (pass_data_stv): Likewise.
11248 2016-08-15  Richard Biener  <rguenther@suse.de>
11250         PR tree-optimization/73434
11251         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
11252         TBAA info on the base when forwarding a non-invariant address.
11254 2016-08-15  Jakub Jelinek  <jakub@redhat.com>
11256         * dwarf2out.c (struct checksum_attributes): Add
11257         at_string_length_bit_size and at_string_length_byte_size fields.
11258         (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
11259         and DW_AT_string_length_byte_size.
11260         (die_checksum_ordered): Handle at_string_length_bit_size and
11261         at_string_length_byte_size.
11262         (gen_array_type_die): For dwarf_version >= 5 emit
11263         DW_AT_string_length_byte_size instead of DW_AT_byte_size.
11264         (adjust_string_types): For dwarf_version >= 5 remove
11265         DW_AT_string_length_byte_size instead of DW_AT_byte_size.
11266         (resolve_addr): Likewise.
11268         PR debug/71906
11269         * dwarf2out.c (string_types): New variable.
11270         (gen_array_type_die): Change early_dwarf handling of
11271         DW_AT_string_length, create DW_OP_call4 referencing the
11272         length var temporarily.  Handle parameters that are pointers
11273         to string length.
11274         (adjust_string_types): New function.
11275         (gen_subprogram_die): Temporarily set string_types to local var,
11276         call adjust_string_types if needed.
11277         (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
11278         New functions.
11279         (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
11281 2016-08-15  Eric Botcazou  <ebotcazou@adacore.com>
11283         * doc/install.texi (*-*-solaris2*): Fix version number and document
11284         requirement on GNU make for building libjava with the Solaris linker.
11286 2016-08-15  Martin Liska  <mliska@suse.cz>
11287             Jakub Jelinek  <jakub@redhat.com>
11289         PR tree-optimization/72824
11290         * tree-loop-distribution.c (const_with_all_bytes_same)
11291         <case VECTOR_CST>: Fix a typo.
11293 2016-08-14  Uros Bizjak  <ubizjak@gmail.com>
11295         PR target/76342
11296         * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
11297         Renamed from _mm512_undefined_si512.
11298         (_mm_undefined_si512): New definition.
11300 2016-08-13  Richard Biener  <rguenther@suse.de>
11302         * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
11303         into PHIs and update the lattice for its def.
11305 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
11307         PR c/71512
11308         * ubsan.c (instrument_si_overflow): Pass true instead of false
11309         to gsi_replace.
11310         (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
11311         of bbs.  Return TODO_cleanup_cfg if any returned true.
11313 2016-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
11315         * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
11316         ISA 3.0 MTVSRDD instruction.
11317         (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
11318         vecperm.
11320 2016-08-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11322         PR tree-optimization/71083
11323         * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
11324         bitfield access when possible.
11326 2016-08-12  Patrick Palka  <ppalka@gcc.gnu.org>
11328         PR middle-end/71654
11329         * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
11330         sign-changing cast from a shorter unsigned type to a wider
11331         signed type.
11333 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
11335         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
11336         vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
11337         vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
11339 2016-08-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11341         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
11342         Correct costs for vec_construct.
11344 2016-08-12  Bin Cheng  <bin.cheng@arm.com>
11346         PR tree-optimization/69848
11347         * tree-vectorizer.h (enum vect_def_type): New condition reduction
11348         type CONST_COND_REDUCTION.
11349         * tree-vect-loop.c (vectorizable_reduction): Support new condition
11350         reudction type CONST_COND_REDUCTION.
11352 2016-08-12  Richard Biener  <rguenther@suse.de>
11354         PR tree-optimization/57326
11355         * tree-ssa-pre.c (fully_constant_expression): Handle simplification
11356         returning an SSA name.
11357         (phi_translate_1): When fully_constant_expression returns a NAME
11358         make sure we have a leader for it.
11360 2016-08-12  Martin Liska  <mliska@suse.cz>
11361             Adam Fineman  <afineman@afineman.com>
11363         * gcov.c (process_file): Create .gcov file when .gcda
11364         file is missing.
11366 2016-08-12  Marek Polacek  <polacek@redhat.com>
11368         PR c/7652
11369         * alias.c (find_base_value): Adjust fall through comment.
11370         * cfgexpand.c (expand_debug_expr): Likewise.
11371         * combine.c (find_split_point): Likewise.
11372         (expand_compound_operation): Likewise.  Add FALLTHRU.
11373         (make_compound_operation): Adjust fall through comment.
11374         (canon_reg_for_combine): Add FALLTHRU.
11375         (force_to_mode): Adjust fall through comment.
11376         (simplify_shift_const_1): Likewise.
11377         (simplify_comparison): Likewise.
11378         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
11379         FALLTHRU.
11380         * config/aarch64/predicates.md: Likewise.
11381         * config/i386/i386.c (function_arg_advance_32): Likewise.
11382         (ix86_gimplify_va_arg): Likewise.
11383         (print_reg): Likewise.
11384         (ix86_print_operand): Likewise.
11385         (ix86_build_const_vector): Likewise.
11386         (ix86_expand_branch): Likewise.
11387         (ix86_sched_init_global): Adjust fall through comment.
11388         (ix86_expand_args_builtin): Add FALLTHRU.
11389         (ix86_expand_builtin): Likewise.
11390         (ix86_expand_vector_init_one_var): Likewise.
11391         * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
11392         (rs6000_adjust_cost): Likewise.
11393         (insn_must_be_first_in_group): Likewise.
11394         * config/rs6000/rs6000.md: Likewise.  Adjust fall through comment.
11395         * dbxout.c (dbxout_symbol): Adjust fall through comment.
11396         * df-scan.c (df_uses_record): Likewise.
11397         * dojump.c (do_jump): Add FALLTHRU.
11398         * dwarf2out.c (mem_loc_descriptor): Likewise.  Adjust fall through
11399         comment.
11400         (resolve_args_picking_1): Adjust fall through comment.
11401         (loc_list_from_tree_1): Likewise.
11402         * expmed.c (make_tree): Likewise.
11403         * expr.c (expand_expr_real_2): Add FALLTHRU.
11404         (expand_expr_real_1): Likewise.  Adjust fall through comment.
11405         * fold-const.c (const_binop): Adjust fall through comment.
11406         (fold_truth_not_expr): Likewise.
11407         (fold_cond_expr_with_comparison): Add FALLTHRU.
11408         (fold_binary_loc): Likewise.
11409         (contains_label_1): Adjust fall through comment.
11410         (multiple_of_p): Likewise.
11411         * gcov-tool.c (process_args): Add FALLTHRU.
11412         * genattrtab.c (check_attr_test): Likewise.
11413         (write_test_expr): Likewise.
11414         * genconfig.c (walk_insn_part): Likewise.
11415         * genpreds.c (validate_exp): Adjust fall through comment.
11416         (needs_variable): Likewise.
11417         * gensupport.c (get_alternatives_number): Add FALLTHRU.
11418         (subst_dup): Likewise.
11419         * gimple-pretty-print.c (dump_gimple_assign): Likewise.
11420         * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
11421         (gimplify_scan_omp_clauses): Add FALLTHRU.
11422         (goa_stabilize_expr): Likewise.
11423         * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
11424         through comment.
11425         * hsa-gen.c (get_address_from_value): Likewise.
11426         * ipa-icf.c (sem_function::hash_stmt): Likewise.
11427         * ira.c (ira_setup_alts): Add FALLTHRU.
11428         * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
11429         comment.
11430         * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
11431         * opts.c (common_handle_option): Likewise.
11432         * read-rtl.c (read_rtx_code): Likewise.
11433         * real.c (round_for_format): Likewise.
11434         * recog.c (asm_operand_ok): Likewise.
11435         * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
11436         * reload1.c (set_label_offsets): Likewise.
11437         (eliminate_regs_1): Likewise.
11438         (reload_reg_reaches_end_p): Likewise.
11439         * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
11440         (rtx_cost): Likewise.
11441         * sched-rgn.c (is_exception_free): Likewise.
11442         * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
11443         * stor-layout.c (int_mode_for_mode): Likewise.
11444         * toplev.c (print_to_asm_out_file): Likewise.
11445         (print_to_stderr): Likewise.
11446         * tree-cfg.c (gimple_verify_flow_info): Likewise.
11447         * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
11448         (chrec_fold_multiply): Likewise.
11449         (evolution_function_is_invariant_rec_p): Likewise.
11450         (for_each_scev_op): Likewise.
11451         * tree-data-ref.c (siv_subscript_p): Likewise.
11452         (get_references_in_stmt): Likewise.
11453         * tree.c (find_placeholder_in_expr): Adjust fall through comment.
11454         (substitute_in_expr): Likewise.
11455         (type_cache_hasher::equal): Likewise.
11456         (walk_type_fields): Likewise.
11457         * var-tracking.c (adjust_mems): Add FALLTHRU.
11458         (set_dv_changed): Adjust fall through comment.
11459         * varasm.c (default_function_section): Add FALLTHRU.
11461 2016-08-12  Marek Polacek  <polacek@redhat.com>
11463         PR c/7652
11464         * tree-complex.c (expand_complex_division): Add missing break.
11466 2016-08-12  Richard Biener  <rguenther@suse.de>
11468         * passes.c (execute_todo): Do not push/pop TV_TODO.
11469         (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
11470         (execute_one_pass): Likewise.
11471         * common.opt (ftime-report-details): New switch.
11472         * doc/invoke.texi (ftime-report-details): Document.
11473         * timevar.h (timer::print_row): Adjust signature.
11474         (timer::all_zero): New static helper.
11475         (timer::child_map_t): New typedef.
11476         (timer::time_var_def): Add children field.
11477         * timevar.c (timer::named_items::print): Adjust.
11478         (timer::~timer): Free timevar recorded children.
11479         (timer::pop_internal): When -ftime-report-details record
11480         time spent in sub-timevars.
11481         (timer::print_row): Adjust.
11482         (timer::print): Print sub-timevar stats, use all_zero.
11483         * timevar.def (TV_TODO): Remove.
11485 2016-08-12  Richard Biener  <rguenther@suse.de>
11487         PR tree-optimization/72851
11488         * tree-ssa-propagate.c: Include cfganal.h.  Rewrite block and stmt
11489         worklists to use bitmaps indexed in execution order.
11490         (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
11491         bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
11492         (cfg_blocks): Make a bitmap.
11493         (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
11494         New globals.
11495         (cfg_blocks_empty_p): Adjust.
11496         (cfg_blocks_add): Likewise.
11497         (cfg_blocks_get): Likewise.
11498         (add_ssa_edge): Likewise.
11499         (add_control_edge): Likewise.
11500         (simulate_stmt): Likewise.
11501         (process_ssa_edge_worklist): Likewise.
11502         (simulate_block): Likewise.
11503         (ssa_prop_init): Compute PRE order and stmt UIDs.
11504         (ssa_prop_fini): Adjust.
11505         (ssa_propagate): Adjust.
11507 2016-08-12  Richard Biener  <rguenther@suse.de>
11509         * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
11510         the currently executable edges have fixed ranges.  Always
11511         go through update_value_range.
11513 2016-08-12  Alexandre Oliva  <aoliva@redhat.com>
11515         PR debug/63240
11516         * langhooks-def.h
11517         (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
11518         (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
11519         (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
11520         (LANG_HOOKS_DECLS): Add it.
11521         * langhooks.h (struct lang_hooks_for_decls): Add
11522         function_decl_defaulted.  Const_tree-ify
11523         function_decl_explicit_p and function_decl_deleted_p.
11524         * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
11525         attribute.  Add DW_AT_deleted instead of DW_AT_GNU_deleted,
11526         also at strict DWARF v5.
11528         PR debug/55641
11529         * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
11530         TYPE_QUAL_CONST in reference-typed decls.
11532         PR debug/49366
11533         * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
11534         in DW_OP_pieces, just enough to handle pointers to member
11535         functions.
11536         (gen_remaining_tmpl_value_param_die_attribute): Use a location
11537         expression on DWARFv5 if a constant value doesn't work.
11539 2016-08-11  David Malcolm  <dmalcolm@redhat.com>
11541         * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
11542         * selftest.c (selftest::test_assertions): New function.
11543         (selftest::selftest_c_tests): New function.
11544         * selftest.h (selftest::selftest_c_tests): New declaration.
11546 2016-08-11  Richard Biener  <rguenther@suse.de>
11547             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11549         PR rtl-optimization/72855
11550         * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
11552 2016-08-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11554         PR target/72863
11555         * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
11556         (vsx_store_<mode>): Likewise.
11558 2015-08-11  H.J. Lu  <hongjiu.lu@intel.com>
11560         * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
11561         TImode CONST_WIDE_INT store.
11562         (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
11564 2015-08-11  H.J. Lu  <hongjiu.lu@intel.com>
11566         * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
11567         mode if unaligned SSE load and store are optimal.
11569 2016-08-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11571         PR tree-optimization/71083
11572         * tree-predcom.c (ref_at_iteration): Correctly align the
11573         reference type.
11575 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11577         * config/s390/s390-builtin-types.def: Add INT128 types.
11578         * config/s390/s390-builtins.def: Add INT128 variants for the add
11579         sub low-level builtins dealing with TImode.
11580         * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
11581         via subreg when expanding a builtin.
11582         * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
11583         UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
11584         Fix comment.
11585         * config/s390/vecintrin.h: Adjust builtin names accordingly.
11586         * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
11587         ("vec_addc<mode>", "vec_addc_u128"): Merge to
11588         "vacc<bhfgq>_<mode>".
11589         ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
11590         ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
11591         ("vec_subc<mode>", "vec_subc_u128"): Merge to
11592         "vscbi<bhfgq>_<mode>".
11593         ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
11594         ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
11596 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11598         * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
11600 2016-08-11  Bin Cheng  <bin.cheng@arm.com>
11602         * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
11603         unused declaration.
11604         (vcond<v_cmp_mixed><mode>): Ditto.
11605         (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
11607 2016-08-11  Bin Cheng  <bin.cheng@arm.com>
11609         * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
11610         variable explicitly, also assert on it before use.
11612 2016-08-11  Richard Biener  <rguenther@suse.de>
11614         PR tree-optimization/72772
11615         * cfgloopmanip.c (create_preheader): Use split_edge if there
11616         is a single loop entry, avoiding degenerate PHIs.
11618 2016-08-11  Richard Biener  <rguenther@suse.de>
11620         * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
11621         unconditional TODO_cleanup_cfg.
11622         (pass_thread_jumps::execute): Initialize loops, perform a CFG
11623         cleanup only if we threaded a jump.
11625 2016-08-11  Alan Modra  <amodra@gmail.com>
11627         PR target/71680
11628         * lra-constraints.c (simplify_operand_subreg): Allow subreg
11629         mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
11630         slow.  Emit two reloads for slow mem case, first loading in
11631         fast innermode, then converting to required mode.
11633 2016-08-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
11635         * config/rs6000/altivec.h (vec_extract_exp): New macro.
11636         (vec_extract_sig): New macro.
11637         (vec_insert_exp): New macro.
11638         (vec_test_data_class): New macro.
11639         (scalar_extract_exp): New macro.
11640         (scalar_extract_sig): New macro.
11641         (scalar_insert_exp): New macro.
11642         (scalar_test_data_class): New macro.
11643         (scalar_test_neg): New macro.
11644         (scalar_cmp_exp_gt): New macro.
11645         (scalar_cmp_exp_lt): New macro.
11646         (scalar_cmp_exp_eq): New macro.
11647         (scalar_cmp_exp_unordered): New macro.
11648         * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
11649         to enforce constraint that operand is a 7-bit unsigned literal.
11650         * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
11651         for power9 built-ins.
11652         (BU_P9V_VSX_2): Likewise.
11653         (BU_P9V_64BIT_VSX_2): Likewise.
11654         (VSEEDP): Add scalar extract exponent support.
11655         (VSEESP): Add scalar extract signature support.
11656         (VSTDCNDP): Add scalar test negative support.
11657         (VSTDCNSP): Likewise.
11658         (VSIEDP): Add scalar insert exponent support.
11659         (VSCEDPGT): Add scalar compare exponent greater than support.
11660         (VSCEDPLT): Add scalar compare exponent less than support.
11661         (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
11662         (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
11663         (VSTDCDP): Add scalar test data class support.
11664         (VSTDCSP): Likewise.
11665         (VSEEDP): Add overload support for scalar extract exponent
11666         operation.
11667         (VSESDP): Add overload support for scalar extract signature
11668         operation.
11669         (VSTDCN): Add overload support for scalar test negative
11670         operation.
11671         (VSTDCNDP): Add overload support for scalar test negative
11672         operation.
11673         (VSTDCNSP): Add overload support for scalar test negative
11674         operation.
11675         (VSIEDP): Add overload support for scalar insert exponent
11676         operation.
11677         (VSTDC): Add overload support for scalar test data class
11678         operation.
11679         (VSTDCDP): Add overload support for scalar test data class
11680         operation.
11681         (VSTDCSP): Add overload support for scalar test data class
11682         opreation.
11683         (VSCEDPGT): Add overload support for scalar compare exponent
11684         greater than operation.
11685         (VSCEDPLT): Add overload support for scalar compare exponent
11686         less than operation.
11687         (VSCEDPEQ): Add overload support for scalar compare exponent
11688         test-for-equality operation.
11689         (VSCEDPUO): Add overload support for scalar compare exponent
11690         test-for-unordered operation.
11691         (VEEDP): Add vector extract exponent support.
11692         (VEESP): Likewise.
11693         (VESDP): Add vector extract significand support.
11694         (VESSP): Likewise.
11695         (VIEDP): Add vector insert exponent support.
11696         (VIESP): Likewise.
11697         (VTDCDP): Add vector test data class support.
11698         (VTDCSP): Likewise.
11699         (VES): Add overload support for vector extract significand operation.
11700         (VESDP): Likewise.
11701         (VESSP): Likewise
11702         (VEE): Add overload support for vector extract exponent operation.
11703         (VEEDP): Likewise.
11704         (VEESP): Likewise.
11705         (VTDC): Add overload support for vector test data class operation.
11706         (VTDCDP): Likewise.
11707         (VTDCSP): Likewise.
11708         (VIE): Add overload support for vector insert exponent operation.
11709         (VIEDP): Likewise.
11710         (VIESP): Likewise.
11711         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11712         overloaded binary floating point functions.
11713         (altivec_resolve_overloaded_builtin): Improve error messages to
11714         distinguish between functions not supported in the current
11715         compiler configuration and functions that were invoked with an
11716         invalid parameter combination, and include the built-in function
11717         name in both error messages.
11718         * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
11719         New prototype.
11720         * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
11721         function.
11722         (rs6000_expand_binop_builtin): Add check to enforce that argument
11723         2 of the test data class operations is a 7-bit unsigned literal.
11724         (rs6000_invalid_builtin): Add code to issue an error message if a
11725         built-in function that requires the power9_vector and -m32
11726         command-line options is compiled without these options.
11727         * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
11728         (UNSPEC_VSX_SXSIGDP): New value.
11729         (UNSPEC_VSX_SXSIGPDP): New value.
11730         (UNSPEC_VSX_SIEXPDP): New value.
11731         (UNSPEC_VSX_SCMPEXPDP): New value.
11732         (UNSPEC_VSX_STSTDC): New value.
11733         (UNSPEC_VSX_VXEXP): New value.
11734         (UNSPEC_VSX_VXSIG): New value.
11735         (UNSPEC_VSX_VIEXP): New value.
11736         (UNSPEC_VSX_VTSTDC): New value.
11737         (xsxexpdp): New insn for scalar extract exponent.
11738         (xsxsigdp): New insn for scalar extract significand.
11739         (xsiexpdp): New insn for scalar insert exponent.
11740         (xscmpexpdp_<code>): New expansion for scalar compare exponents.
11741         (*xscmpexpdp): New insn for scalar compare exponents.
11742         (xststdc<Fvsx): New expansion for both single- and
11743         double-precision scalar test data class operations.
11744         (xststdcneg<Fvsx>): New expansion for both single- and
11745         double-precision scalar test for negative value operations.
11746         (*xststdc<Fvsx>): New insn for scalar test data class
11747         operation.
11748         (xvxexp<VSs>): New insn for single- and double-precision
11749         vector extract exponent operation.
11750         (xvxsig<VSs>): New insn for single- and double-precision
11751         vector extract significand operation.
11752         (xviexp<VSs>): New insn for single- and double-precision
11753         vector insert exponent operation.
11754         (xvtstdc<VSs>): New insn for single- and double-precision
11755         vector test data class operation.
11756         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
11757         built-in functions to represent the Power9 binary floating-point
11758         support instructions.
11760 2016-08-10  bin cheng  <bin.cheng@arm.com>
11762         * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
11764 2016-08-10  Alan Lawrence  <alan.lawrence@arm.com>
11765             Renlin Li  <renlin.li@arm.com>
11766             Bin Cheng  <bin.cheng@arm.com>
11768         * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
11769         * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
11770         gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
11771         (aarch64_vcond_internal<mode><mode>): Delete pattern.
11772         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
11773         (vcond<v_cmp_result><mode>): Ditto.
11774         (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
11775         (vcondu<mode><mode>): Ditto.
11776         (vcond<v_cmp_mixed><mode>): New pattern.
11777         (vcondu<mode><v_cmp_mixed>): New pattern.
11778         (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
11779         of aarch64_vcond_internal.
11781 2016-08-10  Alan Lawrence  <alan.lawrence@arm.com>
11782             Renlin Li  <renlin.li@arm.com>
11783             Bin Cheng  <bin.cheng@arm.com>
11785         * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
11786         (vec_cmp<mode><v_cmp_result>): New pattern.
11787         (vec_cmpu<mode><mode>): New pattern.
11788         (vcond_mask_<mode><v_cmp_result>): New pattern.
11790 2016-08-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
11792         PR tree-optimization/71734
11793         * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
11794         REF_LOOP, invoke ref_indep_loop_p_1.
11795         (outermost_indep_loop): Pass LOOP argumnet where REF was defined
11796         to ref_indep_loop_p.
11797         (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
11798         combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
11799         is inside LOOP, do not cache dpendence value for loops with
11800         non-zero SAFELEN.
11801         (ref_indep_loop_p_2): Delete function.
11802         (can_sm_ref_p): Pass LOOP as additional argument to
11803         ref_indep_loop_p.
11805 2016-08-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
11807         PR target/72853
11808         * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
11809         being an offsettable address.
11811 2016-08-10  Martin Liska  <mliska@suse.cz>
11813         PR gcov-profile/58306
11814         * tree-profile.c (gimple_init_edge_profiler): Create conditionally
11815         atomic variants of profile update functions.
11817 2016-08-10  Martin Liska  <mliska@suse.cz>
11819         Cherry picked (and modified) from google-4_7 branch
11820         2012-12-26  Rong Xu  <xur@google.com>
11821         * common.opt (fprofile-update): Add new flag.
11822         * coretypes.h: Define enum profile_update.
11823         * doc/invoke.texi: Document -fprofile-update.
11824         * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
11825         GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
11826         * tree-profile.c (gimple_init_edge_profiler): Generate
11827         also atomic profiler update.
11828         (gimple_gen_edge_profiler): Likewise.
11830 2016-08-10  David Malcolm  <dmalcolm@redhat.com>
11832         * toplev.c (finalize): Set aux_info_file, asm_out_file, and
11833         stack_usage_file to NULL after fclose calls.
11835 2016-08-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
11837         PR target/71873
11838         * reload.c (push_reload): Compute subreg_in_class for
11839         subregs of constants and plus expressions. Remove special
11840         handling of SYMBOL_REFs.
11842 2016-08-10  Alan Modra  <amodra@gmail.com>
11844         PR target/71680
11845         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
11846         SImode for TARGET_E500_DOUBLE when given SImode.
11848 2016-08-09  David Wohlferd  <dw@LimeGreenSocks.com>
11850         * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
11851         unused variable __O.
11853 2016-08-09  Martin Liska  <mliska@suse.cz>
11855         * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
11856         _gcov_reset to __gcov_reset.
11857         * doc/gcov-tool.texi: Fix typo.
11859 2016-08-09  Martin Liska  <mliska@suse.cz>
11861         * value-prof.c (gimple_divmod_values_to_profile): Do not
11862         instrument MOD histogram if a value is not a SSA name.
11864 2016-08-09  Martin Liska  <mliska@suse.cz>
11866         * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
11867         values.
11869 2016-08-09  Renlin Li  <renlin.li@arm.com>
11871         PR middle-end/64971
11872         * calls.c (prepare_call_address): Convert funexp to Pmode when
11873         necessary.
11874         * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
11875         (sibcall_value): Likewise.
11877 2016-08-09  Marek Polacek  <polacek@redhat.com>
11879         PR c/7652
11880         * cselib.c (cselib_expand_value_rtx_1): Add return.
11881         * gengtype.c (dbgprint_count_type_at): Likewise.
11882         * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
11883         * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
11885 2016-08-09  Martin Jambor  <mjambor@suse.cz>
11887         PR ipa/71981
11888         * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
11889         if instance is a MEM_REF.
11891 2016-08-09  Uros Bizjak  <ubizjak@gmail.com>
11893         PR target/72843
11894         * config/i386/i386.md (*movtf_internal): Use
11895         lra_in_progress || reload_completed instead of !can_create_pseudo_p
11896         in the insn constraint.
11897         (*movxf_internal): Ditto.
11898         (*movdf_internal): Ditto.
11899         (*movsf_internal): Ditto.
11901 2016-08-09  Bin Cheng  <bin.cheng@arm.com>
11903         PR tree-optimization/72772
11904         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
11905         for expanded base.
11907 2016-08-09  Bin Cheng  <bin.cheng@arm.com>
11909         PR tree-optimization/72772
11910         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
11911         parameter STOP.
11912         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
11913         parameter STOP and update calls.  Move expand_simple_operations
11914         function call from here...
11915         (simplify_using_initial_conditions): ...to here.  Delete parameter
11916         STOP.
11917         (tree_simplify_using_condition): Delete parameter STOP.
11918         * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
11919         simplify_using_initial_conditions.
11921 2016-08-09  Matthew Fortune  <matthew.fortune@imgtec.com>
11923         PR c/65345
11924         * config/mips/mips.c (mips_atomic_assign_expand_fenv):
11925         Use create_tmp_var_raw instead of create_tmp_var.
11927 2016-08-09  Richard Biener  <rguenther@suse.de>
11929         * tree-ssa-threadbackward.c (profitable_jump_thread_path):
11930         Treat same SSA names related.
11932 2016-08-09  Jakub Jelinek  <jakub@redhat.com>
11934         PR tree-optimization/72824
11935         * tree-loop-distribution.c (const_with_all_bytes_same): Verify
11936         real_zerop is not negative.
11938 2016-08-09  Richard Biener  <rguenther@suse.de>
11940         PR tree-optimization/71802
11941         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
11942         all merge opportunities with the predecessor.
11944 2016-08-09  Richard Biener  <rguenther@suse.de>
11946         PR ipa/68273
11947         * ipa-prop.c (ipa_modify_formal_parameters): Build
11948         parameter types with natural alignment also for the
11949         over-aligned case.
11951 2016-08-08  Andi Kleen  <ak@linux.intel.com>
11953         * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
11955 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
11957         PR c/64955
11958         * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
11959         do-nothing langhook.
11960         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
11961         * langhooks.h (struct lang_hooks): Add run_lang_selftests.
11962         * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
11963         (selftest::run_tests): Call lang_hooks.run_lang_selftests.
11965 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
11967         PR bootstrap/72844
11968         * input.c: Ensure that HAVE_ICONV is defined.
11970 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
11972         PR middle-end/72781
11973         * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
11974         private vars for lastprivate and for linear iterator.
11976         PR middle-end/68762
11977         * omp-simd-clone.c: Include varasm.h.
11978         (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
11979         DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
11980         DECL_ONE_ONLY call make_decl_one_only.  Fix up spelling in comment and
11981         update function name.
11983 2016-07-29  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
11985         * config/avr/driver-avr.c (specfiles_doc_url): Remove.
11986         (avr_diagnose_devicespecs_error): Remove.
11987         (avr_devicespecs_file): Remove composing absolute path for specfile
11988         and its verbose info. Remove conditions to check specs-file,
11990 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
11992         PR rtl-optimization/72821
11993         * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
11994         just return false for them.
11996 2016-08-08  Alan Modra  <amodra@gmail.com>
11998         PR target/72771
11999         * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
12000         toc refs created during reload.  Update function comment.
12002 2016-08-08  Alan Modra  <amodra@gmail.com>
12004         PR target/72802
12005         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
12006         alternatives.  Put loads first, then stores, and reg/reg moves
12007         within same class later.  Delete attr length.
12009 2016-08-08  Alan Modra  <amodra@gmail.com>
12011         PR target/72802
12012         * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
12013         (mem_operand_ds_form): New predicate.
12014         * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
12015         * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
12016         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
12017         * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
12018         (extendsfdf2_fpr): Replace o constraint with wY.
12020 2016-08-07  Jan Hubicka  <hubicka@ucw.cz>
12022         * tree-ssa-threadbackward.c: Include tree-inline.h
12023         (profitable_jump_thread_path): Use estimate_num_insns to estimate
12024         size of copied block; for cold paths reduce duplication.
12025         (find_jump_threads_backwards): Remove redundant tests.
12026         (pass_thread_jumps::gate): Enable for -Os.
12028 2016-08-07  Jakub Jelinek  <jakub@redhat.com>
12030         PR c/72816
12031         * stor-layout.c (layout_decl): Fix up formatting.
12032         (relayout_decl): Allow DECL to be FIELD_DECL.
12034 2016-08-07  Alan Modra  <amodra@gmail.com>
12036         * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
12038 2016-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
12040         * data-streamer-in.c (streamer_read_wide_int): New.
12041         (streamer_read_widest_int): Renamed function.
12042         * data-streamer-out.c (streamer_write_wide_int): New
12043         (streamer_write_widest_int): Renamed function.
12044         * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
12045         data-stream-in.c.
12046         (input_cfg): Call renamed function.
12047         * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
12048         data-stream-out.c.
12049         (output_cfg): Call renamed function.
12050         * data-streamer.h: Add declarations.
12052 2016-08-08  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
12054         * tree-ssa-ccp.c (extend_mask): New param sgn.
12055         Remove ORing with wi::mask.
12056         (get_default_value): Adjust call to extend_mask to pass sign.
12057         (evaluate_stmt): Likewise.
12059 2016-08-06  Jakub Jelinek  <jakub@redhat.com>
12061         * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
12062         INT64_MAX.
12064 2016-08-06  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
12066         * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
12067         transform if operand's type is pointer to function or method.
12069 2016-08-05  Patrick Palka  <ppalka@gcc.gnu.org>
12071         PR tree-optimization/18046
12072         * tree-ssa-threadedge.c: Include cfganal.h.
12073         (simplify_control_statement_condition): If simplifying a
12074         GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
12075         with the dominating ASSERT_EXPR before handing it off to VRP.
12076         Mention that a CASE_LABEL_EXPR may be returned.
12077         (thread_around_empty_blocks): Adjust to handle
12078         simplify_control_statement_condition() returning a
12079         CASE_LABEL_EXPR.
12080         (thread_through_normal_block): Likewise.
12081         * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
12082         a switch statement by trying to determine which case label
12083         will be taken.
12085 2016-08-05  Vladimir Makarov  <vmakarov@redhat.com>
12087         PR rtl-optimization/69847
12088         * lra-constraints.c (process_invariant_for_inheritance): Save
12089         pattern instead of src.
12090         (remove_inheritance_pseudos): Use the pattern.  Add assert.
12092 2016-08-05  David Malcolm  <dmalcolm@redhat.com>
12094         * input.c (string_concat::string_concat): New constructor.
12095         (string_concat_db::string_concat_db): New constructor.
12096         (string_concat_db::record_string_concatenation): New method.
12097         (string_concat_db::get_string_concatenation): New method.
12098         (string_concat_db::get_key_loc): New method.
12099         (class auto_cpp_string_vec): New class.
12100         (get_substring_ranges_for_loc): New function.
12101         (get_source_range_for_substring): New function.
12102         (get_num_source_ranges_for_substring): New function.
12103         (class selftest::lexer_test_options): New class.
12104         (struct selftest::lexer_test): New struct.
12105         (class selftest::ebcdic_execution_charset): New class.
12106         (selftest::ebcdic_execution_charset::s_singleton): New variable.
12107         (selftest::lexer_test::lexer_test): New constructor.
12108         (selftest::lexer_test::~lexer_test): New destructor.
12109         (selftest::lexer_test::get_token): New method.
12110         (selftest::assert_char_at_range): New function.
12111         (ASSERT_CHAR_AT_RANGE): New macro.
12112         (selftest::assert_num_substring_ranges): New function.
12113         (ASSERT_NUM_SUBSTRING_RANGES): New macro.
12114         (selftest::assert_has_no_substring_ranges): New function.
12115         (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
12116         (selftest::test_lexer_string_locations_simple): New function.
12117         (selftest::test_lexer_string_locations_ebcdic): New function.
12118         (selftest::test_lexer_string_locations_hex): New function.
12119         (selftest::test_lexer_string_locations_oct): New function.
12120         (selftest::test_lexer_string_locations_letter_escape_1): New function.
12121         (selftest::test_lexer_string_locations_letter_escape_2): New function.
12122         (selftest::test_lexer_string_locations_ucn4): New function.
12123         (selftest::test_lexer_string_locations_ucn8): New function.
12124         (selftest::uint32_from_big_endian): New function.
12125         (selftest::test_lexer_string_locations_wide_string): New function.
12126         (selftest::uint16_from_big_endian): New function.
12127         (selftest::test_lexer_string_locations_string16): New function.
12128         (selftest::test_lexer_string_locations_string32): New function.
12129         (selftest::test_lexer_string_locations_u8): New function.
12130         (selftest::test_lexer_string_locations_utf8_source): New function.
12131         (selftest::test_lexer_string_locations_concatenation_1): New
12132         function.
12133         (selftest::test_lexer_string_locations_concatenation_2): New
12134         function.
12135         (selftest::test_lexer_string_locations_concatenation_3): New
12136         function.
12137         (selftest::test_lexer_string_locations_macro): New function.
12138         (selftest::test_lexer_string_locations_stringified_macro_argument):
12139         New function.
12140         (selftest::test_lexer_string_locations_non_string): New function.
12141         (selftest::test_lexer_string_locations_long_line): New function.
12142         (selftest::test_lexer_char_constants): New function.
12143         (selftest::input_c_tests): Call the new test functions once per
12144         case within the line_table test matrix.
12145         * input.h (struct string_concat): New struct.
12146         (struct location_hash): New struct.
12147         (class string_concat_db): New class.
12148         * substring-locations.h: New header.
12150 2016-08-05  Patrick Palka  <ppalka@gcc.gnu.org>
12152         PR tree-optimization/72810
12153         * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
12154         the type of the case labels when truncating.
12156 2016-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
12158         PR Target/72819
12159         * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
12160         (aarch64_fp16_ptr_type_node): Likewise.
12161         * config/aarch64/aarch64-simd-builtins.c
12162         (aarch64_fp16_ptr_type_node): Define.
12163         (aarch64_init_fp16_types): New, refactored out of...
12164         (aarch64_init_builtins): ...here, update to call
12165         aarch64_init_fp16_types.
12166         * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
12167         HFmode.
12168         (aapcs_vfp_sub_candidate): Likewise.
12170 2016-08-05  Martin Liska  <mliska@suse.cz>
12171             Joshua Cranmer  <Pidgeot18@gmail.com>
12173         * gcov.c (line_t::has_block): New function.
12174         (enum loop_type): New enum.
12175         (handle_cycle): New function.
12176         (unblock): Likewise.
12177         (circuit): Likewise.
12178         (get_cycles_count): Likewise.
12179         (accumulate_line_counts): Use new loop detection algorithm.
12181 2016-08-05  Martin Liska  <mliska@suse.cz>
12183         * gcov.c (output_intermediate_file): Rename
12184         function_info::line_next to next_file_fn.
12185         (process_file): Likewise.
12186         (read_graph_file): Likewise.
12187         (accumulate_line_counts): Likewise.
12188         (output_lines): Likewise.
12190 2016-08-05  Richard Biener  <rguenther@suse.de>
12192         * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
12193         restriction on threading to a loop header.
12195 2016-08-05  Richard Biener  <rguenther@suse.de>
12197         * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
12198         * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
12199         adjust loop info accordingly.
12201 2016-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
12203         * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
12204         before folding call to __builtin_constant_p with parameters to false.
12206 2016-08-05  Alan Modra  <amodra@gmail.com>
12208         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
12209         code accidentally committed 2016-05-02 providing class when given
12210         NO_REGS.
12212 2016-08-04  Patrick Palka  <ppalka@gcc.gnu.org>
12214         * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
12215         the case label ranges that partially overlap with OP's value
12216         range.
12218 2016-08-04  Uros Bizjak  <ubizjak@gmail.com>
12220         PR target/72805
12221         * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
12222         Cast builtin function result to __mmask16 instead of __mmask8.
12223         (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
12224         (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
12225         (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
12227 2016-08-04  David Malcolm  <dmalcolm@redhat.com>
12229         * selftest.h (ASSERT_TRUE): Reimplement in terms of...
12230         (ASSERT_TRUE_AT): New macro.
12231         (ASSERT_FALSE): Reimplement in terms of...
12232         (ASSERT_FALSE_AT): New macro.
12233         (ASSERT_STREQ_AT): Fix typo in comment.
12235 2016-08-04  Patrick Palka  <ppalka@gcc.gnu.org>
12237         * gimple.c (preprocess_case_label_vec_for_gimple): When the case
12238         labels are exhaustive, designate the label with the widest
12239         range to be the default label.
12241 2016-08-04  Andrew Pinski  <apinski@cavium.com>
12243         * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
12244         (thunderx_tunings): Use thunderx_vector_cost instead of
12245         generic_vector_cost.
12247 2016-08-04  Martin Liska  <mliska@suse.cz>
12249         * gcov.c (main): Fix GNU coding style.
12250         (output_intermediate_file): Likewise.
12251         (process_file): Likewise.
12252         (generate_results): Likewise.
12253         (release_structures): Likewise.
12254         (create_file_names): Likewise.
12255         (find_source): Likewise.
12256         (read_graph_file): Likewise.
12257         (find_exception_blocks): Likewise.
12258         (canonicalize_name): Likewise.
12259         (make_gcov_file_name): Likewise.
12260         (mangle_name): Likewise.
12261         (accumulate_line_counts): Likewise.
12262         (output_branch_count): Likewise.
12263         (read_line): Likewise.
12265 2016-08-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12267         PR rtl-optimization/71779
12268         * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
12269         if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
12270         or if it was truncated.
12272         PR rtl-optimization/70903
12273         * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
12275 2016-08-04  Kugan Vivekanandarajah  <kuganv@linaro.org>
12277         * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
12278         accessing SSA_NAME_PTR_INFO.
12280 2016-08-04  Georg-Johann Lay  <avr@gjlay.de>
12282         PR 70677
12283         * common/config/avr/avr-common.c (avr_option_optimization_table)
12284         [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
12286 2016-08-04  Georg-Johann Lay  <avr@gjlay.de>
12288         PR 55181
12289         * config/avr/avr.md: New pattern to work around do_store_flag
12290         generating shift instructions for bit extractions.
12292 2016-08-04  Kugan Vivekanandarajah  <kuganv@linaro.org>
12294         * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
12295         BITMAP_ALLOC.
12296         (add_equivalence): Likewise.
12297         (get_value_range): Allocate value range with vrp_value_range_pool.
12298         (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
12299         (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
12301 2016-08-03  Peter Bergner  <bergner@vnet.ibm.com>
12303         * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
12304         the default for the rs6000 port.
12306 2016-08-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12308         PR middle-end/71876
12309         * calls.c (special_function_p): Remove special handling of
12310         "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
12311         prefix "__x".  Recognize "savectx", "vfork" and "getcontext" only
12312         without prefix.  Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
12314 2016-08-03  Vladimir Makarov  <vmakarov@redhat.com>
12316         PR middle-end/72778
12317         * lra-spills.c (regno_in_use_p): Check bb and regno modification.
12318         Don't stop on regular insns.
12320 2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
12322         * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
12323         size to DImode boundary.
12324         (nvptx_propagate): Likewise.
12326 2016-08-03  Alan Modra  <amodra@gmail.com>
12328         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
12329         float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
12330         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
12331         from -mefficient-unaligned-vector.  Note that this affects fp too.
12333 2016-08-03  Alan Modra  <amodra@gmail.com>
12335         * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
12336         cost more.
12338 2016-08-03  Alan Modra  <amodra@gmail.com>
12340         * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
12341         to a reg.  Localize vars.
12343 2016-08-03  Alan Modra  <amodra@gmail.com>
12345         * config/rs6000/rs6000.opt: Remove negatives from help strings
12346         and comments.
12348 2016-08-03  Alan Modra  <amodra@gmail.com>
12350         * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
12351         Delete duplicated code.
12353 2016-08-02  Vladimir Makarov  <vmakarov@redhat.com>
12355         PR middle-end/72778
12356         * lra-spills.c (regno_in_use_p): New.
12357         (lra_final_code_change): Use it.
12359 2016-08-02  Vladimir Makarov  <vmakarov@redhat.com>
12361         PR rtl-optimization/69847
12362         * lra-int.h (struct lra-reg): Use restore_rtx instead of
12363         restore_regno.
12364         (lra_rtx_hash): New.
12365         * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
12366         of restore_regno.
12367         (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
12368         * lra-remat.c (rtx_hash): Rename and Move to lra.c.
12369         * lra-spills.c (lra_final_code_change): Don't delete insn when the
12370         next insn is USE with the same reg as the current insn source.
12371         * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
12372         of restore_regno.
12373         (lra_constraints_init): Call initiate_invariants.
12374         (lra_constraints_finish): Call finish_invariants.
12375         (struct invariant, invariant_t, invariant_ptr_t): New.
12376         (const_invariant_ptr_t, invariants, invariants_pool): New.
12377         (invariant_table, invariant_hash, invariant_eq_p): New.
12378         (insert_invariant, initiate_invariants, finish_invariants): New.
12379         (clear_invariants, invalid_invariant_regs): New.
12380         (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
12381         instead of restore_regno.
12382         (invariant_p, process_invariant_for_inheritance): New.
12383         (inherit_in_ebb): Implement invariant inheritance.
12384         (lra_inheritance): Initialize and finalize invalid_invariant_regs.
12385         (remove_inheritance_pseudos): Implement undoing invariant
12386         inheritance.
12387         (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
12388         instead of restore_regno.
12389         * lra-assigns.c (regno_live_length): New.
12390         (reload_pseudo_compare_func): Use regno_live_length.
12391         (assign_by_spills): Use restore_rtx instead of restore_regno.
12392         (lra_assign): Ditto.  Initiate regno_live_length.
12394 2016-02-08  James Greenhalgh  <james.greenhalgh@arm.com>
12396         * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
12397         __builtin_aarch64_fmindf.
12399 2016-08-02  Bin Cheng  <bin.cheng@arm.com>
12401         PR tree-optimization/34114
12402         * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
12403         information for more control IVs.
12405 2016-08-02  Bin Cheng  <bin.cheng@arm.com>
12407         PR tree-optimization/34114
12408         * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
12409         PLUS_EXPR case.  Handle SSA_NAME case.
12411 2016-08-02  Tamar Christina  <tamar.christina@arm.com>
12413         * config/aarch64/aarch64-simd-builtins.def
12414         (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
12415         (__builtin_aarch64_fmaxdf): Likewise.
12416         (__builtin_aarch64_smin_nandf): Likewise.
12417         (__builtin_aarch64_smax_nandf): Likewise.
12418         * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
12419         * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
12420         (<fmaxmin><mode>3): ...this.
12421         * config/aarch64/arm_neon.h (vmaxnm_f64): New.
12422         (vminnm_f64): Likewise.
12423         (vmin_f64): Likewise.
12424         (vmax_f64): Likewise.
12425         * config/aarch64/iterators.md (FMAXMIN): Merge with...
12426         (FMAXMIN_UNS): ...this.
12427         (fmaxmin): Merged with
12428         (fmaxmin_op): ...this...
12429         (maxmin_uns_op): ...in to this.
12431 2016-08-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
12433         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12434         Add support for vec_extract on vector float, vector int, vector
12435         short, and vector char vector types.
12436         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
12437         vector float, vector int, vector short, and vector char
12438         optimizations on 64-bit ISA 2.07 systems for both constant and
12439         variable element numbers.
12440         (rs6000_split_vec_extract_var): Likewise.
12441         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
12442         Altivec registers on ISA 2.07 and above.
12443         (vsx_extract_v4sf): Delete alternative that hard coded element 0,
12444         which never was matched due to the split occuring before register
12445         allocation (and the code would not have worked on little endian
12446         systems if it did match).  Allow extracts to go to the Altivec
12447         registers if ISA 2.07 (power8).  Change from using "" around the
12448         C++ code to using {}'s.
12449         (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
12450         vec_extracts when the vector is in memory.
12451         (vsx_extract_v4sf_var): New insn to optimize vector float
12452         vec_extracts when the element number is variable on 64-bit ISA
12453         2.07 systems.
12454         (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
12455         for 64-bit ISA 2.07 as well as ISA 3.0.
12456         (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
12457         (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
12458         (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
12459         optimize vector int, vector short, and vector char vec_extracts
12460         when the vector is in memory.
12461         (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
12462         optimize vector int, vector short, and vector char vec_extracts
12463         when the element number is variable.
12465 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
12467         PR target/71948
12468         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
12469         does not overlap with other symbol flags.
12471 2016-08-01  Wilco Dijkstra  <wdijkstr@arm.com>
12473         * config/aarch64/aarch64.h (aarch64_frame):
12474         Remove padding0 and hardfp_offset.  Add locals_offset,
12475         initial_adjust, callee_adjust, callee_offset and final_adjust.
12476         * config/aarch64/aarch64.c (aarch64_layout_frame):
12477         Remove unused padding0 and hardfp_offset initializations.
12478         Choose frame layout and set frame variables accordingly.
12479         Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
12480         (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
12481         (aarch64_pop_regs): Likewise.
12482         (aarch64_expand_prologue): Remove all decision code, just emit
12483         prolog according to frame variables.
12484         (aarch64_expand_epilogue): Remove all decision code, just emit
12485         epilog according to frame variables.
12486         (aarch64_initial_elimination_offset): Use offset to local/arg area.
12488 2015-08-01  H.J. Lu  <hongjiu.lu@intel.com>
12490         PR target/72748
12491         * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
12492         fix_debug_reg_uses after changing source register mode to
12493         V1TImode if source register is undefined.
12495 2015-08-01  Alan Hayward  <alan.hayward@arm.com>
12497         PR tree-optimization/71818
12498         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
12499         with non invariant evolutions
12501 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
12503         PR target/72767
12504         * config/avr/avr.md (length) [branch]: Correct insn length
12505         attribute for forward branches.
12507 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
12509         * doc/extend.texi (AVR Built-in Functions): Document
12510         __builtin_avr_nops.
12511         * config/avr/builtins.def (NOPS): New.
12512         * config/avr/avr.c (avr_expand_nops): New static function.
12513         (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
12515 2016-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12517         * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
12518         performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
12519         addresses.
12521 2016-08-01  Virendra Pathak  <virendra.pathak@broadcom.com>
12523         * config/aarch64/aarch64.c (vulcan_tunings): Update
12524         vulcan L1 cache_line_size.
12526 2016-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
12528         * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
12529         function that takes a vector memory address, a hard register, an
12530         element number and a temporary base register, and recreates an
12531         address that points to the appropriate element within the vector.
12532         * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
12533         (rs6000_split_vec_extract_var): Add support for the target of a
12534         vec_extract with variable element number being a scalar memory
12535         location.
12536         (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
12537         swappable.
12538         * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
12539         vsx_extract_<mode>_load insn with a new insn that optimizes
12540         storing either element to a memory location, using scratch
12541         registers to pick apart the vector and reconstruct the address.
12542         (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
12543         (vsx_extract_<mode>_store): Rework alternatives to more correctly
12544         support Altivec registers.  Add support for ISA 3.0 Altivec d-form
12545         store instruction.
12546         (vsx_extract_<mode>_var): Add support for extracting a variable
12547         element number from memory.
12549 2016-07-29  Georg-Johann Lay  <avr@gjlay.de>
12551         * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
12552         when testing for compares against constants of the form 0xabab.
12554 2016-07-29  Bin Cheng  <bin.cheng@arm.com>
12556         PR tree-optimization/57558
12557         * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
12558         function.
12559         (vect_loop_versioning): Support versioning with niter assumptions.
12560         * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
12561         (vect_get_loop_niters): New parameter.  Reimplement to support
12562         assumptions in loop niter info.
12563         (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
12564         (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
12565         (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
12566         Support loop versioning for niters.
12567         * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
12568         (vect_free_loop_info_assumptions): New function.
12569         (vectorize_loops): Free loop niter info for loops with flag
12570         LOOP_F_ASSUMPTIONS set if vectorization failed.
12571         * tree-vectorizer.h (struct _loop_vec_info): New field
12572         num_iters_assumptions.
12573         (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
12574         (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
12575         (LOOP_REQUIRES_VERSIONING): New macro.
12576         (vect_free_loop_info_assumptions): New decl.
12578 2016-07-29  Bin Cheng  <bin.cheng@arm.com>
12580         * cfgloop.h (struct loop): New field constraints.
12581         (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
12582         (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
12583         functions.
12584         * cfgloop.c (alloc_loop): Initialize new field.
12585         * cfgloopmanip.c (copy_loop_info): Copy constraints.
12586         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
12587         Adjust niter analysis wrto loop constraints.
12588         * doc/loop.texi (@node Number of iterations): Add description for loop
12589         constraints.
12591 2016-07-29  Marek Polacek  <polacek@redhat.com>
12593         PR c/7652
12594         * config/i386/i386.c (ix86_expand_args_builtin): Add break.
12595         (ix86_expand_round_builtin): Likewise.
12597 2016-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
12598             Georg-Johann Lay  <avr@gjlay.de>
12600         PR rtl-optimization/71976
12601         * combine.c (get_last_value): Return 0 if the argument for which
12602         the function is called has a wider mode than the recorded value.
12604 2016-07-29  Marek Polacek  <polacek@redhat.com>
12606         PR c/7652
12607         * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
12608         (altivec_expand_st_builtin): Likewise.
12610 2016-07-29  Georg-Johann Lay  <avr@gjlay.de>
12612         * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
12613         introduced in r238381.
12615 2016-07-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
12617         PR middle-end/68217
12618         * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
12619         & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
12621 2016-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
12623         * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
12624         New declaration.
12625         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12626         Add support for vec_extract of vector double or vector long having
12627         a variable element number on 64-bit ISA 2.07 systems or newer.
12628         * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
12629         Likewise.
12630         (rs6000_split_vec_extract_var): New function to split a
12631         vec_extract built-in function with variable element number.
12632         (rtx_is_swappable_p): Variable vec_extracts and shifts are not
12633         swappable.
12634         * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
12635         (UNSPEC_VSX_EXTRACT): Likewise.
12636         (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
12637         direct move instructions to be generated on 64-bit ISA 2.07
12638         systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
12639         instruction.
12640         (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
12641         arguments for vec_extract variable element.
12642         (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
12643         vec_extract with variable element on V2DFmode and V2DImode
12644         vectors.
12645         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
12646         -mupper-regs-df requirement, since it isn't needed.
12647         (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
12648         do direct moves on 64-bit systems, which allows optimization of
12649         vec_extract on 64-bit ISA 2.07 systems and newer.
12651 2016-07-28  Kristina Martsenko  <kristina.martsenko@arm.com>
12652 2016-07-28  Wilco Dijkstra  <wdijkstr@arm.com>
12654          * config/aarch64/aarch64.md
12655         (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
12656         statement and type.
12657         (<optab>qihi2_aarch64): Likewise, and split into two.
12658         (extendqihi2_aarch64): New.
12659         (zero_extendqihi2_aarch64): New.
12660         * config/aarch64/iterators.md (ldrxt): Remove.
12661         * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
12662         uxtb/uxth.
12664 2016-07-28  Kristina Martsenko  <kristina.martsenko@arm.com>
12666         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
12668 2016-07-28  Wilco Dijkstra  <wdijkstr@arm.com>
12670         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
12671         (aarch64_push_reg): New function to push 1 or 2 registers.
12672         (aarch64_pop_reg): New function to pop 1 or 2 registers.
12673         (aarch64_expand_prologue): Use aarch64_push_regs.
12674         (aarch64_expand_epilogue): Use aarch64_pop_regs.
12676 2016-07-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
12678         PR tree-optimization/71734
12679         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
12680         attribute instead of REF_LOOP and use it.
12681         (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
12682         set it for Loops having non-zero safelen attribute.
12683         (ref_indep_loop_p): Pass zero as initial value for safelen.
12685 2016-07-28  Ilya Enkovich  <ilya.enkovich@intel.com>
12687         PR middle-end/72657
12688         PR target/72683
12689         * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
12690         call using chkp_gimple_call_builtin_p.
12691         (chkp_copy_bounds_for_assign): Likewise.
12693 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12695         * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
12696         * config/arm/arm-protos.h (struct tune_params): Likewise.
12697         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
12698         (cortex_a9_sched_adjust_cost): Likewise.
12699         (fa726te_sched_adjust_cost): Likewise.
12700         (arm_adjust_cost): Likewise.
12701         * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
12702         * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
12703         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
12704         * config/i386/i386.c (ix86_adjust_cost): Likewise.
12705         * config/ia64/ia64.c: Likewise.
12706         * config/m68k/m68k.c: Likewise.
12707         * config/mep/mep.c (mep_adjust_cost): Likewise.
12708         * config/microblaze/microblaze.c (microblaze_adjust_cost):
12709         * Likewise.
12710         * config/mips/mips.c (mips_adjust_cost): Likewise.
12711         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
12712         * Likewise.
12713         * config/pa/pa.c (pa_adjust_cost): Likewise.
12714         * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
12715         (rs6000_debug_adjust_cost): Likewise.
12716         * config/sh/sh.c (sh_adjust_cost): Likewise.
12717         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
12718         (hypersparc_adjust_cost): Likewise.
12719         (sparc_adjust_cost): Likewise.
12720         * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
12721         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
12722         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
12723         * Likewise.
12724         * config/visium/visium.c (visium_adjust_cost): Likewise.
12725         * doc/tm.texi: Regenerate.
12726         * haifa-sched.c (dep_cost_1): Adjust.
12727         * target.def: Merge adjust_cost and adjust_cost_2.
12729 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12731         * haifa-sched.c (add_to_speculative_block): Make twins a vector.
12733 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12735         * store-motion.c (struct st_expr): Make pattern_regs a vector.
12736         (extract_mentioned_regs): Append to a vector instead of
12737         returning a rtx_expr_list.
12738         (st_expr_entry): Adjust.
12739         (free_st_expr_entry): Likewise.
12740         (store_ops_ok): Likewise.
12741         (store_killed_in_insn): Likewise.
12742         (find_moveable_store): Likewise.
12744 2016-07-28  Martin Liska  <mliska@suse.cz>
12746         PR gcov-profile/68025
12747         * tree-profile.c (tree_profiling): Respect
12748         no_profile_instrument_function attribute.
12749         * doc/extend.texi: Document no_profile_instrument_function
12750         attribute.
12752 2016-07-28  Martin Liska  <mliska@suse.cz>
12754         PR rtl-optimization/70944
12755         * combine.c (make_compound_operation):
12756         Do not allow make_compound_operation for vector mode
12758 2016-07-28  Kugan Vivekanandarajah  <kuganv@linaro.org>
12760         PR middle-end/71994
12761         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
12762          before calling get_ops.
12764 2016-07-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12766         * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
12767         * tree.h (LOG2_BITS_PER_UNIT): ...to here.
12768         (BITS_PER_UNIT_LOG): Remove.
12769         (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
12770         * expr.c (expand_assignment): Likewise.
12771         * stor-layout.c (initialize_sizetypes): Likewise.
12773 2016-07-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
12775         * config/rs6000/vector.md (vec_extract<mode>): Change the calling
12776         signature of rs6000_expand_vector_extract so that the element
12777         number is a RTX instead of a constant integer.
12778         * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
12779         Likewise.
12780         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
12781         (altivec_expand_vec_ext_builtin): Likewise.
12782         * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
12783         * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
12784         MFVSRLD instruction.
12786 2016-07-27  David Malcolm  <dmalcolm@redhat.com>
12788         * input.c (get_pure_location): Move here from tree.c.
12789         (make_location): Likewise.  Add header comment.
12790         (selftest::test_accessing_ordinary_linemaps): Verify
12791         pure_location_p, make_location, get_location_from_adhoc_loc and
12792         get_range_from_loc.
12793         * input.h (get_pure_location): Move declaration here from tree.h.
12794         (get_finish): Likewise for inline function.
12795         (make_location): Likewise for declaration.
12796         * tree.c (get_pure_location): Move to input.c.
12797         (make_location): Likewise.
12798         * tree.h (get_pure_location): Move declaration to tree.h.
12799         (get_finish): Likewise for inline function.
12800         (make_location): Likewise for declaration.
12802 2016-07-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
12804         PR middle-end/71078
12805         * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
12807 2016-07-27  David Malcolm  <dmalcolm@redhat.com>
12809         * system.h (STATIC_ASSERT): Use static_assert if building
12810         with C++11 onwards.
12812 2016-07-27  Richard Biener  <rguenther@suse.de>
12814         PR tree-optimization/72517
12815         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
12816         Revert change to not compute read-read dependences.
12818 2016-07-27  Richard Biener  <rguenther@suse.de>
12820         * predict.c (set_even_probabilities): Make nedges unsigned.
12822 2016-07-27  Martin Liska  <mliska@suse.cz>
12824         * predict.c (set_even_probabilities): Handle unlikely edges.
12825         (combine_predictions_for_bb): Likewise.
12827 2016-07-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
12829         PR target/71869
12830         * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
12831         __float128 support when we don't have hardware support, so that
12832         the IEEE built-in functions like isgreater, first call __unordkf3
12833         to make sure neither operand is a NaN, and if both operands are
12834         ordered, do the normal comparison.
12836 2016-07-26  Patrick Palka  <ppalka@gcc.gnu.org>
12838         * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
12839         name.
12840         (extract_code_and_val_from_cond_with_ops): Verify that name is
12841         either cond_op0 or cond_op1.
12843 2016-07-26  Patrick Palka  <ppalka@gcc.gnu.org>
12845         PR tree-optimization/18046
12846         * genmodes.c (emit_mode_size_inline): Emit an assert that
12847         verifies that mode is a valid array index.
12848         (emit_mode_nuinits_inline): Likewise.
12849         (emit_mode_inner_inline): Likewise.
12850         (emit_mode_unit_size_inline): Likewise.
12851         (emit_mode_unit_precision_inline): Likewise.
12852         * tree-vrp.c: Include params.h.
12853         (find_switch_asserts): Register edge assertions for the default
12854         label which correspond to the anti-ranges of each case label.
12855         * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
12856         * doc/invoke.texi: Document it.
12858 2016-07-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12860         * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
12861         and unnecessary call to gimple_bb.
12863 2016-07-26  Richard Biener  <rguenther@suse.de>
12865         PR rtl-optimization/71984
12866         * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
12867         for VOIDmode.
12869 2016-07-26  Richard Biener  <rguenther@suse.de>
12871         PR middle-end/72517
12872         * expmed.c (extract_bit_field_1): Constrain the vector mode
12873         with element size matching the extraction mode size when
12874         choosing a better vector mode to do the extraction from.
12876 2016-07-26  Richard Biener  <rguenther@suse.de>
12877             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
12879         PR middle-end/70920
12880         * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
12881         pattern.
12883 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12885         * tree-ssa-structalias.c (struct scc_info): Change types of
12886         members to auto_sbitmap and auto_vec.
12887         (scc_info::scc_info): New constructor.
12888         (scc_info::~scc_info): New destructor.
12889         (init_scc_info): Remove.
12890         (free_scc_info): Remove.
12891         (find_indirect_cycles): Adjust.
12892         (perform_var_substitution): Likewise.
12893         (free_var_substitution_info): Likewise.
12895 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12897         * tree-outof-ssa.c (struct elim_graph): Change type of members
12898         to auto_vec and auto_sbitmap.
12899         (elim_graph::elim_graph): New constructor.
12900         (delete_elim_graph): Remove.
12901         (expand_phi_nodes): Adjust.
12903 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12905         * tree-outof-ssa.c (struct elim_graph): Remove typedef.
12906         (new_elim_graph): Adjust.
12907         (clear_elim_graph): Likewise.
12908         (delete_elim_graph): Likewise.
12909         (elim_graph_size): Likewise.
12910         (elim_graph_add_node): Likewise.
12911         (elim_graph_add_edge): Likewise.
12912         (elim_graph_remove_succ_edge): Likewise.
12913         (eliminate_name): Likewise.
12914         (eliminate_build): Likewise.
12915         (elim_forward): Likewise.
12916         (elim_unvisited_predecessor): Likewise.
12917         (elim_backward): Likewise.
12918         (elim_create): Likewise.
12919         (eliminate_phi): Likewise.
12920         (expand_phi_nodes): Likewise.
12922 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12924         * bt-load.c (compute_out): Use auto_sbitmap class.
12925         (link_btr_uses): Likewise.
12926         * cfganal.c (mark_dfs_back_edges): Likewise.
12927         (post_order_compute): Likewise.
12928         (inverted_post_order_compute): Likewise.
12929         (pre_and_rev_post_order_compute_fn): Likewise.
12930         (single_pred_before_succ_order): Likewise.
12931         * cfgexpand.c (pass_expand::execute): Likewise.
12932         * cfgloop.c (verify_loop_structure): Likewise.
12933         * cfgloopmanip.c (fix_bb_placements): Likewise.
12934         (remove_path): Likewise.
12935         (update_dominators_in_loop): Likewise.
12936         * cfgrtl.c (break_superblocks): Likewise.
12937         * ddg.c (check_sccs): Likewise.
12938         (create_ddg_all_sccs): Likewise.
12939         * df-core.c (df_worklist_dataflow): Likewise.
12940         * dse.c (dse_step3): Likewise.
12941         * except.c (eh_region_outermost): Likewise.
12942         * function.c (thread_prologue_and_epilogue_insns): Likewise.
12943         * gcse.c (prune_expressions): Likewise.
12944         (prune_insertions_deletions): Likewise.
12945         * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
12946         * graph.c (draw_cfg_nodes_no_loops): Likewise.
12947         * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
12948         * lcm.c (compute_earliest): Likewise.
12949         (compute_farthest): Likewise.
12950         * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
12951         (unroll_loop_runtime_iterations): Likewise.
12952         (unroll_loop_stupid): Likewise.
12953         * lower-subreg.c (decompose_multiword_subregs): Likewise.
12954         * lra-lives.c: Likewise.
12955         * lra.c (lra): Likewise.
12956         * modulo-sched.c (schedule_reg_moves): Likewise.
12957         (optimize_sc): Likewise.
12958         (get_sched_window): Likewise.
12959         (sms_schedule_by_order): Likewise.
12960         (check_nodes_order): Likewise.
12961         (order_nodes_of_sccs): Likewise.
12962         (order_nodes_in_scc): Likewise.
12963         * recog.c (split_all_insns): Likewise.
12964         * regcprop.c (pass_cprop_hardreg::execute): Likewise.
12965         * reload1.c (reload): Likewise.
12966         * sched-rgn.c (haifa_find_rgns): Likewise.
12967         (split_edges): Likewise.
12968         (compute_trg_info): Likewise.
12969         * sel-sched.c (init_seqno): Likewise.
12970         * store-motion.c (remove_reachable_equiv_notes): Likewise.
12971         * tree-into-ssa.c (update_ssa): Likewise.
12972         * tree-ssa-live.c (live_worklist): Likewise.
12973         * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
12974         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
12975         * Likewise.
12976         (try_peel_loop): Likewise.
12977         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
12978         * Likewise.
12979         * tree-ssa-pre.c (compute_antic): Likewise.
12980         * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
12981         * tree-stdarg.c (reachable_at_most_once): Likewise.
12982         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
12983         * var-tracking.c (vt_find_locations): Likewise.
12985 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12987         * sbitmap.h (auto_sbitmap): New class.
12989 2016-07-26  Alan Modra  <amodra@gmail.com>
12991         PR target/72103
12992         * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
12993         sri->t_icode.
12995 2016-07-25  David Malcolm  <dmalcolm@redhat.com>
12997         * input.c (selftest::temp_source_file::temp_source_file): Fix
12998         missing "%s" in fprintf.
13000 2016-07-25  John David Anglin  <danglin@gcc.gnu.org>
13002         PR middle-end/71732
13003         * cselib.c (cselib_process_insn): Invalidate argument slots for
13004         const/pure calls.
13006 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
13008         * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
13009         vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
13010         vmulxh_lane_f16, vmulxh_laneq_f16): New.
13012 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
13014         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
13015         * config/aarch64/aarch64.md (fma, fnma): Support HF.
13016         * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
13018 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
13020         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
13021         * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
13022         New.
13023         (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
13024         (add<mode>3): Likewise.
13025         (sub<mode>3): Likewise.
13026         (mul<mode>3): Likewise.
13027         (div<mode>3): Likewise.
13028         (*div<mode>3): Likewise.
13029         (<fmaxmin><mode>3): Extend to HF.
13030         * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
13031         (fabd<mode>3): Likewise.
13032         (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
13033         (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
13034         (aarch64_fmulx<mode>): Likewise.
13035         (aarch64_fac<optab><mode>): Likewise.
13036         (aarch64_frecps<mode>): Likewise.
13037         (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
13038         (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
13039         * config/aarch64/iterators.md (VHSDF_SDF): Delete.
13040         (VSDQ_HSDI): Support HI.
13041         (fcvt_target, FCVT_TARGET): Likewise.
13042         * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
13043         vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
13044         vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
13045         vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
13046         vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
13047         vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
13048         vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
13049         vrsqrtsh_f16): New.
13051 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
13053         * config.gcc (aarch64*-*-*): Install arm_fp16.h.
13054         * config/aarch64/aarch64-builtins.c (hi_UP): New.
13055         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
13056         * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
13057         mode.
13058         (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
13059         (aarch64_cm<optab><mode>): Likewise.
13060         * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
13061         (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
13062         (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
13063         (sqrt<mode>2): Likewise.
13064         (*sqrt<mode>2): Likewise.
13065         (abs<mode>2): Likewise.
13066         (<optab><mode>hf2): New pattern for HF mode.
13067         (<optab>hihf2): Likewise.
13068         * config/aarch64/arm_neon.h: Include arm_fp16.h.
13069         * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
13070         (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
13071         Support HF mode.
13072         * config/aarch64/arm_fp16.h: New file.
13073         (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
13074         vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
13075         vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
13076         vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
13077         vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
13078         vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
13079         vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
13080         vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
13081         vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
13082         vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
13083         vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
13084         vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
13085         vsqrth_f16): New.
13087 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
13089         * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
13090         reduc_smin_scal_): Use VDQIF_F16.
13091         (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
13092         * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
13093         Use VHSDF.
13094         (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
13095         * config/aarch64/iterators.md (VDQIF_F16): New.
13096         (vp): Support HF modes.
13097         * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
13098         vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
13100 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
13102         * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
13103         "*aarch64_mulx_elt_from_dup<mode>".
13104         (*aarch64_mul3_elt<mode>): Update schedule type.
13105         (*aarch64_mul3_elt_from_dup<mode>): Likewise.
13106         (*aarch64_fma4_elt_from_dup<mode>): Likewise.
13107         (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
13108         * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
13109         (f, fp): Support HF modes.
13110         * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
13111         vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
13112         vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
13113         vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
13114         vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
13115         vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
13117 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
13119         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
13120         * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
13121         modes.
13122         * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
13123         vfmsq_f16): New.
13125 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
13127         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
13128         * config/aarch64/aarch64-simd.md
13129         (aarch64_rsqrts<mode>): Extend to HF modes.
13130         (fabd<mode>3): Likewise.
13131         (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
13132         (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
13133         (aarch64_<maxmin_uns>p<mode>): Likewise.
13134         (<su><maxmin><mode>3): Likewise.
13135         (<maxmin_uns><mode>3): Likewise.
13136         (<fmaxmin><mode>3): Likewise.
13137         (aarch64_faddp<mode>): Likewise.
13138         (aarch64_fmulx<mode>): Likewise.
13139         (aarch64_frecps<mode>): Likewise.
13140         (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
13141         (add<mode>3): Extend to HF modes.
13142         (sub<mode>3): Likewise.
13143         (mul<mode>3): Likewise.
13144         (div<mode>3): Likewise.
13145         (*div<mode>3): Likewise.
13146         * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
13147         HF, V4HF and V8HF.
13148         * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
13149         * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
13150         vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
13151         vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
13152         vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
13153         vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
13154         vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
13155         vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
13156         vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
13157         vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
13158         vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
13159         vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
13160         vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
13161         vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
13163 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
13165         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
13166         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
13167         * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
13168         (neg<mode>2): Likewise.
13169         (abs<mode>2): Likewise.
13170         (<frint_pattern><mode>2): Likewise.
13171         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
13172         (<optab><VDQF:mode><fcvt_target>2): Likewise.
13173         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
13174         (ftrunc<VDQF:mode>2): Likewise.
13175         (<optab><fcvt_target><VDQF:mode>2): Likewise.
13176         (sqrt<mode>2): Likewise.
13177         (*sqrt<mode>2): Likewise.
13178         (aarch64_frecpe<mode>): Likewise.
13179         (aarch64_cm<optab><mode>): Likewise.
13180         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
13181         HF, V4HF and V8HF.
13182         * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
13183         (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
13184         (stype): New.
13185         * config/aarch64/arm_neon.h (vdup_n_f16): New.
13186         (vdupq_n_f16): Likewise.
13187         (vld1_dup_f16): Use vdup_n_f16.
13188         (vld1q_dup_f16): Use vdupq_n_f16.
13189         (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
13190         vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
13191         vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
13192         vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
13193         vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
13194         vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
13195         vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
13196         vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
13197         vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
13198         vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
13199         vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
13200         vsqrt_f16, vsqrtq_f16): New.
13202 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
13204         * config/aarch64/aarch64-simd.md
13205         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
13206         (aarch64_ext<mode>): Likewise.
13207         (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
13208         * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
13209         aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
13210         and V8HFmode.
13211         * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
13212         float16x8_t.
13213         (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
13214         __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
13215         vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
13216         vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
13217         vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
13218         vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
13219         vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
13220         New.
13221         (vmov_n_f16): Reimplement using vdup_n_f16.
13222         (vmovq_n_f16): Reimplement using vdupq_n_f16..
13224 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
13226         * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
13227         "frame_related_p".  Generate CFA annotation when it's necessary.
13228         (aarch64_expand_prologue): Use aarch64_add_constant.
13229         (aarch64_expand_epilogue): Likewise.
13230         (aarch64_output_mi_thunk): Pass "false" when calling
13231         aarch64_add_constant.
13233 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
13235         * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
13236         sequences.
13238 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
13240         * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
13241         Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
13242         (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
13243         (aarch64_build_constant): Delete.
13245 2016-07-25  Alexander Monakov  <amonakov@ispras.ru>
13247         Revert
13248         2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
13250         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
13251         flag_toplevel_reorder.
13253 2016-07-25  Richard Biener  <rguenther@suse.de>
13255         * cgraph.c (cgraph_node::verify_node): Compare against builtin
13256         by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
13257         * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
13258         * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
13259         (streamer_get_builtin_tree): Likewise.
13260         (streamer_write_builtin): Likewise.
13261         * lto-streamer.h (LTO_builtin_decl): Remove.
13262         * lto-streamer-in.c (lto_read_tree_1): Remove assert.
13263         (lto_input_scc): Remove LTO_builtin_decl handling.
13264         (lto_input_tree_1): Liekwise.
13265         * lto-streamer-out.c (lto_output_tree_1): Remove special
13266         handling of builtins.
13267         (DFS::DFS): Likewise.
13268         * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
13269         * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
13270         assert.
13271         (streamer_write_builtin): Remove.
13273 2016-07-25  Martin Liska  <mliska@suse.cz>
13275         * lto-cgraph.c (input_symtab): Don't call get_working_sets
13276         if flag_auto_profile is set to true.
13278 2016-07-25  Martin Liska  <mliska@suse.cz>
13280         PR gcov-profile/71868
13281         * cfgloopanal.c (expected_loop_iterations_unbounded): When we
13282         have a function with multiple latches, count them all.
13284 2016-07-25  Martin Liska  <mliska@suse.cz>
13286         * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
13288 2016-07-25  Martin Liska  <mliska@suse.cz>
13290         PR tree-optimization/71987
13291         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
13292         just for SSA_NAMEs. Fix GNU coding style.
13294 2016-07-25  Martin Liska  <mliska@suse.cz>
13296         PR gcov-profile/64874
13297         * gcov-io.h: Update command about file format.
13298         * gcov-iov.c (main): Adapt the numbering scheme.
13300 2016-07-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
13302         PR middle-end/66726
13303         * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
13304         whose result is used in PHI.
13305         (final_range_test_p): Likewise.
13306         (maybe_optimize_range_tests): Likewise.
13308 2016-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
13310         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13311         Reformat two multi-line strings.
13313 2016-07-22  Martin Sebor  <msebor@redhat.com>
13315         * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
13317 2016-07-22  Martin Sebor  <msebor@redhat.com>
13319         PR c/71560
13320         * doc/extend.texi (Compound Literals): Correct and clarify.
13321         (Cast to Union): Same.
13323 2016-07-22  Kelvin Nilsen  <kelvin@gcc.gnu.org>
13325         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
13326         comments to explain why certain error messages make mention of
13327         undocumented options.
13328         (rs6000_invalid_builtin): Change error messages to replace mention
13329         of undocumented options with mention of the -mcpu=power9 option
13330         that enables those undocumented options.
13331         * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
13332         (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
13333         definition of this macro to correct an existing error.
13334         * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
13335         mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
13336         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
13337         descriptions of built-in functions so that they depend on
13338         -mcpu=power9 instead of on the corresponding undocumented flags.
13339         * doc/invoke.texi (Option Summary):  Remove all mention of newly
13340         undocumented flags.
13341         (IBM RS/6000 and PowerPC Options): Likewise.
13342         * doc/md.texi (Constraints for Particuliar Machines): Remove all
13343         mention of newly undocumented flags.
13345 2016-07-22  Evgeny Stupachenko  <evstupac@gmail.com>
13347         * ipa-cp.c (determine_versionability): Do not create constprop clones,
13348         when target_clones attribute is set.
13350 2016-07-22  Bin Cheng  <bin.cheng@arm.com>
13352         * common.opt (funsafe-loop-optimizations): Mark ignore.
13353         * doc/invoke.texi (funsafe-loop-optimizations): Remove.
13354         * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
13355         related code.
13356         * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
13357         * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
13359 2016-07-22  Bin Cheng  <bin.cheng@arm.com>
13361         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
13362         Parameter.
13363         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
13364         Parameter.
13365         (number_of_iterations_exit): Warn missed loop optimization for
13366         possible infinite loops.
13368 2016-07-22  Segher Boessenkool  <segher@kernel.crashing.org>
13370         PR target/71216
13371         * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
13372         when to emit a ".machine" pseudo-op.
13374 2016-07-22  Martin Liska  <mliska@suse.cz>
13376         PR gcov-profile/69028
13377         PR gcov-profile/62047
13378         * coverage.c (coverage_compute_lineno_checksum): Do not
13379         calculate checksum for fns w/o xloc.file.
13380         (coverage_compute_profile_id): Likewise.
13382 2016-07-22  Georg-Johann Lay  <avr@gjlay.de>
13384         * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
13385         (avr_secondary_reload): ...and implementation.
13386         (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
13387         * config/avr/avr.md (reload_in<mode>): Remove insns.
13388         (adjust_len) [lpm]: Remove insn attribute value.
13389         * config/avr/predicates.md (flash_operand): Remove insn predicate.
13391 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13393         PR middle-end/71876
13394         * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
13395         attribute.
13396         * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
13397         * calls.c (special_function_p): Remove the special handling of the
13398         "__builtin_" prefix.
13400 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13402         PR middle-end/71876
13403         * calls.c (gimple_maybe_alloca_call_p): New function.  Return true
13404         if STMT may be an alloca call.
13405         (gimple_alloca_call_p, alloca_call_p): Return only true for the
13406         builtin alloca call.
13407         * calls.h (gimple_maybe_alloca_call_p): New function.
13408         * tree-inline.c (inline_forbidden_p_stmt): Use
13409         gimple_maybe_alloca_call_p here.
13411 2016-07-21  David Malcolm  <dmalcolm@redhat.com>
13413         * spellcheck-tree.c (best_macro_match::best_macro_match):
13414         Explictly specify the template arguments when invoking the base
13415         class constructor, to help older C++ compilers.
13417 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
13419         PR sanitizer/71953
13420         * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
13421         before builtin_decl_implicit.
13423 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
13425         * optabs.c (emit_condiitonal_move): Short circuit for identical
13426         sources.
13428 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
13430         * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
13431         max_seq_cost.  Removed fields: then_cost, else_cost, branch_cost.
13432         (noce_conversion_profitable_p): New.
13433         (noce_try_store_flag_constants): Use it.
13434         (noce_try_addcc): Likewise.
13435         (noce_try_store_flag_mask): Likewise.
13436         (noce_try_cmove): Likewise.
13437         (noce_try_cmove_arith): Likewise.
13438         (bb_valid_for_noce_process_p): Add to the cost parameter rather than
13439         overwriting it.
13440         (noce_convert_multiple_sets): Move cost model to here, from...
13441         (bb_ok_for_noce_convert_multiple_sets) ...here.
13442         (noce_process_if_block): Update calls for above changes.
13443         (noce_find_if_block): Record new noce_if_info parameters.
13445 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
13447         * target.def (max_noce_ifcvt_seq_cost): New.
13448         * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
13449         * doc/tm.texi: Regenerate.
13450         * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
13451         * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
13452         * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
13453         (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
13454         * doc/invoke.texi: Document new params.
13456 2016-07-21  Richard Biener  <rguenther@suse.de>
13458         PR tree-optimization/71947
13459         * tree-vrp.c (extract_range_from_assert): Singleton symbolic
13460         ranges have useful limit_vr information.
13462 2016-07-21  Richard Biener  <rguenther@suse.de>
13464         * function-tests.c (build_trivial_generic_function): Set
13465         BLOCK_SUPERCONTEXT of DECL_INITIAL.
13466         * omp-low.c (create_omp_child_function): Likewise.
13467         (grid_expand_target_grid_body): Likewise.
13468         * cgraphunit.c (init_lowered_empty_function): Likewise.
13469         (cgraph_node::expand_thunk): Likewise.
13470         * tree-parloops.c (create_loop_fn): Likewise.
13471         * ipa.c (cgraph_build_static_cdtor_1): Likewise.
13473 2016-07-21  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
13475         * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
13476         in comment.
13478 2016-07-21  Georg-Johann Lay  <avr@gjlay.de>
13480         * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
13481         (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
13482         (*insv.xor-extract, *insv.xor1-bit.0): New insns.
13483         (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
13484         values for insn attribute.
13485         * config/avr/avr.c (avr_out_insert_notbit): New function.
13486         (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
13487         ADJUST_LEN_INSV_NOTBIT_0/_7.
13488         * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
13490 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
13492         * tree-chrec.c (convert_affine_scev): New parameter.  Pass new arg.
13493         (chrec_convert_1, chrec_convert): Ditto.
13494         * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
13495         * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
13496         * tree-vrp.c (adjust_range_with_scev): Ditto.
13497         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
13498         (scev_var_range_cant_overflow): New function.
13499         (scev_probably_wraps_p): New parameter.  Call above function.
13500         * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
13502 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
13504         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
13505         by removing computation of may_be_zero.
13507 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
13509         * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
13511 2016-07-21  Andrew Sutton  <andrew.n.sutton@gmail.com>
13513         Improving concepts performance and diagnostics.
13514         * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
13515         for constraint satisfaction and subsumption.
13516         * timevar.h (auto_timevar): New constructor that matches the push/pop
13517         pattern of usage in pt.c.
13519 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
13521         * hwint.h (HOST_WIDE_INT_0): New define.
13522         (HOST_WIDE_INT_0U): Ditto.
13523         * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
13524         * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
13525         * simplify-rtx.c: Ditto.
13526         * tree-object-size.c: Ditto.
13528 2016-07-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13530         * config/s390/s390.c (s390_encode_section_info): Remove mode size
13531         check.
13533 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
13535         * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
13536         * combine.c: Use HOST_WIDE_INT_M1U instead of
13537         ~(unsigned HOST_WIDE_INT) 0.
13538         * double-int.h: Ditto.
13539         * dse.c: Ditto.
13540         * dwarf2asm.c:Ditto.
13541         * expmed.c: Ditto.
13542         * genmodes.c: Ditto.
13543         * match.pd: Ditto.
13544         * read-rtl.c: Ditto.
13545         * tree-ssa-loop-ivopts.c: Ditto.
13546         * tree-ssa-loop-prefetch.c: Ditto.
13547         * tree-vect-generic.c: Ditto.
13548         * tree-vect-patterns.c: Ditto.
13549         * tree.c: Ditto.
13551 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
13553         * config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
13554         constant addresses outside [0,0xc0] into a register.
13555         (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn.  And handle
13556         cases where the base address register is unused after.
13557         (avr_out_movhi_r_mr_reg_disp_tiny): Same.
13558         (avr_out_movhi_mr_r_reg_disp_tiny): Same.
13559         (avr_out_store_psi_reg_disp_tiny): Same.
13561 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
13563         Implement attribute progmem on reduced Tiny cores by adding
13564         flash offset 0x4000 to respective symbols.
13566         PR target/71948
13567         * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
13568         documentation how it works on reduced Tiny cores.
13569         (AVR Named Address Spaces): No support for reduced Tiny.
13570         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
13571         (avr_address_tiny_pm_p): New static function.
13572         (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
13573         if the address is in progmem.
13574         (avr_assemble_integer): Same.
13575         (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
13576         for symbol_ref in progmem.
13577         * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
13578         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
13579         magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
13581 2016-07-20  Patrick Palka  <ppalka@gcc.gnu.org>
13583         * configure.ac (thin_archive_support): New variable.  AC_SUBST it.
13584         * configure: Regenerate.
13585         * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
13586         (USE_THIN_ARCHIVES): New variable.
13587         (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
13588         this archive as a thin archive.
13590 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
13592         * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
13593         same location as last time, don't skip if we have fix-it hints.
13594         Clarify the skipping logic by converting it from one "if" clause
13595         to repeated "if" clauses.
13596         * spellcheck-tree.c: Include "cpplib.h".
13597         (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
13598         (best_macro_match::best_macro_match): New constructor.
13599         * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
13600         Move here from c/c-decl.c.
13601         (class best_macro_match): Move here from c/c-decl.c, converting
13602         from a typedef to a subclass, gaining a ctor.
13604 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
13606         * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
13607         * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
13608         define...
13609         (avr_addr_space_diagnose_usage): ...and implementation.
13610         (avr_addr_space_supported_p): New function.
13611         (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
13612         report bad address space usage if that space is supported.
13613         (avr_insert_attributes): Same.  No more complain about unsupported
13614         address spaces.
13615         * config/avr/avr-c.c (tm_p.h): Include it.
13616         (avr_cpu_cpp_builtins): Only define addr-space related built-in
13617         macro if avr_addr_space_supported_p.
13619 2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
13621         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
13622         flag_toplevel_reorder.
13624 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
13626         * gcc-rich-location.c
13627         (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
13628         a const char *.
13629         * gcc-rich-location.h
13630         (gcc_rich_location::add_fixit_misspelled_id): Likewise.
13632 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
13634         * target.def (addr_space): Add new diagnose_usage to hook vector.
13635         * targhooks.c (default_addr_space_diagnose_usage): Add default
13636         implementation and...
13637         * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
13638         * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
13639         is some address space, call targetm.addr_space.diagnose_usage.
13640         * doc/tm.texi.in (Named Address Spaces): Add anchor for
13641         TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
13642         * doc/tm.texi: Regenerate.
13644 2016-07-20  Martin Liska  <mliska@suse.cz>
13646         PR middle-end/71898
13647         * graphite-isl-ast-to-gimple.c (later_of_the_two):
13648         Properly handly PHI stmts.
13650 2016-07-20  Bin Cheng  <bin.cheng@arm.com>
13652         PR tree-optimization/71503
13653         PR tree-optimization/71683
13654         * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
13655         and break.
13657 2016-07-20  Martin Liska  <mliska@suse.cz>
13659         * doc/invoke.texi (-fipa-ra): Document when the option is
13660         disabled. Fix a typo.
13662 2016-07-20  Martin Liska  <mliska@suse.cz>
13664         * Makefile.in: Include fibonacci_heap.c
13665         * fibonacci_heap.c: New file.
13666         * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
13667         (fibonacci_heap::union_with): Fix deletion of the second heap.
13668         * selftest-run-tests.c (selftest::run_tests): Incorporate
13669         fibonacci heap tests.
13670         * selftest.h: Declare fibonacci_heap_c_tests.
13672 2016-07-20  Martin Liska  <mliska@suse.cz>
13674         * selftest-run-tests.c (selftest::run_tests): New function.
13675         * selftest.h (sreal_c_tests): Declare.
13676         * sreal.c (sreal_verify_basics): New function.
13677         (verify_aritmetics): Likewise.
13678         (sreal_verify_arithmetics): Likewise.
13679         (verify_shifting): Likewise.
13680         (sreal_verify_shifting): Likewise.
13681         (void sreal_c_tests): Likewise.
13683 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
13685         PR rtl-optimization/71916
13686         * cfgrtl.c (contains_no_active_insn_p): Return false also for
13687         bb which have a single succ fake edge.
13689 2016-07-19  Aldy Hernandez  <aldyh@redhat.com>
13691         PR debug/71855
13692         * dwarf2out.c (gen_subprogram_die): Only call
13693         gen_unspecified_parameters_die while dumping early dwarf.
13695 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
13697         PR middle-end/71874
13698         * gimple-fold.c (fold_builtin_memory_op): Use
13699         get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
13701 2016-07-19  Uros Bizjak  <ubizjak@gmail.com>
13703         * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
13704         HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
13705         HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
13706         HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
13707         * combine.c: Ditto.
13708         * cse.c: Ditto.
13709         * dojump.c: Ditto.
13710         * double-int.c: Ditto.
13711         * dse.c: Ditto.
13712         * dwarf2out.c: Ditto.
13713         * expmed.c: Ditto.
13714         * expr.c: Ditto.
13715         * fold-const.c: Ditto.
13716         * function.c: Ditto.
13717         * fwprop.c: Ditto.
13718         * genmodes.c: Ditto.
13719         * hwint.c: Ditto.
13720         * hwint.h: Ditto.
13721         * ifcvt.c: Ditto.
13722         * loop-doloop.c: Ditto.
13723         * loop-invariant.c: Ditto.
13724         * loop-iv.c: Ditto.
13725         * match.pd: Ditto.
13726         * optabs.c: Ditto.
13727         * real.c: Ditto.
13728         * reload.c: Ditto.
13729         * rtlanal.c: Ditto.
13730         * simplify-rtx.c: Ditto.
13731         * stor-layout.c: Ditto.
13732         * toplev.c: Ditto.
13733         * tree-ssa-loop-ivopts.c: Ditto.
13734         * tree-vect-generic.c: Ditto.
13735         * tree-vect-patterns.c: Ditto.
13736         * tree.c: Ditto.
13737         * tree.h: Ditto.
13738         * ubsan.c: Ditto.
13739         * varasm.c: Ditto.
13740         * wide-int-print.cc: Ditto.
13741         * wide-int.cc: Ditto.
13742         * wide-int.h: Ditto.
13744 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
13746         * selftest.c (selftest::assert_streq): Handle NULL values of
13747         val_actual and val_expected.
13749 2016-07-19  Martin Jambor  <mjambor@suse.cz>
13751         PR fortran/71688
13752         * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
13753         rather than cgraph_create_node to get a call graph node.
13755 2016-07-19  Richard Biener  <rguenther@suse.de>
13757         * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
13758         handle all tcc_constant bases and valueize SSA names.
13759         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
13760         tcc_constant bases.
13762 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
13764         * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
13765         the flags of the exit block and bb2, not just the entry block.
13767 2016-07-19  Richard Biener  <rguenther@suse.de>
13769         PR tree-optimization/71901
13770         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
13771         align member, group stuff with the bitfield.
13772         (vn_ref_op_align_unit): New inline.
13773         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
13774         record element alignment and operand 3 unchanged.
13775         (ao_ref_init_from_vn_reference): Adjust.
13776         (valueize_refs_1): Likewise.
13777         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
13779 2016-07-19  Richard Biener  <rguenther@suse.de>
13781         PR tree-optimization/71908
13782         * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
13783         symbolic constants in a more reliable way.
13785 2016-07-19  Ilya Enkovich  <ilya.enkovich@intel.com>
13787         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
13788         comment.
13789         (vect_update_inits_of_drs): Likewise.
13790         (vect_create_cond_for_alias_checks): Likewise.
13791         * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
13793 2016-07-19  Richard Biener  <rguenther@suse.de>
13795         PR lto/71907
13796         * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
13797         with an abstract origin that is not an inlined function outer
13798         scope add a self-reference as abstract origin.
13799         * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
13801 2016-07-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
13803         PR target/71493
13804         * config/rs6000/rs6000.c (rs6000_function_value): Fix
13805         unintentional System V.4 structure return breakage for structures
13806         with a single floating point element.
13808 2016-07-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
13810         PR tree-optimization/71734
13811         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
13812         contains REF, use it to check safelen, assume that safelen value
13813         must be greater 1, fix style.
13814         (ref_indep_loop_p_2): Add REF_LOOP argument.
13815         (ref_indep_loop_p): Pass LOOP as additional argument to
13816         ref_indep_loop_p_2.
13818 2016-07-18  Dominik Vogt  <vogt@linux.vnet.ibm.com>
13820         * cfgexpand.c (expand_stack_vars): Implement synamic stack space
13821         allocation in the prologue.
13822         * explow.c (get_dynamic_stack_base): New function to return an address
13823         expression for the dynamic stack base.
13824         (get_dynamic_stack_size): New function to do the required dynamic stack
13825         space size calculations.
13826         (allocate_dynamic_stack_space): Use new functions.
13827         (align_dynamic_address): Move some code from
13828         allocate_dynamic_stack_space to new function.
13829         * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
13831 2016-07-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13833         * config/s390/s390.c (s390_encode_section_info): Always set
13834         notaligned marker if mode size is 0 or no MEM_ALIGN info could be
13835         found.
13837 2016-07-18  Richard Biener  <rguenther@suse.de>
13839         PR tree-optimization/71893
13840         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
13841         for sizetype cast added by array_ref_element_size.
13842         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
13844 2016-07-16  John David Anglin  <danglin@gcc.gnu.org>
13846         * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
13847         register parameters.  Remove code to initialize argument pointer
13848         on TARGET_64BIT.  Optimize call to _mcount when it can be reached
13849         using a pc-relative branch.  Cleanup conditional code.
13850         * config/pa/pa.md (call_mcount): New expander.
13851         (call_mcount_nonpic): New insn.
13852         (call_mcount_pic): New insn and split.
13853         (call_mcount_pic_post_reload): New insn.
13854         (call_mcount_64bit): New insn and split.
13855         (call_mcount_64bit_post_reload): New insn.
13857 2016-07-15  Georg-Johann Lay  <avr@gjlay.de>
13859         * config/avr/predicates.md (const_m255_to_m1_operand): New.
13860         * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
13861         * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
13862         (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
13863         (*usum_widenqihi3, *udiff_widenqihi3)
13864         (*addhi3_zero_extend.const): New combiner insns.
13865         (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
13866         just 1 bit is affected.
13867         * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
13868         (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
13870 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
13872         * omp-low.c (lower_omp_target): Mark data clauses with
13873         GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
13874         zero-length subarrays.
13876 2016-07-15  Richard Biener  <rguenther@suse.de>
13878         PR tree-optimization/71881
13879         * tree-loop-distribution.c (destroy_loop): Remove blocks in
13880         reverse DOM order to make debug temp generation happy.
13882 2016-07-15  Richard Biener  <rguenther@suse.de>
13884         PR tree-optimization/71887
13885         * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
13886         verify it is not zero for division / modulo handling.
13887         (value_replacement): Adjust.
13889 2016-07-15  Virendra Pathak  <virendra.pathak@broadcom.com>
13890             Julian Brown  <julian@codesourcery.com>
13892         * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
13893         * config/aarch64/aarch64-cost-tables.h
13894         (vulcan_extra_costs): New variable.
13895         * config/aarch64/aarch64.c
13896         (vulcan_addrcost_table): Likewise.
13897         (vulcan_regmove_cost): Likewise.
13898         (vulcan_vector_cost): Likewise.
13899         (vulcan_branch_cost): Likewise.
13900         (vulcan_tunings): Likewise.
13902 2016-07-15  Alexander Monakov  <amonakov@ispras.ru>
13904         * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
13905         (output_in_order): Loop over undefined variables too.  Output them
13906         via assemble_undefined_decl.  Skip variables that correspond to hard
13907         registers or have value-exprs.
13908         * varpool.c (symbol_table::output_variables): Handle undefined
13909         variables together with defined ones.
13911 2016-07-15  Richard Biener  <rguenther@suse.de>
13913         * tree-ssa-pre.c (get_representative_for): Make sure to return
13914         the value number of SSA names.
13915         (phi_translate_1): get_representative_for cannot return NULL.
13916         (do_pre_regular_insertion): Remove redundant call to
13917         fully_constant_expression.
13918         (do_pre_partial_partial_insertion): Likewise.
13920 2016-07-15  Bin Cheng  <bin.cheng@arm.com>
13922         * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
13923         (derive_simple_iv_with_niters): New function.
13924         (simple_iv): Rewrite using simple_iv_with_niters.
13925         * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
13926         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
13927         function.
13928         (number_of_iterations_exit): Rewrite using above function.
13929         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
13930         Decl.
13932 2016-07-15  Richard Biener  <rguenther@suse.de>
13934         * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
13935         vec_construct cost.
13937 2016-07-14  Jakub Jelinek  <jakub@redhat.com>
13939         PR tree-optimization/71872
13940         * tree-data-ref.c (get_references_in_stmt): Ignore references
13941         with is_gimple_constant get_base_address.
13943 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13945         * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
13946         (TARGET_HAVE_LDACQD): New macro.
13947         * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
13948         than TARGET_HAVE_LDACQ.
13949         (arm_load_acquire_exclusivedi): Likewise.
13950         (arm_store_release_exclusivedi): Likewise.
13952 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13954         PR rtl-optimization/71878
13955         * lra-constraints.c (match_reload): Pass information about other
13956         output operands.  Create new unique register value if matching input
13957         operand shares same register value as output operand being considered.
13958         (curr_insn_transform): Record output operands already processed.
13960 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13962         PR target/65951
13963         PR tree-optimization/70923
13964         * tree-vect-patterns.c: Include mult-synthesis.h.
13965         (target_supports_mult_synth_alg): New function.
13966         (synth_lshift_by_additions): Likewise.
13967         (apply_binop_and_append_stmt): Likewise.
13968         (vect_synth_mult_by_constant): Likewise.
13969         (target_has_vecop_for_code): Likewise.
13970         (vect_recog_mult_pattern): Use above functions to synthesize vector
13971         multiplication by integer constants.
13973 2016-07-14  Alan Modra  <amodra@gmail.com>
13975         * config/rs6000/altivec.md (altivec_mov<mode>): Disparage
13976         gpr alternatives.  Correct '*' placement on Y,r alternative.
13977         Add '*' on operand 1 of r,r alternative.
13979 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13981         * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
13982         * expmed.h: ... Here.
13984 2016-07-14  Jan Hubicka  <hubicka@ucw.cz>
13986         * gimple.h (stmt_can_terminate_bb_p): New function.
13987         * tree-cfg.c (need_fake_edge_p): Rename to ...
13988         (stmt_can_terminate_bb_p): ... this; return true if stmt can
13989         throw external; handle const and pure calls.
13990         * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
13992 2016-07-14  Richard Biener  <rguenther@suse.de>
13994         PR tree-optimization/71866
13995         * tree-ssa-pre.c (get_constant_for_value_id): Remove.
13996         (do_hoist_insertion): Avoid endless recursion when we
13997         didn't insert anything because we managed to simplify
13998         things down to a constant or SSA name.
13999         (fully_constant_expression): Re-write in terms of ...
14000         * tree-ssa-sccvn.h (vn_nary_simplify): ... this.  Declare.
14001         * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
14002         vn_nary_build_or_lookup_1.
14003         (vn_nary_build_or_lookup_1): Added flag and renamed from ...
14004         (vn_nary_build_or_lookup): ... this which now wraps it.
14006 2016-07-14  Alan Modra  <amodra@gmail.com>
14008         PR target/71733
14009         * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
14010         with p9_vector override before power9-dform override.
14012 2016-07-13  Andi Kleen  <ak@linux.intel.com>
14014         * value-prof.c (gimple_value_profile_transformations): Don't run
14015         when auto_profile is on.
14017 2016-07-13  Andi Kleen  <ak@linux.intel.com>
14019         * auto-profile.c (update_inlined_ind_target,
14020         afdo_indirect_call): Print information to dump file.
14022 2016-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
14024         * genrecog.c (special_predicate_operand_p): New function.
14025         (predicate_name): Move function.
14026         (validate_pattern): Don't warn about missing mode for all
14027         define_special_predicate predicates.
14029 2016-07-13  Bin Cheng  <bin.cheng@arm.com>
14031         * tree-vect-data-refs.c (vect_no_alias_p): New function.
14032         (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
14033         resolve alias checks which are known at compilation time.
14034         Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
14035         alias checks are resolved.  Move dump info for too many runtime
14036         alias checks to here...
14037         * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
14039 2016-07-13  Richard Biener  <rguenther@suse.de>
14041         PR tree-optimization/24574
14042         * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
14043         position and add shift, rotate, divison and modulo support
14044         for left zero.
14045         (value_replacement): Pass in argument position to absorbing_element_p.
14047 2016-07-13  Ilya Enkovich  <ilya.enkovich@intel.com>
14049         PR ipa/71633
14050         * ipa-inline-transform.c (inline_call): Support
14051         instrumented thunks.
14053 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14055         * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
14056         (TARGET_IDIV): Set for all Thumb targets provided they have hardware
14057         divide feature.
14058         * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
14059         Baseline.  Make initial alternative TARGET_32BIT only.
14060         (udivsi3): Likewise.
14061         * config/arm/thumb1.md (thumb1_cbz): New define_insn.
14062         * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
14063         target.
14065 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14067         * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
14068         * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
14069         availability with TARGET_HAVE_MOVT.
14070         (thumb_legitimate_constant_p): Strip the high part of a label_ref.
14071         (thumb1_rtx_costs): Also return 0 if setting a half word constant and
14072         MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
14073         UINTVAL.
14074         (thumb1_size_rtx_costs): Make set of half word constant also cost 1
14075         extra instruction if MOVW is available.  Use a cost variable
14076         incremented by COSTS_N_INSNS (1) when the condition match rather than
14077         returning an arithmetic expression based on COSTS_N_INSNS.  Make
14078         constant with bottom half word zero cost 2 instruction if MOVW is
14079         available.
14080         * config/arm/arm.md (define_attr "arch"): Add v8mb.
14081         (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
14082         target is ARMv8-M Baseline.
14083         (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
14084         (arm_movtas_ze): Likewise.
14085         * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
14086         alternative for constants satisfying j constraint.
14087         (thumb1_movsi_insn): Likewise.
14088         (movsi splitter for K alternative): Tighten condition to not trigger
14089         if movt is available and j constraint is satisfied.
14090         (Pe immediate splitter): Likewise.
14091         (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
14092         constant fitting in an halfword to use MOVW.
14093         * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
14094         effective target.
14096 2016-07-13  Richard Biener  <rguenther@suse.de>
14098         PR middle-end/71104
14099         * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
14100         gimplifying the LHS.  Make sure to gimplify a returning twice
14101         call LHS without using SSA names.
14103 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14105         * tree-data-ref.c (find_data_references_in_stmt): Remove
14106         unnecessary call to vec::release.
14107         (graphite_find_data_references_in_stmt): Likewise.
14108         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
14109         * tree-vect-stmts.c (vectorizable_condition): Likewise.
14111 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14113         * cfgexpand.c (expand_used_vars): Make the type of a local
14114         variable auto_vec.
14115         * genmatch.c (lower_for): Likewise.
14116         * haifa-sched.c (haifa_sched_init): Likewise.
14117         (add_to_speculative_block): Likewise.
14118         (create_check_block_twin): Likewise.
14119         * predict.c (handle_missing_profiles): Likewise.
14120         * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
14121         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
14122         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
14123         Likewise.
14124         (maybe_lower_iteration_bound): Likewise.
14125         * tree-ssa-sccvn.c (DFS): Likewise.
14126         * tree-stdarg.c (reachable_at_most_once): Likewise.
14127         * tree-vect-stmts.c (vectorizable_conversion): Likewise.
14128         (vectorizable_store): Likewise.
14130 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14132         * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
14133         (sccvn_dom_walker): make cond_stack an auto_vec.
14135 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14137         * ree.c (struct ext_state): Make type of members auto_vec.
14138         (find_and_remove_re): Adjust.
14140 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14142         * cfgexpand.c (struct stack_vars_data): Make type of fields
14143         auto_vec.
14144         (expand_used_vars): Adjust.
14146 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14148         * ipa.c (record_cdtor_fn): Adjust.
14149         (build_cdtor_fns): Likewise.
14150         (ipa_cdtor_merge): Make static_ctors and static_dtors local
14151         variables.
14153 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14155         * genextract.c (struct accum_extract): Add constructor and make
14156         members auto_vec.
14157         (gen_insn): Adjust.
14159 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14161         * tree.c (struct free_lang_data_d): Add constructor and change
14162         types of members to ones that automatically manage resources.
14163         (fld_worklist_push): Adjust.
14164         (find_decls_types): Likewise.
14165         (find_decls_types_in_eh_region): Likewise.
14166         (free_lang_data_in_cgraph): Stop manually creating and
14167         destroying members of free_lang_data_d.
14169 2016-07-13  Uros Bizjak  <ubizjak@gmail.com>
14171         PR rtl-optimization/68961
14172         * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
14173         peephole variant.  Use sse_reg_operand predicates.
14175 2016-07-12  Uros Bizjak  <ubizjak@gmail.com>
14177         * config/i386/predicates.md (x86_64_immediate_operand)
14178         <case CONST_INT>: Remove unneeded truncation to DImode.
14179         <case CONST>: Ditto.
14180         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
14182 2016-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
14184         PR target/71805
14185         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
14186         The xxperm and xxpermr instructions require that the 2nd input
14187         operand overlap with the output operand, and not the 1st.
14188         (altivec_vperm_v8hiv16qi): Likewise.
14189         (altivec_vperm_<mode>_uns_internal): Likewise.
14190         (altivec_vpermr_<mode>_internal): Likewise.
14191         (vperm_v8hiv4si): Likewise.
14192         (vperm_v16qiv8hi): Likewise.
14194 2016-07-12  Nathan Sidwell  <nathan@acm.org>
14196         * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
14197         when -mno-pic-data-is-text-relative is in effect, by default.
14198         * doc/invoke.texi (mpic-data-is-text-relative): Document new
14199         behavior and clarify.
14201 2016-07-12  Martin Liska  <mliska@suse.cz>
14203         * params.def: Add avg-loop niter.
14204         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
14205         * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
14206         * doc/invoke.texi: Document the new parameter.
14208 2016-07-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14210         PR middle-end/71700
14211         * expr.c (store_constructor): Mask sign-extended bits when widening
14212         sub-word constructor element at the start of a word.
14214 2016-07-12  Martin Liska  <mliska@suse.cz>
14216         * Makefile.in: Append rule for params-options.h.
14217         * params-options.h: New file.
14219 2016-07-12  Martin Liska  <mliska@suse.cz>
14221         * ira-build.c (mark_loops_for_removal): Properly iterate
14222         loops.
14224 2016-07-12  Steven Bosscher  <steven@gcc.gnu.org>
14225             Richard Biener  <rguenther@suse.de>
14227         PR tree-optimization/23286
14228         PR tree-optimization/70159
14229         * doc/invoke.texi: Document -fcode-hoisting.
14230         * common.opt (fcode-hoisting): New flag.
14231         * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
14232         * tree-ssa-pre.c (pre_stats): Add hoist_insert.
14233         (do_regular_insertion): Rename to ...
14234         (do_pre_regular_insertion): ... this and amend general comments
14235         on insertion strathegy.
14236         (do_partial_partial_insertion): Rename to ...
14237         (do_pre_partial_partial_insertion): ... this.
14238         (do_hoist_insertion): New function.
14239         (insert_aux): Take flags on whether to do PRE and/or hoist insertion
14240         and call do_hoist_insertion properly.
14241         (insert): Adjust.
14242         (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
14243         (pass_pre::execute): Register hoist_insert stats.
14245 2016-07-12  Jakub Jelinek  <jakub@redhat.com>
14247         PR middle-end/71716
14248         * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
14249         for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
14250         is different from mode's bitsize.  Small cleanup.
14252 2016-07-12  Richard Biener  <rguenther@suse.de>
14254         PR rtl-optimization/68961
14255         * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
14256         to simplify to a non-constant.
14258 2016-07-11  Jakub Jelinek  <jakub@redhat.com>
14260         PR middle-end/71758
14261         * omp-low.c (expand_omp_target): Gimplify device.
14263         PR tree-optimization/71823
14264         * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
14265         to get vec_oprnds2 from op2.
14267 2016-07-11  Uros Bizjak  <ubizjak@gmail.com>
14269         * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
14270         Hoist common subexpressions.
14271         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
14273 2016-07-11  Pat Haugen  <pthaugen@us.ibm.com>
14275         PR target/71800
14276         * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
14277         prevent generation of 'stxsiwx' on pre Power8 hardware.
14279 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
14281         * input.c: Include cpplib.h.
14282         (selftest::temp_source_file): New class.
14283         (selftest::temp_source_file::temp_source_file): New ctor.
14284         (selftest::temp_source_file::~temp_source_file): New dtor.
14285         (selftest::should_have_column_data_p): New function.
14286         (selftest::test_should_have_column_data_p): New function.
14287         (selftest::temp_line_table): New class.
14288         (selftest::temp_line_table::temp_line_table): New ctor.
14289         (selftest::temp_line_table::~temp_line_table): New dtor.
14290         (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
14291         it to create a temp_line_table.
14292         (selftest::assert_loceq): Only verify LOCATION_COLUMN for
14293         locations that are known to have column data.
14294         (selftest::line_table_case): New struct.
14295         (selftest::test_reading_source_line): Move tempfile handling
14296         to class temp_source_file.
14297         (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
14298         (selftest::assert_token_loc_eq): New function.
14299         (ASSERT_TOKEN_LOC_EQ): New macro.
14300         (selftest::test_lexer): New function.
14301         (selftest::boundary_locations): New array.
14302         (selftest::input_c_tests): Call test_should_have_column_data_p.
14303         Loop over a test matrix of interesting values of location and
14304         default_range_bits, calling test_lexer on each case in the matrix.
14305         Move call to test_accessing_ordinary_linemaps into the matrix.
14306         * selftest.h (ASSERT_EQ): Reimplement in terms of...
14307         (ASSERT_EQ_AT): New macro.
14309 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
14311         PR target/71801
14312         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
14313         Don't convert TImode in debug insn.
14315 2016-07-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14317         Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
14318         * tree-core.h (tree_base::nothrow_flag): Adjust comment.
14319         (tree_type_common::lang_flag_7): New.
14320         (tree_type_common::spare): Reduce size.
14321         * tree.h (TYPE_ALIGN_OK): Remove.
14322         (TYPE_LANG_FLAG_7): New.
14323         (get_inner_reference): Adjust header.
14324         * print-tree.c (print_node): Adjust.
14325         * expr.c (get_inner_reference): Remove parameter keep_aligning.
14326         (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
14327         calls to get_inner_reference.
14328         (expand_expr_real_1): Adjust call to get_inner_reference.  Remove
14329         handling of TYPE_ALIGN_OK.
14330         * builtins.c (get_object_alignment_2): Adjust call to
14331         get_inner_reference.  Remove handling of VIEW_CONVERT_EXPR.
14332         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
14333         TYPE_ALIGN_OK.
14334         * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
14335         * cfgexpand.c (expand_debug_expr): Likewise.
14336         * dbxout.c (dbxout_expand_expr): Likewise.
14337         * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
14338         loc_list_from_tree, fortran_common): Likewise.
14339         * fold-const.c (optimize_bit_field_compare,
14340         decode_field_reference, fold_unary_loc, fold_comparison,
14341         split_address_to_core_and_offset): Likewise.
14342         * gimple-laddress.c (execute): Likewise.
14343         * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
14344         * gimplify.c (gimplify_scan_omp_clauses): Likewise.
14345         * hsa-gen.c (gen_hsa_addr): Likewise.
14346         * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
14347         * tsan.c (instrument_expr): Likewise.
14348         * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
14349         * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
14350         * tree-affine.c (tree_to_aff_combination,
14351         get_inner_reference_aff): Adjust calls to get_inner_reference.
14352         * tree-data-ref.c (split_constant_offset_1,
14353         dr_analyze_innermost): Likewise.
14354         * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
14355         * tree-sra.c (ipa_sra_check_caller): Likewise.
14356         * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
14357         * tree-ssa-math-opts.c (find_bswap_or_nop_load,
14358         bswap_replace): Likewise.
14359         * tree-vect-data-refs.c (vect_check_gather,
14360         vect_analyze_data_refs): Likewise.
14361         * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
14362         * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
14363         TYPE_ALIGN_OK.
14365 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
14367         * Makefile.in (selftest-valgrind): New phony target.
14368         * function-tests.c (selftest::build_cfg): Delete pass instances
14369         created by the test.
14370         (selftest::convert_to_ssa): Likewise.
14371         (selftest::test_expansion_to_rtl): Likewise.
14372         * tree-cfg.c (selftest::test_linear_chain): Release dominator
14373         vectors.
14374         (selftest::test_diamond): Likewise.
14376 2016-07-11  Richard Biener  <rguenther@suse.de>
14378         PR tree-optimization/71816
14379         * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
14380         than replacing all of its operands.
14382 2016-07-11  Alan Modra  <amodra@gmail.com>
14384         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
14385         (ctr<mode>): Add unspec.
14386         (ctr<mode>_internal*): Likewise.
14388 2016-07-08  James Bowman  <james.bowman@ftdichip.com>
14390         * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
14391         * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
14393 2016-07-08  Vladimir Makarov  <vmakarov@redhat.com>
14395         PR rtl-optimization/71621
14396         * lra-constraints.c (process_alt_operands): Check combination of
14397         reg class and mode.
14399 2016-07-08  Jason Merrill  <jason@redhat.com>
14400             Richard Biener  <rguenther@suse.de>
14402         P0145: Refining Expression Order for C++.
14403         * gimplify.c (initial_rhs_predicate_for): New.
14404         (gimplfy_modify_expr): Gimplify RHS before LHS.
14406 2016-07-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14408         PR target/71297
14409         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
14410         Allow standard error handling to take over when a wrong number
14411         of arguments is presented to __builtin_vec_ld () or
14412         __builtin_vec_st ().
14414 2016-07-08  Jiong Wang  <jiong.wang@arm.com>
14416         * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
14417         variants.
14418         (smin): Likewise.
14419         (fmax): New entry.
14420         (fmin): Likewise.
14421         * config/aarch64/arm_neon.h (vmaxnm_f32): Use
14422         __builtin_aarch64_fmaxv2sf.
14423         (vmaxnmq_f32): Likewise.
14424         (vmaxnmq_f64): Likewise.
14425         (vminnm_f32): Likewise.
14426         (vminnmq_f32): Likewise.
14427         (vminnmq_f64): Likewise.
14429 2016-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
14431         PR target/71806
14432         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
14433         enable -mfloat128-hardware by default.
14434         (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
14435         that IEEE 128-bit hardware support needs.
14436         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
14437         -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
14438         Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
14439         floating point requires.
14440         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
14441         -mfloat128 and -mfloat128-hardware changes.
14443 2016-07-08  Alan Hayward  <alan.hayward@arm.com>
14445         PR tree-optimization/71667
14446         * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
14448 2016-07-08  Martin Liska  <mliska@suse.cz>
14450         PR middle-end/71606
14451         * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
14452         folding produces SAVE_EXPRs, thus return false for the type.
14454 2016-07-07  Martin Liska  <mliska@suse.cz>
14456         * file-find.c (remove_prefix): New function.
14457         * file-find.h (remove_prefix): Declare the function.
14458         * gcc-ar.c (main): Skip a folder of the wrapper if
14459         a wrapped binary would point to the same file.
14461 2016-07-07  Jan Hubicka  <jh@suse.cz>
14463         * tree-scalar-evolution.c (iv_can_overflow_p): export.
14464         * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
14465         * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
14467 2016-07-07  Ilya Enkovich  <ilya.enkovich@intel.com>
14469         PR ipa/71624
14470         * ipa-inline-analysis.c (compute_inline_parameters): Set
14471         local.can_change_signature to false for intrumentation
14472         thunk callees.
14474 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14476         * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
14477         with TARGET_HAVE_MOVT.
14478         (TARGET_HAVE_MOVT): Define.
14479         * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
14480         availability with TARGET_HAVE_MOVT.
14481         * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
14482         availability.
14483         (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
14484         TARGET_THUMB2.
14485         (symbol_refs movsi splitter): Remove TARGET_32BIT check.
14486         (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
14487         * config/arm/constraints.md (define_constraint "j"): Use
14488         TARGET_HAVE_MOVT to check MOVT availability.
14490 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14492         * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
14494 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14496         * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
14497         (armv8-m.main): Likewise.
14498         (armv8-m.main+dsp): Likewise.
14499         * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
14500         (FL_FOR_ARCH8M_MAIN): Likewise.
14501         * config/arm/arm-tables.opt: Regenerate.
14502         * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
14503         armv8-m.main+dsp to BE8_LINK_SPEC.
14504         * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
14505         (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
14506         * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
14507         Baseline and Mainline.
14508         (arm_option_override_internal): Also disable arm_restrict_it when
14509         !arm_arch_notm.  Update comment for -munaligned-access to also cover
14510         ARMv8-M Baseline.
14511         (arm_file_start): Increase buffer size for printing architecture name.
14512         * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
14513         and armv8-m.main+dsp.
14514         (mno-unaligned-access): Clarify that this is disabled by default for
14515         ARMv8-M Baseline architectures as well.
14517 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14519         * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
14520         decide whether to prevent some libgcc routines being included for some
14521         multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
14522         link between this condition and the one in
14523         libgcc/config/arm/lib1func.S.
14525 2016-07-07  Richard Biener  <rguenther@suse.de>
14527         * tree-ssa-pre.c: Include alias.h.
14528         (compute_avail): If we have multiple VN_REFERENCEs with the
14529         same hashtable entry adjust that to make it a valid replacement
14530         for all of them with respect to alignment and aliasing
14531         when doing insertion.
14532         * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
14533         * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
14535 2016-07-06  Segher Boessenkool  <segher@kernel.crashing.org>
14537         PR target/70098
14538         PR target/71763
14539         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
14540         *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
14541         constraint.
14543 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14545         * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
14546         (adjust_mems): Adjust.
14547         (adjust_insn): Likewise.
14548         (prepare_call_arguments): Likewise.
14550 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14552         * gcse.c (struct ls_expr): Make stores field a vector.
14553         (ldst_entry): Adjust.
14554         (free_ldst_entry): Likewise.
14555         (print_ldst_list): Likewise.
14556         (compute_ld_motion_mems): Likewise.
14557         (update_ld_motion_stores): Likewise.
14559 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14561         * gcse.c (struct ls_expr): Remove loads field.
14562         (ldst_entry): Adjust.
14563         (free_ldst_entry): Likewise.
14564         (print_ldst_list): Likewise.
14565         (compute_ld_motion_mems): Likewise.
14567 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14569         * store-motion.c (struct st_expr): Make antic_stores a vector.
14570         (st_expr_entry): Adjust.
14571         (free_st_expr_entry): Likewise.
14572         (print_store_motion_mems): Likewise.
14573         (find_moveable_store): Likewise.
14574         (compute_store_table): Likewise.
14575         (remove_reachable_equiv_notes): Likewise.
14576         (replace_store_insn): Likewise.
14577         (build_store_vectors): Likewise.
14579 2016-07-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14581         * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
14582         cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
14584 2016-07-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
14586         PR tree-optimization/71518
14587         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
14588         misalign also for outer loops with negative step.
14590 2016-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
14592         * config/arm/cortex-a53.md: Use final_presence_set for in-order.
14593         (cortex_a53_shift): Add mov_shift.
14594         (cortex_a53_shift_reg): Add new reservation for register shifts.
14595         (cortex_a53_alu): Remove bfm.
14596         (cortex_a53_alu_shift): Add bfm, remove mov_shift.
14597         (cortex_a53_alu_extr): Add new reservation for EXTR.
14598         (bypasses): Improve bypass modelling.
14600 2016-07-06  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
14602         PR target/50739
14603         * config/avr/avr.c (avr_asm_select_section): Strip off
14604         SECTION_DECLARED from flags when calling get_section.
14606 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
14608         * tree-vectorizer.h (vect_memory_access_type): Add
14609         VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
14610         * tree-vect-stmts.c (compare_step_with_zero): New function.
14611         (perm_mask_for_reverse): Move further up file.
14612         (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
14613         step is negative.
14614         (get_negative_load_store_type): New function.
14615         (get_load_store_type): Call it.  Add an ncopies argument.
14616         (vectorizable_mask_load_store): Update call accordingly and
14617         remove tests for negative steps.
14618         (vectorizable_store, vectorizable_load): Likewise.  Handle new
14619         memory_access_types.
14621 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
14623         * tree-vectorizer.h (vect_memory_access_type): New enum.
14624         (_stmt_vec_info): Add a memory_access_type field.
14625         (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
14626         (vect_model_store_cost): Take an access type instead of a boolean.
14627         (vect_model_load_cost): Likewise.
14628         * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
14629         vect_model_store_cost and vect_model_load_cost.
14630         * tree-vect-stmts.c (vec_load_store_type): New enum.
14631         (vect_model_store_cost): Take an access type instead of a
14632         store_lanes_p boolean.  Simplify tests.
14633         (vect_model_load_cost): Likewise, but for load_lanes_p.
14634         (get_group_load_store_type, get_load_store_type): New functions.
14635         (vectorizable_store): Use get_load_store_type.  Record the access
14636         type in STMT_VINFO_MEMORY_ACCESS_TYPE.
14637         (vectorizable_load): Likewise.
14638         (vectorizable_mask_load_store): Likewise.  Replace is_store
14639         variable with vls_type.
14641 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
14643         * tree-vectorizer.h (vect_grouped_load_supported): Add a
14644         single_element_p parameter.
14645         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
14646         Check the PR65518 case here rather than in vectorizable_load.
14647         * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
14648         * tree-vect-stmts.c (vectorizable_load): Likewise.
14650 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
14652         * tree-vectorizer.h (gather_scatter_info): New structure.
14653         (vect_check_gather_scatter): Return a bool rather than a decl.
14654         Replace return-by-pointer arguments with a single
14655         gather_scatter_info *.
14656         * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
14657         (vect_analyze_data_refs): Update call accordingly.
14658         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
14659         (vectorizable_mask_load_store): Likewise.  Also record the
14660         offset dt and vectype in the gather_scatter_info.
14661         (vectorizable_store): Likewise.
14662         (vectorizable_load): Likewise.
14664 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
14666         * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
14667         strided groups, use the cost of N scalar accesses instead
14668         of ncopies vector accesses.
14669         (vect_model_load_cost): Likewise.
14671 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
14673         * tree-vect-stmts.c (vect_cost_group_size): Delete.
14674         (vect_model_store_cost): Avoid calling it.  Use first_stmt_p
14675         variable to indicate when once-per-group costs are being used.
14676         (vect_model_load_cost): Likewise.  Fix comment and misindented code.
14678 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
14680         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
14681         peeling-for-gaps condition.
14683 2016-07-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14685         * config/s390/s390.c (s390_expand_vec_init): Force initializer
14686         element to register if it doesn't match general_operand.
14688 2016-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
14689             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14691         * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
14692         prototype.
14693         * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
14694         * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
14695         (SIGNBIT): New mode iterator.
14696         (Fsignbit): New mode attribute.
14697         (signbit<mode>2): Change operand1 to match FLOAT128 instead of
14698         IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
14699         when direct moves are available.
14700         (signbit<mode>2_dm): New define_insn_and_split).
14701         (signbit<mode>2_dm2): New define_insn.
14703 2016-07-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14705         PR rtl-optimization/71594
14706         * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
14707         into subregs of appropriate mode before trying to emit a conditional
14708         move.
14710 2016-07-05  Jan Hubicka  <jh@suse.cz>
14712         * tree-scalar-evolution.c (iv_can_overflow_p): New function.
14713         (simple_iv): Use it.
14715 2016-07-05  Jan Hubicka  <jh@suse.cz>
14717         * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
14719 2016-07-05  Jiong Wang  <jiong.wang@arm.com>
14721         * lra-constraints.c (process_alt_operands): Don't add spilling cost for
14722         "offmemok".
14724 2016-07-05  Jan Hubicka  <jh@suse.cz>
14726         * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
14727         IV can overflow.
14729 2016-07-05  Richard Biener  <rguenther@suse.de>
14731         * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
14732         Handle empty else block.
14733         (is_feasible_trace): Likewise.
14734         (split_paths): Likewise.
14736 2016-07-05  Richard Biener  <rguenther@suse.de>
14738         * tree-loop-distribution.c (distribute_loop): Fix issue with
14739         the cost model loop.
14741 2016-07-05  Christophe Lyon  <christophe.lyon@linaro.org>
14743         * config/arm/neon-testgen.ml: Delete.
14744         * config/arm/neon.ml: Delete.
14746 2016-07-04  Jakub Jelinek  <jakub@redhat.com>
14748         PR c++/71739
14749         * tree.c (attribute_value_equal): Use get_attribute_name instead of
14750         directly using TREE_PURPOSE.
14752 2016-07-04  Jiong Wang  <jiong.wang@arm.com>
14754         * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
14755         * config/aarch64/aarch64_neon.h: Likewise.
14756         * config/aarch64/arm_neon.h: Likewise.
14757         * config/aarch64/atomics.md: Likewise.
14758         * config/aarch64/aarch64-simd-builtins.def: Likewise.
14759         * doc/invoke.texi: Likewise.
14761 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14763         * config/s390/s390.md: Add "z13" cpu_facility.
14764         ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
14765         * config/s390/predicates.md ("loc_operand"): New predicate for "load on
14766         condition" type instructions.
14768 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14769             Jeff Law  <law@redhat.com>
14771         * explow.c (allocate_dynamic_stack_space): Simplify knowing that
14772         MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
14774 2016-07-04  Yuri Rumyantsev  <ysrumyan@gmail.com>
14776         * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
14777         permutation for TARGET_AVX512F.
14778         (ix86_expand_vec_one_operand_perm_avx512): New function.
14779         (expand_vec_perm_1): Invoke introduced function.
14780         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
14781         it may be not valid after vectorization.
14783 2016-07-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14785         PR target/63874
14786         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
14787         typo in comment.  Only force to memory if it is a weak
14788         external reference.
14790 2016-07-04  Matthew Wahab  <matthew.wahab@arm.com>
14791             Jiong Wang  <jiong.wang@arm.com>
14793         * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
14794         * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
14795         (AARCH64_FL_F16): New.
14796         (AARCH64_FL_FOR_ARCH8_2): New.
14797         (AARCH64_ISA_8_2): New.
14798         (AARCH64_ISA_F16): New.
14799         (TARGET_FP_F16INST): New.
14800         (TARGET_SIMD_F16INST): New.
14801         * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
14802         ("fp"): Disabling "fp" also disables "fp16".
14803         * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
14804         Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
14805         and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
14806         * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
14808 2016-07-04  Jan Beulich  <jbeulich@suse.com>
14810         * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
14812 2016-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
14814         PR target/71720
14815         * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
14816         the insns, use an insn form that does not adjust the offset on
14817         little endian systems.
14819 2016-07-01  Jan Beulich  <jbeulich@suse.com>
14821         * varasm.c (get_variable_section): Validate initializer in
14822         named .bss-like sections.
14824 2016-07-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
14826         * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
14827         Exchange the order of the second and third operands in the vpermr
14828         instruction tmeplate.
14830 2016-07-01  Peter Bergner  <bergner@vnet.ibm.com>
14832         PR target/71698
14833         * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
14834         Disallow TDmode values.
14836 2016-07-01  Alan Modra  <amodra@gmail.com>
14838         PR rtl-optimization/71709
14839         * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
14840         being set, not referenced.
14842 2016-07-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
14844         PR tree-optimization/70729
14845         * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
14846         of loop since it can be not valid after transformation.
14848 2016-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14850         * config/arm/arm.c (thumb_reload_in_hi): Delete.
14851         * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
14853 2016-07-01  Eric Botcazou  <ebotcazou@adacore.com>
14855         * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
14856         for NULL decl.
14858 2016-06-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
14860         PR target/71677
14861         * config/rs6000/constraints.md (wY constraint): New constraint to
14862         match the requirements for the LXSD and STXSD instructions.
14863         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
14864         predicate to match the requirements for the LXSD and STXSD
14865         instructions.
14866         * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
14867         Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
14868         to make sure that the bottom 2 bits of offset are 0, the address
14869         form is offsettable, and no updating is done in the address mode.
14870         (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
14871         (movdi_internal32): Likewise
14872         (movdi_internal64): Likewise.
14874 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
14876         PR tree-optimization/71707
14877         * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
14878         strinfo even for ADDR_EXPR ptr.
14880 2016-06-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
14882         * config/rs6000/altivec.md (darn_32): Change the condition to
14883         TARGET_P9_MISC instead of TARGET_MODULO.
14884         (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
14885         condition expression.
14886         (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
14887         condition expression.
14888         * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
14889         (DFP_TEST): New code iterator.
14890         (dfptstsfi_<code>_mode>): New define_expand.
14891         (*dfp_sgnfcnc_<mode>): New define_insn.
14892         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
14893         definition next to BU_P9_MISC_1 definition and change the MASK
14894         value to RS6000_BTM_P9_MISC.
14895         (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
14896         (BU_P9_64BIT_MISC_0): Likewise.
14897         (BU_P9_DFP_MISC_0): New macro definition.
14898         (BU_P9_DFP_MISC_1): New macro definition.
14899         (BU_P9_DFP_MISC_2): New macro definition.
14900         (BU_P9_DFP_OVERLOAD_1): New macro definition.
14901         (BU_P9_DFP_OVERLOAD_2): New macro definition.
14902         (BU_P9_DFP_OVERLOAD_3): New macro definition.
14903         (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
14904         (TSTSFI_LT_TD): Likewise.
14905         (TSTSFI_EQ_DD): Likewise.
14906         (TSTSFI_EQ_TD): Likewise.
14907         (TSTSFI_GT_DD): Likewise.
14908         (TSTSFI_GT_TD): Likewise.
14909         (TSTSFI_OV_DD): Likewise.
14910         (TSTSFI_OV_TD): Likewise.
14911         (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
14912         (TSTSFI_LT_DD): Likewise.
14913         (TSTSFI_LT_TD): Likewise.
14914         (TSTSFI_EQ): Likewise.
14915         (TSTSFI_EQ_DD): Likewise.
14916         (TSTSFI_EQ_TD): Likewise.
14917         (TSTSFI_GT): Likewise.
14918         (TSTSFI_GT_DD): Likewise.
14919         (TSTSFI_GT_TD): Likewise.
14920         (TSTSFI_OV): Likewise.
14921         (TSTSFI_OV_DD): Likewise.
14922         (TSTSFI_OV_TD): Likewise.
14923         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14924         overloaded test significance functions.
14925         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
14926         OPTION_MASK_P9_MISC into the representation of this mask.
14927         (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
14928         of this mask.
14929         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
14930         RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
14931         non-zero.
14932         (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
14933         argument is a 6-bit unsigned literal value if the icode argument
14934         represents a DFP test significance built-in call.
14935         (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
14936         flag used independently and in combination with the
14937         RS6000_BTM_64BIT flag.
14938         (rs6000_opt_masks): Add entry for power9-misc command-line option.
14939         (rs6000_builtin_mask_names): Add entry for power9-misc
14940         command-line option.
14941         * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
14942         HAVE_AS_POWER9 is not a defined macro.  Define MASK_P9_MISC and
14943         RS6000_BTM_P9_MISC macros.
14944         * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
14945         option and change the description of the -mpower9-vector option to
14946         enable only vector instructions, removing its erroneously claimed
14947         support for scalar instructions.
14948         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
14949         the ISA 3.0 digital floating point test significance built-in
14950         functions.
14952 2016-06-30  Wilco Dijkstra  <wdijkstr@arm.com>
14954         * config/aarch64/aarch64.c (cortexa35_tunings):
14955         Enable AES fusion.  Use cortexa57_branch_cost.
14956         (cortexa53_tunings): Use cortexa57_branch_cost.
14957         (cortexa72_tunings): Use cortexa57_branch_cost.
14958         Use AUTOPREFETCHER_WEAK.
14959         (cortexa73_tunings): Use cortexa57_branch_cost.
14961 2016-06-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14962             James Greenhalgh  <james.greenhalgh@arm.com>
14964         * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
14965         vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
14966         vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
14967         vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
14968         (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
14969         vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
14970         vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
14971         vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
14972         vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
14973         vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
14974         vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
14975         vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
14976         vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
14977         New intrinsics.
14979 2016-06-30  James Greenhalgh  <james.greenhalgh@arm.com>
14980             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14982         * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
14983         New define_insn.
14984         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
14986 2016-06-30  David Malcolm  <dmalcolm@redhat.com>
14988         PR driver/71651
14989         * gcc.c (driver::build_option_suggestions): Pass "option" to
14990         add_misspelling_candidates.
14991         * opts-common.c (add_misspelling_candidates): Add "option" param;
14992         use it to avoid adding negated forms for options marked with
14993         RejectNegative.
14994         * opts.h (add_misspelling_candidates): Add "option" param.
14996 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
14998         PR middle-end/71693
14999         * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
15000         TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
15001         first when permuting bitwise operation with rotate.  Cast
15002         TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
15004 2016-06-29  David Malcolm  <dmalcolm@redhat.com>
15006         * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
15007         for misspelled param names.
15008         * params.c: Include spellcheck.h.
15009         (find_param_fuzzy): New function.
15010         * params.h (find_param_fuzzy): New prototype.
15011         * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
15012         * spellcheck.h (struct edit_distance_traits<const char *>):
15013         ...here.
15015 2016-06-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
15017         * config/rs6000/predicates.md (const_0_to_7_operand): New
15018         predicate, recognize 0..7.
15019         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
15020         support for doing extracts from V16QImode, V8HImode, V4SImode
15021         under ISA 3.0.
15022         * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
15023         vector extract support.
15024         (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
15025         for ISA 3.0 vector extract.
15026         (VSX_EX): Constraints to use for ISA 3.0 vector extract.
15027         (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
15028         extracts of a constant element number from small integer vectors
15029         on 64-bit ISA 3.0 systems.
15030         (vsx_extract_<mode>_di): Likewise.
15031         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
15032         say when we can do ISA 3.0 vector extracts.
15033         * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
15034         registers, using the stxsiwx instruction.
15036 2016-06-29  Jim Wilson  <jim.wilson@linaro.org>
15038         * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
15039         * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
15040         qdf24xx_regmove_cost, qdf24xx_tunings): New.
15041         * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
15042         * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
15043         * config/arm/arm.c (arm_qdf24xx_tune): New.
15045 2016-06-29  Wilco Dijkstra  <wdijkstr@arm.com>
15047         * config/aarch64/aarch64.c (cortexa53_tunings):
15048         Increase loop alignment to 8.  Set function alignment to 16.
15049         (cortexa35_tunings): Likewise.
15050         (cortexa57_tunings): Increase loop alignment to 8.
15051         (cortexa72_tunings): Likewise.
15052         (cortexa73_tunings): Likewise.
15054 2016-06-29  Matthew Wahab  <matthew.wahab@arm.com>
15056         * doc/sourcebuild.texi (Effective-Target keywords): Add entries
15057         for arm_fp16_ok and arm_fp16_hw.
15058         (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
15059         arm_fp16_alternative.
15061 2016-06-29  Ilya Enkovich  <ilya.enkovich@intel.com>
15063         PR tree-optimization/71655
15064         * tree-vect-stmts.c (vectorizable_comparison): Swap definition
15065         types when swapping operands.
15067 2016-06-29  Martin Liska  <mliska@suse.cz>
15069         PR middle-end/71585
15070         * common.opt (flag_stack_protect): Mark the flag as optimization flag.
15071         * ipa-inline-transform.c (inline_call): Remove unnecessary call
15072         of build_optimization_node.
15074 2016-06-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
15076         PR tree-optimization/70729
15077         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
15078         independent in loops having positive safelen value.
15079         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
15080         it may be not valid after vectorization.
15082 2016-06-29  Jakub Jelinek  <jakub@redhat.com>
15084         PR tree-optimization/71625
15085         * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument.  Assume list
15086         is sorted by ascending list->offset.  If PTR is non-NULL and there is
15087         previous strinfo, call get_stridx_plus_constant.
15088         (get_stridx): Pass exp as second argument to get_addr_stridx.
15089         (addr_stridxptr): Add missing list = list->next, so that there can be
15090         more than one entries in the list.  Bump limit from 16 to 32.  Ensure
15091         the list is sorted by ascending list->offset.
15092         (get_stridx_plus_constant): Adjust so that it can be also called with
15093         ADDR_EXPR instead of SSA_NAME as PTR.
15094         (handle_char_store): Pass NULL_TREE as second argument to
15095         get_addr_stridx.
15097 2016-06-29  Richard Biener  <rguenther@suse.de>
15099         PR rtl-optimization/68961
15100         * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
15102 2016-06-29  Richard Biener  <rguenther@suse.de>
15104         PR middle-end/71002
15105         * alias.c (component_uses_parent_alias_set_from): Handle
15106         type punning through union accesses by using the union alias set.
15107         * gimple.c (gimple_get_alias_set): Remove union type punning case.
15109 2016-07-29  Richard Biener  <rguenther@suse.de>
15111         * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
15112         precision not matching mode precision.
15114 2016-06-28  John David Anglin  <danglin@gcc.gnu.org>
15116         * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
15117         pa_output_arg_descriptor.
15118         (call_val_symref_64bit_post_reload): Likewise.
15119         (call_val_powf_64bit_post_reload): Likewise.
15120         (sibcall_internal_symref_64bit): Likewise.
15121         (sibcall_value_internal_symref_64bit): Likewise.
15123 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
15125         PR middle-end/71626
15126         * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
15127         a constant, force its SUBREG_REG into memory or register instead
15128         of whole op1.
15130 2016-06-28  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
15132         PR target/58655
15133         * config/avr/avr.opt (-mfract-convert-truncate): Update description.
15134         * doc/invoke.texi (AVR Options): Document it.
15136 2016-06-28  Walter Lee  <walt@tilera.com>
15138         * config/tilegx/linux.h: Do not include arch/icache.h
15139         (CLEAR_INSN_CACHE): Provide inlined definition directly.
15140         * config/tilepro/linux.h: Do not include arch/icache.h
15141         (CLEAR_INSN_CACHE): Provide inlined definition directly.
15143 2016-06-28  Wilco Dijkstra  <wdijkstr@arm.com>
15145         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
15146         for big-endian BIT_FIELD_REF.
15148 2016-06-28  Pat Haugen  <pthaugen@us.ibm.com>
15150         * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
15151         ('size' attribute): Add '128'.
15152         Include power9.md.
15153         (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
15154         *movdi_internal64, *movdf_update1): Set size attribute to '64'.
15155         (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
15156         copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
15157         *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
15158         extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
15159         *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
15160         *trunc<mode>df2_odd): Set size attribute to '128'.
15161         (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
15162         * config/rs6000/power6.md (power6-fp): Include dfp type.
15163         * config/rs6000/power7.md (power7-fp): Likewise.
15164         * config/rs6000/power8.md (power8-fp): Likewise.
15165         * config/rs6000/power9.md: New file.
15166         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
15167         * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
15168         *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
15169         htmsimple.
15170         * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
15171         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
15172         divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
15173         ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
15174         dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
15175         dfp_dscri_<mode>): Change type attribute to dfp.
15176         * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
15177         attribute to vecsimple.
15178         * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
15179         and prefetch streams.
15180         (rs6000_option_override_internal): Remove temporary code setting
15181         tuning to power8.  Don't set rs6000_sched_groups for power9.
15182         (last_scheduled_insn): Change to rtx_insn *.
15183         (divide_cnt, vec_load_pendulum): New variables.
15184         (rs6000_adjust_cost): Add Power9 to test for store->load separation.
15185         (rs6000_issue_rate): Set issue rate for Power9.
15186         (is_power9_pairable_vec_type): New.
15187         (power9_sched_reorder2): New.
15188         (rs6000_sched_reorder2): Call new function for Power9 specific
15189         reordering.
15190         (insn_must_be_first_in_group): Remove Power9.
15191         (insn_must_be_last_in_group): Likewise.
15192         (force_new_group): Likewise.
15193         (rs6000_sched_init): Fix initialization of last_scheduled_insn.
15194         Initialize divide_cnt/vec_load_pendulum.
15195         (_rs6000_sched_context, rs6000_init_sched_context,
15196         rs6000_set_sched_context): Handle context save/restore of new
15197         variables.
15199 2016-06-28  Richard Biener  <rguenther@suse.de>
15201         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
15202         Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
15203         COMPONENT_REF operand.
15204         (nonoverlapping_component_refs_p): Likewise.
15205         * stor-layout.c (start_bitfield_representative): Mark
15206         DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
15208 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
15210         * Makefile.in: Don't cat ../stage_current if it does not exist.
15212         * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
15213         last argument is a bit-field.
15215         PR rtl-optimization/71673
15216         * internal-fn.c (expand_arith_overflow_result_store): Use
15217         OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
15218         expand_simple_binop.
15220         PR middle-end/66867
15221         * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
15222         expand_ifn_atomic_compare_exchange): New functions.
15223         * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
15224         * tree.h (build_call_expr_internal_loc): Rename to ...
15225         (build_call_expr_internal_loc_array): ... this.  Fix up type of
15226         last argument.
15227         * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
15228         * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
15229         ATOMIC_COMPARE_EXCHANGE result.
15230         * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
15231         * gimple-fold.h (optimize_atomic_compare_exchange_p,
15232         fold_builtin_atomic_compare_exchange): New prototypes.
15233         * gimple-fold.c (optimize_atomic_compare_exchange_p,
15234         fold_builtin_atomic_compare_exchange): New functions..
15235         * tree-ssa.c (execute_update_addresses_taken): If
15236         optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
15237         of call when finding addressable vars, and if such var becomes
15238         non-addressable, call fold_builtin_atomic_compare_exchange.
15240 2016-06-27  Segher Boessenkool  <segher@kernel.crashing.org>
15242         PR target/71670
15243         * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
15244         gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
15246 2016-06-27  Pat Haugen  <pthaugen@us.ibm.com>
15248         * config/rs6000/rs6000.md ('type' attribute): Add
15249         veclogical,veccmpfx,vecexts,vecmove insn types.
15250         (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
15251         copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
15252         p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
15253         (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
15254         *nabs<mode>2_hw): Change type to vecmove.
15255         (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
15256         *boolcc<mode>3_internal, *eqv<mode>3_internal,
15257         *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
15258         *ieee_128bit_vsx_abs<mode>2_internal,
15259         *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
15260         *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
15261         *ieee128_mtvsrd_32bit): Change type to veclogical.
15262         (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
15263         *movdi_internal32, *movdi_internal64): Update insn types.
15264         * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
15265         vsx_extract_<mode>): Change type to veclogical.
15266         (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
15267         (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
15268         *vsx_sign_extend_si_v2di): Change type to vecexts.
15269         * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
15270         type to veclogical.
15271         (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
15272         *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
15273         *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
15274         (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
15275         * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
15276         negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
15277         * config/rs6000/40x.md (ppc405-float): Add fpsimple.
15278         * config/rs6000/440.md (ppc440-fp): Add fpsimple.
15279         * config/rs6000/476.md (ppc476-fp): Add fpsimple.
15280         * config/rs6000/601.md (ppc601-fp): Add fpsimple.
15281         * config/rs6000/603.md (ppc603-fp): Add fpsimple.
15282         * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
15283         * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
15284         (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
15285         * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
15286         (ppc7450-vecsimple): Add veclogical, vecmove.
15287         (ppc7450-veccmp): Add veccmpfx.
15288         * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
15289         vecmove.
15290         (ppc8540_vector_compare): Add veccmpfx.
15291         * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
15292         * config/rs6000/cell.md (cell-fp): Add fpsimple.
15293         (cell-vecsimple): Add veclogical, vecmove.
15294         (cell-veccmp): Add veccmpfx.
15295         * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
15296         * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
15297         veccmpfx.
15298         * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
15299         * config/rs6000/power4.md (power4-fp): Add fpsimple.
15300         (power4-vecsimple): Add veclogical, vecmove.
15301         (power4-veccmp): Add veccmpfx.
15302         * config/rs6000/power5.md (power5-fp): Add fpsimple.
15303         * config/rs6000/power6.md (power6-fp): Add fpsimple.
15304         (power6-vecsimple): Add veclogical, vecmove.
15305         (power6-veccmp): Add veccmpfx.
15306         * config/rs6000/power7.md (power7-fp): Add fpsimple.
15307         (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
15308         * config/rs6000/power8.md (power8-fp): Add fpsimple.
15309         (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
15310         * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
15311         * config/rs6000/titan.md (titan_fp): Add fpsimple.
15312         * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
15313         fpsimple.
15314         * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
15316 2016-06-27  Peter Bergner  <bergner@vnet.ibm.com>
15318         PR target/71656
15319         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
15320         OPTION_MASK_P9_DFORM_VECTOR.
15321         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
15322         disable -mpower9-dform-vector when using reload.
15323         (quad_address_p): Remove 'gpr_p' argument and all associated code.
15324         New 'strict' argument.  Update all callers.  Add strict addressing
15325         support.
15326         (rs6000_legitimate_offset_address_p): Remove call to
15327         virtual_stack_registers_memory_p.
15328         (rs6000_legitimize_reload_address): Add quad address support.
15329         (rs6000_legitimate_address_p): Move call to quad_address_p above
15330         call to virtual_stack_registers_memory_p.  Adjust quad_address_p args
15331         to account for new strict usage.
15332         (rs6000_output_move_128bit): Adjust quad_address_p args to account
15333         for new strict usage.
15334         * config/rs6000/predicates.md (quad_memory_operand): Likewise.
15336 2016-06-26  Uros Bizjak  <ubizjak@gmail.com>
15338         PR target/70902
15339         PR target/71453
15340         PR target/71555
15341         PR target/71596
15342         PR target/71657
15343         * config/i386/i386.c (ix86_spill_class): Disable condition to
15344         always return NO_REGS.
15346 2016-06-26  Jan Hubicka  <hubicka@ucw.cz>
15348         * predict.c: Include gimple-pretty-print.h
15349         (predicted_by_loop_heuristics_p): Check also
15350         PRED_LOOP_EXIT_WITH_RECURSION
15351         (predict_loops): Find self recursive calls and use special purpose
15352         predictors for them; dump log about decisions.
15353         (pass_profile::execute): Dump info about #of iterations.
15354         * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
15355         (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
15357 2016-06-26  John David Anglin  <danglin@gcc.gnu.org>
15359         * config/pa/pa.c (pa_output_indirect_call): Rework to combine
15360         output_asm_insn calls and shorten long lines.  Output .CALL
15361         argument descriptor using pa_output_arg_descriptor.  Add various
15362         inline $$dyncall and other optimizations.
15363         (pa_attr_length_indirect_call): Adjust ordering and lengths.
15365 2016-06-25  Jakub Jelinek  <jakub@redhat.com>
15367         PR tree-optimization/71643
15368         * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
15369         EH preds.
15371         * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
15372         leak a bitmap if dep_bb is NULL.
15374         PR tree-optimization/71631
15375         * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
15376         to rewrite_expr_tree even if negate_result, move new_lhs var
15377         declaration and initialization earlier, for powi_result set afterwards
15378         new_lhs to lhs.  For negate_result, use new_lhs instead of tmp
15379         if new_lhs != lhs, and don't shadow gsi var.
15381 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
15383         * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
15384         Add in_loop parameter.
15385         (predict_loops): Add loop guard heuristics.
15386         * predict.def (PRED_LOOP_GUARD): New heuristics.
15388 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
15390         * predict.c: Include ipa-utils.h
15391         (tree_bb_level_prediction): Predict recursive calls.
15392         (tree_estimate_probability_bb): Skip inexpensive calls for call
15393         predictor.
15394         * predict.def (PRED_RECURSIVE_CALL): New.
15396 2016-06-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15398         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
15399         (BU_FLOAT128_1): Likewise.
15400         (FABSQ): Likewise.
15401         (COPYSIGNQ): Likewise.
15402         (RS6000_BUILTIN_NANQ): Likewise.
15403         (RS6000_BUILTIN_NANSQ): Likewise.
15404         (RS6000_BUILTIN_INFQ): Likewise.
15405         (RS6000_BUILTIN_HUGE_VALQ): Likewise.
15406         * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
15407         (TARGET_FOLD_BUILTIN): New #define.
15408         (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
15409         (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
15410         (rs6000_fold_builtin): New target hook implementation, handling
15411         folding of 128-bit NaNs and infinities.
15412         (rs6000_init_builtins): Initialize const_str_type_node; ensure all
15413         entries are filled in to avoid problems during bootstrap
15414         self-test; define builtins for 128-bit NaNs and infinities.
15415         (rs6000_opt_mask): Add entry for float128.
15416         * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
15417         (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
15418         (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
15419         (const_str_type_node): New #define.
15420         * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
15421         to a define_expand that dispatches to either copysign<mode>3_soft
15422         or copysign<mode>3_hard.
15423         (copysign<mode>3_hard): Rename from copysign<mode>3.
15424         (copysign<mode>3_soft): New define_insn.
15425         * doc/extend.texi: Document new builtins.
15427 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
15429         * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
15430         PRIu64 instead of lu.
15432 2016-06-24  Eric Botcazou  <ebotcazou@adacore.com>
15434         PR debug/71642
15435         * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
15436         copy the type name.
15438 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
15440         PR tree-optimization/71647
15441         * omp-low.c (lower_rec_input_clauses): Convert
15442         omp_clause_aligned_alignment (c) to size_type_node for the
15443         last argument of __builtin_assume_aligned.
15445 2016-06-24  H.J. Lu  <hongjiu.lu@intel.com>
15447         * configure.ac (calling ___tls_get_addr via GOT): New
15448         assembler/linker check.
15449         (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New.  Defined to 1 if 32-bit
15450         assembler and linker supports calling ___tls_get_addr via GOT.
15451         Otherise, defined to 0.
15452         * config.in: Regenerated.
15453         * configure: Likewise.
15454         * config/i386/constraints.md (Yb): New constraint.
15455         * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
15456         (REG_CLASS_NAMES): Likewise.
15457         (REG_CLASS_CONTENTS): Likewise.
15458         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
15459         the b constraint with the Yb constraint.  Call ___tls_get_addr
15460         via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
15461         is 1.
15462         (*tls_local_dynamic_base_32_gnu): Likewise.
15463         (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
15464         GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
15465         (*tls_local_dynamic_base_64_<mode>): Likewise.
15467 2016-06-24  Martin Liska  <mliska@suse.cz>
15469         * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
15470         * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
15471         few functions.
15472         * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
15473         argument to true if the expected number of iterations is
15474         loop-based.
15476 2016-06-24  Uros Bizjak  <ubizjak@gmail.com>
15478         * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
15479         assemble for 32bit target.
15480         (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
15481         and $ld_ix86_gld_32_opt to link for 32bit target.
15482         (HAVE_AS_IX86_TLSLDMPLT): Ditto.
15483         * configure: Regenerate.
15485 2016-06-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15487         * config/arm/arm.c (int_log2): Delete definition and prototype.
15488         (shift_op): Use exact_log2 instead of int_log2.
15489         (vfp3_const_double_for_fract_bits): Likewise.
15491 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
15493         * internal-fn.c (expand_arith_set_overflow): New function.
15494         (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
15495         Use it.
15496         (expand_arith_overflow_result_store): Likewise.  Handle precision
15497         smaller than mode precision.
15498         * tree-vrp.c (extract_range_basic): For imag part, handle
15499         properly signed 1-bit precision result.
15500         * doc/extend.texi (__builtin_add_overflow): Document that last
15501         argument can't be pointer to enumerated or boolean type.
15502         (__builtin_add_overflow_p): Document that last argument can't
15503         have enumerated or boolean type.
15505 2016-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
15506             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15508         * config/rs6000/predicates.md (splat_input_operand): Rework.
15509         Don't allow constants, since the insns that use this predicate
15510         don't support constants.  Constants are handled by other insns
15511         that are created via combine.  During and after register
15512         allocation, only allow indexed or indirect addresses, and not
15513         general addresses.  Only allow modes supported by the hardware.
15514         * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
15515         comment.  Move check for using VSPLTIS<x> to a common location,
15516         instead of doing it in two different places.
15518 2016-06-23  Jocelyn Mayer  <l_indien@magic.fr>
15520         * config/i386/driver-i386.c (host_detect_local_cpu): Set
15521         PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
15522         <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
15523         signature_CENTAUR_ebx.
15525 2016-06-23  H.J. Lu  <hongjiu.lu@intel.com>
15527         PR target/66232
15528         PR target/67400
15529         * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
15530         (as_ix86_gas_32_opt): This.
15531         (ld_ix86_tls_ldm_opt): Renamed to ...
15532         (ld_ix86_gld_32_opt): This.
15533         (R_386_TLS_LDM reloc): Updated.
15534         (R_386_GOT32X reloc): New assembler/linker check.
15535         (HAVE_AS_IX86_GOT32X): New.  Defined to 1 if 32-bit assembler and
15536         linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT".  Otherise,
15537         defined to 0.
15538         * config.in: Regenerated.
15539         * configure: Likewise.
15540         * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
15541         true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
15542         (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
15543         if ix86_force_load_from_GOT_p returns true.
15544         (ix86_print_operand_address_as): Also support UNSPEC_GOT if
15545         ix86_force_load_from_GOT_p returns true.
15546         (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
15547         the external function address via the GOT slot.
15548         (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
15549         HAVE_AS_IX86_GOT32X before returning false.
15550         (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
15551         32-bit mode if ix86_nopic_noplt_attribute_p returns true.
15553 2016-06-23  Eric Botcazou  <ebotcazou@adacore.com>
15555         * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
15557 2016-06-23  Andi Kleen  <ak@linux.intel.com>
15559         * Makefile.in: Regenerate.
15560         * doc/install.texi: Document autoprofiledbootstrap.
15562 2016-06-23  Andi Kleen  <ak@linux.intel.com>
15564         * config/i386/gcc-auto-profile: New file.
15566 2016-06-23  Martin Liska  <mliska@suse.cz>
15568         PR middle-end/71619
15569         * predict.c (predict_loops): Revert the hunk that was removed
15570         in r237103.
15572 2016-06-23  Jakub Sejdak  <jakub.sejdak@phoesys.com>
15574         * config.gcc: Add support for arm*-*-phoenix* targets.
15575         * config/arm/t-phoenix: New.
15576         * config/phoenix.h: New.
15578 2016-06-23  Uros Bizjak  <ubizjak@gmail.com>
15579             H.J. Lu  <hongjiu.lu@intel.com>
15581         PR target/67400
15582         * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
15583         * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
15584         (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
15585         ix86_force_load_from_GOT_p returns true.
15586         (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
15587         ix86_force_load_from_GOT_p returns true.
15588         (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
15589         ix86_force_load_from_GOT_p returns true.
15590         (ix86_expand_move): Load the external function address via the
15591         GOT slot if ix86_force_load_from_GOT_p returns true.
15592         * config/i386/predicates.md (x86_64_immediate_operand): Return
15593         false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
15594         (x86_64_zext_immediate_operand): Ditto.
15596 2016-06-22  Uros Bizjak  <ubizjak@gmail.com>
15598         * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
15600 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
15602         PR c/70339
15603         * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
15604         * diagnostic.c (pedwarn_at_rich_loc): New function.
15605         * spellcheck.h (best_match::best_match): Add a
15606         "best_distance_so_far" optional parameter.
15607         (best_match::set_best_so_far): New method.
15608         (best_match::get_best_distance): New accessor.
15609         (best_match::get_best_candidate_length): New accessor.
15611 2016-06-22  Nick Clifton  <nickc@redhat.com>
15613         * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
15614         place of GET_MODE_CLASS() == MODE_INT, so that partial integer
15615         modes are accepted as well.
15616         (ucompare_loc_descriptor): Likewise.
15617         (minmax_loc_descriptor): Likewise.
15618         (clz_loc_descriptor): Likewise.
15619         (popcount_loc_descriptor): Likewise.
15620         (bswap_loc_descriptor): Likewise.
15621         (rotate_loc_descriptor): Likewise.
15622         (mem_loc_descriptor): Likewise.
15623         (loc_descriptor): Likewise.
15625 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
15627         * common.opt (fdiagnostics-parseable-fixits): New option.
15628         * diagnostic.c: Include "selftest.h".
15629         (print_escaped_string): New function.
15630         (print_parseable_fixits): New function.
15631         (diagnostic_report_diagnostic): Call print_parseable_fixits.
15632         (selftest::assert_print_escaped_string): New function.
15633         (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
15634         (selftest::test_print_escaped_string): New function.
15635         (selftest::test_print_parseable_fixits_none): New function.
15636         (selftest::test_print_parseable_fixits_insert): New function.
15637         (selftest::test_print_parseable_fixits_remove): New function.
15638         (selftest::test_print_parseable_fixits_replace): New function.
15639         (selftest::diagnostic_c_tests): New function.
15640         * diagnostic.h (struct diagnostic_context): Add field
15641         "parseable_fixits_p".
15642         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
15643         -fdiagnostics-parseable-fixits.
15644         (-fdiagnostics-parseable-fixits): New option.
15645         * opts.c (common_handle_option): Handle
15646         -fdiagnostics-parseable-fixits.
15647         * selftest-run-tests.c (selftest::run_tests): Call
15648         selftest::diagnostic_c_tests.
15649         * selftest.h (selftest::diagnostic_c_tests): New prototype.
15651 2016-06-22  Ilya Enkovich  <ilya.enkovich@intel.com>
15653         PR tree-optimization/71488
15654         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
15655         comparison of boolean vectors.
15656         * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
15657         of boolean vectors using bitwise operations.
15659 2016-06-22  Andreas Schwab  <schwab@suse.de>
15661         * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
15662         Remove declaration.
15664 2016-06-22  Eric Botcazou  <ebotcazou@adacore.com>
15666         * function.c (assign_parm_setup_reg): Prevent sharing in another case.
15668 2016-06-22  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15670         * config/i386/i386.c (print_reg): Emit an error message on attempt to
15671         print FLAGS_REG.
15673 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15675         * config/arm/arm.c (arm_cortex_a73_tune): New struct.
15676         * config/arm/arm-cores.def (cortex-a73): New entry.
15677         (cortex-a73.cortex-a35): Likewise.
15678         (cortex-a73.cortex-a53): Likewise.
15679         * config/arm/arm-tables.opt: Regenerate.
15680         * config/arm/arm-tune.md: Likewise.
15681         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
15682         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
15683         * config/arm/t-aprofile: Handle mcpu=cortex-a73,
15684         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
15685         * doc/invoke.texi (ARM Options): Document cortex-a73,
15686         cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
15688 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15690         * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
15691         * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
15692         (cortex-a73.cortex-a35): Likewise.
15693         (cortex-a73.cortex-a53): Likewise.
15694         * config/aarch64/aarch64-tune.md: Regenerate.
15695         * doc/invoke.texi (AArch64 Options): Document cortex-a73,
15696         cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
15697         -mcpu and -mtune.
15699 2016-06-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15701         * configure.ac (gcc_cv_as_compress_debug): Remove
15702         --compress-debug-sections as extra as switch.
15703         Handle gas --compress-debug-sections=type.
15704         (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
15705         Handle gld --compress-debug-sections=type.
15706         * configure: Regenerate.
15708 2016-06-21  Andrew Burgess  <andrew.burgess@embecosm.com>
15710         * bb-reorder.c (pass_partition_blocks::gate): Update comment.
15712 2016-06-21  John David Anglin  <danglin@gcc.gnu.org>
15714         * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
15715         (do_rewrite): likewise.
15717 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15719         * common/config/mep/mep-common.c: Remove.
15720         * config.gcc: Remove mep-* support.
15721         * config/mep/constraints.md: Remove.
15722         * config/mep/default.h: Remove.
15723         * config/mep/intrinsics.h: Remove.
15724         * config/mep/intrinsics.md: Remove.
15725         * config/mep/ivc2-template.h: Remove.
15726         * config/mep/mep-c5.cpu: Remove.
15727         * config/mep/mep-core.cpu: Remove.
15728         * config/mep/mep-default.cpu: Remove.
15729         * config/mep/mep-ext-cop.cpu: Remove.
15730         * config/mep/mep-intrin.h: Remove.
15731         * config/mep/mep-ivc2.cpu: Remove.
15732         * config/mep/mep-pragma.c: Remove.
15733         * config/mep/mep-protos.h: Remove.
15734         * config/mep/mep.c: Remove.
15735         * config/mep/mep.cpu: Remove.
15736         * config/mep/mep.h: Remove.
15737         * config/mep/mep.md: Remove.
15738         * config/mep/mep.opt: Remove.
15739         * config/mep/predicates.md: Remove.
15740         * config/mep/t-mep: Remove.
15741         * doc/install.texi: Remove mep-* documentation.
15742         * doc/md.texi: Likewise.
15744 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15746         * config.gcc: Remove support for avr-rtems.
15747         * config/avr/gen-avr-mmcu-specs.c: Likewise.
15748         * config/avr/rtems.h: Remove.
15749         * config/avr/t-rtems: Remove.
15751 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15753         * config.gcc: Remove m32r-rtems support.
15754         * config/m32r/rtems.h: Remove.
15756 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15758         * config.gcc: Remove h8300-rtems support.
15759         * config/h8300/rtems.h: Remove.
15760         * config/h8300/t-rtems: Remove.
15762 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15764         * config.gcc: Remove support for knetbsd.
15765         * configure.ac: Likewise.
15766         * config/i386/knetbsd-gnu.h: Remove.  * config/i386/knetbsd-gnu64.h: Remove.
15767         * config/knetbsd-gnu.h: Remove.
15768         * configure: Regenerate.
15770 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15772         * config.gcc: Remove support for openbsd 2 and 3.
15773         * config/openbsd-oldgas.h: Remove.
15775 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15777         * config.gcc: Remove interix support.
15778         * config/i386/i386-interix.h: Remove.
15779         * config/i386/interix.opt: Remove.
15780         * config/i386/t-interix: Remove.
15781         * configure: Regenerate.
15782         * configure.ac: Remove interix support.
15783         * doc/install.texi: Remove interix documentation.
15785 2016-06-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
15787         * config/rs6000/rs6000.h: Add conditional preprocessing directives
15788         to disable Power9-specific compiler features if HAVE_AS_POWER9 is
15789         not defined.
15791 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
15793         * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
15794         they are both PLACEHOLDER_EXPRs.
15796 2016-06-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
15798         * stor-layout.c (layout_type): Move setting complex MODE to
15799         layout_type, instead of setting it ahead of time by the caller.
15800         * tree.c (build_complex_type): Likewise.
15802 2016-06-21  Martin Liska  <mliska@suse.cz>
15804         * predict.c (force_edge_cold): Replace imposisble with
15805         impossible.
15807 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
15809         * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
15810         * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
15812 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
15814         * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
15816 2016-06-21  H.J. Lu  <hongjiu.lu@intel.com>
15817             Ilya Enkovich  <ilya.enkovich@intel.com>
15819         PR target/71549
15820         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
15821         New member function to convert V1TImode register to SUBREG
15822         TImode in debug insn.
15823         (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
15824         after changing register mode to V1TImode.
15826 2016-06-21  Virendra Pathak  <virendra.pathak@broadcom.com>
15828         * config/aarch64/aarch64-cores.def (vulcan): New core.
15829         * config/aarch64/aarch64-tune.md: Regenerate.
15830         * doc/invoke.texi: Document vulcan as an available option.
15832 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
15834         * cse.c (canon_asm_operands): New function extracted from...
15835         (canonicalize_insn): ...here.  Call it to canonicalize an ASM_OPERANDS
15836         either standalone or member of a PARALLEL.
15838 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
15840         PR target/30417
15841         * config/avr/gen-avr-mmcu-specs.c (print_mcu):
15842         [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
15843         [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
15845 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
15847         PR target/71103
15848         * config/avr/avr.md (movqi): Only handle loading subreg:qi of
15849         constant addresses if can_create_pseudo_p.
15851 2016-06-21  Jakub Jelinek  <jakub@redhat.com>
15853         PR tree-optimization/71588
15854         * tree-ssa-strlen.c (valid_builtin_call): New function.
15855         (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
15856         it.
15858 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
15860         PR middle-end/71581
15861         * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
15862         see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
15863         for conversion of scalar user var to complex type and use the
15864         underlying SSA_NAME_VAR in that case.  If EXPR is still NULL,
15865         punt.
15867         PR rtl-optimization/71591
15868         * toplev.c (toplev::run_self_tests): If no_backend, complain and
15869         don't run any tests.
15871 2016-06-20  Hans-Peter Nilsson  <hp@axis.com>
15873         PR target/71571
15874         * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
15875         delay-slot "nop" for PIC with CRIS v32.  Also add missing leading
15876         space for PIC with non-v32 and the common non-PIC "jump".
15878 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
15880         PR target/71559
15881         * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
15882         returned values and add UN*/LTGT/*ORDERED cases with values matching
15883         D operand modifier on vcmp for AVX.
15885 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
15887         * config/aarch64/aarch64.opt
15888         (mpc-relative-literal-loads): Rename internal option name.
15889         * config/aarch64/aarch64.c
15890         (aarch64_nopcrelative_literal_loads): Rename to
15891         aarch64_pcrelative_literal_loads.
15892         (aarch64_expand_mov_immediate): Likewise.
15893         (aarch64_secondary_reload): Likewise.
15894         (aarch64_can_use_per_function_literal_pools_p): Likewise.
15895         (aarch64_override_options_after_change_1): Rename and simplify logic.
15896         (aarch64_classify_symbol): Merge large model checks into switch,
15897         remove pc-relative load check.
15899 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
15901         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
15902         costs relative to the cost of a register move.
15904 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
15906         * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
15907         (vcvt_n_f64_u64): Likewise.
15908         (vcvt_n_s64_f64): Likewise.
15909         (vcvt_n_u64_f64): Likewise.
15910         (vcvt_f64_s64): Likewise.
15911         (vrecpe_f64): Likewise.
15912         (vcvt_f64_u64): Likewise.
15913         (vrecps_f64): Likewise.
15915 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
15917         * config/aarch64/aarch64.md
15918         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
15919         iterators.
15920         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise.  Correct
15921         attributes.
15922         * config/aarch64/aarch64-builtins.c
15923         (aarch64_types_binop_uss_qualifiers): Delete.
15924         (TYPES_BINOP_USS): Likewise.
15925         (aarch64_types_binop_sus_qualifiers): Likewise.
15926         (TYPES_BINOP_SUS): Likewise.
15927         (aarch64_types_fcvt_from_unsigned_qualifiers): New.
15928         (TYPES_FCVTIMM_SUS): Likewise.
15929         * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
15930         rather than BINOP.
15931         (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
15932         (fcvtzs): Use SHIFTIMM rather than BINOP.
15933         (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
15935 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
15937         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
15938         costs relative to the cost of a register move.
15940 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
15942         * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
15943         Allow scalar/single vector modes to be tieable.
15945 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
15947         * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
15949 2016-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15951         * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
15952         "alignement".
15953         * tree.h (TYPE_ALIGN): Likewise.
15955 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
15957         PR target/71103
15958         * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
15960 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
15962         * config/avr/avr.c (avr_print_operand): Fix "format not a string
15963         literal" build warnings.
15964         (avr_print_operand_address): Dito.
15966 2016-06-19  David Edelsohn  <dje.gcc@gmail.com>
15968         PR target/71375
15969         * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
15970         * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
15972 2016-06-18  John David Anglin  <danglin@gcc.gnu.org>
15974         * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
15976 2016-06-18  Eric Botcazou  <ebotcazou@adacore.com>
15978         PR bootstrap/71435
15979         * reload1.c (reload): Pass 0 to finish_spills when called because
15980         update_eliminables_and_spill returns true and remove did_spill.
15981         (finish_spills): Adjust comment and document GLOBAL parameter.
15983 2016-06-17  DJ Delorie  <dj@redhat.com>
15985         PR target/71338
15986         * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
15987         * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
15988         (umulqihi3_virt): Likewise.
15989         * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
15990         (umulqihi3_real): Likewise.
15992 2016-06-17  Martin Liska  <mliska@suse.cz>
15994         * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
15996 2016-06-17  Martin Liska  <mliska@suse.cz>
15998         * predict.def: PRED_LOOP_EXIT from 92 to 85.
16000 2016-06-17  James Greenhalgh  <james.greenhalgh@arm.com>
16002         * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
16003         __FAST_MATH__.
16004         (vaddq_f32): Likewise.
16005         (vmul_f32): Likewise.
16006         (vmulq_f32): Likewise.
16007         (vsub_f32): Likewise.
16008         (vsubq_f32): Likewise.
16010 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
16012         PR tree-optimization/71347
16013         * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
16014         cost for all uses in group.
16016 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
16018         * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
16019         insert gimple seq if it's not empty.
16021 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
16023         * tree-vectorizer.h (struct dr_with_seg_len): Remove class
16024         member OFFSET.
16025         * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
16026         rather than OFFSET.
16027         (comp_dr_with_seg_len_pair): Ditto.
16028         (vect_prune_runtime_alias_test_list): Ditto.  Also Canonicalize
16029         struct dr_with_seg_len_pair against DR_OFFSET.
16030         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
16031         DR_OFFSET directly.
16033 2016-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16035         * config/aarch64/geniterators.sh: Handle parenthesised conditions.
16037 2016-06-16  John David Anglin  <danglin@gcc.gnu.org>
16039         * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
16040         (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
16041         (pa_output_millicode_call): Likewise.
16042         (pa_output_call): Likewise.
16043         (pa_output_indirect_call): Likewise.
16044         (pa_asm_output_mi_thunk): Likewise.
16046 2016-06-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16048         * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
16050 2016-06-16  Martin Liska  <mliska@suse.cz>
16052         * predict.c (combine_predictions_for_insn): When we find a first
16053         match predictor, we should consider just predictors with
16054         PRED_FLAG_FIRST_MATCH.  Print either first match (if any) or
16055         DS theory predictor.
16056         (combine_predictions_for_bb): Likewise.
16058 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
16060         * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
16061         with base of reference to struct.
16063 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
16065         * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
16067 2016-06-16  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
16069         PR target/71151
16070         * config/avr/avr.c (avr_asm_init_sections): Remove setup of
16071         progmem_swtable_section.
16072         (progmem_swtable_section): Remove.
16073         (avr_asm_function_rodata_section): Remove.
16074         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
16075         * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
16077 2016-06-16  Jocelyn Mayer  <l_indien@magic.fr>
16079         * config/i386/driver-i386.c (host_detect_local_cpu): Set
16080         PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
16081         <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
16082         signature_CENTAUR_ebx.
16083         * config/i386/i386.c (ix86_option_override_internal): Add
16084         definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
16085         nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
16086         * doc/invoke.texi (x86 Options): Document new VIA -march entries.
16088 2016-06-16  Martin Liska  <mliska@suse.cz>
16090         * predict.def: Add fortran loop preheader predictor.
16091         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
16092         fold IFN_BUILTIN_EXPECT with a known constant argument.
16094 2016-06-16  Martin Liska  <mliska@suse.cz>
16096         * predict.def: Add 'Fortran' to display text of all
16097         PRED_FORTRAN_* predictors.
16099 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
16101         PR target/71242
16102         * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
16103         [IA64_BUILTIN_NANSQ]: Ditto.
16104         (ia64_fold_builtin): New function.
16105         (TARGET_FOLD_BUILTIN): New define.
16106         (ia64_init_builtins) Declare const_string_type node.
16107         Add __builtin_nanq and __builtin_nansq builtin functions.
16108         (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
16110 2016-06-16  Nick Clifton  <nickc@redhat.com>
16112         * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
16113         MSP430_HWMULT_ prefix to enum values.
16114         (msp430_regions): Add MSP430_REGION_ prefix to enum values.
16115         * config/msp430/msp430.c: Update use of enum values.
16116         * config/msp430/msp430.md: Likewise.
16117         * config/msp430/msp430.opt: Likewise.
16119 2016-06-16  Jan Hubicka  <hubicka@ucw.cz>
16121         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
16122         of comparsions in the last iteration.
16124 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
16125             Joern Rennecke  <joern.rennecke@embecosm.com>
16127         * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
16128         addresses.
16129         (arc_needs_pcl_p): Add GOTOFFPC.
16130         (arc_legitimate_pic_addr_p): Likewise.
16131         (arc_output_pic_addr_const): Likewise.
16132         (arc_legitimize_pic_address): Generate a pc-relative address using
16133         GOTOFFPC.
16134         (arc_output_libcall): Use @pcl syntax.
16135         (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
16136         * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
16137         (*movsi_insn): Use @pcl syntax.
16138         (doloop_begin_i): Likewise.
16140 2016-06-16  Martin Liska  <mliska@suse.cz>
16142         * predict.def: Define a new predictor.
16144 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
16146         * config/arc/arc.opt (mtp-regno): Update text.
16148 2016-06-16  Renlin Li  <renlin.li@arm.com>
16150         * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
16152 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
16154         PR target/71554
16155         * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
16156         (setcc + and peephole2): Likewise.
16158         PR rtl-optimization/71532
16159         * cse.c (cse_insn): For const/pure calls, invalidate argument passing
16160         memory slots.
16162 2016-06-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
16164         * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
16165         DImode constants with XXSPLTIB in vector registers.
16166         (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
16167         vsx_extract_<mode>_internal{1,2} into a single insn that handles
16168         direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
16169         extraction of the element at the top of the register as a scalar
16170         value.
16171         (vsx_extract_<mode>_internal1): Likewise.
16172         (vsx_extract_<mode>_internal2): Likewise.
16173         * config/rs6000/constraints.md (wi constraint): Remove a comment
16174         about DImode not being allowed in Altivec registers.
16175         (wB constraint): New constraint for constants that can be
16176         generated in Altivec registers with VSPLTISW/VUPKHSW.
16177         * config/rs6000/predicates.md (xxspltib_constant_split): Update
16178         comments.
16179         (xxspltib_constant_nosplit): Likewise.
16180         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
16181         support for -mupper-regs-di to enable DImode to go into Altivec
16182         registers.
16183         (POWERPC_MASKS): Likewise.
16184         (power7 cpu): Likewise.
16185         * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
16186         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
16187         for DImode being allowed in Altivec registers.  Update wi/wj
16188         constraints.  Set scalar_in_vmx_p flag.
16189         (rs6000_option_override_internal): Add checks for -mupper-regs-di.
16190         (xxspltib_constant_p): Allow CONST_INT's with VOIDmode.  Don't
16191         return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
16192         (rs6000_opt_masks): Add -mupper-regs-di.
16193         * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
16194         direct move to use wi and not wj.
16195         (lfiwzx): Likewise.
16196         (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
16197         alternative.
16198         (floatunssi<mode>2_lfiwzx_mem): Likewise.
16199         (fix_trunc<mode>di2_fctidz): Change second alternative to allow
16200         any VSX register, instead of just Altivec registers, to allow
16201         either operand to be an Altivec register or both.
16202         (fixuns_trunc<mode>di2_fctiduz): Likewise.
16203         (movdi_internal32): Add support for -mupper-regs-di.  Add support
16204         to load constants via XXSPLTIB or VSPLTISW.  Add spacing to allow
16205         the alternatives and attributes to be lined up to be easier to
16206         read.
16207         (movdi_internal64): Likewise.
16208         (64-bit DImode splitters): Change predicates to only split loading
16209         up GPR registers.  Add splits for using XXSPLTIB or VSPLTISW to
16210         load constants in ISA 3.0 or ISA 2.07 respectively.
16211         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
16212         -mupper-regs-di.  Update -mupper-regs-df and -mupper-regs-sf to
16213         mention -mcpu=power9 sets these options.
16214         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
16215         wB constraint.
16217 2016-06-15  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
16219         PR target/67353
16220         * config/avr/avr.c (avr_set_current_function): Warn misspelled
16221         interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
16222         * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
16223         by default to warn misspelled interrupt/ signal handler.
16224         * doc/invoke.texi (AVR Options): Document it. Update description
16225         for -nodevicelib option.
16227 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16229         * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
16230         up parentheses.  Use GET_MODE_UNIT_BITSIZE.
16231         (aarch64_<sur>shll2_n<mode>): Likewise.
16233 2016-06-15  Ilya Enkovich  <ilya.enkovich@intel.com>
16235         PR middle-end/71529
16236         * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
16237         DECL_CONTEXT for copied arguments.
16239 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
16241         PR tree-optimization/71483
16242         * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
16243         for slp
16245 2016-06-15  Martin Liska  <mliska@suse.cz>
16247         * predict.c (tree_predict_by_opcode): Call predict_edge_def
16248         instead of predict_edge w/o a probability.
16250 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
16252         PR tree-optimization/71439
16253         * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
16254         live PHIs.
16256 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16258         * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
16259         register subregs in SET_SRC.
16261 2016-06-15  Richard Biener  <rguenther@suse.de>
16263         * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
16264         store restrictions.
16266 2016-06-15  Richard Biener  <rguenther@suse.de>
16268         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
16269         not consider dependences between accesses that belong to the
16270         same group.
16271         (vect_analyze_data_ref_dependences): Do not analyze read-read
16272         or self-dependences.
16274 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
16276         * spellcheck-tree.c: Include spellcheck-tree.h rather than
16277         spellcheck.h.
16278         (find_closest_identifier): Reimplement in terms of
16279         best_match<tree,tree>.
16280         * spellcheck-tree.h: New file.
16281         * spellcheck.c (struct edit_distance_traits<const char *>): New
16282         struct.
16283         (find_closest_string): Reimplement in terms of
16284         best_match<const char *, const char *>.
16285         * spellcheck.h (levenshtein_distance): Move prototype of tree-based
16286         overload to spellcheck-tree.h.
16287         (find_closest_identifier): Likewise.
16288         (struct edit_distance_traits<T>): New template.
16289         (class best_match): New class.
16291 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
16293         * selftest-run-tests.c (selftest::run_tests): Call
16294         selftest::spellcheck_tree_c_tests.
16295         * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
16296         * spellcheck-tree.c: Include selftest.h and stringpool.h.
16297         (selftest::test_find_closest_identifier): New function.
16298         (selftest::spellcheck_tree_c_tests): New function.
16299         * spellcheck.c (selftest::test_find_closest_string): Verify that
16300         the order of the vec does not affect the results for this case.
16301         (selftest::test_data): New array.
16302         (selftest::test_metric_conditions): New function.
16303         (selftest::spellcheck_c_tests): Add a test of case-comparison.
16304         Call selftest::test_metric_conditions.
16306 2016-06-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16308         * config/rs6000/rs6000-builtin.def (commentary): Typo.
16309         (BU_P9_MISC_1): Likewise.
16310         (BU_P9_64BIT_MISC_0): Likewise.
16311         (BU_P9_MISC_0): Likewise.
16313 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
16315         * gcc-rich-location.c
16316         (gcc_rich_location::add_fixit_misspelled_id): New method.
16317         * gcc-rich-location.h
16318         (gcc_rich_location::add_fixit_misspelled_id): Add decl.
16320 2016-06-14  Andreas Tobler  <andreast@gcc.gnu.org>
16322         * config/arm/freebsd.h: Only enable unaligned access for armv6 on
16323         FreeBSD 11 and above.
16325 2016-06-14  Uros Bizjak  <ubizjak@gmail.com>
16327         * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
16329 2016-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16331         * expmed.h: Close parenthesis in "at your option" in copyright
16332         boilerplate.
16333         * lower-subreg.h: Likewise.
16335 2016-06-14  Richard Biener  <rguenther@suse.de>
16337         PR middle-end/71526
16338         * genmatch.c (expr::gen_transform): Use in_type for comparisons
16339         if available.
16341 2015-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16343         * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
16344         New function.
16345         (aarch64_rtx_costs): Use it.  Rewrite CONST_INT_P (op1) case to handle
16346         mask+shift version.
16347         * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
16348         New prototype.
16349         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
16350         matching condition with aarch64_mask_and_shift_for_ubfiz_p.
16352 2016-06-14  Richard Biener  <rguenther@suse.de>
16354         PR tree-optimization/71522
16355         * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
16356         copying into float copying.
16358 2016-06-14  Jakub Jelinek  <jakub@redhat.com>
16360         PR tree-optimization/71520
16361         * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
16362         (replace_block_by): Move user labels from bb1 to bb2.
16364 2016-06-14  Richard Biener  <rguenther@suse.de>
16366         PR middle-end/71310
16367         PR bootstrap/71510
16368         * expr.h (get_bit_range): Declare.
16369         * expr.c (get_bit_range): Export.
16370         * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
16371         word_mode again to constrain the bitfield access.
16373 2016-06-14  Richard Biener  <rguenther@suse.de>
16375         PR tree-optimization/71521
16376         * tree-vrp.c (extract_range_from_binary_expr_1): Guard
16377         division int_const_binop against zero divisor.
16379 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
16381         * config/i386/i386.md (signbittf2): New expander.
16382         * config/i386/sse.md (ptesttf2): New insn pattern.
16384 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
16386         PR bootstrap/71481
16387         * input.c (selftest::test_reading_source_line): Avoid reading from
16388         __FILE__ by creating a tempfile with known content and reading
16389         from that instead.
16391 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
16393         * pretty-print.c (assert_pp_format_colored): Skip the test if
16394         GCC_COLORS is set.
16395         (test_pp_format): Remove comment about GCC_COLORS.
16397 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
16399         * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
16400         * pretty-print.c (assert_pp_format_va): Add location param and use
16401         it with ASSERT_STREQ_AT.
16402         (assert_pp_format): Add location param and pass it to
16403         assert_pp_format_va.
16404         (assert_pp_format_colored): Likewise.
16405         (ASSERT_PP_FORMAT_1): New.
16406         (ASSERT_PP_FORMAT_2): New.
16407         (ASSERT_PP_FORMAT_3): New.
16408         (test_pp_format): Provide SELFTEST_LOCATION throughout, either
16409         explicitly, or implicitly via the above macros.
16410         * selftest.c (selftest::pass): Use a selftest::location rather
16411         than file and line.
16412         (selftest::fail): Likewise.  Print the function name.
16413         (selftest::fail_formatted): Likewise.
16414         (selftest::assert_streq): Use a selftest::location rather than
16415         file and line.
16416         * selftest.h (selftest::location): New struct.
16417         (SELFTEST_LOCATION): New macro.
16418         (selftest::pass): Accept a const location & rather than file
16419         and line.
16420         (selftest::fail): Likewise.
16421         (selftest::fail_formatted): Likewise.
16422         (selftest::assert_streq): Likewise.
16423         (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
16424         (ASSERT_FALSE): Likewise.
16425         (ASSERT_EQ): Likewise.
16426         (ASSERT_NE): Likewise.
16427         (ASSERT_STREQ): Likewise.
16428         (ASSERT_PRED1): Likewise.
16429         (ASSERT_STREQ_AT): New macro.
16431 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
16433         * selftest.c (selftest::fail_formatted): New function.
16434         (selftest::assert_streq): New function.
16435         * selftest.h (selftests::fail_formatted): New decl.
16436         (selftest::assert_streq): New decl.
16437         (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
16439 2016-06-13  Jeff Law  <law@redhat.com>
16441         PR tree-optimization/71403
16442         * tree-ssa-threadbackward.c
16443         (convert_and_register_jump_thread_path): No longer accept reference
16444         to path.  Do not pop items off the path anymore.
16445         (fsm_find_control_statement_thread_paths): Do not allow threading
16446         to a deeper loop nest.  Pop the last item off the path here rather
16447         than in convert_and_register_jump_thread_path.
16449 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
16450             Wilco Dijkstra  <Wilco.Dijkstra@arm.com>
16452         [AArch64] Emit division using the Newton series
16454         * config/aarch64/aarch64-protos.h
16455         (cpu_approx_modes): Add new member "division".
16456         (aarch64_emit_approx_div): Declare new function.
16457         * config/aarch64/aarch64.c
16458         (generic_approx_modes): New member "division".
16459         (exynosm1_approx_modes): Likewise.
16460         (xgene1_approx_modes): Likewise.
16461         (aarch64_emit_approx_div): Define new function.
16462         * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
16463         * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
16464         * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
16465         * doc/invoke.texi (-mlow-precision-div): Describe new option.
16467 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
16468             Wilco Dijkstra  <wilco.dijkstra@arm.com>
16470         [AArch64] Emit square root using the Newton series
16472         * config/aarch64/aarch64-protos.h
16473         (aarch64_emit_approx_rsqrt): Replace with new function
16474         "aarch64_emit_approx_sqrt".
16475         (cpu_approx_modes): New member "sqrt".
16476         * config/aarch64/aarch64.c
16477         (generic_approx_modes): New member "sqrt".
16478         (exynosm1_approx_modes): Likewise.
16479         (xgene1_approx_modes): Likewise.
16480         (aarch64_emit_approx_rsqrt): Replace with new function
16481         "aarch64_emit_approx_sqrt".
16482         (aarch64_override_options_after_change_1): Handle new option.
16483         * config/aarch64/aarch64-simd.md
16484         (rsqrt<mode>2): Use new function instead.
16485         (sqrt<mode>2): New expansion and insn definitions.
16486         * config/aarch64/aarch64.md: Likewise.
16487         * config/aarch64/aarch64.opt
16488         (mlow-precision-sqrt): Add new option description.
16489         * doc/invoke.texi (mlow-precision-sqrt): Likewise.
16491 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
16493         [AArch64] Add more choices for the reciprocal square root approximation
16495         Allow a target to prefer such operation depending on the operation mode.
16497         * config/aarch64/aarch64-protos.h
16498         (AARCH64_APPROX_MODE): New macro.
16499         (AARCH64_APPROX_{NONE,ALL}): Likewise.
16500         (cpu_approx_modes): New structure.
16501         (tune_params): New member "approx_modes".
16502         * config/aarch64/aarch64-tuning-flags.def
16503         (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
16504         * config/aarch64/aarch64.c
16505         (generic_approx_modes): New core "cpu_approx_modes" structure.
16506         (exynosm1_approx_modes): Likewise.
16507         (xgene1_approx_modes): Likewise.
16508         (generic_tunings): New member "approx_modes".
16509         (cortexa35_tunings): Likewise.
16510         (cortexa53_tunings): Likewise.
16511         (cortexa57_tunings): Likewise.
16512         (cortexa72_tunings): Likewise.
16513         (exynosm1_tunings): Likewise.
16514         (thunderx_tunings): Likewise.
16515         (xgene1_tunings): Likewise.
16516         (use_rsqrt_p): New argument for the mode and use new member from
16517         "tune_params".
16518         (aarch64_builtin_reciprocal): Devise mode from builtin.
16519         (aarch64_optab_supported_p): New argument for the mode.
16520         * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
16522 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
16524         * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
16525         RS6000_BTM_MODULO flag into the set of flags that are considered
16526         to be part of the common configuration.
16528 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
16530         * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
16531         difference unsigned.
16532         (vec_absdb): New macro for vector absolute difference unsigned
16533         byte.
16534         (vec_absdh): New macro for vector absolute difference unsigned
16535         half-word.
16536         (vec_absdw): New macro for vector absolute difference unsigned word.
16537         * config/rs6000/altivec.md (UNSPEC_VADU): New value.
16538         (vadu<mode>3): New insn.
16539         (*p9_vadu<mode>3): New insn.
16540         * config/rs6000/rs6000-builtin.def (vadub): New built-in
16541         definition.
16542         (vaduh): New built-in definition.
16543         (vaduw): New built-in definition.
16544         (vadu): New overloaded built-in definition.
16545         (vadub): New overloaded built-in definition.
16546         (vaduh): New overloaded built-in definition.
16547         (vaduw): New overloaded built-in definition.
16548         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16549         overloaded vector absolute difference unsigned functions.
16550         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
16551         the ISA 3.0 vector absolute difference unsigned built-in functions.
16553 2016-06-13  Eric Botcazou  <ebotcazou@adacore.com>
16555         * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
16556         update shared_lookup_references only once after changing operands.
16558 2016-06-13  Thomas Schwinge  <thomas@codesourcery.com>
16560         PR middle-end/71373
16561         * tree-nested.c (convert_nonlocal_omp_clauses)
16562         (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
16564         * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
16565         * tree.def (CASE_LABEL_EXPR): Likewise.
16567 2016-06-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16569         PR bootstrap/71481
16570         * input.c (test_builtins): Fix an assertion.
16572 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
16574         * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
16575         (paritysi2): Ditto.
16576         (isinfxf2): Ditto.
16577         (isinf<mode>2): Ditto.
16579 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
16581         * ggc-tests.c (test_finalization): Only test need_finalization_p
16582         for GCC_VERSION >= 4003.
16584 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16586         * config/s390/vecintrin.h: Fix file description in comment.
16588 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16590         * config/s390/s390-builtin-types.def: Change builtin type naming
16591         scheme to match builtin-types.def.
16593 2016-06-13  Marc Glisse  <marc.glisse@inria.fr>
16595         * fold-const.c (optimize_minmax_comparison): Remove.
16596         (fold_comparison): Remove call to the above.
16597         * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
16598         New transformations.
16600 2016-06-13  Alan Hayward  <alan.hayward@arm.com>
16602         PR tree-optimization/71416
16603         * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
16604         multiple entries
16606 2016-06-13  Martin Liska  <mliska@suse.cz>
16608         * predict.c (enum predictor_reason): Prefix enum with REASON_.
16609         (combine_predictions_for_insn): Likewise.
16610         (prune_predictions_for_bb): Likewise.
16611         (combine_predictions_for_bb): Likewise.
16613 2016-06-13  Richard Biener  <rguenther@suse.de>
16615         PR tree-optimization/71505
16616         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
16617         assert match comment.
16619 2016-06-13  Marek Polacek  <polacek@redhat.com>
16621         PR middle-end/71476
16622         * gimplify.c (maybe_warn_switch_unreachable): Factored out of
16623         gimplify_switch_expr.
16624         (warn_switch_unreachable_r): New function.
16626 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16628         PR target/71379
16629         * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
16630         one.
16632 2016-06-13  Richard Biener  <rguenther@suse.de>
16634         PR middle-end/64516
16635         * fold-const.c (fold_unary_loc): Preserve alignment when
16636         folding a VIEW_CONVERT_EXPR into a MEM_REF.
16638 2016-06-13  Martin Liska  <mliska@suse.cz>
16640         PR sanitizer/71458
16641         * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
16642         w/ -fsanitize=bounds.
16644 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
16646         * config/i386/i386.c (ix86_init_builtins): Calculate
16647         FLOAT128_FTYPE_CONST_STRING function type only once.
16648         * doc/extend.texi (x86 Built-in Functions): Update text, __float128
16649         built-in functions are available for x86-32 and x86-64 targets.
16651 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
16653         PR target/71241
16654         * config/i386/i386.i386-builtin-types.def (CONST_STRING):
16655         New primitive type.
16656         (FLOAT128_FTYPE_CONST_STRING): New function type.
16657         * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
16658         [IX86_BUILTIN_NANSQ]: Ditto.
16659         (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
16660         (ix86_init_builtin_types): Declare const_string_type_node.
16661         (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
16662         builtin functions.
16663         (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
16664         * doc/extend.texi (x86 Built-in Functions): Document
16665         __builtin_nanq and __builtin_nansq.
16667 2016-06-11  Jiong Wang  <jiong.wang@arm.com>
16669         PR target/71061
16670         * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
16671         * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
16672         length for pop patterns.
16673         (arm_attr_length_push_multi): Update comments.
16674         * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
16675         attribute.
16676         (*pop_multiple_with_writeback_and_return): Likewise.
16677         (*pop_multiple_with_return): Likewise.
16679 2016-06-11  Segher Boessenkool  <segher@kernel.crashing.org>
16681         PR middle-end/71310
16682         * fold-const.c (optimize_bit_field_compare): Don't try to use
16683         word_mode unconditionally for reading the bit field, look at
16684         DECL_BIT_FIELD_REPRESENTATIVE instead.
16686 2016-06-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
16688         PR middle-end/71478
16689         * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
16690         vector integer type.
16692 2016-06-10  Jakub Jelinek  <jakub@redhat.com>
16694         PR middle-end/71494
16695         * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
16696         without LABEL_DECL, set *handled_ops_p to false instead of true.
16698 2016-06-10  Martin Sebor  <msebor@redhat.com>
16700         PR c/71392
16701         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
16702         (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
16703         * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
16704         them.
16705         (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
16706         (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
16707         (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
16708         (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
16709         (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
16710         (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
16711         (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
16712         (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
16714 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16716         * config/arm/arm.h (pool_vector_label,
16717         return_used_this_function): Remove.
16719 2016-06-10  Jeff Law  <law@redhat.com>
16721         PR tree-optimization/71335
16722         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
16723         zero length paths here.
16724         (convert_and_register_jump_thread_path): Remove hacks related to
16725         duplicated blocks in the jump thread path.
16726         (fsm_find_control_statement_thread_paths): Avoid putting the same
16727         block on the thread path twice, but ensure the thread path is
16728         unchanged from the caller's point of view.
16730 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
16732         * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
16733         * predict.def (PRED_LOOP_BRANCH): Remove.
16735 2016-06-10  David Malcolm  <dmalcolm@redhat.com>
16737         * Makefile.in (OBJS): Add ggc-tests.o.
16738         (GTFILES): Add ggc-tests.c.
16739         * ggc-tests.c: New file.
16740         * selftest-run-tests.c (selftest::run_tests): Call
16741         selftest::ggc_tests_c_tests.
16742         * selftest.h (selftest::ggc_tests_c_tests): New prototype.
16744 2016-06-10  Alexander Monakov  <amonakov@ispras.ru>
16746         * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
16748 2016-06-10  Maxim Ostapenko  <m.ostapenko@samsung.com>
16750         PR sanitizer/71480
16751         * varasm.c (place_block_symbol): Adjust alignment for asan protected
16752         STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
16754 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
16756         * profile.c: Include cfgloop.h.
16757         (branch_prob): Compute estimated number of iterations.
16758         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
16759         recompute estimate number of iterations from profile.
16761 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16763         PR inline-asm/68843
16764         * reg-stack.c (check_asm_stack_operands): Explicit input arguments
16765         must be grouped on top of stack.  Don't force early clobber
16766         on ordinary reg outputs.
16768 2016-06-10  Richard Biener  <rguenther@suse.de>
16770         * targhooks.c (default_builtin_vectorization_cost): Adjust
16771         vec_construct cost.
16773 2016-06-10  Richard Biener  <rguenther@suse.de>
16775         * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
16776         to fold the RHS to a constant if possible.
16778 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
16780         PR middle-end/71373
16781         * tree-nested.c (convert_nonlocal_omp_clauses)
16782         (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
16783         OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
16784         OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
16786         * gimplify.c (gimplify_adjust_omp_clauses): Discard
16787         OMP_CLAUSE_TILE.
16788         * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
16790         * omp-low.c (scan_sharing_clauses): Don't expect
16791         OMP_CLAUSE__CACHE_.
16793 2016-06-10  Alan Hayward  <alan.hayward@arm.com>
16795         PR tree-optimization/71407
16796         PR tree-optimization/71416
16797         * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
16798         BIT_FIELD_REF type.
16800 2016-06-10  Richard Biener  <rguenther@suse.de>
16802         PR middle-end/71477
16803         * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
16805 2016-06-09  Eric Botcazou  <ebotcazou@adacore.com>
16807         * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
16809 2016-06-09  Vladimir Makarov  <vmakarov@redhat.com>
16810             Jiong Wang  <jiong.wang@arm.com>
16812         PR rtl-optimization/70751
16813         * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
16814         spilled into memory.
16816 2016-06-09  Jonathan Yong  <10walls@gmail.com>
16818         Revert:
16819         2015-09-21  Jonathan Yong  <10walls@gmail.com>
16821         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
16822         sysroot/usr/lib/32api for additional win32 libraries,
16823         fixes failing Cygwin bootstrapping.
16825 2016-06-09  Marcin Baczyński  <marbacz@gmail.com>
16827         * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
16828         Delete.
16830 2016-06-09  David Malcolm  <dmalcolm@redhat.com>
16832         PR bootstrap/71471
16833         * pretty-print.c (pp_indent): Specify that %p is printed in a
16834         host-dependent manner.
16835         (test_pp_format): Remove the test for %p.
16837 2016-06-09  Maciej W. Rozycki  <macro@imgtec.com>
16839         * config/mips/mips.c (mips_output_jump): Fix formatting.
16841 2016-06-09  Richard Biener  <rguenther@suse.de>
16843         PR tree-optimization/71462
16844         * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
16845         removed blocks.
16847 2016-06-09  Martin Liska  <mliska@suse.cz>
16849         * predict.c (dump_prediction): Add new argument.
16850         (enum predictor_reason): New enum.
16851         (struct predictor_hash): New struct.
16852         (predictor_hash::hash): New function.
16853         (predictor_hash::equal): Likewise.
16854         (not_removed_prediction_p): New function.
16855         (prune_predictions_for_bb): Likewise.
16856         (combine_predictions_for_bb): Prune predictions.
16858 2016-06-09  Martin Liska  <mliska@suse.cz>
16860         * predict.c (filter_predictions): New function.
16861         (remove_predictions_associated_with_edge): Use the filter
16862         function.
16863         (equal_edge_p): New function.
16865 2016-06-09  Stefan Bruens  <stefan.bruens@rwth-aachen.de>
16867         * doc/invoke.texi (ARM Options): Use lexicographical ordering.
16868         Correct usage of @samp vs @option, add @samp where appropriate.
16869         Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
16870         Add armv6s-m and document it, as it is no official ARM name.
16872 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16874         * ifcvt.c (struct noce_if_info): Add transform_name field.
16875         (noce_try_move): Set if_info->transform_name to the function name.
16876         (noce_try_ifelse_collapse): Likewise.
16877         (noce_try_store_flag): Likewise.
16878         (noce_try_inverse_constants): Likewise.
16879         (noce_try_store_flag_constants): Likewise.
16880         (noce_try_addcc): Likewise.
16881         (noce_try_store_flag_mask): Likewise.
16882         (noce_try_cmove): Likewise.
16883         (noce_try_cmove_arith): Likewise.
16884         (noce_try_minmax): Likewise.
16885         (noce_try_abs): Likewise.
16886         (noce_try_sign_mask): Likewise.
16887         (noce_try_bitop): Likewise.
16888         (noce_convert_multiple_sets): Likewise.
16889         (noce_process_if_block): Print if_info->transform_name to
16890         dump_file if transformation succeeded.
16892 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16894         * config/arm/cortex-a57.md (cortex_a57_alu):
16895         Handle csel type.
16897 2016-06-08  Martin Sebor  <msebor@redhat.com>
16898             Jakub Jelinek  <jakub@redhat.com>
16900         PR c++/70507
16901         PR c/68120
16902         * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
16903         BUILT_IN_MUL_OVERFLOW_P): New builtins.
16904         * builtins.c: Include gimple-fold.h.
16905         (fold_builtin_arith_overflow): Handle
16906         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
16907         (fold_builtin_3): Likewise.
16908         * doc/extend.texi (Integer Overflow Builtins): Document
16909         __builtin_{add,sub,mul}_overflow_p.
16911 2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
16913         * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
16914         SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
16916 2016-06-08  Alan Lawrence  <alan.lawrence@arm.com>
16918         * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
16919         Rewrite, looking one level down for records and arrays.
16921 2016-06-08  David Malcolm  <dmalcolm@redhat.com>
16923         * pretty-print.c: Include "selftest.h".
16924         (pp_format): Fix comment.
16925         (identifier_to_locale): Likewise.
16926         (selftest::test_basic_printing): New function.
16927         (selftest::assert_pp_format): New function.
16928         (selftest::test_pp_format): New function.
16929         (selftest::pretty_print_c_tests): New function.
16930         * selftest-run-tests.c (selftest::run_tests): Call
16931         selftest::pretty_print_c_tests.
16932         * selftest.h (pretty_print_c_tests): New declaration.
16934 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
16936         * invoke.texi (max-loop-headers-insns): Document.
16937         * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
16938         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
16939         (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
16941 2016-06-08  Richard Biener  <rguenther@suse.de>
16943         * tree-vect-stmts.c (vectorizable_load): Remove restrictions
16944         on strided SLP loads and fall back to scalar loads in case
16945         we can't chunk them.
16947 2016-06-08  Richard Biener  <rguenther@suse.de>
16949         PR tree-optimization/71452
16950         * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
16951         type used for the SSA rewrite has enough precision to cover
16952         the dynamic type of the location.
16954 2016-06-08  Jakub Jelinek  <jakub@redhat.com>
16955             Richard Biener  <rguenther@suse.de>
16957         PR c++/71448
16958         * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
16959         the same as DECL_P (base0) for indirect_base0.  Use equality_code
16960         in one further place.
16962 2016-06-08  Richard Sandiford  <richard.sandiford@arm.com>
16964         * expmed.c (store_bit_field_1): Do not restrict a multiword op0
16965         to one word if the field is known to overlap other words.
16966         (extract_bit_field_1): Likewise.
16967         (store_split_bit_field): Remove compensating code.
16968         (extract_split_bit_field): Likewise.
16970 2016-06-08  Bernd Schmidt  <bschmidt@redhat.com>
16972         PR debug/71432
16973         PR ada/71413
16974         * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
16976 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
16978         * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
16979         VDQF.
16980         * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
16981         (arch64_addpv4sf): Delete.
16982         (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
16983         "gen_aarch64_addpv4sf".
16984         * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly.  Use
16985         builtin.
16986         (vpadds_f32): Likewise.
16987         (vpaddq_f32): Likewise.
16988         (vpaddq_f64): Likewise.
16990 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
16992         * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
16993         VALLF.
16994         * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
16995         to VALLF.  Rename to "fabd<mode>3".
16996         "*fabd_scalar<mode>3): Delete.
16997         * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
16998         Use builtin.
16999         (vabdd_f64): Likewise.
17000         (vabd_f32): Likewise.
17001         (vabd_f64): Likewise.
17002         (vabdq_f32): Likewise.
17003         (vabdq_f64): Likewise.
17005 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
17007         * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
17008         VALLF.
17009         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
17010         "aarch64_rsqrts<mode>".
17011         * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
17012         * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly.  Use
17013         builtin.
17014         (vrsqrtsd_f64): Likewise.
17015         (vrsqrts_f32): Likewise.
17016         (vrsqrts_f64): Likewise.
17017         (vrsqrtsq_f32): Likewise.
17018         (vrsqrtsq_f64): Likewise.
17020 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
17022         * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
17023         VALLF.
17024         * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
17025         "aarch64_rsqrte<mode>".
17026         * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
17027         * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly.  Use
17028         builtin.
17029         (vrsqrted_f64): Likewise.
17030         (vrsqrte_f32): Likewise.
17031         (vrsqrte_f64): Likewise.
17032         (vrsqrteq_f32): Likewise.
17033         (vrsqrteq_f64): Likewise.
17035 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
17037         * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
17038         (ucvtf): Likewise.
17039         (fcvtzs): Likewise.
17040         (fcvtzu): Likewise.
17041         * config/aarch64/aarch64-simd.md
17042         (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
17043         (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
17044         * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
17045         Use builtin.
17046         (vcvt_n_f32_u32): Likewise.
17047         (vcvt_n_s32_f32): Likewise.
17048         (vcvt_n_u32_f32): Likewise.
17049         (vcvtq_n_f32_s32): Likewise.
17050         (vcvtq_n_f32_u32): Likewise.
17051         (vcvtq_n_f64_s64): Likewise.
17052         (vcvtq_n_f64_u64): Likewise.
17053         (vcvtq_n_s32_f32): Likewise.
17054         (vcvtq_n_s64_f64): Likewise.
17055         (vcvtq_n_u32_f32): Likewise.
17056         (vcvtq_n_u64_f64): Likewise.
17057         * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
17058         (VSDQ_SDI): Likewise.
17059         (fcvt_target): Support V4DI, V4SI and V2SI.
17060         (FCVT_TARGET): Likewise.
17062 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
17064         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
17065         (TYPES_BINOP_SUS): Likewise.
17066         (aarch64_simd_builtin_data): Update include file name.
17067         (aarch64_builtins): Likewise.
17068         * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
17069         for conversion between scalar float-point and fixed-point.
17070         (ucvtf): Likewise.
17071         (fcvtzs): Likewise.
17072         (fcvtzu): Likewise.
17073         * config/aarch64/aarch64.md
17074         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
17075         pattern for conversion between scalar float to fixed-pointer.
17076         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
17077         (UNSPEC_FCVTZS): New UNSPEC enumeration.
17078         (UNSPEC_FCVTZU): Likewise.
17079         (UNSPEC_SCVTF): Likewise.
17080         (UNSPEC_UCVTF): Likewise.
17081         * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
17082         Use builtin.
17083         (vcvtd_n_f64_u64): Likewise.
17084         (vcvtd_n_s64_f64): Likewise.
17085         (vcvtd_n_u64_f64): Likewise.
17086         (vcvtd_n_f32_s32): Likewise.
17087         (vcvts_n_f32_u32): Likewise.
17088         (vcvtd_n_s32_f32): Likewise.
17089         (vcvts_n_u32_f32): Likewise.
17090         * config/aarch64/iterators.md (fcvt_target): Support integer to float
17091         mapping.
17092         (FCVT_TARGET): Likewise.
17093         (FCVT_FIXED2F): New iterator.
17094         (FCVT_F2FIXED): Likewise.
17095         (fcvt_fixed_insn): New define_int_attr.
17097 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
17099         * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
17100         some statements was removed.
17102 2016-06-08  Alan Hayward  <alan.hayward@arm.com>
17104         * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
17105         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
17106         (vect_can_advance_ivs_p): likewise.
17107         (vect_update_ivs_after_vectorizer): likewise.
17108         * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
17109         (vect_analyze_scalar_cycles_1): likewise.
17110         (vect_analyze_loop_operations): likewise.
17111         (report_vect_op): likewise.
17112         (vect_is_slp_reduction): likewise.
17113         (vect_is_simple_reduction): likewise.
17114         (get_initial_def_for_induction): likewise.
17115         (vect_transform_loop): likewise.
17116         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
17117         (vect_recog_sad_pattern): likewise.
17118         (vect_recog_widen_sum_pattern): likewise.
17119         (vect_recog_widening_pattern): likewise.
17120         (vect_recog_divmod_pattern): likewise.
17121         * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
17122         (vect_analyze_slp_instance): likewise.
17123         (vect_transform_slp_perm_load): likewise.
17124         (vect_schedule_slp_instance): likewise.
17126 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
17128         * predict.c (predict_iv_comparison): Mention that heuristics is broken.
17129         (return_prediction): PRED_CONST_RETURN predict return as not taken.
17130         * predict.def (PRED_CONTINUE): Change hitrate 50->67
17131         (PRED_LOOP_BRANCH): Document predictor as broken.
17132         (PRED_LOOP_EXIT): Change hitrate 91->92.
17133         (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
17134         (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
17135         (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
17136         (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
17137         (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
17138         (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
17139         (PRED_CALL): Chane hitrate 71->67.
17140         (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
17141         (PRED_GOTO): Document as unused right now.
17142         (PRED_CONST_RETURN): Change hitrate 67->69
17143         (PRED_NEGATIVE_RETURN): Change hitrate 96->98
17144         (PRED_NULL_RETURN): Change hitrate 91->90.
17145         (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
17146         (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
17147         (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
17149 2016-06-07  Bill Seurer  <seurer@linux.vnet.ibm.com>
17151         * config/rs6000/altivec.h: Add __builtin_vec_mul.
17152         * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
17153         special case Altivec builtin.
17154         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
17155         VSX_BUILTIN_VEC_MUL (replaced with special case code).
17156         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
17157         code for ALTIVEC_BUILTIN_VEC_MUL.
17158         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
17159         for __builtin_vec_mul.
17161 2016-06-07  Peter Bergner  <bergner@vnet.ibm.com>
17163         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
17164         -mno-htm.
17166 2016-06-07  David Malcolm  <dmalcolm@redhat.com>
17168         * spellcheck.c (selftest::test_find_closest_string): New function.
17169         (spellcheck_c_tests): Call the above.
17171 2016-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17173         * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
17175 2016-06-07  Jakub Jelinek  <jakub@redhat.com>
17177         * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
17178         Yv=Yv,C alternatives.
17180 2016-06-07  Richard Biener  <rguenther@suse.de>
17182         PR c/61564
17183         * common.opt (ffast-math): Make Optimization.
17185 2016-06-07  Simon Dardis  <simon.dardis@imgtec.com>
17186             Prachi Godbole  <prachi.godbole@imgtec.com>
17188         * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
17189         `fabs' and `fneg' type attributes.
17190         (p5600_fpu_fabs): Add `fmove' to the comment.
17192 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
17194         * gimple.c: Include builtins.h
17195         (gimple_inexpensive_call_p): New function.
17196         * gimple.h (gimple_inexpensive_call_p): Declare.
17197         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
17198         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
17199         fix formatting.
17201 2016-06-07  Paolo Carlini  <paolo.carlini@oracle.com>
17203         * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
17204         (inform, inform_at_rich_loc, inform_n, warning, warning_at,
17205         warning_at_rich_loc, warning_n, pedwarn, permerror,
17206         permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
17207         sorry, fatal_error, internal_error, internal_error_no_backtrace):
17208         Use the above.
17210 2016-06-07  Richard Biener  <rguenther@suse.de>
17212         PR tree-optimization/71428
17213         * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
17214         BIT_FIELD_REF op vs. load.
17216 2016-06-07  Richard Biener  <rguenther@suse.de>
17218         PR middle-end/71423
17219         * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
17220         for signed ops.
17222 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
17224         * config/pa/pa.md (call): Generate indirect long calls to non-local
17225         functions on TARGET_64BIT.
17226         (call_value): Likewise.
17228 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
17230         * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
17231         pattern and subsequent splitters.
17232         (call_val_reg_64bit_post_reload): Likewise.
17234 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
17236         PR middle-end/71408
17237         * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
17238         propagate_op_to_single_use.
17240 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
17242         PR middle-end/71281
17243         * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
17245 2016-06-07  Uros Bizjak  <ubizjak@gmail.com>
17247         * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
17248         (enum x86_dirflag_state): New enum.
17249         (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
17250         (machine_function): Remove needs_cld.
17251         (ix86_current_function_needs_cld): Remove.
17252         * config/i386/i386.c (ix86_set_func_type): Set
17253         ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
17254         (ix86_expand_prologue): Do not emit CLD here.
17255         (ix86_dirflag_mode_needed): New function.
17256         (ix86_dirflag_mode_entry): Ditto.
17257         (ix86_mode_needed): Handle X86_DIRFLAG entity.
17258         (ix86_mode_after): Ditto.
17259         (ix86_mode_entry): Ditto.
17260         (ix86_mode_exit): Ditto.
17261         (ix86_emit_mode_set): Ditto.
17262         * config/i386/i386.md (strmov_singleop): Set
17263         ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
17264         Do not set ix86_current_function_needs_cld.
17265         (rep_mov): Ditto.
17266         (strset_singleop): Ditto.
17267         (rep_stos): Ditto.
17268         (cmpstrnqi_nz_1): Ditto.
17269         (cmpstrnqi_1): Ditto.
17270         (strlenqi_1): Ditto.
17272 2016-06-06  Jakub Jelinek  <jakub@redhat.com>
17274         PR tree-optimization/71259
17275         * tree-vect-slp.c (vect_get_constant_vectors): For
17276         VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
17277         one for constant op, and use COND_EXPR for non-constant.
17279 2016-06-06  David Malcolm  <dmalcolm@redhat.com>
17281         * Makefile.in (OBJS): Add function-tests.o,
17282         hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
17283         selftest-run-tests.o.
17284         (OBJS-libcommon): Add selftest.o.
17285         (OBJS-libcommon-target): Add selftest.o.
17286         (all.internal): Add "selftest".
17287         (all.cross): Likewise.
17288         (selftest): New phony target.
17289         (s-selftest): New target.
17290         (selftest-gdb): New phony target.
17291         (COLLECT2_OBJS): Add selftest.o.
17292         * bitmap.c: Include "selftest.h".
17293         (selftest::test_gc_alloc): New function.
17294         (selftest::test_set_range): New function.
17295         (selftest::test_clear_bit_in_middle): New function.
17296         (selftest::test_copying): New function.
17297         (selftest::test_bitmap_single_bit_set_p): New function.
17298         (selftest::bitmap_c_tests): New function.
17299         * common.opt (fself-test): New.
17300         * diagnostic-show-locus.c: Include "selftest.h".
17301         (make_range): New function.
17302         (test_range_contains_point_for_single_point): New function.
17303         (test_range_contains_point_for_single_line): New function.
17304         (test_range_contains_point_for_multiple_lines): New function.
17305         (assert_eq): New function.
17306         (test_get_line_width_without_trailing_whitespace): New function.
17307         (selftest::diagnostic_show_locus_c_tests): New function.
17308         * et-forest.c: Include "selftest.h".
17309         (selftest::test_single_node): New function.
17310         (selftest::test_simple_tree): New function.
17311         (selftest::test_disconnected_nodes): New function.
17312         (selftest::et_forest_c_tests): New function.
17313         * fold-const.c: Include "selftest.h".
17314         (selftest::assert_binop_folds_to_const): New function.
17315         (selftest::assert_binop_folds_to_nonlvalue): New function.
17316         (selftest::test_arithmetic_folding): New function.
17317         (selftest::fold_const_c_tests): New function.
17318         * function-tests.c: New file.
17319         * gimple.c: Include "selftest.h".
17320         Include "gimple-pretty-print.h".
17321         (selftest::verify_gimple_pp): New function.
17322         (selftest::test_assign_single): New function.
17323         (selftest::test_assign_binop): New function.
17324         (selftest::test_nop_stmt): New function.
17325         (selftest::test_return_stmt): New function.
17326         (selftest::test_return_without_value): New function.
17327         (selftest::gimple_c_tests): New function.
17328         * hash-map-tests.c: New file.
17329         * hash-set-tests.c: New file.
17330         * input.c: Include "selftest.h".
17331         (selftest::assert_loceq): New function.
17332         (selftest::test_accessing_ordinary_linemaps): New function.
17333         (selftest::test_unknown_location): New function.
17334         (selftest::test_builtins): New function.
17335         (selftest::test_reading_source_line): New function.
17336         (selftest::input_c_tests): New function.
17337         * rtl-tests.c: New file.
17338         * selftest-run-tests.c: New file.
17339         * selftest.c: New file.
17340         * selftest.h: New file.
17341         * spellcheck.c: Include "selftest.h".
17342         (selftest::levenshtein_distance_unit_test_oneway): New function,
17343         adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
17344         (selftest::levenshtein_distance_unit_test): Likewise.
17345         (selftest::spellcheck_c_tests): Likewise.
17346         * toplev.c: Include selftest.h.
17347         (toplev::run_self_tests): New.
17348         (toplev::main): Handle -fself-test.
17349         * toplev.h (toplev::run_self_tests): New.
17350         * tree.c: Include "selftest.h".
17351         (selftest::test_integer_constants): New function.
17352         (selftest::test_identifiers): New function.
17353         (selftest::test_labels): New function.
17354         (selftest::tree_c_tests): New function.
17355         * tree-cfg.c: Include "selftest.h".
17356         (selftest::push_fndecl): New function.
17357         (selftest::test_linear_chain): New function.
17358         (selftest::test_diamond): New function.
17359         (selftest::test_fully_connected): New function.
17360         (selftest::tree_cfg_c_tests): New function.
17361         * vec.c: Include "selftest.h".
17362         (selftest::safe_push_range): New function.
17363         (selftest::test_quick_push): New function.
17364         (selftest::test_safe_push): New function.
17365         (selftest::test_truncate): New function.
17366         (selftest::test_safe_grow_cleared): New function.
17367         (selftest::test_pop): New function.
17368         (selftest::test_safe_insert): New function.
17369         (selftest::test_ordered_remove): New function.
17370         (selftest::test_unordered_remove): New function.
17371         (selftest::test_block_remove): New function.
17372         (selftest::reverse_cmp): New function.
17373         (selftest::test_qsort): New function.
17374         (selftest::vec_c_tests): New function.c.
17375         * wide-int.cc: Include selftest.h and wide-int-print.h.
17376         (selftest::from_int <wide_int>): New function.
17377         (selftest::from_int <offset_int>): New function.
17378         (selftest::from_int <widest_int>): New function.
17379         (selftest::assert_deceq): New function.
17380         (selftest::assert_hexeq): New function.
17381         (selftest::test_printing <VALUE_TYPE>): New function template.
17382         (selftest::test_ops <VALUE_TYPE>): New function template.
17383         (selftest::test_comparisons <VALUE_TYPE>): New function template.
17384         (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
17385         template.
17386         (selftest::wide_int_cc_tests): New function.
17388 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17390         PR middle-end/37780
17391         * ifcvt.c (noce_try_ifelse_collapse): New function.
17392         Declare prototype.
17393         (noce_process_if_block): Call noce_try_ifelse_collapse.
17394         * simplify-rtx.c (simplify_cond_clz_ctz): New function.
17395         (simplify_ternary_operation): Use the above to simplify
17396         conditional CLZ/CTZ expressions.
17398 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17400         PR middle-end/37780
17401         * config/aarch64/aarch64.md (ctz<mode>2): Convert to
17402         define_insn_and_split.
17404 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17406         PR middle-end/37780
17407         * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
17409 2016-06-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17411         PR c/24414
17412         * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
17413         Implicitly clobber memory for basic asm with non-empty assembler
17414         string.  Use targetm.md_asm_adjust also here.
17415         * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
17416         * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
17417         * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
17418         non-empty assembler string.
17419         * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
17420         * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
17421         (decode_asm_operands): Handle basic asm in PARALLEL block.
17422         (extract_insn): Handle basic asm in PARALLEL block.
17423         * doc/extend.texi: Mention new behavior of basic asm.
17424         * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
17425         * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
17426         branch_needs_nop_p): Use asm_noperands.
17428 2016-06-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
17430         * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
17431         Include the M7 SPARC DFA scheduler.
17432         New attribute v3pipe.
17433         Annotate insns with v3pipe where appropriate.
17434         Define cpu_feature vis4.
17435         Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
17436         Add (V8QI "8") to vbits.
17437         Add insns {add,sub}v8qi3
17438         Add insns ss{add,sub}v8qi3
17439         Add insns us{add,sub}{v8qi,v4hi}3
17440         Add insns {min,max}{v8qi,v4hi,v2si}3
17441         Add insns {minu,maxu}{v8qi,v4hi,v2si}3
17442         Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
17443         * config/sparc/niagara4.md: Add a comment explaining the
17444         discrepancy between the documented latenty numbers and the
17445         implemented ones.
17446         * config/sparc/niagara7.md: New file.
17447         * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
17448         supports SPARC5 and VIS 4.0 instructions.
17449         * configure: Regenerate.
17450         * config.in: Likewise.
17451         * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
17452         * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
17453         TARGET_CPU_niagara7.
17454         (ASM_CPU64_DEFAULT_SPEC): Likewise.
17455         (CPP_CPU_SPEC): Handle niagara7.
17456         (ASM_CPU_SPEC): Likewise.
17457         * config/sparc/sparc-opts.h (processor_type): Add
17458         PROCESSOR_NIAGARA7.
17459         (mvis4): New option.
17460         * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
17461         (AS_NIAGARA7_FLAG): Define.
17462         (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
17463         (CPP_CPU64_DEFAULT_SPEC): Likewise.
17464         (CPP_CPU_SPEC): Handle niagara7.
17465         (ASM_CPU_SPEC): Likewise.
17466         * config/sparc/sparc.c (niagara7_costs): Define.
17467         (sparc_option_override): Handle niagara7 and adjust cache-related
17468         parameters with better values for niagara cpus.  Also support VIS4.
17469         (sparc32_initialize_trampoline): Likewise.
17470         (sparc_use_sched_lookahead): Likewise.
17471         (sparc_issue_rate): Likewise.
17472         (sparc_register_move_cost): Likewise.
17473         (dump_target_flag_bits): Support VIS4.
17474         (sparc_vis_init_builtins): Likewise.
17475         (sparc_builtins): Likewise.
17476         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
17477         VIS4 4.0.
17478         * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
17479         UltraSparc M7.
17480         * config/sparc/sparc.opt (sparc_processor_type): New value
17481         niagara7.
17482         * config/sparc/visintrin.h (__attribute__): Prototypes for the
17483         VIS4 builtins.
17484         * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
17485         -mvis4.
17486         * doc/extend.texi (SPARC VIS Built-in Functions): Document the
17487         VIS4 builtins.
17489 2016-06-06  Jonathan Wakely  <jwakely@redhat.com>
17491         * doc/sourcebuild.texi (Directives): Remove extra closing braces.
17493 2016-06-06  Richard Biener  <rguenther@suse.de>
17495         PR tree-optimization/71398
17496         * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
17497         remove edges.
17499 2016-06-05  James Bowman  <james.bowman@ftdichip.com>
17501         * config/ft32/ft32.c (ft32_setup_incoming_varargs,
17502         ft32_expand_prolog, ft32_expand_epilogue):
17503         Handle pretend_args.
17504         * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
17505         * config/ft32/ft32.md: Add pretend_returner.
17507 2016-06-06  Uros Bizjak  <ubizjak@gmail.com>
17509         PR target/71389
17510         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
17511         Copy op1 RTX to avoid invalid sharing.
17512         (ix86_expand_vector_move_misalign): Ditto.
17514 2016-06-05  John David Anglin  <danglin@gcc.gnu.org>
17516         * expr.c (move_by_pieces_d::generate): Mark mode parameter with
17517         ATTRIBUTE_UNUSED.
17519 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
17521         * predict.c (predicted_by_loop_heuristics_p): New function.
17522         (predict_iv_comparison): Use it.
17523         (predict_loops): Walk from innermost loops; do not predict edges
17524         leaving multiple loops multiple times; implement
17525         PRED_LOOP_ITERATIONS_MAX heuristics.
17526         * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
17528 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
17530         * cfg.c (check_bb_profile): Do not report mismatched profiles when
17531         only edges out of BB are EH edges.
17533 2016-06-04  Martin Sebor  <msebor@redhat.com>
17534             Marcin Baczyński  <marbacz@gmail.com>
17536         PR c/48116
17537         * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
17538         a void expression in a void function.
17540 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
17542         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
17543         aux; dump reasons of decisions.
17544         (should_duplicate_loop_header_p): Likewise.
17545         (do_while_loop_p): Likewise.
17546         (ch_base::copy_headers): Dump asi num insns duplicated.
17548 2016-06-04  Jakub Jelinek  <jakub@redhat.com>
17550         PR tree-optimization/71405
17551         * tree-ssa.c (execute_update_addresses_taken): For clobber with
17552         incompatible type, build a new clobber with the right type instead
17553         of building a VIEW_CONVERT_EXPR around it.
17555 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
17557         PR tree-optimization/52171
17558         * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
17559         by_pieces_ninsns instead of move_by_pieces_ninsns.
17561 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
17563         * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
17564         for reg+reg addressing mode.
17566 2016-06-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17568         * rs6000-c.c (c/c-tree.h): Add #include.
17569         (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
17570         in C++ when found in the base position of vec_ld or vec_st.
17572 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
17574         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
17575         use of profile unless profile status is PROFILE_READ.
17576         * profile.c (compute_branch_probabilities): Set profile status
17577         only after reporting predictor hitrates.
17579 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
17581         PR target/71276
17582         PR target/71277
17583         * common.opt (ffp-int-builtin-inexact): New option.
17584         * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
17585         * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
17586         (ceil@var{m}2): Document dependence on this option.
17587         * ipa-inline-transform.c (inline_call): Handle
17588         flag_fp_int_builtin_inexact.
17589         * ipa-inline.c (can_inline_edge_p): Likewise.
17590         * config/i386/i386.md (rintxf2): Do not test
17591         flag_unsafe_math_optimizations.
17592         (rint<mode>2_frndint): New define_insn.
17593         (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
17594         or !flag_trapping_math for SSE.  Just use gen_rint<mode>2_frndint
17595         for 387 instead of extending and truncating.
17596         (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
17597         !flag_trapping_math instead of flag_unsafe_math_optimizations.
17598         Change to frndint<mode>2_<rounding>.
17599         (frndintxf2_<rounding>_i387): Likewise.  Change to
17600         frndint<mode>2_<rounding>_i387.
17601         (<rounding_insn>xf2): Likewise.
17602         (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
17603         !flag_trapping_math instead of flag_unsafe_math_optimizations for
17604         x87.  Test TARGET_ROUND || !flag_trapping_math ||
17605         flag_fp_int_builtin_inexact instead of !flag_trapping_math for
17606         SSE.  Use ROUND_NO_EXC in constant operand of
17607         gen_sse4_1_round<mode>2.  Just use gen_frndint<mode>2_<rounding>
17608         for 387 instead of extending and truncating.
17610 2016-06-03  H.J. Lu  <hongjiu.lu@intel.com>
17611             Julia Koval  <julia.koval@intel.com>
17613         PR target/66960
17614         PR target/67630
17615         PR target/67634
17616         PR target/67841
17617         PR target/68037
17618         PR target/68618
17619         PR target/68661
17620         PR target/69575
17621         PR target/69596
17622         PR target/69734
17623         * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
17624         * config/i386/i386.c (ix86_conditional_register_usage): Preserve
17625         all registers, except for function return registers if there are
17626         no caller-saved registers.
17627         (ix86_set_func_type): New function.
17628         (ix86_set_current_function): Call ix86_set_func_type to set
17629         no_caller_saved_registers and func_type.  Call reinit_regs if
17630         caller-saved registers are changed.  Don't allow MPX, SSE, MMX
17631         nor x87 instructions in interrupt handler nor function with
17632         no_caller_saved_registers attribute.
17633         (ix86_function_ok_for_sibcall): Return false if there are no
17634         caller-saved registers.
17635         (type_natural_mode): Don't warn ABI change for MMX in interrupt
17636         handler.
17637         (ix86_function_arg_advance): Skip for callee in interrupt handler.
17638         (ix86_function_arg): Return special arguments in interrupt handler.
17639         (ix86_promote_function_mode): Promote pointer to word_mode only
17640         for normal functions.
17641         (ix86_can_use_return_insn_p): Don't use `ret' instruction in
17642         interrupt handler.
17643         (ix86_epilogue_uses): New function.
17644         (ix86_hard_regno_scratch_ok): Likewise.
17645         (ix86_save_reg): Preserve all registers in interrupt handler
17646         after reload.  Preserve all registers, except for function return
17647         registers, if there are no caller-saved registers after reload.
17648         (find_drap_reg): Always use callee-saved register if there are
17649         no caller-saved registers.
17650         (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
17651         for interrupt handler.
17652         (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
17653         Emit cld instruction if stringops are used in interrupt handler
17654         or interrupt handler isn't a leaf function.
17655         (ix86_expand_epilogue): Generate interrupt return for interrupt
17656         handler and pop the 'ERROR_CODE' off the stack before interrupt
17657         return in exception handler.
17658         (ix86_expand_call): Disallow calling interrupt handler directly.
17659         If there are no caller-saved registers, mark all registers that
17660         are clobbered by the call which returns as clobbered.
17661         (ix86_handle_no_caller_saved_registers_attribute): New function.
17662         (ix86_handle_interrupt_attribute): Likewise.
17663         (ix86_attribute_table): Add interrupt and no_caller_saved_registers
17664         attributes.
17665         (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
17666         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
17667         accumulation in interrupt function if stack may be realigned to
17668         avoid DRAP.
17669         (EPILOGUE_USES): New.
17670         (function_type): New enum.
17671         (machine_function): Add func_type and no_caller_saved_registers.
17672         * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
17673         (interrupt_return): New pattern.
17674         * doc/extend.texi: Document x86 interrupt and
17675         no_caller_saved_registers attributes.
17677 2016-06-03  Bernd Schmidt  <bschmidt@redhat.com>
17679         PR tree-optimization/52171
17680         * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
17681         (expand_builtin_memcmp): New arg RESULT_EQ.  All callers changed.
17682         Look for constant strings.  Move some code to emit_block_cmp_hints
17683         and use it.
17684         * builtins.def (BUILT_IN_MEMCMP_EQ): New.
17685         * defaults.h (COMPARE_MAX_PIECES): New macro.
17686         * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
17687         (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
17688         (clear_by_pieces_1): Don't declare.  Move definition before use.
17689         (can_do_by_pieces): New static function.
17690         (can_move_by_pieces): Use it.  Return bool.
17691         (by_pieces_ninsns): Renamed from move_by_pieces_ninsns.  New arg
17692         OP.  All callers changed.  Handle COMPARE_BY_PIECES.
17693         (class pieces_addr); New.
17694         (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
17695         pieces_addr::adjust, pieces_addr::increment_address,
17696         pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
17697         functions for it.
17698         (class op_by_pieces_d): New.
17699         (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
17700         functions for it.
17701         (class move_by_pieces_d, class compare_by_pieces_d,
17702         class store_by_pieces_d): New subclasses of op_by_pieces_d.
17703         (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
17704         move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
17705         store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
17706         compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
17707         compare_by_pieces_d::finish_mode): New member functions.
17708         (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
17709         functions.
17710         (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
17711         (emit_block_cmp_hints): New function.
17712         (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
17713         use the newly defined classes.
17714         * expr.h (by_pieces_constfn): New typedef.
17715         (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
17716         (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
17717         (move_by_pieces_ninsns): Don't declare.
17718         (can_move_by_pieces): Change return value to bool.
17719         * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
17720         (compare_by_pieces_branch_ratio): New hook.
17721         * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
17722         (by_pieces_ninsns): Declare.
17723         * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
17724         COMPARE_BY_PIECES.
17725         (default_compare_by_pieces_branch_ratio): New function.
17726         * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
17727         * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
17728         * doc/tm.texi: Regenerate.
17729         * tree-ssa-strlen.c: Include "builtins.h".
17730         (handle_builtin_memcmp): New static function.
17731         (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
17732         * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
17734 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
17736         * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
17737         relevant stmts which are simple and invariant.
17738         * tree-vect-loop.c (vectorizable_live_operation): Check relevance
17739         instead of simple and invariant
17741 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
17743         * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
17744         (vectorizable_reduction): Check for new relevant state.
17745         (vectorizable_live_operation): vectorize live stmts using
17746         BIT_FIELD_REF.  Remove special case for gimple assigns stmts.
17747         * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
17748         (vect_stmt_relevant_p): Check for stmts which are only used live.
17749         (process_use): Use of a stmt does not inherit it's live value.
17750         (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
17751         (vect_analyze_stmt): Check for new relevant state.
17752         * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
17753         outside the loop, but not inside it.
17755 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
17757         * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
17758         * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
17759         (vect_get_vec_def_for_operand): Split out code.
17761 2016-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
17763         * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
17765 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
17767         * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
17769 2016-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17771         * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
17773 2016-06-03  Jakub Jelinek  <jakub@redhat.com>
17775         PR middle-end/71387
17776         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
17777         to noreturn e->callee->decl that has void return type and void
17778         arguments, adjust gimple_call_fntype and remove lhs even if it had
17779         previously addressable type.
17781 2016-06-02  Jeff Law  <law@redhat.com>
17783         PR tree-optimization/71328
17784         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
17785         error when checking for a jump back onto the copied path.
17787 2016-06-02  David Malcolm  <dmalcolm@redhat.com>
17789         * config/microblaze/microblaze.c (get_branch_target): Add return
17790         NULL_RTX for the non-CALL_P case.
17791         (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
17792         (insert_wic): Remove unused local "j".
17794 2016-06-02  Martin Liska  <mliska@suse.cz>
17796         * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
17798 2016-06-02  H.J. Lu  <hongjiu.lu@intel.com>
17799             Julia Koval  <julia.koval@intel.com>
17801         * function.c (assign_parm_setup_stack): Force source into a
17802         register if needed.
17803         * target.def (function_incoming_arg): Update documentation to
17804         allow arbitrary address computation based on hard register.
17805         * doc/tm.texi: Regenerated.
17807 2016-06-02  Martin Liska  <mliska@suse.cz>
17809         * predict.c (combine_predictions_for_bb): Fix first match in
17810         cases where a first predictor contains more than one occurence
17811         in list of predictors.  Take the best value in such case.
17813 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17815         PR rtl-optimization/71295
17816         * rtlanal.c (subreg_get_info): If taking a subreg at the requested
17817         offset would go over the size of the inner mode reject it.
17819 2016-06-02  Jakub Jelinek  <jakub@redhat.com>
17821         * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
17822         x=x,x and v=v,m instead of x=x,m.
17824         * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
17825         alternative.  Change x=x,x alternative to v=Yv,Yv and x=rm,C
17826         alternative to v=rm,C.
17828         * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
17829         alternative.  Change x=xm,C alternative to v=vm,C, x=x,x alternative
17830         to v=Yv,Yv and x=x,m to v=v,m.  Use maybe_evex prefix attribute
17831         instead of vex for the last two above mentioned alternatives.
17833 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17835         PR target/70830
17836         * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
17838 2016-06-02  Segher Boessenkool  <segher@kernel.crashing.org>
17840         * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
17842 2016-06-01  David Malcolm  <dmalcolm@redhat.com>
17844         * config/rl78/rl78.c (rl78_expand_prologue): Convert local
17845         from int to unsigned.
17847 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
17849         * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
17850         alternatives, eliminating preferred register class.  Add support
17851         for the MTVSRDD instruction in ISA 3.0.
17852         (vsx_splat_v4si_internal): Use splat_input_operand instead of
17853         reg_or_indexed_operand.
17854         (vsx_splat_v4sf_internal): Likewise.
17856 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
17858         PR target/71186
17859         * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
17860         for loading up all 0's or all 1's.
17862 2016-06-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17864         * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
17866 2016-06-01  Eduard Sanou  <dhole@openmailbox.org>
17868         * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
17869         extension.
17870         * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
17871         * gcc.c (set_source_date_epoch_envvar): New function, sets
17872         the SOURCE_DATE_EPOCH environment variable to the current time.
17874 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
17876         * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
17877         the factor for live Phi nodes.
17879 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
17881         * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
17882         * tree-parloops.c (parallelize_loops): likewise.
17883         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
17884         tree_unswitch_outer_loop): likewise.
17886 2016-06-01  Jakub Jelinek  <jakub@redhat.com>
17888         PR middle-end/71371
17889         * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
17890         around creation of the temporary.
17892 2016-06-01  Richard Biener  <rguenther@suse.de>
17894         PR tree-optimization/71366
17895         * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
17896         (unloop_loops): Move removing edges here ...
17897         (try_unroll_loop_completely): ... from here.
17898         (try_peel_loop): ... and here.
17899         (tree_unroll_loops_completely_1): Track parent loops via
17900         bitmap of header BBs.
17901         (tree_unroll_loops_completely): Adjust for that.
17903 2016-06-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
17905         * config/rs6000/altivec.h (vec_slv): New macro.
17906         (vec_srv): New macro.
17907         * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
17908         (UNSPEC_VSRV): New value.
17909         (vslv): New insn.
17910         (vsrv): New insn.
17911         * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
17912         (vsrv): New builtin definition.
17913         * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
17914         define argument types for new builtin.
17915         (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
17916         new builtin.
17917         * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
17918         functions.
17920 2016-06-01  Uros Bizjak  <ubizjak@gmail.com>
17921             Jocelyn Mayer  <l_indien@magic.fr>
17923         PR target/67310
17924         * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
17925         detect processor family for signature_CENTAUR_ebx.
17926         <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
17927         signature_CENTAUR_ebx.
17928         <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
17929         <default>: Pass x86-64 for has_longmode.
17931 2016-06-01  Nathan Sidwell  <nathan@acm.org>
17933         * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
17934         undefined weak.
17936 2016-06-01  Richard Biener  <rguenther@suse.de>
17938         PR tree-optimization/71261
17939         * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
17940         of stmts successfully put in the bool pattern.  Remove
17941         single-use restriction.
17942         (adjust_bool_pattern_cast): Add cast at the use site via the
17943         pattern def sequence.
17944         (adjust_bool_pattern): Remove recursion, maintain a hash-map
17945         of patterned defs.  Use the pattern def seqence instead of
17946         multiple independent patterns.
17947         (sort_after_uid): New qsort compare function.
17948         (adjust_bool_stmts): New function to process stmts in the bool
17949         pattern in IL order.
17950         (vect_recog_bool_pattern): Adjust.
17951         * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
17952         (ifcvt_walk_pattern_tree): Likewise.
17953         (stmt_is_root_of_bool_pattern): Likewise.
17954         (ifcvt_repair_bool_pattern): Likewise.
17955         (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
17957 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
17959         * loop-unroll.c (decide_unroll_constant_iterations,
17960         decide_unroll_runtime_iterations, decide_unroll_stupid): Use
17961         likely upper bounds.
17962         * loop-iv.c (find_simple_exit): Dump likely upper bounds.
17964 2016-06-01  Thomas Schwinge  <thomas@codesourcery.com>
17966         * tree-core.h (enum omp_clause_code): Remove
17967         OMP_CLAUSE_DEVICE_RESIDENT.  Adjust all users.
17969 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17971         * config/arm/sync.md (arm_store_exclusive<mode>):
17972         Use 'H' output modifier on operands[2] rather than creating a new
17973         entry in out-of-bounds memory of the operands array.
17974         (arm_store_release_exclusivedi): Likewise.
17976 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17978         * config/arm/arm.c (arm_fusion_enabled_p): New function.
17979         * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
17980         * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
17981         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
17983 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
17985         * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
17986         into account live statements for mask producers.
17988 2016-06-01  Richard Biener  <rguenther@suse.de>
17990         PR tree-optimization/71311
17991         * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
17992         restrict to non-INTEGER_CST @0.
17994 2016-06-01  Richard Biener  <rguenther@suse.de>
17996         * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
17997         (relational patterns): Use :c to avoid pattern duplications.
17999 2016-06-01  Richard Biener  <rguenther@suse.de>
18001         * genmatch.c (comparison_code_p): New predicate.
18002         (swap_tree_comparison): New function.
18003         (commutate): Add for_vec parameter to append new for entries.
18004         Support commutating relational operators by swapping it alongside
18005         operands.
18006         (lower_commutative): Adjust.
18007         (dt_simplify::gen): Do not pass artificial operators to gen
18008         functions.
18009         (decision_tree::gen): Do not add artificial operators as parameters.
18010         (parser::parse_expr): Verify operator commutativity when :c is
18011         applied.  Allow :C to override this.
18012         * match.pd: Adjust patterns to use :C instead of :c where required.
18014 2016-06-01  Patrick Palka  <ppalka@gcc.gnu.org>
18016         PR tree-optimization/71077
18017         * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
18018         the combining step, use boolean_false_node and boolean_true_node
18019         as the designated false/true return values.
18021 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
18023         * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
18024         * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
18025         (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
18026         PRED_LOOP_EXIT.
18028 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
18030         * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
18031         of flags impliying the register renaming.
18032         * toplev.c (process_options): Do not imply flag_rename_registers with
18033         loop peeling.
18035 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
18037         * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
18038         default implementation.
18040 2016-05-31  Nathan Sidwell  <nathan@acm.org>
18042         * dwarf2out.c (cur_line_info_table): Add GTY marker.
18044 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
18046         * config/sh/constraints.md (b): Remove constraint.
18047         * config/sh/predicates.md (arith_reg_operand): Remove
18048         TARGET_REGISTER_P.
18049         * config/sh/sh-modes.def (PDI): Remove.
18050         * config/sh/sh.c (sh_target_reg_class,
18051         sh_optimize_target_register_callee_saved): Remove functions.
18052         (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
18053         (sh_expand_epilogue): Update comment.
18054         (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
18055         sh_secondary_reload): Remove TARGET_REGS related code.
18056         * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
18057         TARGET_REGISTER_P): Remove macros.
18058         (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
18059         * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
18060         TR1_REG, TR2_REG): Remove constants.
18061         * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
18063 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
18065         * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
18066         define_expand patterns.
18067         (adddi3_compact): Rename to adddi3.
18068         (subdi3_compact): Rename to subdi3.
18069         (*negdi2): Rename to negdi2.
18070         (*abs<mode>2): Rename to abs<mode>2.
18072 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
18074         * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
18075         (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
18076         (atomic_sub_fetchsi): ... this new pattern.
18077         (mvtc): Add CC_REG clobber.
18079 2016-05-31  Marek Polacek  <polacek@redhat.com>
18081         * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
18083 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18085         * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
18086         aarch64_fusion_enabled_p to check for fusion capabilities.
18088 2016-05-31  Richard Biener  <rguenther@suse.de>
18090         PR tree-optimization/71352
18091         * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
18092         minus one and a negate.
18094 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18096         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
18097         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
18098         Delete prototype.
18099         * config/aarch64/iterators.md (insn_count): Add descriptive comment.
18100         * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
18101         Remove use of aarch64_simd_attr_length_move, set length attribute
18102         directly.
18103         (*aarch64_be_movoi): Likewise.
18104         (*aarch64_be_movci): Likewise.
18105         (*aarch64_be_movxi): Likewise.
18107 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
18109         * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
18110         It no longer does that.
18111         * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
18113 2016-05-31  Wladimir J. van der Laan  <laanwj@gmail.com>
18115         * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
18116         attribute __unused__.
18118 2016-05-31  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18120         * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
18121         * config/arm/arm.c (arm_arch_thumb1): Define.
18122         (arm_option_override): Initialize arm_arch_thumb1.
18123         * config/arm/arm.h (arm_arch_thumb1): Declare.
18124         (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
18125         support Thumb-1 ISA.
18127 2016-05-31  Kirill Yukhin  <kirill.yukhin@intel.com>
18129         PR target/71346
18130         * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
18131         `Yv' for scalar operand.
18133 2016-05-31  Tom de Vries  <tom@codesourcery.com>
18135         PR tree-optimization/69068
18136         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
18137         phis with more than two args.
18139 2016-05-30  Andreas Tobler  <andreast@gcc.gnu.org>
18141         * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
18142         armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
18143         target.
18145 2016-05-30  Jose E. Marchesi  <jose.marchesi@oracle.com>
18147         * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
18148         tune_64.
18149         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
18150         support on SPARC.
18151         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
18152         cpu_32, cpu_64, tune_32 and tune_64.
18153         * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
18155 2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
18157         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
18159 2016-05-30  Andi Kleen  <ak@linux.intel.com>
18161         * auto-profile.c (read_profile): Replace asserts with errors
18162         when file does not exist.
18163         * gcov-io.c (gcov_read_words): Dito.
18165 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
18167         * tree-cfg.c (print_loop): Print likely upper bounds.
18169 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
18171         * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
18172         * opts.c (default_options): Enable peel loops at -O3.
18173         * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
18174         (try_peel_loop): Do not re-peel already peeled loops;
18175         use likely upper bounds; fix profile updating.
18176         (pass_complete_unroll::execute): Initialize peeled_loops.
18178 2016-05-30  Martin Liska  <mliska@suse.cz>
18180         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
18181         computed costs by frequency of BB they belong to.
18182         (get_scaled_computation_cost_at): New function.
18184 2016-05-30  Alexander Monakov  <amonakov@ispras.ru>
18185             Marc Glisse  <marc.glisse@inria.fr>
18187         PR tree-optimization/71289
18188         * match.pd (-1 / B < A, A > -1 / B): New transformations.
18190 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
18192         * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
18194 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
18196         * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
18197         for peeled copies; avoid underflow when updating estimates; correctly
18198         scale loop profile.
18200 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
18202         * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
18203         r236875. Corrected oe3 to oe2 as obvious.
18205 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
18207         PR middle-end/71269
18208         PR middle-end/71252
18209         * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
18210         that inserted stmt will not dominate stmts that defines its operand.
18211         (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
18212         (rewrite_expr_tree_parallel): Likewise.
18214 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
18216         PR middle-end/71252
18217         * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
18218         all fields including stmt_to_insert are swapped.
18220 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
18222         * predict.h (force_edge_cold): Declare.
18223         * predict.c (force_edge_cold): New function.
18224         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
18225         updating.
18226         (canonicalize_loop_induction_variables): Fix formating.
18228 2016-05-30  Eric Botcazou  <ebotcazou@adacore.com>
18230         * config/visium/visium.c (visium_split_double_add): Minor tweaks.
18231         (visium_expand_copysign): Use gen_int_mode directly.
18232         (visium_compute_frame_size): Minor tweaks.
18234 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
18236         * tree-vect-loop.c (vect_analyze_loop_2): Use
18237         likely_max_stmt_executions_int.
18239 2016-05-30  Tom de Vries  <tom@codesourcery.com>
18241         PR tree-optimization/69067
18242         * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
18244 2016-05-29  Uros Bizjak  <ubizjak@gmail.com>
18246         PR target/71245
18247         * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
18248         New peepholes to remove unneeded fild/fistp pairs.
18249         (define_peephole2 atomic_loaddi_fpu): Ditto.
18251 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
18253         * predict.c (maybe_hot_frequency_p): Avoid division.
18255 2016-05-28  Gerald Pfeifer  <gerald@pfeifer.com>
18257         * doc/install.texi: Use https for shop.fsf.org.
18259 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
18261         * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
18262         likely_max_stmt_executions_int.
18264 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
18266         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
18267         likely_max_stmt_executions_int.
18269 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
18271         * profile.c (compute_branch_probabilities): Do not report hitrates
18272         here.
18273         (branch_prob): Report hitrates here.
18274         * predict.c (gimple_predict_edge): Do not assert profile status;
18275         fix formatting issues.
18277 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
18279         * predict.c (edge_predicted_by_p): New function.
18280         (predict_paths_for_bb): Do not put multiple predictions of the same type
18281         on one edge.
18283 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
18285         * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
18286         commit.
18288 2016-05-28  Alan Modra  <amodra@gmail.com>
18290         * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
18292 2016-05-28  Alan Modra  <amodra@gmail.com>
18294         PR rtl-optimization/71275
18295         * ira.c (ira): Free dominance info.
18297 2016-05-27  Gerald Pfeifer  <gerald@pfeifer.com>
18299         * doc/sourcebuild.texi: New address for upstream Go repository.
18301 2016-05-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18303         * config/arm/arm.h (TARGET_ARM_V6M): Remove.
18304         (TARGET_ARM_V7M): Likewise.
18306 2016-05-26  Jeff Law  <law@redhat.com>
18308         * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
18309         (thread_across_edge): Remove calls to find_jump_threads_backwards.
18310         * passes.def: Add jump threading passes before DOM/VRP.
18311         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
18312         argument to a basic block from an edge.  Remove tests which are
18313         handled elsewhere.
18314         (pass_data_thread_jumps, class pass_thread_jumps): New.
18315         (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
18316         (make_pass_thread_jumps): Likewise.
18317         * tree-pass.h (make_pass_thread_jumps): Declare.
18319 2016-05-27  Eric Botcazou  <ebotcazou@adacore.com>
18321         * config/visium/visium-protos.h (split_double_move): Rename into...
18322         (visium_split_double_move): ...this.
18323         (visium_split_double_add): Declare.
18324         * config/visium/visium.c (split_double_move): Rename into...
18325         (visium_split_double_move): ...this.
18326         (visium_split_double_add): New function.
18327         (visium_expand_copysign): Renumber operands for consistency.
18328         * config/visium/visium.md (DImode move splitter): Adjust to renaming.
18329         (DFmode move splitter): Likewise.
18330         (*addi3_insn): Split by means of visium_split_double_add.
18331         (*adddi3_insn_flags): Delete.
18332         (*plus_plus_sltu<subst_arith>): New insn.
18333         (*subdi3_insn): Split by means of visium_split_double_add.
18334         (subdi3_insn_flags): Delete.
18335         (*minus_minus_sltu<subst_arith>): New insn.
18336         (*negdi2_insn): Split by means of visium_split_double_add.
18337         (*negdi2_insn_flags): Delete.
18339 2016-05-27  Ulrich Weigand  <uweigand@de.ibm.com>
18341         * configure.ac: Treat a --with-headers option without argument
18342         the same as the default (i.e. consult sys-include directory).
18343         * configure: Regenerate.
18345 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18347         * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
18348         * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
18349         prototype.
18350         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
18351         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
18353 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
18355         PR target/63596
18356         * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
18357         tree-stdarg analysis results.
18358         (aarch64_setup_incoming_varargs): Likewise.
18360 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
18362         * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
18363         va_list_gpr_counter_field and va_list_fpr_counter_field.
18365 2016-05-27  Wilco Dijkstra  <wdijkstr@arm.com>
18367         PR67609
18368         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
18369         * config/aarch64/aarch64.c
18370         (aarch64_cannot_change_mode_class): Remove function.
18371         * config/aarch64/aarch64-protos.h
18372         (aarch64_cannot_change_mode_class): Remove.
18374 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
18376         * cfgloop.c (record_niter_bound): Record likely upper bounds.
18377         (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
18378         get_likely_max_loop_iterations_int): New.
18379         * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
18380         any_likely_upper_bound.
18381         (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
18382         Declare.
18383         * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
18384         * loop-unroll.c (unroll_loop_constant_iterations): Update likely
18385         upper bound.
18386         (unroll_loop_constant_iterations): Likewise.
18387         (unroll_loop_runtime_iterations): Likewise.
18388         * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
18389         * lto-streamer-out.c (output_cfg): Likewise.
18390         * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
18391         bounds.
18392         (canonicalize_loop_induction_variables): Dump likely upper bounds.
18393         * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
18394         (likely_max_loop_iterations): New.
18395         (likely_max_loop_iterations_int): New.
18396         (likely_max_stmt_executions): New.
18397         * tree-ssa-loop-niter.h (likely_max_loop_iterations,
18398         likely_max_loop_iterations_int, likely_max_stmt_executions_int,
18399         likely_max_stmt_executions): Declare.
18401 2016-05-27  Marek Polacek  <polacek@redhat.com>
18403         PR middle-end/71308
18404         * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
18406 2016-05-27  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18408         * config/s390/s390.md (2x risbg splitters): Use
18409         reg_overlap_mentioned_p instead of rtx_equal_p.
18411 2016-05-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
18413         * combine.c (make_compound_operation): Take known zero bits into
18414         account when checking for possible zero_extend.
18416 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18418         * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
18419         Use const_int_operand for operand 2 predicate.  Simplify expand code
18420         as a result.
18422 2016-05-27  Ilya Enkovich  <ilya.enkovich@intel.com>
18424         PR middle-end/71279
18425         * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
18426         into comparison.
18428 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18430         * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
18431         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
18432         that returns CC_SESWPmode and CC_ZESWPmode.
18433         (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
18434         and CC_SESWPmode.
18435         (aarch64_rtx_costs): Likewise.
18437 2016-05-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
18439         * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
18440         for ISA 3.0 min/max support.
18441         (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
18442         conditional move support.
18443         (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
18444         rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
18445         available.
18446         * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
18447         conditional moves where the comparison type is different from move
18448         type.
18449         (fp_minmax): New code iterator for smin/smax.
18450         (minmax): New code attributes for min/max.
18451         (SMINMAX): Likewise.
18452         (smax<mode>3): Combine min, max insns into one insn using the
18453         fp_minmax code iterator.  Add support for ISA 3.0 min/max
18454         instructions that don't need -ffast-math.
18455         (s<minmax><mode>3): Likewise.
18456         (smax<mode>3_vsx): Likewise.
18457         (smin<mode>3): Likewise.
18458         (s<minmax><mode>3_vsx): Likewise.
18459         (smin<mode>3_vsx): Likewise.
18460         (pre-VSX min/max splitters): Likewise.
18461         (s<minmax><mode>3_fpr): Likewise.
18462         (movsfcc): Rewrite floating point conditional moves to combine
18463         SFmode/DFmode into a single insn.
18464         (mov<mode>cc): Likewise.
18465         (movdfcc): Likewise.
18466         (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
18467         SFDF2 iterators to handle all combinations.
18468         (fseldfsf4): Likewise.
18469         (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
18470         (fseldfdf4): Likewise.
18471         (fselsfdf4): Likewise.
18472         (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
18473         comparison instructions that set a 0/-1 mask, and use it for
18474         floating point conditional move via XXSEL.
18475         (fpmask<mode>): Likewise.
18476         (xxsel<mode>): Likewise.
18477         * config/rs6000/predicates.md (min_max_operator): Delete, no
18478         longer used.
18479         (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
18480         instructions that generate a 0/-1 mask for use with XXSEL.
18481         * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
18482         say whether floating point min/max is available, either through
18483         FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
18484         (TARGET_MINMAX_DF): Likewise.
18486 2016-05-27  Alan Modra  <amodra@gmail.com>
18488         PR rtl-optimization/71275
18489         * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
18490         for update_equiv_regs and combine_and_move_insns.
18492 2016-05-26  Uros Bizjak  <ubizjak@gmail.com>
18494         * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
18495         if_then_else or cond RTXes to calculate attribute value.
18496         * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
18497         <attr "length_immediate>: Ditto.
18498         (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
18499         * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
18500         (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
18501         <attr "type">: Ditto.
18502         <attr "prefix_data16">: Ditto.
18503         <attr "prefix_extra">: Ditto.
18504         <attr "length_immediate">: Ditto.
18505         <attr "prefix">: Ditto.
18506         (vec_set<mode>_0) <attr "isa">: Ditto.
18507         <attr "prefix_extra">: Ditto.
18508         <attr "length_immediate">: Ditto.
18509         <attr "prefix">: Ditto.
18510         (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
18511         (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
18512         (sse2_storelpd) <attr "prefix_data16">: Ditto.
18513         (sse2_loadhpd) <attr "prefix_data16">: Ditto.
18514         (sse2_loadlpd) <attr "prefix_data16">: Ditto.
18515         <attr "length_immediate">: Ditto.
18516         <attr "prefix">: Ditto.
18517         (sse2_movsd) <attr "length_immediate">: Ditto.
18518         <attr "prefix">: Ditto.
18519         (vec_concatv2df)  <attr "isa">: Ditto.
18520         <attr "prefix">: Ditto.
18521         (*vec_extractv4si) <attr "prefix_extra">: Ditto.
18522         (*vec_extractv2di_1) <attr "isa">: Ditto.
18523         <attr "type">: Ditto.
18524         <attr "length_immediate">: Ditto.
18525         <attr "prefix_rex">: Ditto.
18526         <attr "prefix_extra">: Ditto.
18527         (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
18528         <attr "prefix_extra">: Ditto.
18529         <attr "length_immediate">: Ditto.
18530         (vec_concatv2di) <attr "isa">: Ditto.
18531         <attr "prefix_extra">: Ditto.
18532         <attr "length_immediate">: Ditto.
18533         <attr "prefix">: Ditto.
18535 2016-05-26  Martin Liska  <mliska@suse.cz>
18537         * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
18538         function.
18539         (operator+): Likewise.
18540         (operator-): Likewise.
18541         (comp_cost::operator+=): Likewise.
18542         (comp_cost::operator-=): Likewise.
18543         (comp_cost::operator/=): Likewise.
18544         (comp_cost::operator*=): Likewise.
18545         (operator<): Likewise.
18546         (operator==): Likewise.
18547         (operator<=): Likewise.
18548         (new_cost): Remove.
18549         (infinite_cost_p): Likewise.
18550         (add_costs): Likewise.
18551         (sub_costs): Likewise.
18552         (compare_costs): Likewise.
18553         (set_group_iv_cost): Use the newly introduced functions.
18554         (get_address_cost): Likewise.
18555         (get_shiftadd_cost): Likewise.
18556         (force_expr_to_var_cost): Likewise.
18557         (split_address_cost): Likewise.
18558         (ptr_difference_cost): Likewise.
18559         (difference_cost): Likewise.
18560         (get_computation_cost_at): Likewise.
18561         (determine_group_iv_cost_generic): Likewise.
18562         (determine_group_iv_cost_address): Likewise.
18563         (determine_group_iv_cost_cond): Likewise.
18564         (autoinc_possible_for_pair): Likewise.
18565         (determine_group_iv_costs): Likewise.
18566         (cheaper_cost_pair): Likewise.
18567         (iv_ca_recount_cost): Likewise.
18568         (iv_ca_set_no_cp): Likewise.
18569         (iv_ca_set_cp): Likewise.
18570         (iv_ca_cost): Likewise.
18571         (iv_ca_new): Likewise.
18572         (iv_ca_dump): Likewise.
18573         (iv_ca_narrow): Likewise.
18574         (iv_ca_prune): Likewise.
18575         (iv_ca_replace): Likewise.
18576         (try_add_cand_for): Likewise.
18577         (try_improve_iv_set): Likewise.
18578         (find_optimal_iv_set): Likewise.
18580 2016-05-26  Richard Sandiford  <richard.sandiford@arm.com>
18582         * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
18583         that internal functions will clobber all caller-saved registers.
18585 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
18587         * config/aarch64/aarch64.c (aarch64_case_values_threshold):
18588         Return a better case_values_threshold when optimizing.
18590 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
18592         * config/aarch64/aarch64-simd.md (aarch64_combinez):
18593         Add ? to integer variant.
18594         (aarch64_combinez_be): Likewise.
18596 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
18598         * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
18599         instead of x constraint.
18600         (vcvtps2ph256<mask_name>): Likewise.
18602         * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
18603         alternative.  Formatting fix.
18605         * config/i386/sse.md
18606         (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
18607         to ...
18608         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
18609         (*avx_vperm_broadcast_v4sf): Use v constraint instead of x.  Use
18610         maybe_evex prefix instead of vex.
18611         (*avx_vperm_broadcast_<mode>): Use v constraint instead of x.  Handle
18612         EXT_REX_SSE_REG_P (op0) case in the splitter.
18614 2016-05-25  Jeff Law  <law@redhat.com>
18616         PR tree-optimization/71272
18617         * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
18618         Update comments.  Add test for empty path.
18620 2016-05-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
18622         * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
18623         * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
18624         special case builtin.
18625         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
18626         code for ALTIVEC_BUILTIN_VEC_CMPNE.
18627         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
18628         for __builtin_vec_cmpne.
18630 2016-05-25  Eric Botcazou  <ebotcazou@adacore.com>
18632         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
18633         redundant test and bail out if the type of the new operand is not
18634         a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
18636 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
18638         * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
18639         (x_ix86_target_flags_explicit): Remove.
18640         * config/i386/i386.c (ix86_function_specific_save): Do not copy
18641         x_ix86_target_flags_explicit.
18642         (ix86_function_specific_restore): Ditto.
18644 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
18645             H.J. Lu  <hongjiu.lu@intel.com>
18647         PR target/70738
18648         * common/config/i386/i386-common.c
18649         (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
18650         (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
18651         MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
18652         * config/i386/i386.opt (ix86_target_flags): Add new Variable.
18653         (-mgeneral-regs-only): Add new option.
18654         * config/i386/i386.c (ix86_option_override_internal): Don't enable
18655         x87 instructions if only general registers are allowed.
18656         (ix86_target_string): Add ix86_flags argument. Handle additional
18657         flags options through ix86_flags argument.  Update all callers.
18658         * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
18660 2016-05-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18662         PR rtl-optimization/66940
18663         * ifcvt.c (noce_get_alt_condition): Check that incrementing or
18664         decrementing desired_val will not overflow before performing these
18665         operations.
18667 2016-05-25  Ilya Verbin  <ilya.verbin@intel.com>
18669         * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
18670         V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
18671         * config/i386/i386.c (enum ix86_builtins): Add
18672         IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
18673         IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
18674         IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
18675         IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
18676         IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
18677         IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
18678         (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
18679         __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
18680         __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
18681         __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
18682         __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
18683         __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
18684         Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
18685         __builtin_ia32_cvtps2dq512_mask.
18686         (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
18687         V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
18688         (ix86_builtin_vectorized_function): Handle builtins mentioned above.
18689         * config/i386/sse.md
18690         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
18691         Rename to ...
18692         (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
18693         (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
18694         to ...
18695         (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
18696         (avx512f_vec_pack_sfix_v8df): New define_expand.
18697         (avx512f_roundpd512): Rename to ...
18698         (avx512f_round<castmode>512): ... this.  Change iterator.
18699         (avx512f_roundps512_sfix): New define_expand.
18700         (round<mode>2_sfix): Change iterator.
18702 2016-05-25  Nick Clifton  <nickc@redhat.com>
18704         * config/msp430/msp430.c (msp430_attr): Produce an error if a
18705         static interrupt handler is detected.
18706         * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
18707         default linker script.
18708         * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
18709         the low part of a symbolic pointer.
18711 2016-05-25  Richard Biener  <rguenther@suse.de>
18713         PR tree-optimization/71261
18714         * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
18715         interesting stmt instead of immediate uses when looking
18716         for the use operand to replace.
18718 2016-05-25  Martin Liska  <mliska@suse.cz>
18720         * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
18722 2016-05-25  Richard Biener  <rguenther@suse.de>
18724         PR tree-optimization/71264
18725         * tree-vect-stmts.c (vect_init_vector): Properly deal with
18726         vector type val.
18728 2016-05-25  Martin Liska  <mliska@suse.cz>
18730         PR tree-optimization/71239
18731         * tree.c (array_at_struct_end_p): Do not call operand_equal_p
18732         if DECL_SIZE is NULL.
18734 2016-05-25  Richard Biener  <rguenther@suse.de>
18736         * timevar.def (TV_TREE_LOOP_IFCVT): Add.
18737         * tree-if-conv.c (pass_data_if_conversion): Use it.
18739 2016-05-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18741         * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
18742         * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
18743         * varpool.c (varpool_node::get_availability): Likewise.
18745 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
18747         * config/rs6000/altivec.md (VNEG iterator): New iterator for
18748         VNEGW/VNEGD instructions.
18749         (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
18750         (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
18751         support for ISA 3.0 VNEGW/VNEGD instructions.
18753 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
18755         * gimplify.c (omp_notice_variable): Use zero-length arrays for data
18756         pointers inside OACC_DATA regions.
18757         (gimplify_scan_omp_clauses): Prune firstprivate clause associated
18758         with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
18759         (gimplify_adjust_omp_clauses): Fix typo in comment.
18761 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
18763         * config/rs6000/altivec.md (VParity): New mode iterator for vector
18764         parity built-in functions.
18765         (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
18766         zeros.
18767         (p9v_parity<mode>2): Likewise.
18768         * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
18769         parity.
18770         (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
18771         (parity<mode>2): ISA 3.0 expander for vector parity.
18772         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
18773         power9 built-ins.
18774         (BU_P9_64BIT_MISC_0): Likewise.
18775         (BU_P9_MISC_0): Likewise.
18776         (BU_P9V_AV_1): Likewise.
18777         (BU_P9V_AV_2): Likewise.
18778         (BU_P9V_AV_3): Likewise.
18779         (BU_P9V_AV_P): Likewise.
18780         (BU_P9V_VSX_1): Likewise.
18781         (BU_P9V_OVERLOAD_1): Likewise.
18782         (BU_P9V_OVERLOAD_2): Likewise.
18783         (BU_P9V_OVERLOAD_3): Likewise.
18784         (VCTZB): Add vector count trailing zeros support.
18785         (VCTZH): Likewise.
18786         (VCTZW): Likewise.
18787         (VCTZD): Likewise.
18788         (VPRTYBD): Add vector parity support.
18789         (VPRTYBQ): Likewise.
18790         (VPRTYBW): Likewise.
18791         (VCTZ): Add overloaded vector count trailing zeros support.
18792         (VPRTYB): Add overloaded vector parity support.
18793         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
18794         overloaded vector count trailing zeros and parity instructions.
18795         * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
18796         vector parity support.
18797         * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
18798         trailing zeros support.
18799         (vec_cntlz): Likewise.
18800         (vec_vctzb): Likewise.
18801         (vec_vctzd): Likewise.
18802         (vec_vctzh): Likewise.
18803         (vec_vctzw): Likewise.
18804         (vec_vprtyb): Add ISA 3.0 vector parity support.
18805         (vec_vprtybd): Likewise.
18806         (vec_vprtybw): Likewise.
18807         (vec_vprtybq): Likewise.
18808         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
18809         the ISA 3.0 vector count trailing zeros and vector parity built-in
18810         functions.
18812 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
18814         * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
18815         when there is stmt_to_insert.
18817 2016-05-24  Martin Sebor  <msebor@redhat.com>
18819         PR c++/71147
18820         * tree.h (complete_or_array_type_p): New inline function.
18822 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
18824         * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
18825         * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
18826         rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
18828         * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
18829         Limit 1st alternative to noavx isa, split 2nd alternative into one
18830         noavx and one avx alternative, use *x and Bm in the former and
18831         x and m in the latter.
18833         * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
18834         of sse4 for the first alternative, drop %v from the template
18835         and d operand modifier.  Split second alternative into one sse4_noavx
18836         and one avx alternative, use *x instead of *v in the former and v
18837         instead of *v in the latter.
18838         (*sse4_1_extractps): Use noavx isa instead of * for the first
18839         alternative, drop %v from the template.  Split second alternative into
18840         one noavx and one avx alternative, use *x instead of *v in the
18841         former and v instead of *v in the latter.
18842         (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
18843         with noavx and the last one with avx.
18844         (sse4_1_phminposuw): Guard first alternative with noavx isa,
18845         split the second one into one noavx and one avx alternative,
18846         use *x and Bm in the former and x and m in the latter one.
18847         (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
18848         alternatives.
18850         * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
18851         first two alternatives to noavx, use *x instead of *v in the second
18852         one, add avx alternative without *.
18853         (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
18854         sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
18855         sse4_1_<code>v2siv2di2<mask_name>): Likewise.
18857 2016-05-24  Jeff Law  <law@redhat.com>
18859         * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
18860         New function, extracted from...
18861         (fsm_find_control_statement_thread_paths): Here.  Use the new function.
18862         Allow simple copies and constant initializations in the SSA chain.
18864 2016-05-24  Marek Polacek  <polacek@redhat.com>
18866         PR c/71249
18867         * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
18868         scope.
18870 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
18872         PR c++/71257
18873         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
18874         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
18875         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.  Add
18876         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
18877         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
18879 2016-05-24  Richard Biener  <rguenther@suse.de>
18881         PR tree-optimization/71240
18882         * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
18883         has integral type.
18885 2016-05-24  Richard Biener  <rguenther@suse.de>
18887         PR tree-optimization/71230
18888         * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
18890 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
18892         * tree-vectorizer.h (vectorizable_comparison): Delete.
18893         * tree-vect-loop.c (vectorizable_reduction): Remove redundant
18894         PURE_SLP_STMT check.
18895         * tree-vect-stmts.c (vectorizable_call): Likewise.
18896         (vectorizable_simd_clone_call): Likewise.
18897         (vectorizable_conversion): Likewise.
18898         (vectorizable_assignment): Likewise.
18899         (vectorizable_shift): Likewise.
18900         (vectorizable_operation): Likewise.
18901         (vectorizable_load): Likewise.
18902         (vectorizable_condition): Likewise.
18903         (vectorizable_store): Likewise.  Assert that we don't have
18904         hybrid SLP.
18905         (vectorizable_comparison): Make static.  Remove redundant
18906         PURE_SLP_STMT check.
18907         (vect_transform_stmt): Assert that we always have an slp_node
18908         if PURE_SLP_STMT.
18910 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18912         * config/arm/neon.md (ashldi3_neon):  Replace comparison of INTVAL of
18913         operands[2] against 1 with comparison against CONST1_RTX.
18914         (<shift>di3_neon): Likewise.
18915         * config/arm/predicates.md (const0_operand): Replace with comparison
18916         against CONST0_RTX.
18918 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18920         * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
18921         operands[2] against 1 with comparison against CONST1_RTX.
18922         (ashrdi3): Likewise.
18923         (lshrdi3): Likewise.
18924         (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
18925         UINTVAL.
18926         (ashrsi3): Likewise.
18927         (lshrsi3): Likewise.
18928         (rotrsi3): Likewise.
18929         (define_split above *compareqi_eq0): Likewise.
18930         (define_split above "prologue"): Likewise.
18931         * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
18932         * config/arm/predicates.md (shift_operator): Likewise.
18933         (shift_nomul_operator): Likewise.
18934         (sat_shift_operator): Likewise.
18935         (thumb1_cmp_operand): Likewise.
18936         (const_neon_scalar_shift_amount_operand): Replace manual range
18937         check with IN_RANGE.
18938         * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
18939         Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
18941 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18943         * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
18944         with HOST_WIDE_INT_1.
18945         (insv): Likewise.
18946         * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
18947         1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
18948         (arm_canonicalize_comparison): Likewise.
18949         (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
18950         HOST_WIDE_INT_1.
18951         (thumb1_size_rtx_costs): Likewise.
18952         (vfp_const_double_index): Replace cast of 1 to unsigned
18953         HOST_WIDE_INT with HOST_WIDE_INT_1U.
18954         (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
18955         HOST_WIDE_INT_1.
18956         (arm_asan_shadow_offset): Replace cast of 1 to unsigned
18957         HOST_WIDE_INT with HOST_WIDE_INT_1U.
18958         * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
18959         HOST_WIDE_INT with HOST_WIDE_INT_1.
18961 2016-05-24  Marek Polacek  <polacek@redhat.com>
18963         * tree-cfg.h (should_remove_lhs_p): New predicate.
18964         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
18965         * gimplify.c (gimplify_modify_expr): Likewise.
18966         * tree-cfg.c (verify_gimple_call): Likewise.
18967         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
18968         * gimple-fold.c: Include "tree-cfg.h".
18969         (gimple_fold_call): Use should_remove_lhs_p.
18971 2016-05-24  Richard Biener  <rguenther@suse.de>
18973         PR tree-optimization/71253
18974         * cfganal.h (control_dependences): Make robust against edge
18975         and BB removal.
18976         (control_dependences::control_dependences): Remove edge_list argument.
18977         (control_dependences::get_edge): Remove.
18978         (control_dependences::get_edge_src): Add.
18979         (control_dependences::get_edge_dest): Likewise.
18980         (control_dependences::m_el): Make a vector of edge src/dest index.
18981         * cfganal.c (control_dependences::find_control_dependence): Adjust.
18982         (control_dependences::control_dependences): Likewise.
18983         (control_dependences::~control_dependence): Likewise.
18984         (control_dependences::get_edge): Remove.
18985         (control_dependences::get_edge_src): Add.
18986         (control_dependences::get_edge_dest): Likewise.
18987         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
18988         get_edge_src.
18989         (perform_tree_ssa_dce): Adjust.
18990         * tree-loop-distribution.c (create_edge_for_control_dependence): Use
18991         get_edge_src.
18992         (pass_loop_distribution::execute): Adjust.  Do loop destroying
18993         conditional on changed.
18995 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18997         PR target/69857
18998         * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
18999         return.  Reindent transformation comment and mention the ARM state
19000         behavior.
19002 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
19004         PR middle-end/71252
19005         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
19006         after build_and_add_sum creates new use stmt.
19008 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
19010         * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
19011         load_lanes/grouped_load classification comes first.  Don't check
19012         whether the vectorization factor is a multiple of the group size
19013         for load_lanes.
19015 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
19017         * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
19018         GROUP_GAP for single-element interleaving.
19019         * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
19020         variable.
19022 2016-05-24  Richard Biener  <rguenther@suse.de>
19024         PR middle-end/70434
19025         PR c/69504
19026         * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
19027         bases which are accessed with non-invariant indices.
19028         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
19029         constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
19031 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
19033         PR middle-end/71170
19034         * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
19035         (add_to_ops_vec): Add stmt_to_insert.
19036         (add_repeat_to_ops_vec): Init stmt_to_insert.
19037         (insert_stmt_before_use): New.
19038         (transform_add_to_multiply): Remove mult_stmt insertion and add it
19039         to ops vector.
19040         (get_ops): Init stmt_to_insert.
19041         (maybe_optimize_range_tests): Likewise.
19042         (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
19043         (rewrite_expr_tree_parallel): Likewise.
19044         (reassociate_bb): Likewise.
19046 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
19048         PR target/71201
19049         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
19050         ISA 3.0 xxperm fusion alternative.
19051         (altivec_vperm_v8hiv16qi): Likewise.
19052         (altivec_vperm_<mode>_uns_internal): Likewise.
19053         (vperm_v8hiv4si): Likewise.
19054         (vperm_v16qiv8hi): Likewise.
19056 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
19057             Kelvin Nilsen  <kelvin@gcc.gnu.org>
19059         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
19060         vpermr/xxpermr on ISA 3.0.
19061         (altivec_expand_vec_perm_le): Likewise.
19062         * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
19063         (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
19064         ISA 3.0.
19066 2016-05-23  Uros Bizjak  <ubizjak@gmail.com>
19068         * config/i386/i386.h (IS_STACK_MODE): Enable for
19069         TARGET_MIX_SSE_I387.  Rewrite using X87_FLOAT_MODE_P and
19070         SSE_FLOAT_MODE_P macros.
19071         * config/i386/i386.c (ix86_preferred_reload_class): Use
19072         IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
19073         Cleanup regclass processing for CONST_DOUBLE_P.
19074         (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
19075         (ix86_rtx_costs): Remove redundant TARGET_80387 check
19076         with IS_STACK_MODE macro.
19077         * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
19078         with TARGET_SSE2.
19079         (*movdf_internal): Use IS_STACK_MODE macro.
19080         (*movsf_internal): Ditto.
19082 2016-05-23  Marc Glisse  <marc.glisse@inria.fr>
19084         * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
19085         ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
19087 2016-05-23  Jeff Law  <law@redhat.com>
19089         * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
19090         extracted from ...
19091         (fsm_find_control_statement_thread_paths): Call it.
19093 2016-05-23  Martin Jambor  <mjambor@suse.cz>
19095         PR ipa/71234
19096         * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
19097         from_global_constant if t is not NULL.
19099 2016-05-23  Marek Polacek  <polacek@redhat.com>
19101         PR c/49859
19102         * common.opt (Wswitch-unreachable): New option.
19103         * doc/invoke.texi: Document -Wswitch-unreachable.
19104         * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
19105         warning.
19107 2016-05-23  Bin Cheng  <bin.cheng@arm.com>
19109         * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
19110         TMR_INDEX is non-NULL.
19112 2016-05-23  Richard Biener  <rguenther@suse.de>
19114         PR tree-optimization/71230
19115         * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
19116         (try_special_add_to_ops): ... here.  Always test for single-use.
19118 2016-05-23  Martin Jambor  <mjambor@suse.cz>
19120         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
19121         default block if a PHI node in the original one would be resized.
19123 2016-05-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
19125         PR tree-optimization/58135
19126         * tree-vect-slp.c: When group size is not multiple
19127         of vector size, allow splitting of store group at
19128         vector boundary.
19130 2016-05-23  Christophe Lyon  <christophe.lyon@linaro.org>
19132         * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
19134 2016-05-22  Jakub Jelinek  <jakub@redhat.com>
19136         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
19137         vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
19138         condition.  For !TARGET_AVX512DQ, emit 32x4 instruction instead
19139         of 64x2.
19141         * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
19142         vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
19143         v constraint instead of x and vinserti32x4 insn.
19145         * config/i386/sse.md (i128vldq): New mode iterator.
19146         (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
19147         avx512dq and avx512vl alternatives.
19149         * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
19150         constraint, use maybe_evex prefix instead of vex.
19151         (vec_dupv4sf): Use v constraint instead of x for output
19152         operand except for noavx alternative, use Yv constraint
19153         instead of x for input.  Use maybe_evex prefix instead of vex.
19154         (*vec_dupv4si): Likewise.
19155         (*vec_dupv2di): Likewise.
19157 2016-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
19159         PR middle-end/40921
19160         * tree-ssa-reassoc.c (try_special_add_to_ops): New.
19161         (linearize_expr_tree): Call try_special_add_to_ops.
19162         (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
19164 2016-05-21  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
19166         * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
19167         to computed stack_usage.
19169 2016-05-21  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
19171         PR target/71103
19172         * config/avr/avr.md (define_expand "mov<mode>"): If the source
19173         operand is subreg (symbol_ref) then move the symbol ref to register.
19175 2016-05-21  Jan Hubicka  <hubicka@ucw.cz>
19177         * tree.c (array_at_struct_end_p): Look through MEM_REF.
19179 2016-05-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
19181         PR middle-end/71179
19182         * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
19183         VECTOR type.
19185 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
19187         * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
19188         ranges by calling get_single_symbol and tidy up.  Look more closely
19189         into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
19191 2016-05-20  Jeff Law  <law@redhat.com>
19193         * bitmap.c (bitmap_find_bit): Remove useless test.
19195 2016-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
19197         * function.c (thread_prologue_and_epilogue_insns): Commit the
19198         insertion of the epilogue.
19200 2016-05-20  Martin Jambor  <mjambor@suse.cz>
19202         PR tree-optimization/70884
19203         * tree-sra.c (initialize_constant_pool_replacements): Do not check
19204         should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
19205         (sort_and_splice_var_accesses): Do not consider multiple scalar reads
19206         of constant pool data as a reason for scalarization.
19208 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
19210         * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
19211         for naked functions.
19212         (thumb1_expand_prologue): Likewise.
19214 2016-05-20  Nathan Sidwell  <nathan@acm.org>
19216         * config/nvptx/nptx.c (nvptx_option_override): Only set
19217         flag_toplevel_reorder, if not explicitly specified.  Set
19218         flag_no_common, unless explicitly specified.
19220 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
19222         * calls.c (can_implement_as_sibling_call_p): Mark param
19223         reg_parm_stack_space with ATTRIBUTE_UNUSED.
19225 2016-05-20  Uros Bizjak  <ubizjak@gmail.com>
19227         * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
19228         Use IS_STACK_MODE when calculating cost of standard 80387 constants.
19229         Fallthru to CONST_VECTOR case to calculate cost of standard SSE
19230         constants.
19231         <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
19232         (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
19233         and CASE_CONST_ANY.
19235 2016-05-20  Cesar Philippidis  <cesar@codesourcery.com>
19237         * config/nvptx/nvptx.md (sincossf3): New pattern.
19239 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
19241         * calls.c (maybe_complain_about_tail_call): New function.
19242         (initialize_argument_information): Call
19243         maybe_complain_about_tail_call when clearing *may_tailcall.
19244         (can_implement_as_sibling_call_p): Call
19245         maybe_complain_about_tail_call when returning false.
19246         (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
19247         ensure try_tail_call is set.  Call maybe_complain_about_tail_call
19248         if tail-call optimization fails.
19249         * cfgexpand.c (expand_call_stmt): Initialize
19250         CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
19251         * gimple-pretty-print.c (dump_gimple_call): Dump
19252         gimple_call_must_tail_p.
19253         * gimple.c (gimple_build_call_from_tree): Call
19254         gimple_call_set_must_tail with the value of
19255         CALL_EXPR_MUST_TAIL_CALL.
19256         * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
19257         (gimple_call_set_must_tail): New function.
19258         (gimple_call_must_tail_p): New function.
19259         * print-tree.c (print_node): Update printing of TREE_STATIC
19260         to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
19261         * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
19262         trailing comment listing applicable flags.
19263         * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
19265 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
19267         * calls.c (expand_call): Move "Rest of purposes for tail call
19268         optimizations to fail" to...
19269         (can_implement_as_sibling_call_p): ...this new function, and
19270         split into multiple "if" statements.
19272 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
19274         * cfgloop.h (expected_loop_iterations_unbounded,
19275         expected_loop_iterations): Unconstify.
19276         * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
19277         profile with known upper bound; return 3 when profile is absent.
19278         (expected_loop_iterations): Update.
19280 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
19282         * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
19283         and get_max_loop_iterations_int.
19285 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
19287         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
19288         realistic upper bounds here.
19290 2016-05-20  Jakub Jelinek  <jakub@redhat.com>
19292         PR c++/71210
19293         * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
19294         calls if the LHS is variable length or has addressable type.
19295         If targets[0]->decl is a noreturn call with void return type and
19296         zero arguments, adjust fntype and remove lhs in that case.
19298 2016-05-20  Marc Glisse  <marc.glisse@inria.fr>
19300         PR tree-optimization/71079
19301         PR tree-optimization/71206
19302         * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
19304 2016-05-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
19306         * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
19307         (get_vec_alignment_for_array_decl): Likewise.
19308         (get_vec_alignment_for_record_decl): Likewise.
19309         (increase_alignment::execute): Move code to find alignment to
19310         get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
19311         (type_align_map): New hash_map.
19313 2016-05-20  Richard Guenther  <rguenther@suse.de>
19315         PR tree-optimization/29756
19316         * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
19317         * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
19318         * fold-const.c (operand_equal_p): Likewise.
19319         (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
19320         * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
19321         * tree-inline.c (estimate_operator_cost): Likewise.
19322         * tree-pretty-print.c (dump_generic_node): Likewise.
19323         * tree-ssa-operands.c (get_expr_operands): Likewise.
19324         * cfgexpand.c (expand_debug_expr): Likewise.
19325         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
19326         * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
19327         * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
19328         * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
19329         vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
19330         (execute_update_addresses_taken): Do it.
19332 2016-05-20  Richard Biener  <rguenther@suse.de>
19334         PR tree-optimization/71185
19335         * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
19336         register operations.
19338 2016-05-20  Richard Biener  <rguenther@suse.de>
19340         * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
19341         gimple_seq_add_seq_without_update.
19342         (release_bb_predicate): Assert we have no operands to free.
19343         (if_convertible_loop_p_1): Calculate post dominators later.
19344         Do not free BB predicates here.
19345         (combine_blocks): Do not recompute BB predicates.
19346         (version_loop_for_if_conversion): Save BB predicates around
19347         loop versioning.
19349 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
19351         * function.c (make_epilogue_seq): Remove epilogue_end parameter.
19352         (thread_prologue_and_epilogue_insns): Remove bb_flags.  Restructure
19353         code.  Ignore sibcalls on EDGE_IGNORE edges.
19354         * shrink-wrap.c (handle_simple_exit): New function.  Set EDGE_IGNORE
19355         on edges for sibcalls that run without prologue.  The rest of the
19356         function is combined from...
19357         (fix_fake_fallthrough_edge): ... this, and ...
19358         (try_shrink_wrapping): ... a part of this.  Remove the bb_with
19359         function argument, make it a local variable.
19361 2016-05-19  Sandra Loosemore  <sandra@codesourcery.com>
19363         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
19364         --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
19365         for 32-bit mode and SEH for 64-bit.
19366         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
19367         TARGET_64BIT_DEFAULT.
19369 2016-05-19  Ryan Burn  <contact@rnburn.com>
19371         * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
19372         * gengtype.c (open_base_files): Add cilk.h to ifiles.
19374 2016-05-19  Uros Bizjak  <ubizjak@gmail.com>
19376         * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
19377         force pending loads from memory.
19379 2016-05-19  Kelvin Nilsen  <kelvin@gcc.gnu.org>
19381         * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
19382         (UNSPEC_DARN_32): New unspec constant.
19383         (UNSPEC_DARN_RAW): New unspec constant.
19384         (darn_32): New instruction.
19385         (darn_raw): New instruction.
19386         (darn): New instruction.
19387         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
19388         support and documentation for this macro.
19389         (BU_P9_MISC_1): New macro definition.
19390         (BU_P9_64BIT_MISC_0): New macro definition.
19391         (BU_P9_MISC_0): New macro definition.
19392         (darn_32): New builtin definition.
19393         (darn_raw): New builtin definition.
19394         (darn): New builtin definition.
19395         * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
19396         RS6000_BUILTIN_0 directives to surround each occurrence of
19397         #include "rs6000-builtin.def".
19398         (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
19399         RS6000_BTM_64BIT flags to the returned mask, depending on
19400         configuration.
19401         (def_builtin): Correct an error in the assignments made to the
19402         debugging variable attr_string.
19403         (rs6000_expand_builtin): Add support for no-operand built-in
19404         functions.
19405         (builtin_function_type): Remove fatal_error assertion that is no
19406         longer valid.
19407         (rs6000_common_init_builtins): Add support for no-operand built-in
19408         functions.
19409         * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
19410         definition.
19411         (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
19412         definition.
19413         (RS6000_BTM_64BIT): New macro definition.
19414         * doc/extend.texi: Document __builtin_darn (void),
19415         __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
19416         functions.
19418 2016-05-19  Jan Hubicka  <hubicka@ucw.cz>
19420         * tree-vect-loop.c (vect_analyze_loop_2): Use also
19421         max_loop_iterations_int.
19423 2016-05-19  Marek Polacek  <polacek@redhat.com>
19425         PR tree-optimization/71031
19426         * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
19427         condition and adjust the code a bit.
19429 2016-05-19  Martin Liska  <mliska@suse.cz>
19431         * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
19432         auto_vec instead of vec.
19434 2016-05-19  Martin Liska  <mliska@suse.cz>
19436         * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
19438 2016-05-19  Martin Liska  <mliska@suse.cz>
19440         * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
19442 2016-05-19  Martin Liska  <mliska@suse.cz>
19444         * ipa-pure-const.c (set_function_state): Remove an existing
19445         funct_state.
19446         (remove_node_data): Do not free it as it's released
19447         in set_function_state.
19449 2016-05-19  Martin Liska  <mliska@suse.cz>
19451         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
19452         bitmap.
19454 2016-05-19  Martin Liska  <mliska@suse.cz>
19456         * omp-simd-clone.c (simd_clone_adjust): Release vector.
19458 2016-05-19  Martin Liska  <mliska@suse.cz>
19460         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
19461         an auto_vec instead of re-creating it.
19463 2016-05-19  Martin Liska  <mliska@suse.cz>
19465         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
19466         auto_vec instead of vec.
19468 2016-05-19  Martin Liska  <mliska@suse.cz>
19470         * lto-section-in.c (lto_get_section_data): Call
19471         lto_check_version with additional argument.
19472         * lto-streamer.c (lto_check_version): Add new argument.
19473         * lto-streamer.h (lto_check_version): Likewise.
19475 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19477         * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
19478         Don't add cost of inner memory when handling sign-extended loads.
19480 2016-05-19  Ilya Enkovich  <ilya.enkovich@intel.com>
19482         PR rtl-optimization/71148
19483         * cse.c (cse_main): Free dominance info.
19484         (rest_of_handle_cse): Don't free dominance info.
19485         (rest_of_handle_cse2): Likewise.
19486         (rest_of_handle_cse_after_global_opts): Likewise.
19488 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19490         PR target/71056
19491         * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
19492         NULL_TREE early if NEON is not available.  Remove now redundant check
19493         in ARM_CHECK_BUILTIN_MODE.
19495 2016-05-19  Maxim Ostapenko  <m.ostapenko@samsung.com>
19497         PR sanitizer/64354
19498         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
19499         builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
19500         * doc/cpp.texi: Document new macros.
19502 2016-05-19  Bin Cheng  <bin.cheng@arm.com>
19504         PR tree-optimization/69848
19505         * tree-vect-loop.c (vectorizable_reduction): Don't factor
19506         comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
19508 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
19510         * function.c (thread_prologue_and_epilogue_insn): Move the
19511         "goto epilogue_done" one block later.
19513 2016-05-19  Richard Biener  <rguenther@suse.de>
19515         PR tree-optimization/70729
19516         * passes.def: Move LIM pass before PRE.  Remove no longer
19517         required copyprop and move first DCE out of the loop pipeline.
19519 2016-05-18  David Malcolm  <dmalcolm@redhat.com>
19521         PR driver/69265
19522         * Makefile.in (GCC_OBJS): Move spellcheck.o to...
19523         (OBJS-libcommon-target): ...here.
19524         * opts-common.c: Include spellcheck.h.
19525         (cmdline_handle_error): Build a vec of valid options and use it
19526         to suggest provide hints for misspelled arguments.
19528 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
19530         PR c++/71100
19531         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
19532         lhs if it has TREE_ADDRESSABLE type.
19534 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
19536         PR target/71145
19537         * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
19538         (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
19540 2016-05-18  Martin Jambor  <mjambor@suse.cz>
19542         PR ipa/69708
19543         * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
19544         input for NOP_EXPR pass-through functions.
19545         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
19546         aggregate global constant VAR_DECLs in constant jump functions.
19548 2016-05-18  Martin Jambor  <mjambor@suse.cz>
19550         PR ipa/69708
19551         * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
19552         from TREE_READONLY parameters.
19554 2016-05-18  Martin Jambor  <mjambor@suse.cz>
19556         PR ipa/69708
19557         * cgraph.h (cgraph_indirect_call_info): New field
19558         guaranteed_unmodified.
19559         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
19560         to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
19561         appropriate.
19562         * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
19563         pass the parameter value to ipa_find_agg_cst_for_param.
19564         * ipa-prop.c (ipa_load_from_parm_agg): New parameter
19565         guaranteed_unmodified, store AA results there instead of bailing out
19566         if present.
19567         (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
19568         (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
19569         (find_constructor_constant_at_offset): New function.
19570         (ipa_find_agg_cst_from_init): Likewise.
19571         (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
19572         static initializers of contants, report back through a new paameter
19573         from_global_constant if that was the case.
19574         (try_make_edge_direct_simple_call): Also pass parameter value to
19575         ipa_find_agg_cst_for_param, check guaranteed_unmodified when
19576         appropriate.
19577         (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
19578         (ipa_read_indirect_edge_info): Likewise.
19579         * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
19580         (ipa_load_from_parm_agg): Likewise.
19582 2016-05-18  Jiong Wang  <jiong.wang@arm.com>
19584         PR rtl-optimization/71150
19585         * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
19586         check.
19588 2016-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
19590         PR target/70915
19591         * config/rs6000/constraints.md (wE constraint): New constraint
19592         for a vector constant that can be loaded with XXSPLTIB.
19593         (wM constraint): New constraint for a vector constant of a 1's.
19594         (wS constraint): New constraint for a vector constant that can be
19595         loaded with XXSPLTIB and a vector sign extend instruction.
19596         * config/rs6000/predicates.md (xxspltib_constant_split): New
19597         predicates for wE/wS constraints.
19598         (xxspltib_constant_nosplit): Likewise.
19599         (easy_vector_constant): Add support for constants that can be
19600         loaded via XXSPLTIB.
19601         (all_ones_constant): New predicate for vector constant with all
19602         1's set.
19603         (splat_input_operand): Add support for ISA 3.0 word splat operations.
19604         * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
19605         return if a constant can be loaded with the ISA 3.0 XXSPLTIB
19606         instruction and possibly with a sign extension.
19607         (output_vec_const_move): Add support for XXSPLTIB. If we are
19608         loading up 0/-1 into Altivec registers, prefer using VSPLTISW
19609         instead of XXLXOR/XXLORC.
19610         (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
19611         operations.
19612         (rs6000_legitimize_reload_address): Likewise.
19613         (rs6000_output_move_128bit): Use output_vec_const_move to emit
19614         constants.
19615         * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
19616         combine VSX_M and VSX_M2 into one iterator.
19617         (VSX_M2): Likewise.
19618         (VSINT_84): New iterators for loading constants with XXSPLTIB.
19619         (VSINT_842): Likewise.
19620         (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
19621         (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
19622         XXSPLTIB instruction.
19623         (xxspltib_<mode>_nosplit): Likewise.
19624         (xxspltib_<mode>_split): New insn to load up constants with
19625         XXSPLTIB and a sign extend instruction.
19626         (vsx_mov<mode>): Replace single move that handled all vector types
19627         with separate 32-bit and 64-bit moves.  Combine the movti_<bit>
19628         moves (when -mvsx-timode is in effect) into the main vector
19629         moves.  Eliminate separate moves for <VSr> <VSa>, where the
19630         preferred register class (<VSr>) is listed first, and the
19631         secondary register class (<VSa>) is listed second with a '?' to
19632         discourage use.  Prefer loading 0/-1 in any VSX register for ISA
19633         3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
19634         that if the register was involved in a slow operation, the
19635         clear/set operation does not wait for the slow operation to
19636         finish.  Adjust the length attributes for 32-bit mode.  Use
19637         rs6000_output_move_128bit and drop the use of the string
19638         instructions for 32-bit movti when -mvsx-timode is in effect.  Use
19639         spacing so that the alternatives and attributes don't generate
19640         long lines, and put things in columns, so that it is easier to
19641         match up the operands and attributes with the insn alternatives.
19642         (vsx_mov<mode>_64bit): Likewise.
19643         (vsx_mov<mode>_32bit): Likewise.
19644         (vsx_movti_64bit): Fold movti into normal vector moves.
19645         (vsx_movti_32bit): Likewise.
19646         (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
19647         splat instructions.
19648         (vsx_splat_v4si_internal): Likewise.
19649         (vsx_splat_v4sf_internal): Likewise.
19650         (vector fusion peepholes): Use VSX_M instead of VSX_M2.
19651         (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
19652         extend vector elements.
19653         (vsx_sign_extend_hi_<mode>): Likewise.
19654         (vsx_sign_extend_si_v2di): Likewise.
19655         * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
19656         declaration.
19657         * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
19658         constraints.  Add trailing period to wL documentation.
19660 2016-05-18  Richard Sandiford  <richard.sandiford@arm.com>
19662         PR middle-end/71020
19663         * tree-dfa.h (replace_abnormal_ssa_names): Declare.
19664         * tree-dfa.c (replace_abnormal_ssa_names): New function.
19665         * tree-call-cdce.c: Include tree-dfa.h.
19666         (can_guard_call_p): New function, extracted from...
19667         (can_use_internal_fn): ...here.
19668         (shrink_wrap_one_built_in_call_with_conds): Remove failure path
19669         and return void.
19670         (shrink_wrap_one_built_in_call): Likewise.
19671         (use_internal_fn): Likewise.
19672         (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
19673         and return void.  Call replace_abnormal_ssa_names.
19674         (pass_call_cdce::execute): Check can_guard_call_p during the
19675         initial walk.  Assume shrink_wrap_conditional_dead_built_in_calls
19676         will always change something.
19678 2016-05-18  Martin Jambor  <mjambor@suse.cz>
19680         PR ipa/70646
19681         * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
19682         if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
19684 2016-05-18  Martin Jambor  <mjambor@suse.cz>
19686         PR ipa/70646
19687         * ipa-inline.h (condition): New field size.
19688         * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
19689         for comaprison and store it into the new condition.
19690         (evaluate_conditions_for_known_args): Use condition size to check
19691         access sizes for all but CHANGED conditions.
19692         (unmodified_parm_1): New parameter size_p, store access size into it.
19693         (unmodified_parm): Likewise.
19694         (unmodified_parm_or_parm_agg_item): Likewise.
19695         (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
19696         (set_cond_stmt_execution_predicate): Extract access sizes and store
19697         them to conditions.
19698         (set_switch_stmt_execution_predicate): Likewise.
19699         (will_be_nonconstant_expr_predicate): Likewise.
19700         (will_be_nonconstant_predicate): Likewise.
19701         (inline_read_section): Stream condition size.
19702         (inline_write_summary): Likewise.
19704 2016-05-18  Richard Biener  <rguenther@suse.de>
19706         * tree-ssa-loop-im.c (determine_max_movement): Properly add
19707         condition cost to PHI cost instead of total_cost.
19709 2016-05-18  Martin Liska  <mliska@suse.cz>
19711         PR fortran/70856
19712         * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
19713         merged variables.
19715 2016-05-18  Richard Biener  <rguenther@suse.de>
19717         * lto-streamer.h (LTO_major_version): Bump to 6.
19719 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
19721         * function.c (make_split_prologue_seq, make_prologue_seq,
19722         make_epilogue_seq): New functions, factored out from...
19723         (thread_prologue_and_epilogue_insns): Here.
19725 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
19727         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
19728         cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
19729         of before.  Add a comment.
19731 2016-05-18  Bin Cheng  <bin.cheng@arm.com>
19733         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
19734         expression pointer, not pointer to the pointer.
19736 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
19738         * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
19739         (avx2_pbroadcast<mode>): Add another alternative with v instead
19740         of x constraints in it, using <pbroadcast_evex_isa> isa.
19741         (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
19743         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
19744         constraint x instead of v in second alternative, add avx512bw
19745         alternative.
19747         * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
19748         constraint x instead of v in second alternative, add avx512bw
19749         alternative.
19751         * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
19752         constraint x instead of v in second alternative, add avx512bw
19753         alternative.
19755         * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
19756         avx512bw alternative.
19758 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
19760         * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
19761         array to 128 chars.
19762         (define_insn "*andnottf3"): Ditto.
19763         (define_insn "*<code><mode>3"/any_logic): Ditto.
19764         (define_insn "*<code>tf3"/any_logic): Ditto.
19765         (define_insn "sse2_storehpd"): Use Yv constraint for scalar
19766         operand to block AVX-512VL insn variant emit when it is not enabled.
19768 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
19770         * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
19771         constraint fot SF mode.
19773 2016-05-18  Petr Murzin  <petr.murzin@intel.com>
19774             Kirill Yukhin  <kirill.yukhin@intel.com>
19776         * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
19777         modifiers.
19778         (define_insn "rsqrt14<mode>"): Ditto.
19779         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
19780         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
19781         (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
19782         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
19783         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
19784         Ditto.
19785         (define_insn "*avx512f_gatherdi<mode>"): Ditto.
19786         (define_insn "*avx512f_scatterdi<mode>"): Ditto.
19787         * config/i386/i386.c (ix86_print_operand): Expand check for size
19788         override codes for Intel syntax.
19790 2016-05-18  Richard Biener  <rguenther@suse.de>
19792         PR tree-optimization/71168
19793         * tree-loop-distribution.c (distribute_loop): Move *destroy_p
19794         initialization earlier.
19796 2016-05-18  James Greenhalgh  <james.greenhalgh@arm.com>
19798         * config/aarch64/aarch64-simd.md
19799         (aarch64_reduc_plus_internal<mode>): Rename to...
19800         (reduc_plus_scal): ...This, and remove previous implementation.
19802 2016-05-18  Richard Biener  <rguenther@suse.de>
19804         * passes.def: Put late dse and cd_dce in canonical order.
19806 2016-05-17  Jan Hubicka  <hubicka@ucw.cz>
19808         * ipa-inline-transform.c (preserve_function_body_p): Look for
19809         first non-thunk clone.
19810         (save_function_body): Save into first non-thunk.
19811         * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
19812         up call stmt id.
19813         (lto_output_node): Inline thunks don't need body in every
19814         partition.
19815         * lto-streamer-in.c: Do not fixup thunk clones.
19816         * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
19817         thunks.
19818         * tree-inline.c (copy_bb): Be prepared for target node to be new after
19819         folding suceeds.
19821 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
19823         PR middle-end/63586
19824         * tree-ssa-reassoc.c (transform_add_to_multiply): New.
19825         (reassociate_bb): Call transform_add_to_multiply.
19827 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
19829         * config/aarch64/aarch64.c (all_extensions): Removed unused
19830         static variable.
19832 2016-05-17  Nathan Sidwell  <nathan@acm.org>
19834         * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
19835         (TARGET_FUNCTION_ARG_BOUNDARY): Override.
19837 2016-05-17  Mikhail Maltsev  <maltsevm@gmail.com>
19839         PR tree-optimization/54579
19840         PR middle-end/55299
19841         * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
19843 2016-05-17  Marek Polacek  <polacek@redhat.com>
19845         PR ipa/71146
19846         * tree-inline.c (expand_call_inline): Call
19847         maybe_remove_unused_call_args.
19849 2016-05-17  Jim Wilson  <jim.wilson@linaro.org>
19851         * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
19852         * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
19853         * doc/md.texi (fmin@var{m}3): Likewise.
19855 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
19857         * match.pd (X & C): New transformation.
19859 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
19861         * match.pd (~X & Y): New transformation.
19863 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
19865         * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
19866         information for new SSA_NAME.
19867         (simplify_conversion_using_ranges): Get range through get_range_info
19868         instead of get_value_range.
19870 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
19872         * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
19873         Remove inline assembly.
19874         (vmvn_s16): Likewise.
19875         (vmvn_s32): Likewise.
19876         (vmvn_u8): Likewise.
19877         (vmvn_u16): Likewise.
19878         (vmvn_u32): Likewise.
19879         (vmvnq_s8): Likewise.
19880         (vmvnq_s16): Likewise.
19881         (vmvnq_s32): Likewise.
19882         (vmvnq_u8): Likewise.
19883         (vmvnq_u16): Likewise.
19884         (vmvnq_u32): Likewise.
19885         (vmvn_p8): Likewise.
19886         (vmvnq_p16): Likewise.
19888 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
19890         * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
19891         Use builtin.
19892         (vmul_n_s16): Likewise.
19893         (vmul_n_s32): Likewise.
19894         (vmul_n_u16): Likewise.
19895         (vmul_n_u32): Likewise.
19896         (vmulq_n_f32): Likewise.
19897         (vmulq_n_f64): Likewise.
19898         (vmulq_n_s16): Likewise.
19899         (vmulq_n_s32): Likewise.
19900         (vmulq_n_u16): Likewise.
19901         (vmulq_n_u32): Likewise.
19903 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
19905         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
19906         to all supported modes.  Rename to "*aarch64_mul3_elt_from_dup".
19908 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
19910         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
19911         to *aarch64_fma4_elt_from_dup<mode>.
19912         (*aarch64_fnma4_elt_to_128df): Rename to
19913         *aarch64_fnma4_elt_from_dup<mode>.
19914         * config/aarch64/arm_neon.h (vfma_n_f64): New.
19915         (vfms_n_f32): Likewise.
19916         (vfms_n_f64): Likewise.
19917         (vfmsq_n_f32): Likewise.
19918         (vfmsq_n_f64): Likewise.
19920 2016-05-17  Gerald Pfeifer  <gerald@pfeifer.com>
19922         * wide-int.h: Change fixed_wide_int_storage from class to struct.
19924 2016-05-17  Richard Biener  <rguenther@suse.de>
19926         PR tree-optimization/71132
19927         * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
19928         Only add control dependences for blocks in the loop.
19929         (build_rdg): Adjust.
19930         (generate_code_for_partition): Return whether loop should
19931         be destroyed and delay that.
19932         (distribute_loop): Likewise.
19933         (pass_loop_distribution::execute): Record loops to be destroyed
19934         and perform delayed destroying of loops.
19936 2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19938         PR target/70809
19939         * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
19941 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
19943         * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
19945 2016-05-17  Ilya Enkovich  <ilya.enkovich@intel.com>
19947         PR target/71114
19948         * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
19949         insertion point for instructions generated by validize_mem.
19951 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
19953         * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
19954         in brackets.
19956 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
19958         * config/aarch64/aarch64.c
19959         (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
19960         rather than a macro.
19962 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
19964         * doc/invoke.texi (AArch64 Options): Various updates.
19966 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
19968         * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
19969         into instrumentation thunks.
19970         * cif-code.def (CIF_CHKP): New.
19972 2016-05-16  Uros Bizjak  <ubizjak@gmail.com>
19974         * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
19976 2016-05-16  Martin Jambor  <mjambor@suse.cz>
19978         * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
19979         (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
19981 2016-05-16  Marek Polacek  <polacek@redhat.com>
19983         * gimple.c (maybe_remove_unused_call_args): Fix typos in the
19984         commentary.
19986 2016-05-16  Martin Jambor  <mjambor@suse.cz>
19988         PR hsa/70857
19989         * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
19990         the outlined kernel function.
19992 2016-05-16  Robert Suchanek  <robert.suchanek@imgtec.com>
19994         * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
19995         (ISA_HAS_DLSA): Ditto.
19997 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
19999         * config/mips/m5100.md (m51_int_load): Update the latency to 2.
20001 2016-05-16  Nathan Sidwell  <nathan@acm.org>
20003         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
20004         (nvptx_name_replacement): Restore.  Add comment.
20005         (write_fn_proto, write_fn_proto_from_insn,
20006         nvptx_output_call_insn): Restore
20007         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
20009 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
20011         * config/aarch64/aarch64.md
20012         (add<mode>3_compareC_cconly_imm): Remove use of %w.
20013         (add<mode>3_compareC_imm): Likewise.
20014         (<optab>si3_uxtw): Split into register and immediate variants.
20015         (andsi3_compare0_uxtw): Likewise.
20016         (and<mode>3_compare0): Likewise.
20017         (and<mode>3nr_compare0): Likewise.
20018         (stack_protect_test_<mode>): Don't use %x for memory operands.
20020 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
20022         * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
20024 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
20026         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
20027         Split integer shifts into shift_reg and bfm.
20028         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
20029         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
20030         (ror<mode>3_insn): Likewise.
20031         (<optab>si3_insn_uxtw): Likewise.
20032         (<optab><mode>3_insn): Change to rotate_imm.
20033         (extr<mode>5_insn_alt): Likewise.
20034         (extrsi5_insn_uxtw): Likewise.
20035         (extrsi5_insn_uxtw_alt): Likewise.
20037 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
20039         * doc/tm.texi: Regenerate.
20040         * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
20041         (TARGET_INVALID_RETURN_TYPE): Remove.
20042         * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
20043         TARGET_INVALID_RETURN_TYPE.
20044         * target.def (invalid_parameter_type): Remove.
20045         (invalid_return_type): Remove.
20047 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
20049         * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
20050         on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
20051         calls from thunk.
20052         * ipa-inline-transform.c (inline_call): When inlining into thunk produce
20053         gimple body.
20054         (preserve_function_body_p): No need to preserve function body
20055         * cif-codes.def (CIF_THUNK): Remove.
20056         * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
20058 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
20060         * tree-inline.c (expand_call_inline): recurse after inlining thunk.
20062 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
20064         * tree.c (free_lang_data_in_decl): Also set target/optimization flags
20065         for thunks.
20067 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
20069         * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
20070         (inline_small_functions): Do not look for function symbol when
20071         resetting caches.
20073 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
20075         * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
20076         of inline thunks
20078 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
20079             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20080             Jiong Wang  <jiong.wang@arm.com>
20082         * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
20083         for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
20084         Define __ARM_FP16_ARGS when appropriate.
20085         * config/arm/arm.c (arm_invalid_parameter_type): Remove
20086         declaration.
20087         (arm_invalid_return_type): Likewise.
20088         (TARGET_INVALID_PARAMETER_TYPE): Remove.
20089         (TARGET_INVALID_RETURN_TYPE): Remove.
20090         (aapcs_vfp_sub_candidate): Allow HFmode.
20091         (aapcs_vfp_allocate): Add comment.  Support HFmode.
20092         (aapcs_vfp_allocate_return_reg): Likewise.
20093         (struct aapcs_cp_arg_layout): Slightly reword comments for
20094         is_return_candidate and allocate_return_reg.
20095         (output_mov_vfp): Update assert.
20096         (arm_hard_regno_mode_ok): Remove comment, update HF-mode
20097         condition.
20098         (arm_invalid_parameter_type): Remove.
20099         (amr_invalid_return_type): Remove.
20100         * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
20101         * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
20102         * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
20104 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
20106         * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
20107         * config/aarch64/arch64-protos.h
20108         (aarch64_legitimize_reload_address): Remove.
20109         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
20110         Remove.
20112 2016-05-16  Eric Botcazou  <ebotcazou@adacore.com>
20114         * configure.ac: Add ACX_NONCANONICAL_HOST.
20115         * configure: Regenerate.
20116         * Makefile.in: Set host_noncanonical.
20118 2016-05-14  Uros Bizjak  <ubizjak@gmail.com>
20120         PR target/71097
20121         * config/i386/i386.md (*movtf_internal): Before register allocation,
20122         do not allow FP constants for CM_MEDIUM memory model, allow only
20123         standard FP constants for CM_LARGE and CM_LARGE_PIC models.
20124         (*movxf_internal): Ditto.
20125         (*movdf_internal): Ditto.
20126         (*movsf_internal): Ditto.
20128 2016-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
20130         PR rtl-optimization/67483
20131         * combine.c (make_compound_operation): Don't call extract_left_shift
20132         with negative shift amounts.
20134 2016-05-13  Jakub Jelinek  <jakub@redhat.com>
20136         PR bootstrap/71071
20137         * fold-const.c (fold_checksum_tree): Allow modification
20138         of TYPE_ALIAS_SET during folding.
20140         * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
20141         ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
20142         (ix86_split_to_parts): Likewise.  Fix up formatting.
20144 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
20146         * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
20147         unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
20148         printf format.
20150 2016-05-13  Nathan Sidwell  <nathan@acm.org>
20152         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
20153         (nvptx_name_replacement): Delete.
20154         (write_fn_proto, write_fn_proto_from_insn,
20155         nvptx_output_call_insn): Remove nvptx_name_replacement call.
20156         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
20157         * langhooks.c (add_builtin_funcction_common): Call
20158         targetm.mangle_decl_assembler_name.
20160         * config/nvptx/nvptx.c (write_fn_proto): Handle
20161         BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
20163 2016-05-13  Martin Liska  <mliska@suse.cz>
20165         * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
20166         and PRIu64 in printf format.
20168 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20170         * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
20171         comment.
20173 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20175         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
20176         Change --param max-completely-peeled-times to
20177         --param max-completely-peel-times in dump file printing.
20179 2016-05-13  Richard Biener  <rguenther@suse.de>
20181         PR tree-optimization/42587
20182         * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
20183         (find_bswap_or_nop_1): Likewise.
20184         (bswap_replace): Likewise.
20186 2016-05-13  Martin Liska  <mliska@suse.cz>
20188         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
20189         Initialize a variable with default value.
20191 2016-05-13  Martin Liska  <mliska@suse.cz>
20193         * doc/invoke.texi: Enhance explanation of error recovery
20194         of sanitizers.
20196 2016-05-13  Martin Liska  <mliska@suse.cz>
20198         * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
20199         (struct cost_pair): Change inv_expr_id (int) to inv_expr
20200         (iv_inv_expr_ent *).
20201         (struct iv_inv_expr_ent): Comment struct fields.
20202         (sort_iv_inv_expr_ent): New function.
20203         (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
20204         (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
20205         a hash_map between iv_inv_expr_ent and number of usages.
20206         (niter_for_exit): Fix coding style.
20207         (tree_ssa_iv_optimize_init): Use renamed variable.
20208         (determine_base_object): Fix coding style.
20209         (alloc_iv): Likewise.
20210         (find_interesting_uses_outside): Likewise.
20211         (add_candidate_1): Likewise.
20212         (add_standard_iv_candidates): Likewise.
20213         (set_group_iv_cost): Replace inv_expr_id with inv_expr.
20214         (prepare_decl_rtl): Fix coding style.
20215         (get_address_cost): Likewise.
20216         (get_shiftadd_cost): Likewise.
20217         (force_expr_to_var_cost): Likewise.
20218         (compare_aff_trees): Likewise.
20219         (get_expr_id): Restructure the function.
20220         (get_loop_invariant_expr_id): Renamed to
20221         get_loop_invariant_expr.
20222         (get_computation_cost_at): Replace usage of inv_expr_id with
20223         inv_expr.
20224         (get_computation_cost): Likewise.
20225         (determine_group_iv_cost_generic): Likewise.
20226         (determine_group_iv_cost_address): Likewise.
20227         (iv_period): Fix coding style.
20228         (iv_elimination_compare_lt): Likewise.
20229         (may_eliminate_iv): Likewise.
20230         (determine_group_iv_cost_cond):  Replace usage of inv_expr_id with
20231         inv_expr.
20232         (determine_group_iv_costs): Dump invariant expressions.
20233         (iv_ca_recount_cost): Use the newly added hash_map.
20234         (iv_ca_set_remove_invariants): Fix coding style.
20235         (iv_ca_set_add_invariants): Fix coding style.
20236         (iv_ca_set_no_cp): Utilize the newly added hash_map for used
20237         invariants.
20238         (iv_ca_set_cp): Likewise.
20239         (iv_ca_new): Initialize the newly added hash_map and remove
20240         initialization of fields.
20241         (iv_ca_free): Delete the hash_map.
20242         (iv_ca_dump): Dump invariant expressions.
20243         (iv_ca_extend): Fix coding style.
20244         (try_add_cand_for): Likewise.
20245         (create_new_ivs): Dump information about # of avg iterations and
20246         # of used invariant expressions.
20247         (rewrite_use_compare): Fix coding style.
20248         (free_loop_data): Set default value for max_inv_expr_id.
20250 2016-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
20252         * cse.c (rest_of_handle_cse): Use cleanup_cfg
20253         returned value cse_cfg_altered computation.
20254         (rest_of_handle_cse2): Likewise.
20255         (rest_of_handle_cse_after_global_opts): Likewise.
20257 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20259         PR target/53440
20260         * config/arm/arm.c (arm32_output_mi_thunk): New.
20261         (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
20262         to split Thumb1 vs TARGET_32BIT functionality.
20263         (arm_thumb1_mi_thunk): New.
20265 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20267         * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
20268         to true.
20270 2016-05-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20272         PR target/71080
20273         * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
20275 2016-05-13  Eric Botcazou  <ebotcazou@adacore.com>
20277         * builtins.c (expand_builtin_memcmp): Do not emit the call here.
20278         (expand_builtin_trap): Emit a regular call.
20279         (set_builtin_user_assembler_name): Remove obsolete cases.
20280         * dse.c (scan_insn): Adjust.
20281         * except.c: Include calls.h.
20282         (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
20283         emit a regular call to setjmp.
20284         * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
20285         (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
20286         (emit_block_move_via_libcall): Delete.
20287         (block_move_fn): Delete.
20288         (init_block_move_fn): Likewise.
20289         (emit_block_move_libcall_fn): Likewise.
20290         (emit_block_op_via_libcall): New function.
20291         (set_storage_via_libcall): Tidy up and use memset builtin.
20292         (block_clear_fn): Delete.
20293         (init_block_clear_fn): Likewise.
20294         (clear_storage_libcall_fn): Likewise.
20295         (expand_assignment): Call emit_block_move_via_libcall.
20296         Do not include gt-expr.h.
20297         * expr.h (emit_block_op_via_libcall): Declare.
20298         (emit_block_copy_via_libcall): New inline function.
20299         (emit_block_move_via_libcall): Likewise.
20300         (emit_block_comp_via_libcall): Likewise.
20301         (block_clear_fn): Delete.
20302         (init_block_move_fn): Likewise.
20303         (init_block_clear_fn): Likewise.
20304         (emit_block_move_via_libcall): Likewise.
20305         (set_storage_via_libcall): Add default parameter value.
20306         * libfuncs.h (enum libfunc_index): Remove obsolete values.
20307         (abort_libfunc): Delete.
20308         (memcpy_libfunc): Likewise.
20309         (memmove_libfunc): Likewise.
20310         (memcmp_libfunc): Likewise.
20311         (memset_libfunc): Likewise.
20312         (setbits_libfunc): Likewise.
20313         (setjmp_libfunc): Likewise.
20314         (longjmp_libfunc): Likewise.
20315         (profile_function_entry_libfunc): Likewise.
20316         (profile_function_exit_libfunc): Likewise.
20317         (gcov_flush_libfunc): Likewise.
20318         * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
20319         and DECL_VISIBILITY on the declaration.
20320         (init_optabs): Do not initialize obsolete libfuncs.
20321         * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
20322         * tree-core.h (ECF_RET1): Define.
20323         (ECF_TM_PURE): Adjust.
20324         (ECF_TM_BUILTIN): Likewise.
20325         * tree.c (set_call_expr_flags): Deal with ECF_RET1.
20326         (build_common_builtin_nodes): Initialize abort builtin.
20327         Add ECF_RET1 on memcpy, memmove and memset builtins.
20328         Pass final flags for alloca and alloca_with_align builtins.
20329         * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
20330         obsolete builtins.
20331         * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
20332         * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
20333         set_storage_via_libcall and call emit_block_copy_via_libcall.
20335 2016-05-12  Uros Bizjak  <ubizjak@gmail.com>
20337         * config/i386/i386.md (*call_got_x32): Change operand 0 to
20338         DImode before it is passed to ix86_output_call_operand.
20339         (*call_value_got_x32): Ditto for operand 1.
20341 2016-05-12  Jiong Wang  <jiong.wang@arm.com>
20343         PR rtl-optimization/70904
20344         * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
20345         reload for wide mode.
20347 2016-05-12  Marek Polacek  <polacek@redhat.com>
20349         PR c/70756
20350         * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
20351         * langhooks.c (lhd_incomplete_type_error): Add location parameter.
20352         * langhooks.h (incomplete_type_error): Likewise.
20353         * tree.c (size_in_bytes_loc): Renamed from size_in_bytes.  Add location
20354         parameter, pass it down to incomplete_type_error.
20355         * tree.h (size_in_bytes): New inline overload.
20356         (size_in_bytes_loc): Renamed from size_in_bytes.
20358 2016-05-12  Richard Biener  <rguenther@suse.de>
20360         PR tree-optimization/71059
20361         * tree-ssa-pre.c (phi_translate_1): Fully fold translated
20362         nary before looking up or entering the expression into the VN
20363         hashes.
20364         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
20365         Make sure to re-use NARYs without result as inserted by
20366         phi-translation.
20368 2016-05-12  Richard Biener  <rguenther@suse.de>
20370         PR tree-optimization/71062
20371         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
20372         field.
20373         * tree-ssa-structalias.c (set_uids_in_ptset): Set
20374         vars_contains_restrict if the var is a restrict tag.
20375         * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
20376         do not disambiguate pointers against it.
20377         (dump_points_to_solution): Re-structure and adjust for new
20378         vars_contains_restrict flag.
20379         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
20381 2016-05-12  Martin Liska  <mliska@suse.cz>
20383         * doc/invoke.texi: Explain connection between
20384         -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
20386 2016-05-12  Ilya Enkovich  <ilya.enkovich@intel.com>
20388         PR tree-optimization/71006
20389         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
20390         consider COND_EXPR as a mask producer.
20392 2016-05-12  Marek Polacek  <polacek@redhat.com>
20394         PR driver/71063
20395         * opts.c (common_handle_option): Detect missing argument for --help^.
20397 2016-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20399         PR target/70830
20400         * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
20401         when popping the PC and within an interrupt handler routine.
20402         Add missing tab to output of "ldmfd".
20403         (output_return_instruction): Output LDMFD with SP update rather
20404         than POP when returning from interrupt handler.
20406 2016-05-12  Jakub Jelinek  <jakub@redhat.com>
20408         * config/i386/i386.md (isa): Add x64_avx512dq, enable if
20409         TARGET_64BIT && TARGET_AVX512DQ.
20410         * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
20411         (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
20412         (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
20413         *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
20414         (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
20415         (*vec_extractv4si_zext): Add avx512dq alternative.
20416         (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
20417         use v instead of x constraint in other alternatives where possible.
20419         * config/i386/sse.md (sse2_loadld): Use v instead of x
20420         constraint in alternatives 0,1,4.
20422         * config/i386/sse.md (pinsr_evex_isa): New mode attr.
20423         (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
20424         v constraints instead of x and <pinsr_evex_isa> isa attribute.
20426         PR target/71019
20427         * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
20428         <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
20429         is not emitted unless TARGET_AVX512BW.
20430         (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
20431         Likewise.  For TARGET_AVX512BW, use "=v" constraint instead of "=x"
20432         for the result operand.
20434         * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
20435         constraint instead of x in avx alternatives.  Use maybe_evex instead
20436         of vex prefix.
20438         * config/i386/constraints.md (Yv): New constraint.
20439         * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
20440         TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
20441         * config/i386/i386.md (avx512fvecmode): New mode attr.
20442         (*pushtf): Use v constraint instead of x.
20443         (*movtf_internal): Likewise.  For TARGET_AVX512VL and
20444         xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
20445         (*absneg<mode>2): Use Yv constraint instead of x constraint.
20446         (*absnegtf2_sse): Likewise.
20447         (copysign<mode>3_const, copysign<mode>3_var): Likewise.
20448         * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
20449         avx512f alternatives.
20450         (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
20452 2016-05-12  Richard Biener  <rguenther@suse.de>
20454         PR tree-optimization/71060
20455         * tree-data-ref.c (initialize_data_dependence_relation): Do not
20456         require exact match of DR_BASE_OBJECT but only matching address and
20457         type.
20459 2016-05-12  Richard Biener  <rguenther@suse.de>
20461         PR tree-optimization/70986
20462         * cfganal.c: Include cfgloop.h.
20463         (dfs_find_deadend): Prefer to take edges exiting loops.
20465 2016-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20467         * gcc.target/powerpc/pr70963.c: Require at least power8 at both
20468         compile and run time.
20470 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
20472         PR c/43651
20473         * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
20475 2016-05-11  Uros Bizjak  <ubizjak@gmail.com>
20477         * config/i386/i386.c (legitimize_pic_address): Use
20478         copy_to_suggested_reg instead of gen_movsi.
20480 2016-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
20482         * config/rs6000/predicates.md (quad_memory_operand): Move most of
20483         the code into quad_address_p and call it to share code with
20484         vsx_quad_dform_memory_operand.
20485         (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
20486         d-form support.
20487         * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
20488         bit instead of being a separate word.  Split -mpower9-dform into
20489         two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
20490         * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
20491         for the register class supporting 128-bit quad word memory offsets.
20492         (mode_supports_vsx_dform_quad): Helper function to return if the
20493         register class uses quad word memory offsets.
20494         (rs6000_debug_addr_mask): Add support for quad word memory offsets.
20495         (rs6000_debug_reg_global): Always print if we are using LRA or not.
20496         (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
20497         instructions are enabled, set up the appropriate addr_masks for
20498         128-bit types.
20499         (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
20500         -mpower9-dform-scalar, instead of -mpower9-dform.
20501         (rs6000_option_override_internal): Split -mpower9-dform into two
20502         switches, -mpower9-dform-scalar and -mpower9-dform-vector.  The
20503         -mpower9-dform switch sets or clears both.  If we are not using
20504         the LRA register allocator, do not enable -mpower9-dform-vector by
20505         default.  If we are using LRA, enable -mpower9-dform-vector and
20506         -mvsx-timode if it is appropriate.  Issue a warning if either
20507         -mpower9-dform-vector or -mvsx-timode are explicitly used without
20508         enabling LRA.
20509         (quad_address_offset_p): New helper function to return if the
20510         offset is legal for quad word memory instructions.
20511         (quad_address_p): New function to determin if GPR or vector
20512         register quad word memory addresses are legal.
20513         (mem_operand_gpr): Validate quad word address offsets.
20514         (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
20515         d-form (register + offset) instructions.
20516         (offsettable_ok_by_alignment): Likewise.
20517         (rs6000_legitimate_offset_address_p): Likewise.
20518         (legitimate_lo_sum_address_p): Likewise.
20519         (rs6000_legitimize_address): Likewise.
20520         (rs6000_legitimize_reload_address): Add more debug statements for
20521         -mdebug=addr.
20522         (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
20523         d-form instructions.
20524         (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
20525         d-form instructions.  Distinguish different cases in debug
20526         output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
20527         d-form instructions.
20528         (rs6000_preferred_reload_class): Likewise.
20529         (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
20530         instructions.  If ISA 3.0 is available, generate lxvx/stxvx instead
20531         of the ISA 2.06 indexed memory instructions.
20532         (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
20533         use them to save/restore the saved vector registers instead of
20534         using Altivec instructions.
20535         (rs6000_emit_epilogue): Likewise.
20536         (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
20537         (rs6000_opt_masks): Split -mpower9-dform into
20538         -mpower9-dform-scalar and -mpower9-dform-vector.
20539         (rs6000_print_options_internal): Print -mno-<switch> if <switch>
20540         was not selected.
20541         * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
20542         ISA 3.0 vector indexed memory instructions, and fold the code into
20543         the normal mov<mode> patterns.
20544         (p9_vecstore_<mode>): Likewise.
20545         (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
20546         instructions.
20547         (vsx_movti_64bit): Likewise.
20548         (vsx_movti_32bit): Likewise.
20549         * config/rs6000/constraints.md (wO constraint): New constraint for
20550         ISA 3.0 vector d-form support.
20551         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
20552         -mpower9-dform-scalar instead of -mpower9-dform.  Add note not to
20553         include -mpower9-dform-vector until we switch over to LRA.
20554         (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
20555         switches, -mpower9-dform-scalar and -mpower9-dform-vector.
20556         * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
20557         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
20558         for -mpower9-dform and -mlra.
20559         * doc/md.texi (wO constraint): Document wO constraint.
20561 2016-05-11  Alexander Monakov  <amonakov@ispras.ru>
20563         * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
20564         'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
20565         * genautomata.c (output_internal_insn_code_evaluation): Simplify.
20566         Move handling of non-insn arguments inline into the sole user:
20567         (output_trans_func): ...here.
20568         (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
20569         in emitted function prototype.
20570         (output_internal_insn_latency_func): Ditto.  Simplify.
20571         (output_internal_maximal_insn_latency_func): Ditto.  Delete
20572         always-unused argument.
20573         (output_insn_latency_func): Ditto.
20574         (output_maximal_insn_latency_func): Ditto.
20576 2016-05-11  Richard Biener  <rguenther@suse.de>
20578         PR tree-optimization/71055
20579         * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
20580         sth with precision not equal to access size verify we don't chop
20581         off bits.
20583 2016-05-11  Richard Biener  <rguenther@suse.de>
20585         PR debug/71057
20586         * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
20587         (dwarf2out_finish): Move retry_incomplete_types call ...
20588         (dwarf2out_early_finish): ... here.
20590 2016-05-11  Richard Biener  <rguenther@suse.de>
20592         PR middle-end/71002
20593         * alias.c (reference_alias_ptr_type): Preserve alias-set zero
20594         if the langhook insists on it.
20595         * fold-const.c (make_bit_field_ref): Add arg for the original
20596         reference and preserve its alias-set.
20597         (decode_field_reference): Take exp by reference and adjust it
20598         to the original memory reference.
20599         (optimize_bit_field_compare): Adjust callers.
20600         (fold_truth_andor_1): Likewise.
20601         * gimplify.c (gimplify_expr): Adjust in-SSA form test.
20603 2016-05-11  Ilya Enkovich  <ilya.enkovich@intel.com>
20605         PR middle-end/70807
20606         * cfgrtl.h (delete_insn_and_edges): Now return bool.
20607         * cfgrtl.c (delete_insn_and_edges): Likewise.
20608         * config/i386/i386.c (convert_scalars_to_vector): Remove
20609         redundant code.
20610         * cse.c (cse_insn): Compute cse_cfg_altered.
20611         (delete_trivially_dead_insns): Likewise.
20612         (cse_cc_succs): Likewise.
20613         (rest_of_handle_cse): Free dominance info if required.
20614         (rest_of_handle_cse2): Likewise.
20615         (rest_of_handle_cse_after_global_opts): Likewise.
20617 2016-05-11  Alan Modra  <amodra@gmail.com>
20619         * config/rs6000/rs6000.c (is_complex_IBM_long_double,
20620         abi_v4_pass_in_fpr): New functions.
20621         (rs6000_function_arg_boundary): Exclude complex IBM long double
20622         from 64-bit alignment when ABI_V4.
20623         (rs6000_function_arg, rs6000_function_arg_advance_1,
20624         rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
20626 2016-05-10  Segher Boessenkool  <segher@kernel.crashing.org>
20628         PR rtl-optimization/71028
20629         * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
20630         jump with just a return in the fallthrough block if the branch
20631         block contains just a return as well.
20633 2016-05-10  Marc Glisse  <marc.glisse@inria.fr>
20635         * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
20636         * match.pd ((X & Y) ^ Y): ... this.
20637         ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
20638         | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
20640 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
20642         * read-md.c (require_char_ws): New function.
20643         (read_string): Simplify using require_char_ws.
20644         (handle_constants): Likewise.
20645         (handle_enum): Likewise.
20646         (handle_file): Likewise.
20647         * read-md.h (require_char_ws): New declaration.
20648         * read-rtl.c (read_conditions): Simplify using require_char_ws.
20649         (read_mapping): Likewise.
20650         (read_rtx_code): Likewise.
20651         (read_nested_rtx): Likewise.
20653 2016-05-10  James Norris  <jnorris@codesourcery.com>
20655         * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
20656         if offloading is enabled and -fopenacc or -fopenmp is specified.
20657         (CRTOFFLOADEND): Likewise.
20658         (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
20659         (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
20661 2016-05-10  Uros Bizjak  <ubizjak@gmail.com>
20663         * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
20664         gotoff_operand code paths.  Use copy_to_suggested_regs and
20665         expand_simple_binop where appropriate.  Cleanup.
20667 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
20669         PR target/70799
20670         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
20671         integer constants.
20672         (dimode_scalar_chain::vector_const_cost): New.
20673         (dimode_scalar_chain::compute_convert_gain): Handle constants.
20674         (dimode_scalar_chain::convert_op): Likewise.
20675         (dimode_scalar_chain::convert_insn): Likewise.
20677 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
20679         * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
20680         unary operation, not a binary one.
20682 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
20684         PR middle-end/70877
20685         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
20686         calls with type casted fndecl.
20688 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
20690         PR tree-optimization/70786
20691         * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
20692         * calls.c (initialize_argument_information): Bind bounds
20693         with corresponding args passed by reference.
20695 2016-05-10  Jakub Jelinek  <jakub@redhat.com>
20697         PR target/70927
20698         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
20699         *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
20700         use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
20701         accordingly.
20703 2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20705         PR target/70963
20706         * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
20707         code for a zero scale factor.
20708         (vsx_xvcvdpuxds_scale): Likewise.
20710 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
20712         * diagnostic-show-locus.c (layout::layout): Call show_ruler
20713         if show_ruler_p was set on the context.
20714         (layout::show_ruler): New method.
20715         * diagnostic.h (struct diagnostic_context): Add field
20716         "show_ruler_p".
20718 2016-05-10  Richard Biener  <rguenther@suse.de>
20720         PR tree-optimization/71039
20721         * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
20722         (chk_uses): New function.
20723         (propagate_with_phi): Verify we can safely replicate the lhs of an
20724         aggregate assignment on all incoming edges.
20726 2016-05-10  Oleg Endo  <olegendo@gcc.gnu.org>
20728         * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
20729         Forward declare.
20730         (rx_atomic_sequence): New class.
20731         * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
20732         (is_interrupt_func, is_fast_interrupt_func): Make non-static and
20733         non-inline.
20734         (rx_atomic_sequence::rx_atomic_sequence,
20735         rx_atomic_sequence::~rx_atomic_sequence): New functions.
20736         * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
20737         CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
20738         CTRLREG_INTB): New constants.
20739         (FETCHOP): New code iterator.
20740         (fethcop_name, fetchop_name2): New iterator code attributes.
20741         (QIHI): New mode iterator.
20742         (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
20743         atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
20744         atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
20746 2016-05-10  Martin Liska  <mliska@suse.cz>
20748         * tree-inline.c (remap_dependence_clique): Do not remap
20749         debugging statements.
20751 2016-05-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20753         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
20754         ("*fixuns_truncdfdi2_z13")
20755         ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
20756         ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
20757         ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
20759 2016-05-10  Richard Biener  <rguenther@suse.de>
20761         PR tree-optimization/70497
20762         PR tree-optimization/28367
20763         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
20764         split out from ...
20765         (visit_reference_op_load): ... here.
20766         (vn_reference_lookup_3): Use it to handle subreg-like accesses
20767         with simplified BIT_FIELD_REFs.
20768         * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
20769         * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
20770         correctly.
20772 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
20774         * dwarf2out.c (add_abstract_origin_attribute): Adjust
20775         documentation comment.  For BLOCK nodes, add a
20776         DW_AT_abstract_origin attribute that points to the DIE generated
20777         for the origin BLOCK.
20778         (gen_lexical_block_die): Call add_abstract_origin_attribute for
20779         blocks from inlined functions.
20781 2016-05-10  Alan Modra  <amodra@gmail.com>
20783         PR target/70947
20784         * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
20785         regrename modifying insns saving lr before __morestack call.
20786         * config/rs6000/rs6000.md (split_stack_return): Similarly for
20787         insns restoring lr after __morestack call.
20789 2016-05-09  Jakub Jelinek  <jakub@redhat.com>
20791         * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
20792         lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
20793         expanders.
20794         * config/i386/sse.md (vec_interleave_high<mode>,
20795         vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
20796         <avx512>_vpermt2var<mode>3_maskz): Likewise.
20798 2016-05-04  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
20800         * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
20801         function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
20802         parallel reassociation for power8 and forward.
20804 2016-05-09  Uros Bizjak  <ubizjak@gmail.com>
20806         * config/i386/i386.md (absneg splitters with general regs): Use
20807         general_reg_operand predicate.
20808         (btsq peephole2): Use x86_64_immediate_operand to check if new
20809         value is suitable for immediate operand.  Generate emitted insn
20810         using RTL expressions.
20811         (btcq peephole2): Ditto.
20812         (btrq peephole2): Ditto.  Generate correct immediate operand
20813         for AND masking.
20815 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
20817         * cfgexpand.c (expand_debug_expr): Fix address offset for negative
20818         bitpos.
20820 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
20822         * tree-affine.c (wide_int_constant_multiple_p): Add missing
20823         pointer dereference.
20825 2016-05-09  Richard Biener  <rguenther@suse.de>
20827         PR tree-optimization/70985
20828         * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
20829         op0 isn't a gimple register.
20831 2016-05-09  Prachi Godbole  <prachi.godbole@imgtec.com>
20833         * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
20834         (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
20835         (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
20836         (i6400_fpu_mult): New cpu units.
20837         (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
20838         (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
20839         (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
20840         (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
20841         (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
20842         (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
20843         (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
20844         (i6400_msa_long_float4, i6400_msa_long_float5)
20845         (i6400_msa_long_float8, i6400_msa_fdiv_df)
20846         (i6400_msa_fdiv_sf): New reservations.
20847         * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
20848         (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
20849         (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
20850         (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
20851         (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
20852         (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
20853         (msa_short_cmp, msa_short_float2, msa_short_logic3)
20854         (msa_short_store4, msa_long_load, msa_short_store)
20855         (msa_long_logic, msa_long_float2, msa_long_float4)
20856         (msa_long_float5, msa_long_float8, msa_long_mult)
20857         (msa_long_fdiv, msa_long_div): New reservations.
20859 2016-05-09  Robert Suchanek  <robert.suchanek@imgtec.com>
20860             Sameera Deshpande  <sameera.deshpande@imgtec.com>
20861             Matthew Fortune  <matthew.fortune@imgtec.com>
20862             Graham Stott  <graham.stott@imgtec.com>
20863             Chao-ying Fu  <chao-ying.fu@imgtec.com>
20865         * config.gcc: Add MSA header file for mips*-*-* target.
20866         * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
20867         (Ubv8i, Urv8):  New constraints.
20868         * config/mips/mips-ftypes.def: Add function types for MSA
20869         builtins.
20870         * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
20871         (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
20872         * config/mips/mips-msa.md: New file.
20873         * config/mips/mips-protos.h
20874         (mips_split_128bit_const_insns): New prototype.
20875         (mips_msa_idiv_insns): Likewise.
20876         (mips_split_128bit_move): Likewise.
20877         (mips_split_128bit_move_p): Likewise.
20878         (mips_split_msa_copy_d): Likewise.
20879         (mips_split_msa_insert_d): Likewise.
20880         (mips_split_msa_fill_d): Likewise.
20881         (mips_expand_msa_branch): Likewise.
20882         (mips_const_vector_same_val_p): Likewise.
20883         (mips_const_vector_same_bytes_p): Likewise.
20884         (mips_const_vector_same_int_p): Likewise.
20885         (mips_const_vector_shuffle_set_p): Likewise.
20886         (mips_const_vector_bitimm_set_p): Likewise.
20887         (mips_const_vector_bitimm_clr_p): Likewise.
20888         (mips_msa_vec_parallel_const_half): Likewise.
20889         (mips_msa_output_division): Likewise.
20890         (mips_ldst_scaled_shift): Likewise.
20891         (mips_expand_vec_cond_expr): Likewise.
20892         * config/mips/mips.c (enum mips_builtin_type): Add
20893         MIPS_BUILTIN_MSA_TEST_BRANCH.
20894         (mips_gen_const_int_vector_shuffle): New prototype.
20895         (mips_const_vector_bitimm_set_p): New function.
20896         (mips_const_vector_bitimm_clr_p): Likewise.
20897         (mips_const_vector_same_val_p): Likewise.
20898         (mips_const_vector_same_bytes_p): Likewise.
20899         (mips_const_vector_same_int_p): Likewise.
20900         (mips_const_vector_shuffle_set_p): Likewise.
20901         (mips_symbol_insns): Forbid loading symbols via immediate for
20902         MSA.
20903         (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
20904         stores.
20905         (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
20906         MSA.
20907         (mips_lx_address_p): Add support load indexed address for MSA.
20908         (mips_address_insns): Add calculation of instructions needed for
20909         stores and loads for MSA.
20910         (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR.  Handle
20911         CONST_VECTOR for MSA and let it fall through.
20912         (mips_ldst_scaled_shift): New function.
20913         (mips_subword_at_byte): Likewise.
20914         (mips_msa_idiv_insns): Likewise.
20915         (mips_legitimize_move): Validate MSA moves.
20916         (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases.  Add
20917         calculation of costs for MSA division.
20918         (mips_split_move_p): Check if MSA moves need splitting.
20919         (mips_split_move): Split MSA moves if necessary.
20920         (mips_split_128bit_move_p): New function.
20921         (mips_split_128bit_move): Likewise.
20922         (mips_split_msa_copy_d): Likewise.
20923         (mips_split_msa_insert_d): Likewise.
20924         (mips_split_msa_fill_d): Likewise.
20925         (mips_output_move): Handle MSA moves.
20926         (mips_expand_msa_branch): New function.
20927         (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
20928         Reinstate 'y' modifier.
20929         (mips_file_start): Add MSA .gnu_attribute.
20930         (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
20931         FPRs.
20932         (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
20933         (mips_class_max_nregs): Add register size for MSA supported mode.
20934         (mips_cannot_change_mode_class): Allow conversion between MSA
20935         vector modes and TImode.
20936         (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
20937         instruction.
20938         (mips_secondary_reload_class): Force MSA loads/stores via memory.
20939         (mips_preferred_simd_mode): Add preffered modes for MSA.
20940         (mips_vector_mode_supported_p): Add MSA supported modes.
20941         (mips_autovectorize_vector_sizes): New function.
20942         (mips_msa_output_division): Likewise.
20943         (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
20944         (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
20945         (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
20946         (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
20947         (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
20948         (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
20949         (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
20950         (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
20951         (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
20952         (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
20953         (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
20954         (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
20955         (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
20956         (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
20957         (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
20958         (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
20959         (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
20960         (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
20961         (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
20962         (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
20963         (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
20964         (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
20965         (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
20966         (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
20967         (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
20968         (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
20969         (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
20970         (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
20971         (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
20972         (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
20973         (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
20974         (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
20975         (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
20976         (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
20977         (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
20978         (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
20979         (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
20980         (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
20981         (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
20982         (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
20983         (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
20984         (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
20985         (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
20986         (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
20987         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
20988         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
20989         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
20990         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
20991         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
20992         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
20993         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
20994         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
20995         (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
20996         (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
20997         (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
20998         (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
20999         (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
21000         (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
21001         (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
21002         (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
21003         (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
21004         (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
21005         (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
21006         (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
21007         (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
21008         (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
21009         (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
21010         (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
21011         (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
21012         (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
21013         (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
21014         (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
21015         (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
21016         (CODE_FOR_msa_ldi_d): New code_aliasing macros.
21017         (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
21018         slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
21019         srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
21020         srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
21021         srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
21022         srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
21023         bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
21024         bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
21025         bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
21026         binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
21027         binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
21028         binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
21029         addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
21030         subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
21031         max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
21032         max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
21033         maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
21034         mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
21035         mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
21036         min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
21037         ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
21038         clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
21039         clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
21040         clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
21041         clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
21042         clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
21043         st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
21044         sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
21045         adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
21046         adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
21047         ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
21048         aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
21049         aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
21050         subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
21051         subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
21052         subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
21053         asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
21054         maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
21055         msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
21056         div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
21057         hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
21058         hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
21059         mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
21060         dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
21061         dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
21062         dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
21063         sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
21064         splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
21065         pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
21066         ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
21067         ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
21068         ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
21069         ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
21070         bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
21071         fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
21072         pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
21073         nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
21074         copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
21075         insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
21076         bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
21077         fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
21078         fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
21079         fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
21080         fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
21081         fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
21082         fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
21083         fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
21084         fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
21085         fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
21086         fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
21087         mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
21088         msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
21089         fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
21090         flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
21091         ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
21092         ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
21093         ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
21094         move_v builtins.
21095         (mips_get_builtin_decl_index): New array.
21096         (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
21097         (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
21098         (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
21099         (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
21100         (mips_init_builtins): Initialize mips_get_builtin_decl_index
21101         array.
21102         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
21103         hook.
21104         (mips_expand_builtin_insn): Prepare operands for
21105         CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
21106         CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
21107         CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
21108         CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
21109         CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
21110         CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
21111         CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
21112         CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
21113         CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
21114         CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
21115         CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
21116         CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
21117         CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
21118         CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
21119         CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
21120         CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
21121         CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
21122         CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
21123         CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
21124         CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
21125         CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
21126         CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
21127         CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
21128         CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
21129         CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
21130         CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
21131         CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
21132         CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
21133         CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
21134         CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
21135         CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
21136         CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
21137         CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
21138         CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
21139         CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
21140         CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
21141         CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
21142         CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
21143         CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
21144         CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
21145         CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
21146         (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
21147         (mips_set_compression_mode): Disallow MSA with MIPS16 code.
21148         (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
21149         These are set implicitly and an error is reported if overridden.
21150         (mips_expand_builtin_msa_test_branch): New function.
21151         (mips_expand_msa_shuffle): Likewise.
21152         (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
21153         (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
21154         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
21155         (mips_expand_vec_unpack): Add support for MSA.
21156         (mips_expand_vector_init): Likewise.
21157         (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
21158         instead of const0_rtx.
21159         (mips_msa_vec_parallel_const_half): New function.
21160         (mips_gen_const_int_vector): Likewise.
21161         (mips_gen_const_int_vector_shuffle): Likewise.
21162         (mips_expand_msa_cmp): Likewise.
21163         (mips_expand_vec_cond_expr): Likewise.
21164         * config/mips/mips.h
21165         (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
21166         (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
21167         specified.
21168         (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
21169         (ISA_HAS_MSA): New macro.
21170         (UNITS_PER_MSA_REG): Likewise.
21171         (BITS_PER_MSA_REG): Likewise.
21172         (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
21173         (MSA_REG_FIRST): New macro.
21174         (MSA_REG_LAST): Likewise.
21175         (MSA_REG_NUM): Likewise.
21176         (MSA_REG_P): Likewise.
21177         (MSA_REG_RTX_P): Likewise.
21178         (MSA_SUPPORTED_MODE_P): Likewise.
21179         (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
21180         (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
21181         * config/mips/mips.md: Include mips-msa.md.
21182         (alu_type): Add simd_add.
21183         (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
21184         (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
21185         simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
21186         simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
21187         simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
21188         simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
21189         simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
21190         simd_move, simd_load, simd_store.  Choose "multi" for moves
21191         for "qword_mode".
21192         (qword_mode): New attribute.
21193         (insn_count): Add instruction count for quad moves.
21194         Increase the count for MIPS SIMD division.
21195         (UNITMODE): Add UNITMODEs for vector types.
21196         (addsub): New code iterator.
21197         * config/mips/mips.opt (mmsa): New option.
21198         * config/mips/msa.h: New file.
21199         * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
21200         specified.
21201         * config/mips/mti-linux.h: Likewise.
21202         * config/mips/predicates.md
21203         (const_msa_branch_operand): New constraint.
21204         (const_uimm3_operand): Likewise.
21205         (const_uimm4_operand): Likewise.
21206         (const_uimm5_operand): Likewise.
21207         (const_uimm8_operand): Likewise.
21208         (const_imm5_operand): Likewise.
21209         (aq10b_operand): Likewise.
21210         (aq10h_operand): Likewise.
21211         (aq10w_operand): Likewise.
21212         (aq10d_operand): Likewise.
21213         (const_m1_operand): Likewise.
21214         (reg_or_m1_operand): Likewise.
21215         (const_exp_2_operand): Likewise.
21216         (const_exp_4_operand): Likewise.
21217         (const_exp_8_operand): Likewise.
21218         (const_exp_16_operand): Likewise.
21219         (const_vector_same_val_operand): Likewise.
21220         (const_vector_same_simm5_operand): Likewise.
21221         (const_vector_same_uimm5_operand): Likewise.
21222         (const_vector_same_uimm6_operand): Likewise.
21223         (const_vector_same_uimm8_operand): Likewise.
21224         (par_const_vector_shf_set_operand): Likewise.
21225         (reg_or_vector_same_val_operand): Likewise.
21226         (reg_or_vector_same_simm5_operand): Likewise.
21227         (reg_or_vector_same_uimm6_operand): Likewise.
21228         * doc/extend.texi (MIPS SIMD Architecture Functions): New
21229         section.
21230         * doc/invoke.texi (-mmsa): Document new option.
21232 2016-05-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21234         * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
21235         * configure: Regenerate.
21236         * config.in: Regenerate.
21237         * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
21238         on -fvtable-verify.
21239         * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
21240         (ENDFILE_VTV_SPEC): Define.
21242 2016-05-09  Kaushik Phatak  <kaushik.phatak@kpit.com>
21244         * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
21245         registers in all interrupt handlers if necessary.
21246         (rl78_option_override): Add warning.
21247         (MUST_SAVE_MDUC_REGISTERS): New macro.
21248         (rl78_expand_epilogue): Restore the MDUC registers if necessary.
21249         * config/rl78/rl78.c (check_mduc_usage): New function.
21250         (mduc_regs): New structure to hold MDUC register data.
21251         * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
21252         (mulsi3_g13): Add is_g13_muldiv_insn attribute.
21253         (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
21254         (mulhi3_g13): Add is_g13_muldiv_insn attribute.
21255         * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
21256         * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
21258 2016-05-09  Bin Cheng  <bin.cheng@arm.com>
21260         * tree-if-conv.c (tree-ssa-loop.h): Include header file.
21261         (tree-ssa-loop-niter.h): Ditto.
21262         (idx_within_array_bound, ref_within_array_bound): New functions.
21263         (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
21264         Factor out check on writable base object to ...
21265         (base_object_writable): ... here.
21267 2016-05-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21269         * config/arm/arm.md (probe_stack): Add modes to set source
21270         and destination.
21272 2016-05-09  Bernd Schmidt  <bschmidt@redhat.com>
21274         * regrename.c (base_reg_class_for_rename): New static function.
21275         (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
21277 2016-05-08  Jan Hubicka  <hubicka@ucw.cz>
21279         * cgraph.c (thunk_adjust): Export.
21280         * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
21281         * cgraphunit.c (thunk_adjust): Export.
21282         (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
21283         thunks.
21284         * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
21285         inlinable.
21286         * tree-inline.c (expand_call_inline): Expand thunks inline.
21288 2016-05-08  Uros Bizjak  <ubizjak@gmail.com>
21290         PR target/70998
21291         * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
21292         (*sse2_vd_cvtss2sd): Ditto.
21293         * config/i386/i386.md
21294         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
21295         Generate *sse2_vd_cvtsd2ss pattern.
21296         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
21297         Generate *sse2_vd_cvtss2sd pattern.
21299 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
21301         * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
21302         * config/sh/sh.c (get_sh_arg_class): ... this new function.  Update its
21303         users.
21305 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
21307         * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
21308         * config/sh/sh.c: Define and declare variables on first use throughout
21309         the file.
21310         (current_function_interrupt): Change to bool type.
21311         (frame_insn): Rename to emit_frame_insn and update users.
21312         (push_regs): Use bool for 'interrupt_handler' argument.
21313         (save_schedule_s): Remove.
21314         (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
21315         (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
21316         targetm.asm_out.unaligned_op.di.
21317         (gen_far_branch): Remove redundant forward declaration.
21318         (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
21319         MAX_TEMPS, save_schedule_ssave_schedule): Remove.
21320         (sh_set_return_address, sh_function_ok_for_sibcall,
21321         scavenge_reg): Update comments.
21322         (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
21323         (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
21324         (sh_attr_renesas_p): Remove unnecessary parentheses.
21325         (branch_dest): Simplify.
21326         * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
21327         Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
21328         (CUMULATIVE_ARGS): Change macro to typedef.
21329         (current_function_interrupt): Change to bool type.
21330         (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
21331         Surround with __cplusplus ifdef.
21332         (sh_compare_op0, sh_compare_op1): Remove.
21333         (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
21335 2016-05-07  Jim Wilson  <jim.wilson@linaro.org>
21337         * config/arm/arm.md (arch): Add neon.
21338         (arch_enabled): Return yes for arch neon when TARGET_NEON.
21339         * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3.  Add
21340         neon_move as type for alt 3.  Add arch attr enabling alt 3 for neon.
21341         Emit vmov.i64 for alt 3.  Renumber alternatives 3 to 8.  Adjust
21342         attributes for alt renumbering.  Mark alt 3 as non-predicable.
21343         (thumb2_movdf_vfp): Likewise.
21345 2016-05-07  Uros Bizjak  <ubizjak@gmail.com>
21347         * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
21348         to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
21349         (*andqi_1): Add preferred_for_speed attribute to disparage
21350         alternative 2 for TARGET_PARTIAL_REG_STALL targets.
21351         (*<code>qi_1): Ditto.
21352         (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
21353         alternative 1 for TARGET_PARTIAL_REG_STALL targets.
21354         (*ashlqi3_1): Ditto.
21355         (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
21356         Add preferred_for_size attribute to disparage alternative 0 and
21357         preferred_for_speed attribute to disparage alternative 1 for
21358         TARGET_PARTIAL_REG_STALL targets.
21360 2016-05-07  Tom de Vries  <tom@codesourcery.com>
21362         PR tree-optimization/70956
21363         * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
21364         def.
21366 2016-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
21368         * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
21369         * config/sh/sh.c (sh_cbranch_distance): Implement it.
21370         * config/sh/sh.md (branch_zero): Remove define_attr.
21371         (define_delay): Disable delay slot if branch distance is one insn.
21373 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
21375         * config/i386/i386.md (LEAMODE): New mode attribute.
21376         (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
21377         (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
21378         and LEAMODE mode attribute.  Use VOIDmode const_0_to_3_operand as
21379         operand 2 predicate.
21380         (*lea<mode>_general_2): Use VOIDmode for const248_operand.
21381         (*lea<mode>_general_3): Ditto.
21382         (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
21384 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
21386         * genmddump.c (main): Convert argv from char ** to const char **.
21388 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
21390         * coretypes.h (OVERRIDE): New macro.
21391         (FINAL): New macro.
21393 2016-05-06  Eric Botcazou  <ebotcazou@adacore.com>
21395         * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
21396         allow coalescing if the types are compatible.
21398 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
21400         * pass_manager.h (pass_manager::register_pass_name): New method.
21401         (pass_manager::get_pass_by_name): New method.
21402         (pass_manager::create_pass_tab): New method.
21403         (pass_manager::m_name_to_pass_map): New field.
21404         * passes.c (name_to_pass_map): Delete global in favor of field
21405         "m_name_to_pass_map" of pass_manager.
21406         (register_pass_name): Rename from a function to...
21407         (pass_manager::register_pass_name): ...this method, updating
21408         for renaming of global "name_to_pass_map" to field
21409         "m_name_to_pass_map".
21410         (create_pass_tab): Rename from a function to...
21411         (pass_manager::create_pass_tab): ...this method, updating
21412         for renaming of global "name_to_pass_map" to field.
21413         (get_pass_by_name): Rename from a function to...
21414         (pass_manager::get_pass_by_name): ...this method.
21415         (enable_disable_pass): Convert use of get_pass_by_name to
21416         a method call, locating the pass_manager singleton.
21418 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
21420         * genattr-common.c (main): Convert argv from char ** to const char **.
21421         * genattr.c (main): Likewise.
21422         * genattrtab.c (main): Likewise.
21423         * genautomata.c (initiate_automaton_gen): Likewise.
21424         (main): Likewise.
21425         * gencodes.c (main): Likewise.
21426         * genconditions.c (main): Likewise.
21427         * genconfig.c (main): Likewise.
21428         * genconstants.c (main): Likewise.
21429         * genemit.c (main): Likewise.
21430         * genenums.c (main): Likewise.
21431         * genextract.c (main): Likewise.
21432         * genflags.c (main): Likewise.
21433         * genmddeps.c (main): Likewise.
21434         * genopinit.c (main): Likewise.
21435         * genoutput.c (main): Likewise.
21436         * genpeep.c (main): Likewise.
21437         * genpreds.c (main): Likewise.
21438         * genrecog.c (main): Likewise.
21439         * gensupport.c (init_rtx_reader_args_cb): Likewise.
21440         (init_rtx_reader_args): Likewise.
21441         * gensupport.h (init_rtx_reader_args_cb): Likewise.
21442         (init_rtx_reader_args): Likewise.
21443         * gentarget-def.c (main): Likewise.
21444         * read-md.c (read_md_files): Likewise.
21445         * read-md.h (read_md_files): Likewise.
21447 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
21449         * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
21450         instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
21451         * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
21452         Remove unused predicate.
21453         (register_and_not_fp_reg_operand): Ditto.
21455 2016-05-06  Martin Liska  <mliska@suse.cz>
21457         * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
21458         instead of vec as the vector is local to the function.
21460 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
21462         * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
21463         avx512bw alternative.
21465         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
21466         before the ashr<mode>3 pattern.
21468         * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
21469         v instead of x in vex or maybe_vex alternatives, use
21470         maybe_evex instead of vex in prefix.
21472         * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
21473         *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
21474         vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
21475         in vex or maybe_vex alternatives, use maybe_evex instead of vex
21476         in prefix.
21478         * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
21479         v instead of x in vex or maybe_vex alternatives, use
21480         maybe_evex instead of vex in prefix.
21482         * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
21483         sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
21484         sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
21485         sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
21486         alternatives, use maybe_evex instead of vex in prefix.
21488         * config/i386/sse.md (vec_interleave_lowv4sf,
21489         *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
21490         v instead of x in vex or maybe_vex alternatives, use
21491         maybe_evex instead of vex in prefix.
21493         * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
21494         v instead of x in vex or maybe_vex alternatives, use
21495         maybe_evex instead of vex in prefix.
21497         * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
21498         v constraint instead of x.
21500 2016-05-06  Nathan Sidwell  <nathan@codesourcery.com>
21502         * gimple.c (gimple_call_same_target_p): Unique functions are eq.
21503         * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
21504         equality first.
21506 2016-05-06  Richard Biener  <rguenther@suse.de>
21508         PR tree-optimization/70948
21509         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
21510         Properly clobber all fields of va_list for __builtin_va_start.
21512 2016-05-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
21514         PR debug/70935
21515         * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
21516         loop latch destination.
21518 2016-05-06  Martin Liska  <mliska@suse.cz>
21520         * tree-ssa-uninit.c: Apply manual changes
21521         to the GNU coding style.
21522         (prune_uninit_phi_opnds): Rename from
21523         prune_uninit_phi_opnds_in_unrealizable_paths.
21525 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
21527         * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
21528         mspace): Remove deprecated options.
21529         * doc/invoke.texi (SH options): Remove -mspace.
21531 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
21533         * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
21535 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
21537         * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
21538         corresponding combine split pattern.
21540 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
21542         PR target/58219
21543         * config/sh/predicates.md (long_displacement_mem_operand): New.
21544         * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
21545         Add movi20, movi20s alternatives.  Adjust length attribute for
21546         alternatives.
21547         (movsi_ie): Allow for any FPU.  Adjust length attribute for
21548         alternatives.
21549         (movsi_i_lowpart): Add movi20, movi20s alternatives.  Adjust length
21550         attribute for alternatives.
21551         (*mov<mode>): Use long_displacement_mem_operand for length attribute.
21552         (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
21553         length attribute for alternatives.
21555 2016-05-06  Richard Biener  <rguenther@suse.de>
21557         PR tree-optimization/70960
21558         * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
21560 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
21562         PR target/52933
21563         * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
21564         * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
21566 2016-05-06  Marek Polacek  <polacek@redhat.com>
21568         PR sanitizer/70875
21569         * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
21571 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
21573         PR target/54089
21574         * config/sh/sh.md (*rotcr): Add another variant.
21576 2016-05-06  Richard Biener  <rguenther@suse.de>
21578         PR middle-end/70931
21579         * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
21581 2016-05-06  Richard Biener  <rguenther@suse.de>
21583         PR middle-end/70941
21584         * fold-const.c (split_tree): Always convert to the original type
21585         before negating.
21587 2016-05-06  Richard Biener  <rguenther@suse.de>
21589         * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
21590         (fwprop_addr): Likewise.
21592 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
21594         PR target/70873
21595         * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
21596         New prototype.
21597         * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
21598         * config/i386/i386.md (push mem splitter): Use find_constant_src in
21599         the splitter condition.
21600         (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
21601         the splitter condition.
21602         (FP float_extend load splitter): Ditto.
21604 2016-05-05  Uros Bizjak  <ubizjak@gmail.com>
21606         * config/i386/i386.md (peehole2 patterns): Change true_regnum
21607         to REGNO in all peephole2 patterns.
21608         (post-reload splitters): Change true_regnum to REGNO in
21609         post-reload splitters.
21610         (zero_extend splitters): Use general_reg_operand and
21611         nonimmediate_gr_operand predicates.
21613 2016-05-05  Jakub Jelinek  <jakub@redhat.com>
21615         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
21616         v constraint instead of x.
21618 2016-05-05  Alan Modra  <amodra@gmail.com>
21620         PR target/68662
21621         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
21622         set OPTION_MASK_RELOCATABLE when flag_pic == 2.  Set
21623         TARGET_NO_FP_IN_TOC for -mrelocatable.
21624         (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
21625         TARGET_RELOCATABLE test.
21626         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
21627         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
21628         * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
21629         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
21630         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
21631         * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
21632         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
21633         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
21634         * config/rs6000/predicates.md (easy_fp_constant): Likewise.
21635         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
21636         Likewise.
21637         (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
21638         (rs6000_stack_info): Likewise.
21639         (rs6000_elf_asm_out_constructor): Likewise.
21640         (rs6000_elf_asm_out_destructor): Likewise.
21641         (rs6000_elf_declare_function_name): Likewise.
21642         * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
21643         * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
21644         Don't define.
21646 2016-05-05  Alan Modra  <amodra@gmail.com>
21648         * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
21650 2016-05-05  Alan Modra  <amodra@gmail.com>
21652         * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
21653         out-of-line gpr restore for one or two regs if that would add
21654         a save of lr.
21656 2016-05-04  Uros Bizjak  <ubizjak@gmail.com>
21658         PR target/70873
21659         * config/i386/i386.md
21660         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
21661         Change to post-epilogue_completed late splitter.  Use sse_reg_operand
21662         as operand 0 predicate.
21663         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
21664         Ditto.
21665         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
21666         Ditto.  Emit the pattern using RTX.
21668         (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
21669         Use sse_reg_opreand as operand 0 predicate.  Do not use true_regnum in
21670         the post-reload splitter.  Use lowpart_subreg instead of gen_rtx_REG.
21671         (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
21672         Ditto.
21673         (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
21674         sse_reg_operand as operand 0 predicate.
21676         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
21677         Use sse_reg_opreand as operand 0 predicate.  Use lowpart_subreg
21678         instead of gen_rtx_REG.
21679         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
21680         Ditto.
21682 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
21684         * function.c (emit_use_return_register_into_block): Delete.
21685         (gen_return_pattern): Delete.
21686         (emit_return_into_block): Delete.
21687         (active_insn_between): Delete.
21688         (convert_jumps_to_returns): Delete.
21689         (emit_return_for_exit): Delete.
21690         (thread_prologue_and_epilogue_insns): Delete all code dealing with
21691         simple_return for shrink-wrapped blocks.
21692         * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
21693         end of blocks that need one.
21694         (get_unconverted_simple_return): Delete.
21695         (convert_to_simple_return): Delete.
21696         * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
21697         (convert_to_simple_return): Ditto.
21699 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
21701         * cfgcleanup.c (bb_is_just_return): New function.
21702         (try_optimize_cfg): Simplify jumps to return, branches to return,
21703         and branches around return.
21705 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
21707         * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
21708         branch to a return.
21710 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
21712         PR c++/70906
21713         PR c++/70933
21714         * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
21715         * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
21716         assert flags & OEP_HASH_CHECK, instead of asserting it
21717         never happens.  Handle TARGET_EXPR.
21718         * fold-const.c (operand_equal_p): For hash verification,
21719         or in OEP_HASH_CHECK into flags.
21721 2016-05-04  Eric Botcazou  <ebotcazou@adacore.com>
21723         * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
21724         comment.
21725         (compute_samebase_partition_bases): Fix typo.
21727 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
21729         * config/i386/sse.md (vec_interleave_highv8sf,
21730         vec_interleave_lowv8sf, vec_interleave_highv4df,
21731         vec_interleave_lowv4df): Remove constraints from expanders.
21733         * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
21735 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
21737         * tree-inline.c (expand_call_inline): Fix path dealing with
21738         making lhs of call statement undefined.
21740 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
21742         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
21743         Check availability on NODE, too.
21744         * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
21745         (cgraph_node::call_for_symbol_and_aliases): Likewise.
21746         (varpool_node::call_for_symbol_and_aliase): Likewise.
21747         * ipa-pure-const.c (add_new_function): Analyze all bodies.
21748         (propagate_pure_const): Propagate across interposable functions, too.
21749         (skip_function_for_local_pure_const): Do not skip interposable bodies
21750         with aliases.
21751         (pass_local_pure_const::execute): Update.
21753 2016-05-04  Marek Polacek  <polacek@redhat.com>
21755         * doc/invoke.texi: Document -Wdangling-else.
21757 2016-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21759         * config.gcc: Error out when conflicting multilib is detected.  Do not
21760         loop over multilibs since no combination is legal.
21762 2016-05-04  Alan Modra  <amodra@gmail.com>
21764         * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
21765         * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
21766         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
21767         Align .toc.
21769 2016-05-04  Matthew Fortune  <matthew.fortune@imgtec.com>
21771         * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
21772         Clean up p5600 comments.
21774 2016-05-04  Richard Biener  <rguenther@suse.de>
21776         * match.pd: Add BIT_FIELD_REF canonicalizations and vector
21777         constructor simplifications.
21778         * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
21780 2016-05-04  Oleg Endo  <olegendo@gcc.gnu.org>
21782         * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
21783         * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
21784         result.set_rtx is null instead of aborting.
21785         * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
21786         Always enable.
21787         (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
21788         * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
21789         *mov<mode>_store_postinc): New patterns.
21791 2016-05-04  Marc Glisse  <marc.glisse@inria.fr>
21793         * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR.  Mark
21794         as commutative.  Check both conversions are NOP.
21795         ((A & B) OP (C & B)): Remove.
21797 2016-05-04  Alan Modra  <amodra@gmail.com>
21799         * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
21801 2016-05-04  Alan Modra  <amodra@gmail.com>
21803         PR target/70866
21804         * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
21805         when cr2,3,4 are all fixed regs.
21807 2016-05-04  Bernd Schmidt  <bschmidt@redhat.com>
21809         PR rtl-optimization/57193
21810         * opts.c (default_options_table): Revert OPT_frename_registers change.
21811         * doc/invoke.texi (-frename-registers, -O2): Likewise.
21813 2016-05-03  Martin Sebor  <msebor@redhat.com>
21815         PR c++/66561
21816         * builtins.c (fold_builtin_FILE): New function.
21817         (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
21818         (fold_builtin_0): Call them.
21819         * gimplify.c (gimplify_call_expr): Remove the handling of
21820         BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
21822         PR c++/66561
21823         * doc/extend.texi (Other Builtins): Update __builtin_FILE,
21824         __builtin_FUNCTION, and __builtin_LINE to reflect they yield
21825         constants.
21827         PR c++/66639
21828         * doc/extend.texi (Function Names as Strings): Update __func__,
21829         __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
21830         constants.
21832 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
21833             Richard Biener  <rguenther@suse.de>
21835         PR tree-optimization/70916
21836         * tree-if-conv.c: Include cfganal.h.
21837         (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
21838         and remove_fake_exit_edges around the optimization pass.
21840 2016-05-03  Jan Hubicka  <hubicka@ucw.cz>
21842         * cgraph.c (symbol_table::create_edge): Set inline_failed.
21843         (cgraph_edge::make_direct): Likewise.
21844         (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
21845         * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
21846         * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
21847         (CIF_THUNK): New code.
21848         * ipa-inline-analysis.c (initialize_inline_failed): Preserve
21849         CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
21850         (compute_inline_parameters): Set inline_failed for thunks.
21851         (inline_analyze_function): Cleanup.
21852         * ipa-inline.c (can_inline_edge_p): Do not deal with
21853         call_stmt_cannot_inline_p.
21854         (can_early_inline_edge_p): Likewise.
21855         (early_inliner): Initialize inline_failed.
21856         * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
21858 2016-05-03  Uros Bizjak  <ubizjak@gmail.com>
21860         * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
21861         from nonimm_ssenomem_operand.
21862         (nonimm_ssenomem_operand): New predicate.
21863         * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
21864         as operand 0 predicate.
21865         (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
21866         Disable unsupported alternatives using "enabled" attribute.
21867         Use register_ssemem_operand as operand 0 predicate.
21868         (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
21870 2016-05-03  Marek Polacek  <polacek@redhat.com>
21872         PR c/70859
21873         * input.c (expansion_point_location): New function.
21874         * input.h (expansion_point_location): Declare.
21876 2016-05-03  Pierre-Marie de Rodat  <derodat@adacore.com>
21878         * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
21879         occurence with frame_offset_ ones.
21881 2016-05-03  Alan Modra  <amodra@gmail.com>
21883         PR rtl-optimization/70890
21884         * ira.c (combine_and_move_insns): When moving def_insn, remove
21885         equivs on use_insn.
21887 2016-05-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
21889         * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
21890         ("*r<noxa>sbg_<mode>_srl"): New define_insns.
21891         ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
21892         ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
21894 2016-05-03  Alan Modra  <amodra@gmail.com>
21896         * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
21897         for SAVE_MULTIPLE/STORE_MULTIPLE.
21899 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
21901         * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
21902         *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
21904 2016-05-03  Richard Biener  <rguenther@suse.de>
21906         * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
21907         default true.
21908         (gimplify_arg): Likewise.
21909         * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
21910         re-writing the result to a decl if required.
21911         (internal_get_tmp_var): Add allow_ssa parameter
21912         and override into_ssa with it.
21913         (get_formal_tmp_var): Adjust.
21914         (get_initialized_tmp_var): Add allow_ssa parameter.
21915         (gimplify_arg): Add allow_ssa parameter and avoid generating
21916         SSA names for the result false.
21917         (gimplify_call_expr): If the call may return twice do not
21918         gimplify parameters into SSA.
21919         (prepare_gimple_addressable): Do not allow an SSA name as temporary.
21920         (gimplify_modify_expr): Adjust assert.  For noreturn calls
21921         with a SSA name LHS adjust its def.
21922         (gimplify_save_expr): Do not allow an SSA name as save-expr result.
21923         (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
21924         (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
21925         (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
21926         an SSA name.  Likewise for OMP_CLAUSE_REDUCTION operands.
21927         (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL.  Likewise
21928         for OMP_FOR_COND,  OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
21929         (optimize_target_teams): Do not allow SSA names for clause operands.
21930         (gimplify_expr): Likewise for where we mark the result addressable.
21931         * passes.def (pass_init_datastructures): Remove.
21932         * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
21933         (rewrite_stmt): Likewise.
21934         * tree-inline.c (initialize_cfun): Properly transfer SSA state.
21935         (replace_locals_op): Replace SSA names.
21936         (copy_gimple_seq_and_replace_locals): Init src_cfun.
21937         * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
21938         * cgraph.c (release_function_body): Free CFG annotations only
21939         when we have a CFG.  Simplify.
21940         * gimple-fold.c (gimplify_and_update_call_from_tree): Use
21941         force_gimple_operand instead of get_initialized_tmp_var.
21942         * tree-pass.h (make_pass_init_datastructures): Remove.
21943         * tree-ssa.c (execute_init_datastructures): Remove.
21944         (pass_data_init_datastructures): Likewise.
21945         (class pass_init_datastructures): Likewise.
21946         (make_pass_init_datastructures): Likewise.
21947         * omp-low.c (create_omp_child_function): Init SSA data structures.
21948         (grid_expand_target_grid_body): Likewise.
21949         * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
21950         name before adding it to names_to_release.
21951         (remove_bb): Always release SSA defs.
21952         * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
21953         before dereferencing it.
21954         * cgraphunit.c (init_lowered_empty_function): Always
21955         int SSA data structures.
21956         * tree-ssanames.c (release_defs): Remove assert that we are in
21957         SSA form.
21958         * trans-mem.c (diagnose_tm_1): Handle SSA name function.
21960 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
21961             Uros Bizjak  <ubizjak@gmail.com>
21963         PR rtl-optimization/70467
21964         * config/i386/predicates.md (x86_64_hilo_int_operand,
21965         x86_64_hilo_general_operand): New predicates.
21966         * config/i386/constraints.md (Wd): New constraint.
21967         * config/i386/i386.md (mode attr di): Use Wd instead of e.
21968         (general_hilo_operand): New mode attr.
21969         (add<mode>3, sub<mode>3): Use <general_hilo_operand>
21970         instead of <general_operand>.
21971         (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
21972         x86_64_hilo_general_operand instead of <general_operand>.
21974 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
21976         PR tree-optimization/70916
21977         * tree-if-conv.c (constant_or_ssa_name): Removed.
21978         (fold_build_cond_expr): Use is_gimple_val instead of
21979         constant_or_ssa_name.
21981         PR tree-optimization/70916
21982         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
21983         if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
21985         PR target/49244
21986         * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
21987         (optimize_atomic_bit_test_and): New function.
21988         (pass_fold_builtins::execute): Use it.
21989         * optabs.def (atomic_bit_test_and_set_optab,
21990         atomic_bit_test_and_complement_optab,
21991         atomic_bit_test_and_reset_optab): New optabs.
21992         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
21993         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
21994         * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
21995         * builtins.c (expand_ifn_atomic_bit_test_and): New function.
21996         * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
21997         expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
21998         expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
21999         * doc/md.texi (atomic_bit_test_and_set@var{mode},
22000         atomic_bit_test_and_complement@var{mode},
22001         atomic_bit_test_and_reset@var{mode}): Document.
22002         * config/i386/sync.md (atomic_bit_test_and_set<mode>,
22003         atomic_bit_test_and_complement<mode>,
22004         atomic_bit_test_and_reset<mode>): New expanders.
22005         (atomic_bit_test_and_set<mode>_1,
22006         atomic_bit_test_and_complement<mode>_1,
22007         atomic_bit_test_and_reset<mode>_1): New insns.
22009 2016-05-03  Richard Sandiford  <richard.sandiford@arm.com>
22011         PR rtl-optimization/70687
22012         * combine.c (change_zero_ext): Check for scalar modes.  Use wide_int
22013         instead of unsigned HOST_WIDE_INT.
22015 2016-05-03  Bernd Schmidt  <bschmidt@redhat.com>
22017         PR rtl-optimization/44281
22018         * hard-reg-set.h (struct target_hard_regs): New field
22019         x_fixed_nonglobal_reg_set.
22020         (fixed_nonglobal_reg_set): New macro.
22021         * reginfo.c (init_reg_sets_1): Initialize it.
22022         * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
22023         of fixed_reg_set.
22024         * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
22026 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
22028         PR tree-optimization/56541
22029         * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
22030         * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
22031         * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
22032         (any_complicated_phi): new static variable.
22033         (aggressive_if_conv): delete.
22034         (if_convertible_phi_p): support phis with more than two arguments.
22035         (if_convertible_bb_p): remvoe check on aggressive_if_conv and
22036         critical pred edges.
22037         (ifcvt_split_critical_edges): support phis with more than two
22038         arguments by checking new parameter.  only split critical edges
22039         if needed.
22040         (tree_if_conversion): handle simd pragma marked loop using new
22041         local variable aggressive_if_conv.  check any_complicated_phi.
22043 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
22045         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
22046         before using it.
22048 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
22050         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
22051         cbase.
22053 2016-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
22055         * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
22056         (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
22057         define_insn_and_split.
22058         (mulsi3_i): New define_insn_and_split.
22059         (mulsi3_call): Convert to define_insn.
22060         (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
22061         Remove constraints.
22063 2016-05-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
22065         * machmode.h (mode_complex): Add support to give the complex mode
22066         for a given mode.
22067         (GET_MODE_COMPLEX_MODE): Likewise.
22068         * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
22069         stored by build_complex_type and gfc_build_complex_type instead of
22070         trying to figure out the appropriate mode based on the size. Raise
22071         an assertion error, if the type was not set.
22072         * genmodes.c (struct mode_data): Add field for the complex type of
22073         the given type.
22074         (blank_mode): Likewise.
22075         (make_complex_modes): Remember the complex mode created in the
22076         base type.
22077         (emit_mode_complex): Write out the mode_complex array to map a
22078         type mode to the complex version.
22079         (emit_insn_modes_c): Likewise.
22080         * tree.c (build_complex_type): Set the complex type to use before
22081         calling layout_type.
22082         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
22083         support for __float128 complex datatypes.
22084         (rs6000_hard_regno_mode_ok): Likewise.
22085         (rs6000_setup_reg_addr_masks): Likewise.
22086         (rs6000_complex_function_value): Likewise.
22087         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
22088         __float128 and __ibm128 complex.
22089         (FLOAT128_IBM_P): Likewise.
22090         (ALTIVEC_ARG_MAX_RETURN): Likewise.
22091         * doc/extend.texi (Additional Floating Types): Document that
22092         -mfloat128 must be used to enable __float128.  Document complex
22093         __float128 and __ibm128 support.
22095 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
22097         PR target/49244
22098         * gimple.c (gimple_builtin_call_types_compatible_p): Allow
22099         char/short arguments promoted to int because of promote_prototypes.
22101 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
22103         * config/i386/predicates.md (register_ssemem_operand): New predicate.
22104         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
22105         *cmpi<FPCMP:unord><MODEF:mode>_mixed and
22106         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.  Disable unsupported
22107         alternatives using "enabled" attribute.  Use register_ssemem_operand
22108         as operand 1 predicate.
22109         (*cmpi<unord>xf_i387): Split XFmode pattern from
22110         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
22111         (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
22112         *absneg<mode>2_i387.  Disable unsupported alternatives using
22113         "enabled" attribute.
22114         (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
22116 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
22118         * omp-low.c (lower_oacc_head_tail): Assert there is at least one
22119         marker.
22120         (oacc_loop_process): Check mask for loop termination.
22122 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
22124         * cif-code.def (CIF_THUNK): Add.
22125         * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
22126         accidental change.
22128 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
22130         * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
22131         (dump_inline_summary): Dump it.
22132         (fp_expression_p): New predicate.
22133         (estimate_function_body_sizes): Use it.
22134         (inline_merge_summary): Merge fp_expressions.
22135         (inline_read_section): Read fp_expressions.
22136         (inline_write_summary): Write fp_expressions.
22137         * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
22138         codegen boundary if either caller or callee is !fp_expressions.
22139         * ipa-inline.h (inline_summary): Add fp_expressions.
22140         * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
22141         to fp_expressions be sure the fp generation flags are updated.
22143 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
22145         PR rtl-optimization/70467
22146         * cse.c (cse_insn): Handle no-op MEM moves after folding.
22148         PR rtl-optimization/70467
22149         * ipa-pure-const.c (check_call): Handle internal calls even in
22150         ipa mode like in local mode.
22152 2016-05-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22154         * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
22156 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
22158         * match.pd (X u< X, X u> X): New transformations.
22160 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
22162         * flag-types.h (enum warn_strict_overflow_code): Move ...
22163         * coretypes.h: ... here.
22164         * fold-const.h (fold_overflow_warning): Declare.
22165         * fold-const.c (fold_overflow_warning): Make non-static.
22166         (fold_comparison): Move the transformation of X +- C1 CMP C2
22167         into X CMP C2 -+ C1 ...
22168         * match.pd: ... here.
22169         * gimple-fold.c (fold_stmt_1): Protect with
22170         fold_defer_overflow_warnings.
22172 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
22174         * omp-low.c (struct oacc_loop): Add 'inner' field.
22175         (new_oacc_loop_raw): Initialize it to zero.
22176         (oacc_loop_fixed_partitions): Initialize it.
22177         (oacc_loop_auto_partitions): Partition outermost loop to outermost
22178         available partitioning.
22180 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
22182         * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
22183         register_operand.
22184         (umulsidi3): Likewise.
22185         (indirect_jump): Fix jump instruction assembly patterns.
22187 2016-05-02  Thomas Schwinge  <thomas@codesourcery.com>
22189         PR target/70860
22190         * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
22191         (nvptx_function_value): Assert non-NULL cfun.
22193 2016-05-02  Eric Botcazou  <ebotcazou@adacore.com>
22195         PR rtl-optimization/70886
22196         * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
22198         * cselib.h (rtx_equal_for_cselib_1): Declare.
22199         (rtx_equal_for_cselib_p: New inline function.
22200         * cselib.c (rtx_equal_for_cselib_p): Delete.
22201         (rtx_equal_for_cselib_1): Make public.
22203 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
22205         * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
22206         (register_mixssei387nonimm_operand): Remove predicate.
22207         * config/i386/i386.md (*fop_<mode>_comm): Merge from
22208         *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387.  Disable unsupported
22209         alternatives using "enabled" attribute.  Also check X87_ENABLE_ARITH
22210         for TARGET_MIX_SSE_I387 alternatives.
22211         (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
22212         Disable unsupported alternatives using "enabled" attribute.  Use
22213         nonimm_ssenomem_operand as operand 1 predicate.  Also check
22214         X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
22216 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
22218         * tree.c (cst_and_fits_in_hwi): Simplify.
22220 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
22222         * tree.h (wi::to_wide): New function.
22223         * expr.c (expand_expr_real_1): Use wi::to_wide.
22224         * fold-const.c (int_const_binop_1): Likewise.
22225         (extract_muldiv_1): Likewise.
22227 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
22229         * wide-int.h: Update offset_int and widest_int documentation.
22230         (WI_SIGNED_SHIFT_RESULT): New macro.
22231         (wi::binary_shift): Define signed_shift_result_type for
22232         shifts on offset_int- and widest_int-like types.
22233         (generic_wide_int): Support <<= and >>= if << and >> are supported.
22234         * tree.h (int_bit_position): Use shift operators instead of wi::
22235          shifts.
22236         * alias.c (adjust_offset_for_component_ref): Likewise.
22237         * expr.c (get_inner_reference): Likewise.
22238         * fold-const.c (fold_comparison): Likewise.
22239         * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
22240         * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
22241         * tree-dfa.c (get_ref_base_and_extent): Likewise.
22242         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
22243         (stmt_kills_ref_p): Likewise.
22244         * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
22245         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
22246         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
22247         (ao_ref_init_from_vn_reference): Likewise.
22249 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
22251         * wide-int.h: Update offset_int and widest_int documentation.
22252         (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
22253         (wi::binary_traits): Allow ordered comparisons between offset_int and
22254         offset_int, between widest_int and widest_int, and between either
22255         of these types and basic C types.
22256         (operator <, <=, >, >=): Define for the same combinations.
22257         * tree.h (tree_int_cst_lt): Use comparison operators instead
22258         of wi:: comparisons.
22259         (tree_int_cst_le): Likewise.
22260         * gimple-fold.c (fold_array_ctor_reference): Likewise.
22261         (fold_nonarray_ctor_reference): Likewise.
22262         * gimple-ssa-strength-reduction.c (record_increment): Likewise.
22263         * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
22264         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
22265         * tree-sra.c (completely_scalarize): Likewise.
22266         * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
22267         * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
22268         * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
22269         (check_for_binary_op_overflow): Likewise.
22270         (search_for_addr_array): Likewise.
22271         * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
22273 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
22275         * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
22276         (arc_save_restore): Likewise.
22277         (arc_dwarf_register_span): Likewise.
22278         (arc_output_pic_addr_const): Initialize suffix variable.
22280 2016-05-02  Martin Liska  <mliska@suse.cz>
22282         * symbol-summary.h (function_summary::function_summary):
22283         Remove checking assert for all cgraph nodes.
22284         (function_summary::get): Check summary_uid.
22285         (symtab_insertion): Check summary_uid.
22287 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
22289         * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
22290         * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
22291         bmaskn instruction.
22292         (arc_dwarf_register_span): Remove enum keyword.
22293         (compact_memory_operand_p): New function.
22294         * config/arc/arc.h (reg_class): Add code density register classes.
22295         (REG_CLASS_NAMES): Likewise.
22296         (REG_CLASS_CONTENTS): Likewise.
22297         * config/arc/arc.md (*movqi_insn): Add code density instructions.
22298         (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
22299         (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
22300         (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
22301         * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
22302         constraints.
22303         (h, Rcd, Rsd, Rzd): New register constraints.
22304         (T): Use compact_memory_operand_p function.
22305         * config/arc/predicates.md (compact_load_memory_operand): Remove.
22307 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
22309         * config/sh/sh.md (*negnegt, *movtt): Remove.
22311 2016-05-02  Marek Polacek  <polacek@redhat.com>
22312             Tom de Vries  <tom@codesourcery.com>
22314         PR tree-optimization/70700
22315         * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
22316         bigger than FIRST_REF_NODE.
22318 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
22320         PR target/52898
22321         * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
22322         TARGET_CMPEQDI_T.
22323         (prepare_cbranch_operands): Don't use scratch register.  Assume that
22324         function is used when pseudos can be created.
22325         (expand_cbranchdi4): Likewise.  Remove unused TARGET_CMPEQDI_T paths.
22326         * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
22327         (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
22328         define_expand.  Allow it only when pseudos can be created.
22329         * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
22331 2016-05-01  Uros Bizjak  <ubizjak@gmail.com>
22333         * config/i386/constraints.md (BC): Only allow -1 operands.
22334         * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
22335         Add "enabled" attribute.  Update XI mode attribute calculation.
22336         * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
22337         (*movoi_internal_avx): Update XI mode attribute calculation.
22338         (*movti_internal): Ditto.
22340 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
22342         * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
22343         cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
22345 2016-05-01  Eric Botcazou  <ebotcazou@adacore.com>
22347         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
22348         statement on instruction code.  Remove trailing spaces.
22349         (altivec_expand_stv_builtin): Likewise.
22351 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
22353         * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
22354         (TARGET_FPU_DOUBLE): Simplify.
22355         (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
22356         'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
22357         * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
22358         with 'TARGET_FPU_DOUBLE'.
22359         * config/sh/sh.md: Likewise.
22361 2016-05-01  Yoshinori Sato  <ysato@users.sourceforge.jp>
22363         * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
22364         SH_DIV_STR_FOR_SIZE): Remove.
22365         * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
22366         SH_DIV_STR_FOR_SIZE): Remove.
22368 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
22370         * config/sh/predicates.md (any_register_operand, zero_extend_operand,
22371         logical_reg_operand): Delete.
22372         (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
22373         arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
22374         logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
22375         match_operand and match_test.
22376         (sh_const_vec, sh_1el_vec): Remove redundant checks.  Declare local
22377         variables on their first use.  Return bool values.
22378         * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
22379         * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
22380         arith_reg_operand for input operand.  Remove empty constraints.
22381         (xorsi3): Delete.
22382         (*xorsi3_compact): Rename to xorsi3.
22383         (zero_extend<mode>si2): Use arith_reg_operand for input operand.
22384         (*zero_extend<mode>si2_disp_mem): Update comment.
22385         (mov_nop): Delete.
22387 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
22389         * config/sh/t-sh: Remove SH5 support.
22390         * config.gcc: Likewise.
22391         * configure: Likewise.
22393 2016-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22395         * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
22397 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
22399         * config/sh/sh.c (register_sh_passes, sh_option_override,
22400         sh_print_operand, prepare_move_operands,
22401         sh_can_follow_jump): Remove TARGET_SH1 checks.
22402         * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
22403         PROMOTE_MODE): Likewise.
22404         * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
22405         movdi): Likewise.
22407 2016-04-30  Alan Modra  <amodra@gmail.com>
22409         * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
22410         restoring when fixed_reg_p, but allow out-of-line or stmw save.
22411         Check for user regs later to avoid unnecessary looping over regs.
22412         Merge user reg check with non-saved reg check.  Don't force
22413         inline VR restore when static chain used.
22414         (rs6000_frame_related): Omit eh_frame info for user regs when
22415         saving.
22416         (fixed_regs_p): Delete.
22418 2016-04-30  Alan Modra  <amodra@gmail.com>
22420         * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
22421         (SAVE_STRATEGY, REST_STRATEGY): ..this.  Renumber and sort enum.
22422         Update all uses.
22424 2016-04-30  Alan Modra  <amodra@gmail.com>
22426         PR target/69645
22427         * config/rs6000/rs6000.c (fixed_reg_p): New function.
22428         (fixed_regs_p): Rename from global_regs_p.  Call fixed_reg_p.
22429         Update all uses.
22431 2016-04-30  Alan Modra  <amodra@gmail.com>
22433         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
22434         Remove redundant PIC_OFFSET_TABLE_REGNUM test.  Replace with
22435         flag_pic test for Darwin.
22437 2016-04-30  Alan Modra  <amodra@gmail.com>
22439         * regs.h (struct reg_info_t): Delete freq_calls_crossed and
22440         throw_calls_crossed.
22441         (REG_FREQ_CALLS_CROSSED): Delete.
22442         (REG_N_THROWING_CALLS_CROSSED): Delete.
22443         * regstat.c (regstat_bb_compute_ri): Don't calculate
22444         REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
22445         (dump_reg_info): Don't print call cross frequency.
22446         * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
22447         and REG_N_THROWING_CALLS_CROSSED.
22449 2016-04-30  Alan Modra  <amodra@gmail.com>
22451         * regs.h (struct reg_info_t): Delete live_length.
22452         (REG_LIVE_LENGTH): Delete macro.
22453         * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
22454         local_live, local_processed and local_live_last_luid params.
22455         Replace bb_index param with bb.  Don't set REG_LIVE_LENGTH.
22456         Formatting fixes.
22457         (regstat_compute_ri): Adjust for above.  Don't set
22458         REG_LIVE_LENGTH.
22459         (dump_reg_info): Don't print live length.
22460         * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
22461         with test of setjmp_crosses.  Don't set REG_LIVE_LENGTH.
22462         Localize loop_depth var.
22464 2016-04-30  Alan Modra  <amodra@gmail.com>
22466         * ira.c (enum valid_equiv): New.
22467         (validate_equiv_mem): Return enum.
22468         (update_equiv_mem): Create replacement in more cases.
22469         (add_store_equivs): Update validate_equiv_mem call.
22471 2016-04-30  Alan Modra  <amodra@gmail.com>
22473         * ira.c (combine_and_move_insns): Rather than scanning insns,
22474         use DF infrastucture to find use and def insns.
22476 2016-04-30  Alan Modra  <amodra@gmail.com>
22478         ira.c (combine_and_move_insns): Move invariant conditions..
22479         (ira.c): ..to here.  Call combine_and_move_insns before
22480         add_store_equivs.  Call grow_reg_equivs later.  Allocate
22481         req_equiv later using max_reg_num() rather than global max_regno.
22482         (contains_replace_regs): Delete.
22483         (add_store_equivs): Remove contains_replace_regs test.
22485 2016-04-30  Alan Modra  <amodra@gmail.com>
22487         * ira.c (struct equiv_mem_data): New.
22488         (equiv_mem, equiv_mem_modified): Delete static vars.
22489         (validate_equiv_mem_from_store): Use "data" param to communicate..
22490         (validate_equiv_mem): ..from here.
22492 2016-04-30  Alan Modra  <amodra@gmail.com>
22494         * ira.c (add_store_equivs, combine_and_move_insns): New functions,
22495         split out from..
22496         (update_reg_equivs): ..here.  Move allocation and freeing of
22497         reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
22498         end_alias_analysis to..
22499         (ira): ..here.
22501 2016-04-30  Alan Modra  <amodra@gmail.com>
22503         * ira.c (pdx_subregs): Delete.
22504         (struct equivalence): Add pdx_subregs field.
22505         (set_paradoxical_subreg): Remove pdx_subregs param.  Update
22506         pdx_subregs access.
22507         (update_equiv_regs): Don't create or free pdx_subregs.  Update
22508         pdx_subregs access.
22510 2016-04-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22512         * config/rs6000/altivec.h: Change definitions of vec_xl and
22513         vec_xst.
22514         * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
22515         (LD_ELEMREV_V2DI): New.
22516         (LD_ELEMREV_V4SF): New.
22517         (LD_ELEMREV_V4SI): New.
22518         (LD_ELEMREV_V8HI): New.
22519         (LD_ELEMREV_V16QI): New.
22520         (ST_ELEMREV_V2DF): New.
22521         (ST_ELEMREV_V2DI): New.
22522         (ST_ELEMREV_V4SF): New.
22523         (ST_ELEMREV_V4SI): New.
22524         (ST_ELEMREV_V8HI): New.
22525         (ST_ELEMREV_V16QI): New.
22526         (XL): New.
22527         (XST): New.
22528         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
22529         descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
22530         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
22531         TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
22532         (altivec_expand_builtin): Add handling for
22533         VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
22534         (rs6000_invalid_builtin): Add error-checking for
22535         RS6000_BTM_P9_VECTOR.
22536         (altivec_init_builtins): Define builtins used to implement vec_xl
22537         and vec_xst.
22538         (rs6000_builtin_mask_names): Define power9-vector.
22539         * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
22540         (RS6000_BTM_P9_VECTOR): Define.
22541         (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
22542         * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
22543         (vsx_ld_elemrev_v2df): Likewise.
22544         (vsx_ld_elemrev_v4sf): Likewise.
22545         (vsx_ld_elemrev_v4si): Likewise.
22546         (vsx_ld_elemrev_v8hi): Likewise.
22547         (vsx_ld_elemrev_v16qi): Likewise.
22548         (vsx_st_elemrev_v2df): Likewise.
22549         (vsx_st_elemrev_v2di): Likewise.
22550         (vsx_st_elemrev_v4sf): Likewise.
22551         (vsx_st_elemrev_v4si): Likewise.
22552         (vsx_st_elemrev_v8hi): Likewise.
22553         (vsx_st_elemrev_v16qi): Likewise.
22554         * doc/extend.texi: Add prototypes for vec_xl and vec_xst.  Correct
22555         grammar.
22557 2016-04-29  Patrick Palka  <ppalka@gcc.gnu.org>
22559         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
22560         out into ...
22561         (simplify_control_stmt_condition_1): ... here.  Recurse into
22562         BIT_AND_EXPRs and BIT_IOR_EXPRs.
22564 2016-04-29  David Edelsohn  <dje.gcc@gmail.com>
22566         PR target/69810
22567         * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
22568         (zero_extendqi<mode>2_dot): Revert earlier conversion from
22569         define_insn_and_split to define_insn.
22570         (zero_extendqi<mode>2_dot2): Same.
22571         (extendqi<mode>2_dot): Same.
22572         (extendqi<mode>2_dot2): Same.
22574 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
22576         * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
22577         (probe_stack): New expander.
22578         (probe_stack_<mode>): New insn pattern.
22580 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
22582         * config/i386/i386.md
22583         (operations with memory inputs setting flags peephole2):
22584         Remove uneeded REG_P checks.  Cleanup pattern generation.
22586 2016-04-29  Ilya Enkovich  <ilya.enkovich@intel.com>
22588         * tree-vect-loop.c (vect_transform_loop): Fix
22589         nb_iterations_upper_bound computation for vectorized loop.
22591 2016-04-29  Marek Polacek  <polacek@redhat.com>
22592             Jakub Jelinek  <jakub@redhat.com>
22594         PR sanitizer/70342
22595         * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
22596         TARGET_EXPR_SLOT as a base.
22598 2016-04-29  Andrew Burgess  <andrew.burgess@embecosm.com>
22600         * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
22601         with 'rCm2' constraints to limit possible immediate size.
22602         (*load_zeroextendqisi_update): Likewise.
22603         (*load_signextendqisi_update): Likewise.
22604         (*loadhi_update): Likewise.
22605         (*load_zeroextendhisi_update): Likewise.
22606         (*load_signextendhisi_update): Likewise.
22607         (*loadsi_update): Likewise.
22608         (*loadsf_update): Likewise.
22610 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
22612         * config/i386/predicates.md (constm1_operand): Fix comparison.
22614 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
22616         * testsuite/gcc.target/arc/ieee_eq.c: New test.
22618 2016-04-29  Oleg Endo  <olegendo@gcc.gnu.org>
22620         * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
22621         remaining SH5 related settings.
22622         * config/sh/sh-protos.h (shmedia_cleanup_truncate,
22623         shmedia_prepare_call_address): Delete.
22624         * config/sh/sh.c (sh_print_operand, output_stack_adjust,
22625         DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
22626         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
22627         UNSUPPORTED_SH2A): Remove m5 checks.
22628         (sh_divide_strategy_e): Remove SH5 division strategies.
22629         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
22630         * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
22632 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
22634         * config/s390/s390.c (s390_rtx_costs): Update documentation.
22636 2016-04-29  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22638         * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
22639         * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
22640         Change lder to ldr.
22641         * config/s390/vector.md ("mov<mode>"): Likewise.
22643 2016-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
22645         * config/s390/constraints.md ("U", "W"): Invoke
22646         s390_mem_constraint with "ZR" and "ZT".
22647         * config/s390/s390.c (s390_check_qrst_address): Reject invalid
22648         addresses when using LRA.  Accept also short displacements for S
22649         and T constraints.  Do not check for long displacement target for
22650         S and T constraints.
22651         (s390_mem_constraint): Remove handling of U and W constraints.
22652         * config/s390/s390.md (various patterns): Remove the short
22653         displacement constraints (Q and R) if a long displacement
22654         constraint is present.  Add longdisp as required CPU capability.
22655         * config/s390/vector.md: Likewise.
22656         * config/s390/vx-builtins.md: Likewise.
22658 2016-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
22660         PR target/60040
22661         * reload1.c (reload): Call finish_spills before
22662         restarting reload loop. Skip select_reload_regs
22663         if update_eliminables_and_spill returns true.
22665 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
22667         * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
22668         * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
22669         (umulhisi3_imm): Update predicates and constraint letters.
22670         (umulhisi3_reg): Declare instruction as commutative.
22671         * config/arc/constraints.md (J12, J16): New constraints.
22672         * config/arc/predicates.md (short_unsigned_const_operand): New
22673         predicate.
22674         (arc_short_operand): Likewise.
22675         * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
22677 2016-04-29  Richard Biener  <rguenther@suse.de>
22679         PR tree-optimization/13962
22680         PR tree-optimization/65686
22681         * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
22682         * tree-ssa-alias.c (ptrs_compare_unequal): New function
22683         using PTA to compare pointers.
22684         * match.pd: Add pattern for pointer equality compare simplification
22685         using ptrs_compare_unequal.
22687 2016-04-29  Richard Biener  <rguenther@suse.de>
22689         * stor-layout.c (layout_type): Do not build a pointer-to-element
22690         type for arrays.
22692 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
22694         * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
22695         Use SWI mode iterator.  Use general_reg_operand predicate.
22696         (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
22697         peephole to MMX and SSE part.  Use mmx_reg_operand and sse_reg_operand
22698         predicates.
22700 2016-04-29  Jakub Jelinek  <jakub@redhat.com>
22702         PR middle-end/70843
22703         * fold-const.c (operand_equal_p): Don't verify hash value equality
22704         if arg0 == arg1.
22705         * tree.c (inchash::add_expr): Handle STATEMENT_LIST.  Ignore BLOCK
22706         and OMP_CLAUSE.
22708 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
22710         PR target/70858
22711         * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
22712         to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
22713         (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
22714         __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
22715         __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
22717 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
22719         * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
22720         to info.  Don't initialize separate fields to 0.  Clean up
22721         formatting a bit.
22723 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
22725         * config/i386/i386.md (peephole2s for operations with memory inputs):
22726         Use SWI mode iterator.
22727         (peephole2s for operations with memory outputs): Ditto.
22728         Do not check for stack checking probe.
22730         (probe_stack): Remove expander.
22732 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
22733             Andrew Burgess  <andrew.burgess@embecosm.com>
22735         * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
22736         operands as 32-bits.
22738 2016-04-28  Jason Merrill  <jason@redhat.com>
22740         * gdbinit.in: Skip line-map.h.
22742 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
22743             Andrew Burgess  <andrew.burgess@embecosm.com>
22745         * config/arc/arc.c (arc_conditional_register_usage): Take
22746         TARGET_RRQ_CLASS into account.
22747         (arc_print_operand): Support printing 'p' and 's' operands.
22748         * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
22749         as 0.
22750         (TARGET_RRQ_CLASS): Define.
22751         (IS_POWEROF2_OR_0_P): Define.
22752         * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
22753         alternatives.
22754         (*tst_movb): New define_insn.
22755         (*tst): Avoid recognition if it could prevent '*tst_movb'
22756         combination; replace c/CnL with c/Chs alternative.
22757         (*tst_bitfield_tst): New define_insn.
22758         (*tst_bitfield_asr): New define_insn.
22759         (*tst_bitfield): New define_insn.
22760         (andsi3_i): Add Rrq variant.
22761         (extzv): New define_expand.
22762         (insv): New define_expand.
22763         (*insv_i): New define_insn.
22764         (*movb): New define_insn.
22765         (*movb_signed): New define_insn.
22766         (*movb_high): New define_insn.
22767         (*movb_high_signed): New define_insn.
22768         (*movb_high_signed + 1): New define_split pattern.
22769         (*mrgb): New define_insn.
22770         (*mrgb + 1): New define_peephole2 pattern.
22771         (*mrgb + 2): New define_peephole2 pattern.
22772         * config/arc/arc.opt (mbitops): New option for nps400, uses
22773         TARGET_NPS_BITOPS_DEFAULT.
22774         * config/arc/constraints.md (q): Make register class conditional.
22775         (Rrq): New register constraint.
22776         (Chs): New constraint.
22777         (Clo): New constraint.
22778         (Chi): New constraint.
22779         (Cbf): New constraint.
22780         (Cbn): New constraint.
22781         (C18): New constraint.
22782         (Cbi): New constraint.
22784 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
22786         * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
22787         dst->popcount.
22788         (bitmap_intersection_of_preds): Ditto.
22789         (bitmap_union_of_succs): Ditto.
22790         (bitmap_union_of_preds): Ditto.
22791         * sbitmap.c (do_popcount): Delete.
22792         (BITMAP_DEBUGGING): Delete.
22793         (sbitmap_verify_popcount): Delete.
22794         (sbitmap_alloc): Don't initialize the popcount field.
22795         (sbitmap_alloc_with_popcount): Delete.
22796         (sbitmap_resize): Don't resize the popcount array.
22797         (sbitmap_vector_alloc): Don't initialize the popcount field.
22798         (bitmap_copy): Don't copy the popcount array.
22799         (bitmap_clear): Don't clear the popcount array.
22800         (bitmap_clear): Delete the popcount array handling.
22801         (bitmap_ior_and_compl): Delete the popcount assert.
22802         (bitmap_not): Ditto.
22803         (bitmap_and_compl): Ditto.
22804         (bitmap_and): Delete the popcount array handling.
22805         (bitmap_xor): Ditto.
22806         (bitmap_ior): Ditto.
22807         (bitmap_or_and): Delete the popcount assert.
22808         (bitmap_and_or): Ditto.
22809         (popcount_table): Delete.
22810         (sbitmap_elt_popcount): Delete.
22811         * sbitmap.h (simple_bitmap_def): Delete the popcount field.
22812         (bitmap_set_bit): Delete the popcount assert.
22813         (bitmap_clear_bit): Ditto.
22814         (sbitmap_free): Don't free the popcount array.
22815         (sbitmap_alloc_with_popcount): Delete declaration.
22816         (sbitmap_popcount): Ditto.
22818 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
22819             Andrew Burgess  <andrew.burgess@embecosm.com>
22821         * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
22822         (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
22823         * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
22824         (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
22825         * config/arc/arc.opt (mcmem): New option.
22826         * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
22827         supply length for r/m alternative.
22828         (*extendqisi2_ac): Likewise.
22829         (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
22830         r/Uex alternative.
22831         (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
22832         (movhi_insn): Likewise.
22833         (movsi_insn): Add r/Ucm,Ucm/w alternatives.
22834         (*zero_extendqihi2_i): Add r/Ucm alternative.
22835         (*zero_extendqisi2_ac): Likewise.
22836         (*zero_extendhisi2_i): Likewise.
22837         * config/arc/constraints.md (Uex): New memory constraint.
22838         (Ucm): New define_constraint.
22839         * config/arc/predicates.md (long_immediate_loadstore_operand):
22840         Return 0 for MEM with cmem_address address.
22841         (cmem_address_0): New predicates.
22842         (cmem_address_1): Likewise.
22843         (cmem_address_2): Likewise.
22844         (cmem_address): Likewise.
22846 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
22848         * config/rs6000/rs6000.c (machine_function): Rename
22849         insn_chain_scanned_p to spe_insn_chain_scanned_p.
22850         (rs6000_stack_info): Adjust.
22852 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
22853             Andrew Burgess  <andrew.burgess@embecosm.com>
22855         * config/arc/constraints.md (Usd): Convert to define_constraint.
22856         (Us<): Likewise.
22857         (Us>): Likewise.
22859 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
22861         PR target/70821
22862         * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
22863         Add new peephole2 where the first insn is *mov<mode>_or instead of
22864         *mov<mode>_internal.
22866 2016-04-28  Segher Boesssenkool  <segher@kernel.crashing.org>
22868         * tracer.c (bb_seen): Make static.
22870 2016-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
22872         * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
22873         support, setup defaults.
22874         * config/arc/arc-opts.h (enum processor_type): Add NPS400.
22875         * config/arc/arc.c (arc_init): Add NPS400 support.
22876         * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
22877         (TARGET_ARC700): NPS400 is also an ARC700.
22878         * config/arc/arc.opt: Add NPS400 options to -mcpu=.
22880 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
22882         PR target/70668
22883         * config/nds32/nds32.md (casesi): Don't access the operands array
22884         out of bounds.
22886 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
22888         * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
22889         (or $-1,reg peephole2): Ditto.
22890         (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
22892 2016-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
22894         * doc/extend.texi (Common Function Attributes) [optimize]:
22895         Discourage use of the optimize attribute.
22897 2016-04-28  Bill Seurer  <seurer@linux.vnet.ibm.com>
22899         * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
22900         special case builtin.
22901         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
22902         ALTIVEC_BUILTIN_VEC_ADDE.
22903         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
22904         support for ALTIVEC_BUILTIN_VEC_ADDE.
22905         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
22906         for __builtin_vec_adde.
22908 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
22910         * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
22911         * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
22913 2016-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22915         PR testsuite/70595
22916         * doc/sourcebuild.texi (Effective-Target Keywords, Other
22917         attributes): Document cilkplus_runtime.
22919 2016-04-28  Martin Jambor  <mjambor@suse.cz>
22921         * tree-cfg.c (verify_expr): Verify that local declarations belong to
22922         this function.  Call verify_expr on MEM_REFs and bases of other
22923         handled_components.
22925 2016-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22927         * internal-fn.c (expand_arith_overflow): Convert preprocessor check
22928         for WORD_REGISTER_OPERATIONS to runtime check.
22930 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
22932         * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
22934 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
22936         * config/arc/arc.c (arc_process_double_reg_moves): Fix for
22937         big-endian compilation.
22938         * config/arc/arc.md (addf3): Likewise.
22939         (subdf3): Likewise.
22940         (muldf3): Likewise.
22942 2016-04-28  Richard Biener  <rguenther@suse.de>
22944         PR tree-optimization/70840
22945         * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
22946         Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
22947         Mark x * pow(x,c) -> pow(x,c+1) commutative.
22948         Add powi(x,y) * powi(z,y) -> powi(x*z,y).
22950 2015-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22952         * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
22953         and explain why in a comment.
22955 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
22957         * config/arc/arc.md (cpu_facility): Add fpx variant.
22958         (subdf3): Prohibit use reverse sub when assist operations option
22959         is enabled.
22960         * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
22961         instructions only when FPX is enabled.
22962         * testsuite/gcc.target/arc/trsub.c: New test.
22964 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
22966         * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
22967         mult_operator when calculating "type" attribute.
22968         (*fop_<mode>_1_i387): Ditto.
22969         (*fop_xf_1_i387): Ditto.
22970         (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
22971         Use std::swap to swap operands.  Use RTL expressions to generate
22972         converted pattern.
22974 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
22975             Joern Rennecke  <joern.rennecke@embecosm.com>
22977         * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
22978         declaration.
22979         (emit_pic_move): Remove.
22980         (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
22981         * config/arc/arc.c (emit_pic_move): Removed.
22982         (TARGET_HAVE_TLS): Define.
22983         (arc_conditional_register_usage): Test for arc_tp_regno.
22984         (arc_print_operand, arc_print_operand_address): Handle TLS
22985         unspecs.
22986         (arc_needs_pcl_p): New function.
22987         (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
22988         (arc_legitimate_pic_addr_p): Handle TLS unspecs.
22989         (arc_raw_symbolic_reference_mentioned_p): Likewise.
22990         (arc_get_tp, arc_emit_call_tls_get_addr): New function.
22991         (arc_legitimize_tls_address): Likewise.
22992         (DTPOFF_ZERO_SYM): Define.
22993         (arc_legitimize_pic_address): Make it static, handle TLS cases.
22994         (arc_output_pic_addr_const): Print TLS unspecs.
22995         (prepare_pic_move): New function, replaces emit_pic_move.
22996         (arc_legitimate_constant_p): Handle TLS unspecs.
22997         (arc_legitimate_address_p): Likewise.
22998         (arc_rewrite_small_data_p): Use assert for TLS constants.
22999         (prepare_move_operands): Use prepare_pic_move.
23000         (arc_legitimize_address): Legitimize tls addresses.
23001         (arc_epilogue_uses): Check for arc_tp_regno.
23002         (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
23003         * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
23004         Define.
23005         [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
23006         Likewise.
23007         [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
23008         %(arc_tls_extra_start_spec).
23009         (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
23010         (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
23011         (EH_USES): Define.
23012         (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
23013         * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
23014         (UNSPEC_TLS_OFF): Add.
23015         (R10_REG): Define.
23016         (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
23017         (get_thread_pointersi): New patterns.
23018         * config/arc/arc.opt (mtp-regno): New option.
23019         * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
23020         (move_dest_operand): Likewise.
23021         * configure: Regenerate.
23022         * configure.ac: Add arc*-*-* case to test for tls.
23023         * doc/invoke.texi (ARC options): Document mtp-regno.
23025 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
23027         * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
23028         the new ARC HS SIMD instructions.
23029         (arc_preferred_simd_mode): New function.
23030         (arc_autovectorize_vector_sizes): Likewise.
23031         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
23032         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
23033         (arc_init_reg_tables): Accept new ARC HS SIMD modes.
23034         (arc_init_builtins): Add new SIMD builtin types.
23035         (arc_split_move): Handle 64 bit vector moves.
23036         * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
23037         (TARGET_PLUS_QMACW): Define.
23038         * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
23039         (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
23040         (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
23041         (VSUBADD4H): New builtins.
23042         * config/arc/simdext.md: Add new ARC HS SIMD instructions.
23043         * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
23045 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
23046             Matthias Klose  <doko@debian.org>
23048         * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
23050 2016-04-28  Richard Biener  <rguenther@suse.de>
23052         PR middle-end/70777
23053         * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
23054         canonicalization.
23056 2016-04-28  Oleg Endo  <olegendo@gcc.gnu.org>
23058         * common/config/sh/sh-common.c: Remove SH5 support.
23059         * config/sh/constraints.md: Likewise.
23060         * config/sh/config/sh/elf.h: Likewise.
23061         * config/sh/linux.h: Likewise.
23062         * config/sh/netbsd-elf.h: Likewise.
23063         * config/sh/predicates.md: Likewise.
23064         * config/sh/sh-c.c: Likewise.
23065         * config/sh/sh-protos.h: Likewise.
23066         * config/sh/sh.c: Likewise.
23067         * config/sh/sh.h: Likewise.
23068         * config/sh/sh.md: Likewise.
23069         * config/sh/sh.opt: Likewise.
23070         * config/sh/sync.md: Likewise.
23071         * config/sh/sh64.h: Delete.
23072         * config/sh/shmedia.h: Likewise.
23073         * config/sh/shmedia.md: Likewise.
23074         * config/sh/sshmedia.h: Likewise.
23075         * config/sh/t-netbsd-sh5-64: Likewise.
23076         * config/sh/t-sh64: Likewise.
23077         * config/sh/ushmedia.h: Likewise.
23079 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
23081         * config/i386/i386.md (sign_extend to memory peephole2s): Use
23082         general_reg_operand instead of register_operand predicate.
23084 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
23086         * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
23088 2016-04-27  Marc Glisse  <marc.glisse@inria.fr>
23090         * match.pd (A - B > A, A + B < A): New transformations.
23092 2016-04-27  Patrick Palka  <ppalka@gcc.gnu.org>
23094         * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
23095         which defaults to true.  Emit an outer pair of parentheses only if
23096         EMIT_PARENS.  When continuing a chain of && or || (or & or |),
23097         don't emit parentheses for the right-hand operand.
23099 2016-04-27  Jeff Law  <law@redhat.com>
23101         * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
23103 2016-04-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23105         * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
23106         (altivec_lvx_<mode>_internal): Document.
23107         (altivec_lvx_<mode>_2op): New define_insn.
23108         (altivec_lvx_<mode>_1op): Likewise.
23109         (altivec_lvx_<mode>_2op_si): Likewise.
23110         (altivec_lvx_<mode>_1op_si): Likewise.
23111         (altivec_stvx_<mode>): Remove.
23112         (altivec_stvx_<mode>_internal): Document.
23113         (altivec_stvx_<mode>_2op): New define_insn.
23114         (altivec_stvx_<mode>_1op): Likewise.
23115         (altivec_stvx_<mode>_2op_si): Likewise.
23116         (altivec_stvx_<mode>_1op_si): Likewise.
23117         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
23118         Expand vec_ld and vec_st during parsing.
23119         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
23120         changes.
23121         (altivec_expand_stvx_be): Likewise.
23122         (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
23123         address-masking behavior in RTL.
23124         (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
23125         address-masking behavior in RTL.
23126         (altivec_expand_builtin): Change builtin code arguments for calls
23127         to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
23128         (insn_is_swappable_p): Avoid incorrect swap optimization in the
23129         presence of lvx/stvx patterns.
23130         (alignment_with_canonical_addr): New function.
23131         (alignment_mask): Likewise.
23132         (find_alignment_op): Likewise.
23133         (recombine_lvx_pattern): Likewise.
23134         (recombine_stvx_pattern): Likewise.
23135         (recombine_lvx_stvx_patterns): Likewise.
23136         (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
23137         stvx patterns from expand.
23138         * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
23139         expansions.
23140         (vector_altivec_store_<mode>): Likewise.
23142 2016-04-26  Evandro Menezes  <e.menezes@samsung.com>
23144         * config/aarch64/aarch64.md
23145         (*movhf_aarch64): Add "movi %0, #0" to zero up register and
23146         remove the "fp" attributes.
23147         (*movsf_aarch64): Add "movi %0, #0" to zero up register and
23148         add the "simd" attributes.
23149         (*movdf_aarch64): Likewise.
23150         (*movtf_aarch64): Remove the "fp" attributes.
23151         * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
23152         * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
23154 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
23156         * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
23157         rtx to rtx_code_label *.
23158         * rtl.h (maybe_set_first_label_num): Likewise.
23160 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
23162         * df-core.c (df_add_problem): Make the problem param be const.
23163         (df_remove_problem): Make local "problem" be const.
23164         * df-problems.c (problem_RD): Make const.
23165         (problem_LR): Likewise.
23166         (problem_LIVE): Likewise.
23167         (problem_MIR): Likewise.
23168         (problem_CHAIN): Likewise.
23169         (problem_WORD_LR): Likewise.
23170         (problem_NOTE): Likewise.
23171         (problem_MD): Likewise.
23172         * df-scan.c (problem_SCAN): Likewise.
23173         * df.h (struct df_problem): Make field "dependent_problem" be
23174         const.
23175         (struct dataflow): Likewise for field "problem".
23176         (df_add_problem): Make param const.
23178 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
23180         * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
23181         inter-unit moves to/from vector registers are enabled.  Do not disable
23182         for TARGET_MMX.
23184 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
23186         * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
23187         DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
23188         #define to...
23189         (enum df_problem_id): ...this new enum.
23190         (struct df_problem): Convert field "id" from "int" to
23191         enum df_problem_id.
23193 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
23195         * rtl.def: Update comment for "things in the instruction chain" to
23196         reflect the removal of the leading "i" field for INSN_UID in
23197         r210360.  Fix bogus apostrophe.
23199 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
23201         * config/i386/i386.md
23202         (lea arith with mem operand + setcc peephole2): Set operator mode.
23204 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
23206         PR target/70155
23207         * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
23208         (dimode_scalar_to_vector_candidate_p): This.
23209         (timode_scalar_to_vector_candidate_p): New function.
23210         (scalar_to_vector_candidate_p): Likewise.
23211         (timode_check_non_convertible_regs): Likewise.
23212         (timode_remove_non_convertible_regs): Likewise.
23213         (remove_non_convertible_regs): Likewise.
23214         (remove_non_convertible_regs): Renamed to ...
23215         (dimode_remove_non_convertible_regs): This.
23216         (scalar_chain::~scalar_chain): Make it virtual.
23217         (scalar_chain::compute_convert_gain): Make it pure virtual.
23218         (scalar_chain::mark_dual_mode_def): Likewise.
23219         (scalar_chain::convert_insn): Likewise.
23220         (scalar_chain::convert_registers): Likewise.
23221         (scalar_chain::add_to_queue): Make it protected.
23222         (scalar_chain::emit_conversion_insns): Likewise.
23223         (scalar_chain::replace_with_subreg): Likewise.
23224         (scalar_chain::replace_with_subreg_in_insn): Likewise.
23225         (scalar_chain::convert_op): Likewise.
23226         (scalar_chain::convert_reg): Likewise.
23227         (scalar_chain::make_vector_copies): Likewise.
23228         (scalar_chain::convert_registers): New pure virtual function.
23229         (class dimode_scalar_chain): New class.
23230         (class timode_scalar_chain): Likewise.
23231         (scalar_chain::mark_dual_mode_def): Renamed to ...
23232         (dimode_scalar_chain::mark_dual_mode_def): This.
23233         (timode_scalar_chain::mark_dual_mode_def): New function.
23234         (timode_scalar_chain::convert_insn): Likewise.
23235         (dimode_scalar_chain::convert_registers): Likewise.
23236         (scalar_chain::compute_convert_gain): Renamed to ...
23237         (dimode_scalar_chain::compute_convert_gain): This.
23238         (scalar_chain::replace_with_subreg): Renamed to ...
23239         (dimode_scalar_chain::replace_with_subreg): This.
23240         (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
23241         (dimode_scalar_chain::replace_with_subreg_in_insn): This.
23242         (scalar_chain::make_vector_copies): Renamed to ...
23243         (dimode_scalar_chain::make_vector_copies): This.
23244         (scalar_chain::convert_reg): Renamed to ...
23245         (dimode_scalar_chain::convert_reg ): This.
23246         (scalar_chain::convert_op): Renamed to ...
23247         (dimode_scalar_chain::convert_op): This.
23248         (scalar_chain::convert_insn): Renamed to ...
23249         (dimode_scalar_chain::convert_insn): This.
23250         (scalar_chain::convert): Call convert_registers.
23251         (convert_scalars_to_vector): Change to scalar_chain pointer to
23252         use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
23253         in 32-bit mode.  Delete scalar_chain pointer.  Call
23254         free_dominance_info in 64-bit mode.
23255         (pass_stv::gate): Remove TARGET_64BIT check.
23256         (ix86_option_override): Put the 64-bit STV pass before the CSE
23257         pass.
23259 2016-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
23261         * dwarf2out.h (struct dw_loc_descr_node): Remove the
23262         dw_loc_frame_offset field.
23263         * dwarf2out.c (new_loc_descr): Likewise.
23264         (resolve_args_picking_1): Turn the VISITED hash set into a
23265         FRAME_OFFSET hash map. Use it to associate a frame offset to
23266         visited nodes. Remove uses of the CHECKING_P macro.
23267         (resolve_args_picking): Update call to resolve_args_picking_1.
23269 2016-04-27  Martin Liska  <mliska@suse.cz>
23271         * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
23272         (free_loop_data): Release vuses of groups.
23274 2016-04-27  Bin Cheng  <bin.cheng@arm.com>
23276         * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
23277         instead of redundant use_id and boolean have_use_for.
23278         (struct iv_use): Change sub_id into group_id.  Remove field next.
23279         Move fields: related_cands, n_map_members, cost_map and selected
23280         to ...
23281         (struct iv_group): ... here.  New structure.
23282         (struct iv_common_cand): Use structure declaration directly.
23283         (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
23284         (MAX_CONSIDERED_USES): Rename macro to ...
23285         (MAX_CONSIDERED_GROUPS): ... here.
23286         (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
23287         (dump_iv, dump_use, dump_cand): Refactor format of dump information.
23288         (dump_uses): Rename to ...
23289         (dump_groups): ... here.  Update all uses.
23290         (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
23291         (find_induction_variables): Refactor format of dump information.
23292         (record_sub_use): Delete.
23293         (record_use): Update all uses.
23294         (record_group): New function.
23295         (record_group_use, find_interesting_uses_op): Call above functions.
23296         Update all uses.
23297         (find_interesting_uses_cond): Ditto.
23298         (group_compare_offset): New function.
23299         (split_all_small_groups): Rename to ...
23300         (split_small_address_groups_p): ... here.  Update all uses.
23301         (split_address_groups):  Update all uses.
23302         (find_interesting_uses): Refactor format of dump information.
23303         (add_candidate_1): Update all uses.  Remove redundant check on iv,
23304         base and step.
23305         (add_candidate, record_common_cand): Remove redundant assert.
23306         (add_iv_candidate_for_biv): Update use.
23307         (add_iv_candidate_derived_from_uses): Update all uses.
23308         (add_iv_candidate_for_groups, record_important_candidates): Ditto.
23309         (alloc_use_cost_map): Ditto.
23310         (set_use_iv_cost, get_use_iv_cost): Rename to ...
23311         (set_group_iv_cost, get_group_iv_cost): ... here.  Update all uses.
23312         (determine_use_iv_cost_generic): Ditto.
23313         (determine_group_iv_cost_generic): Ditto.
23314         (determine_use_iv_cost_address): Ditto.
23315         (determine_group_iv_cost_address): Ditto.
23316         (determine_use_iv_cost_condition): Ditto.
23317         (determine_group_iv_cost_cond): Ditto.
23318         (determine_use_iv_cost): Ditto.
23319         (determine_group_iv_cost): Ditto.
23320         (set_autoinc_for_original_candidates): Update all uses.
23321         (find_iv_candidates): Update all uses.  Refactor dump information.
23322         (determine_use_iv_costs): Ditto.
23323         (determine_iv_costs): Ditto.
23324         (iv_ca_cand_for_use): Rename to ...
23325         (iv_ca_cand_for_group): ... here.  Update all uses.
23326         (iv_ca_add_use, iv_ca_add_group): Ditto.
23327         (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
23328         (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
23329         (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
23330         (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
23331         (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
23332         (create_new_iv, adjust_iv_update_pos): Ditto.
23333         (rewrite_use_address): Delete.
23334         (rewrite_use_address_1): Rename to ...
23335         (rewrite_use_address): ... here.
23336         (rewrite_use_compare): Update all uses.
23337         (rewrite_use): Delete.
23338         (rewrite_uses): Rename to ...
23339         (rewrite_groups): ... here.  Update all uses.
23340         (remove_unused_ivs, free_loop_data): Update all uses.
23341         (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
23343 2016-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23345         * rtlanal.c (nonzero_bits1): Convert preprocessor check
23346         for WORD_REGISTER_OPERATIONS to runtime check.
23348 2016-04-27  Richard Biener  <rguenther@suse.de>
23350         PR ipa/70760
23351         * tree-ssa-structalias.c (find_func_aliases_for_call): Use
23352         aggregate_value_p to determine if a function result is
23353         returned by reference.
23354         (ipa_pta_execute): Functions having their address taken are
23355         not automatically nonlocal.
23357 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
23359         PR sanitizer/70683
23360         * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
23361         * fold-const.c (operand_equal_p): If flag_checking and
23362         OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
23363         and if it returns non-zero, assert iterative_hash_expr on both
23364         args is the same.
23366 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
23368         * doc/invoke.texi (-frename-registers): Also enabled at -Os.
23370 2016-04-27  Nick Clifton  <nickc@redhat.com>
23372         PR middle-end/49889
23373         * varasm.c (merge_weak): Generate an error if an attempt is made
23374         to convert a non-weak static function into a weak, public function.
23376 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
23378         * params.def (MAX_PARTITION_SIZE): New param.
23379         * doc/invoke.texi: Document lto-max-partition.
23381 2016-04-27  Richard Biener  <rguenther@suse.de>
23383         PR ipa/70785
23384         * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
23385         function cummulating used_from_other_partition, externally_visible
23386         and force_output from aliases.
23387         (refered_from_nonlocal_var): Likewise.
23388         (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
23389         node flags properly.
23391 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
23393         * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
23394         (-Wmemset-elt-size): New item.
23396 2016-04-27  Eric Botcazou  <ebotcazou@adacore.com>
23398         PR ada/70759
23399         * stor-layout.h (internal_reference_types): Delete.
23400         * stor-layout.c (reference_types_internal): Likewise.
23401         (internal_reference_types): Likewise.
23402         (layout_type) <REFERENCE_TYPE>: Adjust.
23404 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
23406         PR sanitizer/70683
23407         * tree.h (inchash::add_expr): Add FLAGS argument.
23408         * tree.c (inchash::add_expr): Likewise.  If not OEP_ADDRESS_OF,
23409         use STRIP_NOPS first.  For INTEGER_CST assert not OEP_ADDRESS_OF.
23410         For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
23411         Formatting fix.  Adjust recursive calls.  For tcc_comparison,
23412         if swap_tree_comparison (code) is smaller than code, hash that
23413         and arguments in the other order.  Hash CONVERT_EXPR the same
23414         as NOP_EXPR.  For OEP_ADDRESS_OF hash MEM_REF with 0 offset
23415         of ADDR_EXPR of decl as the decl itself.  Add or remove
23416         OEP_ADDRESS_OF from recursive flags as needed.  For
23417         FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
23418         operands commutatively and only the third one normally.
23419         For internal CALL_EXPR hash in CALL_EXPR_IFN.
23421 2016-04-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
23423         * config/rtems.h (LIB_SPEC): Add -latomic.
23425 2016-04-27  Joel Sherrill  <joel@rtems.org>
23427         * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
23428         xilink.ld and flags not relevant to RTEMS.
23430 2016-04-26  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
23432         * toplev.c (backend_init_target): Avoid calling init_reload when using
23433         LRA.
23435 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
23437         * reorg.c (try_merge_delay_insns): Declare i and j inside the
23438         for loops rather than one for the whole function.
23440 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
23442         * match.pd (X + CST CMP X): New transformation.
23444 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
23446         * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
23447         * fold-const.c (fold_binary_loc): Remove 2 transformations
23448         superseded by match.pd.
23449         * match.pd (x+x -> x*2): Generalize to integers.
23451 2016-04-26  Bernd Schmidt  <bschmidt@redhat.com>
23453         * config/i386/i386.md (operation on memory peephole): Duplicate an
23454         existing peephole and adapt it to match lea rather than an operation
23455         that clobbers CC.
23457         PR rtl-optimization/57193
23458         * opts.c (default_options_table): Add OPT_frename_registers at -O2
23459         and above.
23460         * doc/invoke.texi (-frename-registers, -O2): Update documentation.
23462 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
23464         * tree-if-conv.c (any_pred_load_store): New static variable.
23465         (if_convertible_gimple_assign_stmt_p): Remove parameter.  Use
23466         any_pred_load_store instead of and_mask_load_store.
23467         (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
23468         (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
23469         (combine_blocks, tree_if_conversion): Ditto.
23471 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
23473         PR tree-optimization/70771
23474         PR tree-optimization/70775
23475         * tree-if-conv.c (if_convertible_phi_p): Remove check on special
23476         virtual PHI nodes.  Delete parameter.
23477         (if_convertible_loop_p_1): Delete argument to above function.
23478         (predicate_all_scalar_phis): Delete code handling single-argument
23479         PHIs.
23480         (tree_if_conversion): Mark and update virtual SSA.
23482 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23484         PR target/61821
23485         * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
23486         (x86_elf_aligned_common): Rename to ...
23487         (x86_elf_aligned_decl_common): ... this.
23488         Add decl arg.  Switch to .lbss for largecomm object.  Use
23489         LARGECOMM_SECTION_ASM_OP.
23490         * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
23491         renaming.
23492         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
23493         (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
23494         Pass new decl arg.
23495         * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
23496         [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
23498 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23500         PR target/59407
23501         * config/i386/i386.c (SECTION_LARGE): Define.
23502         (x86_64_elf_select_section): Set it for large data/bss sections.
23503         Only clear SECTION_WRITE for .lrodata.
23504         (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
23505         data/bss sections.
23506         * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
23507         * varasm.c (default_elf_asm_named_section): Grow flagchars.
23508         [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
23509         SECTION_MACH_DEP.
23510         * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
23511         * doc/tm.texi: Regenerate.
23513 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
23515         PR bootstrap/70704
23516         * configure.ac (--enable-checking): Document extra flag, for
23517         non-release builds default to --enable-checking=yes,extra.
23518         If misc checking and extra checking, define CHECKING_P to 2 instead
23519         of 1.
23520         * common.opt (fchecking=): Add.
23521         * doc/invoke.texi (-fchecking=): Document.
23522         * doc/install.texi: Document --enable-checking changes.
23523         * configure: Regenerated.
23524         * config.in: Regenerated.
23526 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
23528         * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
23529         attribute instead of which_alternative.
23530         * config/i386/sse.md (*mov<mode>_internal): Ditto.
23531         Use EXT_REX_SSE_REG_P where appropriate.
23533 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
23535         * config/i386/predicates.md (const0_operand): Do not match
23536         const_wide_int code.
23537         (const1_operand): Ditto.
23539 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
23541         * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
23542         for SSE constm1 operands and TARGET_AVX512VL.
23543         (*movti_internal): Ditto.
23544         (*mov<mode>_or): Use constm1_operand predicate.
23545         * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
23546         for SSE vector_all_ones operands and TARGET_AVX512VL.
23547         * config/i386/predicates.md (constm1_operand): New predicate.
23548         * config/i386/i386.c (standard_sse_constant_opcode): Simplify
23549         emission of constant -1 load.
23551 2016-04-25  Jason Merrill  <jason@redhat.com>
23553         * gdbinit.in: Skip is-a.h.
23555         * attribs.c (register_scoped_attributes): Fix logic.
23556         * attribs.h: Declare register_scoped_attributes.
23558 2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23560         * config/rs6000/rs6000-builtin.def: Correct pasto error for
23561         stxvd2x and stxvw4x built-in functions.
23563 2016-04-25  DJ Delorie  <dj@redhat.com>
23565         * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
23566         (ashrhi3): Likewise.
23567         (lshrhi3): Likewise.
23569 2016-04-25  Richard Biener  <rguenther@suse.de>
23571         PR tree-optimization/70780
23572         * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
23573         wasn't visited yet.
23574         (compute_antic): Mark blocks with abnormal preds as visited as
23575         they have a final empty antic-in solution already.
23577 2016-04-25  Michael Collison  <michael.collison@linaro.org>
23579         * ChangeLog(2016-04-25): Fix ChangeLog formatting.
23581 2016-04-25  Michael Collison  <michael.collison@linaro.org>
23583         * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
23584         mode is VQI to improve mixed mode vectorization.
23585         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
23586         define_insn to match low half of signed vaddw.
23587         * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
23588         define_insn to match high half of signed vaddw.
23589         * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
23590         define_insn to match low half of unsigned vaddw.
23591         * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
23592         define_insn to match high half of unsigned vaddw.
23593         * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
23594         (arm_simd_check_vect_par_cnst_half_p): Likewise.
23595         * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
23596         for new function.
23597         (arm_simd_check_vect_par_cnst_half_p): Likewise.
23598         * config/arm/predicates.md (vect_par_constant_high): Support
23599         big endian and simplify by calling
23600         arm_simd_check_vect_par_cnst_half
23601         (vect_par_constant_low): Likewise.
23603 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
23605         * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
23606         predicate for operand 2.
23608 2016-04-24  Uros Bizjak  <ubizjak@gmail.com>
23609             H.J. Lu  <hongjiu.lu@intel.com>
23611         * config/i386/i386-protos.h (standard_sse_constant_p): Add
23612         machine_mode argument.
23613         * config/i386/i386.c (standard_sse_constant_p): Return 2 for
23614         constm1_rtx operands.  For VOIDmode constants, get mode from
23615         pred_mode.  Check mode size if the mode is supported by ABI.
23616         (standard_sse_constant_opcode): Do not use standard_constant_p.
23617         Strictly check ABI support for all-ones operands.
23618         (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
23619         immediates. Update calls to standard_sse_constant_p.
23620         (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
23621         (ix86_rtx_costs): Ditto.
23622         * config/i386/i386.md (*movxi_internal_avx512f): Use
23623         nonimmediate_or_sse_const_operand instead of vector_move_operand.
23624         Use (v,BC) alternative instead of (v,C). Use register_operand
23625         checks instead of MEM_P.
23626         (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
23627         of vector_move_operand.  Add (v,BC) alternative and corresponding avx2
23628         isa attribute.  Use register_operand checks instead of MEM_P.
23629         (*movti_internal): Use nonimmediate_or_sse_const_operand for
23630         TARGET_SSE.  Improve TARGET_SSE insn constraint.  Add (v,BC)
23631         alternative and corresponding sse2 isa attribute.
23632         (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
23633         to standard_sse_constant_p.
23634         (FP constant splitters): Ditto.
23635         * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
23636         (C): Ditto.
23637         * config/i386/predicates.md (constm1_operand): Remove.
23638         (nonimmediate_or_sse_const_operand): Rewrite using RTX.
23639         * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
23640         vector_all_ones_operand instead of constm1_operand.
23642 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23644         * print-rtl.c (print_rtx_insn_vec): New function.
23645         * print-rtl.h: New prototype.
23646         * store-motion.c (struct st_expr): Make avail_stores a vector.
23647         (st_expr_entry): Adjust.
23648         (free_st_expr_entry): Likewise.
23649         (print_store_motion_mems): Likewise.
23650         (find_moveable_store): Likewise.
23651         (compute_store_table): Likewise.
23652         (delete_store): Likewise.
23653         (build_store_vectors): Likewise.
23655 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23657         * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
23659 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23661         * vec.h (vec_safe_contains): New function.
23662         (vec::contains): Likewise.
23663         (vec::begin): Likewise.
23664         (vec::end): Likewise.
23666 2016-04-23  Jakub Jelinek  <jakub@redhat.com>
23668         PR sanitizer/70712
23669         * cfgexpand.c (expand_stack_vars): Fix typo.
23671 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23673         * system.h (list, map, set, vector): Include conditionally.
23674         * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
23675         * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
23676         * ipa-icf.c (INCLUDE_LIST): Define.
23677         * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
23678         * config/sh/sh.c (INCLUDE_VECTOR): Define.
23679         * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
23680         (INCLUDE_LIST, INCLUDE_VECTOR): Define.
23681         * cp/logic.cc (INCLUDE_LIST): Define.
23682         * fortran/trans-common.c (INCLUDE_MAP): Define.
23684 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23686         * auto-profile.c: Remove <string.h> include.
23687         * ipa-icf-gimple.c: Remove <list> include.
23688         * diagnostic.c: Remove <new> include.
23689         * genmatch.c: Likewise.
23690         * pretty-print.c: Likewise.
23691         * toplev.c: Likewise
23692         * c/c-objc-common.c: Likewise.
23693         * cp/error.c: Likewise.
23694         * fortran/error.c: Likewise.
23696 2016-04-22  Richard Biener  <rguenther@suse.de>
23698         * lto-streamer-in.c (input_ssa_names): Do not allocate
23699         GIMPLE_NOP for all SSA names.
23700         * lto-streamer-out.c (output_ssa_names): Do not output
23701         SSA names that should have been released.
23703 2016-04-22  Richard Biener  <rguenther@suse.de>
23705         PR tree-optimization/70740
23706         * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
23707         VDEF.
23709 2016-04-21  H.J. Lu  <hongjiu.lu@intel.com>
23711         PR target/70750
23712         * config/i386/predicates.md (call_insn_operand): Replace
23713         sibcall_memory_operand with memory_operand.
23715 2016-04-21  Patrick Palka  <ppalka@gcc.gnu.org>
23717         * tree-vrp.c (register_edge_assert_for_2): Remove redundant
23718         has_single_use() tests.
23719         (register_edge_assert_for_1): Likewise.
23720         (find_assert_locations_1): Check the liveness bitmap instead of
23721         checking has_single_use().
23723 2016-04-21  Kirill Yukhin  <kirill.yukhin@intel.com>
23725         PR target/70728
23726         * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
23727         Extract AVX-512BW constraint from AVX.
23729 2016-04-21  Richard Biener  <rguenther@suse.de>
23731         PR tree-optimization/70725
23732         * tree-if-conv.c (if_convertible_phi_p): Adjust guard
23733         for phi_convertible_by_degenerating_args.
23734         (predicate_all_scalar_phis): Handle single-argument PHIs.
23736 2016-04-21  Richard Biener  <rguenther@suse.de>
23738         PR middle-end/70747
23739         * fold-const.c (fold_comparison): Return properly typed
23740         constant boolean.
23742 2016-04-21  Bin Cheng  <bin.cheng@arm.com>
23744         PR tree-optimization/70715
23745         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
23746         after expanding BASE using expand_simple_operations.
23748 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
23750         * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
23751         New transformations.
23753 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
23755         * match.pd (min(int_max, x), max(int_min, x)): New transformations.
23757 2016-04-20  Jan Hubicka  <jh@suse.cz>
23759         * ipa-inline.c (can_inline_edge_p): Pass caller info to
23760         ultiimate_alias_target.
23761         (update_callee_keys): Likewise.
23762         (lookup_recursive_calls): Likewise.
23763         (speculation_useful_p): Likewise.
23765 2016-04-20  Jan Hubicka  <jh@suse.cz>
23767         PR ipa/70018
23768         * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
23769         (set_nothrow_flag_1): ... this; handle interposition correctly;
23770         recurse on aliases and thunks.
23771         (cgraph_node::set_nothrow_flag): New.
23772         * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
23773         functions compiled with non-call exceptions that binds to current
23774         def.
23775         (propagate_nothrow): Be safe WRT interposition.
23776         * cgraph.h (set_nothrow_flag): Update prototype.
23778 2016-04-18  Jan Hubicka  <jh@suse.cz>
23780         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
23781         max_loop_iterations_int.
23782         (tree_unswitch_outer_loop): Likewise.
23784 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
23786         PR tree-optimization/69489
23787         * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
23788         (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
23789         Revise dump message.
23790         (if_convertible_bb_p): Remove check on edge count of basic block's
23791         predecessors.
23793 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
23795         PR tree-optimization/56625
23796         PR tree-optimization/69489
23797         * tree-data-ref.h (DR_INNERMOST): New macro.
23798         * tree-if-conv.c (innermost_loop_behavior_hash): New class for
23799         hashing struct innermost_loop_behavior.
23800         (ref_DR_map): Remove.
23801         (innermost_DR_map): New map.
23802         (baseref_DR_map): Revise comment.
23803         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
23804         to innermost_DR_map accroding to its innermost loop behavior.
23805         (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
23806         to its innermost loop behavior.
23807         (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
23808         Add initialization for innermost_DR_map.  Record memory reference
23809         in DR_BASE_ADDRESS if the reference is compound one or it doesn't
23810         have innermost loop behavior.
23811         (if_convertible_loop_p): Remove release for ref_DR_map.  Release
23812         innermost_DR_map.
23814 2016-04-20  Uros Bizjak  <ubizjak@gmail.com>
23816         * config/i386/i386.md (*lea<mode>_general_1): Rename from
23817         *lea_general_1.  Use explicit SWI12 mode interator.
23818         (*lea<mode>_general_2): Rename from *lea_general_2.
23819         Use explicit SWI12 mode interator.
23820         (*lea<mode>_general_3): Rename from *lea_general_3.
23821         Use explicit SWI12 mode interator.
23822         (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
23823         Use explicit SWI12 mode interator.
23824         (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
23825         Use explicit SWI48 mode interator.
23827 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
23829         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
23830         Short-cut unaligned load and store cases.  Handle all integer
23831         vector modes.
23832         (ix86_expand_vector_move_misalign): Short-cut unaligned load
23833         and store cases.  Call ix86_avx256_split_vector_move_misalign
23834         directly without checking mode class.
23836 2016-04-20  Andrew Pinski  <apinski@cavium.com>
23837             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23839         PR target/64971
23840         * config/aarch64/aarch64.md (sibcall): Force call
23841         address to be DImode for ILP32.
23842         (sibcall_value): Likewise.
23844 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
23846         * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
23848 2016-04-20  Richard Biener  <rguenther@suse.de>
23850         * gimple-match.h (maybe_build_generic_op): Adjust prototype.
23851         * gimple-match-head.c (maybe_build_generic_op): Pass all ops
23852         by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
23853         (maybe_push_res_to_seq): Adjust.
23854         * gimple-fold.c (maybe_build_generic_op): Likewise.
23856 2016-04-20  Marek Polacek  <polacek@redhat.com>
23858         * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
23859         rather than true.
23861 2016-04-20  Ilya Enkovich  <ilya.enkovich@intel.com>
23863         * config/i386/sse.md (vec_unpacks_lo_hi): Always
23864         use kmovw to support AVX512F target.
23866 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
23868         * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
23870 2016-04-20  Marek Polacek  <polacek@redhat.com>
23872         PR tree-optimization/70725
23873         * tree-if-conv.c (is_false_predicate): New function.
23874         (predicate_mem_writes): Use it.
23876 2016-04-20  Richard Biener  <rguenther@suse.de>
23878         PR tree-optimization/70726
23879         * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
23880         shift amounts from a pattern stmt operand.
23882 2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23884         PR target/70674
23885         * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
23886         stack_restore_from_fpr pattern when restoring r15.
23887         (s390_optimize_prologue): Strip away the memory barrier in the
23888         parallel when trying to get rid of restore insns.
23889         * config/s390/s390.md ("stack_restore_from_fpr"): New insn
23890         definition for loading the stack pointer from an FPR.  Compared to
23891         the normal move insn this pattern includes a full memory barrier.
23893 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
23895         PR middle-end/70680
23896         * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
23897         implicitly linear or lastprivate iterator on the outer context.
23899 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
23901         * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
23902         alignment check.
23903         * config/i386/i386.md (ssememalign): Removed.
23904         * config/i386/sse.md: Remove ssememalign attribute from patterns.
23906 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
23908         PR target/69201
23909         * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
23910         const short * to __builtin_ia32_loaddquhi512_mask.
23911         (_mm512_maskz_loadu_epi16): Likewise.
23912         (_mm512_mask_storeu_epi16): Pass short * to
23913         __builtin_ia32_storedquhi512_mask.
23914         (_mm512_mask_loadu_epi8): Pass const char * to
23915         __builtin_ia32_loaddquqi512_mask.
23916         (_mm512_maskz_loadu_epi8): Likewise.
23917         (_mm512_mask_storeu_epi8): Pass char * to
23918         __builtin_ia32_storedquqi512_mask.
23919         * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
23920         const double * to __builtin_ia32_loadupd512_mask.
23921         (_mm512_mask_loadu_pd): Likewise.
23922         (_mm512_maskz_loadu_pd): Likewise.
23923         (_mm512_storeu_pd): Pass double * to
23924         __builtin_ia32_storeupd512_mask.
23925         (_mm512_mask_storeu_pd): Likewise.
23926         (_mm512_loadu_ps): Pass const float * to
23927         __builtin_ia32_loadups512_mask.
23928         (_mm512_mask_loadu_ps): Likewise.
23929         (_mm512_maskz_loadu_ps): Likewise.
23930         (_mm512_storeu_ps): Pass float * to
23931         __builtin_ia32_storeups512_mask.
23932         (_mm512_mask_storeu_ps): Likewise.
23933         (_mm512_mask_loadu_epi64): Pass const long long * to
23934         __builtin_ia32_loaddqudi512_mask.
23935         (_mm512_maskz_loadu_epi64): Likewise.
23936         (_mm512_mask_storeu_epi64): Pass long long *
23937         to __builtin_ia32_storedqudi512_mask.
23938         (_mm512_loadu_si512): Pass const int * to
23939         __builtin_ia32_loaddqusi512_mask.
23940         (_mm512_mask_loadu_epi32): Likewise.
23941         (_mm512_maskz_loadu_epi32): Likewise.
23942         (_mm512_storeu_si512): Pass int * to
23943         __builtin_ia32_storedqusi512_mask.
23944         (_mm512_mask_storeu_epi32): Likewise.
23945         * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
23946         char * to __builtin_ia32_storedquqi256_mask.
23947         (_mm_mask_storeu_epi8): Likewise.
23948         (_mm256_mask_loadu_epi16): Pass const short * to
23949         __builtin_ia32_loaddquhi256_mask.
23950         (_mm256_maskz_loadu_epi16): Likewise.
23951         (_mm_mask_loadu_epi16): Pass const short * to
23952         __builtin_ia32_loaddquhi128_mask.
23953         (_mm_maskz_loadu_epi16): Likewise.
23954         (_mm256_mask_loadu_epi8): Pass const char * to
23955         __builtin_ia32_loaddquqi256_mask.
23956         (_mm256_maskz_loadu_epi8): Likewise.
23957         (_mm_mask_loadu_epi8): Pass const char * to
23958         __builtin_ia32_loaddquqi128_mask.
23959         (_mm_maskz_loadu_epi8): Likewise.
23960         (_mm256_mask_storeu_epi16): Pass short * to.
23961         __builtin_ia32_storedquhi256_mask.
23962         (_mm_mask_storeu_epi16): Pass short * to.
23963         __builtin_ia32_storedquhi128_mask.
23964         * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
23965         const double * to __builtin_ia32_loadupd256_mask.
23966         (_mm256_maskz_loadu_pd): Likewise.
23967         (_mm_mask_loadu_pd): Pass onst double * to
23968         __builtin_ia32_loadupd128_mask.
23969         (_mm_maskz_loadu_pd): Likewise.
23970         (_mm256_mask_storeu_pd): Pass double * to
23971         __builtin_ia32_storeupd256_mask.
23972         (_mm_mask_storeu_pd): Pass double * to
23973         __builtin_ia32_storeupd128_mask.
23974         (_mm256_mask_loadu_ps): Pass const float * to
23975         __builtin_ia32_loadups256_mask.
23976         (_mm256_maskz_loadu_ps): Likewise.
23977         (_mm_mask_loadu_ps): Pass const float * to
23978         __builtin_ia32_loadups128_mask.
23979         (_mm_maskz_loadu_ps): Likewise.
23980         (_mm256_mask_storeu_ps): Pass float * to
23981         __builtin_ia32_storeups256_mask.
23982         (_mm_mask_storeu_ps): ass float * to
23983         __builtin_ia32_storeups128_mask.
23984         (_mm256_mask_loadu_epi64): Pass const long long * to
23985         __builtin_ia32_loaddqudi256_mask.
23986         (_mm256_maskz_loadu_epi64): Likewise.
23987         (_mm_mask_loadu_epi64): Pass const long long * to
23988         __builtin_ia32_loaddqudi128_mask.
23989         (_mm_maskz_loadu_epi64): Likewise.
23990         (_mm256_mask_storeu_epi64): Pass long long * to
23991         __builtin_ia32_storedqudi256_mask.
23992         (_mm_mask_storeu_epi64): Pass long long * to
23993         __builtin_ia32_storedqudi128_mask.
23994         (_mm256_mask_loadu_epi32): Pass const int * to
23995         __builtin_ia32_loaddqusi256_mask.
23996         (_mm256_maskz_loadu_epi32): Likewise.
23997         (_mm_mask_loadu_epi32): Pass const int * to
23998         __builtin_ia32_loaddqusi128_mask.
23999         (_mm_maskz_loadu_epi32): Likewise.
24000         (_mm256_mask_storeu_epi32): Pass int * to
24001         __builtin_ia32_storedqusi256_mask.
24002         (_mm_mask_storeu_epi32): Pass int * to
24003         __builtin_ia32_storedqusi128_mask.
24004         * config/i386/i386-builtin-types.def (PCSHORT): New.
24005         (PINT64): Likewise.
24006         (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
24007         (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
24008         (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
24009         (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
24010         (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
24011         (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
24012         (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
24013         (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
24014         (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
24015         (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
24016         (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
24017         (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
24018         (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
24019         (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
24020         (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
24021         (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
24022         (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
24023         (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
24024         (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
24025         (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
24026         (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
24027         (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
24028         (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
24029         (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
24030         (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
24031         (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
24032         (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
24033         (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
24034         (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
24035         (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
24036         (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
24037         (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
24038         (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
24039         (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
24040         (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
24041         (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
24042         (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
24043         (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
24044         (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
24045         (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
24046         (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
24047         (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
24048         (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
24049         (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
24050         (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
24051         (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
24052         (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
24053         (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
24054         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
24055         use UNSPEC_STOREU.
24056         (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
24057         (ix86_avx256_split_vector_move_misalign): Don't use unaligned
24058         load nor store.
24059         (ix86_expand_vector_move_misalign): Likewise.
24060         (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
24061         to scalar function prototype for unaligned load/store builtins.
24062         (ix86_expand_special_args_builtin): Updated.
24063         * config/i386/sse.md (UNSPEC_LOADU): Removed.
24064         (UNSPEC_STOREU): Likewise.
24065         (VI_ULOADSTORE_BW_AVX512VL): Likewise.
24066         (VI_ULOADSTORE_F_AVX512VL): Likewise.
24067         (ssescalarsize): Handle V4TI, V2TI and V1TI.
24068         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
24069         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
24070         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
24071         (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
24072         (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
24073         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
24074         (sse2_avx_avx512f>_storedqu<mode>): Likewise.
24075         (<avx512>_storedqu<mode>_mask): Likewise.
24076         (*sse4_2_pcmpestr_unaligned): Likewise.
24077         (*sse4_2_pcmpistr_unaligned): Likewise.
24078         (*mov<mode>_internal): Renamed to ...
24079         (mov<mode>_internal): This.  Remove check of AVX and IAMCU on
24080         misaligned operand.  Replace vmovdqu64 with vmovdqu<ssescalarsize>.
24081         (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
24082         (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
24084 2016-04-19  Richard Biener  <rguenther@suse.de>
24086         PR tree-optimization/70171
24087         * tree-ssa-phiprop.c: Include stor-layout.h.
24088         (phiprop_insert_phi): Handle the aggregate copy case.
24089         (propagate_with_phi): Likewise.
24091 2016-04-19  Uros Bizjak  <ubizjak@gmail.com>
24093         * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
24094         instead of simplify_gen_subreg (... , 0).
24095         (ix86_delegitimize_address): Ditto.
24096         (ix86_split_divmod): Ditto.
24097         (ix86_split_copysign_const): Ditto.
24098         (ix86_split_copysign_var): Ditto.
24099         (ix86_expand_args_builtin): Ditto.
24100         (ix86_expand_round_builtin): Ditto.
24101         (ix86_expand_special_args_builtin): Ditto.
24102         * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
24103         (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
24104         (udivmodqi4): Ditto.
24105         (absneg splitters): Ditto.
24106         (*jcc_bt<mode>_1): Ditto.
24108 2016-04-19  Richard Biener  <rguenther@suse.de>
24110         PR tree-optimization/70724
24111         * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
24112         restoring out from ...
24113         (free_scc_vn): ... here.
24114         * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
24115         * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
24116         tail merging.
24117         (pass_fre::execute): Restore SSA info.
24119 2016-04-19  Richard Biener  <rguenther@suse.de>
24121         * gimple-walk.h (struct walk_stmt_info): Add stmt member.
24122         * gimple-walk.c (walk_gimple_op): Initialize it.
24123         (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
24124         * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
24125         remapping SSA names of defs.
24126         (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
24127         adjustment.
24129 2016-04-18  Vladimir Makarov  <vmakarov@redhat.com>
24131         PR middle-end/70689
24132         * lra-constraints.c (equiv_substition_p): New.
24133         (process_alt_operands): Use it.
24134         (swap_operands): Swap it.
24135         (curr_insn_transform): Update it.
24137 2016-04-18  Michael Matz  <matz@suse.de>
24139         * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
24140         (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
24141         * tree-core.h (tree_type_common.align): Use bit-field.
24142         (tree_type_common.spare): New.
24143         (tree_decl_common.off_align): Make smaller.
24144         (tree_decl_common.align): Use bit-field.
24146         * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
24147         * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
24148         (scan_sharing_clauses): Ditto.
24149         (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
24150         (omp_finish_file): Ditto.
24151         * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
24152         (layout_decl): Ditto.
24153         (relayout_decl): Ditto.
24154         (finalize_record_size): Use SET_TYPE_ALIGN.
24155         (finalize_type_size): Ditto.
24156         (finish_builtin_struct): Ditto.
24157         (layout_type): Ditto.
24158         (initialize_sizetypes): Ditto.
24159         * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
24160         * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
24161         (lookup_field_for_decl): Use SET_DECL_ALIGN.
24162         (get_chain_field): Ditto.
24163         (get_trampoline_type): Ditto.
24164         (get_nl_goto_field): Ditto.
24165         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
24166         SET_DECL_ALIGN.
24167         (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
24168         * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
24169         * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
24170         (build_qualified_type): Use SET_TYPE_ALIGN.
24171         (build_aligned_type, build_range_type_1): Ditto.
24172         (build_atomic_base): Ditto.
24173         (build_common_tree_nodes): Ditto.
24174         * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
24175         (expand_one_stack_var_at): Ditto.
24176         * coverage.c (build_var): Use SET_DECL_ALIGN.
24177         * except.c (init_eh): Ditto.
24178         * function.c (assign_parm_setup_block): Ditto.
24179         * symtab.c (increase_alignment_1): Ditto.
24180         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
24181         * tree-vect-stmts.c (ensure_base_align): Ditto.
24182         * varasm.c (align_variable): Ditto.
24183         (assemble_variable): Ditto.
24184         (build_constant_desc): Ditto.
24185         (output_constant_def_contents): Ditto.
24187         * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
24188         * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
24189         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
24190         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
24191         * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
24193 2016-04-18  H.J. Lu  <hongjiu.lu@intel.com>
24195         PR target/70708
24196         * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
24197         replace %vmovsd with "%vmovq".
24198         (vec_concatv2df): Likewise.
24200 2016-04-18  Uros Bizjak  <ubizjak@gmail.com>
24202         * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
24203         (*vec_extractv2si_0): Ditto.
24204         * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
24205         (zero_extended_scalar_load_operand splitters): Ditto.
24206         (vec_extract splitters): Ditto.
24207         (*vec_extractv4si_0_zext): Ditto.
24208         (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
24209         and lowpart_subreg.
24210         (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
24211         (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
24212         (*sse4_1_extractps): Use lowpart_subreg.
24213         * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
24215 2016-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24217         * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
24218         gld requirements.
24219         (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
24220         Mention Solaris 11 packaging changes.
24221         Update gas and gld requirements.
24222         Remove reference to pre-Solaris 10 bug.
24223         (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
24224         systems and bugs.
24225         (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
24226         with cc.
24228 2016-04-17  Jan Hubicka  <jh@suse.cz>
24230         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
24231         max_loop_iterations_int.
24233 2016-04-18  Richard Biener  <rguenther@suse.de>
24235         PR tree-optimization/43434
24236         * tree-ssa-structalias.c (struct vls_data): New.
24237         (visit_loadstore): Handle all pointer-based accesses.
24238         (compute_dependence_clique): Compute a bitmap of restrict tags
24239         assigned bases and pass it to visit_loadstore.
24241 2016-04-18  Matthew Wahab  <matthew.wahab@arm.com>
24243         PR target/70711
24244         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
24245         armv8.1-a and armv8.1-a+crc.
24247 2016-04-18  Richard Biener  <rguenther@suse.de>
24249         PR tree-optimization/70701
24250         * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
24251         references after translating through a memcpy.
24253 2016-04-18  Richard Biener  <rguenther@suse.de>
24255         * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
24256         (compute_antic): ... here.  For partial antic use regular
24257         postorder and scrap iteration.
24258         (compute_partial_antic_aux): Remove unused return value.
24259         (init_pre): Do not allocate postorder.
24260         (fini_pre): Do not free postorder.
24262 2016-04-18  Richard Biener  <rguenther@suse.de>
24264         PR middle-end/37870
24265         * expmed.c (extract_bit_field_1): Remove broken case
24266         using a wider MODE_INT mode.
24268 2016-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
24270         * has-brig.c (lendian16): Don't try to use __builtin_bswap16
24271         unless compiling with at least GCC-4.8.
24273 2016-04-17  Jan Hubicka  <jh@suse.cz>
24275         PR bootstrap/70706
24276         * graphite.c (graphite_finalize): Update call to
24277         tree_estimate_probability.
24278         * predict.h (tree_estimate_probability): Update prototype.
24280 2016-04-17  Jan Hubicka  <jh@suse.cz>
24282         * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
24283         (tree_estimate_probability): Likewise.
24284         (pass_profile::execute): Update.
24285         (report_predictor_hitrates): New function.
24286         * profile.c (compute_branch_probabilities): Use it.
24287         * predict.h (report_predictor_hitrates): Declare.
24289 2016-04-17  Jan Hubicka  <jh@suse.cz>
24291         PR ipa/70018
24292         * cgraph.h (cgraph_node::set_const_flag,
24293         cgraph_node::set_pure_flag): Update prototype to return bool;
24294         update comment.
24295         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
24296         of interposable symbol are interposable, too.
24297         (cgraph_set_const_flag_1): Rename to ...
24298         (set_const_flag_1): ... this one; change to self recursive function
24299         instead of call_for_symbol_thunks_and_aliases. Handle correctly
24300         clearnig the flag in all variants and also virtual thunks of const
24301         functions are pure; track if any change was done.
24302         (cgraph_node::set_const_flag): Update.
24303         (struct set_pure_flag_info): New struct.
24304         (cgraph_set_pure_flag_1): Rename to ...
24305         (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
24306         rather than pointer encoded flags; track if any changes was done;
24307         handle correctly clearning flag and setting flag of aliases already
24308         declared const.
24309         (cgraph_node::set_pure_flag): Update.
24310         (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
24312 2016-04-17  Tom de Vries  <tom@codesourcery.com>
24314         PR other/70433
24315         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
24316         backslash in label.
24318 2016-04-17  Tom de Vries  <tom@codesourcery.com>
24320         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
24321         '{}<> ' as escape-for-record.
24323 2016-04-17  Tom de Vries  <tom@codesourcery.com>
24325         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
24326         structure.
24328 2016-04-17  Tom de Vries  <tom@codesourcery.com>
24330         PR other/70185
24331         * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
24332         * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
24333         * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
24334         * passes.c (finish_optimization_passes): Only call
24335         finish_graph_dump_file if dfi->graph_dump_initialized.
24336         (execute_function_dump, pass_init_dump_file): Use
24337         dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
24339 2016-04-17  Tom de Vries  <tom@codesourcery.com>
24341         PR tree-optimization/70256
24342         * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
24343         (debug_varmap): New function.
24345 2016-04-17  Tom de Vries  <tom@codesourcery.com>
24347         PR other/70183
24348         * passes.c (pass_manager::register_pass): Propagate pflags.
24350 2016-04-17  Tom de Vries  <tom@codesourcery.com>
24352         PR other/68875
24353         * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
24354         * passes.c (pass_manager::pass_manager): Declare and init p_start in
24355         INSERT_PASSES_AFTER.  Add pass parameter to TERMINATE_PASS_LIST, and
24356         check if it's equal to p_start.
24357         * passes.def: Add arguments to TERMINATE_PASS_LISTs.
24359 2016-04-15  Jan Hubicka  <jh@suse.cz>
24361         PR ipa/70018
24362         * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
24363         function does not bind to current def.
24364         * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
24365         handle conservatively calls to functions that does not need to bind
24366         to current def.
24367         (check_call): Update call of worse_state.
24368         (ignore_edge_for_nothrow): Update.
24369         (ignore_edge_for_pure_const): Likewise.
24370         (propagate_pure_const): Update calls to worse_state.
24371         (skip_function_for_local_pure_const): Reformat comments.
24373 2016-04-15  Jan Hubicka  <jh@suse.cz>
24375         PR ipa/70018
24376         * cgraph.c (cgraph_node::get_availability): Add REF parameter.
24377         (cgraph_node::function_symbol): Likewise.
24378         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
24379         * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
24380         (symtab_node::ultimate_alias_target): Add REF parameter.
24381         (symtab_node::binds_to_current_def_p): Declare.
24382         (symtab_node;:ultimate_alias_target_1): Add REF parameter.
24383         (cgraph_node::function_symbol): Likewise.
24384         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
24385         (cgraph_node::get_availability): Likewise.
24386         (cgraph_edge::binds_to_current_def_p): New inline function.
24387         (varpool_node::get_availability): Add REF parameter.
24388         (varpool_node::ultimate_alias_target): Likewise.
24389         * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
24390         (symtab_node::binds_to_current_def_p): Likewise.
24391         * varpool.c (varpool_node::get_availability): Likewise.
24393 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
24395         PR target/70662
24396         * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
24397         Fix mode size check.
24399 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
24401         * BASE-VER: Set to 7.0.0.
24403 2016-04-15  Alexander Monakov  <amonakov@ispras.ru>
24405         * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
24407 2016-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24409         * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
24410         architecture revisions.
24412 2016-04-15  Bernd Schmidt  <bschmidt@redhat.com>
24414         * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
24415         * config/i386/i386.c (ix86_using_red_zone): No longer static.
24416         * config/i386/i386.md (stack decrement to push peepholes): Guard
24417         with !x86_using_red_zone ().
24419 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
24421         PR c++/70675
24422         * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
24423         to dump_generic_node.
24424         (NIY): Pass also flags to do_niy.
24426 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
24428         * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
24429         (simd_clone_vector_of_formal_parm_types)
24430         (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
24431         (simd_clone_mangle, simd_clone_create)
24432         (simd_clone_adjust_return_type, create_tmp_simd_array)
24433         (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
24434         (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
24435         (ipa_simd_modify_function_body, simd_clone_linear_addend)
24436         (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
24437         (pass_data_omp_simd_clone, class pass_omp_simd_clone)
24438         (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
24439         * omp-simd-clone.c: ... this new file.
24440         (simd_clone_vector_of_formal_parm_types): Make it static.
24441         * Makefile.in (OBJS): Add omp-simd-clone.o.
24443 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
24445         PR target/70662
24446         * config/i386/sse.md: Use proper memory operand modifiers.
24449 2016-04-15  Richard Biener  <rguenther@suse.de>
24450         Alan Modra  <amodra@gmail.com>
24452         PR tree-optimization/70130
24453         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
24454         when alignment stays not the same and no not use the realign
24455         scheme then.
24457 2016-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
24459         PR target/70669
24460         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
24461         direct move handlers for KFmode. Change TFmode handlers test from
24462         FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
24464 2016-04-14  Jakub Jelinek  <jakub@redhat.com>
24466         PR c++/70594
24467         * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
24468         * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
24469         (inlined_polymorphic_ctor_dtor_block_p): Use it.
24470         * tree-ssa-live.c (remove_unused_scope_block_p): When
24471         in_ctor_dtor_block, avoid discarding not just BLOCKs with
24472         BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
24473         block_ultimate_origin is FUNCTION_DECL.
24474         (remove_unused_locals): If current_function_decl is
24475         polymorphic_ctor_dtor_p, pass initial true to
24476         remove_unused_scope_block_p' is_ctor_dtor_block.
24478 2016-04-14  Martin Sebor  <msebor@redhat.com>
24480         PR c++/69517
24481         PR c++/70019
24482         PR c++/70588
24483         * doc/extend.texi (Variable Length): Revert.
24485 2016-04-14  Marek Polacek  <polacek@redhat.com>
24486             Jan Hubicka  <hubicka@ucw.cz>
24488         PR c++/70029
24489         * tree.c (verify_type): Disable the canonical type of main variant
24490         check.
24492 2016-04-14  Jason Merrill  <jason@redhat.com>
24494         * cfgexpand.c, expr.c: Revert previous change.
24496 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
24498         PR middle-end/70643
24499         * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
24500         when building a mem ref for the incoming reduction variable.
24502 2016-04-14  Richard Biener  <rguenther@suse.de>
24504         PR tree-optimization/70614
24505         * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
24506         loop if the evolution dropped to chrec_dont_know.
24507         (interpret_condition_phi): Likewise.
24509 2016-04-14  Richard Biener  <rguenther@suse.de>
24511         PR tree-optimization/70623
24512         * tree-ssa-pre.c (changed_blocks): Make global ...
24513         (compute_antic): ... local here.  Move and fix worklist
24514         handling here.  Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
24515         (compute_antic_aux): Add dumping for MAX assumed succs.  Remove
24516         worklist handling, dump when ANTIC_IN changed.
24517         (compute_partial_antic_aux): Remove worklist handling.
24518         (init_pre): Do not compute post dominators.  Add a comment about
24519         the CFG order chosen.
24520         (fini_pre): Do not free post dominators.
24522 2016-04-13  Martin Sebor  <msebor@redhat.com>
24524         PR c++/69517
24525         PR c++/70019
24526         PR c++/70588
24527         * doc/extend.texi (Variable Length): Document C++ specifics.
24529 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
24531         PR c++/70641
24532         * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
24533         on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
24534         eh edges have been purged.
24536         PR c++/70594
24537         * tree-sra.c (create_access_replacement,
24538         get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
24539         gets fancy name.
24540         * tree-pretty-print.c (dump_fancy_name): New function.
24541         (dump_decl_name, dump_generic_node): Use it.
24543 2016-04-13  Jason Merrill  <jason@redhat.com>
24545         * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
24546         * expr.c (expand_expr_real_1): Likewise.
24548 2016-04-13  Ilya Enkovich  <ilya.enkovich@intel.com>
24550         * config/i386/i386.md (kunpckhi): Swap operands.
24551         (kunpcksi): Likewise.
24552         (kunpckdi): Likewise.
24553         * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
24554         (vec_pack_trunc_<mode>): Likewise.
24556 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
24558         PR debug/70628
24559         * explow.c (convert_memory_address_addr_space_1): Formatting fix.
24561         PR middle-end/70633
24562         * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
24563         gimplification turns some element into non-constant.
24565         PR debug/70628
24566         * rtl.h (convert_memory_address_addr_space_1): New prototype.
24567         * explow.c (convert_memory_address_addr_space_1): No longer static,
24568         add NO_EMIT argument and don't call convert_modes if true, pass
24569         it down recursively, remove break after return.
24570         (convert_memory_address_addr_space): Adjust caller.
24571         * simplify-rtx.c (simplify_unary_operation_1): Call
24572         convert_memory_address_addr_space_1 instead of convert_memory_address,
24573         if it returns NULL, don't simplify.
24575 2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
24577         PR target/70630
24578         * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
24580 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
24582         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
24583         Bump the upper SIMDLEN limits, so that if the return type or
24584         characteristic type if the return type is void can be passed in
24585         all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
24586         allowed.
24588 2016-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
24590         PR target/70640
24591         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
24592         Do not use "=" constraint on an input constraint.
24593         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
24594         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
24595         (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
24596         generates (neg (abs ...)) instead of (abs ...).
24598 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
24600         PR rtl-optimization/70596
24601         * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
24602         just invalidate LRA data and reset them.  Adjust dump wording.
24604 2016-04-12  Martin Liska  <mliska@suse.cz>
24606         Revert
24607         2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
24609         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
24610         estimates here.
24611         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
24612         max_loop_iterations_int.
24613         (tree_unswitch_outer_loop): Likewise.
24614         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
24615         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
24617 2016-04-12  Tom de Vries  <tom@codesourcery.com>
24619         PR tree-optimization/68756
24620         * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
24621         instead of new_name.
24623 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
24625         PR tree-optimization/70602
24626         * tree-sra.c (generate_subtree_copies): Don't write anything into
24627         constant pool decls.
24629         * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
24630         regardless whether there are depend clauses or not.
24632 2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
24634         PR target/70381
24635         * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
24636         target attribute and pragma from changing the -mfloat128
24637         and -mfloat128-hardware options.
24639         * doc/extend.texi (Additional Floating Types): Document PowerPC
24640         __float128 restrictions.
24642 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
24644         PR target/70133
24645         * config/aarch64/driver-aarch64.c
24646         (aarch64_get_extension_string_for_isa_flags): New.
24647         (arch_extension): Rename to...
24648         (aarch64_arch_extension): ...This.
24649         (ext_to_feat_string): Rename to...
24650         (aarch64_extensions): ...This.
24651         (aarch64_core_data): Keep track of architecture extension flags.
24652         (cpu_data): Rename to...
24653         (aarch64_cpu_data): ...This.
24654         (aarch64_arch_driver_info): Keep track of architecture extension
24655         flags.
24656         (get_arch_name_from_id): Rename to...
24657         (get_arch_from_id): ...This, change return type.
24658         (host_detect_local_cpu): Update and reformat for renames, handle
24659         extensions through common infrastructure.
24661 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
24663         PR target/70133
24664         * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
24665         track of a canonical flag name.
24666         (all_extensions): Likewise.
24667         (arch_to_arch_name): Also track extension flags enabled by the arch.
24668         (all_architectures): Likewise.
24669         (aarch64_parse_extension): Move to here.
24670         (aarch64_get_extension_string_for_isa_flags): Take a new argument,
24671         rework.
24672         (aarch64_rewrite_selected_cpu): Update for above change.
24673         * config/aarch64/aarch64-option-extensions.def: Rework the way flags
24674         are handled, such that the single explicit value enabled by an
24675         extension is kept seperate from the implicit values it also enables.
24676         * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
24677         to here.
24678         (aarch64_parse_extension): New.
24679         * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
24680         here to config/aarch64/aarch64-protos.h.
24681         (aarch64_parse_extension): Move from here to
24682         common/config/aarch64/aarch64-common.c.
24683         (aarch64_option_print): Update.
24684         (aarch64_declare_function_name): Likewise.
24685         (aarch64_start_file): Likewise.
24686         * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
24687         the canonical flag for extensions.
24688         * config.gcc (aarch64*-*-*): Extend regex for capturing extension
24689         flags.
24691 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
24693         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
24694         AARCH64_FL_CRC.
24696 2016-04-09  Tom de Vries  <tom@codesourcery.com>
24698         PR tree-optimization/68953
24699         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
24700         first to last subscript.
24702 2016-04-09  Jakub Jelinek  <jakub@redhat.com>
24704         PR tree-optimization/70586
24705         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
24706         for any calls.
24708 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
24710         PR lto/70289
24711         PR ipa/70348
24712         PR tree-optimization/70373
24713         PR middle-end/70533
24714         PR middle-end/70534
24715         PR middle-end/70535
24716         * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
24717         clauses for acc parallel reductions as necessary.  Error on those
24718         that are private.
24719         * omp-low.c (scan_sharing_clauses): Don't install variables which
24720         are used in acc parallel reductions.
24721         (lower_rec_input_clauses): Remove dead code.
24722         (lower_oacc_reductions): Add support for reference reductions.
24723         (lower_reduction_clauses): Remove dead code.
24724         (lower_omp_target): Don't remap variables appearing in acc parallel
24725         reductions.
24726         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
24728 2016-04-08  Jakub Jelinek  <jakub@redhat.com>
24730         PR middle-end/70593
24731         * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
24732         with multiple SSA_NAME defs, force the outputs other than first
24733         to be live before calling live_track_process_def on each output.
24735         PR rtl-optimization/70574
24736         * fwprop.c (forward_propagate_and_simplify): Don't add
24737         REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
24738         (try_fwprop_subst): Don't add REG_EQUAL note if there are any
24739         paradoxical subregs within *loc.
24741 2016-04-08  Thomas Schwinge  <thomas@codesourcery.com>
24743         * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
24744         -ftree-parallelize-loops={0,1}.
24745         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
24746         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
24747         * config/ia64/hpux.h (LIB_SPEC): Likewise.
24748         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
24749         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
24751 2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>
24753         PR sanitizer/70541
24754         * asan.c (instrument_derefs): If we get unknown location, extract it
24755         with EXPR_LOCATION.
24756         (maybe_instrument_call): Instrument gimple_call's arguments if needed.
24758 2016-04-08  Tom de Vries  <tom@codesourcery.com>
24760         * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
24761         implicit firstprivate clause.
24763 2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24765         PR target/70566
24766         * config/arm/thumb2.md (tst + branch-> lsls + branch
24767         peephole below *orsi_not_shiftsi_si): Require that condition
24768         register is dead after the peephole.
24769         (second peephole after the above): Likewise.
24771 2016-04-08  Alan Modra  <amodra@gmail.com>
24773         PR target/70117
24774         * builtins.c (fold_builtin_classify): For IBM extended precision,
24775         look at just the high-order double to test for NaN.
24776         (fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
24777         test just the high double for Inf but both doubles for subnormal
24778         limit.
24780 2016-04-07  Jakub Jelinek  <jakub@redhat.com>
24782         * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
24783         * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
24784         node->simdclone->mask_mode != VOIDmode masks.
24785         (simd_clone_adjust_argument_types): Likewise.  Move sc var definition
24786         earlier, use it instead of node->simdclone.
24787         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
24788         Set clonei->mask_mode.
24790 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
24792         PR c/70436
24793         * parser.c (cp_parser_iteration_statement): New parameter IF_P.
24794         Pass it through to cp_parser_already_scoped_statement.
24795         (cp_parser_already_scoped_statement): New parameter IF_P.  Pass
24796         it through to cp_parser_statement.
24797         (cp_parser_statement): Pass IF_P through to
24798         cp_parser_iteration_statement.
24799         (cp_parser_pragma): Adjust call to
24800         cp_parser_iteration_statement.
24802 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
24804         PR c/70436
24805         * gimplify.c (gimplify_omp_ordered): Add explicit braces to
24806         resolve a future -Wparentheses warning.
24807         * omp-low.c (scan_sharing_clauses): Likewise.
24808         * tree-parloops.c (eliminate_local_variables): Likewise.
24810 2016-04-06  Vladimir Makarov  <vmakarov@redhat.com>
24812         PR rtl-optimization/70398
24813         * lra-constraints.c (process_address_1): Check zero scale and code
24814         for reloading with zero scale.
24816 2016-04-06  Uros Bizjak  <ubizjak@gmail.com>
24818         * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
24819         (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
24821 2016-04-06  Jakub Jelinek  <jakub@redhat.com>
24823         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
24824         Add support for AVX512F clones, include them by default for
24825         exported OpenMP declare simd functions.  For AVX2 allow simdlen 32
24826         and use it if charasteric type is 8-bit, for AVX512F allow simdlen
24827         up to 128.
24829         PR middle-end/70550
24830         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
24831         * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
24832         firstprivate clauses.
24833         * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
24834         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
24835         (lower_omp_target): Set TREE_NO_WARNING for
24836         non-addressable possibly uninitialized vars which are copied into
24837         addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
24839 2016-04-05  John David Anglin  <danglin@gcc.gnu.org>
24841         * config/pa/predicates.md (integer_store_memory_operand): Accept
24842         REG+D operands with a large offset when reload_in_progress is true.
24843         (floating_point_store_memory_operand): Likewise.
24845 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
24847         PR c++/70336
24848         * match.pd (nested int casts): Limit to GIMPLE.
24850 2016-04-05  Jan Hubicka  <hubicka@ucw.cz>
24852         PR ipa/66223
24853         * ipa-devirt.c (maybe_record_node): Fix comment; use
24854         SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
24856 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
24858         PR rtl-optimization/70542
24859         * ree.c (add_removable_extension): For VECTOR_MODE_P punt
24860         if there are any uses other than insn or debug insns.
24862 2016-04-05  Marc Glisse  <marc.glisse@inria.fr>
24863             Jakub Jelinek  <jakub@redhat.com>
24865         PR tree-optimization/70509
24866         * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
24867         Shift HOST_WIDE_INT_1U instead of 1.
24869 2016-04-05  Zdenek Sojka  <zsojka@seznam.cz>
24871         PR tree-optimization/70509
24872         * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
24873         of the vector base type for index.
24875 2016-04-05  Uros Bizjak  <ubizjak@gmail.com>
24877         PR target/70510
24878         * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
24880 2016-04-05  Richard Biener  <rguenther@suse.de>
24882         PR tree-optimization/70526
24883         * tree-sra.c (build_ref_for_offset): Use prev_base to
24884         extract the alias pointer type.
24886 2016-04-05  Richard Biener  <rguenther@suse.de>
24888         * dse.c (struct store_info): Remove alias_set member.
24889         (struct read_info_type): Likewise.
24890         (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
24891         spill_deleted, clear_alias_set_lookup): Remove.
24892         (get_group_info): Remove dead base == NULL_RTX case.
24893         (dse_step0): Remove initialization of removed variables.
24894         (delete_dead_store_insn): Reomve alias set dumping.
24895         (free_read_records): Remove alias_set handling.
24896         (canon_address): Remove alias_set_out parameter.
24897         (record_store): Remove spill_alias_set, it's always zero.
24898         (check_mem_read_rtx): Likewise.
24899         (dse_step2): Rename from ...
24900         (dse_step2_nospill): ... this.  Adjust.
24901         (scan_stores): Rename from ...
24902         (scan_stores_nospill): ... this.
24903         (scan_reads): Rename from ...
24904         (scan_reads_nospill): ... this.
24905         (scan_stores_spill, scan_reads_spill): Remove.
24906         (dse_step3_scan): Remove for_spills argument which is always false.
24907         (dse_step3): Likewise.
24908         (dse_step5): Rename from ...
24909         (dse_step5_nospill): ... this.  Remove alias_set handling.
24910         (rest_of_handle_dse): Adjust.
24912 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
24914         PR target/70525
24915         * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
24916         Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
24917         V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
24918         (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
24920 2016-04-05  Richard Biener  <rguenther@suse.de>
24922         PR middle-end/70499
24923         * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
24924         non-register type temporaries into SSA.
24926 2016-04-04  Jan Hubicka  <hubicka@ucw.cz>
24928         PR ipa/66223
24929         * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
24930         calls when sanitizing.
24931         (possible_polymorphic_call_target_p): Fix formatting.
24933 2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24934             Jakub Jelinek  <jakub@redhat.com>
24936         PR middle-end/70457
24937         * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
24938         to ensure a call statement is compatible with a built-in's
24939         prototype.
24940         * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
24941         Likewise.
24943 2016-04-04  Richard Biener  <rguenther@suse.de>
24945         PR rtl-optimization/70484
24946         * rtl.h (canon_output_dependence): Declare.
24947         * alias.c (canon_output_dependence): New function.
24948         * dse.c (record_store): Use canon_output_dependence rather
24949         than canon_true_dependence.
24951 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
24953         PR ipa/68881
24954         * cgraph.h (symtab_node::copy_visibility_from): New function.
24955         * symtab.c (symtab_node::copy_visibility_from): New function.
24956         * ipa-visibility.c (optimize_weakref): New function.
24957         (function_and_variable_visibility): Use it.
24959 2016-04-04  Martin Liska  <mliska@suse.cz>
24961         PR hsa/70402
24962         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
24963         value that is really in range handled by SBR instruction.
24964         * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
24965         * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
24966         * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
24968 2016-04-03  Oleg Endo  <olegendo@gcc.gnu.org>
24970         PR target/70416
24971         PR target/67391
24972         * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
24973         set, but not for SP_REG operands.
24975 2016-04-02  Martin Sebor  <msebor@redhat.com>
24977         PR c++/67376
24978         * fold-const.c (maybe_nonzero_address): New function.
24979         (fold_comparison): Call it.  Fold equality and relational
24980         expressions involving null pointers.
24981         (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
24983 2016-03-31  Evandro Menezes  <e.menezes@samsung.com>
24985         Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
24986         the "Y" constraint (scalar FP 0.0 immediate).
24988         * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
24989         Add the "const_double" to the list of operand constraints.
24991 2016-04-01  Jakub Jelinek  <jakub@redhat.com>
24993         PR rtl-optimization/70467
24994         * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
24995         If low word of the last operand is 0, just emit addition/subtraction
24996         for the high word.
24998 2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25000         PR target/70404
25001         * config/s390/s390.c (s390_expand_insv): Check for everything
25002         constant instead of just VOIDmode stuff.
25004 2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25006         PR target/70496
25007         * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
25009 2016-04-01  Nathan Sidwell  <nathan@acm.org>
25011         * tree.def (TRY_CATCH_EXPR): Correct documentation.
25013 2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>
25015         PR rtl-optimization/70461
25016         * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
25017         is necessary.
25019 2016-03-31  Martin Liska  <mliska@suse.cz>
25021         PR hsa/70399
25022         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
25023         a tree value or an immediate integer value to a buffer
25024         that is eventually copied to a BRIG section.
25025         (emit_immediate_operand): Call the function here.
25026         * hsa-dump.c (dump_hsa_immed): Remove checking assert.
25027         * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
25028         of class' fields that are removed.
25029         (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
25030         * hsa.h (class hsa_op_immed): Remove m_brig_repr and
25031         m_brig_repr_size fields.
25033 2016-03-31  Martin Liska  <mliska@suse.cz>
25035         PR hsa/70391
25036         * hsa-gen.c (hsa_function_representation::update_dominance): New
25037         function.
25038         (convert_addr_to_flat_segment): Likewise.
25039         (gen_hsa_memory_set): New alignment argument.
25040         (gen_hsa_ctor_assignment): Likewise.
25041         (gen_hsa_insns_for_single_assignment): Provide alignment
25042         to gen_hsa_ctor_assignment.
25043         (gen_hsa_insns_for_direct_call): Add new argument.
25044         (expand_lhs_of_string_op): New function.
25045         (expand_string_operation_builtin): Likewise.
25046         (expand_memory_copy): New function.
25047         (expand_memory_set): New function.
25048         (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
25049         (convert_switch_statements): Change signature.
25050         (generate_hsa): Use a return value of the function.
25051         (pass_gen_hsail::execute): Do not call
25052         convert_switch_statements here.
25053         * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
25054         * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
25055         (hsa_function_representation::update_dominance): New function.
25057 2016-03-31  Martin Liska  <mliska@suse.cz>
25059         PR hsa/70391
25060         * hsa-brig.c (emit_directive_variable): Emit alignment
25061         according to hsa_symbol::m_align.
25062         * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
25063         (dump_hsa_symbol): Dump alignment of HSA symbols.
25064         * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
25065         (gen_hsa_addr_with_align): New function.
25066         (hsa_bitmemref_alignment): Use newly added function.
25067         (gen_hsa_insns_for_load): Likewise.
25068         (gen_hsa_insns_for_store): Likewise.
25069         (gen_hsa_memory_copy): New argument added.
25070         (gen_hsa_insns_for_single_assignment): Respect
25071         alignment for assignments processed via gen_hsa_memory_copy.
25072         (gen_hsa_insns_for_direct_call): Likewise.
25073         (gen_hsa_insns_for_return): Likewise.
25074         (gen_function_def_parameters): Set default alignment.
25075         * hsa.c (hsa_object_alignment): New function.
25076         (hsa_byte_alignment): Pasted function.
25077         * hsa.h (hsa_symbol::m_align): New field.
25079 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
25081         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
25082         scratch field for goto case.
25084 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
25086         * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
25088 2016-03-31  Ilya Enkovich  <enkovich.gnu@gmail.com>
25090         PR target/70442
25091         * config/i386/i386.c (scalar_chain::convert_op): Fix description.
25092         (scalar_chain::convert_insn): Call convert_op for reg
25093         moves to handle undefined registers.
25095 2016-03-31  Nathan Sidwell  <nathan@acm.org>
25097         PR c++/70393
25098         * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
25099         Assert we don't want to move backwards.
25101 2016-03-31  Kirill Yukhin  <kirill.yukhin@intel.com>
25103         PR target/70453
25104         * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
25106 2016-03-31  Jakub Jelinek  <jakub@redhat.com>
25108         PR rtl-optimization/70460
25109         * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
25110         with operand from REG_LABEL_OPERAND, instead substitute
25111         SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
25112         Don't do anything for REG_NON_LOCAL_GOTO jumps.
25114 2016-03-31  Martin Liska  <mliska@suse.cz>
25116         * passes.c (execute_one_pass): Do not call
25117         todo_after for a discarded function.
25119 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
25121         * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
25122         (no_cost, infinite_cost): Initialize the new field.
25123         (get_computation_cost_at): Record setup cost.
25124         (determine_use_iv_cost_address): Skip cost computation for sub
25125         uses if we can estimate it without losing accuracy.
25127 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
25129         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
25130         estimates here.
25131         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
25132         max_loop_iterations_int.
25133         (tree_unswitch_outer_loop): Likewise.
25134         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
25135         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
25137 2016-03-30  Richard Biener  <rguenther@suse.de>
25139         PR middle-end/70450
25140         * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
25142 2016-03-30  Jakub Jelinek  <jakub@redhat.com>
25144         PR target/70421
25145         * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
25146         in gen_blendm expander.
25148 2016-03-30  Nick Clifton  <nickc@redhat.com>
25150         PR target/62254
25151         * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
25152         case where we are already provided with an SImode SUBREG.
25154 2016-03-30  H.J. Lu  <hongjiu.lu@intel.com>
25156         PR target/70439
25157         * config/i386/i386.c (ix86_expand_epilogue): Properly check
25158         conflict between DRAP register and __builtin_eh_return.
25160 2016-03-30  Michael Matz  <matz@suse.de>
25161             Richard Biener  <rguenther@suse.de>
25163         PR ipa/12392
25164         * ipa-polymorphic-call.c (struct type_change_info): Change
25165         speculative to an unsigned allowing to limit the work we do.
25166         (csftc_abort_walking_p): New inline function..
25167         (check_stmt_for_type_change): Limit the number of may-defs
25168         skipped for speculative devirtualization to
25169         max-speculative-devirt-maydefs.
25170         * params.def (max-speculative-devirt-maydefs): New param.
25171         * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
25173 2016-03-30  Mike Stump  <mrs@gcc.gnu.org>
25175         PR target/63890
25176         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
25177         and TARGET_MACHO.
25179 2016-03-30  Patrick Palka  <ppalka@gcc.gnu.org>
25181         PR tree-optimization/59124
25182         * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
25183         where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
25185 2016-03-29  Jeff Law  <law@redhat.com>
25187         * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
25189 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
25191         * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
25192         to HOST_WIDE_INT.
25194 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
25196         * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
25197         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
25198         gcrt0.o if linking dynamically.
25200 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
25202         PR ipa/70283
25203         * ipa-devirt.c (methods_equal_p): New function.
25204         (compare_virtual_tables): Use it.
25205         * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
25206         * cgraphclones.c (clone_function_name_1): Use
25207         symbol_table::symbol_suffix_separator.
25208         * coverage.c (build_var): Likewise.
25209         * symtab.c (symbol_table::symbol_suffix_separator): New.
25211 2016-03-29  Jakub Jelinek  <jakub@redhat.com>
25213         PR rtl-optimization/70429
25214         * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
25215         (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
25216         mode != result_mode.
25218         PR c++/70353
25219         * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
25221         PR tree-optimization/70405
25222         * ssa-iterators.h (num_imm_uses): Add missing braces.
25224 2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>
25226         PR rtl-optimization/68695
25227         * ira-color.c (allocno_copy_cost_saving): New.
25228         (improve_allocation): Use it.
25230 2016-03-29  Richard Henderson  <rth@redhat.com>
25232         PR middle-end/70355
25233         * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
25235 2016-03-29  Richard Biener  <rguenther@suse.de>
25237         PR middle-end/70424
25238         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
25239         use alignment returned by get_pointer_alignment_1 if it is
25240         bigger than BITS_PER_UNIT.
25241         * builtins.c (get_pointer_alignment_1): Do not return true
25242         for alignment extracted from SSA info.
25244 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
25246         * config/ft32/ft32.opt (mnodiv): New.
25247         * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
25248         * doc/invoke.texi (FT32 Options -mnodiv): New.
25250 2016-03-28  Kirill Yukhin  <kirill.yukhin@intel.com>
25252         PR target/70406
25253         * config/i386/i386.md (define_split, andn): Fix modes.
25255 2016-03-26  Richard Biener  <rguenther@suse.de>
25256             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
25258         PR ipa/70366
25259         * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
25260         instead of
25261         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
25262         as 2nd argument to cl_optimization_restore().
25264 2016-03-25  Richard Henderson  <rth@redhat.com>
25266         PR target/70120
25267         * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
25268         * config/aarch64/aarch64-protos.h: Declare it.
25269         * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
25271 2016-03-25  Alan Modra  <amodra@gmail.com>
25273         PR target/70052
25274         * config/rs6000/constraints.md (j): Simplify.
25275         * config/rs6000/predicates.md (easy_fp_constant): Exclude
25276         decimal float 0.D.
25277         * config/rs6000/rs6000.md (zero_fp): New mode_attr.
25278         (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
25279          mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
25280         in all constraint alternatives.
25281         (movtd_64bit_nodm): Delete "j" constraint alternative.
25283 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
25285         * tree-ssa-propagate.c: Enhance docs for
25286         SSA_PROP_NOT_INTERESTING.
25288 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
25290         * doc/extend.texi: Fix typo in documentation to pure attribute.
25292 2016-03-24  John David Anglin  <danglin@gcc.gnu.org>
25294         PR target/70319
25295         * config/pa/pa.md (bswapdi2): Use a scratch register.
25297 2016-03-24  Richard Henderson  <rth@redhat.com>
25299         PR middle-end/69845
25300         * fold-const.c (extract_muldiv_1): Correct test for multiplication
25301         overflow.
25303 2016-03-24  Uros Bizjak  <ubizjak@gmail.com>
25305         * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
25306         using ix86_expand_binary_operator instead of gen_andsi3.
25308 2016-03-24  Richard Biener  <rguenther@suse.de>
25310         PR tree-optimization/70396
25311         * tree-vect-stmts.c (vectorizable_comparison): Use
25312         get_vectype_for_scalar_type.
25314 2016-03-24  Richard Biener  <rguenther@suse.de>
25316         PR middle-end/70370
25317         * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
25318         with register bases.
25320 2016-03-24  Richard Biener  <rguenther@suse.de>
25322         PR tree-optimization/70372
25323         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
25324         build_all_ones_cst to also handle vector types correctly.
25326 2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
25328         PR target/70381
25329         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
25330         -mfloat128 here.
25332 2016-03-23  Marek Polacek  <polacek@redhat.com>
25334         PR c++/69884
25335         * doc/invoke.texi: Document -Wignored-attributes.
25337 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
25339         PR tree-optimization/69042
25340         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
25341         parameter from 30 to 40.
25343 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
25345         PR tree-optimization/69042
25346         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
25347         for use with constant offset stripped in base.
25349 2016-03-23  Richard Biener  <rguenther@suse.de>
25351         PR middle-end/70251
25352         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
25353         mode compatibility check.
25354         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
25356 2016-03-23  Jeff Law  <law@redhat.com>
25358         PR tree-optimization/64058
25359         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
25360         CONFLICT_COUNT.
25361         (struct ssa_conflicts): Move up earlier in the file.
25362         (conflicts_, var_map_): New static variables.
25363         (initialize_conflict_count): New function to initialize the
25364         CONFLICT_COUNT field for each conflict pair.
25365         (compare_pairs): Lazily initialize the conflict count and use it
25366         as the first tie-breaker.
25367         (sort_coalesce_list): Add new arguments conflicts, map.  Initialize
25368         and wipe conflicts_ and map_ around the call to qsort.  Remove
25369         special case for 2 coalesce pairs.
25370         * bitmap.c (bitmap_count_unique_bits): New function.
25371         (bitmap_count_bits_in_word): New function, extracted from
25372         bitmap_count_bits.
25373         (bitmap_count_bits): Use bitmap_count_bits_in_word.
25374         * bitmap.h (bitmap_count_unique_bits): Declare it.
25376 2016-03-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
25378         PR target/69917
25379         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
25380         transparent alias chain for decl assembler name.
25381         * config/sol2.c (solaris_assemble_visibility): Likewise.
25383 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25385         * config/arm/arm1020e.md (1020call_op): Reduce reservation
25386         duration.
25387         (v10_fdivs): Likewise.
25388         (v10_fdivd): Likewise.
25390 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25392         PR driver/70132
25393         * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
25394         to not call fclose twice on file.
25396 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
25398         PR tree-optimization/70354
25399         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
25400         oprnd0 is wider than oprnd1 and there is a cast from the wider
25401         type to oprnd1, mask it with the mask of the narrower type.
25403         PR target/70321
25404         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
25405         Optimize TARGET_STV splitters, if high or low word of last argument
25406         is 0 or -1.
25408 2016-03-22  Jeff Law  <law@redhat.com>
25410         PR target/70232
25411         tree-ssa-threadbackward.c
25412         (fsm_find_control_statement_thread_paths): Correctly distinguish
25413         between old style jump threads vs FSM jump threads.
25415 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
25417         PR target/70302
25418         * config/i386/i386.c (scalar_chain::convert_op): Support
25419         uninitialized register usage case.
25421 2016-03-22  Richard Biener  <rguenther@suse.de>
25423         PR middle-end/70251
25424         * genmatch.c (gen_transform): Adjust last parameter to a three-state
25425         int...
25426         (capture::gen_transform): ... to change behavior when substituting
25427         a condition into cond or not-cond expr context.
25428         (dt_simplify::gen_1): Adjust.
25429         * gimple-match-head.c: Include gimplify.h for unshare_expr.
25430         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
25431         last change and instead change to
25432         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
25433         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
25435 2016-03-22  Anthony Green  <green@moxielogic.com>
25437         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
25438         issue for moxiebox targets.
25439         (CC1PLUS_SPEC): Ditto.
25441 2016-03-22  Richard Biener  <rguenther@suse.de>
25443         PR middle-end/70333
25444         * fold-const.c (extract_muldiv_1): Properly perform multiplication
25445         in the wide type.
25447 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
25449         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
25451 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
25453         PR target/70325
25454         * config/i386/i386.c (def_builtin): Handle
25455         OPTION_MASK_ISA_AVX512VL to be and-ed with other
25456         bits.
25457         (const struct builtin_description bdesc_special_args[]):
25458         Remove duplicate ISA bits.
25460 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
25462         PR target/70329
25463         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
25464         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
25465         in a way that works also for AVX512BW.
25467         PR target/70300
25468         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
25469         instead of source if operands[1] is xmm16 and above and
25470         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
25471         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
25473         PR c++/70295
25474         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
25475         on assign if (*from_p) is a comparison, set it to
25476         TREE_NO_WARNING (*from_p).
25478 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
25480         PR middle-end/70326
25481         * lra.c (restore_scratches): Ignore deleted insns.
25483 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
25484             Jakub Jelinek  <jakub@redhat.com>
25486         PR tree-optimization/70317
25487         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
25488         to HONOR_NANS.
25490 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
25492         PR target/70327
25493         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
25494         of ix86_expand_move.
25495         (movoi): Ditto.
25496         (movti): Use general_operand for operand 1 predicate.
25498 2016-03-21  Martin Liska  <mliska@suse.cz>
25500         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
25501         insns.
25502         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
25504 2016-03-21  Martin Liska  <mliska@suse.cz>
25506         PR ipa/70306
25507         * ipa-icf.c (sem_function::parse): Skip static
25508         constructors and destructors.
25510 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
25512         PR target/70296
25513         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
25514         function-like macro, peek following token(s) if it is followed
25515         by CPP_OPEN_PAREN token with optional padding in between, and
25516         if not, don't treat it like a macro.
25518 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
25519             Alexander Monakov  <amonakov@ispras.ru>
25521         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
25522         for the stabs debug format.
25524 2016-03-21  Richard Biener  <rguenther@suse.de>
25526         PR tree-optimization/70310
25527         * tree-vect-generic.c (expand_vector_condition): Fold the built
25528         condition.
25530 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
25532         PR target/70293
25533         * config/i386/sse.md (define_insn "*vec_dup<mode>"/AVX2):
25534         Block third alternative for AVX-512VL target,
25536 2016-03-21  Martin Liska  <mliska@suse.cz>
25538         PR hsa/70234
25539         * hsa-brig.c (emit_function_directives): Mark unemitted
25540         global variables for emission.
25541         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
25542         (get_symbol_for_decl): Likewise.
25543         * hsa.h (struct hsa_symbol): New flag.
25545 2016-03-21  Richard Biener  <rguenther@suse.de>
25547         PR tree-optimization/70288
25548         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
25549         we do not estimate unsimplified all-constant conditionals or
25550         switches as optimized away.
25552 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
25554         PR rtl-optimization/69102
25555         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
25556         when we have a readonly dependency context.
25558 2016-03-18  Jeff Law  <law@redhat.com>
25560         PR rtl-optimization/70263
25561         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
25562         (update_equiv_regs): When trying to move a store to after the insn
25563         that sets the source of the store, make sure the store occurs after
25564         the insn that sets the source of the store.  When successful note
25565         the REG_EQUIV note created in the dump file.
25567 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
25568             Bernd Schmidt  <bschmidt@redhat.com>
25570         * doc/extend.texi: Document more potential problems with basic asms.
25572 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
25574         PR rtl-optimization/70278
25575         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
25576         VOIDmode.
25578 2016-03-18  Jason Merrill  <jason@redhat.com>
25580         * calls.c (load_register_parameters): Fix zero size sibcall logic.
25582 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
25584         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
25585         values to 128b regs.
25587 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
25589         PR tree-optimization/70252
25590         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
25591         boolean vector has a proper number of elements.
25592         (supportable_narrowing_operation): Likewise.
25594 2016-03-18  Tom de Vries  <tom@codesourcery.com>
25596         PR ipa/70269
25597         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
25599 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
25601         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
25602         instead of replace_rtx for DEBUG_INSNs.
25604 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
25606         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
25607         load type reservations.
25609 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
25611         PR target/70188
25612         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
25613         define_constraint for "Q" and "T" constraints.
25615 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
25617         Tweak the pipeline model for Exynos M1
25619         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
25620         model.
25622 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
25624         PR c/70264
25625         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
25626         where one or both locations aren't within a line_map.
25628 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
25630         PR driver/70192
25631         * opts.c (finish_options): Don't set flag_pie to the default if
25632         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
25633         if it is -1.
25635 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
25637         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
25638         true as ALL_REGS argument to replace_rtx.
25640 2016-03-17  Richard Biener  <rguenther@suse.de>
25642         PR debug/70271
25643         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
25644         last.
25646 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
25648         PR target/70245
25649         * rtl.h (replace_rtx): Add ALL_REGS argument.
25650         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
25651         equality and assert mode is the same, instead of just rtx pointer
25652         equality.
25653         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
25654         true as ALL_REGS argument to replace_rtx.
25656 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
25658         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
25659         for boolean vector with vector mode only.
25660         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
25662 2016-03-17  Nick Clifton  <nickc@redhat.com>
25664         PR target/70162
25665         * config/rx/rx.c (rx_print_integer): Print negative constants in
25666         decimal.
25668 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
25670         PR target/70261
25671         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
25673 2016-03-16  Richard Henderson  <rth@redhat.com>
25674             Richard Biener  <rguenth@suse.de>
25676         PR middle-end/70240
25677         PR middle-end/68215
25678         PR tree-opt/68714
25679         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
25680         first operand as is_gimple_condexpr.
25682         PR middle-end/70240
25683         PR middle-end/68215
25684         Revert r231575
25685         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
25686         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
25687         Do not gimplify the result.
25688         (do_unop): Adjust call to tree_vec_extract.
25689         (do_binop): Likewise.
25690         (do_compare): Likewise.
25691         (do_plus_minus): Likewise.
25692         (do_negate): Likewise.
25693         (expand_vector_condition): Likewise.
25694         (do_cond): Likewise.
25696 2016-03-16  Richard Henderson  <rth@redhat.com>
25698         PR target/70048
25699         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
25700         (aarch64_classify_address): Use it.
25701         (aarch64_legitimize_address): Force all subexpressions of PLUS
25702         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
25704 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
25705             Richard Biener  <rguenth@suse.de>
25707         PR target/70245
25708         * rtlanal.c (replace_rtx): For REG, if from is a REG,
25709         return to even if only REGNO is equal, and assert
25710         mode is the same.
25712 2016-03-11  Jeff Law  <law@redhat.com>
25714         PR rtl-optimization/70224
25715         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
25717 2016-03-16  Richard Henderson  <rth@redhat.com>
25719         PR middle-end/70199
25720         * function.h (struct function): Add has_forced_label_in_static.
25721         * gimplify.c (force_labels_r): Set it.
25722         * lto-streamer-in.c (input_struct_function_base): Read it.
25723         * lto-streamer-out.c (output_struct_function_base): Write it.
25724         * tree-inline.c (has_label_address_in_static_1): Remove.
25725         (copy_forbidden): Remove fndecl parameter; test
25726         has_forced_label_in_static.
25727         (inline_forbidden_p): Update call to copy_forbidden.
25728         (tree_versionable_function_p): Likewise.
25729         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
25730         (chkp_versioning): Likewise.
25731         * tree-inline.h (copy_forbidden): Update decl.
25733 2016-03-16  Marek Polacek  <polacek@redhat.com>
25735         PR c/70093
25736         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
25737         function being thunked if the result type doesn't have fixed size.
25738         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
25739         doesn't have fixed size.
25741 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
25743         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
25744         reporting malformed loop nest.
25746 2016-03-16  Tom de Vries  <tom@codesourcery.com>
25748         PR lto/70187
25749         * ipa-devirt.c (possible_polymorphic_call_targets): Move
25750         nodes.length () == 1 test to before first nodes[0] access.
25752 2016-03-16  Tom de Vries  <tom@codesourcery.com>
25754         PR tree-optimization/68715
25755         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
25756         single_pred_p test.
25758 2016-03-16  Tom de Vries  <tom@codesourcery.com>
25760         PR tree-optimization/68809
25761         * graphite-scop-detection.c (same_close_phi_node): Test if result types
25762         are the same.
25764 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
25765             Sandra Loosemore  <sandra@codesourcery.com>
25767         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
25768         on leaf attribute. Mention ELF interposition problems.
25770 2016-03-16  Alan Modra  <amodra@gmail.com>
25772         PR rtl-optimization/69195
25773         PR rtl-optimization/47992
25774         * ira.c (indirect_jump_optimize): Ignore artificial defs.
25775         Add comments.
25777 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
25779         PR bootstrap/69513
25780         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
25782 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
25784         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
25786 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
25788         PR rtl-optimization/70222
25789         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
25790         optimization if mode is different from result_mode, queue up masking
25791         of the result in outer_op.  Formatting fix.
25793         PR middle-end/70239
25794         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
25795         of safe_grow.
25797 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
25799         PR rtl-optimization/69032
25800         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
25801         looping backwards over basic block insns.
25803 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
25805         PR target/66660
25806         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
25807         to non-speculative when propagating trap bits.
25809 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
25811         PR rtl-optimization/63384
25812         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
25813         DEBUG_INSN_P insns.
25815 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
25817         PR target/64411
25818         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
25819         factored out from ...
25820         (sched_analyze_insn): ... here.
25821         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
25822         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
25823         get_implicit_reg_pending_clobbers in it.
25824         (setup_id_reg_sets): Use setup_id_implicit_regs.
25825         (deps_init_id): Ditto.
25827 2016-03-15  Tom de Vries  <tom@codesourcery.com>
25829         PR ipa/70161
25830         * cgraph.c (cgraph_node::get_body): Save, reset and restore
25831         dump_file_name.
25832         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
25833         execute_function_dump.
25834         (execute_one_pass): Don't dump function if it will be dumped after ipa
25835         transform.
25837 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
25839         * genrecog.c (match_pattern_2): If pred is NULL don't call
25840         safe_predicate_mode on it.
25842 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
25844         PR middle-end/70219
25845         * lra-constraints.c (delete_move_and_clobber): Change assertion
25846         to also allow dregno == 0.
25848 2016-03-14  Richard Henderson  <rth@redhat.com>
25850         PR tree-opt/68714
25851         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
25852         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
25853         (reassociate_bb): Use optimize_vec_cond_expr; avoid
25854         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
25855         on vectors.
25857 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
25859         PR target/70083
25860         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
25861         regs.
25862         (lra_create_live_ranges_1): initialize hard register biggest_mode to
25863         VOIDmode.
25864         * lra-constraints.c (split_reg): For hard regs, try to find the
25865         biggest single-register mode used in the function.
25867 2016-03-14  Richard Biener  <rguenther@suse.de>
25869         PR tree-optimization/56365
25870         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
25871         constants to compare against.
25873 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
25875         PR target/70098
25876         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
25877         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
25878         (define_split for the GPR case): Use int_reg_operand instead of
25879         gpc_reg_operand for the output.
25881 2016-03-14  Tom de Vries  <tom@codesourcery.com>
25883         PR tree-optimization/70045
25884         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
25885         create_empty_if_region_on_edge argument.
25887 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
25889         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
25890         (STACK_CHECK_PROTECT): Likewise.
25891         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
25892         (STACK_CHECK_PROTECT): Likewise.
25893         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
25894         (STACK_CHECK_PROTECT): Likewise.
25895         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
25896         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
25897         (STACK_CHECK_PROTECT): Likewise.
25899 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
25901         PR rtl-optimization/69307
25902         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
25903         registers in modes that span more than one register.
25905 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
25907         PR target/69614
25908         * lra-constraints.c (delete_move_and_clobber): New.
25909         (remove_inheritance_pseudos): Use it.
25911 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
25913         PR ada/70017
25914         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
25915         the libcall is LCT_THROW.
25916         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
25917         for the checking routine.
25919 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
25921         PR target/70131
25922         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
25923         optimization if we have direct move.
25924         (roundu32<mode>2_fprs): Likewise.
25926 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
25928         PR target/70123
25929         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
25930         be rematerialized.
25931         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
25932         Arguments swapped.  All callers changed.  Take reg_renumber into
25933         account, and Calculate and compare register ranges for hard regs.
25935 2016-03-11  Jeff Law  <law@redhat.com>
25937         PR tree-optimization/70190
25938         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
25939         Handle cases where we can not extract the taken edge, even though we
25940         found a constant value.
25942         PR tree-optimization/64058
25943         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
25944         (num_coalesce_pairs): Move up earlier in file.
25945         (find_coalesce_pair): Initialize the INDEX field for each pair
25946         discovered.
25947         (compare_pairs): No longer sort on the elements in each pair.
25948         Instead break ties with the index of the coalesce pair.
25950 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25952         PR target/70002
25953         * config/aarch64/aarch64-protos.h
25954         (aarch64_save_restore_target_globals): New prototype.
25955         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
25956         Call the above when popping pragma.
25957         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
25958         New function.
25959         (aarch64_set_current_function): Rewrite using the above.
25961 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
25963         PR tree-optimization/70177
25964         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
25965         (extract_ops_from_tree): ... this.  In the 2 argument
25966         overload remove _1 suffix.
25967         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
25968         (extract_ops_from_tree): ... this.
25969         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
25970         Adjust callers.
25971         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
25972         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
25973         extract_ops_from_tree instead of 2 operand one.
25975 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
25977         PR tree-optimization/70013
25978         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
25979         for constant-pool entries.
25981 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
25983         PR rtl-optimization/70174
25984         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
25985         followed by gen_lowpart on force_reg instead of just gen_lowpart.
25987         PR tree-optimization/70169
25988         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
25989         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
25990         for unknown codes.
25992 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
25993             Jakub Jelinek  <jakub@redhat.com>
25995         PR target/70160
25996         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
25997         of uninitialized values.
25999 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26001         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
26002         define_expand.
26003         ("*trunctddd2"): New pattern definition.
26004         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
26005         TD->DD truncation.
26007 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26009         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
26010         definitions for BFP and DFP rounding modes.
26011         ("fixuns_truncdddi2", "fixuns_trunctddi2")
26012         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
26013         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
26014         ("fix_trunctf<mode>2"): Use the new constants instead of magic
26015         numbers.
26017 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26019         * config/s390/constraints.md: Adjust comment.
26020         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
26021         s390_decompose_addrstyle_without_index.
26022         * config/s390/predicates.md (shift_count_or_setmem_operand):
26023         Rename to setmem_operand.
26024         * config/s390/s390-protos.h
26025         (s390_decompose_shift_count): Rename to
26026         s390_decompose_addrstyle_without_index.
26027         * config/s390/s390.c (s390_decompose_shift_count)
26028         (s390_mem_constraint, print_shift_count_operand)
26029         (print_operand_address, print_operand): Rename
26030         s390_decompose_shift_count to
26031         s390_decompose_addrstyle_without_index and rename
26032         print_shift_count_operand to print_addrstyle_operand troughout the
26033         file.
26034         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
26035         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
26036         Rename shift_count_or_setmem_operand to setmem_operand.
26037         * config/s390/vx-builtins.md ("vec_insert<mode>")
26038         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
26039         nonmemory_operand.
26041 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26043         PR target/70168
26044         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
26045         Handle overlapping retval and newval.
26047 2016-03-10  Nick Clifton  <nickc@redhat.com>
26049         PR target/7044
26050         * config/aarch64/aarch64.c
26051         (aarch64_override_options_after_change_1): When forcing
26052         flag_omit_frame_pointer to be true, use a special value that can
26053         be detected if this function is called again, thus preventing
26054         flag_omit_leaf_frame_pointer from being forced to be false.
26056 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26058         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
26059         Set x_flag_omit_leaf_frame_pointer when handling
26060         -momit-leaf-frame-pointer.
26062 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
26064         PR lto/69589
26065         * cgraph.c (cgraph_node::dump): Dump split_part and
26066         indirect_call_target.
26067         * cgraph.h (cgraph_node): Add indirect_call_target flag.
26068         * ipa.c (has_addr_references_p): Cleanup.
26069         (is_indirect_call_target_p): New.
26070         (walk_polymorphic_call_targets): Do not mark virtuals that may be
26071         called indirectly as local.
26072         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
26074 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
26076         PR ipa/69630
26077         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
26078         on cxa_pure_virtual.
26080 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
26082         PR lto/69589
26083         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
26085 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
26087         PR lto/69589
26088         * tree.c (need_assembler_name_p): Only record main variant type names.
26090 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
26092         PR target/70113.
26093         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
26094         Always define to 0 or 1.
26095         (TARGET_FIX_ERR_A53_843419): New macro.
26096         * config/aarch64/aarch64-elf-raw.h
26097         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
26098         * config/aarch64/aarch64-linux.h: Likewise.
26099         * config/aarch64/aarch64.c
26100         (aarch64_override_options_after_change_1): Do not default
26101         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
26102         843419 is on.
26103         (aarch64_attributes): Handle fix-cortex-a53-843419.
26104         (aarch64_can_inline_p): Likewise.
26105         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
26107 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
26108             Jakub Jelinek  <jakub@redhat.com>
26110         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
26111         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
26112         DECL_COMMONS if flag_unconstrained_commons is set.
26113         * tree-dfa.c (get_ref_base_and_extent): Likewise.
26114         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
26115         (funconstrained-commons): Document.
26117 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
26119         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
26120         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
26122 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
26124         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
26125         has a proper number of elements.
26127 2016-03-10  Alan Modra  <amodra@gmail.com>
26129         PR rtl-optimization/69195
26130         PR rtl-optimization/47992
26131         * ira.c (recorded_label_ref): Delete.
26132         (update_equiv_regs): Return void.
26133         (indirect_jump_optimize): New function.
26134         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
26135         before regstat_compute_ri.  Don't rebuild_jump_labels here.
26136         Delete update_regstat.
26138 2016-03-10  Richard Biener  <rguenther@suse.de>
26140         PR tree-optimization/70128
26141         * tree-ssa-structalias.c (set_uids_in_ptset): Set
26142         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
26144 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
26146         PR tree-optimization/70152
26147         * tree-sra.c (replace_removed_params_ssa_names): Copy over
26148         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
26150         PR target/70086
26151         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
26152         instead of gen_sse2_loadlpd.
26153         * config/i386/sse.md (*vec_concatv2df): Rename to...
26154         (vec_concatv2df): ... this.
26156         PR tree-optimization/70127
26157         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
26159 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
26161         PR c/68473
26162         PR c++/70105
26163         * diagnostic-show-locus.c (compatible_locations_p): New function.
26164         (layout::layout): Sanitize ranges using compatible_locations_p.
26166 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
26168         PR c/68473
26169         PR c++/70105
26170         * diagnostic-show-locus.c (layout_range::layout_range): Replace
26171         location_range param with three const expanded_locations * and a
26172         bool.
26173         (layout::layout): Replace call to
26174         rich_location::lazily_expand_location with get_expanded_location.
26175         Extract the range and perform location expansion here, passing
26176         the results to the layout_range ctor.
26177         * diagnostic.c (source_range::debug): Delete.
26178         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
26179         of rich_location::get_expanded_location.
26180         * gcc-rich-location.c (get_range_for_expr): Delete.
26181         (gcc_rich_location::add_expr): Reimplement to avoid the
26182         rich_location::add_range overload that took a location_range,
26183         passing a location_t instead.
26185 2016-03-09  Richard Biener  <rguenther@suse.de>
26186         Jakub Jelinek  <jakub@redhat.com>
26188         PR tree-optimization/70138
26189         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
26190         Also skip vect_double_reduction_def.
26192 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
26194         PR target/70049
26195         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
26196         if the operand is "m".
26198 2016-03-09  Nathan Sidwell  <nathan@acm.org>
26200         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
26202 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
26204         * config/i386/i386.c (processor_target_table): Fix cost table
26205         intialization order for znver1.
26207 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
26209         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
26210         - becuase -> because.
26211         * ipa-reference.c (ignore_module_statics): Likewise.
26212         * cgraph.c (cgraph_node::get_body): Likewise.
26213         * ipa-inline.c (early_inliner): Likewise.
26214         * ipa-devirt.c (types_same_for_odr): Likewise.
26215         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
26216         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
26218 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26220         * tree-ssa-math-opts.c: Fix typo in comment.
26222 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
26224         PR target/70110
26225         * config/i386/i386.c (scalar_chain::make_vector_copies,
26226         scalar_chain::convert_reg): Call end_sequence in between
26227         get_insns and emit_conversion_insns rather than after both
26228         calls.
26230 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
26232         PR target/70064
26233         * config/i386/i386.h (machine_function): Add
26234         pc_thunk_call_expanded flag.
26235         (ix86_pc_thunk_call_expanded): New define.
26236         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
26237         (*set_got): Rename insn pattern from set_got.
26238         (*set_got_labelled): Rename inst pattern from set_got_labelled.
26239         * config/i386/i386.c (ix86_compute_frame_layout): Use
26240         ix86_pc_thunk_call_expanded to prevent red-zone.
26242 2016-03-07  Martin Jambor  <mjambor@suse.cz>
26244         * hsa.h (hsa_get_ctor_statements): Declare.
26245         (hsa_get_dtor_statements): Likewise.
26246         (hsa_get_kernel_dispatch_type): Likewise.
26247         * hsa.c (hsa_get_ctor_statements): New function.
26248         (hsa_get_dtor_statements): Likewise.
26249         (hsa_get_kernel_dispatch_type): Likewise.
26250         * hsa-brig.c (hsa_cdtor_statements): Removed.
26251         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
26252         hsa_get_dtor_statements.
26253         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
26254         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
26256 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
26258         * config/arm/arm-cores.def (cortex-r8): New.
26259         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
26260         * config/arm/arm-tune.md: Likewise.
26261         * doc/invoke.texi: Add cortex-r8 to list of cpu values.
26263 2016-03-07  Martin Sebor  <msebor@redhat.com>
26265         PR rtl-optimization/19705
26266         * doc/invoke.texi (Options That Control Optimization): Clarify
26267         -fno-branch-count-reg.
26269 2016-02-26  Richard Biener  <rguenther@suse.de>
26270             Jeff Law  <law@redhat.com>
26272         PR tree-optimization/69740
26273         * cfghooks.c (remove_edge): Request loop fixups if we delete
26274         an edge that might turn an irreducible loop into a natural
26275         loop.
26276         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
26277         Move after definition of loops_state_clear.
26279 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
26281         PR rtl-optimization/69052
26282         * rtlanal.c (commutative_operand_precedence): Set higher precedence
26283         to CONST_WIDE_INT.
26285 2016-03-07  Tom de Vries  <tom@codesourcery.com>
26287         PR tree-optimization/70116
26288         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
26289         is_tm_ending stmts and ubsan/asan internal functions.
26290         (find_duplicate): Use it.  Don't test is_tm_ending here.
26292 2016-03-07  Richard Biener  <rguenther@suse.de>
26294         PR tree-optimization/70115
26295         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
26296         (propagate_constants_for_unrolling): Use replace_uses_by.
26298 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
26300         PR middle-end/69916
26301         * omp-low.c (struct oacc_loop): Add ifns.
26302         (new_oacc_loop_raw): Initialize it.
26303         (finish_oacc_loop): Clear mask & flags if no ifns.
26304         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
26305         (oacc_loop_xform_loop): Add ifns arg & adjust.
26306         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
26308 2016-03-07  Richard Henderson  <rth@redhat.com>
26310         PR rtl-opt/70061
26311         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
26312         (insert_value_copy_on_edge): Likewise.
26314 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26316         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
26318 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26320         PR target/62281
26321         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
26323 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
26325         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
26327 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
26329         Fix sseimul type attribute.
26330         * config/i386/znver1.md
26331         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
26332         znver1_sseimul_avx256_load) : Fix the type attribute.
26333         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
26334         pipe usage and latency.
26336 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
26338         PR c++/70084
26339         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
26340         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
26341         to the right type.
26343 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
26345         PR c/69973
26346         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
26348         PR rtl-optimization/69941
26349         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
26350         the reg share its mode.
26352 2016-03-04  Jeff Law  <law@redhat.com>
26354         PR tree-optimization/69196
26355         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
26356         If the both SSA_NAMEs are anonymous, then consider them unassociated
26357         and include the PHI in the statement count.
26359 2016-03-05  Tom de Vries  <tom@codesourcery.com>
26361         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
26362         construct in oacc routine.  Check for oacc region in oacc routine.
26364 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
26366         PR target/70062
26367         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
26368         2016-02-22 changes, instead don't recurse if RECUR is already true.
26369         Don't change *dynamic_check if RECUR.  Adjust recursive caller
26370         to pass true to the new argument.
26371         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
26373         PR target/70059
26374         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
26375         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
26376         fixes.
26377         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
26379 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
26381         PR rtl-optimization/57676
26382         * lra-assigns.c (lra_assign): Guard test for maximum iterations
26383         with flag_checking.
26385 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
26387         * tree-vect-patterns.c (search_type_for_mask): Handle
26388         comparison of booleans.
26390 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
26392         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
26393         Fix @xref usage.
26395         PR debug/69947
26396         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
26397         all other ops that have dw_val_class_die_ref operands,
26398         and DW_OP_GNU_entry_value.
26400 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26402         PR rtl-optimization/69904
26403         * config/arm/arm.c (arm_cannot_copy_insn_p):
26404         Return true for load-exclusive instructions.
26406 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
26408         PR target/70021
26409         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
26410         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
26411         the pattern no matter if it is used just by non-pattern, pattern
26412         or mix thereof.
26413         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
26414         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
26415         oprnd1 def_stmt is in pattern, don't look through it.
26417 2016-03-03  Marek Polacek  <polacek@redhat.com>
26419         PR middle-end/70050
26420         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
26422 2016-03-03  Martin Liska  <mliska@suse.cz>
26424         PR tree-optimization/70043
26425         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
26426         previous statement if we see a debug statement.
26428 2016-03-03  Richard Biener  <rguenther@suse.de>
26430         PR tree-optimization/55936
26431         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
26432         parameter and guard unsafe equivalence use.
26433         (vrp_evaluate_conditional_warnv_with_ops): Always use
26434         safe equivalences but not via the quadratic compare_names
26435         helper.
26437 2016-03-03  Michael Collison  <michael.collison@linaro.org>
26439         PR target/70014
26440         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
26441         for operand 1 to s_register_operand. Change predicate for operand
26442         2 to arm_not_immediate_operand.
26444 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
26446         * doc/tm.texi: Regenerated.
26448 2016-03-02  Richard Henderson  <rth@redhat.com>
26450         PR rtl-opt/67145
26451         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
26452         simplification when all args are positive non-fixed registers.
26454 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
26456         * target.def (lra_p): Specify that new ports should use LRA.
26458 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
26460         PR libgomp/69555
26461         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
26462         gimplify_type_sizes the type they refer to.
26463         (omp_notice_variable): Handle reference vars to VLAs.
26464         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
26465         reference to VLA decls in the second pass instead of first pass.
26467 2016-03-02  Tom de Vries  <tom@codesourcery.com>
26469         PR tree-optimization/68659
26470         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
26471         new_expr == NULL_TREE.
26472         (get_new_name): Handle ADDR_EXPR.
26474 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
26476         PR rtl-optimization/69052
26477         * loop-invariant.c (canonicalize_address): New function.
26478         (inv_can_prop_to_addr_use): Check validity of address expression
26479         which is canonicalized by above function.
26481 2016-03-02  Alan Modra  <amodra@gmail.com>
26483         PR ipa/69990
26484         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
26485         larger alignment.
26487 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
26489         PR target/70028
26490         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
26491         (*movhi_internal): Put mask moves from and to memory separately
26492         from moves from/to GPRs.
26494 2016-03-02  Richard Biener  <rguenther@suse.de>
26496         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
26497         GENERIC expressions in GIMPLE.
26499 2016-03-02  Richard Biener  <rguenther@suse.de>
26501         * config/i386/i386.c (type_natural_mode): Fix typo.
26503 2016-03-02  Nick Clifton  <nickc@redhat.com>
26505         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
26507 2016-03-02  Richard Biener  <rguenther@suse.de>
26508             Uros Bizjak  <ubizjak@gmail.com>
26510         PR target/67278
26511         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
26513 2016-03-02  Richard Biener  <rguenther@suse.de>
26515         PR middle-end/67278
26516         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
26518 2016-03-02  Marek Polacek  <polacek@redhat.com>
26520         PR c/67854
26521         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
26522         "is promoted to" warning.
26524 2016-03-01  DJ Delorie  <dj@redhat.com>
26526         * config.gcc: Deprecate mep-*.
26528 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
26530         PR middle-end/70025
26531         * lra-constraints.c (regno_val_use_in): New.
26532         (match_reload): Use it instead of regno_use_in.
26534 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
26536         PR rtl-optimization/70007
26537         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
26538         references present in REG_EQUAL notes attached to non-SET patterns.
26540 2016-03-01  Jeff Law  <law@redhat.com>
26542         PR tree-optimization/69196
26543         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
26544         Appropriately clamp the number of statements to copy when the
26545         thread path does not traverse a loop backedge.
26547         PR tree-optimization/69196
26548         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
26549         Do count some PHIs in the thread path against the insn count.  Decrease
26550         final statement count by one as the control statement in the last
26551         block will get removed.  Remove special cased code for handling PHIs
26552         in the last block.
26554 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
26556         PR target/70027
26557         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
26558         asm dialect alternatives to explicit GOTPCREL calls.
26560 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
26562         PR ada/70017
26563         * ira.c (do_reload): Issue warning for generic stack checking here...
26564         * reload1.c (reload): ...instead of here and streamline it.
26566 2016-03-01  Nick Clifton  <nickc@redhat.com>
26568         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
26570 2016-03-01  Richard Biener  <rguenther@suse.de>
26572         PR tree-optimization/69983
26573         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
26574         types and fall back to operand_equal_p.
26576 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26578         Revert
26579         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26581         * config/s390/constraints.md ("jm8"): New constraint.
26582         * config/s390/predicates.md ("const_int_8bitset_operand"): New
26583         predicate.
26584         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
26585         into ...
26586         ("*setmem_long<setmem_and>"): New pattern.
26587         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
26588         into ...
26589         ("*setmem_long_31z<setmem_and>"): New pattern.
26590         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
26591         New substitution rules with the required attributes.
26594 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26596         Revert
26597         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26599         * gensupport.c (process_substs_on_one_elem): Split loop to
26600         complete mark_operands_used_in_match_dup on all expressions in the
26601         vector first.
26602         (adjust_operands_numbers): Inline into process_substs_on_one_elem
26603         and remove function.
26605 2016-03-01  Richard Biener  <rguenther@suse.de>
26607         PR middle-end/70022
26608         * fold-const.c (fold_indirect_ref_1): Fix range checking for
26609         vector BIT_FIELD_REF extract.
26611 2016-03-01  Richard Biener  <rguenther@suse.de>
26613         PR tree-optimization/69994
26614         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
26616 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
26618         PR tree-optimization/69956
26619         * tree-vect-stmts.c (supportable_widening_operation): Support
26620         multi-step conversion of boolean vectors.
26621         (supportable_narrowing_operation): Likewise.
26623 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26625         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
26626         anymore.
26628 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26630         * config/s390/subst.md (DSI_VI): New mode iterator.
26631         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
26632         * config/s390/vector.md ("vec_set<mode>"): Move expander before
26633         the insn definition.
26634         ("*vec_set<mode>"): Change predicate and add alternative to
26635         support only either register or const_int operands as element
26636         selector.
26637         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
26638         operands.
26639         ("vec_extract<mode>"): New expander.
26640         ("*vec_extract<mode>"): New insn definition supporting reg and
26641         const_int element selectors.
26642         ("*vec_extract<mode>_plus"): New insn definition supporting
26643         reg+const_int element selectors.
26644         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
26645         following expander+insn definition.
26646         ("<vec_shifts_name><mode>3"): New expander.
26647         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
26649 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26651         * config/s390/s390.md ("*tabort_1"): Change predicate to
26652         nonmemory_operand.  Add a second alternative to cover
26653         register as well as const int operands.
26654         ("*tabort_1_plus"): New pattern definition.
26656 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26658         * config/s390/s390.md ("*ashrdi3_cc_31")
26659         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
26660         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
26661         Merge insn definitions into ...
26662         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
26663         New pattern definition.
26664         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
26665         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
26666         ("*ashr<mode>3_and"): Merge insn definitions into ...
26667         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
26668         New pattern definition.
26669         * config/s390/subst.md ("addr_style_op_cc_subst")
26670         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
26671         substitutions patterns plus attributes.
26672         Add ashiftrt to SUBST iterator.
26674 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26676         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
26677         op2 to nonmemory_operand.
26678         ("*<shift>di3_31", "*<shift>di3_31_and"):
26679         Merge into single pattern definition ...
26680         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
26681         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
26682         pattern definition ...
26683         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
26684         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
26685         iterator.
26687 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26689         * config/s390/predicates.md (const_int_6bitset_operand): New
26690         predicate.
26691         * config/s390/s390.md: Include subst.md.
26692         ("rotl<mode>3"): New expander.
26693         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
26694         ...
26695         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
26696         * config/s390/subst.md: New file.
26698 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26700         * config/s390/s390.md ("op_type", "atype", "length" attributes):
26701         Remove RRR type.  It doesn't really exist.
26702         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
26703         attributes.
26704         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
26705         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
26706         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
26707         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
26708         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
26709         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
26710         `enabled' attribute.
26712 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26714         * gensupport.c (process_substs_on_one_elem): Split loop to
26715         complete mark_operands_used_in_match_dup on all expressions in the
26716         vector first.
26717         (adjust_operands_numbers): Inline into process_substs_on_one_elem
26718         and remove function.
26720 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
26722         PR target/69706
26723         * config/sparc/sparc.c (NWORDS_UP): Rename to...
26724         (CEIL_NWORDS): ...this.  Use CEIL macro.
26725         (compute_fp_layout): Adjust to above renaming.
26726         (function_arg_union_value): Likewise.
26727         (sparc_arg_partial_bytes): Likewise.
26728         (sparc_function_arg_advance): Likewise.
26730 2016-02-29  Jeff Law  <law@redhat.com>
26732         PR tree-optimization/70005
26733         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
26734         where an object with a boolean range is compared against a value
26735         outside [0..1].
26737         PR tree-optimization/69999
26738         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
26739         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
26740         loop cleanups.
26742 2016-02-29  Richard Biener  <rguenther@suse.de>
26744         PR tree-optimization/69994
26745         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
26746         (get_unary_op): Look through nop conversions.
26747         (ops_equal_values_p): New function, look for equality diregarding
26748         nop conversions.
26749         (eliminate_plus_minus_pair): Use ops_equal_values_p
26750         (repropagate_negates): Do not use get_unary_op here.
26752 2016-02-29  Martin Liska  <mliska@suse.cz>
26754         * system.h: Poison ENABLE_CHECKING macro.
26756 2016-02-29  Martin Liska  <mliska@suse.cz>
26758         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
26759         is presented in dump flags.
26760         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
26761         (hsa_regalloc): Likewise.
26763 2016-02-19  Richard Biener  <rguenther@suse.de>
26765         PR tree-optimization/69980
26766         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
26767         permutation of those we need to keep.
26769 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
26771         PR target/69706
26772         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
26773         (NWORDS_UP): ...this
26774         (init_cumulative_args): Minor tweaks.
26775         (sparc_promote_function_mode): Likewise.
26776         (scan_record_type): Delete.
26777         (traverse_record_type): New function template.
26778         (classify_data_t): New structure type.
26779         (classify_registers): New inline function.
26780         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
26781         exhausted.  Instantiate traverse_record_type on classify_registers and
26782         deal with the case of a structure passed in slot #15 with no FP field
26783         in the first word.
26784         (assign_data_t): New structure type.
26785         (compute_int_layout): New static function.
26786         (compute_fp_layout): Likewise.
26787         (count_registers): New inline function.
26788         (assign_int_registers): New static function.
26789         (assign_fp_registers): Likewise.
26790         (assign_registers): New inline function.
26791         (function_arg_record_value_1): Delete.
26792         (function_arg_record_value_2): Likewise.
26793         (function_arg_record_value_3): Likewise.
26794         (function_arg_record_value): Adjust to above changes.  Instantiate
26795         traverse_record_type on count_registers to first count the number of
26796         registers to be used and then on assign_registers to assign them.
26797         (function_arg_union_value): Adjust to above renaming.
26798         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
26799         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
26800         case of a structure passed in slot #15
26801         (sparc_function_arg_advance): Likewise.
26802         (function_arg_padding): Minor tweak.
26804 2016-02-29  Richard Biener  <rguenther@suse.de>
26806         PR tree-optimization/69720
26807         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
26808         the adjustment_def path for possibly vectorized defs.
26809         (vect_create_epilog_for_reduction): Handle vectorized initial
26810         defs properly.
26812 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
26814         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
26816 2016-02-27  Jeff Law  <law@redhat.com>
26818         Revert
26819         2016-02-26  Richard Biener  <rguenther@suse.de>
26820                     Jeff Law  <law@redhat.com>
26822         PR tree-optimization/69740
26823         * cfghooks.c (remove_edge): Request loop fixups if we delete
26824         an edge that might turn an irreducible loop into a natural
26825         loop.
26827 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
26829         PR rtl-optimization/69896
26830         * tree-vect-generic.c (get_compute_type): Avoid single element
26831         vector types.
26833 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
26835         Rename the AArch64 tuning option and related functions to enable the
26836         Newton series for the reciprocal square root to reflect its
26837         approximative characteristic.
26839         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
26840         function to "aarch64_emit_approx_rsqrt".
26841         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
26842         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
26843         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
26844         (xgene1_tunings): Likewise.
26845         (use_rsqrt_p): Likewise.
26846         (aarch64_emit_swrsqrt): Use new function name.
26847         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
26848         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
26849         text explaining this option.
26850         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
26852 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
26854         PR target/69969
26855         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
26856         complain about -mallow-movmisalign without -mvsx if
26857         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
26859 2016-02-26  Joel Sherrill  <joel@rtems.org>
26861         * config.gcc: Add x86_64-*-rtems*.
26862         * config/i386/rtems-64.h: New file.
26864 2016-02-26  Joel Sherrill  <joel@rtems.org>
26866         * config.gcc: Add aarch64-*-rtems*.
26867         * config/aarch64/rtems.h: New file.
26869 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
26871         PR target/69946
26872         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
26873         shift amount using %h.  Add comment.
26875 2016-02-26  Richard Biener  <rguenther@suse.de>
26876             Jeff Law  <law@redhat.com>
26878         PR tree-optimization/69740
26879         * cfghooks.c (remove_edge): Request loop fixups if we delete
26880         an edge that might turn an irreducible loop into a natural
26881         loop.
26883 2016-02-26  Martin Jambor  <mjambor@suse.cz>
26885         PR middle-end/69920
26886         * tree-sra.c (sra_modify_assign): Do not remove loads of
26887         uninitialized aggregates to SSA_NAMEs.
26889 2016-02-26  Richard Henderson  <rth@redhat.com>
26891         PR target/69709
26892         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
26893         pseudo in case the target rtx matches the source of the left
26894         shift.
26896 2016-02-26  Martin Jambor  <mjambor@suse.cz>
26898         PR hsa/69568
26899         * hsa.h (hsa_type_packed_p): Declare.
26900         * hsa.c (hsa_type_packed_p): New function.
26901         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
26902         loads.
26903         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
26904         * hsa-brig.c (emit_basic_insn): Likewise.
26906 2016-02-26  Martin Jambor  <mjambor@suse.cz>
26908         pr hsa/69674
26909         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
26910         pointers.
26911         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
26913 2016-02-26  Martin Jambor  <mjambor@suse.cz>
26915         * hsa.h (is_a_helper): New overload for hsa_op_immed for
26916         hsa_op_with_type operands.
26917         (hsa_unsigned_type_for_type): Declare.
26918         * hsa.c (hsa_unsigned_type_for_type): New function.
26919         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
26920         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
26921         the finalizer.  Do not emit extra move.
26923 2016-02-26  Martin Jambor  <mjambor@suse.cz>
26925         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
26926         atomic operations in private segment.
26928 2016-02-26  Martin Jambor  <mjambor@suse.cz>
26930         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
26931         statements to wi->info.  Also disallow omp simd constructs.
26932         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
26933         for not gridifying.  Dump special string for omp_for.
26935 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26937         PR target/69245
26938         * config/aarch64/aarch64.c (aarch64_set_current_function):
26939         Save/restore target globals when switching to
26940         target_option_default_node.
26942 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26944         PR target/69613
26945         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
26946         Return 0 if !SHIFT_COUNT_TRUNCATED.
26948 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
26949             Eric Botcazou  <ebotcazou@adacore.com>
26951         PR rtl-optimization/69891
26952         * dse.c (scan_insn): If we can't figure out memset arguments
26953         or they are non-constant, call clear_rhs_from_active_local_stores.
26955 2016-02-26  Martin Liska  <mliska@suse.cz>
26957         * doc/extend.texi: Mention clog10, clog10f an clog10l
26958         in Builtins section.
26960 2016-02-26  Martin Liska  <mliska@suse.cz>
26962         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
26963         CHECKING_P.
26964         (resolve_args_picking_1): Likewise.
26965         * dwarf2out.h (struct GTY): Likewise.
26967 2016-02-26  Martin Liska  <mliska@suse.cz>
26969         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
26970         with flag_checking.
26971         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
26973 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
26974             Martin Liska  <mliska@suse.cz>
26976         * doc/install.texi: Mention --enable-valgrind-annotations.
26978 2016-02-26  Richard Biener  <rguenther@suse.de>
26980         PR tree-optimization/69551
26981         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
26982         looking through aliases adjust DECL_PT_UID to refer to the
26983         ultimate alias target.
26985 2016-02-25  Martin Liska  <mliska@suse.cz>
26987         PR middle-end/69919
26988         * alloc-pool.c (after_memory_report): New variable.
26989         * alloc-pool.h (base_pool_allocator ::release): Do not use
26990         the infrastructure if after_memory_report.
26991         * toplev.c (toplev::main): Mark after memory report.
26993 2016-02-25  Richard Biener  <rguenther@suse.de>
26995         PR tree-optimization/48795
26996         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
26998 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
27000         PR driver/68463
27001         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
27002         offloading is enabled and -fopenacc or -fopenmp is specified.
27003         (CRTOFFLOADEND): Likewise.
27004         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
27005         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
27006         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
27007         (offload_objects_file_name): New static var.
27008         (tool_cleanup): Remove offload_objects_file_name file.
27009         (find_offloadbeginend): Replace with ...
27010         (find_crtoffloadtable): ... this.
27011         (run_gcc): Remove offload_argc and offload_argv.
27012         Get offload_objects_file_name from -foffload-objects=... option.
27013         Read names of object files with offload from this file, pass them to
27014         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
27015         don't pass offloadbegin and offloadend to the linker.  Don't pass
27016         offload non-LTO files to the linker, because now they're not claimed.
27018 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
27020         PR ipa/69630
27021         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
27022         on builtin_unreachable.
27024 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
27026         PR rtl-optimization/69896
27027         * regcprop.c: Include cfgrtl.h.
27028         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
27029         than remembered mode, either delete it (if noop_move_p), or
27030         treat like copy_p but not noop_p instruction.
27032 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
27034         PR debug/69705
27035         * dwarf2out.c (gen_variable_die): Work around buggy LTO
27036         - allow NULL decl for Fortran DW_TAG_common_block variables.
27038 2016-02-24  Jason Merrill  <jason@redhat.com>
27040         * common.opt (flifetime-dse): Add -flifetime-dse=1.
27042 2016-02-24  Richard Biener  <rguenther@suse.de>
27043             Jakub Jelinek  <jakub@redhat.com>
27045         PR middle-end/69760
27046         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
27047         conditionally executed ops to well-defined overflow behavior.
27049 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
27051         PR middle-end/69915
27052         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
27053         elements.
27055 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27057         PR rtl-optimization/69886
27058         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
27059         argument.  Use it when checking validity of set instructions.
27060         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
27061         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
27062         callsite.
27063         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
27064         * store-motion.c (find_moveable_store): Update
27065         can_assign_to_reg_without_clobbers_p callsite.
27067 2016-02-24  Richard Biener  <rguenther@suse.de>
27069         PR middle-end/68963
27070         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
27071         bogus check.
27072         (record_nonwrapping_iv): Do not fall back to the low/high bound
27073         for non-constant IV bases if the stmt is not always executed.
27075 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27077         * config/arm/arm-cores.def (cortex-a32): New entry.
27078         * config/arm/arm-tables.opt: Regenerate.
27079         * config/arm/arm-tune.md: Regenerate.
27080         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
27081         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
27082         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
27083         for -mcpu and -mtune.
27085 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27087         PR target/69875
27088         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
27089         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
27090         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
27091         (atomic_loaddi_1): Delete.
27092         (atomic_loaddi): Rewrite expander using the above changes.
27094 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
27096         PR c/69918
27097         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
27098         2 to 3.
27100 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
27101             Richard Biener  <rguenth@suse.de>
27103         PR middle-end/69909
27104         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
27105         set_mem_attributes if tem is SSA_NAME which got expanded
27106         as a MEM.
27108 2016-02-24  Richard Biener  <rguenther@suse.de>
27110         PR tree-optimization/69907
27111         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
27112         end of permutations for BB vectorization.
27114 2016-02-24  Christian Bruel  <christian.bruel@st.com>
27116         * config/arm/arm-c.c (arm_option_override): Initialize
27117         target_option_current_node.
27118         * config/arm/arm.c (arm_pragma_target_parse): Replace
27119         build_target_option_node call by target_option_current_node.
27120         Set target_option_current_node.
27121         Fix comments.
27123 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
27125         PR target/69810
27126         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
27127         define_insn_and_split to define_insn.
27128         (zero_extendqi<mode>2_dot2): Same.
27129         (extendqi<mode>2_dot): Same.
27130         (extendqi<mode>2_dot2): Same.
27132 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
27134         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
27135         and add bypass for AES{D,E} and AESMC pairs.
27136         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
27137         and AESMC pairs.
27139 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
27141         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
27142         series for reciprocal square root in Exynos M1.
27144 2016-02-23  Martin Sebor  <msebor@redhat.com>
27146         PR c/69759
27147         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
27148         __builtin_alloca_with_align.
27150 2016-02-23  Richard Henderson  <rth@redhat.com>
27152         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
27153         (ix86_register_pragmas): Remove __seg_tls.
27154         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
27155         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
27156         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
27157         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
27158         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
27159         * doc/extend.texi (__seg_tls): Remove item.
27161 2016-02-23  Richard Biener  <rguenther@suse.de>
27163         * alloc-pool.h (struct allocation_object): Make id member
27164         conditional on CHECKING_P again.
27165         (get_instance): Adjust.
27166         (base_pool_allocator): Likewise.
27168 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
27170         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
27171         (parallelize_loops): In OpenACC kernels mode, set n_threads to
27172         zero.
27173         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
27174         flag_openacc.
27175         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
27177 2016-02-23  Richard Biener  <rguenther@suse.de>
27179         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
27180         * bitmap.h (struct bitmap_usage): Likewise.
27181         (bitmap_move): Declare.
27182         * bitmap.c (register_overhead): Take size_t argument.
27183         (bitmap_move): New function.
27184         * df-problems.c (df_rd_transfer_function): Use bitmap_move
27185         to properly account overhead.
27186         * tree.c (free_node): Use tree_size.
27188 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
27190         PR c++/69902
27191         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
27192         when inverting comparison.
27194         PR c/69900
27195         * common.opt (Wunreachable-code): Add Warning flag.
27197 2016-02-23  Mark Wielaard  <mjw@redhat.com>
27198             Jakub Jelinek  <jakub@redhat.com>
27200         PR c/69911
27201         * cgraphunit.c (check_global_declaration): Check main_input_filename
27202         and DECL_SOURCE_FILE are not NULL.
27204 2016-02-23  Martin Jambor  <mjambor@suse.cz>
27206         PR tree-optimization/69666
27207         * tree-sra.c (sra_modify_assign): Do not attempt to create
27208         default_def replacements for unscalarizable regions.
27210 2016-02-20  Mark Wielaard  <mjw@redhat.com>
27212         PR c/28901
27213         * cgraphunit.c (check_global_declaration): Check level of
27214         warn_unused_const_variable and main_input_filename.
27215         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
27216         (-Wunused-variable): For C implies -Wunused-const-variable=1.
27217         (-Wunused-const-variable): Explain levels 1 and 2.
27219 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
27221         PR target/69888
27222         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
27223         identical arguments.  Formatting and spelling fixes.
27225         PR target/69885
27226         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
27227         be specified.
27229         PR target/69894
27230         PR target/69895
27231         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
27232         and m68k-devices.def.
27233         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
27234         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
27236 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
27238         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
27239         and HImode registers.
27241 2016-02-22  Richard Biener  <rguenther@suse.de>
27243         PR tree-optimization/69882
27244         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
27245         preserve permutations present because of gaps.
27246         (vect_supported_load_permutation_p): Always continue checking
27247         permutations after vect_attempt_slp_rearrange_stmts.
27249 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
27251         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
27252         min_profitable_estimate, rather than min_profitable_iters.
27254 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
27256         PR target/69885
27257         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
27258         SImode for last match_operand.
27260 2016-02-22  Martin Liska  <mliska@suse.cz>
27262         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
27263         return bitsize - 1 as the return value.
27265 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
27267         PR target/69806
27268         PR target/54089
27269         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
27270         Handle negative shift counts.
27271         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
27272         force_reg on the shift constant.
27273         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
27274         (lshrsi3_d): Handle negative shift counts.
27276 2016-02-22  Richard Biener  <rguenther@suse.de>
27277             Tom de Vries  <tom@codesourcery.com>
27279         * graph.c: Include dumpfile.h.
27280         (print_graph_cfg): Split into three overloads.
27281         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
27283 2016-02-22  Tom de Vries  <tom@codesourcery.com>
27285         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
27286         dump-fn.
27288 2016-02-22  Richard Biener  <rguenther@suse.de>
27290         PR ipa/37448
27291         * ipa-inline-transform.c (inline_call): When not updating
27292         overall summaries adjust self size by the growth estimate.
27293         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
27294         hash-set, do not update overall summaries here.  Renamed from ...
27295         (inline_to_all_callers): ... this which is now wrapping the
27296         above and performing delayed overall summary update.
27297         (early_inline_small_functions): Delay updating of the overall
27298         summary.
27300 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
27302         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
27303         variable.
27305 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
27307         PR driver/69805
27308         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
27309         :%* in %:gt() argument.
27310         (greater_than_spec_func): Adjust for expecting only numbers,
27311         if there are more than two numbers, compare the last two.
27313 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
27315         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
27316         -Wnarrowing with -std.
27318 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
27320         PR c++/69851
27321         * expr.c (store_field): Don't use bit-field path if exp is
27322         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
27323         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
27324         and the assignment can be performed by bitwise copy.  Formatting
27325         fix.
27327         PR middle-end/69838
27328         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
27329         call copy_reg_eh_region_note_forward on before and/or after sequences
27330         and remove note from insn if it no longer can throw.
27332         PR target/69820
27333         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
27334         if TARGET_AVX512BW.
27336 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27338         * config/s390/vector.md: Add missing commutative operand markers
27339         to the patterns which qualify for one.
27340         * config/s390/vx-builtins.md: Likewise.
27342 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27344         * config/s390/vector.md (VI, VI_QHS): Add single element vector
27345         types to mode iterators.
27346         (vec_double): ... and mode attribute.
27347         * config/s390/vx-builtins.md (non_vec_int): Likewise.
27349 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27351         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
27352         Change the predicate of op2 from nonimmediate to general and let
27353         reload fix it if necessary.
27355 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27357         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
27359 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27361         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
27362         mode.
27364 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27366         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
27367         * config/s390/s390.c (s390_expand_vec_movstr): New function.
27368         * config/s390/s390.md ("movstr<P:mode>"): Call
27369         s390_expand_vec_movstr.
27371 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27373         * config/s390/s390.md: Add missing output modifier for operand 1
27374         to print it as address properly.
27376 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27378         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
27379         * config/s390/2964.md: New file.
27380         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
27381         of insn grouping attributes depending on the CPU level.
27382         (s390_get_unit_mask): New function.
27383         (s390_sched_score): Remove the OOO from the scheduling macros.
27384         Add loop to calculate a score for the instruction mix.
27385         (s390_sched_reorder): Likewise plus improve debug output.
27386         (s390_sched_variable_issue): Rename macros as above.  Calculate
27387         the unit distances after actually scheduling an insn.  Improve
27388         debug output.
27389         (s390_sched_init): Clear last_scheduled_unit_distance array.
27390         * config/s390/s390.md: Include 2964.md.
27392 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
27394         PR target/69671
27395         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
27396         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
27397         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
27398         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
27399         *avx512f_<code>v8div16qi2_mask_1): New insns.
27401 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
27403         PR target/68404
27404         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
27405         2016-02-09 change.
27407         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
27408         earlyclobber from target.  Use wF constraint for fused memory
27409         address.
27410         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
27412 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
27413             Martin Liska  <mliska@suse.cz>
27415         PR sanitizer/69863
27416         * cfgexpand.c (asan_sanitize_stack_p): New function.
27417         (partition_stack_vars): Use the function.
27418         (expand_stack_vars): Likewise.
27419         (defer_stack_allocation): Likewise.
27420         (expand_used_vars): Likewise.
27422 2016-02-18  Richard Biener  <rguenther@suse.de>
27424         PR middle-end/69553
27425         * fold-const.c (operand_equal_p): Properly compare offsets for
27426         IMAGPART_EXPR and ARRAY_REF.
27428 2016-02-18  Nick Clifton  <nickc@redhat.com>
27430         PR target/62254
27431         PR target/69610
27432         * config/arm/arm.c (arm_option_override_internal): Disable
27433         interworking if the target does not support thumb instructions.
27434         (arm_reload_in_hi): Handle the case where a register to register
27435         move needs reloading because there is no simple pattern to handle
27436         it.
27437         (arm_reload_out_hi): Likewise.
27439 2016-02-18  Richard Biener  <rguenther@suse.de>
27441         PR middle-end/69854
27442         * match.pd: Don't use fold_binary or fold_unary for folding
27443         constants.
27445 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
27447         PR c++/69850
27448         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
27449         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
27450         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
27451         warn on gimple_no_warning_p statements.
27453 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
27455         * doc/extend.texi (C++ Attributes): Correct description of
27456         warn_unused type attribute.
27458 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27460         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
27461         correct instruction.
27463 2016-02-17  Richard Biener  <rguenther@suse.de>
27465         PR rtl-optimization/69609
27466         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
27467         (find_traces_1_round): When ending a trace update cached priority
27468         of successors.
27469         (bb_to_key): Use cached priority when available.
27470         (copy_bb): Initialize cached priority.
27471         (reorder_basic_blocks_software_trace_cache): Likewise.
27473 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27475         PR target/69161
27476         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
27477         New predicate.
27478         (aarch64_comparison_operator): Break overly long line into two.
27479         (aarch64_comparison_operation): Likewise.
27480         * config/aarch64/aarch64.md (cstorecc4): Use
27481         aarch64_comparison_operator_mode instead of
27482         aarch64_comparison_operator.
27483         (cstore<mode>4): Likewise.
27484         (aarch64_cstore<mode>): Likewise.
27485         (*cstoresi_insn_uxtw): Likewise.
27486         (cstore<mode>_neg): Likewise.
27487         (*cstoresi_neg_uxtw): Likewise.
27489 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27491         PR target/69161
27492         * config/arm/predicates.md (arm_comparison_operator_mode):
27493         New predicate.
27494         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
27495         instead of arm_comparison_operator.
27496         (*mov_negscc): Likewise.
27497         (*mov_notscc): Likewise.
27498         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
27499         (*thumb2_mov_negscc): Likewise.
27500         (*thumb2_mov_negscc_strict_it): Likewise.
27501         (*thumb2_mov_notscc): Likewise.
27502         (*thumb2_mov_notscc_strict_it): Likewise.
27504 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
27506         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
27507         Add missing return.
27509 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
27511         * config/visium/visium.c (machine_libfunc_index): New enum.
27512         (machine_libfuncs): New structure.
27513         (visium_libfuncs): New static variable.
27514         (TARGET_INIT_LIBFUNCS): Define to...
27515         (visium_init_libfuncs): ...this.  New function.
27516         (expand_block_move_4): Use the appropriate libfunc.
27517         (expand_block_move_2): Likewise.
27518         (expand_block_move_1): Likewise.
27519         (expand_block_set_4): Likewise.
27520         (expand_block_set_2): Likewise.
27521         (expand_block_set_1): Likewise.
27522         (visium_trampoline_init): Likewise.
27524 2016-02-17  Nick Clifton  <nickc@redhat.com>
27526         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
27527         TI's devices.csv file as of March 2016.
27529 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
27531         PR Target/48344
27532         * opts-global.c (handle_common_deferred_options): Introduce and
27533         initialize two global variables to remember command-line options
27534         specifying a stack-limiting register.
27535         * opts.h: Add extern declarations of the two new global variables.
27536         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
27537         variable based on the values of the two new global variables.
27539 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
27541         PR c/69835
27542         * common.opt (Wnonnull-compare): New warning.
27543         * doc/invoke.texi (-Wnonnull): Remove text about comparison
27544         of arguments against NULL.
27545         (-Wnonnull-compare): Document.
27546         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
27547         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
27548         * passes.def (pass_warn_nonnull_compare): Add.
27549         * gimple-ssa-nonnull-compare.c: New file.
27551 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
27553         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
27554         AARCH64_EXTRA_TUNE_RECIP_SQRT.
27556 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
27558         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
27559         reciprocal sqrt for -mlow-precision-recip-sqrt.
27561 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
27562             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27564         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
27565         always use lane loads to construct non-constant vectors.
27567 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
27569         * config/aarch64/aarch64.md
27570         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
27571         constraints for operand 3.
27572         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
27574 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
27575             Richard Biener  <rguenther@suse.de>
27577         PR tree-optimization/69820
27578         * tree-vect-patterns.c (type_conversion_p): Return false if
27579         *orig_type is unsigned single precision or boolean.
27580         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
27581         Formatting fix.
27583 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
27585         PR rtl-optimization/69764
27586         PR rtl-optimization/69771
27587         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
27588         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
27590 2016-02-16  Richard Biener  <rguenther@suse.de>
27592         PR tree-optimization/69776
27593         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
27594         sets from caller.
27595         (indirect_refs_may_alias_p): Likewise.
27596         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
27597         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
27598         according to tbaa_p.
27599         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
27600         (optimize_stmt): For redundant store discovery do not allow tbaa.
27602 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
27604         PR tree-optimization/69714
27605         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
27606         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
27608 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
27610         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
27611         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
27612         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
27613         * config/arc/arc.c (arc_init): Check FPU options.
27614         (get_arc_condition_code): Handle new CC_FPU* modes.
27615         (arc_select_cc_mode): Likewise.
27616         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
27617         register pair only. Allow access for ARCv2 accumulator.
27618         (gen_compare_reg): Whenever we have FPU support use FPU compare
27619         instructions.
27620         (arc_reorg): Don't generate brcc insns when FPU compare
27621         instructions are involved.
27622         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
27623         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
27624         floating point emulation.
27625         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
27626         (REVERSE_CONDITION): Add new CC_FPU* modes.
27627         (TARGET_FP_SP_BASE): Define.
27628         (TARGET_FP_DP_BASE): Likewise.
27629         (TARGET_FP_SP_FUSED): Likewise.
27630         (TARGET_FP_DP_FUSED): Likewise.
27631         (TARGET_FP_SP_CONV): Likewise.
27632         (TARGET_FP_DP_CONV): Likewise.
27633         (TARGET_FP_SP_SQRT): Likewise.
27634         (TARGET_FP_DP_SQRT): Likewise.
27635         (TARGET_FP_DP_AX): Likewise.
27636         * config/arc/arc.md (ARCV2_ACC): New constant.
27637         (type): New fpu type attribute.
27638         (SDF): Conditional iterator.
27639         (cstore<mode>, cbranch<mode>): Change expand condition.
27640         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
27641         handles FPU/FPX cases as well.
27642         * config/arc/arc.opt (mfpu): New option.
27643         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
27644         Renamed.
27645         (adddf3, muldf3, subdf3): Removed.
27646         * config/arc/predicates.md (proper_comparison_operator): Recognize
27647         CC_FPU* modes.
27648         * config/arc/fpu.md: New file.
27649         * doc/invoke.texi (ARC Options): Document mfpu option.
27651 2016-02-16  Richard Biener  <rguenther@suse.de>
27653         PR rtl-optimization/69291
27654         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
27655         noce_operand_ok check.
27657 2016-02-16  Tom de Vries  <tom@codesourcery.com>
27659         PR lto/67709
27660         * omp-low.c (simd_clone_create): Remove call to
27661         symtab->call_cgraph_insertion_hooks.
27663 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
27665         PR tree-optimization/69802
27666         * tree-ssa-reassoc.c (update_range_test): If op is
27667         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
27668         op == 1 test of precision 1 integral op, otherwise handle
27669         that case as op itself.  Fix up formatting.
27670         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
27671         up formatting.
27673 2016-02-16  Richard Biener  <rguenther@suse.de>
27675         PR tree-optimization/69586
27676         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
27677         types for conversion sources.
27679 2016-02-16  Richard Biener  <rguenther@suse.de>
27681         PR middle-end/69801
27682         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
27683         mask OEP_ADDRESS_OF.
27685 2016-02-16  Alan Modra  <amodra@gmail.com>
27687         PR target/68973
27688         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
27689         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
27690         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
27691         (p8_mtvsrwz): New.
27692         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
27693         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
27694         (p8_fmrgow_<mode>): Likewise.
27695         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
27696         changes.
27697         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
27698         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
27699         to use movdi_internal64.  Remove op0_di.
27700         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
27702 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
27704         Add support for the FCCMP insn types
27706         * config/aarch64/aarch64.md (fccmp): Change insn type.
27707         (fccmpe): Likewise.
27708         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
27709         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
27710         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
27711         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
27712         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
27713         * config/arm/types.md (fccmps): Add new insn type.
27714         (fccmpd): Likewise.
27716 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
27718         * alias.c (get_alias_set): Fix a typo in comment.
27720 2016-02-15  Richard Biener  <rguenther@suse.de>
27722         PR tree-optimization/69595
27723         * match.pd: Complete range test simplification to true.
27725 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
27727         PR rtl-optimization/69648
27728         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
27729         pic_offset_table_rtx.
27731         PR rtl-optimization/69752
27732         * ira.c (update_equiv_regs): When looking for more than a single SET,
27733         also take other side effects into account.
27735 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
27737         * config/s390/s390.c (s390_function_profiler): Add a new sequence
27738         for z900+ CPUs in 31-bit mode.
27740 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
27742         * common/config/s390/s390-common.c (s390_supports_split_stack):
27743         New function.
27744         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
27745         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
27746         * config/s390/s390.c (struct machine_function): New field
27747         split_stack_varargs_pointer.
27748         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
27749         in s390_emit_prologue.
27750         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
27751         vararg pointer.
27752         (morestack_ref): New global.
27753         (SPLIT_STACK_AVAILABLE): New macro.
27754         (s390_expand_split_stack_prologue): New function.
27755         (s390_live_on_entry): New function.
27756         (s390_va_start): Use split-stack vararg pointer if appropriate.
27757         (s390_asm_file_end): Emit the split-stack note sections.
27758         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
27759         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
27760         (UNSPECV_SPLIT_STACK_CALL): New unspec.
27761         (UNSPECV_SPLIT_STACK_DATA): New unspec.
27762         (split_stack_prologue): New expand.
27763         (split_stack_space_check): New expand.
27764         (split_stack_data): New insn.
27765         (split_stack_call): New expand.
27766         (split_stack_call_*): New insn.
27767         (split_stack_cond_call): New expand.
27768         (split_stack_cond_call_*): New insn.
27770 2016-02-15  Richard Biener  <rguenther@suse.de>
27772         PR tree-optimization/69783
27773         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
27774         Add trivially correct cases.
27776 2016-02-15  Tom de Vries  <tom@codesourcery.com>
27778         PR lto/69655
27779         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
27780         do_force_output.
27781         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
27783 2016-02-15  Richard Biener  <rguenther@suse.de>
27785         PR tree-optimization/69776
27786         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
27787         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
27788         indicate whether we can use TBAA to disambiguate against stores.
27789         Use alias-set zero if not.
27790         (visit_reference_op_store): Do not use TBAA when looking up
27791         redundant stores.
27792         * tree-ssa-pre.c (compute_avail): Use TBAA here.
27793         (eliminate_dom_walker::before_dom_children): But not when looking
27794         up redundant stores.
27796 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
27798         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
27800 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
27802         *  config/i386/znver1.md
27803         (znver1_pop, znver1_pop_mem,
27804         znver1_load_imov_double_store,
27805         znver1_load_imov_direct_store,
27806         znver1_load_imov_direct_load,
27807         znver1_load_imov_double_load): Add new.
27808         (znver1_insn, znver1_insn_load): Add icmov type.
27809         (znver1_sseavx_fma,
27810         znver1_sseavx_fma_load,
27811         znver1_avx256_fma,
27812         znver1_avx256_fma_load): Fix pipe usage.
27814 2016-02-14  Alan Modra  <amodra@gmail.com>
27816         PR target/68973
27817         * reload.c (find_reloads_address_1): For pre/post-inc/dec
27818         with an invalid hard reg, reload just the reg not the entire
27819         pre/post-inc/dec address expression.
27821 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
27823         PR target/67260
27824         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
27825         fixed R1_REG scratch reg.
27826         (sibcall_value_pcrel_fdpic): Likewise.
27828 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
27830         PR target/67636
27831         PR target/64345
27832         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
27834 2016-02-12  Walter Lee  <walt@tilera.com>
27836         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
27837         * config/tilegx/t-tilegx: Likewise.
27839 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
27841         PR other/69554
27842         * diagnostic-show-locus.c (struct line_span): New struct.
27843         (layout::get_first_line): Delete.
27844         (layout::get_last_line): Delete.
27845         (layout::get_num_line_spans): New member function.
27846         (layout::get_line_span): Likewise.
27847         (layout::print_heading_for_line_span_index_p): Likewise.
27848         (layout::get_expanded_location): Likewise.
27849         (layout::calculate_line_spans): Likewise.
27850         (layout::m_first_line): Delete.
27851         (layout::m_last_line): Delete.
27852         (layout::m_line_spans): New field.
27853         (layout::layout): Update comment.  Replace m_first_line and
27854         m_last_line with m_line_spans, replacing their initialization
27855         with a call to calculate_line_spans.
27856         (diagnostic_show_locus): When printing source lines and
27857         annotations, rather than looping over a single span
27858         of lines, instead loop over each line_span within
27859         the layout, with an inner loop over the lines within them.
27860         Call the context's start_span callback when changing line spans.
27861         * diagnostic.c (diagnostic_initialize): Initialize start_span.
27862         (diagnostic_build_prefix): Break out the building of the location
27863         part of the string into...
27864         (diagnostic_get_location_text): ...this new function, rewriting
27865         it from nested ternary expressions to a sequence of "if"
27866         statements.
27867         (default_diagnostic_start_span_fn): New function.
27868         * diagnostic.h (diagnostic_start_span_fn): New typedef.
27869         (diagnostic_context::start_span): New field.
27870         (default_diagnostic_start_span_fn): New prototype.
27872 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
27874         PR driver/69779
27875         * gcc.c (driver::finalize): Fix cleanup of "specs".
27877 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
27879         PR driver/69265
27880         PR driver/69453
27881         * gcc.c (driver::driver): Initialize m_option_suggestions.
27882         (driver::~driver): Clean up m_option_suggestions.
27883         (suggest_option): Convert to...
27884         (driver::suggest_option): ...this, and split out into
27885         driver::build_option_suggestions and find_closest_string.
27886         (driver::build_option_suggestions): New function, from
27887         first half of suggest_option.  Special-case
27888         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
27889         the sanitizer_opts array.  For options of enum types, add the
27890         various enum values to the candidate strings.
27891         (driver::handle_unrecognized_options): Remove "const".
27892         * gcc.h (driver::handle_unrecognized_options): Likewise.
27893         (driver::build_option_suggestions): New decl.
27894         (driver::suggest_option): New decl.
27895         (driver::m_option_suggestions): New field.
27896         * opts-common.c (add_misspelling_candidates): New function.
27897         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
27898         and make non-static.
27899         * opts.h (sanitizer_opts): New array decl.
27900         (add_misspelling_candidates): New function decl.
27901         * spellcheck.c (find_closest_string): New function.
27902         * spellcheck.h (find_closest_string): New function decl.
27904 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
27906         PR rtl-optimization/69764
27907         PR rtl-optimization/69771
27908         * optabs.c (expand_binop_directly): For shift_optab_p, force
27909         convert_modes with VOIDmode if xop1 has VOIDmode.
27911 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
27913         PR target/69729
27914         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
27915         to correctly determine instrumentation thunks.
27917 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
27919         PR ipa/69241
27920         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
27921         type by reference, force lhs on the call.
27923         PR ipa/68672
27924         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
27925         Compute retval and retbnd early in all cases if split_part_return_p
27926         and return_bb is not EXIT.  Remove all clobber stmts and reset
27927         all debug stmts that refer to SSA_NAMEs defined in split part,
27928         except if it is retval, in that case replace the old retval with the
27929         lhs of the call to the split part.
27931 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
27933         revert:
27934         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
27936         PR middle-end/66726
27937         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
27938         whose result is used in PHI.
27939         (maybe_optimize_range_tests): Likewise.
27940         (final_range_test_p): Likweise.
27942 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
27944         PR middle-end/66726
27945         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
27946         whose result is used in PHI.
27947         (maybe_optimize_range_tests): Likewise.
27948         (final_range_test_p): Likweise.
27950 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
27952         * cgraph.c: Spelling fixes - behaviour -> behavior and
27953         neighbour -> neighbor.
27954         * target.def: Likewise.
27955         * sel-sched.c: Likewise.
27956         * config/mips/mips.c: Likewise.
27957         * config/arc/arc.md: Likewise.
27958         * config/arm/cortex-a57.md: Likewise.
27959         * config/arm/arm.c: Likewise.
27960         * config/arm/neon.md: Likewise.
27961         * config/arm/arm-c.c: Likewise.
27962         * config/vms/vms-c.c: Likewise.
27963         * config/s390/s390.c: Likewise.
27964         * config/i386/znver1.md: Likewise.
27965         * config/i386/i386.c: Likewise.
27966         * config/ia64/hpux-unix2003.h: Likewise.
27967         * config/msp430/msp430.md: Likewise.
27968         * config/rx/rx.c: Likewise.
27969         * config/rx/rx.md: Likewise.
27970         * config/aarch64/aarch64-simd.md: Likewise.
27971         * config/aarch64/aarch64.c: Likewise.
27972         * config/nvptx/nvptx.c: Likewise.
27973         * config/bfin/bfin.c: Likewise.
27974         * config/cris/cris.opt: Likewise.
27975         * config/rs6000/rs6000.c: Likewise.
27976         * target.h: Likewise.
27977         * spellcheck.c: Likewise.
27978         * ira-build.c: Likewise.
27979         * tree-inline.c: Likewise.
27980         * builtins.c: Likewise.
27981         * lra-constraints.c: Likewise.
27982         * explow.c: Likewise.
27983         * hwint.h: Likewise.
27984         * targhooks.c: Likewise.
27985         * tree-vect-data-refs.c: Likewise.
27986         * expr.c: Likewise.
27987         * doc/tm.texi: Likewise.
27988         * doc/extend.texi: Likewise.
27989         * doc/install.texi: Likewise.
27990         * doc/md.texi: Likewise.
27991         * tree-ssa-tail-merge.c: Likewise.
27992         * sched-int.h: Likewise.
27993         * match.pd: Likewise.
27994         * sched-ebb.c: Likewise.
27995         * target.def (omit_struct_return_reg): Likewise.
27996         * gimple-ssa-isolate-paths.c: Likewise.
27997         (find_implicit_erroneous_behaviour): Renamed to...
27998         (find_implicit_erroneous_behavior): ... this.
27999         (find_explicit_erroneous_behaviour): Renamed to...
28000         (find_explicit_erroneous_behavior): ... this.
28001         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
28003 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
28005         PR rtl-optimization/64682
28006         PR rtl-optimization/69567
28007         PR rtl-optimization/69737
28008         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
28009         in I2 as well, just lose it.
28011 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28013         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
28014         New variable.
28015         (aarch64_last_printed_tune_string): Likewise.
28016         (aarch64_declare_function_name): Only output .arch assembler
28017         directive if it will be different from the previously output
28018         directive.  Same for .tune comment but only if -dA is set.
28019         (aarch64_start_file): New function.
28020         (TARGET_ASM_FILE_START): Define.
28022 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
28024         PR plugins/69758
28025         * Makefile.in (PLUGIN_HEADERS): Add params.list.
28027 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
28029         PR target/65313
28030         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
28031         -Wmaybe-uninitialized warning.
28033 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
28035         PR target/69713
28036         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
28038 2016-02-11  Richard Biener  <rguenther@suse.de>
28040         PR rtl-optimization/69291
28041         * ifcvt.c (noce_try_store_flag_constants): Do not allow
28042         subexpressions affected by changing the result.
28044 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
28046         PR target/69148
28047         * lra-constraints.c (curr_insn_transform): Find in/out operands
28048         for secondary memory moves.  Update dups.
28050 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
28052         PR tree-optimization/69652
28053         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
28054         to nested loop, did source re-formatting, skip debug statements,
28055         add check on statement with volatile operand, remove dead scalar
28056         statements.
28058 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
28059             Patrick Palka  <ppalka@gcc.gnu.org>
28061         PR ipa/69241
28062         PR c++/69649
28063         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
28064         calls if the return type is TREE_ADDRESSABLE.
28065         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
28066         * ipa-split.c (split_function): Fix doubled "we" in comment.
28067         Use void return type for the split part even if
28068         !split_point->split_part_set_retval.
28070 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
28072         PR tree-optimization/68021
28073         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
28074         when computing the value of biv cand by itself.
28076 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
28078         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
28079         (cortexa57_tunings): Likewise.
28080         (cortexa72_tunings): Likewise.
28081         (arch_macro_fusion_pair_p): Add support for AES fusion.
28082         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
28083         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
28084         Allow virtual registers before reload so early scheduling works.
28085         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
28086         correct latency and pipeline.
28087         (cortex_a57_crypto_complex): Likewise.
28088         (cortex_a57_crypto_xor): Likewise.
28089         (define_bypass): Add AES bypass.
28091 2016-02-10  Richard Biener  <rguenther@suse.de>
28093         PR tree-optimization/69726
28094         * passes.def: Add DCE pass before late uninit.
28095         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
28096         really fixup if-conversions job.
28098 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
28100         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
28101         (arm_cortex_a57_tune): Likewise.
28102         (aarch_macro_fusion_pair_p): Add support for AES fusion.
28103         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
28105 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
28107         * timevar.def (TV_PHASE_DBGINFO): Delete.
28108         (TV_PHASE_CHECK_DBGINFO): Likewise.
28109         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
28111 2016-02-10  Richard Biener  <rguenther@suse.de>
28113         PR tree-optimization/69719
28114         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
28115         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
28117 2016-02-09  Andrew Pinski  <apinski@cavium.com>
28119         PR tree-opt/69282
28120         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
28121         get_vcond_mask_icode returns false.
28123 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
28125         PR target/68404
28126         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
28127         an ADDIS that adds a pointer to a large constant that sets the
28128         upper16 bits with a load operation.
28130 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
28132         PR target/68532
28133         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
28134         order.
28135         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
28136         endian.
28137         (vzipq_s16): Likewise.
28138         (vzipq_s32): Likewise.
28139         (vzipq_f32): Likewise.
28140         (vzipq_u8): Likewise.
28141         (vzipq_u16): Likewise.
28142         (vzipq_u32): Likewise.
28143         (vzipq_p8): Likewise.
28144         (vzipq_p16): Likewise.
28146 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
28148         PR target/68532
28149         * config/arm/arm.c (neon_endian_lane_map): New function.
28150         (neon_vector_pair_endian_lane_map): New function.
28151         (arm_evpc_neon_vuzp): Allow for big endian lane order.
28152         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
28153         endian.
28154         (vuzpq_s16): Likewise.
28155         (vuzpq_s32): Likewise.
28156         (vuzpq_f32): Likewise.
28157         (vuzpq_u8): Likewise.
28158         (vuzpq_u16): Likewise.
28159         (vuzpq_u32): Likewise.
28160         (vuzpq_p8): Likewise.
28161         (vuzpq_p16): Likewise.
28163 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
28165         PR target/69634
28166         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
28167         debug insns.
28169 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
28171         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
28172         truncate const_int operand 1 to QImode.
28174 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
28176         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
28177         corresponding to an abnormal edge.
28179 2016-02-09  Tom de Vries  <tom@codesourcery.com>
28181         PR tree-optimization/69599
28182         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
28183         function.
28184         (find_func_aliases_for_builtin_call, find_func_clobbers)
28185         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
28186         partition.
28188 2016-02-09  Richard Biener  <rguenther@suse.de>
28190         PR tree-optimization/69715
28191         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
28192         LHS on calls as non-rewritable.
28194 2016-02-09  Tom de Vries  <tom@codesourcery.com>
28196         PR lto/69707
28197         * lto-wrapper.c (append_diag_options): New function.
28198         (compile_offload_image): Call append_diag_options.
28200 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
28202         PR other/69722
28203         * doc/extend.texi (Flag Output Operands): Correct sectioning.
28204         Minor copy-edit to fix verb tenses.
28206 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
28208         PR tree-optimization/69209
28209         * ipa-split.c (split_function): If split part is not
28210         returning retval, retval has gimple type but is not
28211         gimple value, force it into a SSA_NAME first.
28213 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
28215         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
28216         outdated section.
28218 2016-02-08  Jason Merrill  <jason@redhat.com>
28220         PR c++/69631
28221         * convert.c (convert_to_integer_1): Check dofold on truncation
28222         distribution.
28223         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
28224         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
28225         Rename from *_nofold.
28226         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
28227         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
28229 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
28231         PR target/60410
28232         * tree.c (build_common_tree_nodes): Remove short_double argument.
28233         All callers changed.
28234         * tree.h (build_common_tree_nodes): Adjust declaration.
28235         * doc/invoke.texi (-fshort-double): Remove documentation.
28236         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
28237         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
28238         * lto-wrapper.c (merge_and_complain, append_compiler_options)
28239         (append_linker_options): Don't handle OPT_fshort_double.
28241         PR rtl-optimization/68730
28242         * lra-remat.c (insn_to_cand_activation): New static variable.
28243         (lra_remat): Allocate and free it.
28244         (create_cand): New arg activation. Initialize a field in
28245         insn_to_cand_activation if it is nonnull.
28246         (create_cands): Pass the activation insn to create_cand when making
28247         a candidate involving an output reload.  Reorganize code a little.
28248         (do_remat): Keep track of active status of candidates in a separate
28249         bitmap.
28251 2016-02-08  Richard Biener  <rguenther@suse.de>
28253         PR tree-optimization/69719
28254         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
28255         Properly use absolute of the difference of the two offsets to
28256         compare or adjust the segment length.
28258 2016-02-08  Richard Biener  <rguenther@suse.de>
28259             Jeff Law  <law@redhat.com>
28261         PR target/68273
28262         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
28263         types for anonymous SSA names.
28265 2016-02-08   Richard Biener  <rguenther@suse.de>
28267         PR rtl-optimization/69274
28268         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
28270 2016-02-08  Jeff Law  <law@redhat.com>
28272         PR tree-optimization/65917
28273         * tree-ssa-dom.c (record_temporary_equivalences): Record both
28274         equivalences from if (x == y) style conditionals.
28275         (loop_depth_of_name): Remove.
28276         (record_equality): Remove loop depth check.
28277         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
28278         (const_and_copies::record_const_or_copy_raw): New member function.
28279         * tree-ssa-scopedtables.c
28280         (const_and_copies::record_const_or_copy_raw): New, factored out of
28281         (const_and_copies::record_const_or_copy): Call new member function.
28283 2016-02-05  Jeff Law  <law@redhat.com>
28285         PR tree-optimization/68541
28286         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
28287         (count_stmts_in_block): New function.
28288         (poor_ifcvt_candidate_code): Likewise.
28289         (is_feasible_trace): Add some heuristics to determine when path
28290         splitting is profitable.
28291         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
28292         is a diamond with a single exit.
28294 2016-02-05  Martin Sebor  <msebor@redhat.com>
28296         PR c++/69662
28297         * doc/invoke.texi: Update -Wplacement-new to take an optional
28298         argument.
28300 2016-02-06  Richard Henderson  <rth@redhat.com>
28302         PR c/69643
28303         * tree.c (tree_nop_conversion_p): Do not strip casts into or
28304         out of non-standard address spaces.
28306 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
28308         PR rtl-optimization/69691
28309         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
28311 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
28313         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
28314         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
28315         (*ieee128_mfvsrd_64bit): Likewise.
28316         (*ieee128_mfvsrd_32bit): Likewise.
28318 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
28320         PR target/69369
28321         Revert r232560:
28322         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
28324         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
28325         instrumented_version.
28327 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
28329         * doc/invoke.texi (Optimize Options): In table of --param options
28330         rename second occurrence of tracer-min-branch-ratio to
28331         tracer-min-branch-probability, rename
28332         tracer-min-branch-ratio-feedback to
28333         tracer-min-branch-probability-feedback and clarify description,
28334         rename sched-spec-state-edge-prob-cutoff to
28335         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
28336         to selsched-insns-to-rename, rename lto-minpartition to
28337         lto-min-partition, delete reorder-blocks-duplicate and
28338         reorder-blocks-duplicate-feedback.
28340 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28342         * config/s390/s390.c (s390_register_info_set_ranges): Remove
28343         superfluous loops.
28345 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
28347         * doc/extend.texi: S/390: Correct some typos.
28349 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28351         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
28353 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28355         PR target/69625
28356         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
28357         (s390_register_info_gprtofpr): Use new macros above.
28358         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
28359         its name.
28360         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
28361         its name.  Adjust restore and save gpr ranges.
28362         (s390_register_info_set_ranges): New function.
28363         (s390_register_info): Use new macros above.  Call
28364         s390_register_info_set_ranges.
28365         (s390_optimize_register_info): Likewise.
28366         (s390_hard_regno_rename_ok): Use new macros.
28367         (s390_hard_regno_scratch_ok): Likewise.
28368         (s390_emit_epilogue): Likewise.
28369         (s390_can_use_return_insn): Likewise.
28370         (s390_optimize_prologue): Likewise.
28371         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
28373 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
28375         PR bootstrap/69677
28376         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
28377         alignment fixes.
28378         (ix86_option_override_internal): Disable TARGET_STV even for
28379         -m{incoming,preferred}-stack-boundary=3.
28381 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28383         * config.gcc: Mark deprecated rtems targets as obsolete.
28385 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
28387         PR rtl-optimization/64682
28388         PR rtl-optimization/69567
28389         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
28390         before I2 only if the register is both used and set in I2.
28392 2016-02-04  DJ Delorie  <dj@redhat.com>
28394         * config/msp430/msp430.c (msp430_start_function): Add function type.
28396 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
28398         PR fortran/69368
28399         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
28401 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
28403         PR rtl-optimization/69577
28404         Revert:
28405         2015-10-29  Richard Henderson  <rth@redhat.com>
28407         PR target/68124
28408         PR rtl-opt/67609
28409         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
28410         sse check to the exact conditions of PR 67609.
28412 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
28414         PR target/69667
28415         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
28416         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
28417         not allowed into the traditional Altivec registers.
28418         (movtd_64bit_nodm): Likewise.
28419         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
28421 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
28423         * config/aarch64/cortex-a57-fma-steering.c
28424         (aarch64_register_fma_steering): Remove "static" from arguments
28425         to register_pass.
28427 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
28429         PR target/69619
28430         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
28431         twice when complex.
28433 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
28435         * doc/invoke.texi: Delete -mno-fma4.
28437 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
28439         PR rtl-optimization/69577
28440         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
28441         (find_subregs_of_mode): Update accordingly.  Iterate over partial
28442         definitions.
28444 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
28446         * config/arm/arm-protos.h (neon_reinterpret): Remove.
28447         * config/arm/arm.c (neon_reinterpret): Remove.
28448         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
28449         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
28450         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
28451         vreinterpretti): Remove.
28452         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
28453         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
28454         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
28455         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
28456         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
28457         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
28458         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
28459         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
28460         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
28461         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
28462         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
28463         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
28464         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
28465         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
28466         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
28467         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
28468         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
28469         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
28470         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
28471         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
28472         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
28473         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
28474         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
28475         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
28476         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
28477         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
28478         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
28479         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
28480         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
28481         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
28482         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
28483         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
28484         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
28485         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
28486         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
28487         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
28488         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
28489         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
28490         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
28491         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
28492         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
28493         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
28494         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
28495         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
28496         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
28497         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
28498         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
28499         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
28500         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
28501         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
28502         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
28503         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
28504         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
28505         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
28506         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
28507         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
28508         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
28509         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
28510         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
28511         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
28512         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
28513         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
28514         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
28515         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
28516         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
28517         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
28518         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
28519         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
28520         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
28521         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
28522         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
28523         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
28524         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
28525         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
28526         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
28527         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
28528         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
28529         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
28530         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
28531         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
28532         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
28533         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
28534         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
28535         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
28536         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
28537         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
28538         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
28539         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
28540         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
28541         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
28542         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
28543         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
28544         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
28545         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
28546         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
28547         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
28548         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
28549         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
28550         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
28551         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
28552         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
28553         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
28554         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
28556 2016-02-04  Martin Liska  <mliska@suse.cz>
28558         PR sanitizer/69276
28559         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
28560         that are gimple_store_p.
28561         (maybe_instrument_call): Likewise.
28563 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
28565         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
28566         register scaling out of memory reference and comment why.
28568 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28570         PR target/65932
28571         PR target/67714
28572         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
28573         folding the source of a SET.
28575 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28577         PR target/65932
28578         PR target/67714
28579         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
28580         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
28582 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
28584         PR target/65932
28585         PR target/67714
28586         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
28587         HImode.
28589 2016-02-04  Christian Bruel  <christian.bruel@st.com>
28591         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
28592         * config/arm/arm.c (arm_set_current_function): Likewise.
28594 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
28595             Ilya Enkovich  <enkovich.gnu@gmail.com>
28596             H.J. Lu  <hongjiu.lu@intel.com>
28598         PR target/69454
28599         * config/i386/i386.c (convert_scalars_to_vector): Remove
28600         stack alignment fixes.
28601         (ix86_option_override_internal): Disable TARGET_STV if stack
28602         might not be aligned enough.
28603         (ix86_minimum_alignment): Assert that TARGET_STV is false.
28605 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
28607         * config/i386/x86-tune.def: Disable default prefetching
28608         for -march=znver1.
28610 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
28611             Vladimir Makarov  <vmakarov@redhat.com>
28613         PR target/69461
28614         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
28615         in validating fused toc addresses.
28617 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
28619         PR c/69627
28620         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
28621         range->m_caret fields if range->m_show_caret_p is false.
28623         PR target/69644
28624         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
28625         Force oldval into register if it does not satisfy reg_or_short_operand
28626         predicate.  Fix up formatting.
28628 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
28629             Alexandre Oliva  <aoliva@redhat.com>
28631         PR target/69461
28632         * lra-constraints.c (simplify_operand_subreg): Check additionally
28633         address validity after potential reloading.
28634         (process_address_1): Check insns validity.  In case of failure do
28635         nothing.
28637 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
28639         PR target/69118
28640         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
28641         Fix target.
28643 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
28645         * wide-int.cc (canonize_uhwi): New function.
28646         (wi::divmod_internal): Use it.
28648 2016-02-02  James Norris  <jnorris@codesourcery.com>
28650         * gimplify.c (omp_notice_variable): Add usage check.
28652 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
28654         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
28655         like LE, GE, LT, GT when emitting relational operator.
28657 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
28659         * ira-costs.c (find_costs_and_classes): Add extra argument.
28660         * target.def (ira_change_pseudo_allocno_class): Add parameter.
28661         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
28662         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
28663         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
28664         Add best_class parameter, and return it if not ALL_REGS.
28665         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
28666         Add parameter.
28667         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
28668         Update target hook.
28670 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
28672         * config/aarch64/aarch64.c
28673         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
28674         (aarch64_ira_change_pseudo_allocno_class): New function.
28676 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
28678         PR target/67032
28679         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
28681 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
28683         * config/avr/avr.c (avr_option_override): Set
28684         PARAM_ALLOW_STORE_DATA_RACES to 1.
28686 2016-02-02  Richard Biener  <rguenther@suse.de>
28688         PR tree-optimization/69595
28689         * match.pd: Add range test simplifications to true/false.
28691 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
28693         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
28694         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
28695         instead.
28697 2016-02-02  Richard Biener  <rguenther@suse.de>
28699         PR tree-optimization/69606
28700         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
28701         info on the result before moving a stmt.
28703 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
28705         PR middle-end/68542
28706         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
28707         branch with vector comparison.
28708         * config/i386/sse.md (VI48_AVX): New mode iterator.
28709         (define_expand "cbranch<mode>4): Add support for conditional branch
28710         with vector comparison.
28711         * tree-vect-loop.c (optimize_mask_stores): New function.
28712         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
28713         has_mask_store field of vect_info.
28714         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
28715         vectorized loops having masked stores after vec_info destroy.
28716         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
28717         correspondent macros.
28718         (optimize_mask_stores): Add prototype.
28720 2016-02-02  Alan Modra  <amodra@gmail.com>
28722         PR target/69548
28723         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
28724         allow subregs.
28726 2016-02-02  Alan Modra  <amodra@gmail.com>
28728         PR target/68662
28729         * config/rs6000/rs6000.c (need_toc_init): New var, set it
28730         whenever toc_label_name used.
28731         (rs6000_file_start): Don't set up toc section here,
28732         (rs6000_output_function_epilogue): do so here instead,
28733         (rs6000_xcoff_file_start): and here.
28734         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
28735         (load_toc_aix_di): Likewise.
28737 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
28739         PR rtl-optimization/69592
28740         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
28741         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
28742         (num_sign_bit_copies_binary_arith_p): New inline function.
28743         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
28745 2016-02-01  Jeff Law  <law@redhat.com>
28747         PR tree-optimization/69580
28748         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
28749         * tree-ssa-threadbackward.c
28750         (fsm_find_control_statement_thread_paths): Do not try to walk
28751         through large PHI nodes.
28753 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
28755         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
28756         when count is incremented above limit, don't analyze further
28757         insns afterwards.
28759         * omp-low.c (oacc_parse_default_dims): Avoid
28760         -Wsign-compare warning, make sure value fits into int
28761         rather than just unsigned int.
28763 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
28765         PR tree-optimization/67921
28766         * fold-const.c (split_tree): New parameters.  Convert pointer
28767         type variable part to proper type before negating.
28768         (fold_binary_loc): Pass new arguments to split_tree.
28770 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
28772         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
28773         (nvptx_goacc_validate_dims): Extend to handle global defaults.
28774         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
28775         * doc/tm.texti: Rebuilt.
28776         * doc/invoke.texi (fopenacc-dim): Document.
28777         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
28778         (append_compiler_options): Likewise.
28779         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
28780         (oacc_parse_default_dims): New.
28781         (oacc_validate_dims): Add USED arg.  Select non-unity default when
28782         possible.
28783         (oacc_loop_fixed_partitions): Return mask of used partitions.
28784         (oacc_loop_auto_partitions): Emit dump info.
28785         (oacc_loop_partition): Return mask of used partitions.
28786         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
28787         loop partitioning and validation calls.
28789 2016-02-01  Richard Biener  <rguenther@suse.de>
28791         PR middle-end/69556
28792         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
28794 2016-02-01  Richard Biener  <rguenther@suse.de>
28796         PR tree-optimization/69574
28797         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
28798         of asserting return chrec_dont_know.
28800 2016-02-01  Martin Liska  <mliska@suse.cz>
28802         * mem-stats-traits.h: Add copyright header.
28803         * mem-stats.h: Likewise.
28805 2016-02-01  Richard Biener  <rguenther@suse.de>
28807         PR tree-optimization/69579
28808         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
28809         Do not propagate through abnormal PHI results.
28811 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
28813         * postreload.c (reload_cse_simplify): Remove dead code.
28815 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
28817         PR rtl-optimization/69570
28818         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
28819         if there is more than one set, not if there is a single set.
28821 2016-02-01  Richard Henderson  <rth@redhat.com>
28823         PR rtl-opt/69535
28824         * combine.c (make_compound_operation): When looking through a
28825         subreg, make sure to re-extend to the width of the outer mode.
28827 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
28829         PR tree-optimization/69546
28830         * wide-int.cc (wi::divmod_internal): For unsigned division
28831         where both operands fit into uhwi, if o1 is 1 and o0 has
28832         msb set, if divident_prec is larger than bits per hwi,
28833         clear another quotient word and return 2 instead of 1.
28834         Similarly for remainder with msb in HWI set, if dividend_prec
28835         is larger than bits per hwi.
28837 2016-01-29  Martin Jambor  <mjambor@suse.cz>
28839         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
28840         Use short lowercase names.
28841         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
28842         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
28843         acq_rel one.  Protect warning agains segfaults if
28844         get_memory_order_name returns NULL.
28845         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
28846         with release semantics.  Do not warn if get_memory_order already did.
28847         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
28848         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
28849         if get_memory_order already did.
28851 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
28853         * doc/install.texi: Document that isl-0.16 is supported.
28855 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
28857         PR target/69299
28858         * config/i386/constraints.md (Bm): Describe as special memory
28859         constraint.
28860         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
28861         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
28862         * genpreds.c (struct constraint_data): Add is_special_memory.
28863         (have_special_memory_constraints, special_memory_start): New
28864         static vars.
28865         (special_memory_end): Ditto.
28866         (add_constraint): Add new arg is_special_memory.  Add code to
28867         process its true value.  Update have_special_memory_constraints.
28868         (process_define_constraint): Pass the new arg.
28869         (process_define_register_constraint): Ditto.
28870         (choose_enum_order): Process special memory.
28871         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
28872         function insn_extra_special_memory_constraint.
28873         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
28874         * gensupport.c (process_rtx): Process
28875         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
28876         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
28877         * ira-lives.c (single_reg_class): Use
28878         insn_extra_special_memory_constraint.
28879         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
28880         * lra-constraints.c (process_alt_operands): Ditto.
28881         (curr_insn_transform): Use insn_extra_special_memory_constraint.
28882         * recog.c (asm_operand_ok, preprocess_constraints): Process
28883         CT_SPECIAL_MEMORY.
28884         * reload.c (find_reloads): Ditto.
28885         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
28886         * stmt.c (parse_input_constraint): Use
28887         insn_extra_special_memory_constraint.
28889 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
28891         PR target/69530
28892         * lra-splill.c (lra_final_code_change): Revert r229087 by
28893         removing all sub-registers.
28895 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
28897         PR target/65604
28898         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
28900 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
28902         PR target/69551
28903         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
28904         SSE1, copy target into the temporary reg first before recursing
28905         on it.
28907 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
28909         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
28910         with vm.
28912 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
28914         * ginclude/stdarg.h: Test __cplusplus instead of
28915         __GXX_EXPERIMENTAL_CXX0X__.
28917 2016-01-29  Richard Biener  <rguenther@suse.de>
28919         PR tree-optimization/69547
28920         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
28921         Do not mark clobbers necessary.
28922         (mark_all_reaching_defs_necessary_1): Likewise.
28924 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
28926         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
28927         declaration name with %qs and print it in both error messages.
28928         Also fix indentation.
28930 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
28932         PR other/69006
28933         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
28934         trailing blank line from error message.
28936 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
28938         PR c++/69462
28939         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
28940         for C++-11.
28942 2016-01-29  Richard Biener  <rguenther@suse.de>
28944         PR middle-end/69537
28945         * match.pd: Allow all integral types when simplifying a
28946         widening or sign-changing conversion.
28948 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
28950         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
28951         back to setting codegen_error to fail codegen.
28953 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
28955         PR target/69459
28956         * config/i386/constraints.md (C): Only accept constant zero operand.
28957         (BC): New constraint.
28958         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
28959         instead of C constraint.
28960         * doc/md.texi (Machine Constraints): Update description
28961         of C constraint.
28963 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
28965         PR target/68400
28966         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
28968 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
28970         PR middle-end/69542
28971         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
28972         non-debug insns.
28974 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
28976         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
28977         branches if using guessed profile.
28979 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
28981         * graphite-optimize-isl.c (optimize_isl): Fix dump.
28983 2016-01-28  Richard Henderson  <rth@redhat.com>
28985         PR target/69305
28986         * config/aarch64/aarch64-modes.def (CC_Cmode): New
28987         * config/aarch64/aarch64-protos.h: Update.
28988         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
28989         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
28990         (aarch64_get_condition_code_1): Handle CC_Cmode.
28991         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
28992         (*add<mode>3_compareC_cconly_imm): New.
28993         (*add<mode>3_compareC_cconly): New.
28994         (*add<mode>3_compareC_imm): New.
28995         (add<mode>3_compareC): New.
28996         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
28997         to be first.  Use aarch64_carry_operation.
28998         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
28999         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
29000         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
29001         (subti3): Use subdi3_compare1.
29002         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
29003         (sub<mode>3_compare1): New.
29004         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
29005         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
29006         (*subsi3_carryin_uxtw): Likewise.
29007         (*ngc<mode>, *ngcsi_uxtw): Likewise.
29008         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
29009         * config/aarch64/iterators.md (DWI): New.
29010         * config/aarch64/predicates.md (aarch64_carry_operation): New.
29011         (aarch64_borrow_operation): New.
29013 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
29015         * graphite-optimize-isl.c (optimize_isl): Print a different debug
29016         message when isl does not return a valid schedule.
29018 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
29020         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
29021         Remove comments from class declarations: they are already in the code
29022         close by the defs.
29024 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
29026         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
29027         codegen_error_p.
29028         (ternary_op_to_tree): Same.
29029         (unary_op_to_tree): Same.
29030         (nary_op_to_tree): Same.
29031         (gcc_expression_from_isl_expr_op): Same.
29032         (gcc_expression_from_isl_expression): Same.
29033         (graphite_create_new_loop): Same.
29034         (graphite_create_new_loop_guard): Same.
29035         (build_iv_mapping): Same.
29036         (graphite_create_new_guard): Same.
29037         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
29038         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
29040 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
29042         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
29043         instead of setting codegen_error to fail codegen.
29045 2016-01-28  Jason Merrill  <jason@redhat.com>
29047         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
29049 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
29051         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
29052         Remove CONST_INT_P check in CCMP cost calculation.
29054 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
29056         * config/aarch64/aarch64.c (generic_vector_cost):
29057         Set vec_permute_cost.
29058         (cortexa57_vector_cost): Likewise.
29059         (exynosm1_vector_cost): Likewise.
29060         (xgene1_vector_cost): Likewise.
29061         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
29062         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
29063         Add vec_permute_cost entry.
29065 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
29067         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
29068         immediate as %1.
29069         (add<mode>3_compare0): Likewise.
29070         (addsi3_compare0_uxtw): Likewise.
29071         (add<mode>3nr_compare0): Likewise.
29072         (compare_neg<mode>): Likewise.
29073         (<optab><mode>3): Likewise.
29075 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
29077         * tree-vect-stmts.c (vectorizable_comparison): Add
29078         NULL check for vectype.
29080 2016-01-28  Richard Biener  <rguenther@suse.de>
29082         PR tree-optimization/69466
29083         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
29084         Account for PHIs we couldn't duplicate.
29086 2016-01-28  Martin Liska  <mliska@suse.cz>
29088         PR pch/68758
29089         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
29090         instead of ENABLE_VALGRIND_CHECKING.
29092 2016-01-27  Richard Henderson  <rth@redhat.com>
29094         PR rtl-opt/69447
29095         * lra-remat.c (subreg_regs): New.
29096         (dump_candidates_and_remat_bb_data): Dump it.
29097         (operand_to_remat): Reject if operand in subreg_regs.
29098         (set_bb_regs): Collect subreg_regs.
29099         (lra_remat): Init and free subreg_regs.  Compute
29100         calculate_local_reg_remat_bb_data before create_cands.
29102 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
29104         PR target/68986
29105         * config/i386/i386.c (ix86_update_stack_boundary): Don't
29106         change stack_alignment_needed for __tls_get_addr call.
29108 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
29110         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
29112 2016-01-27  Jeff Law  <law@redhat.com>
29114         PR tree-optimization/68398
29115         PR tree-optimization/69196
29116         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
29117         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
29118         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
29119         Only count PHIs in the last block in the path.  The others will
29120         const/copy propagate away.  Add heuristic to allow more irreducible
29121         subloops to be created when it is likely profitable to do so.
29123         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
29124         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
29125         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
29127 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
29129         PR lto/69254
29130         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
29131         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
29132         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
29133         * tree-streamer-in.c: Include asan.h.
29134         (streamer_get_builtin_tree): For builtins in sanitizer
29135         range call initialize_sanitizer_builtins and retry.
29137 2016-01-27  Ian Lance Taylor  <iant@google.com>
29139         * common.opt (fkeep-gc-roots-live): New undocumented option.
29140         * tree-ssa-loop-ivopts.c (add_candidate_1): If
29141         -fkeep-gc-roots-live, skip pointers.
29142         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
29143         NULL.
29145 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
29147         PR target/69512
29148         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
29149         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
29151 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
29153         PR target/68380
29154         * configure.ac: NetBSD provides SSP in its C library.
29155         * configure: Updated.
29157 2016-01-27  Richard Biener  <rguenther@suse.de>
29159         PR tree-optimization/69166
29160         * tree-vect-loop.c (vect_is_simple_reduction): Always check
29161         reduction code for commutativity / associativity.
29163 2016-01-27  Martin Jambor  <mjambor@suse.cz>
29165         PR tree-optimization/69355
29166         * tree-sra.c (analyze_access_subtree): Correct hole detection when
29167         total_scalarization fails.
29169 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
29171         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
29172         power9.
29174 2016-01-27  Christian Bruel  <christian.bruel@st.com>
29176         PR target/69245
29177         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
29178         Move arm_reset_previous_fndecl and set_target_option_current_node in
29179         the conditional part.  Call save_restore_target_globals.
29180         * config/arm/arm.c (arm_set_current_function):
29181         Refactor to better support #pragma target and attribute mix.
29182         Call save_restore_target_globals.
29183         * config/arm/arm-protos.h (save_restore_target_globals): New function.
29185 2016-01-27  Martin Liska  <mliska@suse.cz>
29187         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
29188         reference for an HSA kernel and its host function.
29190 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
29192         PR tree-optimization/69399
29193         * wide-int.h (wi::lrshift): For larger precisions, only
29194         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
29196 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
29198         * config/arc/predicates.md (proper_comparison_operator): Reject
29199         constant-constant comparison.
29201 2016-01-26  Tom de Vries  <tom@codesourcery.com>
29203         PR tree-optimization/69110
29204         * tree-data-ref.c (initialize_data_dependence_relation): Handle
29205         DR_NUM_DIMENSIONS == 0.
29207 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
29208             Sebastian Pop  <s.pop@samsung.com>
29210         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
29211         isl_ast_op_cond and isl_ast_op_select.
29212         (gcc_expression_from_isl_expr_op): Same.
29214 2016-01-26  Jason Merrill  <jason@redhat.com>
29216         PR c++/68782
29217         * tree.c (recompute_constructor_flags): Split out from
29218         build_constructor.
29219         (verify_constructor_flags): New.
29220         * tree.h: Declare them.
29222 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
29224         PR rtl-optimization/69217
29225         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
29226         are no TYPE_FIELDS set for the record type.
29228 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
29230         PR target/68662
29231         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
29232         toc_label_name unconditionally.
29233         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
29234         SYMBOL_REF string.  Use toc_label_name instead of constructing
29235         LCTOC1.
29236         (rs6000_elf_declare_function_name): Use toc_label_name instead of
29237         constructing LCTOC1.
29239 2016-01-26  Martin Sebor  <msebor@redhat.com>
29241         PR other/69477
29242         * doc/extend.texi (Common Type Attributes): Move text that talks about
29243         attribute packed from attribute aligned to the section discussing
29244         the former attribute for clarity.
29246 2016-01-26  Richard Henderson  <rth@redhat.com>
29248         PR middle-end/60908
29249         * trans-mem.c (tm_region_init): Mark entry block as visited.
29251 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
29253         PR other/69006
29254         * diagnostic-show-locus.c (layout::print_source_line): Replace
29255         call to pp_newline with call to layout::print_newline.
29256         (layout::print_annotation_line): Likewise.
29257         (layout::move_to_column): Likewise.
29258         (layout::print_any_fixits): After printing any fixits, print a
29259         trailing newline, if necessary.
29260         (layout::print_newline): New method, resetting any colorization
29261         before a newline.
29262         (diagnostic_show_locus): Move the pp_newline to before the
29263         early bailout.  Remove dummy block enclosing the layout instance.
29264         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
29265         of pp_newline_and_flush with pp_flush.
29266         (diagnostic_append_note): Delete use of pp_newline.
29267         (diagnostic_append_note_at_rich_loc): Delete.
29268         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
29269         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
29270         when newline characters are added to the buffer.
29272 2016-01-26  Michael Matz  <matz@suse.de>
29274         * configure.ac (ac_cv_std_swap_in_utility): New test.
29275         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
29276         * configure: Regenerate.
29277         * config.in: Regenerate.
29279 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
29281         * config/arc/arc.md (cstoresi4): Force operand into register.
29282         (arcset<code>): Fix predicate.
29283         (arcsetltu): Likewise.
29284         (arcsetgeu): Likewise.
29285         (arcsethi): Likewise.
29286         (arcsetls): Likewise.
29288 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
29290         PR tree-optimization/69483
29291         * gimple-fold.c (canonicalize_constructor_val): Return NULL
29292         if base has error_mark_node type.
29294 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
29296         PR target/68620
29297         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
29298         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
29299         New helper macros.
29300         (vget_lane_f16): Handle big-endian.
29301         (vgetq_lane_f16): Likewise.
29302         (vset_lane_f16): Likewise.
29303         (vsetq_lane_f16): Likewise.
29304         * config/arm/iterators.md (VQXMOV): Add V8HF.
29305         (VDQ): Add V4HF and V8HF.
29306         (V_reg): Handle V4HF and V8HF.
29307         (Is_float_mode): Likewise.
29308         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
29309         neon_vdup_nv8hf): New patterns.
29310         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
29311         Use VD_LANE iterator.
29312         (neon_vld1_dup<mode>): Use VQ2 iterator.
29314 2016-01-26  Nathan Sidwell  <nathan@acm.org>
29316         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
29317         (set_oacc_fn_attrib): Add IS_KERNEL arg.
29318         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
29319         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
29320         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
29321         (oacc_validate_dims): Add LEVEL arg, don't return level.
29322         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
29323         oacc_validate_dims.
29324         (execute_oacc_device_lower): Adjust, add more dump output.
29325         * tree-ssa-loop.c (gate_oacc_kernels): Use
29326         oacc_fn_attrib_kernels_p.
29327         * tree-parloops.c (create_parallel_loop): Adjust
29328         set_oacc_fn_attrib call.
29330 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
29332         PR lto/69254
29333         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
29334         (append_compiler_options): Handle -fcilkplus.
29335         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
29337 2016-01-26  Nick Clifton  <nickc@redhat.com>
29339         PR target/66655
29340         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
29341         been marked as DECL_ONE_ONLY but we do not the means to make it
29342         so, then do not allow it to bind locally.
29344 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
29346         PR lto/69254
29347         * opts.h (parse_sanitizer_options): New prototype.
29348         * opts.c (sanitizer_opts): New array.
29349         (parse_sanitizer_options): New function.
29350         (common_handle_option): Use parse_sanitizer_options.
29352 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
29354         PR target/68986
29355         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
29356         alignment adjustment to ...
29357         (ix86_update_stack_boundary): Here.  Don't over-align stack for
29358         __tls_get_addr.
29359         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
29360         if __tls_get_addr is called.
29362 2016-01-26  Christian Bruel  <christian.bruel@st.com>
29364         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
29366 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
29368         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
29370 2016-01-26  Richard Biener  <rguenther@suse.de>
29372         PR middle-end/69467
29373         * match.pd: Guard X * CST CMP 0 pattern with single_use.
29375 2016-01-26  Richard Biener  <rguenther@suse.de>
29377         PR tree-optimization/69452
29378         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
29379         (move_computations_dom_walker::before_dom_children): Rename
29380         to ...
29381         (move_computations_worker): This.
29382         (move_computations): Perform an RPO rather than a DOM walk.
29384 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
29386         PR target/69442
29387         * combine.c (combine_instructions): For REG_EQUAL note with
29388         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
29389         to the underlying register.
29390         * doc/rtl.texi (REG_EQUAL): Document the behavior of
29391         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
29393 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
29395         PR target/67896
29396         * config/aarch64/aarch64-builtins.c
29397         (aarch64_init_simd_builtin_types): Do not set structural
29398         equality to __Poly{8,16,64,128}_t types.
29400 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
29402         PR tree-optimization/69400
29403         * wide-int.cc (wi_pack): Take the precision as argument and
29404         perform canonicalization here rather than in the callers.
29405         Use the main loop to handle all full-width HWIs.  Add a
29406         zero HWI if in_len isn't a full result.
29407         (wi::divmod_internal): Update accordingly.
29408         (wi::mul_internal): Likewise.  Simplify.
29410 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
29411             Sebastian Pop  <s.pop@samsung.com>
29413         * graphite-poly.c (apply_poly_transforms): Simplify.
29414         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
29415         (print_isl_map): Same.
29416         (print_isl_union_map): Same.
29417         (print_isl_schedule): New.
29418         (debug_isl_schedule): New.
29419         * graphite-dependences.c (scop_get_reads): Do not call
29420         isl_union_map_add_map that is undocumented isl functionality.
29421         (scop_get_must_writes): Same.
29422         (scop_get_may_writes): Same.
29423         (scop_get_original_schedule): Remove.
29424         (scop_get_dependences): Do not call isl_union_map_compute_flow that
29425         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
29426         (compute_deps): Remove.
29427         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
29428         (debug_schedule_ast): New.
29429         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
29430         set_separate_option.
29431         (graphite_regenerate_ast_isl): Add dump.
29432         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
29433         from scop->transformed_schedule.
29434         (graphite_regenerate_ast_isl): Add more dump.
29435         * graphite-optimize-isl.c (optimize_isl): Set
29436         scop->transformed_schedule.  Check whether schedules are equal.
29437         (apply_poly_transforms): Move here.
29438         * graphite-poly.c (apply_poly_transforms): ... from here.
29439         (free_poly_bb): Static.
29440         (free_scop): Static.
29441         (pbb_number_of_iterations_at_time): Remove.
29442         (print_isl_ast): New.
29443         (debug_isl_ast): New.
29444         (debug_scop_pbb): New.
29445         * graphite-scop-detection.c (print_edge): Move.
29446         (print_sese): Move.
29447         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
29448         (build_scop_scattering): Remove.
29449         (create_pw_aff_from_tree): Assert instead of bailing out.
29450         (add_condition_to_pbb): Remove unused code, do not fail.
29451         (add_conditions_to_domain): Same.
29452         (add_conditions_to_constraints): Remove.
29453         (build_scop_context): New.
29454         (add_iter_domain_dimension): New.
29455         (build_iteration_domains): Initialize pbb->iterators.
29456         Call add_conditions_to_domain.
29457         (nested_in): New.
29458         (loop_at): New.
29459         (index_outermost_in_loop): New.
29460         (index_pbb_in_loop): New.
29461         (outermost_pbb_in): New.
29462         (add_in_sequence): New.
29463         (add_outer_projection): New.
29464         (outer_projection_mupa): New.
29465         (add_loop_schedule): New.
29466         (build_schedule_pbb): New.
29467         (build_schedule_loop): New.
29468         (embed_in_surrounding_loops): New.
29469         (build_schedule_loop_nest): New.
29470         (build_original_schedule): New.
29471         (build_poly_scop): Call build_original_schedule.
29472         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
29473         (free_poly_dr): Remove.
29474         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
29475         (free_poly_bb): Remove.
29476         (debug_loop_vec): Remove.
29477         (print_isl_ast): Declare.
29478         (debug_isl_ast): Declare.
29479         (scop_do_interchange): Remove.
29480         (scop_do_strip_mine): Remove.
29481         (scop_do_block): Remove.
29482         (flatten_all_loops): Remove.
29483         (optimize_isl): Remove.
29484         (pbb_number_of_iterations_at_time): Remove.
29485         (debug_scop_pbb): Declare.
29486         (print_schedule_ast): Declare.
29487         (debug_schedule_ast): Declare.
29488         (struct scop): Remove schedule.  Add original_schedule,
29489         transformed_schedule.
29490         (free_gimple_poly_bb): Remove.
29491         (print_generated_program): Remove.
29492         (debug_generated_program): Remove.
29493         (unify_scattering_dimensions): Remove.
29494         * sese.c (print_edge): ... here.
29495         (print_sese): ... here.
29496         (debug_edge): ... here.
29497         (debug_sese): ... here.
29498         * sese.h (print_edge): Declare.
29499         (print_sese): Declare.
29500         (dump_edge): Declare.
29501         (dump_sese): Declare.
29503 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
29504             Sebastian Pop  <s.pop@samsung.com>
29506         * Makefile.in: Set ISLVER in site.exp.
29508 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
29510         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
29511         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
29512         through DECL_VALUE_EXPR for expansion.
29514 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
29516         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
29517         the frame info after reload completed.
29519 2016-01-25  Jeff Law  <law@redhat.com>
29521         PR tree-optimization/69196
29522         PR tree-optimization/68398
29523         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
29524         tree-ssa-threadupdate.c.
29525         (determine_bb_domination_status): Prototype
29526         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
29527         (determine_bb_domination_status): No longer static.
29528         (valid_jump_thread_path): Remove code to detect characteristics
29529         of the jump thread path not associated with correctness.
29530         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
29531         Correct test for thread path length.  Count PHIs for real operands as
29532         statements that need to be copied.  Do not count ASSERT_EXPRs.
29533         Look at all the blocks in the thread path.  Compute and selectively
29534         filter thread paths based on threading through the latch, threading
29535         a multiway branch or crossing a multiway branch.
29537 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29539         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
29540         decl with __attribute__ ((unused)) annotation.
29542 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
29544         PR target/69421
29545         * tree-vect-stmts.c (vectorizable_condition): Check vectype
29546         of operands is compatible with a statement vectype.
29548 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
29550         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
29551         improve wording for mixed storage order support.
29553 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
29555         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
29556         (vcvt_u64_f64): Likewise.
29557         (vcvta_s64_f64): Likewise.
29558         (vcvta_u64_f64): Likewise.
29559         (vcvtm_s64_f64): Likewise.
29560         (vcvtm_u64_f64): Likewise.
29561         (vcvtn_s64_f64): Likewise.
29562         (vcvtn_u64_f64): Likewise.
29563         (vcvtp_s64_f64): Likewise.
29564         (vcvtp_u64_f64): Likewise.
29566 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
29568         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
29569         (arc_init): Check validity mll64 option.
29570         (arc_save_restore): Use double load/store instruction.
29571         (arc_expand_movmem): Likewise.
29572         (arc_split_move): Don't split if we have double load/store
29573         instructions. Returns a boolean.
29574         (arc_process_double_reg_moves): Change function to return boolean
29575         instead of a sequence of instructions.
29576         (arc_dwarf_register_span): New function.
29577         * config/arc/arc-protos.h (arc_split_move): Change prototype.
29578         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
29579         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
29580         (*movdf_insn): Likewise.
29581         * config/arc/arc.opt (mll64): New option.
29582         * config/arc/predicates.md (even_register_operand): New predicate.
29583         * doc/invoke.texi (ARC Options): Add mll64 documentation.
29585 2016-01-25  Richard Biener  <rguenther@suse.de>
29587         PR lto/69393
29588         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
29589         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
29590         DECL_NAMELESS.
29591         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
29593 2016-01-25  Richard Biener  <rguenther@suse.de>
29595         PR tree-optimization/69376
29596         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
29597         flag.
29598         (VN_INFO_ANTI_RANGE_P): New inline.
29599         (VN_INFO_RANGE_TYPE): Likewise.
29600         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
29601         SSA_NAME_ANTI_RANGE_P.
29602         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
29603         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
29604         Properly query VN_INFO_RANGE_TYPE.
29606 2016-01-25  Nick Clifton  <nickc@redhat.com>
29608         PR target/66655
29609         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
29611 2016-01-23  Tom de Vries  <tom@codesourcery.com>
29613         PR tree-optimization/69426
29614         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
29615         removed clobber.
29617 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
29619         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
29620         "the the" with "the" in the comments.
29621         * ipa-devirt.c (build_type_inheritance_graph,
29622         update_type_inheritance_graph): Likewise.
29623         * tree.c (build_function_type_list_1): Likewise.
29624         * cfgloopmanip.c (scale_loop_profile): Likewise.
29625         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
29626         * gimple-ssa-split-paths.c
29627         (find_block_to_duplicate_for_splitting_paths): Likewise.
29628         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
29629         * expr.c (convert_move): Likewise.
29630         * var-tracking.c (vt_stack_adjustments): Likewise.
29631         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
29632         * tree-vrp.c (test_for_singularity): Likewise.
29634         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
29635         directly instead of building a temporary tree.
29637         PR bootstrap/69434
29638         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
29639         remove <algorithm> include.
29641 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
29643         PR target/69432
29644         * config/i386/i386.c: Include dojump.h.
29645         (expand_small_movmem_or_setmem,
29646         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
29647         fixes.
29648         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
29649         if dynamic_check != -1.
29651 2016-01-21  Jeff Law  <law@redhat.com>
29653         PR middle-end/69347
29654         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
29655         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
29656         into dominated_by_p.
29657         (cprop_into_successor_phis): Avoid unnecessary tests.
29659 2016-01-22  Richard Henderson  <rth@redhat.com>
29661         PR target/69416
29662         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
29663         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
29665 2016-01-22  Michael Matz  <matz@suse.de>
29667         * system.h (string, algorithm): Include only conditionally.
29668         (new): Include always under C++.
29669         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
29670         * final.c (toplevel): Ditto.
29671         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
29672         * genconditions.c (write_header): Make gencondmd.c define
29673         INCLUDE_STRING.
29674         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
29676         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
29677         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
29679 2016-01-22  Christian Bruel  <christian.bruel@st.com>
29681         PR target/68674
29682         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
29684 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29686         PR target/69403
29687         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
29688         define_insn_and_split.  Ensure operands[1] and operands[0] do not
29689         get assigned the same register.
29691 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
29693         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
29695 2016-01-22  Christian Bruel  <christian.bruel@st.com>
29697         * config/arm/arm-c.c (arm_pragma_target_parse):
29698         Remove warn_builtin_macro_redefined overwrite.
29700 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
29702         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
29703         flag_non_call_exceptions compatibility.
29705 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
29707         PR debug/66668
29708         * dwarf2out.c (add_child_die_after): New function.
29709         (dwarf_qual_info_t): New type.
29710         (dwarf_qual_info): New variable.
29711         (qualified_die_p): New function.
29712         (modified_type_die): For -fdebug-types-section, ensure
29713         canonical order of qualifiers.  Put qualified DIEs adjacent
29714         to the corresponding non-qualified type DIE and search there
29715         for existing qualified DIEs.
29717 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
29719         * doc/extend.texi (scalar_storage_order type attribute): Document
29720         restriction on type punning and aliasing, and remove future tense.
29722 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
29724         PR target/69252
29725         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
29726         first stage.
29728 2016-01-21  Jeff Law  <law@redhat.com>
29730         PR middle-end/69347
29731         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
29732         useless call to record_temporary_equivalences.
29733         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
29734         allocate 10 slots in the bb_path vector and let it grow as needed.
29735         (fsm_find_control_statement_thread_paths): Similarly for the next_path
29736         vector.
29738 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
29740         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
29741         Detangle.
29742         * configure: Regenerate.
29744 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
29746         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
29747         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
29749 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
29751         PR middle-end/66178
29752         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
29753         drop EXPAND_INITIALIZER.
29754         * rtl.h (contains_symbolic_reference_p): Declare.
29755         * rtlanal.c (contains_symbolic_reference_p): New function.
29756         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
29757         a subtraction into a NOT if symbolic constants are involved.
29759 2016-01-21  Anton Blanchard  <anton@samba.org>
29760             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29762         PR target/63354
29763         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
29764         #define.
29765         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
29766         function.
29768 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
29770         * config/microblaze/microblaze.c
29771         (get_branch_target): New.
29772         (insert_wic_for_ilb_runout): New.
29773         (insert_wic): New.
29774         (microblaze_machine_dependent_reorg): New.
29775         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
29776         * config/microblaze/microblaze.md
29777         (UNSPEC_IPREFETCH): Define.
29778         (iprefetch): New pattern
29779         * config/microblaze/microblaze.opt
29780         (mxl-prefetch): New flag.
29782 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
29784         * config/microblaze/microblaze.h
29785         (FIXED_REGISTERS): Update in macro.
29786         (CALL_USED_REGISTERS): Update in macro.
29788 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
29790         PR rtl-optimization/68920
29791         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
29792         moves.
29794 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
29796         PR rtl-optimization/68990
29797         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
29798         pseudo instead of inheritance ones.
29800 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
29801             Nick Clifton  <nickc@redhat.com>
29803         PR target/69129
29804         PR target/69012
29805         * config/mips/mips.c (mips_compute_frame_info): Initialise
29806         args_size and hard_frame_pointer_offset fields of the frame
29807         structure before calling mips_global_pointer.
29809 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
29811         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
29812         label reference.
29813         * configure: Regenerate.
29815 2016-01-21  Richard Biener  <rguenther@suse.de>
29817         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
29819 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
29821         * config/s390/s390.c (s390_asm_declare_function_size): Add code
29822         to actually emit the .size directive.
29824 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
29825              Jakub Jelinek  <jakub@redhat.com>
29827         PR target/69187
29828         PR target/65624
29829         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
29830         args array size by one to avoid buffer overflow.
29832 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
29834         * config/s390/s390.md (pool_section_start): Use switch_to_section
29835         to select proper read-only data section instead of hardcoding
29836         .rodata.
29837         (pool_section_end): Use switch_to_section to match the above.
29839 2016-01-21  Richard Biener  <rguenther@suse.de>
29841         PR tree-optimization/69378
29842         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
29843         (set_ssa_val_to): Use it for dominance checks taking into
29844         account not executable edges.
29846 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
29848         PR c++/69355
29849         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
29850         for bitsize instead of GET_MODE_PRECISION (mode).
29852 2016-01-20  Martin Sebor  <msebor@redhat.com>
29854         PR c/52291
29855         * extend.texi (__sync Builtins): Clarify the semantics of
29856         __sync_fetch_and_OP built-ins on pointers.
29857         (__atomic Builtins): Same.
29859 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
29860             Sebastian Pop  <s.pop@samsung.com>
29862         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
29863         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
29864         (is_valid_rename): Same.
29865         (translate_isl_ast_to_gimple::get_rename): Same.
29866         (translate_isl_ast_to_gimple::rename_all_uses): Same.
29867         (translate_isl_ast_to_gimple::rename_uses): Same.
29868         (get_new_name): Check for close_phi nodes.
29869         (copy_loop_phi_args): Use phi_node_kind.
29870         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
29871         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
29873 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
29874             Sebastian Pop  <s.pop@samsung.com>
29876         Revert commit r229783.
29877         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
29878         Remove use of parameter_rename_map.
29879         (copy_def): Remove.
29880         (copy_internal_parameters): Remove.
29881         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
29882         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
29883         (free_sese_info): Do not free parameter_rename_map.
29884         (set_rename): Do not use parameter_rename_map.
29885         (rename_uses): Update call to set_rename.
29886         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
29887         * sese.h (parameter_rename_map_t): Remove.
29888         (struct sese_info_t): Remove field parameter_rename_map.
29890 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
29891             Sebastian Pop  <s.pop@samsung.com>
29893         * graphite-isl-ast-to-gimple.c: Fix comment.
29894         * graphite-scop-detection.c (defined_in_loop_p): New.
29895         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
29896         names defined in loop.
29898 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
29899             Sebastian Pop  <s.pop@samsung.com>
29901         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
29902         Discard unstructured if-then-else regions.
29904 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
29905             Sebastian Pop  <s.pop@samsung.com>
29907         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
29908         (cleanup_loop_iter_dom): Remove.
29909         (build_loop_iteration_domains): Remove.
29910         (build_scop_context): Remove.
29911         (build_scop_iteration_domain): Remove.
29912         (add_loop_constraints): New.
29913         (build_iteration_domains): New.
29914         (build_poly_scop): Call build_iteration_domains.
29916 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
29917             Sebastian Pop  <s.pop@samsung.com>
29919         * graphite-scop-detection.c
29920         (scop_detection::harmful_loop_in_region): Free dom and loops.
29921         (scop_detection::loop_body_is_valid_scop): Free bbs.
29923 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
29924             Sebastian Pop  <s.pop@samsung.com>
29926         * graphite-scop-detection.c (record_loop_in_sese): New.
29927         (gather_bbs::before_dom_children): Call record_loop_in_sese.
29928         (build_scops): Remove call to build_sese_loop_nests.
29929         * sese.c (sese_record_loop): Remove.
29930         (build_sese_loop_nests): Remove.
29931         (new_sese_info): Remove region->loops.
29932         (free_sese_info): Same.
29933         * sese.h (sese_contains_loop): Same.
29934         (build_sese_loop_nests): Remove.
29935         (sese_contains_loop): Remove.
29937 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
29938             Sebastian Pop  <s.pop@samsung.com>
29940         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
29941         loop_is_valid_in_scop.
29942         (scop_detection::harmful_stmt_in_region): Renamed
29943         harmful_loop_in_region.
29944         Call loop_is_valid_in_scop.
29946 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
29947             Sebastian Pop  <s.pop@samsung.com>
29949         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
29950         isl_ast_node_mark.
29952 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
29953             Sebastian Pop  <s.pop@samsung.com>
29955         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
29956         * graphite.h (struct poly_bb): Remove field is_reduction.
29957         (PBB_IS_REDUCTION): Remove.
29959 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
29960             Sebastian Pop  <s.pop@samsung.com>
29962         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
29963         (add_pdr_constraints): Same.
29964         (scop_get_reads): Same.
29965         (scop_get_must_writes): Same.
29966         (scop_get_may_writes): Same.
29967         (scop_get_original_schedule): Same.
29968         (extend_schedule): Same.
29969         (apply_schedule_on_deps): Same.
29970         (carries_deps): Same.
29971         (compute_deps): Same.
29972         (scop_get_dependences): Same.
29973         * graphite-isl-ast-to-gimple.c
29974         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
29975         * graphite-optimize-isl.c (get_schedule_for_band): Same.
29976         (get_schedule_for_band_list): Same.
29977         (get_schedule_map): Same.
29978         (apply_schedule_map_to_scop): Same.
29979         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
29980         (build_loop_iteration_domains): Same.
29981         (add_condition_to_pbb): Same.
29982         (add_param_constraints): Same.
29983         (pdr_add_memory_accesses): Same.
29984         (pdr_add_data_dimensions): Same.
29986 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
29988         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
29989         requirements.
29991 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
29993         * common.opt (feliminate-dwarf2-dups): Replace references to
29994         "DWARF 2" with just "DWARF".
29995         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
29996         * doc/extend.texi: Likewise.
29997         * doc/cpp.texi: Likewise.
29998         * doc/invoke.texi: Likewise.
29999         (Option Summary): Add -gdwarf to list of Debugging Options.
30000         (Debugging Options): Document -gdwarf.
30001         * doc/contrib.texi: Spell "DWARF" like that.
30003 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
30005         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
30006         warning.  Fix up formatting.
30008         PR middle-end/67653
30009         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
30010         attempt to mark memory input operand addressable and
30011         call prepare_gimple_addressable in that case.  Don't adjust
30012         input_location for diagnostics, use error_at instead.
30014 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
30016         * config/rs6000/ppc-auxv.h: New file.
30017         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
30018         (cpu_is): Likewise.
30019         (cpu_supports): Likewise.
30020         * config/rs6000/rs6000.c: include "ppc-auxv.h".
30021         (cpu_is_info): New variable.
30022         (cpu_supports_info): Likewise.
30023         (tcb_verification_symbol): Likewise.
30024         (cpu_builtin_p): Likewise.
30025         (cpu_expand_builtin): New function.
30026         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
30027         (rs6000_init_builtins): Likewise.
30028         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
30029         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
30030         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
30031         * configure: Regenerate.
30032         * config.in: Likewise.
30033         * doc/extend.texi (PowerPC Built-in Functions): Document
30034         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
30036 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
30038         PR target/68609
30039         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
30040         domain check.
30041         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
30042         for V4SFmode.
30044 2016-01-20  Richard Henderson  <rth@redhat.com>
30046         PR bootstrap/69343
30047         PR bootstrap/69339
30048         PR tree-opt/68964
30049         Revert:
30050         * tree.c (tm_define_builtin): New.
30051         (find_tm_vector_type): New.
30052         (build_tm_vector_builtins): New.
30053         (build_common_builtin_nodes): Call it.
30055 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
30057         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
30058         (arm_fp_ok): Likewise.
30059         (arm_fp): Likewise.
30060         (arm_crypto): Likewise.
30062 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
30063             Richard Biener  <rguenther@suse.de>
30065         PR tree-optimization/69328
30066         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
30067         vectors have same number of elements.
30068         (vectorizable_condition): Fix masked version recognition.
30070 2016-01-20  Richard Biener  <rguenther@suse.de>
30072         PR tree-optimization/69345
30073         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
30074         (VN_INFO_PTR_INFO): Likewise.
30075         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
30076         info when it is equal between non-dominating SSA names.
30077         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
30078         Make sure to look at original SSA infos.
30080 2016-01-20  Jeff Law  <law@redhat.com>
30082         PR target/25114
30083         * config/m68k/predicates.md (pow2_m1_operand): New predicate
30084         extracted from ...
30085         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
30086         (pc_or_label_operand): New predicate.
30087         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
30088         tests for small integers that are 2^n - 1.
30090 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
30092         * doc/invoke.texi (Options Summary): Add '.' after @xref.
30094 2016-01-19  Jeff Law  <law@redhat.com>
30096         PR middle-end/69347
30097         * tree-ssa-threadbackwards.c
30098         (fsm_find_control_statement_thread_paths): Do not try to lookup
30099         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
30101 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
30103         * doc/lto.texi: Remove text that says only Gold has linker plugin
30104         support.
30106 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
30108         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
30109         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
30110         the DIE accordingly.
30111         (modified_type_die): Add REVERSE parameter and pass it recursively,
30112         as well as to base_type_die.  Adjust presence check accordingly.
30113         (base_type_for_mode): Adjust call to modified_type_die.
30114         (add_type_attribute): Add REVERSE parameter and pass it to
30115         modified_type_die.
30116         (generic_parameter_die): Adjust call to add_type_attribute.
30117         (add_scalar_info): Likewise.
30118         (add_subscript_info): Likewise.
30119         (gen_array_type_die): Likewise.
30120         (gen_descr_array_type_die): Likewise.
30121         (gen_entry_point_die): Likewise.
30122         (gen_enumeration_type_die): Likewise.
30123         (gen_formal_parameter_die): Likewise.
30124         (gen_subprogram_die): Likewise.
30125         (gen_variable_die ): Likewise.
30126         (gen_const_die): Likewise.
30127         (gen_field_die): Likewise.
30128         (gen_pointer_type_die): Likewise.
30129         (gen_reference_type_die): Likewise.
30130         (gen_ptr_to_mbr_type_die): Likewise.
30131         (gen_inheritance_die): Likewise.
30132         (gen_subroutine_type_die): Likewise.
30133         (gen_typedef_die): Likewise.
30134         (force_type_die): Adjust call to modified_type_die.
30136 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
30138         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
30139         flow throughout the file.  Fix broken link to Objective-C 2.0
30140         documentation.
30141         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
30142         errors.
30144 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
30146         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
30148 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
30150         PR ipa/66223
30151         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
30152         (maybe_record_node): Record cxa_pure_virtual as the only possible
30153         target if there are not ohter candidates.
30154         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
30156 2016-01-19  Richard Biener  <rguenther@suse.de>
30158         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
30159         (get_memory_order): Likewise.
30161 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
30163         * tree-vect-stmts.c (vectorizable_store): Check
30164         rhs vectype.
30166 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
30168         PR jit/68446
30169         * gcc.c (driver::decode_argv): Add call to
30170         init_opts_obstack before init_options_struct.
30171         * opts.c (init_opts_obstack): Remove idempotency.
30172         (init_options_struct): Replace call to init_opts_obstack
30173         with a gcc_assert to verify that it has already been called.
30174         * toplev.c (toplev::main): Add call to init_opts_obstack before
30175         calls to init_options_struct.
30176         (toplev::finalize): Move cleanup of opts_obstack next to
30177         cleanup of save_decoded_options, clearing the latter, and
30178         save_decoded_options_count.
30180 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30182         PR target/69135
30183         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
30184         attribute to unconditional.  Remove %? from output template.
30186 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
30187             Jiong Wang  <jiong.wang@arm.com>
30189         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
30190         generated from different expand order.
30192 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
30194         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
30195         Add support for CCMP costing.
30197 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
30199         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
30200         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
30201         (fccmpe<mode>): Likewise.
30202         (fcmp): Rename to fcmp and globalize pattern.
30203         (fcmpe): Likewise.
30204         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
30205         (aarch64_gen_ccmp_next): Add FP support.
30207 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
30209         * target.def (gen_ccmp_first): Update documentation.
30210         (gen_ccmp_next): Likewise.
30211         * doc/tm.texi (gen_ccmp_first): Update documentation.
30212         (gen_ccmp_next): Likewise.
30213         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
30214         expand_ccmp_expr_1.  Improve comments.
30215         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
30216         (ccmp_ior<mode>): Remove pattern.
30217         (cmp<mode>): Remove expand.
30218         (cmp): Globalize pattern.
30219         (cstorecc4): Use cc_register.
30220         (mov<mode>cc): Remove ccmp_cc_register check.
30221         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
30222         Simplify after removal of CC_DNE/* modes.
30223         (aarch64_ccmp_mode_to_code): Remove.
30224         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
30225         In 'k' case use integer as condition.
30226         (aarch64_nzcv_codes): Remove inverted cases.
30227         (aarch64_code_to_ccmode): Remove.
30228         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
30229         comparison with CC register to be used in folowing CCMP/branch/CSEL.
30230         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
30231         pattern.  Return the comparison with CC register.  Invert conditions
30232         when bitcode is OR.
30233         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
30234         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
30236 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
30238         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
30239         instrumented_version.
30241 2016-01-19  Richard Biener  <rguenther@suse.de>
30243         PR tree-optimization/69336
30244         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
30245         handled components with get_ref_base_and_extent.
30246         (equal_mem_array_ref_p): Adjust.
30248 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
30250         PR debug/65779
30251         * shrink-wrap.c: Include valtrack.h.
30252         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
30253         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
30254         in between insn and where it will be moved to.  Call
30255         dead_debug_insert_temp.
30256         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
30257         first and dead_debug_local_finish at the end.
30258         For uses and defs bitmap, handle all regs in between REGNO and
30259         END_REGNO, not just the first one.
30261 2016-01-19  Richard Biener  <rguenther@suse.de>
30263         PR tree-optimization/69352
30264         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
30265         (equal_mem_array_ref_p): Constrain size and max size properly.
30266         Compare the reverse flag.
30268 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
30270         * ira.c (ira): Update regstat data if we deleted insns.
30272 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
30274         PR rtl-optimization/68955
30275         PR rtl-optimization/64557
30276         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
30277         here.  Fix up formatting.
30278         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
30280 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
30282         PR lto/69133
30283         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
30284         assume that the node has body.
30285         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
30286         check.
30288 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
30290         * lto-streamer-out.c (lto_output): Do not stream instrumentation
30291         thunks.
30293 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
30295         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
30296         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
30298 2016-01-19  Martin Jambor  <mjambor@suse.cz>
30299             Martin Liska  <mliska@suse.cz>
30300             Michael Matz  <matz@suse.de>
30302         * Makefile.in (OBJS): Add new source files.
30303         (GTFILES): Add hsa.c.
30304         * common.opt (disable_hsa): New variable.
30305         (-Whsa): New warning.
30306         * config.in (ENABLE_HSA): New.
30307         * configure.ac: Treat hsa differently from other accelerators.
30308         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
30309         $enable_offloading.
30310         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
30311         * doc/install.texi (Configuration): Document --with-hsa-runtime,
30312         --with-hsa-runtime-include, --with-hsa-runtime-lib and
30313         --with-hsa-kmt-lib.
30314         * doc/invoke.texi (-Whsa): Document.
30315         (hsa-gen-debug-stores): Likewise.
30316         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
30317         to invoke offload compiler for hsa acclerator.
30318         * opts.c (common_handle_option): Determine whether HSA offloading
30319         should be performed.
30320         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
30321         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
30322         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
30323         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
30324         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
30325         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
30326         GF_OMP_FOR_KIND_GRID_LOOP.
30327         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
30328         (pp_gimple_stmt_1): Likewise.
30329         * gimple-walk.c (walk_gimple_stmt): Likewise.
30330         * gimple.c (gimple_build_omp_grid_body): New function.
30331         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
30332         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
30333         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
30334         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
30335         GF_OMP_TEAMS_GRID_PHONY.
30336         (gimple_statement_omp_single_layout): Updated comments.
30337         (gimple_build_omp_grid_body): New function.
30338         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
30339         (gimple_omp_for_grid_phony): New function.
30340         (gimple_omp_for_set_grid_phony): Likewise.
30341         (gimple_omp_parallel_grid_phony): Likewise.
30342         (gimple_omp_parallel_set_grid_phony): Likewise.
30343         (gimple_omp_teams_grid_phony): Likewise.
30344         (gimple_omp_teams_set_grid_phony): Likewise.
30345         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
30346         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
30347         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
30348         (BUILT_IN_GOMP_TARGET): Updated type.
30349         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
30350         (adjust_for_condition): New function.
30351         (get_omp_for_step_from_incr): Likewise.
30352         (extract_omp_for_data): Moved parts to adjust_for_condition and
30353         get_omp_for_step_from_incr.
30354         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
30355         (fixup_child_record_type): Bail out if receiver_decl is NULL.
30356         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
30357         (scan_omp_parallel): Do not create child functions for phony
30358         constructs.
30359         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
30360         (scan_omp_1_op): Checking assert we are not remapping to
30361         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
30362         (parallel_needs_hsa_kernel_p): New function.
30363         (expand_parallel_call): Register apprpriate parallel child
30364         functions as HSA kernels.
30365         (grid_launch_attributes_trees): New type.
30366         (grid_attr_trees): New variable.
30367         (grid_create_kernel_launch_attr_types): New function.
30368         (grid_insert_store_range_dim): Likewise.
30369         (grid_get_kernel_launch_attributes): Likewise.
30370         (get_target_argument_identifier_1): Likewise.
30371         (get_target_argument_identifier): Likewise.
30372         (get_target_argument_value): Likewise.
30373         (push_target_argument_according_to_value): Likewise.
30374         (get_target_arguments): Likewise.
30375         (expand_omp_target): Call get_target_arguments instead of looking
30376         up for teams and thread limit.
30377         (grid_expand_omp_for_loop): New function.
30378         (grid_arg_decl_map): New type.
30379         (grid_remap_kernel_arg_accesses): New function.
30380         (grid_expand_target_kernel_body): New function.
30381         (expand_omp): Call it.
30382         (lower_omp_for): Do not emit phony constructs.
30383         (lower_omp_taskreg): Do not emit phony constructs but create for them
30384         a temporary variable receiver_decl.
30385         (lower_omp_taskreg): Do not emit phony constructs.
30386         (lower_omp_teams): Likewise.
30387         (lower_omp_grid_body): New function.
30388         (lower_omp_1): Call it.
30389         (grid_reg_assignment_to_local_var_p): New function.
30390         (grid_seq_only_contains_local_assignments): Likewise.
30391         (grid_find_single_omp_among_assignments_1): Likewise.
30392         (grid_find_single_omp_among_assignments): Likewise.
30393         (grid_find_ungridifiable_statement): Likewise.
30394         (grid_target_follows_gridifiable_pattern): Likewise.
30395         (grid_remap_prebody_decls): Likewise.
30396         (grid_copy_leading_local_assignments): Likewise.
30397         (grid_process_kernel_body_copy): Likewise.
30398         (grid_attempt_target_gridification): Likewise.
30399         (grid_gridify_all_targets_stmt): Likewise.
30400         (grid_gridify_all_targets): Likewise.
30401         (execute_lower_omp): Call grid_gridify_all_targets.
30402         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
30403         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
30404         (tree_omp_clause): Added union field dimension.
30405         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
30406         * tree.c (omp_clause_num_ops): Added number of arguments of
30407         OMP_CLAUSE__GRIDDIM_.
30408         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
30409         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
30410         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
30411         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
30412         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
30413         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
30414         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
30415         * tree-pass.h (make_pass_gen_hsail): Declare.
30416         (make_pass_ipa_hsa): Likewise.
30417         * ipa-hsa.c: New file.
30418         * lto-section-in.c (lto_section_name): Add hsa section name.
30419         * lto-streamer.h (lto_section_type): Add hsa section.
30420         * timevar.def (TV_IPA_HSA): New.
30421         * hsa-brig-format.h: New file.
30422         * hsa-brig.c: New file.
30423         * hsa-dump.c: Likewise.
30424         * hsa-gen.c: Likewise.
30425         * hsa.c: Likewise.
30426         * hsa.h: Likewise.
30427         * toplev.c (compile_file): Call hsa_output_brig.
30428         * hsa-regalloc.c: New file.
30430 2016-01-18  Jeff Law  <law@redhat.com>
30432         PR tree-optimization/69320
30433         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
30434         ranged object, do nothing if the RHS constant is not [0..1].
30435         (optimize_stmt): Comparing a boolean ranged object against a
30436         constant outside [0..1] results in a compile-time constant.
30438         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
30439         test.
30441 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
30443         * doc/invoke.texi (Invoking GCC): Add new section to menu.
30444         (Option Summary): Update to reflect new section and moved options.
30445         (C++ Dialect Options): Move -fstats to new section.
30446         (Debugging Options): Move all dump, statistics, and other GCC
30447         developer options to new section.  Rewrite section introduction
30448         and re-order remaining options to put the more basic ones first.
30449         (Optimization Options): Move -fira-verbose and -flto-report* to
30450         new section.
30451         (Developer Options): New section incorporating moved options.
30452         * doc/cppopts.texi (-dM): Update cross-reference.
30454 2016-01-18  Richard Henderson  <rth@redhat.com>
30456         PR target/69176
30457         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
30458         operands to pseudo only if CSE is expected.  Split long immediate
30459         operands only after reload, and for the stack pointer.
30460         (*add<GPI>3_pluslong): Remove.
30461         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
30462         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
30463         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
30464         (*add<GPI>3 peepholes): New.
30465         (*add<GPI>3 splitters): New.
30466         * config/aarch64/constraints.md (Upl): New.
30467         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
30469 2016-01-18  Richard Biener  <rguenther@suse.de>
30471         PR tree-optimization/69297
30472         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
30473         stmt at most once.
30474         (vect_bb_vectorization_profitable_p): Clear visited flag again.
30476 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
30478         PR middle-end/68542
30479         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
30480         of mixind vector and scalar types.
30481         (fold_relational_const): Add handling of vector
30482         comparison with boolean result.
30483         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
30484         comparison of vector operands with boolean result for EQ/NE only.
30485         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
30486         (verify_gimple_cond): Likewise.
30487         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
30488         valid type of VAL.
30490 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
30492         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
30493         !TARGET_OCTEON.
30495 2016-01-18  Richard Biener  <rguenther@suse.de>
30497         PR middle-end/69308
30498         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
30500 2016-01-18  Tom de Vries  <tom@codesourcery.com>
30502         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
30504 2016-01-18  Tom de Vries  <tom@codesourcery.com>
30506         * omp-low.c (set_oacc_fn_attrib): Make extern.
30507         * omp-low.h (set_oacc_fn_attrib): Declare.
30508         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
30509         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
30510         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
30511         Add and handle function parameter oacc_kernels_p.
30512         (find_reduc_addr, get_omp_data_i_param): New function.
30513         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
30514         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
30515         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
30516         Calculate dominance info.  Skip loops that are not in a kernels region
30517         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
30518         (pass_parallelize_loops::execute): Call parallelize_loops with
30519         oacc_kernels_p argument.
30520         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
30521         New member function.
30522         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
30523         * passes.def: Add argument to pass_parallelize_loops instantation.
30525 2016-01-18  Tom de Vries  <tom@codesourcery.com>
30527         * tree-parloops.c (pass_parallelize_loops::execute): Allow
30528         pass_parallelize_loops to be run outside the loop pipeline.
30530 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
30532         * tree-scalar-evolution.c (follow_copies_to_constant): New.
30533         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
30535 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
30537         PR target/63679
30538         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
30539         using get_ref_base_and_extent.
30540         (equal_mem_array_ref_p): New.
30541         (hashable_expr_equal_p): Add call to previous.
30543 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
30545         PR target/63679
30546         * tree-sra.c (disqualified_constants, constant_decl_p): New.
30547         (sra_initialize): Allocate disqualified_constants.
30548         (sra_deinitialize): Free disqualified_constants.
30549         (disqualify_candidate): Update disqualified_constants when appropriate.
30550         (create_access): Scan for constant-pool entries as we go along.
30551         (scalarizable_type_p): Add check against type_contains_placeholder_p.
30552         (maybe_add_sra_candidate): Allow constant-pool entries.
30553         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
30554         (initialize_constant_pool_replacements): New.
30555         (sra_modify_assign): Avoid mangling assignments created by previous,
30556         and don't generate writes into constant pool.
30557         (sra_modify_function_body): Call initialize_constant_pool_replacements.
30559 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
30561         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
30562         andnot instruction.
30563         (scalar_chain::convert_op): Likewise.
30564         * config/i386/i386.md (*andndi3_doubleword): New.
30566 2016-01-18  Richard Biener  <rguenther@suse.de>
30568         PR tree-optimization/69170
30569         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
30570         building a vector from scalar results of a pattern stmt.
30572 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
30574         * haifa-sched.c (autopref_multipass_init): Work around
30575         -Wmaybe-uninitialized warning.
30577 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
30579         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
30580         against the constant 0.
30582 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30584         PR tree-optimization/68799
30585         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
30586         look up phi candidates in the statement-candidate map.
30587         (phi_add_costs): Likewise.
30588         (record_phi_increments): Likewise.
30589         (phi_incr_cost): Likewise.
30590         (ncd_with_phi): Likewise.
30591         (all_phi_incrs_profitable): Likewise.
30593 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
30595         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
30596         -Wmaybe-uninitialized warning.
30598 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
30600         * doc/invoke.texi (Invoking GCC): Add new section to menu.
30601         (Option Summary): Update to reflect new section and moved options.
30602         (C++ Dialect Options): Move -fvtable-verify and related options.
30603         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
30604         and profiling-related options.
30605         (Optimization Options): Move profile generation options and
30606         -fstack-protector and related options.
30607         (Instrumentation Options): New section incorporating moved options.
30608         (Code Generation Options): Move -finstrument-functions and
30609         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
30611 2016-01-16  Tom de Vries  <tom@codesourcery.com>
30613         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
30615 2016-01-16  Tom de Vries  <tom@codesourcery.com>
30617         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
30619 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
30621         * hash-table.h (hash_table::empty): Turn into an inline wrapper
30622         that checks whether the table is already empty.  Rename the
30623         original implementation to...
30624         (hash_table::empty_slot): ...this new private function.
30626 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
30628         PR diagnostic/68899
30629         * diagnostic-show-locus.c (layout::print_source_line): Move x
30630         offset of line until after call to
30631         get_line_width_without_trailing_whitespace.
30633 2016-01-15  Jeff Law  <law@redhat.com>
30635         PR tree-optimization/69270
30636         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
30637         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
30638         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
30639         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
30640         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
30641         ssa_name_has_boolean_range and constant_boolean_node.
30643 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
30645         PR rtl-optimization/69030
30646         * lra-spills.c (remove_pseudos): Check nrefs and make the function
30647         returning bool.
30648         (spill_pseudos): Delete debug insn for dead pseudo.
30649         (lra_spill): Initiate spill_hard_reg and slots memory separately.
30651 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
30653         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
30654         New.
30655         (TYPES_UNOPUS): Likewise.
30656         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
30657         builtin type, from UNOP to UNOPUS.
30658         (lbtruncuv4sf): Likewise.
30659         (lbtruncuv2df): Likewise.
30660         (lrounduv2sf): Likewise.
30661         (lrounduv4sf): Likewise.
30662         (lrounduv2df): Likewise.
30663         (lroundusf): Likewise.
30664         (lroundusf): Likewise.
30665         (lceiluv2sf): Likewise.
30666         (lceiluv4sf): Likewise.
30667         (lceiluv2df): Likewise.
30668         (lceilusf): Likewise.
30669         (lceiludf): Likewise.
30670         (lflooruv2sf): Likewise.
30671         (lflooruv4sf): Likewise.
30672         (lflooruv2df): Likewise.
30673         (lfloorusf): Likewise.
30674         (lfloorudf): Likewise.
30675         (lfrintnuv2sf): Likewise.
30676         (lfrintnuv4sf): Likewise.
30677         (lfrintnuv2df): Likewise.
30678         (lfrintnusf): Likewise.
30679         (lfrintnudf): Likewise.
30680         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
30681         conversion.
30682         (vcvtq_u32_f32): Likewise.
30683         (vcvtq_u64_f64): Likewise.
30684         (vcvta_u32_f32): Likewise.
30685         (vcvtaq_u32_f32): Likewise.
30686         (vcvtaq_u64_f64): Likewise.
30687         (vcvtm_u32_f32): Likewise.
30688         (vcvtmq_u32_f32): Likewise.
30689         (vcvtmq_u64_f64): Likewise.
30690         (vcvtn_u32_f32): Likwise.
30691         (vcvtnq_u32_f32): Likewise.
30692         (vcvtnq_u64_f64): Likewise.
30693         (vcvtp_u32_f32): Likewise.
30694         (vcvtpq_u32_f32): Likewise.
30695         (vcvtpq_u64_f64): Likewise.
30696         (vcvtmd_u64_f64): Likewise.
30697         (vcvtms_u32_f32): Likewise.
30698         (vcvtad_u64_f64): Likewise.
30699         (vcvtas_u32_f32): Likewise.
30700         (vcvtnd_u64_f64): Likewise.
30701         (vcvtns_u32_f32): Likewise.
30702         (vcvtpd_u64_f64): Likewise.
30703         (vcvtps_u32_f32): Likewise.
30705 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30707         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
30708         CSEL of zero_extended registers.
30710 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30712         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
30713         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
30715 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30717         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
30718         false when argument string is not found in the attributes table
30719         at all.
30721 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
30723         PR target/68609
30724         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
30725         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
30726         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
30727         precision estimate.
30729 2016-01-15  Richard Biener  <rguenther@suse.de>
30731         PR tree-optimization/66856
30732         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
30733         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
30734         (vect_create_new_slp_node): Increment stmt reference count.
30735         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
30736         an SLP tree before swapping operands.
30737         (vect_build_slp_tree): Likewise.
30738         (destroy_bb_vec_info): Free stmt info after SLP instances.
30739         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
30740         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
30741         (STMT_VINFO_NUM_SLP_USES): New macro.
30743 2016-01-15  Richard Biener  <rguenther@suse.de>
30745         PR debug/69137
30746         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
30747         (add_linkage_name): ... here.
30748         (gen_typedef_die): Use add_linkage_name_raw instead of
30749         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
30750         if necessary.
30752 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
30754         * gimplify.c (oacc_default_clause): Decode reference and pointer
30755         types for both kernels and parallel regions.
30757 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
30759         PR middle-end/69246
30760         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
30762 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
30764         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
30765         (convert_scalars_to_vector): Likewise.
30767 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
30769         * doc/extend.texi (Type Traits): Fix grammar.
30771 2016-01-15  Martin Jambor  <mjambor@suse.cz>
30773         * tree-inline.c (remap_decl): Use existing dclarations if
30774         remapping a type and prevent_decl_creation_for_types.
30775         (replace_locals_stmt): Do an initial remapping of non-VLA typed
30776         decls first.  Do real remapping with
30777         prevent_decl_creation_for_types set.
30778         * tree-inline.h (copy_body_data): New field
30779         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
30780         padding.
30782 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
30784         * config/s390/s390.opt (mmvcle): More verbose help text.
30786 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
30788         * config/s390/s390.opt: Add period to -mzvector option text.
30790 2016-01-15  Richard Biener  <rguenther@suse.de>
30792         PR tree-optimization/68961
30793         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
30794         of invariants in stores again.
30796 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
30798         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
30800 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
30802         * config/i386/i386.c (ix86_expand_branch): Don't split
30803         DI mode xor instruction to SI mode.
30805 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
30807         PR ipa/68148
30808         * ipa-icf.c (sem_function::merge): Virtual functions may become
30809         reachable even if they address is not taken and there are no
30810         idrect calls.
30812 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
30814         * lto-streamer-out.c (subtract_estimated_size): New function.
30815         (get_symbol_initial_value): Use it.
30817 2016-01-15  Christian Bruel  <christian.bruel@st.com>
30819         PR target/65837
30820         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
30821         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
30822         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
30823         use add_builtin_function_ext_scope instead of add_builtin_function.
30824         (neon_set_p, neon_crypto_set_p): Remove.
30825         (arm_init_builtins): Always call arm_init_neon_builtins and
30826         arm_init_crypto_builtins.
30827         (arm_expand_builtin): Check that builtins are allowed for the arch.
30828         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
30829         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
30830         arm_init_neon_builtins call.
30832 2016-01-15  Richard Biener  <rguenther@suse.de>
30834         PR tree-optimization/69117
30835         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
30836         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
30837         of the leader conservatively.
30838         (free_scc_vn): Restore original SSA name infos.
30840 2016-01-14  Jeff Law  <law@redhat.com>
30842         PR tree-optimization/69270
30843         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
30844         single bit of precision, verify it's also unsigned.
30845         (record_edge_info): Use constant_boolean_node rather than fold_convert
30846         to convert boolean_true/boolean_false to the right type.
30848 2016-01-14  Richard Henderson  <rth@redhat.com>
30850         PR rtl-opt/69014
30851         * loop-doloop.c (record_reg_sets): New.
30852         (doloop_optimize): Reject the transform if the sequence
30853         clobbers registers live at the end of the loop block.
30854         (doloop_optimize_loops): Enable df_live if needed.
30856 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
30858         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
30859         * config/rs6000/rs6000.c: Likewise.
30860         * config/rs6000/rs6000.h: Likewise.
30861         * config/rs6000/rs6000.md: Likewise.
30862         * doc/extend.texi: Likewsie.
30864 2016-01-14  Jeff Law  <law@redhat.com>
30866         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
30867         typo.
30869 2016-01-14  Richard Henderson  <rth@redhat.com>
30871         PR c/69272
30872         PR tree-opt/68964
30873         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
30874         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
30875         instead of builtin_decl_declared_p to test for declaration.
30877 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
30879         * doc/loop.texi (Loop Analysis and Representation): Document
30880         loop_depth function.
30882 2016-01-14  Tom de Vries  <tom@codesourcery.com>
30884         PR tree-optimization/68773
30885         * omp-low.c (expand_omp_target): Don't set force_output.
30886         * varpool.c (varpool_node::get_create): Same.
30887         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
30888         offload_funcs with force_output.
30890 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
30892         PR debug/69244
30893         * lra-eliminations.c (move_plus_up): Don't change anything if either
30894         the outer or inner subreg mode is not MODE_INT.
30895         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
30896         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
30898 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
30900         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
30901         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
30902         reduc_uplus_@var{m}): Remove.
30903         * expr.c (expand_expr_real_2): Remove expansion path for
30904         reduc_[us](min|max|plus) optabs.
30905         * optabs-tree.c (scalar_reduc_to_vector): Remove.
30906         * optabs-tree.h (scalar_reduc_to_vector): Remove.
30907         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
30908         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
30909         * tree-vect-loop.c (vectorizable_reduction): Remove test for
30910         reduc_[us](min|max|plus) optabs.
30912 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
30914         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
30915         (reduc_plus_scal_v2sf): New.
30916         (reduc_smax_v2sf): Rename to...
30917         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
30918         (reduc_smin_v2sf): Rename to...
30919         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
30921 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
30923         * alias.c (compare_base_symbol_refs): New function.
30924         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
30925         it.
30927 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
30929         PR middle-end/68146
30930         PR tree-optimization/69155
30931         * tree-complex.c: Include cfganal.h.
30932         (phis_to_revisit): New variable.
30933         (extract_component): Add phiarg_p argument.  Assert that returned
30934         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
30935         (update_phi_components): Partly rewrite to use loop over real/imag
30936         components instead of code duplication.  If extract_component returns
30937         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
30938         create_tmp_reg into the PHI node instead, and mention the phi triplet
30939         in phis_to_revisit.
30940         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
30941         in phis_to_revisit at the end.
30943 2016-01-14  Richard Biener  <rguenther@suse.de>
30945         PR tree-optimization/68060
30946         * tree-vect-loop.c (vect_is_simple_reduction): Check the
30947         outer loop reduction is only used in the inner loop before
30948         detecting a double reduction.
30950 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
30952         PR target/68269
30953         * combine.c (expand_field_assignment): Punt if compute_mode is
30954         unsupported scalar mode.
30956 2016-01-14  Richard Biener  <rguenther@suse.de>
30958         PR tree-optimization/66856
30959         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
30960         SLP node only if it built successfully.
30961         (vect_analyze_slp_instance): Adjust.
30963 2016-01-14  Jeff Law  <law@redhat.com>
30965         PR tree-optimization/69270
30966         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
30967         (record_edge_info): Use it.  Convert boolean_{true,false}_node
30968         to the type of op0.
30970 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
30972         PR ipa/66487
30973         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
30974         use block_ultimate_origin
30975         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
30977 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
30979         * doc/invoke.texi (Submodel Options): Rename section to
30980         "Machine-Dependent Options" to better reflect its content.
30981         Rewrite introductory text to remove archaic CPU names.
30982         Update references.
30984 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
30986         * doc/invoke.texi (Code Gen Options): Move section up in file,
30987         before target-specific options.  Update menu and option summary
30988         to reflect the new section ordering.
30990 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
30992         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
30993         (C++ Dialect Options): Add cross-reference to -std option.
30994         * doc/standards.texi (C++ Language): Document C++14 support.
30996 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
30998         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
30999         for pack/unpack functions for __ibm128.
31000         (PACK_IF): Likewise.
31001         (UNPACK_IF): Likewise.
31003         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
31004         support for __ibm128 pack/unpack functions.
31005         (rs6000_invalid_builtin): Likewise.
31006         (rs6000_init_builtins): Likewise.
31007         (rs6000_opt_masks): Likewise.
31009         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
31010         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
31011         functions
31012         (RS6000_BTM_COMMON): Likewise.
31014         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
31015         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
31016         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
31017         128-bit floating point.  Add support for the double values to be
31018         in Altivec registers for TF/IF packing and unpacking, but restrict
31019         TD packing sub-fields to be FPR registers.  Don't allow overlapped
31020         register support for packing.  Allow pack inputs to be memory
31021         locations.  Don't build generator functions for unpack<mode>_dm
31022         and unpack<mode>_nodm.
31023         (unpack<mode>_dm): Likewise.
31024         (unpack<mode>_nodm): Likewise.
31025         (pack<mode>): Likewise.
31027         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
31028         built-in functions to pack/unpack explicit __ibm128 values.
31029         (__builtin_unpack_ibm128): Likewise.
31031         * doc/extend.texi (PowerPC Built-in Functions): Document
31032         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
31034 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
31036         PR c/66208
31037         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
31038         Add new arg loc and pass it down as context.
31039         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
31040         to the location to use for the warning.
31041         (check_function_arguments): New arg loc.  All callers changed.  Pass
31042         it to check_function_nonnull.
31043         * c-common.h (check_function_arguments): Adjust declaration.
31045 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
31047         PR tree-optimization/69156
31048         * gimple.c (validate_type): Removed.
31049         (gimple_builtin_call_types_compatible_p): Use
31050         useless_type_conversion_p instead of validate_type.
31051         * value-prof.c (gimple_stringop_fixed_value): Fold
31052         icall_size to correct type.
31054 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
31056         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
31057         effects.
31059 2016-01-13  Richard Henderson  <rth@redhat.com>
31061         PR tree-opt/68964
31062         * target.def (builtin_tm_load, builtin_tm_store): Remove.
31063         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
31064         (ix86_builtin_tm_store): Remove.
31065         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
31066         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
31067         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
31068         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
31069         * doc/tm.texi: Rebuild.
31071         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
31072         (BUILT_IN_TM_MEMCPY_RTWN): New.
31073         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
31074         fallback from vector to integer helpers.
31075         (build_tm_load): Handle vector types directly, instead of
31076         via target hook.
31077         (build_tm_store): Likewise.
31078         (expand_assign_tm): Prepare for register types not handled by
31079         the above.  Copy them to memory and use memcpy.
31080         * tree.c (tm_define_builtin): New.
31081         (find_tm_vector_type): New.
31082         (build_tm_vector_builtins): New.
31083         (build_common_builtin_nodes): Call it.
31085 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
31087         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
31088         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
31090 2016-01-13  Tom de Vries  <tom@codesourcery.com>
31092         PR tree-optimization/69169
31093         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
31094         handled_struct_type param.
31095         (create_variable_info_for, intra_create_variable_infos): Call
31096         create_variable_info_for_1 with extra arg.
31098 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
31100         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
31101         and "armv8.1-a+crc" entries.
31103 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
31105         PR target/69228
31106         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
31107         Change first operand predicate from register_or_constm1_operand
31108         to register_operand.
31109         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
31110         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
31111         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
31112         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
31113         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
31114         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
31115         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
31116         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
31117         comparison with constm1_rtx from vec_prefetch_gen part.
31119 2016-01-13  Richard Biener  <rguenther@suse.de>
31121         PR tree-optimization/69013
31122         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
31123         Exchange assert for a test.
31125 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
31127         PR target/69247
31128         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
31130 2016-01-13  Richard Biener  <rguenther@suse.de>
31132         PR tree-optimization/69242
31133         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
31134         assert with a check.
31136 2016-01-13  Richard Biener  <rguenther@suse.de>
31138         PR tree-optimization/69186
31139         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
31140         Properly guard vect_update_misalignment_for_peel call.
31142 2016-01-12  Jeff Law  <law@redhat.com>
31144         PR tree-optimization/pr67755
31145         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
31146         "need_profile_correction".
31147         (thread_block_1): Initialize new field to false by default.  If we
31148         have multiple thread paths through a common joiner to different
31149         final targets, then set new field to true.
31150         (compute_path_counts): Only do count adjustment when it's really
31151         needed.
31153 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
31155         * doc/invoke.texi (Spec Files): Move section down in file, past
31156         all command-line option descriptions.
31158 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31160         PR middle-end/54809
31161         * doc/gty.texi: Remove documentation of mark_hook.
31162         * gengtype.c (struct write_types_data): Remove code to support
31163         mark_hook attribute.
31164         (walk_type): Likewise.
31165         (write_func_for_structure): Likewise.
31167 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
31169         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
31170         Directory Options, and -specs= to Overall Options.
31171         (Overall Options): Adjust similarly.  Reorder to group related
31172         options together.  Make -specs= cross-reference the spec file details.
31173         (Directory Options): Adjust similarly.
31175 2016-01-12  Jeff Law  <law@redhat.com>
31177         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
31179 2016-01-12  Olivier Hainque  <hainque@adacore.com>
31181         * gcc.c (spec_undefvar_allowed): New global.
31182         (process_command): Set to true when running for --version or --help,
31183         alone or together.
31184         (getenv_spec_function): When the variable is not defined, use the
31185         variable name as the variable value if we're allowed not to issue
31186         a fatal error.
31188 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
31190         PR tree-optimization/68911
31191         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
31192         information computed for expression "init + nit * step".
31194 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
31196         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
31197         about name of GCC executable.  Remove deleted node from menu.
31198         (Directory Options) <-B>: Remove cross-reference to deleted node.
31199         (Target Options): Delete section.
31201 2016-01-12  Christian Bruel  <christian.bruel@st.com>
31203         PR target/69180
31204         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
31205         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
31207 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
31209         PR target/69198
31210         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
31211         aligned_mem is properly set for AVX512-VL floating point masked
31212         stores.
31214         PR target/69175
31215         * ifcvt.c (cond_exec_process_if_block): When removing the last
31216         insn from then_bb, remove also any possible barriers that follow it.
31218 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
31220         PR target/68456
31221         PR target/69226
31222         * config/i386/iamcu.h (SIZE_TYPE): New macro.
31223         (PTRDIFF_TYPE): Likewise.
31224         (WCHAR_TYPE): Likewise.
31225         (WCHAR_TYPE_SIZE): Likewise.
31226         (STDINT_LONG32): Likewise.
31228 2016-01-12  Richard Biener  <rguenther@suse.de>
31230         PR tree-optimization/69053
31231         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
31232         convert initial value for cond reductions.
31234 2016-01-12  Richard Biener  <rguenther@suse.de>
31236         PR tree-optimization/69007
31237         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
31238         widen_sum after dot_prod and sad.
31240 2016-01-12  Richard Biener  <rguenther@suse.de>
31242         PR tree-optimization/69168
31243         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
31244         pattern stmt SLP type.
31245         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
31246         end up unused so cope with that case.
31248 2016-01-12  Richard Biener  <rguenther@suse.de>
31250         PR tree-optimization/69157
31251         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
31252         stmts def type only during analyze phase.
31253         (vectorizable_call): Likewise.
31254         (vectorizable_simd_clone_call): Likewise.
31255         (vectorizable_conversion): Likewise.
31256         (vectorizable_assignment): Likewise.
31257         (vectorizable_shift): Likewise.
31258         (vectorizable_operation): Likewise.
31259         (vectorizable_store): Likewise.
31260         (vectorizable_load): Likewise.
31262 2016-01-12  Richard Biener  <rguenther@suse.de>
31264         PR tree-optimization/69174
31265         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
31266         space.
31267         (vectorizable_load): Properly compute the number of loads needed
31268         for permuted strided SLP loads and do not spuriously assign
31269         to SLP_TREE_VEC_STMTS.
31271 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
31273         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
31274         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
31275         (MD_EXEC_PREFIX): Remove.
31276         (MD_STARTFILE_PREFIX) Removee.
31277         (FILE_NAME_ABSOLUTE_P): Remove.
31278         (CPP_SPEC): Do not read macros from sys/version.h.
31279         (LINK_COMMAND_SPEC): Remove.
31280         (LOCAL_INCLUDE_DIR): Remove.
31281         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
31282         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
31283         (POST_LINK_SPEC): Define to invoke stubify after linker
31284         (LIBSTDCXX): Remove define
31285         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
31286         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
31287         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
31288         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
31289         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
31290         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
31291         (i386_djgpp_asm_named_section): Add propotype of new procedure
31293         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
31294         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
31295         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
31296         in config/i386/djgpp.h).
31297         (STANDARD_STARTFILE_PREFIX_2): Define identical to
31298         STANDARD_STARTFILE_PREFIX_1.
31299         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
31300         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
31301         installation errors.
31302         (MAX_OFILE_ALIGNMENT): Define to 128.
31303         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
31305         * config/i386/djgpp.c: New file. Add implementation of
31306         i386_djgpp_asm_named_section.
31308         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
31310         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
31311         Add rule for building djgpp.o.
31313 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31315         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
31316         (rtx_is_swappable_p): Reductions are swappable.
31317         (insn_is_swappable_p): V2DF reductions are swappable.
31319 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
31321         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
31322         reloads for other unsupported memory operands.
31324 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
31325             Jim Wilson  <jim.wilson@linaro.org>
31327         PR target/69194
31328         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
31329         copy_to_mode_reg instead of force_reg.
31331 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
31333         PR target/69225
31334         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
31335         TARGET_80387 is true.
31337 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
31339         PR target/69071
31340         * lra-eliminations.c (move_plus_up): Only move plus up
31341         if subreg of the constant can be simplified into constant
31342         and use the simplified subreg of the constant instead of
31343         the original constant.
31345         * fold-const.c (fold_convertible_p): Don't return true
31346         for conversion of VECTOR_TYPE to same sized integral type.
31347         (fold_convert_loc): Fix up formatting.  Fold conversion of
31348         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
31349         instead of NOP_EXPR.
31351         PR tree-optimization/69214
31352         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
31353         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
31354         Formatting fix.
31356         PR tree-optimization/69207
31357         * tree-vect-slp.c (vect_get_constant_vectors): For
31358         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
31359         fold_convertible_p to vector_type's element type, and always
31360         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
31362 2016-01-11  Richard Biener  <rguenther@suse.de>
31364         PR tree-optimization/69173
31365         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
31366         fixup the cycle if all stmts are in a pattern.
31368 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
31370         PR middle-end/68999
31371         * alias.c (base_alias_check): Move check for addresses with
31372         alignment ANDs before the call for compare_base_decls.
31373         (memrefs_conflict_p): Return -1 for different decls
31374         that went through alignment adjustments.
31376 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31378         PR rtl-optimization/68796
31379         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
31380         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
31381         and QImode comparisons against zero with CC_NZmode.
31382         * config/aarch64/iterators.md (short_mask): New mode_attr.
31384 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
31386         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
31387         (<avx512>_store<mode>_mask): Likewise.
31389 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
31390             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31392         PR rtl-optimization/68841
31393         * ifcvt.c (struct noce_if_info): Add orig_x field.
31394         (bbs_ok_for_cmove_arith): Add to_rename parameter.
31395         Don't record conflicts on to_rename if it's present.
31396         Allow memory destinations in sets.
31397         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
31398         blocks, passing orig_x to the checks.
31399         (noce_process_if_block): Set if_info->orig_x appropriately.
31401 2016-01-11  Tom de Vries  <tom@codesourcery.com>
31403         PR tree-optimization/69069
31404         * tree-parloops.c (create_parallel_loop): Add missing phi args.
31406 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
31408         PR rtl-optimization/68920
31409         * config/i386/i386.c (ix86_option_override_internal): Restrict number
31410         of conditional moves for  RTL if-conversion to 1 for
31411         TARGET_ONE_IF_CONV_INSN.
31412         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
31413         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
31414         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
31415         parameter to restirct number of conditional moves for
31416         RTL if-conversion.
31417         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
31418         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
31419         conditionl moves.
31421 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
31423         PR bootstrap/69123
31424         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
31425         onepart vars.  Fix typo in comment.  Fix reversed condition in
31426         unshare test.
31427         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
31429         PR bootstrap/69123
31430         * var-tracking.c (dump_onepart_variable_differences): New.
31431         (dataflow_set_different): If a detailed dump is requested,
31432         delay early returns and dump differences between onepart
31433         variables present before and after, and added variables.
31435 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
31437         PR target/69010
31438         * expr.c (expand_expr_real_1): For boolean vector constants
31439         with a scalar mode use const_scalar_mask_from_tree.
31440         (const_scalar_mask_from_tree): New.
31441         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
31442         assigned to a mask type to handle constants.
31444 2016-01-11  Martin Jambor  <mjambor@suse.cz>
31446         PR ipa/69044
31447         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
31448         useless parameters if we cannot change function signature.
31450 2016-01-11  Martin Jambor  <mjambor@suse.cz>
31452         PR ipa/66616
31453         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
31454         flag.
31456 2016-01-11  Tom de Vries  <tom@codesourcery.com>
31458         PR tree-optimization/69109
31459         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
31460         latch with phi.
31462 2016-01-11  Tom de Vries  <tom@codesourcery.com>
31464         PR tree-optimization/69108
31465         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
31466         res is not used in a phi.
31468 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
31470         PR 67425
31471         * common.opt (frandom-seed): Fix parameter name.
31472         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
31474 2016-01-11  Tom de Vries  <tom@codesourcery.com>
31476         PR tree-optimization/69058
31477         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
31478         not supported.
31480 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
31482         * config/arc/arc.opt (mdiv-rem): Add period to the end.
31483         (mcode-density): Likewise.
31485 2016-01-10  Tom de Vries  <tom@codesourcery.com>
31487         PR tree-optimization/69062
31488         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
31489         (parallelize_loops): Don't paralelize loop that has phi with address
31490         arg.
31492 2016-01-10  Tom de Vries  <tom@codesourcery.com>
31494         PR tree-optimization/69039
31495         * tree-parloops.c (try_create_reduction_list): Only allow single exit
31496         phi for reduction.
31498 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
31500         PR middle-end/68743
31501         * match.pd: Require target has function_c99_misc before doing
31502         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
31504 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
31506         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
31507         use GMPINC.
31508         * configure: Regenerate.
31510 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
31512         PR middle-end/50865
31513         PR tree-optimization/69097
31514         * fold-const.h (expr_not_equal_to): New prototype.
31515         * fold-const.c: Include stringpool.h and tree-ssanames.h.
31516         (expr_not_equal_to): New function.
31517         * match.pd (X % -Y is the same as X % Y): Don't optimize
31518         unless X is known not to be equal to minimum or Y is known
31519         not to be equal to -1.
31520         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
31521         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
31522         (simplify_stmt_using_ranges): Adjust caller.
31523         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
31524         substitute_and_fold.
31526 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
31528         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
31529         w/o DECL_NAME.
31531 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
31533         PR tree-optimization/69167
31534         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
31535         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
31536         ops[0] comparison.
31537         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
31539 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
31540             Richard Biener  <rguenther@suse.de>
31542         PR tree-optimization/68707
31543         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
31544         instances that can be handled via vect_load_lanes.
31546 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
31548         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
31549         if we can't determine address equivalence.
31550         * alias.c (compare_base_decl): Update for changed return value of
31551         symtab_node::equal_address_to.
31553 2016-01-08  Jason Merrill  <jason@redhat.com>
31555         PR c++/68983
31556         PR c++/67557
31557         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
31558         * expr.c (store_field): Not here.
31559         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
31560         call with TREE_ADDRESSABLE type.
31561         * tree-cfg.c (verify_gimple_call): Adjust.
31563 2016-01-08  Olivier Hainque  <hainque@adacore.com>
31565         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
31566         libc_internal.
31568 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
31570         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
31571         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
31572         (reduc_smin_v2sf): Rename to...
31573         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
31574         (reduc_splus_v2sf): Rename to...
31575         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
31577 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
31579         PR tree-optimization/69162
31580         * gimplify.c (gimplify_va_arg_expr): Encode original type of
31581         valist argument in another argument.
31582         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
31583         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
31584         to determine the va_list type, build a MEM_REF instead of
31585         build_fold_indirect_ref.
31587         PR tree-optimization/69172
31588         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
31589         gimple_build.
31591 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31593         PR tree-optimization/67781
31594         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
31595         and cmpnop in two steps: first the ones not accessed in original
31596         gimple expression in a endian independent way and then the ones not
31597         accessed in the final result in an endian-specific way.
31599 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
31601         PR tree-optimization/69083
31602         * tree-vect-slp.c (vect_get_constant_vectors): For
31603         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
31604         element type.  If op is fold_convertible_p to vector_type's element
31605         type, use NOP_EXPR instead of VCE.
31607 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
31609         PR rtl-optimization/67778
31610         PR rtl-optimization/68634
31611         PR rtl-optimization/68909
31612         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
31613         block from the stack until done with it.  Remove a superfluous
31614         bitmap set.  Remove a superfluous bitmap test.
31616 2016-01-07  Martin Sebor  <msebor@redhat.com>
31618         PR c/68966
31619         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
31620         constraint on the type of arguments.
31622 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
31624         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
31625         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
31626         unaligned_access on the gcc_options set.
31627         * config/arm/arm.c (arm_option_override_internal): Use
31628         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
31630 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
31632         PR target/69140
31633         * config/i386/i386.c (ix86_frame_pointer_required): Enable
31634         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
31636 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
31638         Revert
31639         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
31641         PR target/69140
31642         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
31643         depending on frame_pointer_needed before remaining integer and SSE
31644         registers are saved.
31646 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
31648         PR 1078
31649         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
31651 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
31653         PR target/69171
31654         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
31655         Use the "xBm" constraint.
31656         (float<sseintvecmodelower><mode>2<mask_name><round_name):
31657         Likewise.
31658         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
31659         (sse_cvtsi2ssq<round_name>): Likewise.
31660         (sse_cvtss2si<round_name>): Likewise.
31661         (sse_cvtss2siq<round_name>): Likewise.
31662         (sse2_cvtsi2sdq<round_name>): Likewise.
31663         (sse2_cvtsd2si<round_name>): Likewise.
31664         (sse2_cvtsd2siq<round_name>): Likewise.
31665         * config/i386/subst.md (round_nimm_scalar_predicate): New
31666         predicate.
31668 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
31670         PR middle-end/67639
31671         * varasm.c (make_decl_rtl): Mark invalid register vars as
31672         DECL_EXTERNAL.
31674         PR rtl-optimization/66206
31675         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
31676         All callers changed.
31678 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
31680         PR tree-optimization/69141
31681         * tree-ssa-pre.c: Include langhooks.h.
31682         (eliminate_dom_walker::before_dom_children): Use
31683         lang_hooks.decl_printable_name instead of
31684         cgraph_node::get ()->name ().
31686         PR middle-end/68960
31687         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
31688         it and DECL_ALIGN too.
31690 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
31692         * config/mips/mips-ftypes.def: Sort to lexicographical order.
31694 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
31696         PR target/69140
31697         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
31698         depending on frame_pointer_needed before remaining integer and SSE
31699         registers are saved.
31701 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31703         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
31704         mode iterator with VSX_M2.
31705         (*p9_vecstore_<mode>): Likewise.
31706         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
31707         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
31708         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
31709         (define_split for VSX_LE128 stores): Likewise.
31710         (define_peephole2 for TImode LE swaps): Likewise.
31711         (define_split for VSX_LE128 post-reload stores): Likewise.
31713 2016-01-06  Marek Polacek  <polacek@redhat.com>
31715         PR sanitizer/69099
31716         * convert.c (convert_to_integer_1): Adjust call to
31717         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
31718         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
31719         EXPR instead of ARG.
31720         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
31722 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
31724         PR 1078
31725         * doc/extend.texi (RL78 Variable Attributes): New section.
31727 2016-01-05  Marek Polacek  <polacek@redhat.com>
31729         PR c/69104
31730         * builtins.c (get_memmodel): Use expansion point location rather than
31731         the input location.  Call warning_at rather than warning.
31732         (expand_builtin_atomic_compare_exchange): Likewise.
31733         (expand_builtin_atomic_load): Likewise.
31734         (expand_builtin_atomic_store): Likewise.
31735         (expand_builtin_atomic_clear): Likewise.
31737 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
31739         PR target/68991
31740         * config/i386/i386.c (ix86_expand_vector_logical_operator):
31741         Replace nonimmediate_operand with vector_operand.
31742         * config/i386/predicates.md (vector_operand): New predicate.
31743         (general_vector_operand): Replace nonimmediate_operand with
31744         vector_operand.
31745         * config/i386/sse.md: Replace nonimmediate_operand with
31746         vector_operand and m constraint with Bm constraint on SSE
31747         patterns with 16-byte memory operand.
31748         * config/i386/subst.md (round_nimm_predicate): Replace
31749         nonimmediate_operand with vector_operand.
31750         (round_saeonly_nimm_predicate): Likewise.
31751         (round_saeonly_nimm_scalar_predicate): New.
31753 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
31755         PR target/68991
31756         * config/i386/constraints.md (Bm): New constraint.
31757         * config/i386/predicates.md (vector_memory_operand): New
31758         predicate.
31759         * config/i386/sse.md: Replace xm with xBm in plusminus and
31760         any_logic patterns.
31762 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
31764         PR 1078
31765         * doc/extend.texi (V850 Function Attributes): New section.
31766         (V850 Variable Attributes): New section.
31768 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
31770         PR 1078
31771         * doc/extend.texi (MicroBlaze Function Attributes): Document
31772         interrupt_handler and fast_interrupt attributes.
31774 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
31776         PR other/60465
31777         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
31778         for local symbolic operands.
31779         * config/ia64/predicates.md (local_symbolic_operand64): New
31780         predicate.
31782 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31784         PR rtl-optimization/68651
31785         * combine.c (combine_simplify_rtx): Canonicalize x + x into
31786         x << 1.
31788 2016-01-05  Nathan Sidwell  <nathan@acm.org>
31790         * alias.c (compare_base_decls): Use symtab_node::get.
31792 2016-01-05  Nick Clifton  <nickc@redhat.com>
31794         PR target/68770
31795         * ira-costs.c (copy_cost): Initialise the t_icode field of the
31796         secondary_reload_info structure.
31798         PR target/66655
31799         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
31800         decls if weak support is available.
31802 2016-01-04  Martin Sebor  <msebor@redhat.com>
31804         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
31806 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
31808         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
31809         OPTION_MASK_P9_DFORM.
31811         * config/rs6000/constraints.md (wo constraint): New constraint for
31812         ISA 3.0 (power9).
31814         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
31815         for wo constraint.
31816         (rs6000_init_hard_regno_mode_ok): Likewise.
31818         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
31819         wo constraint.
31821         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
31822         expanders not to have constraints.  Add support for ISA 3.0 xxperm
31823         instruction.  Add support for fusing xxlor with xxperm.
31824         (altivec_vperm_<mode>_internal): Likewise.
31825         (altivec_vperm_v8hiv16qi): Likewise.
31826         (altivec_vperm_<mode>v16q): Likewise.
31827         (altivec_vperm_<mode>_uns): Likewise.
31828         (vperm_v8hiv4si): Likewise.
31829         (vperm_v16qiv8hi): Likewise.
31831         * doc/md.texi (RS/6000 constraints): Document wo constraint.
31833 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
31835         Update copyright years.
31837         * gcc.c (process_command): Update copyright notice dates.
31838         * gcov-dump.c (print_version): Ditto.
31839         * gcov.c (print_version): Ditto.
31840         * gcov-tool.c (print_version): Ditto.
31841         * gengtype.c (create_file): Ditto.
31842         * doc/cpp.texi: Bump @copying's copyright year.
31843         * doc/cppinternals.texi: Ditto.
31844         * doc/gcc.texi: Ditto.
31845         * doc/gccint.texi: Ditto.
31846         * doc/gcov.texi: Ditto.
31847         * doc/install.texi: Ditto.
31848         * doc/invoke.texi: Ditto.
31850 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
31852         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
31853         modes larger than TImode as TImode if NEON is not enabled.
31855 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
31857         PR target/69100
31858         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
31859         mode for %f0-%f31 only if TARGET_FPU.
31861 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
31863         PR target/69072
31864         * config/sparc/sparc.c (scan_record_type): Take into account subfields
31865         to compute the PACKED_P predicate.
31866         (function_arg_record_value): Minor tweaks.
31868 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31870         * doc/install.texi (--with-multilib-list): Describe the meaning of the
31871         option for arm*-*-* targets.
31873 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
31875         * doc/extend.texi (Common Function Attributes): Move docs for
31876         MSP430-specific attributes to....
31877         (MSP430 Function Attributes): ...here.  Delete the redundant
31878         entries and copy-edit the remaining text.
31879         (MSP430 Variable Attributes): Use uniform format for index
31880         entries and add a cross-reference to the corresponding function
31881         attribute docs.
31883 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
31885         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
31886         -finite-math typo.
31887         (x86 Options): Likewise.
31889 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
31891         PR 1078
31893         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
31894         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
31895         to corresponding attribute.
31897 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
31899         * doc/extend.texi (Common Function Attributes) <noplt>: Move
31900         to correct alphabetization of table.  Copy-edit and correct
31901         markup.
31902         <stack_protect>: Likewise.
31903         <target_clones>: Likewise.
31904         <simd>: Likewise.
31905         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
31906         Correct punctuation.
31907         (Code Gen Options) <-fno-plt>: Copy-edit.
31909 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
31911         PR target/68917
31912         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
31913         SI values.  Explicitly convert SI to DI and vice-versa.
31915 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
31917         PR tree-optimization/69070
31918         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
31919         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
31921         PR sanitizer/69055
31922         * ubsan.c (ubsan_instrument_float_cast): Call
31923         initialize_sanitizer_builtins.
31925         PR target/69015
31926         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
31928 Copyright (C) 2016 Free Software Foundation, Inc.
31930 Copying and distribution of this file, with or without modification,
31931 are permitted in any medium without royalty provided the copyright
31932 notice and this notice are preserved.