re PR lto/78472 (warning: type of 's' does not match original declaration from zero...
[gcc.git] / gcc / ChangeLog
1 2016-11-23 Richard Biener <rguenther@suse.de>
2
3 PR lto/78472
4 * tree.c (gimple_canonical_types_compatible_p): Ignore zero-sized
5 fields.
6
7 2016-11-23 Richard Biener <rguenther@suse.de>
8 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.rog>
9
10 PR tree-optimization/78154
11 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Return true if function
12 returns it's argument and the argument is nonnull.
13 * builtin-attrs.def: Define ATTR_RETURNS_NONNULL,
14 ATT_RETNONNULL_NOTHROW_LEAF.
15 * builtins.def (BUILT_IN_MEMPCPY): Change attribute to
16 ATTR_RETNONNULL_NOTHROW_LEAF.
17 (BUILT_IN_STPCPY): Likewise.
18 (BUILT_IN_STPNCPY): Likewise.
19 (BUILT_IN_MEMPCPY_CHK): Likewise.
20 (BUILT_IN_STPCPY_CHK): Likewise.
21 (BUILT_IN_STPNCPY_CHK): Likewise.
22 (BUILT_IN_STRCAT): Change attribute to ATTR_RET1_NOTHROW_NONNULL_LEAF.
23 (BUILT_IN_STRNCAT): Likewise.
24 (BUILT_IN_STRNCPY): Likewise.
25 (BUILT_IN_MEMSET_CHK): Likewise.
26 (BUILT_IN_STRCAT_CHK): Likewise.
27 (BUILT_IN_STRCPY_CHK): Likewise.
28 (BUILT_IN_STRNCAT_CHK): Likewise.
29 (BUILT_IN_STRNCPY_CHK): Likewise.
30
31 2016-11-23 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32
33 * fold-const.c (tree_expr_nonzero_p) : Make non-static.
34 * fold-const.h (tree_expr_nonzero_p) : Declare.
35 * match.pd (cmp (mult:c @0 @1) (mult:c @2 @1) : New Pattern.
36
37 2016-11-23 Paolo Bonzini <bonzini@gnu.org>
38
39 * system.h (HAVE_DESIGNATED_INITIALIZERS,
40 HAVE_DESIGNATED_UNION_INITIALIZERS): Do not use
41 "defined" in macros.
42 * doc/cpp.texi (Defined): Mention -Wexpansion-to-defined.
43 * doc/cppopts.texi (Invocation): Document -Wexpansion-to-defined.
44 * doc/invoke.texi (Warning Options): Document -Wexpansion-to-defined.
45
46 2016-11-23 Georg-Johann Lay <avr@gjlay.de>
47
48 PR target/60300
49 * config/avr/constraints.md (Csp): Widen range to [-11..6].
50 * config/avr/avr.c (avr_prologue_setup_frame): Limit number
51 of RCALLs in prologue to 3.
52
53 2016-11-22 Michael Collison <michael.collison@arm.com>
54
55 * config/aarch64/aarch64-protos.h
56 (aarch64_and_split_imm1, aarch64_and_split_imm2)
57 (aarch64_and_bitmask_imm): New prototypes
58 * config/aarch64/aarch64.c (aarch64_and_split_imm1):
59 New overloaded function to create bit mask covering the
60 lowest to highest bits set.
61 (aarch64_and_split_imm2): New overloaded functions to create bit
62 mask of zeros between first and last bit set.
63 (aarch64_and_bitmask_imm): New function to determine if a integer
64 is a valid two instruction "and" operation.
65 * config/aarch64/aarch64.md:(and<mode>3): New define_insn and _split
66 allowing wider range of constants with "and" operations.
67 * (ior<mode>3, xor<mode>3): Use new LOGICAL2 iterator to prevent
68 "and" operator from matching restricted constant range used for
69 ior and xor operators.
70 * config/aarch64/constraints.md (UsO constraint): New SImode constraint
71 for constants in "and" operantions.
72 (UsP constraint): New DImode constraint for constants in "and" operations.
73 * config/aarch64/iterators.md (lconst2): New mode iterator.
74 (LOGICAL2): New code iterator.
75 * config/aarch64/predicates.md (aarch64_logical_and_immediate): New
76 predicate
77 (aarch64_logical_and_operand): New predicate allowing extended constants
78 for "and" operations.
79
80 2016-11-22 Walter Lee <walt@tilera.com>
81
82 * config/tilegx/tilegx.md (trap): New pattern.
83 * config/tilepro/tilepro.md (trap): Likewise.
84
85 2016-11-22 Walter Lee <walt@tilera.com>
86
87 * config/tilegx/tilegx.md (*zero_extract): Use
88 define_insn_and_split instead of define_insn; Handle pos + size >
89 64.
90 (*sign_extract): Likewise.
91
92 2016-11-22 Marek Polacek <polacek@redhat.com>
93
94 PR tree-optimization/78455
95 * tree-ssa-uninit.c (can_chain_union_be_invalidated_p): Fix typo.
96
97 2016-11-22 Ian Lance Taylor <iant@golang.org>
98
99 PR go/78431
100 PR go/78432
101 * godump.c (go_format_type): Always pass alignment as 1 when
102 calling go_append_padding at end of struct/union.
103
104 2016-11-22 Jakub Jelinek <jakub@redhat.com>
105
106 PR target/78451
107 * config/i386/avx512bwintrin.h (_mm512_setzero_qi,
108 _mm512_setzero_hi): Removed.
109 (_mm512_maskz_mov_epi16, _mm512_maskz_loadu_epi16,
110 _mm512_maskz_mov_epi8, _mm512_maskz_loadu_epi8,
111 _mm512_maskz_broadcastb_epi8, _mm512_maskz_set1_epi8,
112 _mm512_maskz_broadcastw_epi16, _mm512_maskz_set1_epi16,
113 _mm512_mulhrs_epi16, _mm512_maskz_mulhrs_epi16, _mm512_mulhi_epi16,
114 _mm512_maskz_mulhi_epi16, _mm512_mulhi_epu16,
115 _mm512_maskz_mulhi_epu16, _mm512_maskz_mullo_epi16,
116 _mm512_cvtepi8_epi16, _mm512_maskz_cvtepi8_epi16, _mm512_cvtepu8_epi16,
117 _mm512_maskz_cvtepu8_epi16, _mm512_permutexvar_epi16,
118 _mm512_maskz_permutexvar_epi16, _mm512_avg_epu8, _mm512_maskz_avg_epu8,
119 _mm512_maskz_add_epi8, _mm512_maskz_sub_epi8, _mm512_avg_epu16,
120 _mm512_maskz_avg_epu16, _mm512_subs_epi8, _mm512_maskz_subs_epi8,
121 _mm512_subs_epu8, _mm512_maskz_subs_epu8, _mm512_adds_epi8,
122 _mm512_maskz_adds_epi8, _mm512_adds_epu8, _mm512_maskz_adds_epu8,
123 _mm512_maskz_sub_epi16, _mm512_subs_epi16, _mm512_maskz_subs_epi16,
124 _mm512_subs_epu16, _mm512_maskz_subs_epu16, _mm512_maskz_add_epi16,
125 _mm512_adds_epi16, _mm512_maskz_adds_epi16, _mm512_adds_epu16,
126 _mm512_maskz_adds_epu16, _mm512_srl_epi16, _mm512_maskz_srl_epi16,
127 _mm512_packs_epi16, _mm512_sll_epi16, _mm512_maskz_sll_epi16,
128 _mm512_maddubs_epi16, _mm512_maskz_maddubs_epi16, _mm512_unpackhi_epi8,
129 _mm512_maskz_unpackhi_epi8, _mm512_unpackhi_epi16,
130 _mm512_maskz_unpackhi_epi16, _mm512_unpacklo_epi8,
131 _mm512_maskz_unpacklo_epi8, _mm512_unpacklo_epi16,
132 _mm512_maskz_unpacklo_epi16, _mm512_shuffle_epi8,
133 _mm512_maskz_shuffle_epi8, _mm512_min_epu16, _mm512_maskz_min_epu16,
134 _mm512_min_epi16, _mm512_maskz_min_epi16, _mm512_max_epu8,
135 _mm512_maskz_max_epu8, _mm512_max_epi8, _mm512_maskz_max_epi8,
136 _mm512_min_epu8, _mm512_maskz_min_epu8, _mm512_min_epi8,
137 _mm512_maskz_min_epi8, _mm512_max_epi16, _mm512_maskz_max_epi16,
138 _mm512_max_epu16, _mm512_maskz_max_epu16, _mm512_sra_epi16,
139 _mm512_maskz_sra_epi16, _mm512_srav_epi16, _mm512_maskz_srav_epi16,
140 _mm512_srlv_epi16, _mm512_maskz_srlv_epi16, _mm512_sllv_epi16,
141 _mm512_maskz_sllv_epi16, _mm512_maskz_packs_epi16, _mm512_packus_epi16,
142 _mm512_maskz_packus_epi16, _mm512_abs_epi8, _mm512_maskz_abs_epi8,
143 _mm512_abs_epi16, _mm512_maskz_abs_epi16, _mm512_dbsad_epu8,
144 _mm512_maskz_dbsad_epu8, _mm512_srli_epi16, _mm512_maskz_srli_epi16,
145 _mm512_slli_epi16, _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
146 _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
147 _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
148 _mm512_maskz_srai_epi16, _mm512_packs_epi32,
149 _mm512_maskz_packs_epi32, _mm512_packus_epi32,
150 _mm512_maskz_packus_epi32): Use _mm512_setzero_si512 instead of
151 _mm512_setzero_qi or _mm512_setzero_hi.
152 (_mm512_maskz_alignr_epi8, _mm512_dbsad_epu8,
153 _mm512_maskz_dbsad_epu8): Formatting fixes.
154 (_mm512_srli_epi16, _mm512_maskz_srli_epi16, _mm512_slli_epi16,
155 _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
156 _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
157 _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
158 _mm512_maskz_srai_epi16): Use _mm512_setzero_si512 instead of
159 _mm512_setzero_qi or _mm512_setzero_hi.
160
161 2016-11-22 Nathan Sidwell <nathan@acm.org>
162
163 * gcc-ar.c (main): Fix indentation.
164 * gcov-io.c (gcov_write_summary): Remove extraneous {...}
165 * ggc-page.c (move_ptes_to_front): Fix formatting.
166 * hsa-dump.c (dump_has_cfun): Fix indentation.
167 * sel-sched-ir.h: Remove trailing blank lines.
168
169 2016-11-22 Jakub Jelinek <jakub@redhat.com>
170 Alexander Monakov <amonakov@ispras.ru>
171
172 * internal-fn.c (expand_GOMP_USE_SIMT): New function.
173 * tree.c (omp_clause_num_ops): OMP_CLAUSE__SIMT_ has 0 operands.
174 (omp_clause_code_name): Add _simt_ name.
175 (walk_tree_1): Handle OMP_CLAUSE__SIMT_.
176 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SIMT_.
177 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__SIMT_.
178 (scan_omp_simd): New function.
179 (scan_omp_1_stmt): Use it in target regions if needed.
180 (omp_max_vf): Don't max with omp_max_simt_vf.
181 (lower_rec_simd_input_clauses): Use omp_max_simt_vf if
182 OMP_CLAUSE__SIMT_ is present.
183 (lower_rec_input_clauses): Compute maybe_simt from presence of
184 OMP_CLAUSE__SIMT_.
185 (lower_lastprivate_clauses): Likewise.
186 (expand_omp_simd): Likewise. Remove explicit offloaded region check.
187 (execute_omp_device_lower): Lower IFN_GOMP_USE_SIMT.
188 * internal-fn.def (GOMP_USE_SIMT): New internal function.
189 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__SIMT_.
190
191 2016-11-22 Alexander Monakov <amonakov@ispras.ru>
192
193 * internal-fn.c (expand_GOMP_SIMT_LANE): New.
194 (expand_GOMP_SIMT_VF): New.
195 (expand_GOMP_SIMT_LAST_LANE): New.
196 (expand_GOMP_SIMT_ORDERED_PRED): New.
197 (expand_GOMP_SIMT_VOTE_ANY): New.
198 (expand_GOMP_SIMT_XCHG_BFLY): New.
199 (expand_GOMP_SIMT_XCHG_IDX): New.
200 * internal-fn.def (GOMP_SIMT_LANE): New.
201 (GOMP_SIMT_VF): New.
202 (GOMP_SIMT_LAST_LANE): New.
203 (GOMP_SIMT_ORDERED_PRED): New.
204 (GOMP_SIMT_VOTE_ANY): New.
205 (GOMP_SIMT_XCHG_BFLY): New.
206 (GOMP_SIMT_XCHG_IDX): New.
207 * omp-low.c (omp_maybe_offloaded_ctx): New, outlined from...
208 (create_omp_child_function): ...here. Set "omp target entrypoint"
209 or "omp declare target" attribute based on is_gimple_omp_offloaded.
210 (omp_max_simt_vf): New. Use it...
211 (omp_max_vf): ...here.
212 (lower_rec_input_clauses): Add reduction lowering for SIMT execution.
213 (lower_lastprivate_clauses): Likewise, for "lastprivate" lowering.
214 (lower_omp_ordered): Likewise, for "ordered" lowering.
215 (expand_omp_simd): Add SIMT transforms.
216 (pass_data_lower_omp): Add PROP_gimple_lomp_dev.
217 (execute_omp_device_lower): New.
218 (pass_data_omp_device_lower): New.
219 (pass_omp_device_lower): New pass.
220 (make_pass_omp_device_lower): New.
221 * passes.def (pass_omp_device_lower): Position new pass.
222 * tree-pass.h (PROP_gimple_lomp_dev): Define.
223 (make_pass_omp_device_lower): Declare.
224
225 2016-11-22 Jakub Jelinek <jakub@redhat.com>
226
227 PR target/78451
228 * config/i386/avx512vlintrin.h (_mm_setzero_di): Removed.
229 (_mm_maskz_mov_epi64): Use _mm_setzero_si128 instead of
230 _mm_setzero_di.
231 (_mm_maskz_load_epi64): Likewise.
232 (_mm_setzero_hi): Removed.
233 (_mm_maskz_loadu_epi64): Use _mm_setzero_si128 instead of
234 _mm_setzero_di.
235 (_mm_abs_epi64, _mm_maskz_abs_epi64, _mm_maskz_srl_epi64,
236 _mm_maskz_unpackhi_epi64, _mm_maskz_unpacklo_epi64,
237 _mm_maskz_compress_epi64, _mm_srav_epi64, _mm_maskz_srav_epi64,
238 _mm_maskz_sllv_epi64, _mm_maskz_srlv_epi64, _mm_rolv_epi64,
239 _mm_maskz_rolv_epi64, _mm_rorv_epi64, _mm_maskz_rorv_epi64,
240 _mm_min_epi64, _mm_max_epi64, _mm_max_epu64, _mm_min_epu64,
241 _mm_lzcnt_epi64, _mm_maskz_lzcnt_epi64, _mm_conflict_epi64,
242 _mm_maskz_conflict_epi64, _mm_sra_epi64, _mm_maskz_sra_epi64,
243 _mm_maskz_sll_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
244 _mm_ror_epi64, _mm_maskz_ror_epi64, _mm_alignr_epi64,
245 _mm_maskz_alignr_epi64, _mm_srai_epi64, _mm_maskz_slli_epi64):
246 Likewise.
247 (_mm_cvtepi32_epi8, _mm256_cvtepi32_epi8, _mm_cvtsepi32_epi8,
248 _mm256_cvtsepi32_epi8, _mm_cvtusepi32_epi8, _mm256_cvtusepi32_epi8,
249 _mm_cvtepi32_epi16, _mm256_cvtepi32_epi16, _mm_cvtsepi32_epi16,
250 _mm256_cvtsepi32_epi16, _mm_cvtusepi32_epi16, _mm256_cvtusepi32_epi16,
251 _mm_cvtepi64_epi8, _mm256_cvtepi64_epi8, _mm_cvtsepi64_epi8,
252 _mm256_cvtsepi64_epi8, _mm_cvtusepi64_epi8, _mm256_cvtusepi64_epi8,
253 _mm_cvtepi64_epi16, _mm256_cvtepi64_epi16, _mm_cvtsepi64_epi16,
254 _mm256_cvtsepi64_epi16, _mm_cvtusepi64_epi16, _mm256_cvtusepi64_epi16,
255 _mm_cvtepi64_epi32, _mm256_cvtepi64_epi32, _mm_cvtsepi64_epi32,
256 _mm256_cvtsepi64_epi32, _mm_cvtusepi64_epi32, _mm256_cvtusepi64_epi32,
257 _mm_maskz_set1_epi32, _mm_maskz_set1_epi64): Formatting fixes.
258 (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
259 instead of _mm_setzero_hi.
260 (_mm256_permutex_pd, _mm256_maskz_permutex_epi64, _mm256_insertf32x4,
261 _mm256_maskz_insertf32x4, _mm256_inserti32x4, _mm256_maskz_inserti32x4,
262 _mm256_extractf32x4_ps, _mm256_maskz_extractf32x4_ps,
263 _mm256_shuffle_i32x4, _mm256_maskz_shuffle_i32x4, _mm256_shuffle_f64x2,
264 _mm256_maskz_shuffle_f64x2, _mm256_shuffle_f32x4,
265 _mm256_maskz_shuffle_f32x4, _mm256_maskz_shuffle_pd,
266 _mm_maskz_shuffle_pd, _mm256_maskz_shuffle_ps, _mm_maskz_shuffle_ps,
267 _mm256_maskz_srli_epi32, _mm_maskz_srli_epi32, _mm_maskz_srli_epi64,
268 _mm256_mask_slli_epi32, _mm256_maskz_slli_epi32, _mm256_mask_slli_epi64,
269 _mm256_maskz_slli_epi64, _mm256_roundscale_ps,
270 _mm256_maskz_roundscale_ps, _mm256_roundscale_pd,
271 _mm256_maskz_roundscale_pd, _mm_roundscale_ps, _mm_maskz_roundscale_ps,
272 _mm_roundscale_pd, _mm_maskz_roundscale_pd, _mm256_getmant_ps,
273 _mm256_maskz_getmant_ps, _mm_getmant_ps, _mm_maskz_getmant_ps,
274 _mm256_getmant_pd, _mm256_maskz_getmant_pd, _mm_getmant_pd,
275 _mm_maskz_getmant_pd, _mm256_maskz_shuffle_epi32,
276 _mm_maskz_shuffle_epi32, _mm256_rol_epi32, _mm256_maskz_rol_epi32,
277 _mm_rol_epi32, _mm_maskz_rol_epi32, _mm256_ror_epi32,
278 _mm256_maskz_ror_epi32, _mm_ror_epi32, _mm_maskz_ror_epi32,
279 _mm_maskz_alignr_epi32, _mm_maskz_alignr_epi64,
280 _mm256_maskz_srai_epi32, _mm_maskz_srai_epi32, _mm_srai_epi64,
281 _mm_maskz_srai_epi64, _mm256_maskz_permutex_pd,
282 _mm256_maskz_permute_pd, _mm256_maskz_permute_ps, _mm_maskz_permute_pd,
283 _mm_maskz_permute_ps, _mm256_permutexvar_ps): Formatting fixes.
284 (_mm_maskz_slli_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
285 _mm_ror_epi64, _mm_maskz_ror_epi64): Use _mm_setzero_si128 instead of
286 _mm_setzero_di.
287 (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
288 instead of _mm_setzero_hi.
289 * config/i386/avx512dqintrin.h (_mm512_broadcast_f64x2,
290 _mm512_broadcast_i64x2, _mm512_broadcast_f32x2, _mm512_broadcast_i32x2,
291 _mm512_broadcast_f32x8, _mm512_broadcast_i32x8): Formatting fixes.
292 (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
293 _mm_setzero_si128 instead of _mm_setzero_di.
294 (_mm512_cvtt_roundpd_epi64, _mm512_mask_cvtt_roundpd_epi64,
295 _mm512_maskz_cvtt_roundpd_epi64, _mm512_cvtt_roundpd_epu64,
296 _mm512_mask_cvtt_roundpd_epu64, _mm512_maskz_cvtt_roundpd_epu64,
297 _mm512_cvtt_roundps_epi64, _mm512_mask_cvtt_roundps_epi64,
298 _mm512_maskz_cvtt_roundps_epi64, _mm512_cvtt_roundps_epu64,
299 _mm512_mask_cvtt_roundps_epu64, _mm512_maskz_cvtt_roundps_epu64,
300 _mm512_cvt_roundpd_epi64, _mm512_mask_cvt_roundpd_epi64,
301 _mm512_maskz_cvt_roundpd_epi64, _mm512_cvt_roundpd_epu64,
302 _mm512_mask_cvt_roundpd_epu64, _mm512_maskz_cvt_roundpd_epu64,
303 _mm512_cvt_roundps_epi64, _mm512_mask_cvt_roundps_epi64,
304 _mm512_maskz_cvt_roundps_epi64, _mm512_cvt_roundps_epu64,
305 _mm512_mask_cvt_roundps_epu64, _mm512_maskz_cvt_roundps_epu64,
306 _mm512_cvt_roundepi64_ps, _mm512_mask_cvt_roundepi64_ps,
307 _mm512_maskz_cvt_roundepi64_ps, _mm512_cvt_roundepu64_ps,
308 _mm512_mask_cvt_roundepu64_ps, _mm512_maskz_cvt_roundepu64_ps,
309 _mm512_cvt_roundepi64_pd, _mm512_mask_cvt_roundepi64_pd,
310 _mm512_maskz_cvt_roundepi64_pd, _mm512_cvt_roundepu64_pd,
311 _mm512_mask_cvt_roundepu64_pd, _mm512_maskz_cvt_roundepu64_pd,
312 _mm512_reduce_pd, _mm512_maskz_reduce_pd, _mm512_reduce_ps,
313 _mm512_maskz_reduce_ps, _mm512_extractf32x8_ps,
314 _mm512_maskz_extractf32x8_ps, _mm512_extractf64x2_pd,
315 _mm512_maskz_extractf64x2_pd, _mm512_extracti32x8_epi32,
316 _mm512_maskz_extracti32x8_epi32, _mm512_range_pd,
317 _mm512_maskz_range_pd, _mm512_range_ps, _mm512_maskz_range_ps,
318 _mm512_range_round_pd, _mm512_maskz_range_round_pd,
319 _mm512_range_round_ps, _mm512_maskz_range_round_ps,
320 _mm512_maskz_insertf64x2, _mm512_insertf32x8,
321 _mm512_maskz_insertf32x8): Formatting fixes.
322 (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
323 _mm_setzero_si128 instead of _mm_setzero_di.
324 * config/i386/avx512vldqintrin.h (_mm_cvttpd_epi64,
325 _mm_cvttpd_epu64, _mm_cvtpd_epi64, _mm_cvtpd_epu64,
326 _mm_cvttps_epi64, _mm_maskz_cvttps_epi64, _mm_cvttps_epu64,
327 _mm_maskz_cvttps_epu64, _mm_maskz_mullo_epi64, _mm_cvtps_epi64,
328 _mm_maskz_cvtps_epi64, _mm_cvtps_epu64, _mm_maskz_cvtps_epu64,
329 _mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64): Use
330 _mm_setzero_si128 instead of _mm_setzero_di.
331 (_mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64):
332 Likewise in macros.
333 * config/i386/avx512vlbwintrin.h (_mm_maskz_mov_epi8,
334 _mm_maskz_loadu_epi16, _mm_maskz_mov_epi16, _mm_maskz_loadu_epi8,
335 _mm_permutexvar_epi16, _mm_maskz_maddubs_epi16): Use
336 _mm_setzero_si128 instead of _mm_setzero_hi.
337 (_mm_maskz_min_epu16, _mm_maskz_max_epu8, _mm_maskz_max_epi8,
338 _mm_maskz_min_epu8, _mm_maskz_min_epi8, _mm_maskz_max_epi16,
339 _mm_maskz_max_epu16, _mm_maskz_min_epi16): Use _mm_setzero_si128
340 instead of _mm_setzero_di.
341 (_mm_dbsad_epu8, _mm_maskz_shufflehi_epi16,
342 _mm_maskz_shufflelo_epi16): Use _mm_setzero_si128 instead of
343 _mm_setzero_hi.
344 (_mm_maskz_shufflehi_epi16, _mm_maskz_shufflelo_epi16,
345 _mm_maskz_slli_epi16): Use _mm_setzero_si128 instead of
346 _mm_setzero_hi.
347 (_mm_maskz_alignr_epi8): Use _mm_setzero_si128 instead of
348 _mm_setzero_di.
349 (_mm_maskz_mulhi_epi16, _mm_maskz_mulhi_epu16, _mm_maskz_mulhrs_epi16,
350 _mm_maskz_mullo_epi16, _mm_srav_epi16, _mm_srlv_epi16,
351 _mm_sllv_epi16): Use _mm_setzero_si128 instead of _mm_setzero_hi.
352
353 2016-11-22 Carl Love <cel@us.ibm.com>
354
355 * config/rs6000/rs6000-c.c: Add built-in support for vector compare
356 equal and vector compare not equal. The vector compares take two
357 arguments of type vector bool char, vector bool short, vector bool int,
358 vector bool long long with the same return type.
359 * doc/extend.texi: Update built-in documentation file for the new
360 powerpc built-ins.
361
362 2016-11-22 Uros Bizjak <ubizjak@gmail.com>
363
364 * Makefile.in ($(lang_checks_parallelized)): Fix detection
365 of -j argument.
366
367 2016-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
368
369 * config.gcc: Allow new rmprofile value for configure option
370 --with-multilib-list.
371 * config/arm/t-rmprofile: New file.
372 * doc/install.texi (--with-multilib-list): Document new rmprofile value
373 for ARM.
374
375 2016-11-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
376
377 PR target/78439
378 * config/arm/vfp.md (*movdi_vfp_cortexa8): Use 'q' constraints for the
379 register operand in alternatives 4,5,6.
380
381 2016-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
382
383 PR target/77904
384 * config/arm/arm.c (thumb1_compute_save_reg_mask): Mark frame pointer
385 in save register mask if it is needed.
386
387 2016-11-22 Jakub Jelinek <jakub@redhat.com>
388
389 PR tree-optimization/78436
390 * gimple-ssa-store-merging.c (zero_char_buf): Removed.
391 (shift_bytes_in_array, shift_bytes_in_array_right,
392 merged_store_group::apply_stores): Formatting fixes.
393 (clear_bit_region): Likewise. Use memset.
394 (encode_tree_to_bitpos): Formatting fixes. Fix comment typos - EPXR
395 instead of EXPR and inerted instead of inserted. Use memset instead
396 of zero_char_buf. For !BYTES_BIG_ENDIAN decrease byte_size by 1
397 if shift_amnt is 0.
398
399 PR middle-end/78416
400 * expmed.c (expand_divmod): Use wide_int for computation of
401 op1_is_pow2. Don't set it if op1 is 0. Formatting fixes.
402 Use size <= HOST_BITS_PER_WIDE_INT instead of
403 HOST_BITS_PER_WIDE_INT >= size.
404
405 PR tree-optimization/78445
406 * tree-if-conv.c (tree_if_conversion): If any_pred_load_store or
407 any_complicated_phi, version loop even if flag_tree_loop_if_convert
408 is 1. Formatting fix.
409
410 2016-11-22 Martin Liska <mliska@suse.cz>
411
412 PR ipa/78309
413 * ipa-icf.c (void sem_item::set_hash): Update m_hash_set.
414 (sem_function::get_hash): Use the new field.
415 (sem_function::parse): Remove an argument from ctor.
416 (sem_variable::parse): Likewise.
417 (sem_variable::get_hash): Use the new field.
418 (sem_item_optimizer::read_section): Use new ctor and set hash.
419 * ipa-icf.h: _hash is removed from sem_item::sem_item,
420 sem_variable::sem_variable, sem_function::sem_function.
421
422 2016-11-21 Jeff Law <law@redhat.com>
423
424 PR target/68538
425 * config/cris/cris.md: Don't call copy_to_mode_reg unless
426 can_create_pseudo_p is true.
427
428 2016-11-21 Segher Boessenkool <segher@kernel.crashing.org>
429
430 PR target/68803
431 * config/rs6000/rs6000.md (*rotlsi3_insert_5, *rotldi3_insert_6,
432 *rotldi3_insert_7): New define_insns.
433
434 2016-11-21 Michael Meissner <meissner@linux.vnet.ibm.com>
435
436 * config/rs6000/rs6000.md (movdi_internal32): Change constraints
437 so that DImode can be allocated to FP/vector registers in more
438 cases, and we can avoid direct move operations. If the register
439 needs reloading, prefer GPRs over FP/vector registers. In the
440 case of FPR vs. Altivec registers, prefer FPR registers unless we
441 have the ISA 3.0 reg+offset scalar instructions.
442 (movdi_internal64): Likewise.
443
444 2016-11-21 Jakub Jelinek <jakub@redhat.com>
445
446 PR middle-end/67335
447 * omp-simd-clone.c (simd_clone_adjust_argument_types): Use NULL prefix
448 for tmp simd array if DECL_NAME (parm) is NULL.
449
450 2016-11-20 Jeff Law <law@redhat.com>
451
452 PR target/25128
453 * config/m68k/predicates.md (swap_peephole_relational_operator): New
454 predicate.
455 * config/m68k/m68k.md (relational tests against 65535/65536): New
456 peephole2.
457
458 2016-11-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
459
460 * tree-ssa-loop-prefetch.c: Delete FIXME after the includes.
461
462 2016-11-21 Martin Sebor <msebor@redhat.com>
463
464 * doc/invoke.texi (-fprintf-return-value): Document that option
465 is enabled by default.
466
467 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
468
469 * config/avr/avr-c.c (avr_register_target_pragmas): Use C++
470 for-loop declaration of loop variable.
471 (avr_register_target_pragmas, avr_cpu_cpp_builtins): Same.
472 * config/avr/avr.c (avr_popcount_each_byte)
473 (avr_init_expanders, avr_regs_to_save, sequent_regs_live)
474 (get_sequence_length, avr_prologue_setup_frame, avr_map_metric)
475 (avr_expand_epilogue, avr_function_arg_advance)
476 (avr_out_compare, avr_out_plus_1, avr_out_bitop, avr_out_fract)
477 (avr_rotate_bytes, _reg_unused_after, avr_assemble_integer)
478 (avr_adjust_reg_alloc_order, output_reload_in_const)
479 (avr_conditional_register_usage, avr_find_unused_d_reg)
480 (avr_map_decompose, avr_fold_builtin): Same.
481
482 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
483
484 * config/avr/avr.c (avr_popcount): Remove static function.
485 (avr_popcount_each_byte, avr_out_bitop): Use popcount_hwi instead.
486
487 2016-11-21 Richard Earnshaw <rearnsha@arm.com>
488
489 * arm.opt (mapcs-float): Delete option.
490 * arm.c (arm_option_override): Remove hunk relating to
491 TARGET_APCS_FLOAT.
492 * doc/invoke.texi (arm options): Remove documentation for -mapcs-float.
493
494 2016-11-21 Richard Sandiford <richard.sandiford@arm.com>
495
496 * tree-tailcall.c (process_assignment): Simplify the check for
497 a valid copy, allowing the source to be a local variable as
498 well as an SSA name.
499 (find_tail_calls): Allow copies between local variables to follow
500 the call. Allow the result to be stored in any local variable,
501 even if it's an aggregate.
502 (eliminate_tail_call): Check whether the result is an SSA name
503 before updating its SSA_NAME_DEF_STMT.
504
505 2016-11-21 David Malcolm <dmalcolm@redhat.com>
506
507 PR preprocessor/78324
508 * input.c (get_substring_ranges_for_loc): Fail gracefully if
509 -ftrack-macro-expansion has a value other than 2.
510
511 2016-11-21 Segher Boessenkool <segher@kernel.crashing.org>
512
513 PR rtl-optimization/78400
514 * shrink-wrap.c (try_shrink_wrapping_separate): Call
515 df_update_entry_exit_and_calls instead of df_update_entry_block_defs
516 and df_update_exit_block_uses.
517
518 2016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
519
520 PR c++/71973
521 * doc/invoke.texi (-Wno-builtin-declaration-mismatch): Document the
522 new default-enabled warning..
523 * builtin-types.def (BT_CONST_TM_PTR): New primitive type.
524 (BT_PTR_CONST_STRING): Updated.
525 (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR): Removed.
526 (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_TM_PTR): New function type.
527 * builtins.def (DEF_TM_BUILTIN): Disable BOTH_P for TM builtins.
528 (strftime): Update builtin function.
529 * tree-core.h (TI_CONST_TM_PTR_TYPE): New enum value.
530 * tree.h (const_tm_ptr_type_node): New type node.
531 * tree.c (free_lang_data, build_common_tree_nodes): Initialize
532 const_tm_ptr_type_node.
533
534 2016-11-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
535
536 PR tree-optimization/78413
537 * tree-if-conv.c (versionable_outer_loop_p): Require that both
538 inner and outer loop latches have single predecessors.
539
540 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
541
542 PR target/78093
543 * config/avr/avr.c (avr_decl_maybe_lds_p): New static function.
544 (avr_encode_section_info) [TARGET_ABSDATA && AVR_TINY]: Use it.
545
546 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
547
548 * rtl.h: Adjust prototype.
549 * rtlanal.c (dead_or_set_p): Change argument type to rtx_insn *.
550 (dead_or_set_regno_p): Likewise.
551
552 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
553
554 * rtl.h: Adjust prototype.
555 * rtlanal.c (add_int_reg_note): Change argument type to rtx_insn *.
556
557 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
558
559 * function.c (contains): Change argument type to rtx_insn *.
560 (prologue_contains): Likewise.
561 (epilogue_contains): Likewise.
562 (prologue_epilogue_contains): Likewise.
563 * function.h: Adjust prototype.
564
565 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
566
567 * optabs.c (emit_libcall_block): Change argument type to
568 rtx_insn *.
569 * optabs.h: Adjust prototype.
570
571 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
572
573 * cfgrtl.c (delete_insn): Change argument type to rtx_insn *.
574 (fixup_reorder_chain): Adjust.
575 * cfgrtl.h: Adjust prototype.
576
577 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
578
579 * rtl.h: Adjust prototype.
580 * rtlanal.c (replace_label_in_insn): Change argument type to
581 rtx_insn *.
582
583 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
584
585 * config/v850/v850.c (expand_prologue): Adjust.
586 (expand_epilogue): Likewise.
587 * expr.c (init_expr_target): Likewise.
588 * genrecog.c (print_subroutine): Always make the argument type
589 rtx_insn *.
590 * recog.h: Adjust prototype.
591
592 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
593
594 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): split
595 up variables to make some rtx_insn *.
596 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
597 * config/arc/arc.c: Likewise.
598 * config/arm/arm.c: Likewise.
599 * config/mn10300/mn10300.c (mn10300_legitimize_pic_address): Likewise.
600 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue):
601 Likewise.
602 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
603
604 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
605
606 * config/arm/arm.c (legitimize_pic_address): Change to use
607 rtx_insn * as the type of variables.
608 (arm_pic_static_addr): Likewise.
609 (arm_emit_movpair): Likewise.
610 * config/c6x/c6x.c (reorg_split_calls): Likewise.
611 * config/darwin.c (machopic_legitimize_pic_address): Likewise.
612 * config/frv/frv.c (frv_optimize_membar_local): Likewise.
613 * config/frv/frv.md: Likewise.
614 * config/i386/i386-protos.h: Likewise.
615 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
616 (ix86_split_fp_branch): Likewise.
617 (predict_jump): Likewise.
618 * config/ia64/ia64.c: Likewise.
619 * config/mcore/mcore.c: Likewise.
620 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
621 * config/s390/s390.c: Likewise.
622 * config/s390/s390.md: Likewise.
623 * config/spu/spu.md: Likewise.
624 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise.
625 * lower-subreg.c (resolve_simple_move): Likewise.
626
627 2016-11-20 Jeff Law <law@redhat.com>
628
629 PR target/48551
630 * reload.h (struct target_reload): Make x_double_reg_address_ok
631 be per-mode rather.
632 * reload.c (find_reloads_address): Check if double_reg_address_ok
633 is true for the mode of the memory reference.
634 * reload1.c (init_reload): Initialize double_reg_address_ok for
635 each mode.
636
637 2016-11-20 Aldy Hernandez <aldyh@redhat.com>
638
639 PR middle-end/61409
640 * tree-ssa-uninit.c: Define new global max_phi_args.
641 (compute_uninit_opnds_pos): Use max_phi_args.
642 (prune_uninit_phi_opnds): Same.
643 (use_pred_not_overlap_with_undef_path_pred): Remove reference to
644 missing NUM_PREDS in function comment.
645 (can_one_predicate_be_invalidated_p): New.
646 (can_chain_union_be_invalidated_p): New.
647 (flatten_out_predicate_chains): New.
648 (uninit_ops_invalidate_phi_use): New.
649 (is_use_properly_guarded): Call uninit_ops_invalidate_phi_use.
650
651 2016-11-20 Marc Glisse <marc.glisse@inria.fr>
652
653 * fold-const.c (fold_comparison): Ignore EXACT_DIV_EXPR.
654 * match.pd (A /[ex] B CMP C): New simplifications.
655
656 2016-11-20 Marc Glisse <marc.glisse@inria.fr>
657
658 * match.pd (0 / X, X / X, X % X): New simplifications.
659
660 2016-11-19 Jakub Jelinek <jakub@redhat.com>
661
662 * config/i386/i386.c (ix86_can_inline_p): Use || instead of &
663 when checking if callee's isa flags are subset of caller's isa flags.
664 Fix comment wording.
665
666 * config/i386/i386.c (ix86_valid_target_attribute_tree): Don't
667 clear opts->x_ix86_isa_flags, clear opts->x_ix86_isa_flags2
668 instead and using = 0 instead of &= 0.
669
670 * config/i386/i386.c (def_builtin, def_builtin2, def_builtin_const2,
671 ix86_add_new_builtins): Formatting fixes.
672 (ix86_expand_builtin): Use || instead of && for isa vs. isa2.
673 (ix86_get_builtin): Likewise.
674
675 * config/i386/i386.c (ix86_expand_builtin): Remove msk_mov variable,
676 don't initialize it, don't use it for the case where it isn't
677 provable %{z} nor using the same argument, instead move merge
678 argument into a new pseudo and use that as target. Formatting fixes.
679
680 2016-11-19 Jeff Law <law@redhat.com>
681
682 PR target/25111
683 * config/m68k/m68k.md (bsetdreg): New pattern.
684 (bchgdreg, bclrdreg): Likewise.
685
686 2016-11-19 Kaz Kojima <kkojima@gcc.gnu.org>
687
688 PR target/78426
689 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Use copy_to_mode_reg
690 instead of force_reg.
691 (sh_expand_setmem): Likewise.
692
693 2016-11-19 Krister Walfridsson <krister.walfridsson@gmail.com>
694
695 * config.gcc (*-*-netbsd): Set use_gcc_stdint=wrap.
696
697 2016-11-18 Walter Lee <walt@tilera.com>
698
699 * config/tilegx/tilegx.c (tilegx_gen_bundles): Preserve
700 end-of-bundle marker for consecutive barriers.
701
702 2016-11-18 Walter Lee <walt@tilera.com>
703
704 * config/tilegx/tilegx.md (clzsi2): Fix for big-endian.
705
706 2016-11-18 Jakub Jelinek <jakub@redhat.com>
707
708 PR middle-end/78419
709 * multiple_target.c (get_attr_len): Start with argnum and increment
710 argnum on every arg. Use strchr in a loop instead of counting commas
711 manually.
712 (get_attr_str): Increment argnum for every comma in the string.
713 (separate_attrs): Use for instead of while loop, simplify.
714 (expand_target_clones): Rename defenition argument to definition.
715 Free attrs and attr_str even when diagnosing errors. Temporarily
716 change input_location around targetm.target_option.valid_attribute_p
717 calls. Don't emit warning or errors if that function fails.
718
719 * dwarf2out.c (size_of_discr_list): Fix typo in function comment.
720
721 PR debug/78191
722 * dwarf2out.c (abbrev_opt_base_type_end): New variable.
723 (die_abbrev_cmp): Sort dies with die_abbrev smaller than
724 abbrev_opt_base_type_end only by increasing die_abbrev, before
725 any other dies.
726 (optimize_abbrev_table): Don't change abbrev numbers of
727 base types and CU or optimize implicit consts in them if
728 calc_base_type_die_sizes has been called during build_abbrev_table.
729 (calc_base_type_die_sizes): If abbrev_opt_start, set
730 abbrev_opt_base_type_end to one plus largest base type's die_abbrev.
731
732 2016-11-18 Jeff Law <law@redhat.com>
733
734 PR target/25112
735 * config/m68k/m68k.c (moveq feeding equality comparison): New
736 peepholes.
737 * config/m68k/predicates.md (addq_subq_operand): New predicate.
738 (equality_comparison_operator): Likewise.
739
740 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
741
742 * rtlanal.c (load_extend_op): Move to...
743 * rtl.h: ...here and make inline.
744
745 2016-11-18 Terry Guo <terry.guo@arm.com>
746 Thomas Preud'homme <thomas.preudhomme@arm.com>
747
748 * common/config/arm/arm-common.c (arm_target_thumb_only): New function.
749 * config/arm/arm-opts.h: Include arm-flags.h.
750 (struct arm_arch_core_flag): Define.
751 (arm_arch_core_flags): Define.
752 * config/arm/arm-protos.h: Include arm-flags.h
753 (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M, FL_MODE26, FL_MODE32,
754 FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED, FL_STRONG, FL_ARCH5E,
755 FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF, FL_ARCH6K, FL_THUMB2, FL_NOTM,
756 FL_THUMB_DIV, FL_VFPV3, FL_NEON, FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV,
757 FL_ARCH8, FL_CRC32, FL_SMALLMUL, FL_NO_VOLATILE_CE, FL_IWMMXT,
758 FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1, FL2_ARCH8_2, FL2_FP16INST,
759 FL_TUNE, FL_FOR_ARCH2, FL_FOR_ARCH3, FL_FOR_ARCH3M, FL_FOR_ARCH4,
760 FL_FOR_ARCH4T, FL_FOR_ARCH5, FL_FOR_ARCH5T, FL_FOR_ARCH5E,
761 FL_FOR_ARCH5TE, FL_FOR_ARCH5TEJ, FL_FOR_ARCH6, FL_FOR_ARCH6J,
762 FL_FOR_ARCH6K, FL_FOR_ARCH6Z, FL_FOR_ARCH6ZK, FL_FOR_ARCH6KZ,
763 FL_FOR_ARCH6T2, FL_FOR_ARCH6M, FL_FOR_ARCH7, FL_FOR_ARCH7A,
764 FL_FOR_ARCH7VE, FL_FOR_ARCH7R, FL_FOR_ARCH7M, FL_FOR_ARCH7EM,
765 FL_FOR_ARCH8A, FL2_FOR_ARCH8_1A, FL2_FOR_ARCH8_2A, FL_FOR_ARCH8M_BASE,
766 FL_FOR_ARCH8M_MAIN, arm_feature_set, ARM_FSET_MAKE,
767 ARM_FSET_MAKE_CPU1, ARM_FSET_MAKE_CPU2, ARM_FSET_CPU1, ARM_FSET_CPU2,
768 ARM_FSET_EMPTY, ARM_FSET_ANY, ARM_FSET_HAS_CPU1, ARM_FSET_HAS_CPU2,
769 ARM_FSET_HAS_CPU, ARM_FSET_ADD_CPU1, ARM_FSET_ADD_CPU2,
770 ARM_FSET_DEL_CPU1, ARM_FSET_DEL_CPU2, ARM_FSET_UNION, ARM_FSET_INTER,
771 ARM_FSET_XOR, ARM_FSET_EXCLUDE, ARM_FSET_IS_EMPTY,
772 ARM_FSET_CPU_SUBSET): Move to ...
773 * config/arm/arm-flags.h: This new file.
774 * config/arm/arm.h (TARGET_MODE_SPEC_FUNCTIONS): Define.
775 (EXTRA_SPEC_FUNCTIONS): Add TARGET_MODE_SPEC_FUNCTIONS to its value.
776 (TARGET_MODE_SPECS): Define.
777 (DRIVER_SELF_SPECS): Add TARGET_MODE_SPECS to its value.
778
779 2016-11-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
780
781 * config/arm/arm-protos.h (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M,
782 FL_MODE26, FL_MODE32, FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED,
783 FL_STRONG, FL_ARCH5E, FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF,
784 FL_ARCH6K, FL_THUMB2, FL_NOTM, FL_THUMB_DIV, FL_VFPV3, FL_NEON,
785 FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV, FL_ARCH8, FL_CRC32, FL_SMALLMUL,
786 FL_NO_VOLATILE_CE, FL_IWMMXT, FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1,
787 FL2_ARCH8_2, FL2_FP16INST): Reindent comment, add final dot when
788 missing and make value unsigned.
789 (arm_feature_set): Use unsigned entries instead of unsigned long.
790
791 2016-11-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
792
793 Re-apply after PR bootstrap/77359 is fixed:
794 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
795
796 * explow.c (get_dynamic_stack_size): Take known alignment of stack
797 pointer + STACK_DYNAMIC_OFFSET into account when calculating the
798 size needed.
799
800 2016-11-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
801
802 PR bootstrap/77359
803 * config/rs6000/rs6000.c (rs6000_stack_info): Properly align local
804 variables in functions calling alloca. Also update the ASCII
805 drawings.
806 * config/rs6000/rs6000.h (STARTING_FRAME_OFFSET)
807 (STACK_DYNAMIC_OFFSET): Likewise.
808 * config/rs6000/aix.h (STARTING_FRAME_OFFSET)
809 (STACK_DYNAMIC_OFFSET): Copy AIX specific versions of the rs6000.h
810 macros to aix.h.
811
812 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
813 Alan Hayward <alan.hayward@arm.com>
814 David Sherwood <david.sherwood@arm.com>
815
816 * combine.c (try_combine): Use rtx_mode_t instead of std::make_pair.
817 * dwarf2out.c (mem_loc_descriptor, loc_descriptor): Likewise.
818 (add_const_value_attribute): Likewise.
819 * explow.c (plus_constant): Likewise.
820 * expmed.c (expand_mult, make_tree): Likewise.
821 * expr.c (convert_modes): Likewise.
822 * loop-doloop.c (doloop_optimize): Likewise.
823 * postreload.c (reload_cse_simplify_set): Likewise.
824 * simplify-rtx.c (simplify_const_unary_operation): Likewise
825 (simplify_binary_operation_1, simplify_const_binary_operation):
826 Likewise.
827 (simplify_const_relational_operation, simplify_immed_subreg): Likewise.
828 * wide-int.h: Update documentation to recommend rtx_mode_t
829 instead of std::make_pair.
830
831 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
832 Alan Hayward <alan.hayward@arm.com>
833 David Sherwood <david.sherwood@arm.com>
834
835 * tree.h (SET_DECL_MODE): New macro.
836 * cfgexpand.c (avoid_deep_ter_for_debug): Use SET_DECL_MODE.
837 (expand_gimple_basic_block): Likewise.
838 * function.c (split_complex_args): Likeise.
839 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
840 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Likewise.
841 * stor-layout.c (layout_decl, relayout_decl): Likewise.
842 (finish_bitfield_representative): Likewise.
843 * tree.c (make_node_stat): Likewise.
844 * tree-inline.c (remap_ssa_name): Likewise.
845 (tree_function_versioning): Likewise.
846 * tree-into-ssa.c (rewrite_debug_stmt_uses): Likewise.
847 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
848 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
849 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Likewise.
850 * tree-ssa.c (insert_debug_temp_for_var_def): Likewise.
851 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
852 * varasm.c (make_debug_expr_from_rtl): Likewise.
853
854 2016-11-18 Segher Boessenkool <segher@kernel.crashing.org>
855
856 PR rtl-optimization/71785
857 * bb-reorder.c (maybe_duplicate_computed_goto): New function.
858 (duplicate_computed_gotos): New function.
859 (pass_duplicate_computed_gotos::execute): Rewrite.
860
861 2016-11-17 Jeff Law <law@redhat.com>
862
863 PR target/47192
864 * config/m68k/m68k.c (m68k_expand_epilogue): Emit a scheduling
865 barrier prior to deallocating the stack.
866
867 2016-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
868
869 * config/arc/arc.md (cmem bit/sign-extend peephole2): New peephole
870 to make better use of cmem loads in the case where a single bit is
871 being accessed.
872 * config/arc/predicates.md (ge_lt_comparison_operator): New predicate.
873
874 2016-11-17 Andrew Senkevich <andrew.senkevich@intel.com>
875
876 * config/i386/i386.c (processor_features): Add F_AVX5124VNNIW,
877 F_AVX5124FMAPS.
878 (isa_names_table): Handle new features.
879
880 2016-11-17 Kirill Yukhin <kirill.yukhin@gmail.com>
881 Andrew Senkevich <andrew.senkevich@intel.com>
882
883 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX5124FMAPS_SET,
884 OPTION_MASK_ISA_AVX5124FMAPS_UNSET, OPTION_MASK_ISA_AVX5124VNNIW_SET,
885 OPTION_MASK_ISA_AVX5124VNNIW_UNSET): New.
886 (ix86_handle_option): Handle OPT_mavx5124fmaps, OPT_mavx5124vnniw.
887 * config.gcc: Add avx5124fmapsintrin.h, avx5124vnniwintrin.h.
888 * config/i386/avx5124fmapsintrin.h: New file.
889 * config/i386/avx5124vnniwintrin.h: Ditto.
890 * config/i386/constraints.md (h): New constraint.
891 * config/i386/cpuid.h (bit_AVX5124VNNIW, bit_AVX5124FMAPS): New.
892 * config/i386/driver-i386.c (host_detect_local_cpu):
893 Detect avx5124fmaps, avx5124vnniw.
894 * config/i386/i386-builtin-types.def: Add types
895 V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF_V16SF_UHI,
896 V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF,
897 V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF,
898 V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF_V4SF_UQI,
899 V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI,
900 V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI_V16SI_UHI.
901 * config/i386/i386-builtin.def (__builtin_ia32_4fmaddps_mask,
902 __builtin_ia32_4fmaddps, __builtin_ia32_4fmaddss,
903 __builtin_ia32_4fmaddss_mask, __builtin_ia32_4fnmaddps_mask,
904 __builtin_ia32_4fnmaddps, __builtin_ia32_4fnmaddss,
905 __builtin_ia32_4fnmaddss_mask, __builtin_ia32_vp4dpwssd,
906 __builtin_ia32_vp4dpwssd_mask, __builtin_ia32_vp4dpwssds,
907 __builtin_ia32_vp4dpwssds_mask): New.
908 * config/i386/i386-c.c (ix86_target_macros_internal):
909 Define __AVX5124FMAPS__, __AVX5124VNNIW__.
910 * config/i386/i386-modes.def: Fixed comment typos, added new
911 modes (VECTOR_MODES (FLOAT, 256), VECTOR_MODE (INT, SI, 64)).
912 * config/i386/i386.c (ix86_target_string): Add -mavx5124fmaps,
913 -mavx5124vnniw.
914 (PTA_AVX5124FMAPS, PTA_AVX5124VNNIW): Define.
915 (ix86_option_override_internal): Handle new options.
916 (ix86_valid_target_attribute_inner_p): Add avx5124fmaps,
917 avx5124vnniw.
918 (ix86_expand_builtin): Handle new builtins.
919 (ix86_additional_allocno_class_p): New.
920 * config/i386/i386.h (TARGET_AVX5124FMAPS, TARGET_AVX5124FMAPS_P,
921 TARGET_AVX5124VNNIW, TARGET_AVX5124VNNIW_P): Define.
922 (reg_class): Add MOD4_SSE_REGS.
923 (MOD4_SSE_REG_P, MOD4_SSE_REGNO_P): New.
924 * config/i386/i386.opt: Add mavx5124fmaps, mavx5124vnniw.
925 * config/i386/immintrin.h: Include avx5124fmapsintrin.h,
926 avx5124vnniwintrin.h.
927 * config/i386/sse.md (unspec): Add UNSPEC_VP4FMADD, UNSPEC_VP4FNMADD,
928 UNSPEC_VP4DPWSSD, UNSPEC_VP4DPWSSDS.
929 (define_mode_iterator IMOD4): New.
930 (define_mode_attr imod4_narrow): Ditto.
931 (define_insn "mov<mode>"): Ditto.
932 (define_insn "avx5124fmaddps_4fmaddps"): Ditto.
933 (define_insn "avx5124fmaddps_4fmaddps_mask"): Ditto.
934 (define_insn "avx5124fmaddps_4fmaddps_maskz"): Ditto.
935 (define_insn "avx5124fmaddps_4fmaddss"): Ditto.
936 (define_insn "avx5124fmaddps_4fmaddss_mask"): Ditto.
937 (define_insn "avx5124fmaddps_4fmaddss_maskz"): Ditto.
938 (define_insn "avx5124fmaddps_4fnmaddps"): Ditto.
939 (define_insn "avx5124fmaddps_4fnmaddps_mask"): Ditto.
940 (define_insn "avx5124fmaddps_4fnmaddps_maskz"): Ditto.
941 (define_insn "avx5124fmaddps_4fnmaddss"): Ditto.
942 (define_insn "avx5124fmaddps_4fnmaddss_mask"): Ditto.
943 (define_insn "avx5124fmaddps_4fnmaddss_maskz"): Ditto.
944 (define_insn "avx5124vnniw_vp4dpwssd"): Ditto.
945 (define_insn "avx5124vnniw_vp4dpwssd_mask"): Ditto.
946 (define_insn "avx5124vnniw_vp4dpwssd_maskz"): Ditto.
947 (define_insn "avx5124vnniw_vp4dpwssds"): Ditto.
948 (define_insn "avx5124vnniw_vp4dpwssds_mask"): Ditto.
949 (define_insn "avx5124vnniw_vp4dpwssds_maskz"): Ditto.
950 * init-regs.c (initialize_uninitialized_regs): Add emit_clobber call.
951 * genmodes.c (mode_size_inline): Extend return type.
952 * machmode.h (mode_size, mode_base_align): Extend type.
953
954 2016-11-17 Michael Meissner <meissner@linux.vnet.ibm.com>
955
956 PR target/78101
957 * config/rs6000/predicates.md (fusion_addis_mem_combo_load): Add
958 the appropriate checks for SFmode/DFmode load/stores in GPR
959 registers.
960 (fusion_addis_mem_combo_store): Likewise.
961 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Rename
962 fusion_fpr_* to fusion_vsx_* and add in support for ISA 3.0 scalar
963 d-form instructions for traditional Altivec registers.
964 (emit_fusion_p9_load): Likewise.
965 (emit_fusion_p9_store): Likewise.
966 * config/rs6000/rs6000.md (p9 fusion store peephole2): Remove
967 early clobber from scratch register. Do not match if the register
968 being stored is the scratch register.
969 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_load): Rename fusion_fpr_*
970 to fusion_vsx_* and add in support for ISA 3.0 scalar d-form
971 instructions for traditional Altivec registers.
972 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
973 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
974 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
975
976 2016-11-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
977
978 PR target/77933
979 * config/arm/arm.c (thumb1_expand_prologue): Distinguish between lr
980 being live in the function and lr needing to be saved. Distinguish
981 between already saved pushable registers and registers to push.
982 Check for LR being an available pushable register.
983
984 2016-11-17 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
985
986 * config/i386/i386.md (cmpstrnsi): New test to bail out if neither
987 string input is a string constant.
988 * builtins.c (expand_builtin_strncmp): Attempt expansion of strncmp
989 via cmpstrnsi even if neither string is constant.
990
991 2016-11-17 Jakub Jelinek <jakub@redhat.com>
992
993 PR middle-end/78201
994 * varasm.c (default_use_anchors_for_symbol_p): Fix a comment typo.
995 Don't test decl != NULL. Don't look at DECL_SIZE, but DECL_SIZE_UNIT
996 instead, return false if it is NULL, or doesn't fit into uhwi, or
997 is larger or equal to targetm.max_anchor_offset.
998
999 2016-11-17 Pip Cet <pipcet@gmail.com>
1000 Eric Botcazou <ebotcazou@adacore.com>
1001
1002 PR rtl-optimization/78355
1003 * doc/tm.texi.in (SLOW_UNALIGNED_ACCESS): Document that the macro only
1004 needs to deal with unaligned accesses.
1005 * doc/tm.texi: Regenerate.
1006 * lra-constraints.c (simplify_operand_subreg): Only invoke
1007 SLOW_UNALIGNED_ACCESS on innermode if the MEM is not aligned enough.
1008
1009 2016-11-17 David Malcolm <dmalcolm@redhat.com>
1010
1011 * input.c (selftest::test_lexer_string_locations_long_line): New
1012 function.
1013 (selftest::test_lexer_string_locations_raw_string_multiline): New
1014 function.
1015 (selftest::input_c_tests): Call the new functions, via
1016 for_each_line_table_case.
1017
1018 2016-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1019
1020 * config/aarch64/aarch64.md (mov<mode>): Call
1021 aarch64_split_dimode_const_store on DImode constant stores.
1022 * config/aarch64/aarch64-protos.h (aarch64_split_dimode_const_store):
1023 New prototype.
1024 * config/aarch64/aarch64.c (aarch64_split_dimode_const_store): New
1025 function.
1026
1027 2016-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1028 Richard Biener <rguenther@suse.de>
1029
1030 PR tree-optimization/77848
1031 * tree-if-conv.c (tree_if_conversion): Always version loops unless
1032 the user specified -ftree-loop-if-convert.
1033
1034 2016-11-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
1035
1036 PR target/77308
1037 * config/arm/arm.md (*thumb2_ldrd, *thumb2_ldrd_base,
1038 *thumb2_ldrd_base_neg, *thumb2_strd, *thumb2_strd_base,
1039 *thumb2_strd_base_neg): Recognize insn regardless of
1040 current_tune->prefer_ldrd_strd.
1041 * config/arm/ldrdstrd.md: Enable all ldrd/strd peephole rules
1042 whenever possible.
1043
1044 2016-11-17 Claudiu Zissulescu <claziss@synopsys.com>
1045
1046 * config/arc/arc.c (arc_ccfsm_post_advance): Handle return
1047 instruction type.
1048
1049 2016-11-17 Claudiu Zissulescu <claziss@synopsys.com>
1050
1051 * config/arc/arc-arches.def: Add FPX quarkse instruction as valid
1052 for arcem.
1053 * config/arc/arc-c.def (__ARC_FPX_QUARK__): Define.
1054 * config/arc/arc-cpus.def (quarkse_em): Add.
1055 * config/arc/arc-options.def (FL_FPX_QUARK, FL_QUARK): Likewise.
1056 * config/arc/arc-opts.h (FPX_QK): Define.
1057 * config/arc/arc-tables.opt: Regenerate.
1058 * config/arc/arc.c (gen_compare_reg): Change.
1059 (arc_register_move_cost): Avoid Dy,Dx moves.
1060 * config/arc/arc.h (TARGET_HARD_FLOAT): Change.
1061 (TARGET_FPX_QUARK, TARGET_FP_ASSIST): Define.
1062 * config/arc/arc.md (divsf3, sqrtsf2, fix_truncsfsi2, floatsisf2):
1063 New expands.
1064 * config/arc/fpu.md (divsf3_fpu, sqrtsf2_fpu, floatsisf2_fpu)
1065 (fix_truncsfsi2_fpu): Rename.
1066 * config/arc/fpx.md (cmp_quark, cmpsf_quark_, cmpsf_quark_ord)
1067 (cmpsf_quark_uneq, cmpsf_quark_eq, divsf3_quark, sqrtsf2_quark)
1068 (fix_truncsfsi2_quark, floatsisf2_quark): New patterns.
1069 * config/arc/t-multilib: Regenerate.
1070
1071 2016-11-17 Georg-Johann Lay <avr@gjlay.de>
1072
1073 * config/avr/avr.c (avr_print_operand_address): Use CONST_INT_P if
1074 appropriate.
1075 (ashlqi3_out, ashlsi3_out, ashrqi3_out, ashrhi3_out): Same.
1076 (ashrsi3_out, lshrqi3_out, lshrhi3_out, lshrsi3_out): Same.
1077 (avr_rtx_costs_1, extra_constraint_Q): Same.
1078 (avr_address_cost): Use SUBREG_P if possible.
1079
1080 2016-11-17 Richard Biener <rguenther@suse.de>
1081
1082 PR middle-end/78383
1083 * tree-cfgcleanup.c (cleanup_control_flow_bb): Do not turn
1084 non-local goto into CFG.
1085
1086 2016-11-17 Richard Biener <rguenther@suse.de>
1087
1088 * common.opt (ftree-loop-if-convert-stores): Mark as preserved for
1089 backward compatibility.
1090 * doc/invoke.texi (ftree-loop-if-convert-stores): Remove.
1091 * tree-if-conv.c (pass_if_conversion::gate): Do not test
1092 flag_tree_loop_if_convert_stores.
1093 (pass_if_conversion::execute): Likewise.
1094
1095 2016-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1096
1097 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): Check for
1098 const_double code before calling aarch64_float_const_zero_rtx_p.
1099
1100 2016-11-17 Richard Biener <rguenther@suse.de>
1101
1102 PR tree-optimization/78306
1103 * ipa-inline-analysis.c (initialize_inline_failed): Do not
1104 inhibit inlining if function calls cilk_spawn.
1105 (can_inline_edge_p): Likewise.
1106
1107 2016-11-17 Richard Biener <rguenther@suse.de>
1108
1109 PR middle-end/78305
1110 * fold-const.c (negate_expr_p): Fix multiplication case.
1111
1112 2016-11-17 Chung-Lin Tang <cltang@codesourcery.com>
1113
1114 PR target/78357
1115 * config/nios2/nios2.c (nios2_init_libfuncs): Remove TARGET_LINUX_ABI
1116 condition.
1117 (TARGET_INIT_LIBFUNCS): Delete definition and...
1118 * config/nios2/linux.h (TARGET_INIT_LIBFUNCS): ...move to here, add
1119 comments.
1120
1121 2016-11-17 Krister Walfridsson <krister.walfridsson@gmail.com>
1122
1123 * config/netbsd-stdint.h: New.
1124 * config.gcc (i[34567]86-*-netbsd): Add netbsd-stdint.h to tm_file.
1125 (x86_64-*-netbsd*): Likewise.
1126
1127 2016-11-16 Andrew PInski <apinski@cavium.com>
1128
1129 * config/aarch64/aarch64.opt (mverbose-cost-dump): New option.
1130 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
1131 flag_aarch64_verbose_cost instead of checking for details dump.
1132 (aarch64_rtx_costs_wrapper): Likewise.
1133
1134 2016-11-16 Jakub Jelinek <jakub@redhat.com>
1135
1136 PR rtl-optimization/78378
1137 * combine.c (make_extraction): Use force_to_mode for non-{REG,MEM}
1138 inner only if pos is 0. Fix up formatting.
1139
1140 2016-11-17 Alan Modra <amodra@gmail.com>
1141
1142 PR rtl-optimization/78325
1143 PR rtl-optimization/70890
1144 * ira.c (combine_and_move_insns): Only remove REG_EQUIV notes
1145 for dead regno.
1146
1147 2016-11-16 Jason Merrill <jason@redhat.com>
1148
1149 * rtl.h: Declare gt_ggc_mx and gt_pch_nx.
1150
1151 2016-11-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1152 Richard Biener <rguenther@suse.de>
1153
1154 PR tree-optimization/77848
1155 * tree-if-conv.c (version_loop_for_if_conversion): When versioning
1156 an outer loop, only save basic block aux information for the inner
1157 loop.
1158 (versionable_outer_loop_p): New function.
1159 (tree_if_conversion): Version the outer loop instead of the inner
1160 one if the pattern will be recognized for outer-loop
1161 vectorization.
1162
1163 2016-11-16 Andrew Burgess <andrew.burgess@embecosm.com>
1164
1165 * gcc/bb-reorder.c: Remove 'toplev.h' include.
1166 (pass_partition_blocks::gate): No longer check
1167 user_defined_section_attribute, instead check the function decl
1168 for a section attribute.
1169 * gcc/c-family/c-attribs.c (handle_section_attribute): No longer
1170 set user_defined_section_attribute.
1171 * gcc/final.c (rest_of_handle_final): Likewise.
1172 * gcc/toplev.c: Remove definition of user_defined_section_attribute.
1173 * gcc/toplev.h: Remove declaration of
1174 user_defined_section_attribute.
1175
1176 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
1177
1178 * config/mips/mips.md (casesi_internal_mips16_<mode>):
1179 Explicitly switch between JR and JRC for the table jump. Adjust
1180 instruction count.
1181
1182 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
1183
1184 * config/mips/mips.md (casesi_internal_mips16_<mode>): Set
1185 `insn_count' to 11 rather than 16.
1186
1187 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
1188
1189 * config/mips/mips.md (casesi_internal_mips16_<mode>): Use the
1190 `ltu' rather than `leu' operation in the RTL pattern
1191
1192 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
1193
1194 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add
1195 missing <d> instruction prefixes throughout. Correct
1196 formatting.
1197
1198 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
1199
1200 * config/mips/mips.c (mips_output_jump): Output R_MICROMIPS_JALR
1201 rather than R_MIPS_JALR relocation in microMIPS code. Do not
1202 cancel short delay slots in PIC call relaxation.
1203
1204 2016-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
1205
1206 * config/arm/arm.md (arm_addsi3): Add alternative for addition of
1207 general register with general register or ARM constant into SP
1208 register.
1209
1210 2016-11-16 Jakub Jelinek <jakub@redhat.com>
1211
1212 PR fortran/78299
1213 * omp-low.c (expand_omp_for_static_nochunk): Don't assert
1214 that loop->header == body_bb if broken_loop.
1215
1216 2015-11-16 Wilco Dijkstra <wdijkstr@arm.com>
1217
1218 * tree-ssa-math-opts.c (bswap_replace): Remove test
1219 of SLOW_UNALIGNED_ACCESS.
1220
1221 2016-11-16 Alexander Monakov <amonakov@ispras.ru>
1222
1223 * config/nvptx/mkoffload.c (main): Check that either OpenACC or OpenMP
1224 is selected. Pass -mgomp to offload compiler in OpenMP case.
1225 * config/nvptx/nvptx-protos.h (nvptx_shuffle_kind): Move enum
1226 declaration from nvptx.c.
1227 (nvptx_gen_shuffle): Declare.
1228 (nvptx_output_set_softstack): Declare.
1229 * config/nvptx/nvptx.c (nvptx_shuffle_kind): Move to nvptx-protos.h.
1230 (need_softstack_decl): New variable.
1231 (need_unisimt_decl): New variable.
1232 (diagnose_openacc_conflict): New. Use it...
1233 (nvptx_option_override): ...here. Handle TARGET_GOMP.
1234 (nvptx_encode_section_info): Handle "shared" attribute.
1235 (write_as_kernel): Restrict to OpenACC target regions.
1236 (init_softstack_frame): New.
1237 (nvptx_init_unisimt_predicate): New.
1238 (write_omp_entry): New. Use it...
1239 (nvptx_declare_function_name): ...here to emit OpenMP target region
1240 entrypoints. Handle TARGET_SOFT_STACK. Call
1241 nvptx_init_unisimt_predicate.
1242 (nvptx_output_set_softstack): New.
1243 (nvptx_get_drap_rtx): Return %argp as the DRAP if needed.
1244 (nvptx_gen_shuffle): Export.
1245 (nvptx_output_call_insn): Handle COND_EXEC patterns. Emit instruction
1246 predicate.
1247 (nvptx_print_operand): Fix handling of instruction predicates.
1248 (nvptx_get_unisimt_master): New helper function.
1249 (nvptx_get_unisimt_predicate): Ditto.
1250 (nvptx_call_insn_is_syscall_p): Ditto.
1251 (nvptx_unisimt_handle_set): Ditto.
1252 (nvptx_reorg_uniform_simt): New. Transform code for -muniform-simt.
1253 (nvptx_reorg): Call nvptx_reorg_uniform_simt.
1254 (nvptx_handle_shared_attribute): New. Use it...
1255 (nvptx_attribute_table): ... here (new entry).
1256 (nvptx_record_offload_symbol): Handle NULL attributes.
1257 (nvptx_file_end): Handle need_softstack_decl and need_unisimt_decl.
1258 (nvptx_simt_vf): New.
1259 (TARGET_SIMT_VF): Define.
1260 * config/nvptx/nvptx.h (TARGET_CPU_CPP_BUILTINS): Define
1261 __nvptx_softstack or __nvptx_unisimt__ when -msoft-stack, or resp.
1262 -muniform-simt option is active.
1263 (STACK_SIZE_MODE): Define.
1264 (FIXED_REGISTERS): Adjust.
1265 (SOFTSTACK_SLOT_REGNUM): New.
1266 (SOFTSTACK_PREV_REGNUM): New.
1267 (REGISTER_NAMES): Adjust.
1268 (struct machine_function): New fields.
1269 * config/nvptx/nvptx.md (UNSPEC_SET_SOFTSTACK): New.
1270 (UNSPEC_VOTE_BALLOT): Ditto.
1271 (UNSPEC_LANEID): Ditto.
1272 (UNSPECV_NOUNROLL): Ditto.
1273 (atomic): New attribute.
1274 (predicable): New attribute. Generate predicated forms via
1275 define_cond_exec.
1276 (br_true): Mark as not predicable.
1277 (br_false): Ditto.
1278 (br_true_uni): Ditto.
1279 (br_false_uni): Ditto.
1280 (return): Ditto.
1281 (trap_if_true): Ditto.
1282 (trap_if_false): Ditto.
1283 (nvptx_fork): Ditto.
1284 (nvptx_forked): Ditto.
1285 (nvptx_joining): Ditto.
1286 (nvptx_join): Ditto.
1287 (nvptx_barsync): Ditto.
1288 (epilogue): Emit stack restore if TARGET_SOFT_STACK.
1289 (allocate_stack): Implement for TARGET_SOFT_STACK. Remove unused code.
1290 (allocate_stack_<mode>): Remove unused pattern.
1291 (set_softstack_insn): New pattern.
1292 (restore_stack_block): Handle for TARGET_SOFT_STACK.
1293 (nvptx_vote_ballot): New pattern.
1294 (omp_simt_lane): Ditto.
1295 (omp_simt_last_lane): Ditto.
1296 (omp_simt_ordered): Ditto.
1297 (omp_simt_vote_any): Ditto.
1298 (omp_simt_xchg_bfly): Ditto.
1299 (omp_simt_xchg_idx): Ditto.
1300 (nvptx_nounroll): Ditto.
1301 (atomic_compare_and_swap<mode>_1): Mark with atomic attribute.
1302 (atomic_exchange<mode>): Ditto.
1303 (atomic_fetch_add<mode>): Ditto.
1304 (atomic_fetch_addsf): Ditto.
1305 (atomic_fetch_<logic><mode>): Ditto.
1306 * config/nvptx/nvptx.opt (msoft-stack): New option.
1307 (muniform-simt): Ditto.
1308 (mgomp): Ditto.
1309 * config/nvptx/t-nvptx (MULTILIB_OPTIONS): New.
1310 * doc/extend.texi (Nvidia PTX Variable Attributes): New section.
1311 * doc/invoke.texi (msoft-stack): Document.
1312 (muniform-simt): Document
1313 (mgomp): Document.
1314 * doc/tm.texi: Regenerate.
1315 * doc/tm.texi.in (TARGET_SIMT_VF): New hook.
1316 * target.def: Define it.
1317 * target-insns.def (omp_simt_lane): New.
1318 (omp_simt_last_lane): New.
1319 (omp_simt_ordered): New.
1320 (omp_simt_vote_any): New.
1321 (omp_simt_xchg_bfly): New.
1322 (omp_simt_xchg_idx): New.
1323
1324 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
1325
1326 * config/mips/mips-protos.h (mips_set_text_contents_type): New
1327 prototype.
1328 * config/mips/mips.h (ASM_OUTPUT_BEFORE_CASE_LABEL): New macro.
1329 (ASM_OUTPUT_CASE_END): Likewise.
1330 * config/mips/mips.c (mips_set_text_contents_type): New function.
1331 (mips16_emit_constants): Record the pool's initial label number
1332 with the `consttable' insn. Emit a `consttable_end' insn at the end.
1333 (mips_final_prescan_insn): Call `mips_set_text_contents_type'
1334 for `consttable' insns.
1335 (mips_final_postscan_insn): Call `mips_set_text_contents_type'
1336 for `consttable_end' insns.
1337 * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE_END enum value.
1338 (consttable): Add operand.
1339 (consttable_end): New insn.
1340
1341 2016-11-16 Yuri Rumyantsev <ysrumyan@gmail.com>
1342
1343 * params.def (PARAM_VECT_EPILOGUES_NOMASK): New.
1344 * tree-if-conv.c (tree_if_conversion): Make public.
1345 * * tree-if-conv.h: New file.
1346 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences) Avoid
1347 dynamic alias checks for epilogues.
1348 * tree-vect-loop-manip.c (vect_do_peeling): Return created epilog.
1349 * tree-vect-loop.c: include tree-if-conv.h.
1350 (new_loop_vec_info): Add zeroing orig_loop_info field.
1351 (vect_analyze_loop_2): Don't try to enhance alignment for epilogues.
1352 (vect_analyze_loop): Add argument ORIG_LOOP_INFO which is not NULL
1353 if epilogue is vectorized, set up orig_loop_info field of loop_vinfo
1354 using passed argument.
1355 (vect_transform_loop): Check if created epilogue should be returned
1356 for further vectorization with less vf. If-convert epilogue if
1357 required. Print vectorization success for epilogue.
1358 * tree-vectorizer.c (vectorize_loops): Add epilogue vectorization
1359 if it is required, pass loop_vinfo produced during vectorization of
1360 loop body to vect_analyze_loop.
1361 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1362 orig_loop_info.
1363 (LOOP_VINFO_ORIG_LOOP_INFO): New.
1364 (LOOP_VINFO_EPILOGUE_P): New.
1365 (LOOP_VINFO_ORIG_VECT_FACTOR): New.
1366 (vect_do_peeling): Change prototype to return epilogue.
1367 (vect_analyze_loop): Add argument of loop_vec_info type.
1368 (vect_transform_loop): Return created loop.
1369
1370 2016-11-16 Segher Boessenkool <segher@kernel.crashing.org>
1371
1372 * config/rs6000/rs6000.c (rs6000_components_for_bb): Mark the LR
1373 component as used also if LR_REGNO is a live input to the bb.
1374 * df-scan.c (df_get_entry_block_def_set): Return immediately after
1375 clearing the set if DF_SCAN_EMPTY_ENTRY_EXIT is set.
1376 (df_get_exit_block_use_set): Ditto.
1377 * df.h (df_scan_flags): New enum.
1378 * shrink-wrap.c (try_shrink_wrapping_separate): Set
1379 DF_SCAN_EMPTY_ENTRY_EXIT in df_scan->local_flags, and call
1380 df_update_entry_block_defs and df_update_exit_block_uses
1381 at the start; clear the flag and call those functions at the end.
1382
1383 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
1384 Alan Hayward <alan.hayward@arm.com>
1385 David Sherwood <david.sherwood@arm.com>
1386
1387 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Set
1388 nb_iterations to the number of latch iterations rather than the
1389 number of loop iterations.
1390
1391 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
1392 Alan Hayward <alan.hayward@arm.com>
1393 David Sherwood <david.sherwood@arm.com>
1394
1395 * combine.c (maybe_swap_commutative_operands): New function.
1396 (combine_simplify_rtx): Use it.
1397 (change_zero_ext): Likewise.
1398 (make_compound_operation_int): New function, split out of...
1399 (make_compound_operation): ...here. Use
1400 maybe_swap_commutative_operands for both.
1401
1402 2016-11-16 Richard Earnshaw <rearnsha@arm.com>
1403
1404 * arm/arm-fpus.def (vfpv2): New FPU, currently an alias for 'vfp'.
1405 (neon-vfpv3): New FPU, currently an alias for 'neon'.
1406 * arm/arm-tables.opt: Regenerated.
1407 * arm/t-aprofile (MULTILIB_REUSE): Add reuse rules for vfpv2 and
1408 neon-vfpv3.
1409 * doc/invoke.texi (ARM: -mfpu): Document new options. Note that 'vfp'
1410 and 'neon' are aliases for specific implementations.
1411
1412 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
1413 Alan Hayward <alan.hayward@arm.com>
1414 David Sherwood <david.sherwood@arm.com>
1415
1416 * optabs.c (vector_compare_rtx): Add a cmp_mode parameter
1417 and use it in the final call to gen_rtx_fmt_ee.
1418 (expand_vec_cond_expr): Update accordingly.
1419 (expand_vec_cmp_expr): Likewise.
1420
1421 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
1422 Alan Hayward <alan.hayward@arm.com>
1423 David Sherwood <david.sherwood@arm.com>
1424
1425 * cprop.c (local_cprop_find_used_regs): Use df_read_modify_subreg_p.
1426
1427 2016-11-16 Richard Biener <rguenther@suse.de>
1428
1429 PR middle-end/78333
1430 * gimplify.c (gimplify_function_tree): Do not instrument
1431 GNU extern inline functions.
1432
1433 2016-11-16 Martin Liska <mliska@suse.cz>
1434
1435 PR sanitizer/78270
1436 * gimplify.c (gimplify_switch_expr): Always save previous
1437 gimplify_ctxp->live_switch_vars.
1438
1439 2016-11-16 Andrew Burgess <andrew.burgess@embecosm.com>
1440
1441 * config/arc/arc.md (movb peephole2): New peephole2 to merge two
1442 zero_extract operations to allow a movb to occur.
1443 * testsuite/gcc.target/arc/movb-1.c: Update little endian arc results.
1444 * testsuite/gcc.target/arc/movb-2.c: Likewise.
1445 * testsuite/gcc.target/arc/movb-5.c: Likewise.
1446 * testsuite/gcc.target/arc/movh_cl-1.c: Extend test to cover
1447 little endian arc.
1448
1449 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
1450 Alan Hayward <alan.hayward@arm.com>
1451 David Sherwood <david.sherwood@arm.com>
1452
1453 * expr.c (emit_group_load_1): Tighten check for whether an
1454 access involves only one operand of a CONCAT. Use extract_bit_field
1455 for constants if the bit range does span the whole operand.
1456
1457 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
1458 Alan Hayward <alan.hayward@arm.com>
1459 David Sherwood <david.sherwood@arm.com>
1460
1461 * rtlanal.c (rtx_addr_can_trap_p_1): Handle unknown sizes.
1462
1463 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
1464 Alan Hayward <alan.hayward@arm.com>
1465 David Sherwood <david.sherwood@arm.com>
1466
1467 * tree-vect-loop.c (vect_transform_loop): Protect the updates of
1468 all three iteration counts with an any_* test. Use a single update
1469 for each count. Fix the calculation of nb_iterations_estimate.
1470
1471 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
1472
1473 * config/pdp11/pdp11.c: Include dbxout.h.
1474
1475 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
1476
1477 * config/arc/arc.c (arc_loop_hazard): Add missing brackets.
1478
1479 2016-11-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1480
1481 PR target/78364
1482 * config/arm/arm.md (*extv_reg): Restrict operands 2 and 3 to the
1483 proper ranges for an SBFX instruction.
1484 (extzv_t2): Likewise for UBFX.
1485
1486 2016-11-16 Richard Biener <rguenther@suse.de>
1487
1488 PR tree-optimization/78348
1489 * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMMOVE.
1490 (generate_memcpy_builtin): Honor PKIND_MEMCPY on the partition.
1491 (classify_partition): Set PKIND_MEMCPY if dependence analysis
1492 revealed no dependency, PKIND_MEMMOVE otherwise.
1493
1494 2016-11-16 Jakub Jelinek <jakub@redhat.com>
1495
1496 PR sanitizer/77823
1497 * ubsan.c (ubsan_build_overflow_builtin): Add DATAP argument, if
1498 it points to non-NULL tree, use it instead of ubsan_create_data.
1499 (instrument_si_overflow): Handle vector signed integer overflow
1500 checking.
1501 * ubsan.h (ubsan_build_overflow_builtin): Add DATAP argument.
1502 * tree-vrp.c (simplify_internal_call_using_ranges): Punt for
1503 vector IFN_UBSAN_CHECK_*.
1504 * internal-fn.c (expand_addsub_overflow): Add DATAP argument,
1505 pass it through to ubsan_build_overflow_builtin.
1506 (expand_neg_overflow, expand_mul_overflow): Likewise.
1507 (expand_vector_ubsan_overflow): New function.
1508 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB,
1509 expand_UBSAN_CHECK_MUL): Use tit for vector arithmetics.
1510 (expand_arith_overflow): Adjust expand_*_overflow callers.
1511
1512 2016-11-16 Matthias Klose <doko@ubuntu.com>
1513
1514 * doc/install.texi: Remove references to java/libjava.
1515
1516 2016-11-16 Kugan Vivekanandarajah <kuganv@linaro.org>
1517
1518 * tree-ssa-coalesce.c (register_default_def): Remove
1519 register_ssa_partition.
1520 (create_outofssa_var_map): Likewise.
1521 * tree-ssa-live.c (register_ssa_partition_check): Remove.
1522 * tree-ssa-live.h (register_ssa_partition): Likewise.
1523
1524 2016-11-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
1525
1526 * genattrtab.c (attr_rtx_1): Avoid allocating new rtx objects.
1527 Clear ATTR_CURR_SIMPLIFIED_P for re-used binary rtx objects.
1528 Use DEF_ATTR_STRING for string arguments. Use RTL_HASH for
1529 integer arguments. Only set ATTR_PERMANENT_P on newly hashed
1530 rtx when all sub-rtx are also permanent.
1531 (attr_eq): Simplify.
1532 (attr_copy_rtx): Remove.
1533 (make_canonical, get_attr_value): Use attr_equal_p.
1534 (copy_boolean): Rehash NOT.
1535 (simplify_test_exp_in_temp,
1536 optimize_attrs): Remove call to attr_copy_rtx.
1537 (attr_alt_intersection, attr_alt_union,
1538 attr_alt_complement, mk_attr_alt): Rehash EQ_ATTR_ALT.
1539 (make_automaton_attrs): Use attr_eq.
1540
1541 2016-11-15 Matthias Klose <doko@ubuntu.com>
1542
1543 * doc/install.texi: Remove references to java/libjava.
1544 * doc/sourcebuild.texi: Likewise.
1545 * doc/invoke.texi: Likewise.
1546 * doc/standards.texi: Likewise.
1547
1548 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
1549 Alan Hayward <alan.hayward@arm.com>
1550 David Sherwood <david.sherwood@arm.com>
1551
1552 * config/i386/i386.h (INCOMING_RETURN_ADDR_RTX): Use Pmode instead
1553 of VOIDmode.
1554 * config/ia64/ia64.h (INCOMING_RETURN_ADDR_RTX): Likewise.
1555 * config/iq2000/iq2000.h (INCOMING_RETURN_ADDR_RTX): Likewise.
1556 * config/m68k/m68k.h (INCOMING_RETURN_ADDR_RTX): Likewise.
1557 * config/microblaze/microblaze.h (INCOMING_RETURN_ADDR_RTX): Likewise.
1558 * config/mips/mips.h (INCOMING_RETURN_ADDR_RTX): Likewise.
1559 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Likewise.
1560 * config/nios2/nios2.h (INCOMING_RETURN_ADDR_RTX): Likewise.
1561
1562 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
1563 Alan Hayward <alan.hayward@arm.com>
1564 David Sherwood <david.sherwood@arm.com>
1565
1566 * dce.c (check_argument_store): Pass the size instead of
1567 the memory reference.
1568 (find_call_stack_args): Pass MEM_SIZE to check_argument_store.
1569
1570 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
1571 Alan Hayward <alan.hayward@arm.com>
1572 David Sherwood <david.sherwood@arm.com>
1573
1574 * alias.c (canon_rtx): Use simplify_gen_binary.
1575
1576 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
1577 Alan Hayward <alan.hayward@arm.com>
1578 David Sherwood <david.sherwood@arm.com>
1579
1580 * rtl.h (load_extend_op): Declare.
1581 * rtlanal.c (load_extend_op): New function.
1582 (nonzero_bits1): Use it.
1583 (num_sign_bit_copies1): Likewise.
1584 * cse.c (cse_insn): Likewise.
1585 * fold-const.c (fold_single_bit_test): Likewise.
1586 (fold_unary_loc): Likewise.
1587 * fwprop.c (free_load_extend): Likewise.
1588 * postreload.c (reload_cse_simplify_set): Likewise.
1589 (reload_cse_simplify_operands): Likewise.
1590 * combine.c (try_combine): Likewise.
1591 (simplify_set): Likewise. Remove redundant SUBREG_BYTE and
1592 subreg_lowpart_p checks.
1593
1594 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
1595 Alan Hayward <alan.hayward@arm.com>
1596 David Sherwood <david.sherwood@arm.com>
1597
1598 * combine.c (simplify_shift_const_1): Use the number of bits
1599 in the inner mode to determine the range of the shift.
1600 When handling shifts of vectors, skip any rules that apply
1601 only to scalars.
1602
1603 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
1604 Alan Hayward <alan.hayward@arm.com>
1605 David Sherwood <david.sherwood@arm.com>
1606
1607 * rtlanal.c (num_sign_bit_copies1): Calculate bitwidth after
1608 handling VOIDmode.
1609
1610 2016-11-15 Matthias Klose <doko@ubuntu.com>
1611
1612 * doc/install.texi: Remove references to gcj/libjava.
1613 * doc/invoke.texi: Likewise.
1614
1615 2016-11-15 Jeff Law <law@redhat.com>
1616
1617 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove unneeded
1618 parameter. Callers changed.
1619 (check-subpath_and_update_thread_path): Extracted from
1620 fsm_find_control_statement_thread_paths.
1621 (handle_phi, handle_assignment, handle_assignment_p): Likewise.
1622 (handle_phi, handle_assignment): Allow any constant node, not
1623 just INTEGER_CST.
1624
1625 2016-11-15 Claudiu Zissulescu <claziss@synopsys.com>
1626
1627 * config/arc/arc-arch.h: New file.
1628 * config/arc/arc-arches.def: Likewise.
1629 * config/arc/arc-cpus.def: Likewise.
1630 * config/arc/arc-options.def: Likewise.
1631 * config/arc/t-multilib: Likewise.
1632 * config/arc/genmultilib.awk: Likewise.
1633 * config/arc/genoptions.awk: Likewise.
1634 * config/arc/arc-tables.opt: Likewise.
1635 * config/arc/driver-arc.c: Likewise.
1636 * testsuite/gcc.target/arc/nps400-cpu-flag.c: Likewise.
1637 * common/config/arc/arc-common.c (arc_handle_option): Trace
1638 toggled options.
1639 * config.gcc (arc*-*-*): Add arc-tables.opt to arc's extra
1640 options; check for supported cpu against arc-cpus.def file.
1641 (arc*-*-elf*, arc*-*-linux-uclibc*): Use new make fragment; define
1642 TARGET_CPU_BUILD macro; add driver-arc.o as an extra object.
1643 * config/arc/arc-c.def: Add emacs local variables.
1644 * config/arc/arc-opts.h (processor_type): Use arc-cpus.def file.
1645 (FPU_FPUS, FPU_FPUD, FPU_FPUDA, FPU_FPUDA_DIV, FPU_FPUDA_FMA)
1646 (FPU_FPUDA_ALL, FPU_FPUS_DIV, FPU_FPUS_FMA, FPU_FPUS_ALL)
1647 (FPU_FPUD_DIV, FPU_FPUD_FMA, FPU_FPUD_ALL): New defines.
1648 (DEFAULT_arc_fpu_build): Define.
1649 (DEFAULT_arc_mpy_option): Define.
1650 * config/arc/arc-protos.h (arc_init): Delete.
1651 * config/arc/arc.c (arc_cpu_name): New variable.
1652 (arc_selected_cpu, arc_selected_arch, arc_arcem, arc_archs)
1653 (arc_arc700, arc_arc600, arc_arc601): New variable.
1654 (arc_init): Add static; remove selection of default tune value,
1655 cleanup obsolete error messages.
1656 (arc_override_options): Make use of .def files for selecting the
1657 right cpu and option configurations.
1658 * config/arc/arc.h (stdbool.h): Include.
1659 (TARGET_CPU_DEFAULT): Define.
1660 (CPP_SPEC): Remove mcpu=NPS400 handling.
1661 (arc_cpu_to_as): Declare.
1662 (EXTRA_SPEC_FUNCTIONS): Define.
1663 (OPTION_DEFAULT_SPECS): Likewise.
1664 (ASM_DEFAULT): Remove.
1665 (ASM_SPEC): Use arc_cpu_to_as.
1666 (DRIVER_SELF_SPECS): Remove deprecated options.
1667 (arc_base_cpu): Declare.
1668 (TARGET_ARC600, TARGET_ARC601, TARGET_ARC700, TARGET_EM)
1669 (TARGET_HS, TARGET_V2, TARGET_ARC600): Make them use arc_base_cpu
1670 variable.
1671 (MULTILIB_DEFAULTS): Use ARC_MULTILIB_CPU_DEFAULT.
1672 * config/arc/arc.md (attr_cpu): Remove.
1673 * config/arc/arc.opt (mno-mpy): Deprecate.
1674 (mcpu=ARC600, mcpu=ARC601, mcpu=ARC700, mcpu=NPS400, mcpu=ARCEM)
1675 (mcpu=ARCHS): Remove.
1676 (mcrc, mdsp-packa, mdvbf, mmac-d16, mmac-24, mtelephony, mrtsc):
1677 Deprecate.
1678 (mbarrel_shifte, mspfp_, mdpfp_, mdsp_pack, mmac_): Remove.
1679 (arc_fpu): Use new defines.
1680 (mpy-option): Change to use numeric or string like inputs.
1681 * config/arc/t-arc (driver-arc.o): New target.
1682 (arc-cpus, t-multilib, arc-tables.opt): Likewise.
1683 * config/arc/t-arc-newlib: Delete.
1684 * config/arc/t-arc-uClibc: Renamed to t-uClibc.
1685 * doc/invoke.texi (ARC): Update arc options.
1686
1687 2016-11-15 Maciej W. Rozycki <macro@imgtec.com>
1688
1689 * config/mips/mips.c (mips16_emit_constants): Emit `consttable'
1690 insn at the beginning of the constant pool.
1691 (mips_insert_insn_pseudos): New function.
1692 (mips_machine_reorg2): Call it.
1693 * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE and
1694 UNSPEC_INSN_PSEUDO enum values.
1695 (insn_pseudo, consttable): New insns.
1696
1697 2016-11-15 Michael Matz <matz@suse.de>
1698
1699 PR missed-optimization/77881
1700 * combine.c (simplify_comparison): Remove useless subregs
1701 also inside the loop, not just after it.
1702 (make_compound_operation): Recognize some subregs as being
1703 masking as well.
1704
1705 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
1706 Alan Hayward <alan.hayward@arm.com>
1707 David Sherwood <david.sherwood@arm.com>
1708
1709 * dwarf2out.c (mem_loc_descriptor): Fix GET_MODE_CLASS/
1710 GET_MODE_SIZE typo.
1711
1712 2016-11-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1713
1714 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Add support
1715 for using xxinsertw and vinsert{b,h} on ISA 3.0.
1716
1717 * config/rs6000/vsx.md (vsx_extract_<mode>): Update comment.
1718 (vsx_set_<mode>_p9): New insn to generate xxinsertw and
1719 vinsert{b,h} on ISA 3.0.
1720
1721 2016-11-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
1722
1723 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
1724 and cmpnop in two steps: first the ones not accessed in original gimple
1725 expression in a endian independent way and then the ones not accessed
1726 in the final result in an endian-specific way.
1727 (bswap_replace): Stop doing big endian adjustment.
1728
1729 2016-11-14 Uros Bizjak <ubizjak@gmail.com>
1730
1731 * config/i386/i386.md (*andndi3_doubleword): Merge operand constraints.
1732 (*ashl<mode>3_doubleword): Ditto.
1733
1734 2016-11-14 Martin Liska <mliska@suse.cz>
1735
1736 * tree-ssa-dse.c (dse_optimize_stmt): Remove quotes and extra new line.
1737
1738 2016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
1739 Richard Biener <rguenther@suse.de>
1740
1741 * doc/invoke.texi (fgimple): Document.
1742 * dumpfile.h (TDF_GIMPLE): Add.
1743 * dumpfile.c (dump_options): Add gimple.
1744 * gimple-pretty-print.c (dump_gimple_switch): Adjust dump
1745 for TDF_GIMPLE.
1746 (dump_gimple_label): Likewise.
1747 (dump_gimple_phi): Likewise.
1748 (dump_gimple_bb_header): Likewise.
1749 (dump_phi_nodes): Likewise.
1750 (pp_cfg_jump): Likewise. Pass in dump flags.
1751 (dump_implicit_edges): Adjust.
1752 * passes.c (pass_init_dump_file): Do not dump function header
1753 for TDF_GIMPLE.
1754 * tree-cfg.c (dump_function_to_file): Dump function return type
1755 and __GIMPLE keyword for TDF_GIMPLE. Change guard for dumping
1756 GIMPLE stmts.
1757 * tree-pretty-print.c (dump_decl_name): Adjust dump for TDF_GIMPLE.
1758 (dump_generic_node): Likewise.
1759 * function.h (struct function): Add pass_startwith member.
1760 * passes.c (execute_one_pass): Implement startwith.
1761 * tree-ssanames.c (make_ssa_name_fn): New argument, check for version
1762 and assign proper version for parsed ssa names.
1763 * tree-ssanames.h (make_ssa_name_fn): Add new argument to the function.
1764 * internal-fn.c (expand_PHI): New function.
1765 * internal-fn.h (expand_PHI): Declared here.
1766 * internal-fn.def: New defination for PHI.
1767 * tree-cfg.c (lower_phi_internal_fn): New function.
1768 (build_gimple_cfg): Call it.
1769 (verify_gimple_call): Condition for passing label as arg in internal
1770 function PHI.
1771 * tree-into-ssa.c (rewrite_add_phi_arguments): Handle already
1772 present PHIs with arguments.
1773
1774 2016-11-14 Martin Liska <mliska@suse.cz>
1775
1776 PR bootstrap/78069
1777 * common.opt: Add prefer-atomic as a new enum value for
1778 -fprofile-update.
1779 * coretypes.h: Likewise.
1780 * doc/invoke.texi: Document the new option value.
1781 * gcc.c: Replace atomic with prefer-atomic. Remove warning.
1782 * tree-profile.c (tree_profiling): Select default value
1783 of -fprofile-update when 'prefer-atomic' is selected.
1784
1785 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
1786
1787 * config/arm/cortex-a57.md (cortex_a57_alu): Move extend here, bfm...
1788 (cortex_a57_alu_shift): ...here.
1789
1790 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
1791
1792 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3)
1793 Use bfx attribute.
1794 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
1795 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
1796 (<optab>si3_insn_uxtw): Likewise.
1797 (<optab><mode>3_insn): Likewise.
1798 (<ANY_EXTEND:optab><GPI:mode>_ashl<SHORT:mode>): Likewise.
1799 (zero_extend<GPI:mode>_lshr<SHORT:mode>): Likewise.
1800 (extend<GPI:mode>_ashr<SHORT:mode>): Likewise.
1801 (<optab><mode>): Likewise.
1802 (insv<mode>): Likewise.
1803 (andim_ashift<mode>_bfiz): Likewise.
1804 * config/aarch64/thunderx.md (thunderx_shift): Add bfx.
1805 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
1806 * config/arm/cortex-a57.md (cortex_a57_alu): Add bfx.
1807 * config/arm/exynos-m1.md (exynos_m1_alu): Add bfx.
1808 (exynos_m1_alu_p): Likewise.
1809 * config/arm/types.md: Add bfx.
1810 * config/arm/xgene1.md (xgene1_bfm): Add bfx.
1811
1812 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
1813
1814 * config/aarch64/aarch64.c (cortexa57_vector_cost):
1815 Change vec_stmt_cost, vec_align_load_cost and vec_unalign_load_cost.
1816
1817 2016-11-14 Richard Biener <rguenther@suse.de>
1818
1819 PR tree-optimization/78312
1820 * gimple-ssa-backprop.c (backprop::prepare_change): Reset
1821 flow-sensitive info.
1822
1823 2016-11-14 Georg-Johann Lay <avr@gjlay.de>
1824
1825 PR target/78093
1826 * doc/invoke.texi (AVR Options) [-mabsdata]: Document new option.
1827 * config/avr/avr.opt (-mabsdata): New option.
1828 * config/avr/avr-arch.h (avr_device_specific_features): Add AVR_ISA_LDS.
1829 * config/avr/avr.c (avr_encode_section_info) [AVR_TINY]: If
1830 -mabsdata & symbol is not progmem, tag as AVR_SYMBOL_FLAG_TINY_ABSDATA.
1831 * config/avr/avr-mcus.def (attiny4/5/9/10/20): Use AVR_ISA_LDS.
1832 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Print cc1_absdata
1833 spec depending on AVR_ISA_LDS.
1834 * config/avr/specs.h (CC1_SPEC): Enhanced by cc1_absdata spec.
1835
1836 2016-11-13 Jakub Jelinek <jakub@redhat.com>
1837
1838 * match.pd: Don't try to compare addresses of variables with
1839 DECL_VALUE_EXPR.
1840
1841 2016-11-13 Kugan Vivekanandarajah <kuganv@linaro.org>
1842
1843 * ipa-cp.c (ipa_get_jf_pass_through_result): Skip unary expressions.
1844 (propagate_vr_accross_jump_function): Handle unary expressions.
1845 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
1846 (load_from_param_1): New.
1847 (load_from_unmodified_param): Factor common part into load_from_param_1.
1848 (load_from_param): New.
1849 (compute_complex_assign_jump_func): Handle unary expressions.
1850 (update_jump_functions_after_inlining): Likewise.
1851 (ipa_write_jump_function): Likewise.
1852 (ipa_read_jump_function): Likewise.
1853
1854 2016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1855
1856 PR c/35503
1857 * doc/invoke.texi: Document Wrestrict.
1858 * pretty-print.c (pp_format): Add case for "Z" specifier.
1859 (test_pp_format): Test "Z" specifier.
1860
1861 2016-11-13 Eric Botcazou <ebotcazou@adacore.com>
1862
1863 * ipa-icf.c (sem_function::merge): Do not create a wrapper also if the
1864 original function needs a static chain.
1865
1866 2016-11-13 David Edelsohn <dje.gcc@gmail.com>
1867
1868 PR target/78336
1869 * config/rs6000/rs6000.c (rs6000_asm_weaken_decl): Protect
1870 ASM_OUTPUT_DEF.
1871
1872 2016-11-12 Segher Boessenkool <segher@kernel.crashing.org>
1873
1874 PR target/77957
1875 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
1876 return early if !optional_tbtab.
1877
1878 2016-11-11 Eric Botcazou <ebotcazou@adacore.com>
1879
1880 PR rtl-optimization/59461
1881 * doc/rtl.texi (paradoxical subregs): Add missing word.
1882 * combine.c (reg_nonzero_bits_for_combine): Do not discard results
1883 in modes with precision larger than that of last_set_mode.
1884 * rtlanal.c (nonzero_bits1) <SUBREG>: If WORD_REGISTER_OPERATIONS is
1885 set and LOAD_EXTEND_OP is appropriate, propagate results from inner
1886 REGs to paradoxical SUBREGs.
1887 (num_sign_bit_copies1) <SUBREG>: Likewise. Check that the mode is not
1888 larger than a word before invoking LOAD_EXTEND_OP on it.
1889
1890 2016-11-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1891
1892 PR target/78243
1893 * config/rs6000/vsx.md (vsx_extract_<mode>_p9): Correct the
1894 element order for little endian ordering.
1895
1896 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Use
1897 VECTOR_ELT_ORDER_BIG and not BYTES_BIG_ENDIAN to adjust element
1898 number.
1899
1900 2016-11-11 Uros Bizjak <ubizjak@gmail.com>
1901
1902 PR target/78310
1903 * config/i386/i386.md (rotate to rotatex splitter): Avoid overflow
1904 when calculating operand 2.
1905 (rotate to rotatex zext splitter): Ditto.
1906
1907 2016-11-11 Jeff Law <law@redhat.com>
1908
1909 * gimple-ssa-isolate-paths.c (is_divmod_with_given_divisor): New
1910 function.
1911 (stmt_uses_name_in_undefined_way): New function, extracted from
1912 find_implicit_erroneous_behavior and extended for div/mod case.
1913 (stmt_uses_0_or_null_in_undefined_way): New function, extracted from
1914 find_explicit_erroneous_behavior and extended for div/mod case.
1915 (find_implicit_erroneous_behavior): Use new helper function.
1916 (find_explicit_erroneous_behavior): Use new helper function.
1917
1918 2016-11-11 Richard Biener <rguenther@suse.de>
1919
1920 PR tree-optimization/71575
1921 * graphite-isl-ast-to-gimple.c (copy_cond_phi_nodes): Remove
1922 bogus assert.
1923
1924 2016-11-11 Richard Biener <rguenther@suse.de>
1925
1926 PR middle-end/78295
1927 * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
1928 about uninitialized destination arg of BIT_INSERT_EXPR.
1929
1930 2016-11-10 Sandra Loosemore <sandra@codesourcery.com>
1931
1932 PR c/37998
1933 * doc/invoke.texi (Code Gen Options) [-fno-common]: Use correct
1934 terminology. Expand to remove ambiguity.
1935
1936 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
1937
1938 PR rtl-optimization/78232
1939 * combine.c (try_combine): Add a big comment about why reusing i2dest
1940 is undesirable.
1941 (change_zero_ext): Do not call simplify_gen_binary, do the
1942 simplifications manually.
1943
1944 2016-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
1945
1946 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If ISA 3.0,
1947 enable HImode and QImode to go in vector registers by default if
1948 the -mvsx-small-integer option is enabled.
1949 (rs6000_secondary_reload_simple_move): Likewise.
1950 (rs6000_preferred_reload_class): Don't force integer constants to
1951 be loaded into vector registers that we can easily make into
1952 memory (or being created in the GPRs and moved over with direct move).
1953 * config/rs6000/vsx.md (UNSPEC_P9_MEMORY): Delete, no longer used.
1954 (vsx_extract_<mode>): Rework V4SImode, V8HImode, and V16QImode
1955 vector extraction on ISA 3.0 when the scalar integer can be
1956 allocated in vector registers. Generate the VEC_SELECT directy,
1957 and don't use UNSPEC's to avoid having the scalar type in a vector
1958 register. Make the expander target registers, and let the
1959 combiner fold in results storing to memory, if the machine
1960 supports stores.
1961 (vsx_extract_<mode>_di): Likewise.
1962 (vsx_extract_<mode>_p9): Likewise.
1963 (vsx_extract_<mode>_di_p9): Likewise.
1964 (vsx_extract_<mode>_store_p9): Likewise.
1965 (vsx_extract_si): Likewise.
1966 (vsx_extract_<mode>_p8): Likewise.
1967 (p9_lxsi<wd>zx): Delete, no longer used.
1968 (p9_stxsi<wd>x): Likewise.
1969 * config/rs6000/rs6000.md (INT_ISA3): New mode iterator for
1970 integers in vector registers for ISA 3.0.
1971 (QHI): Update comment.
1972 (zero_extendqi<mode>2): Add support for ISA 3.0 scalar load or
1973 vector extract instructions in sign/zero extend.
1974 (zero_extendhi<mode>): Likewise.
1975 (extendqi<mode>): Likewise.
1976 (extendhi<mode>2): Likewise.
1977 (HImode splitter for load/sign extend in vector register): Likewise.
1978 (float<QHI:mode><FP_ISA3:mode>2): Eliminate old method of
1979 optimizing floating point conversions to/from small data types and
1980 rewrite it to support QImode/HImode being allowed in vector
1981 registers on ISA 3.0.
1982 (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
1983 (floatuns<QHI:mode><FP_ISA3:mode>2): Likewise.
1984 (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
1985 (fix_trunc<SFDF:mode><QHI:mode>2): Likewise.
1986 (fix_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
1987 (fixuns_trunc<SFDF:mode><QHI:mode>2): Likewise.
1988 (fixuns_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
1989 VSPLITISW on ISA 2.07.
1990 (movhi_internal): Combine movhi_internal and movqi_internal into
1991 one mov<mode>_internal with an iterator. Add support for QImode
1992 and HImode being allowed in vector registers. Make large number
1993 of attributes and constraints easier to read.
1994 (movqi_internal): Likewise.
1995 (mov<mode>_internal): Likewise.
1996 (movdi_internal64): Fix constraint to allow loading -16..15 with
1997 VSPLITISW on ISA 2.07.
1998 (integer XXSPLTIB splitter): Add support for QI, HI, and SImode as
1999 well as DImode.
2000
2001 2016-11-10 Pat Haugen <pthaugen@us.ibm.com>
2002
2003 PR rtl-optimization/78241
2004 * loop-unroll.c (unroll_loop_runtime_iterations): Don't adjust 'niter',
2005 but emit initial peel copy if niter expr is not reliable.
2006
2007 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
2008
2009 * dwarf2cfi.c (dump_cfi_row): Add forward declaration.
2010 (maybe_record_trace_start): If the CFI is different on the new and
2011 old paths, print out both to the dump file before ICEing.
2012
2013 2016-11-10 Vladimir Makarov <vmakarov@redhat.com>
2014
2015 * target.def (additional_allocno_class_p): New.
2016 * hooks.h (hook_bool_reg_class_t_false): New prototype.
2017 * hooks.c (hook_bool_reg_class_t_false): New.
2018 * ira.c (setup_allocno_and_important_classes): Use the new hook.
2019 * doc/tm.texi.in (TARGET_ADDITIONAL_ALLOCNO_CLASS_P): Add it.
2020 * doc/tm.texi: Update.
2021
2022 2016-11-10 Jason Merrill <jason@redhat.com>
2023
2024 * gengtype.c (new_structure): Append to structures list.
2025 (find_structure): Likewise.
2026
2027 2016-11-10 Jim Wilson <jim.wilson@linaro.org>
2028
2029 * tree-loop-distribution.c (pg_add_dependence_edges): Return 2 if
2030 this_dir is 2. Check for this_dir non-zero before dir != this_dir
2031 check.
2032
2033 2016-11-10 Jakub Jelinek <jakub@redhat.com>
2034
2035 * omp-low.c (lower_omp_target): Fix up argument to is_reference.
2036 (expand_omp_ordered_sink): Handle TREE_PURPOSE of deps being
2037 TRUNC_DIV_EXPR.
2038 * gimplify.c (gimplify_scan_omp_clauses): Likewise. Set
2039 ctx->target_map_scalars_firstprivate on OMP_TARGET even for Fortran.
2040 Remove omp_no_lastprivate callers. Propagate lastprivate on combined
2041 teams distribute parallel for simd even to distribute and teams
2042 construct. For OMP_CLAUSE_DEPEND add missing break at the end of
2043 OMP_CLAUSE_DEPEND_SINK case.
2044 (omp_notice_variable): Use lang_hooks.decls.omp_scalar_p.
2045 (omp_no_lastprivate): Removed.
2046 (gimplify_adjust_omp_clauses): Remove omp_no_lastprivate callers.
2047 (gimplify_omp_for): Likewise.
2048 (computable_teams_clause): Fail for automatic vars from current
2049 function not yet seen in bind expr.
2050 * langhooks.c (lhd_omp_scalar_p): New function.
2051 * langhooks.h (struct lang_hooks_for_decls): Add omp_scalar_p.
2052 * varpool.c (varpool_node::get_create): Set node->offloading
2053 even for DECL_EXTERNAL decls.
2054 * langhooks-def.h (lhd_omp_scalar_p): New prototype.
2055 (LANG_HOOKS_OMP_SCALAR_P): Define.
2056 (LANG_HOOKS_DECLS): Use it.
2057
2058 2016-11-10 Martin Liska <mliska@suse.cz>
2059
2060 PR sanitizer/78270
2061 * gimplify.c (gimplify_switch_expr): Create live_switch_vars
2062 only when SWITCH_BODY is a BIND_EXPR.
2063
2064 2016-11-10 Pierre-Marie de Rodat <derodat@adacore.com>
2065
2066 PR debug/78112
2067 * dwarf2out.c (dwarf2out_early_global_decl): Call dwarf2out_decl
2068 on the context only when it has no DIE yet.
2069
2070 2016-11-10 Richard Earnshaw <rearnsha@arm.com>
2071
2072 * arm.h (target_cpus): Delete.
2073 * arm-opts.h (enum processor_type): Prefix entires with TARGET_CPU_.
2074 * arm.c (all_cores): Prefix IDENT with TARGET_CPU_.
2075 (all_architectures): Likewise.
2076 (arm_option_override): Adjust use of CPU enums.
2077 (arm_sched_reorder): Likewise.
2078 * vfp.md (movdi_vfp, movdi_vfp_cortexa8): Likewise.
2079 * arm.opt (mcpu, mtune): Adjust use of CPU enums.
2080 * arm/genopt.sh (processor_type): Prefix enumeration entries with
2081 TARGET_CPU_.
2082 * arm-tables.opt: Regenerated.
2083
2084 2016-11-10 Siddhesh Poyarekar <siddhesh.poyarekar@linaro.org>
2085
2086 * config/aarch64/aarch64-cores.def (qdf24xx): Update part number.
2087 (falkor): New core.
2088 * config/aarch64/aarch64-tune.md: Regenerated.
2089 * config/arm/arm-cores.def (falkor): New core.
2090 * config/arm/arm-tables.opt: Regenerated.
2091 * config/arm/arm-tune.md: Regenerated.
2092 * config/arm/bpabi.h (BE8_LINK_SPEC): Add falkor support.
2093 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
2094 * doc/invoke.texi (AArch64 Options/-mtune): Document it.
2095 (ARM Options/-mtune): Likewise.
2096
2097 2016-11-10 Kugan Vivekanandarajah <kuganv@linaro.org>
2098
2099 Revert
2100 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
2101
2102 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
2103 (propagate_vr_accross_jump_function): Likewise.
2104 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
2105 (load_from_param_1): New.
2106 (load_from_unmodified_param): Factor common part into load_from_param_1.
2107 (load_from_param): New.
2108 (compute_complex_assign_jump_func): Handle unary expressions.
2109 (ipa_write_jump_function): Likewise.
2110 (ipa_read_jump_function): Likewise.
2111
2112 2016-11-09 Segher Boessenkool <segher@kernel.crashing.org>
2113
2114 * simplify-rtx.c (simplify_binary_operation_1): Simplify
2115 (xor (and (xor A B) C) B) to (ior (and A C) (and B ~C)) and
2116 (xor (and (xor A B) C) A) to (ior (and A ~C) (and B C)) if C
2117 is a const_int.
2118
2119 2016-11-09 David Malcolm <dmalcolm@redhat.com>
2120
2121 * print-rtl-function.c: Include varasm.h.
2122 (print_any_param_name): New function.
2123 (print_param): New function.
2124 (print_rtx_function): Call print_param for each argument.
2125 * print-rtl.c (rtx_writer::finish_directive): New function.
2126 * print-rtl.h (rtx_writer::finish_directive): New decl.
2127
2128 2016-11-09 Uros Bizjak <ubizjak@gmail.com>
2129
2130 PR target/78262
2131 * config/i386/i386.md (*<shift_insn><mode>3_doubleword): Mark
2132 operand 0 as earlyclobber.
2133 (*ashl<mode>3_doubleword): Ditto for all operand 0 alternatives.
2134
2135 2016-11-09 Martin Liska <mliska@suse.cz>
2136
2137 * fold-const-call.c (fold_const_call): Fix up type of s0 and s1.
2138
2139 2016-11-09 Jakub Jelinek <jakub@redhat.com>
2140
2141 PR target/77718
2142 * builtins.c (expand_builtin_memcmp): Formatting fix.
2143
2144 * flag-types.h (enum sanitize_code): Add SANITIZE_SHIFT_BASE
2145 and SANITIZE_SHIFT_EXPONENT, change SANITIZE_SHIFT to bitwise
2146 or of them, renumber other enumerators.
2147 * opts.c (sanitizer_opts): Add shift-base and shift-exponent.
2148 * doc/invoke.texi: Document -fsanitize=shift-base and
2149 -fsanitize-shift-exponent, document -fsanitize=shift as
2150 having those 2 suboptions.
2151
2152 2016-11-09 Richard Biener <rguenther@suse.de>
2153
2154 * fold-const.c (tree_swap_operands_p): Remove unused arg.
2155 * fold-const.c (tree_swap_operands_p): Likewise.
2156 (fold_binary_loc): Adjust.
2157 (fold_ternary_loc): Likewise.
2158 * genmatch.c (dt_operand::gen_gimple_exp): Likewise.
2159 * gimple-fold.c (fold_stmt_1): Likewise.
2160 * gimple-match-head.c (gimple_resimplify2): Likewise.
2161 (gimple_resimplify3): Likewise.
2162 (gimple_simplify): Likewise.
2163 * tree-ssa-dom.c (record_equality): Likewise.
2164 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Likewise.
2165 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
2166 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): Likewise.
2167
2168 2016-11-09 Richard Biener <rguenther@suse.de>
2169
2170 * tree-ssa-dom.c (canonicalize_comparison): Remove.
2171 (optimize_stmt): Remove redundant pre-propagation canonicalization
2172 of comparison operand order.
2173
2174 2016-11-09 Martin Liska <mliska@suse.cz>
2175
2176 * fold-const-call.c (fold_const_call): Fix the folding.
2177
2178 2016-11-09 Richard Biener <rguenther@suse.de>
2179
2180 * common.opt (flag_evaluation_order): Remove.
2181 * expr.c (expand_operands): Remove code guarded by
2182 flag_evaluation_order.
2183 * fold-const.c (reorder_operands_p): Remove, it always returns
2184 true.
2185 (negate_expr_p): Remove calls to reorder_operands_p.
2186 (fold_negate_expr): Likewise.
2187 (tree_swap_operands_p): Likewise.
2188 (fold_binary_loc): Likewise.
2189
2190 2016-11-09 Andreas Schwab <schwab@suse.de>
2191
2192 PR target/78254
2193 * config/m68k/m68k.md: Reject out-of-range bit pos in bit-fields
2194 insns operating on a register.
2195
2196 2016-11-09 Richard Biener <rguenther@suse.de>
2197
2198 PR tree-optimization/78007
2199 * tree-vect-stmts.c (vectorizable_bswap): New function.
2200 (vectorizable_call): Call vectorizable_bswap for
2201 BUILT_IN_BSWAP{16,32,64} if arguments are not promoted.
2202
2203 2016-11-09 Richard Biener <rguenther@suse.de>
2204
2205 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
2206 Look at the DR_BASE_ADDRESS object for forcing alignment.
2207
2208 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
2209
2210 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
2211 (propagate_vr_accross_jump_function): Likewise.
2212 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
2213 (load_from_param_1): New.
2214 (load_from_unmodified_param): Factor common part into load_from_param_1.
2215 (load_from_param): New.
2216 (compute_complex_assign_jump_func): Handle unary expressions.
2217 (ipa_write_jump_function): Likewise.
2218 (ipa_read_jump_function): Likewise.
2219
2220 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
2221
2222 PR ipa/78121
2223 * ipa-cp.c (propagate_vr_accross_jump_function): Pass param type.
2224 Also fold constant passed as argument while computing value range.
2225 (propagate_constants_accross_call): Pass param type.
2226 * ipa-prop.c: export ipa_get_callee_param_type.
2227 * ipa-prop.h: export ipa_get_callee_param_type.
2228
2229 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
2230
2231 * asan.h (asan_intercepted_p): Handle BUILT_IN_STRCSPN,
2232 BUILT_IN_STRPBRK, BUILT_IN_STRSPN and BUILT_IN_STRSTR.
2233
2234 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
2235
2236 * asan.h (ASAN_STACK_MAGIC_PARTIAL): Remove.
2237 * asan.c (ASAN_STACK_MAGIC_PARTIAL): Replace with
2238 ASAN_STACK_MAGIC_MIDDLE.
2239 (asan_global_struct): Increase the size of fields.
2240 (asan_add_global): Add new field constructor.
2241 * sanitizer.def (__asan_version_mismatch_check_v6): Replace with
2242 __asan_version_mismatch_check_v8.
2243
2244 2016-11-08 David Edelsohn <dje.gcc@gmail.com>
2245
2246 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Test XCOFF_DEBUGGING_INFO
2247 at runtime.
2248
2249 2016-11-08 Uros Bizjak <ubizjak@gmail.com>
2250
2251 PR target/70799
2252 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
2253 Handle ASHIFT and LSHIFTRT.
2254 (dimode_scalar_chain::compute_convert_gain): Ditto.
2255 (dimode_scalar_chain::convert_insn): Ditto.
2256
2257 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2258
2259 * gimple-ssa-store-merging.c: Include selftest.h
2260 (verify_array_eq): New function.
2261 (verify_shift_bytes_in_array): Likewise.
2262 (verify_shift_bytes_in_array_right): Likewise.
2263 (verify_clear_bit_region): Likewise.
2264 (verify_clear_bit_region_be): Likewise.
2265 (store_merging_c_tests): Likewise.
2266 * selftest.h (store_merging_c_tests): Declare prototype.
2267 * selftest-run-tests.c (selftest::run_tests): Run
2268 store_merging_c_tests.
2269
2270 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2271
2272 * config/arm/arm.opt (mold-rtx-costs): Delete.
2273 (mnew-generic-costs): Delete.
2274 * config/arm/arm-protos.h (struct tune_params): Delete rtx_costs field.
2275 * config/arm/arm.c (arm_rtx_costs_1): Delete.
2276 (arm_size_rtx_costs): Likewise.
2277 (arm_slowmul_rtx_costs): Likewise.
2278 (arm_fastmul_rtx_costs): Likewise.
2279 (arm_xscale_rtx_costs): Likewise.
2280 (arm_9e_rtx_costs): Likewise.
2281 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
2282 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
2283 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
2284 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
2285 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
2286 arm_cortex_a5_tune, arm_xgene1_tune, arm_marvell_pj4_tune,
2287 arm_cortex_a35_tune, arm_exynosm1_tune, arm_cortex_a73_tune,
2288 arm_cortex_m7_tune):
2289 Delete rtx_costs field.
2290 (arm_new_rtx_costs): Rename to...
2291 (arm_rtx_costs_internal): ... This.
2292 (arm_rtx_costs): Remove old way of doing rtx costs.
2293
2294 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2295
2296 * config/arm/arm.c (arm_slowmul_tune): Use generic_extra_costs.
2297 (arm_fastmul_tune): Likewise.
2298 (arm_strongarm_tune): Likewise.
2299 (arm_xscale_tune): Likewise.
2300 (arm_9e_tune): Likewise.
2301 (arm_marvell_pj4_tune): Likewise.
2302 (arm_v6t2_tune): Likewise.
2303 (arm_v6m_tune): Likewise.
2304 (arm_fa726te_tune): Likewise.
2305
2306 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2307
2308 PR tree-optimization/78234
2309 * gimple-ssa-store-merging.c (clear_bit_region): Fix off-by-one error
2310 in start != 0 case.
2311
2312 2016-11-08 Martin Liska <mliska@suse.cz>
2313
2314 PR testsuite/78242
2315 * dbgcnt.def: Add new debug counter asan_use_after_scope.
2316 * gimplify.c (gimplify_decl_expr): Do not sanitize vars
2317 with a value expr. Do not add artificial variables to
2318 live_switch_vars. Use the debug counter.
2319 (gimplify_target_expr): Use the debug counter.
2320 * internal-fn.def: Remove ECF_TM_PURE from ASAN_MARK builtin.
2321 * sanitizer.def: Set ATTR_NOTHROW_LEAF_LIST to
2322 BUILT_IN_ASAN_CLOBBER_N and BUILT_IN_ASAN_UNCLOBBER_N.
2323
2324 2016-11-08 Richard Biener <rguenther@suse.de>
2325
2326 * tree-vect-stmts.c (get_group_load_store_type): If the
2327 access is aligned do not trigger peeling for gaps.
2328 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
2329 force alignment of vars with DECL_USER_ALIGN.
2330
2331 2016-11-08 James Greenhalgh <james.greenhalgh@arm.com>
2332
2333 * config/aarch64/t-aarch64 (aarch64-c.o): Depend on TARGET_H.
2334
2335 2016-11-08 Richard Biener <rguenther@suse.de>
2336
2337 PR tree-optimization/78205
2338 * tree-vect-stmts.c (vectorizable_load): Move check whether
2339 we may run into gaps when BB vectorizing SLP permutations ...
2340 * tree-vect-slp.c (vect_supported_load_permutation_p): ...
2341 here where we can do a more precise check.
2342
2343 2016-11-08 Richard Biener <rguenther@suse.de>
2344
2345 PR tree-optimization/78224
2346 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
2347 Split the fallthru edge in case its successor may have PHIs.
2348 Do not free dominance info.
2349
2350 2016-11-07 Jakub Jelinek <jakub@redhat.com>
2351
2352 PR target/78229
2353 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
2354 EH info even for bzhi and pdep/pext.
2355
2356 2016-11-07 Peter Bergner <bergner@vnet.ibm.com>
2357
2358 * config.gcc (powerpc*-*-*, rs6000*-*-*): Remove setting of
2359 INCLUDE_EXTRA_SPEC for Advance Toolchain builds.
2360
2361 2016-11-07 Segher Boessenkool <segher@kernel.crashing.org>
2362
2363 * config/rs6000/rs6000.md (div<mode>3): Expand using rs6000_emit_swdiv
2364 if appropriate.
2365 * config/rs6000/vector.md (div<mode>3): Ditto.
2366
2367 2016-11-07 David Edelsohn <dje.gcc@gmail.com>
2368
2369 * configure.ac (.hidden): Change to conftest_s string. Provide string
2370 for AIX assembler.
2371 (gcc_cv_ld_hidden): Yes for AIX.
2372 * configure: Regenerate.
2373
2374 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Don't set for AIX (XCOFF).
2375
2376 * config/rs6000/rs6000-protos.h (rs6000_asm_weaken_decl): Declare
2377 (rs6000_xcoff_asm_output_aligned_decl_common): Declare.
2378 * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_DECL_NAME): Define.
2379 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
2380 (ASM_OUTPUT_ALIGNED_COMMON): Delete.
2381 * config/rs6000/rs6000.c (rs6000_init_builtins): Change clog rename
2382 from #if to if.
2383 (rs6000_xcoff_visibility): New.
2384 (rs6000_xcoff_declare_function_name): Add visibility support.
2385 (rs6000_xcoff_asm_globalize_decl_name): New.
2386 (rs6000_xcoff_asm_output_aligned_decl_common): New.
2387 (rs6000_asm_weaken_decl): New.
2388 (rs6000_code_end): Disable HIDDEN_LINKONCE on XCOFF.
2389 config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Change definition to
2390 reference function.
2391
2392 2016-11-07 Jack Howarth <howarth.at.gcc@gmail.com>
2393
2394 PR driver/78206
2395 * incpath.c (remove_dup): Also silently ignore EPERM.
2396
2397 2016-11-07 Martin Jambor <mjambor@suse.cz>
2398
2399 * tree.c (verify_type_variant): Use pointer comparison to check that
2400 TYPE_SIZE_UNIT match.
2401
2402 2016-11-07 Jakub Jelinek <jakub@redhat.com>
2403
2404 PR target/77834
2405 * dse.c (dse_step5): Call scan_reads even if just
2406 insn_info->frame_read. Improve and fix dump file messages.
2407
2408 PR target/78227
2409 * config/i386/i386.c (ix86_expand_sse_cmp): Force dest into
2410 cmp_mode argument even for -O0 if cmp_mode != mode and maskcmp.
2411
2412 2016-11-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2413
2414 PR middle-end/35691
2415 * match.pd: Add following two patterns:
2416 (x == 0 & y == 0) -> (x | typeof(x)(y)) == 0.
2417 (x != 0 | y != 0) -> (x | typeof(x)(y)) != 0.
2418
2419 2016-11-07 Bernd Schmidt <bschmidt@redhat.com>
2420
2421 * emit-rtl.c (emit_copy_of_insn_after): Duplicate notes in order.
2422 * sel-sched-ir.c (create_copy_of_insn_rtx): Likewise.
2423 * rtl.h (duplicate_reg_notes): Declare.
2424 * rtlanal.c (duplicate_reg_note): New function.
2425
2426 PR rtl-optimization/77309
2427 * combine.c (make_compound_operation): Allow EQ for IN_CODE, and
2428 don't assume an equality comparison for plain COMPARE.
2429 (simplify_comparison): Pass a more accurate code to
2430 make_compound_operation.
2431
2432 2016-11-07 Pat Haugen <pthaugen@us.ibm.com>
2433
2434 * target.def (compute_pressure_classes): New target hook.
2435 * doc/tm.texi.in: Document it.
2436 * doc/tm.texi: Regenerate.
2437 * ira.c (setup_pressure_classes): Call target hook if defined.
2438
2439 2016-11-07 David Malcolm <dmalcolm@redhat.com>
2440
2441 * print-rtl.c (rtx_writer::operand_has_default_value_p): New
2442 method.
2443 (rtx_writer::print_rtx): In compact mode, omit trailing operands
2444 that have the default values.
2445 * print-rtl.h (rtx_writer::operand_has_default_value_p): New
2446 method.
2447 * rtl-tests.c (selftest::test_dumping_insns): Remove empty
2448 label string from expected dump.
2449 (seltest::test_uncond_jump): Remove trailing "(nil)" for REG_NOTES
2450 from expected dump.
2451
2452 2016-11-07 Jakub Jelinek <jakub@redhat.com>
2453
2454 PR target/77834
2455 * alias.c (nonoverlapping_memrefs_p): If one decl is
2456 FUNCTION_DECL or LABEL_DECL and the other is not, return 1.
2457
2458 2016-11-07 Richard Biener <rguenther@suse.de>
2459
2460 PR target/78229
2461 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
2462 EH info.
2463
2464 2016-11-07 Richard Biener <rguenther@suse.de>
2465
2466 PR tree-optimization/78218
2467 * gimple-ssa-store-merging.c
2468 (pass_store_merging::terminate_all_aliasing_chains):
2469 Drop unused argument, fix alias check to also consider uses.
2470 (pass_store_merging::execute): Adjust.
2471
2472 2016-11-07 Richard Biener <rguenther@suse.de>
2473
2474 PR tree-optimization/78228
2475 * tree-ssa-phiopt.c (abs_replacement): Avoid introducing
2476 undefined behavior.
2477
2478 2016-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2479
2480 PR target/77822
2481 * config/aarch64/aarch64.md (*tb<optab><mode>1): Use
2482 aarch64_simd_shift_imm_<mode> predicate for operand 1.
2483 (<optab>, ANY_EXTRACT): Use tighter predicates on operands 2 and 3
2484 to restrict them to an appropriate range and add FAIL check if the
2485 region they specify is out of range. Delete useless constraint
2486 strings.
2487 (*<optab><mode>, ANY_EXTRACT): Add appropriate predicates on operands
2488 2 and 3 to restrict their range and add pattern predicate.
2489
2490 2016-11-07 Martin Liska <mliska@suse.cz>
2491
2492 * asan.c (enum asan_check_flags): Move the enum to header file.
2493 (asan_init_shadow_ptr_types): Make type creation more generic.
2494 (shadow_mem_size): New function.
2495 (asan_emit_stack_protection): Use newly added ASAN_SHADOW_GRANULARITY.
2496 Rewritten stack unpoisoning code.
2497 (build_shadow_mem_access): Add new argument return_address.
2498 (instrument_derefs): Instrument local variables if use after scope
2499 sanitization is enabled.
2500 (asan_store_shadow_bytes): New function.
2501 (asan_expand_mark_ifn): Likewise.
2502 (asan_sanitize_stack_p): Moved from asan_sanitize_stack_p.
2503 * asan.h (enum asan_mark_flags): Moved here from asan.c
2504 (asan_protect_stack_decl): Protect all declaration that need
2505 to live in memory.
2506 (asan_sanitize_use_after_scope): New function.
2507 (asan_no_sanitize_address_p): Likewise.
2508 * cfgexpand.c (partition_stack_vars): Consider
2509 asan_sanitize_use_after_scope in condition.
2510 (expand_stack_vars): Likewise.
2511 * common.opt (-fsanitize-address-use-after-scope): New option.
2512 * doc/invoke.texi (use-after-scope-direct-emission-threshold):
2513 Explain the parameter.
2514 * flag-types.h (enum sanitize_code): Define SANITIZE_USE_AFTER_SCOPE.
2515 * gimplify.c (build_asan_poison_call_expr): New function.
2516 (asan_poison_variable): Likewise.
2517 (gimplify_bind_expr): Generate poisoning/unpoisoning for local
2518 variables that have address taken.
2519 (gimplify_decl_expr): Likewise.
2520 (gimplify_target_expr): Likewise for C++ temporaries.
2521 (sort_by_decl_uid): New function.
2522 (gimplify_expr): Unpoison all variables for a label we can jump
2523 from outside of a scope.
2524 (gimplify_switch_expr): Unpoison variables defined in the switch
2525 context.
2526 (gimplify_function_tree): Clear asan_poisoned_variables.
2527 (asan_poison_variables): New function.
2528 (warn_switch_unreachable_r): Handle IFN_ASAN_MARK.
2529 * internal-fn.c (expand_ASAN_MARK): New function.
2530 * internal-fn.def (ASAN_MARK): Declare.
2531 * opts.c (finish_options): Handle -fstack-reuse if
2532 -fsanitize-address-use-after-scope is enabled.
2533 (common_handle_option): Enable address sanitization if
2534 -fsanitize-address-use-after-scope is enabled.
2535 * params.def (PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD):
2536 New parameter.
2537 * params.h: Likewise.
2538 * sancov.c (pass_sanopt::execute): Handle IFN_ASAN_MARK.
2539 * sanitizer.def: Define __asan_poison_stack_memory and
2540 __asan_unpoison_stack_memory functions.
2541 * asan.c (asan_mark_poison_p): New function.
2542 (transform_statements): Handle asan_mark_poison_p calls.
2543 * gimple.c (nonfreeing_call_p): Handle IFN_ASAN_MARK.
2544
2545 2016-11-07 Tamar Christina <tamar.christina@arm.com>
2546
2547 PR driver/78196
2548 * Makefile.in (SELFTEST_FLAGS): Added -o /dev/null.
2549
2550 2016-11-07 Martin Liska <mliska@suse.cz>
2551
2552 * tree-profile.c (gimple_gen_time_profiler): Set proper type
2553 to time_profiler_counter_ptr.
2554
2555 2016-11-07 Richard Biener <rguenther@suse.de>
2556
2557 PR tree-optimization/37150
2558 * tree-vectorizer.h (vect_transform_slp_perm_load): Add n_perms
2559 parameter.
2560 * tree-vect-slp.c (vect_supported_load_permutation_p): Adjust.
2561 (vect_analyze_slp_cost_1): Account for the real number of
2562 permutations emitted and for dead loads.
2563 (vect_transform_slp_perm_load): Add n_perms parameter counting
2564 the number of emitted permutations.
2565 * tree-vect-stmts.c (vectorizable_load): Adjust.
2566
2567 2016-11-07 Richard Biener <rguenther@suse.de>
2568
2569 PR tree-optimization/78189
2570 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Fix
2571 alignment computation.
2572
2573 2016-11-06 Kugan Vivekanandarajah <kuganv@linaro.org>
2574
2575 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove unreachable code.
2576
2577 2016-11-05 Martin Sebor <msebor@redhat.com>
2578
2579 * doc/invoke.texi (Warning Options): Correct typos in -Walloca
2580 documentation.
2581
2582 2016-11-05 David Edelsohn <dje.gcc@gmail.com>
2583
2584 PR bootstrap/78188
2585 PR c++/71848
2586 * ipa-comdats.c (pass_ipa_comdats::gate): Require HAVE_COMDAT_GROUP.
2587
2588 2016-11-04 Jakub Jelinek <jakub@redhat.com>
2589
2590 PR target/77834
2591 * alias.c (nonoverlapping_memrefs_p): Return 0 if exprx or expry
2592 doesn't have rtl set.
2593
2594 2016-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2595
2596 * config/rs6000/rs6000.c (gimple-ssa.h): New #include.
2597 (TARGET_GIMPLE_FOLD_BUILTIN): Define as
2598 rs6000_gimple_fold_builtin.
2599 (rs6000_gimple_fold_builtin): New function. Add handling for
2600 early expansion of vector addition builtins.
2601
2602 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
2603
2604 * expr.h (copy_blkmode_from_reg): Delete.
2605 * expr.c (copy_blkmode_from_reg): Make static.
2606
2607 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
2608
2609 * defaults.h (LOAD_EXTEND_OP): Define if not already defined.
2610 * combine.c (LOAD_EXTEND_OP): Delete.
2611 (simplify_comparison): Fix comment about LOAD_EXTEND_OP.
2612 * cse.c (LOAD_EXTEND_OP): Delete.
2613 * fold-const.c (LOAD_EXTEND_OP): Likewise.
2614 * fwprop.c (free_load_extend): Remove #ifdef LOAD_EXTEND_OP/#endif.
2615 * postreload.c (LOAD_EXTEND_OP): Delete.
2616 * reload.c (push_reload): Remove #ifdef LOAD_EXTEND_OP/#endif.
2617 Convert conditional compilation based on WORD_REGISTER_OPERATIONS.
2618 (find_reloads): Likewise.
2619 * reload1.c (eliminate_regs_1): Likewise.
2620 * rtlanal.c (nonzero_bits1): Remove #ifdef LOAD_EXTEND_OP/#endif.
2621 (num_sign_bit_copies1): Likewise.
2622
2623 2016-11-04 David Malcolm <dmalcolm@redhat.com>
2624
2625 * config/i386/i386.c: Include "selftest.h" and "selftest-rtl.h".
2626 (selftest::ix86_test_dumping_hard_regs): New function.
2627 (selftest::ix86_run_selftests): New function.
2628 (TARGET_RUN_TARGET_SELFTESTS): When CHECKING_P, wire this up to
2629 selftest::ix86_run_selftests.
2630 * doc/tm.texi.in (TARGET_RUN_TARGET_SELFTESTS): New.
2631 * doc/tm.texi: Regenerate
2632 * selftest-rtl.h: New file.
2633 * rtl-tests.c: Include "selftest-rtl.h".
2634 (selftest::assert_rtl_dump_eq): Make non-static.
2635 (ASSERT_RTL_DUMP_EQ): Move to selftest-rtl.h.
2636 (selftest::test_dumping_regs): Update comment.
2637 * selftest-run-tests.c: Include "target.h".
2638 (selftest::run_tests): If non-NULL, call
2639 targetm.run_target_selftests.
2640 * target.def (run_target_selftests): New hook.
2641
2642 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
2643
2644 * config/arm/arm-arches.def (armv8-m.main+dsp): Set Cortex-M33 as
2645 representative core for this architecture.
2646 * config/arm/arm-cores.def (cortex-m33): Define new processor.
2647 * config/arm/arm-tables.opt: Regenerate.
2648 * config/arm/arm-tune.md: Likewise.
2649 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M33 to the list of
2650 valid -mcpu options.
2651 * doc/invoke.texi (ARM Options): Document new Cortex-M33 processor.
2652
2653 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
2654
2655 * config/arm/arm-arches.def (armv8-m.base): Set Cortex-M23 as
2656 representative core for this architecture.
2657 * config/arm/arm-cores.def (cortex-m23): Define new processor.
2658 * config/arm/arm-tables.opt: Regenerate.
2659 * config/arm/arm-tune.md: Likewise.
2660 * config/arm/arm.c (arm_v6m_tune): Add Cortex-M23 to the list of cores
2661 this tuning parameters apply to in the comment.
2662 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M23 to the list of
2663 valid -mcpu options.
2664 * doc/invoke.texi (ARM Options): Document new Cortex-M23 processor.
2665
2666 2016-11-04 Bin Cheng <bin.cheng@arm.com>
2667
2668 * fold-const.c (fold_cond_expr_with_comparison): Remove call
2669 to pedantic_non_lvalue_loc. Remove useless code for lvalue
2670 where cond_expr can't be a lvalue.
2671
2672 2016-11-04 Claudiu Zissulescu <claziss@synopsys.com>
2673
2674 * config/arc/arc.c (arc_process_double_reg_moves): Use
2675 gen_dexcl_2op call.
2676 * config/arc/arc.md (movsi_insn): Disable unsupported move
2677 instructions for ARCv2 cores.
2678 (movdi): Use prepare_move_operands.
2679 (movsf, movdf): Use move_dest_operand predicate.
2680 * config/arc/constraints.md (Chs): Enable when barrel shifter is
2681 present.
2682 * config/arc/fpu.md (divsf3): Change to divsf3_fpu.
2683 * config/arc/fpx.md (dexcl_3op_peep2_insn): Dx data register is
2684 also a destination.
2685 (dexcl_3op_peep2_insn_nores): Likewise.
2686 * config/arc/arc.h (SHIFT_COUNT_TRUNCATED): Define to one.
2687 (LINK_COMMAND_SPEC): Remove.
2688
2689 2016-11-04 Richard Biener <rguenther@suse.de>
2690
2691 PR middle-end/78185
2692 * loop-invariant.c (find_exits): Record entering inner
2693 loops as possibly exiting to handle infinite sub-loops.
2694 * tree-ssa-loop-im.c: Include tree-ssa-loop-niter.h.
2695 (fill_always_executed_in_1): Honor infinite child loops.
2696
2697 2016-11-03 Michael Meissner <meissner@linux.vnet.ibm.com>
2698
2699 PR target/78192
2700 * config/rs6000/vsx.md (vsx_extract_<mode>_di): The element number
2701 has already been adjusted for endianness, so don't adjust it any
2702 further.
2703
2704 PR target/77993
2705 * config/rs6000/rs6000.h (FLOAT128_IBM_P): Do not allow IFmode or
2706 ICmode unless we have standard PowerPC floating point.
2707 * config/rs6000/rs6000.md (FP iterator): Likewise.
2708 (FMOVE128 iterator): Likewise.
2709
2710 2016-11-03 Jakub Jelinek <jakub@redhat.com>
2711 Alexandre Oliva <aoliva@redhat.com>
2712 Jason Merrill <jason@redhat.com>
2713
2714 PR debug/28767
2715 PR debug/56974
2716 * langhooks.h (struct lang_hooks_for_types): Add type_dwarf_attribute
2717 langhook.
2718 * langhooks.c (lhd_type_dwarf_attribute): New function.
2719 * langhooks-def.h (lhd_type_dwarf_attribute): Declare.
2720 (LANG_HOOKS_TYPE_DWARF_ATTRIBUTE): Define.
2721 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add
2722 LANG_HOOKS_TYPE_DWARF_ATTRIBUTE.
2723 (check_qualified_type, check_aligned_type): Call it.
2724 * dwarf2out.c (modified_type_die): Don't use type_main_variant
2725 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
2726 check_base_type and check_lang_type.
2727 (gen_ptr_to_mbr_type_die): If lookup_type_die is already non-NULL,
2728 return early. For pointer-to-data-member add DW_AT_use_location
2729 attribute.
2730 (gen_subroutine_type_die): Add DW_AT_{,rvalue_}reference attribute
2731 if needed.
2732 (gen_type_die_with_usage): Don't use type_main_variant
2733 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
2734 check_base_type and check_lang_type. Formatting fixes. Call
2735 get_debug_type langhook.
2736
2737 2016-11-03 Jason Merrill <jason@redhat.com>
2738
2739 * tree.c (check_lang_type): New.
2740 (check_qualified_type): Use it.
2741 (check_aligned_type): Use it.
2742 * tree.h: Declare it.
2743
2744 2016-11-03 Richard Earnshaw <rearnsha@arm.com>
2745
2746 * config.gcc (arm-wrs-vxworks): Set target_cpu_cname.
2747 (arm*-freebsd*): Likewise.
2748 (arm*-*-netbsdelf*): Likewise.
2749 (arm*-*-linux*): Likewise.
2750 (arm*-*-uclinux*eabi*): Likewise.
2751 (arm*-*-phoenix*): Likewise.
2752 (arm*-*-eabi*, arm*-*-symbianelf*, arm*-*-rtems*): Likewise.
2753 (arm*-*-*): Don't clobber target_cpu_cname when --with-cpu is not
2754 specified. Default to arm6 if target_cpu_cname is not set.
2755 * arm/arm.c (arm_option_override): Simplify logic. Assert that the
2756 default cpu has been correctly configured.
2757 * arm/arm.h (TARGET_CPU_DEFAULT): Delete.
2758 (target_cpus): Delete TARGET_CPU_generic, add TARGET_CPU_num_cores.
2759 * arm/freebsd.h (SUBTARGET_CPU_DEFAULT): Delete.
2760 * arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Delete.
2761 * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
2762 * arm/symbian.h (SUBTARGET_CPU_DEFAULT): Delete.
2763 * arm/unknown-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
2764
2765 2016-11-03 Jiong Wang <jiong.wang@arm.com>
2766
2767 * reg-notes.def (CFA_VAL_EXPRESSION): New entry.
2768 * dwarf2cfi.c (dwarf2out_frame_debug_cfa_val_expression): New function.
2769 (dwarf2out_frame_debug): Support REG_CFA_VAL_EXPRESSION.
2770 (output_cfa_loc): Support DW_CFA_val_expression.
2771 (output_cfa_loc_raw): Likewise.
2772 (output_cfi): Likewise.
2773 (output_cfi_directive): Likewise.
2774 * dwarf2out.c (dw_cfi_oprnd1_desc): Support DW_CFA_val_expression.
2775 (dw_cfi_oprnd2_desc): Likewise.
2776 (mem_loc_descriptor): Recognize new pattern generated for value
2777 expression.
2778
2779 2016-11-03 Segher Boessenkool <segher@kernel.crashing.org>
2780
2781 PR rtl-optimization/78186
2782 * combine.c (change_zero_ext): Mask the RHS of a zero_extract as
2783 well, when converting to IOR.
2784
2785 2016-11-03 Eric Botcazou <ebotcazou@adacore.com>
2786
2787 * config/sparc/sparc.md (vec_interleave_lowv8qi): Delete.
2788 (vec_interleave_highv8qi): Likewise.
2789
2790 2016-11-03 Martin Liska <mliska@suse.cz>
2791
2792 * profile.c (instrument_values): Fix coding style.
2793 (branch_prob): Use renamed function.
2794 * tree-profile.c (init_ic_make_global_vars): Likewise.
2795 (gimple_init_edge_profiler): Rename to
2796 gimple_init_gcov_profiler.
2797 tree_time_profiler_counter variable declaration.
2798 (gimple_gen_time_profiler): Rewrite to do a direct gimple code
2799 emission.
2800 * value-prof.h: Remove an argument.
2801
2802 2016-11-03 Richard Biener <rguenther@suse.de>
2803
2804 * config/rs6000/rs6000.c (rs6000_xcoff_declare_object_name): Use
2805 symtab_node::get_create.
2806
2807 2016-11-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2808
2809 * rtlanal.c (nonzero_bits1): Fix WORD_REGISTER_OPERATIONS condition.
2810 Move comments into more natural position.
2811
2812 2016-11-03 Vineet Gupta <vgupta@synopsys.com>
2813
2814 * config/arc/arc.h (SIZE_TYPE): Define as unsigned int.
2815 (PTRDIFF_TYPE): Define as int.
2816
2817 2016-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2818
2819 * ccmp.c (expand_ccmp_expr_1): Adjust.
2820 (expand_ccmp_expr): Likewise.
2821 (expand_ccmp_next): Likewise.
2822 * config/aarch64/aarch64.c (aarch64_gen_ccmp_next): Likewise.
2823 (aarch64_gen_ccmp_first): Likewise.
2824 * doc/tm.texi: Regenerate.
2825 * target.def (gen_ccmp_first): Change argument types to rtx_insn *.
2826 (gen_ccmp_next): Likewise.
2827
2828 2016-11-03 Bin Cheng <bin.cheng@arm.com>
2829
2830 * tree-vect-loop.c (destroy_loop_vec_info): Handle cond_expr.
2831 (vect_is_simple_reduction): Swap cond_reduction by inversion.
2832
2833 2016-11-02 Uros Bizjak <ubizjak@gmail.com>
2834
2835 * config/i386/i386.c (ix86_init_libfuncs): New. Call
2836 darwin_rename_builtins here.
2837 (ix86_expand_divmod_libfunc): New.
2838 (TARGET_INIT_LIBFUNCS): Unconditionally define to ix86_init_libfuncs.
2839 (TARGET_EXPAND_DIVMOD_LIBFUNC): Define.
2840
2841 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
2842 Nathan Sidwell <nathan@acm.org>
2843
2844 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): Set to zero.
2845
2846 2016-11-02 Max Filippov <jcmvbkbc@gmail.com>
2847
2848 * config/xtensa/xtensa.c (xtensa_output_integer_literal_parts):
2849 New function.
2850 (xtensa_output_literal): Use xtensa_output_integer_literal_parts
2851 to format MODE_INT and MODE_PARTIAL_INT literals.
2852
2853 2016-11-02 Segher Boessenkool <segher@kernel.crashing.org>
2854
2855 PR target/78168
2856 * config/r6000/rs6000.c (rs6000_get_separate_components): Return
2857 NULL if TARGET_SPE_ABI.
2858
2859 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2860
2861 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Don't forget to
2862 clear padding bits even when they're less than a byte.
2863
2864 2016-11-02 Richard Biener <rguenther@suse.de>
2865
2866 * gimple-ssa-store-merging.c: Include gimplify-me.h.
2867 (imm_store_chain_info::output_merged_stores): Force base_addr
2868 to be proper GIMPLE for a MEM_REF address.
2869 (pass_store_merging::execute): Restrict negative bitpos
2870 handling to non-MEM_REF bases. Remove TREE_THIS_VOLATILE
2871 check. Take into account non-NULL_TREE offset if the base
2872 is already addressable.
2873
2874 2016-11-26 Wilco Dijkstra <wdijkstr@arm.com>
2875
2876 * config/aarch64/aarch64-simd.md (aarch64_crypto_sha1hv4si):
2877 New pattern.
2878 (aarch64_be_crypto_sha1hv4si): New pattern.
2879
2880 2016-11-02 Wilco Dijkstra <wdijkstr@arm.com>
2881
2882 * config/aarch64/aarch64.md (add<mode>3): Remove
2883 redundant code. Don't split frame based additions.
2884
2885 2016-11-02 Richard Biener <rguenther@suse.de>
2886
2887 * gimple-ssa-store-merging.c (struct store_immediate_info): Remove
2888 redundant val and dest members.
2889 (store_immediate_info::store_immediate_info): Adjust.
2890 (merged_store_group::merged_store_group): Adjust.
2891 (merged_store_group::apply_stores): Likewise.
2892 (struct imm_store_chain_info): Add base_addr field.
2893 (imm_store_chain_info::imm_store_chain_info): New constructor.
2894 (imm_store_chain_info::terminate_and_process_chain): Do not pass base.
2895 (imm_store_chain_info::output_merged_store): Likewise. Use
2896 addr_base which is already the address.
2897 (imm_store_chain_info::output_merged_stores): Likewise.
2898 (pass_tree_store_merging::terminate_all_aliasing_chains): Take
2899 imm_store_chain_info instead of base. Fix alias check.
2900 (pass_tree_store_merging::terminate_and_release_chain): Likewise.
2901 (imm_store_chain_info::coalesce_immediate_stores): Adjust.
2902 (pass_store_merging::execute): Refuse to operate on TARGET_MEM_REF.
2903 use the address of the base and adjust for other changes.
2904
2905 2016-11-02 Martin Liska <mliska@suse.cz>
2906
2907 * fold-const-call.c (host_size_t_cst_p): Test whether
2908 t is convertible to size_t.
2909
2910 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2911
2912 PR tree-optimization/78170
2913 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Truncate padding
2914 introduced by native_encode_expr on little-endian as well.
2915
2916 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2917
2918 PR tree-optimization/78162
2919 * gimple-ssa-store-merging.c (execute): Mark stores with bitpos < 0
2920 as invalid.
2921
2922 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2923
2924 * config/aarch64/aarch64.c (aarch64_register_saved_on_entry): Add
2925 function comment.
2926 (aarch64_next_callee_save): Likewise.
2927 (aarch64_pushwb_single_reg): Likewise.
2928 (aarch64_gen_storewb_pair): Likewise.
2929 (aarch64_push_regs): Likewise.
2930 (aarch64_gen_loadwb_pair): Likewise.
2931 (aarch64_pop_regs): Likewise.
2932 (aarch64_gen_store_pair): Likewise.
2933 (aarch64_gen_load_pair): Likewise.
2934 (aarch64_save_callee_saves): Likewise.
2935 (aarch64_restore_callee_saves): Likewise.
2936
2937 2016-11-02 Richard Biener <rguenther@suse.de>
2938
2939 PR tree-optimization/78035
2940 PR tree-optimization/77964
2941 * gimple-pretty-print.c (pp_points_to_solution): Print
2942 vars_contains_interposable.
2943 * tree-ssa-alias.c: Include varasm.h.
2944 (ptrs_compare_unequal): Check vars_contains_interposable and
2945 decl_binds_to_current_def_p.
2946 (dump_points_to_solution): Dump vars_contains_interposable.
2947 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_interposable
2948 flag.
2949 * tree-ssa-structalias.c: Include varasm.h.
2950 (set_uids_in_ptset): Record whether vars contains a
2951 not decl_binds_to_current_def_p variable in vars_contains_interposable.
2952 (ipa_escaped_pt): Update initializer.
2953
2954 2016-11-02 Richard Biener <rguenther@suse.de>
2955
2956 PR tree-optimization/78047
2957 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Initialize
2958 fake field at offset zero conservatively regarding to may_have_pointers.
2959
2960 2016-11-02 Richard Biener <rguenther@suse.de>
2961
2962 * tree-vrp.c (evrp_dom_walker::before_dom_children): Call
2963 infer_value_range on stmt ops and update value-ranges.
2964 Dump visited stmts and blocks.
2965 (evrp_dom_walker::push_value_range): Dump changes.
2966 (evrp_dom_walker::pop_value_range): Likewise.
2967 (evrp_dom_walker::try_find_new_range): Avoid noop changes.
2968
2969 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2970
2971 * emit-rtl.c (prev_nonnote_insn_bb): Change argument type to
2972 rtx_insn *.
2973 * rtl.h (prev_nonnote_insn_bb): Adjust prototype.
2974
2975 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2976
2977 * cfgrtl.c (delete_insn_chain): Change argument type to rtx_insn *
2978 and adjust for that.
2979 * cfgrtl.h (delete_insn_chain): Adjust prototype.
2980
2981 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2982
2983 * config/rl78/rl78.c (gen-and_emit_move): Change argument type
2984 to rtx_insn *.
2985 (transcode_memory_rtx): Likewise.
2986 (move_to_acc): Likewise.
2987 (move_from_acc): Likewise.
2988 (move_acc_to_reg): Likewise.
2989 (move_to_x): Likewise.
2990 (move_to_hl): Likewise.
2991 (move_to_de): Likewise.
2992 * config/rs6000/rs6000.c (emit_frame_save): Likewise.
2993 (rs6000_emit_savres_rtx): Likewise.
2994 (rs6000_emit_prologue): Likewise.
2995 * reorg.c (update_reg_unused_notes): Likewise.
2996 * rtl.h (remove_note): Adjust prototype.
2997 * rtlanal.c (remove_note): Make argument type rtx_insn *.
2998
2999 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3000
3001 * config/alpha/alpha.c (alpha_legitimize_address_1): Split up
3002 variables so some can be rtx_insn *.
3003 (alpha_emit_xfloating_libcall): Likewise.
3004 * config/mips/mips.c (mips_call_tls_get_addr): Likewise.
3005 (mips_legitimize_tls_address): Likewise.
3006 * optabs.c (expand_binop): Likewise.
3007 * reload1.c (gen_reload): Likewise.
3008
3009 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3010
3011 * reorg.c (relax_delay_slots): Split up the trial variable.
3012
3013 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3014
3015 * config/arc/arc.c (arc_emit_call_tls_get_addr): Make the type
3016 of variables rtx_insn *.
3017 * config/arm/arm.c (arm_call_tls_get_addr): Likewise.
3018 (legitimize_tls_address): Likewise.
3019 * config/bfin/bfin.c (hwloop_optimize): Likewise.
3020 (bfin_gen_bundles): Likewise.
3021 * config/c6x/c6x.c (reorg_split_calls): Likewise.
3022 (c6x_reorg): Likewise.
3023 * config/frv/frv.c (frv_reorder_packet): Likewise.
3024 * config/i386/i386.c (ix86_split_idivmod): Likewise.
3025 * config/ia64/ia64.c (ia64_expand_compare): Likewise.
3026 * config/m32c/m32c.c (m32c_prepare_shift): Likewise.
3027 * config/mn10300/mn10300.c: Likewise.
3028 * config/rl78/rl78.c: Likewise.
3029 * config/s390/s390.c (s390_fix_long_loop_prediction): Likewise.
3030 * config/sh/sh-mem.cc (sh_expand_cmpstr): Likewise.
3031 (sh_expand_cmpnstr): Likewise.
3032 (sh_expand_strlen): Likewise.
3033 (sh_expand_setmem): Likewise.
3034 * config/sh/sh.md: Likewise.
3035 * emit-rtl.c (emit_pattern_before): Likewise.
3036 * except.c: Likewise.
3037 * final.c: Likewise.
3038 * jump.c: Likewise.
3039
3040 2016-11-01 Jason Merrill <jason@redhat.com>
3041
3042 * tree-inline.c (copy_tree_body_r): Only copy the taken branch of
3043 a COND_EXPR with constant condition.
3044
3045 2016-11-01 Jakub Jelinek <jakub@redhat.com>
3046
3047 * dwarf2out.c (gen_variable_die): Remove again origin_die variable
3048 and its initialization.
3049
3050 2016-11-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3051
3052 * dwarf2out.c (output_rnglists): Wrap basebuf, len in
3053 HAVE_AS_LEB128.
3054
3055 2016-11-01 Jakub Jelinek <jakub@redhat.com>
3056
3057 * dwarf2out.c (add_name_and_src_coords_attributes): Add NO_LINKAGE_NAME
3058 argument, don't call add_linkage_name if it is true.
3059 (gen_variable_die): For C++ inline static data members, consider the
3060 initial call when old_die is NULL to be declaration and call
3061 add_name_and_src_coords_attributes in that case with true as
3062 NO_LINKAGE_NAME. Add DW_AT_inline attribute if needed.
3063 (gen_member_die): For C++ inline static data members, emit a
3064 definition DIE right away in DW_TAG_compile_unit context.
3065
3066 2016-11-01 John David Anglin <danglin@gcc.gnu.org>
3067
3068 PR target/78166
3069 * config/pa/pa.md: Add new shift/add patterns to handle
3070 (plus (mult (reg) (mem_shadd_operand)) (reg)) source operand.
3071
3072 2016-11-01 Max Filippov <jcmvbkbc@gmail.com>
3073
3074 * config/xtensa/xtensa-protos.h
3075 (xtensa_use_return_instruction_p): New prototype.
3076 * config/xtensa/xtensa.c (xtensa_current_frame_size,
3077 xtensa_callee_save_size): Remove.
3078 (struct machine_function): Add new fields: current_frame_size,
3079 callee_save_size, frame_laid_out and epilogue_done.
3080 (compute_frame_size, xtensa_expand_prologue,
3081 xtensa_expand_epilogue): Replace xtensa_callee_save_size with
3082 cfun->machine->callee_save_size and xtensa_current_frame_size
3083 with cfun->machine->current_frame_size.
3084 (compute_frame_size): Update cfun->machine->frame_laid_out and
3085 don't update frame layout after reload completion.
3086 (xtensa_expand_epilogue): Set cfun->machine->epilogue_done
3087 instead of zeroing xtensa_current_frame_size.
3088 (xtensa_use_return_instruction_p): New function.
3089 * config/xtensa/xtensa.h (xtensa_current_frame_size): Remove
3090 declaration.
3091 (INITIAL_ELIMINATION_OFFSET): Use return value of
3092 compute_frame_size instead of xtensa_current_frame_size value.
3093 * config/xtensa/xtensa.md ("return" pattern): Use new predicate
3094 function xtensa_use_return_instruction_p instead of inline code.
3095
3096 2016-11-01 Jakub Jelinek <jakub@redhat.com>
3097
3098 * tree.h (BLOCK_IN_COLD_SECTION_P): Define.
3099 * final.c (final_scan_insn): Set BLOCK_IN_COLD_SECTION_P.
3100 * dwarf2out.c (rnglist_idx): New variable.
3101 (struct dw_ranges): Add label, idx and maybe_new_sec fields.
3102 (DEBUG_RNGLISTS_SECTION): Define.
3103 (ranges_base_label): New variable.
3104 (size_of_die) <case dw_val_class_range_list>: If using
3105 DW_FORM_rnglistx, count size of uleb128 of range list index.
3106 (value_format) <case dw_val_class_range_list>: For
3107 -gdwarf-5 -gsplit-dwarf return DW_FORM_rnglistx.
3108 (output_range_list_offset): Handle -gdwarf-5 .debug_rnglists
3109 offsets. Multiply dwarf < 5 offsets by 2 * DWARF_ADDR_SIZE.
3110 (add_ranges_num): Remove useless prototype. Don't multiply
3111 by 2 * DWARF2_ADDR_SIZE. Add maybe_new_sec argument, adjust
3112 for new fields added to dw_ranges struct.
3113 (add_ranges): Add maybe_new_sec argument and pass it
3114 through to add_ranges_num.
3115 (note_rnglist_head): New function.
3116 (add_ranges_by_labels): Pass true as maybe_new_sec to
3117 add_ranges_num, call note_rnglist_head on the head of the list.
3118 (output_ranges): Add function comment. Switch to
3119 .debug_ranges section here and emit .Ldebug_ranges0 label.
3120 (index_rnglists, output_rnglists): New functions.
3121 (gen_subprogram_die): Formatting fixes.
3122 (add_high_low_attributes): Don't divide offsets
3123 by 2 * DWARF2_ADDR_SIZE. Call note_rnglist_head on the
3124 first list element or when pointing into the middle of
3125 a list. Pass true as second argument to add_ranges on the
3126 first block fragment after cold/hot section switch.
3127 (init_sections_and_labels): For -gdwarf-5 use .debug_rnglists
3128 section instead of .debug_ranges. Initialize
3129 ranges_base_label if -gdwarf-5 -gsplit-dwarf.
3130 (dwarf2out_finish): For -gdwarf-5 -gsplit-dwarf call
3131 index_rnglists and add DW_AT_rnglists_base attr. Don't switch
3132 to dwarf_ranges_section here or emit .Ldebug_ranges0 label.
3133 Call output_rnglists for -gdwarf-5.
3134 (dwarf2out_c_finalize): Clear rnglist_idx.
3135
3136 2016-11-01 Fritz Reese <fritzoreese@gmail.com>
3137
3138 * combine.c (simplify_compare_const): Add gcc_fallthrough.
3139
3140 2016-11-01 Bilyan Borisov <bilyan.borisov@arm.com>
3141 Tamar Christina <tamar.christina@arm.com>
3142
3143 * config/arm/arm-c.c (arm_cpu_builtins): New macro definition.
3144 * config/arm/arm_neon.h (vmaxnm_f32): New intrinsinc.
3145 (vmaxnmq_f32): Likewise.
3146 (vminnm_f32): Likewise.
3147 (vminnmq_f32): Likewise.
3148 * config/arm/arm_neon_builtins.def (vmaxnm): New builtin.
3149 (vminnm): Likewise.
3150 * config/arm/neon.md (neon_<fmaxmin_op><mode>, VCVTF): New
3151 expander.
3152
3153 2016-10-31 Michael Meissner <meissner@linux.vnet.ibm.com>
3154
3155 * config/rs6000/vsx.md (VSX_EXTRACT_FL): New iterator for all
3156 binary floating point types supported by the hardware except for
3157 double.
3158 (vsx_xvcvsxwdp_df): Provide scalar result alternative to the
3159 vector instruction for optimizing extracting a SImode from a
3160 V4SImode vector and converting it to floating point.
3161 (vsx_xvcvuxwdp_df): Likewise.
3162 (vsx_extract_si): On ISA 3.0, allow extract target and temporary
3163 registers to be any VSX register. Move stores to the end of the
3164 constraints.
3165 (vsx_extract_si_<uns>float_df): New combiner pattern and splitter
3166 to optimize extracting a SImode from a V4SImode vector and
3167 converting it to a binary floating point type supported by the
3168 hardware. Use the vector converts instead of extracting the
3169 element, sign extending it, and then converting it to double.
3170 Other floating point types than double first convert to double,
3171 then the double is converted to that type.
3172 (vsx_extract_si_<uns>float_<mode>): Likewise.
3173
3174 2016-10-31 Andrew Pinski <apinski@cavium.com>
3175
3176 * config/aarch64/driver-aarch64.c (host_detect_local_cpu):
3177 Rewrite handling of part num to handle the case where
3178 multiple implementers share the same part num.
3179
3180 2016-10-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3181 Jakub Jelinek <jakub@redhat.com>
3182
3183 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): Adjust for -gdwarf-5.
3184 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Likewise.
3185
3186 2016-10-31 Jakub Jelinek <jakub@redhat.com>
3187
3188 * dwarf2out.c (dwarf_AT): Handle DW_AT_dwo_name.
3189 (use_debug_types): Adjust comment for DWARF5 DW_UT_type units.
3190 (new_die): Handle DW_TAG_skeleton_unit like DW_TAG_compile_unit.
3191 (is_cu_die, is_unit_die): Likewise.
3192 (should_move_die_to_comdat, break_out_comdat_types): Adjust
3193 comments for DWARF5 DW_UT_type units.
3194 (output_compilation_unit_header): Add UT argument, output
3195 start of DWARF5 .debug_info section header.
3196 (output_comp_unit): Add dwo_id argument. Adjust
3197 output_compilation_unit_header caller, for DW_UT_split_compile
3198 emit dwo_id field, otherwise padding1. Emit padding2 field.
3199 (add_top_level_skeleton_die_attrs): Add DW_AT_dwo_name
3200 rather than DW_AT_GNU_dwo_name attr for -gdwarf-5.
3201 (output_skeleton_debug_sections): Add dwo_id argument, for
3202 -gdwarf-5 emit DWARF 5 DW_UT_skeleton header.
3203 (output_comdat_type_unit): For -gdwarf-5 emit .debug_info
3204 DW_UT_type or DW_UT_split_type units rather than .debug_types.
3205 (dwarf2out_finish): Use DW_TAG_skeleton_unit rather than
3206 DW_TAG_compile_unit for skeleton unit die. Don't add
3207 DW_AT_GNU_dwo_id attributes for -gdwarf-5, instead pass checksum
3208 address to output_comp_unit and output_skeleton_debug_sections.
3209
3210 * dwarf2out.c (debug_line_str_section): New variable.
3211 (debug_line_str_hash): Likewise.
3212 (DEBUG_LINE_STR_SECTION): Define.
3213 (set_indirect_string): Handle DW_FORM_line_strp like
3214 DW_FORM_strp.
3215 (find_string_form): Fix up formatting.
3216 (size_of_die): Handle DW_FORM_line_strp like DW_FORM_strp.
3217 Fix up indentation.
3218 (output_die): Handle DW_FORM_line_strp.
3219 (DWARF5_USE_DEBUG_LINE_STR): Define.
3220 (output_line_string): New function.
3221 (output_file_names): Add -gdwarf-5 support.
3222 (output_line_info): Likewise.
3223 (init_sections_and_labels): Initialize debug_line_str_section.
3224 (output_indirect_string): Change 2nd argument from void *
3225 to enum dwarf_form form, compare with form rather than
3226 DW_FORM_strp.
3227 (output_indirect_strings): Pass DW_FORM_strp to
3228 output_indirect_string traversion.
3229 (dwarf2out_finish): Output .debug_line_str strings.
3230 (dwarf2out_c_finalize): Clear debug_line_str_section and
3231 debug_line_str_hash.
3232
3233 2016-10-31 Tom Tromey <tom@tromey.com>
3234
3235 PR debug/77315
3236 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_form_tls_address.
3237 (resolve_args_picking_1): Move DW_OP_form_tls_address case next to
3238 DW_OP_GNU_push_tls_address case.
3239 (loc_list_from_tree_1): Use DW_OP_form_tls_address.
3240
3241 2016-10-31 Jakub Jelinek <jakub@redhat.com>
3242
3243 * dwarf2out.h (struct dw_loc_descr_node): Adjust comment
3244 for frame_offset_rel bit.
3245 (struct array_descr_info): Add rank field.
3246 * dwarf2out.c (struct loc_descr_context): Add placeholder_arg
3247 and placeholder_seen fields.
3248 (resolve_args_picking_1): Handle also frame_offset_rel DW_OP_dup
3249 and DW_OP_over. Optimize DW_OP_pick 0 into DW_OP_dup and
3250 DW_OP_pick 1 into DW_OP_over.
3251 (function_to_dwarf_procedure, type_byte_size, field_byte_offset,
3252 gen_variant_part): Clear placeholder_{arg,seen}.
3253 (loc_list_from_tree_1): Drop const from context argument.
3254 Handle integral PLACEHOLDER_EXPR if context->placeholder_arg.
3255 (loc_list_for_address_of_addr_expr_of_indirect_ref,
3256 loc_list_from_tree, loc_descriptor_from_tree): Drop const from
3257 context argument.
3258 (add_scalar_info): Drop const from context argument. Handle
3259 context->placeholder_arg.
3260 (add_bound_info): Drop const from context argument.
3261 (gen_descr_array_type_die): Drop const from ctx variable.
3262 Initialize placeholder_arg and placeholder_seen. Add DW_AT_rank
3263 attribute and use a single DW_TAG_generic_subrange instead of
3264 7 DW_TAG_subrange_type for assumed rank arrays.
3265
3266 * dwarf2out.h (enum dw_val_class): Add dw_val_class_loclistsptr.
3267 * dwarf2out.c (struct dw_loc_list_struct): Change emitted field
3268 from bool to 1-bit uchar bitfield. Add num_assigned and
3269 offset_emitted bitfields.
3270 (dw_val_equal_p): Compare v.val_lbl_id rather than v.val_unsigned
3271 for dw_val_class_lineptr and dw_val_class_macptr. Handle
3272 dw_val_class_loclistsptr.
3273 (new_addr_loc_descr): Fix up formatting.
3274 (DEBUG_LOCLISTS_SECTION, DEBUG_DWO_LOCLISTS_SECTION): Define.
3275 (add_AT_low_high_pc): Fix up formatting.
3276 (add_AT_loclistsptr): New function.
3277 (AT_lbl): Allow dw_val_class_loclistsptr.
3278 (print_dw_val, attr_checksum, attr_checksum_ordered, same_dw_val_p):
3279 Handle dw_val_class_loclistsptr.
3280 (loc_list_idx): New variable.
3281 (output_loclists_offsets, assign_location_list_indexes): New
3282 functions.
3283 (size_of_die): For dw_val_class_loc_list -gsplit-dwarf -gdwarf-5
3284 add size_of_uleb128 of the index. Drop never used
3285 dwarf_split_debug_info AT_index handling. Handle
3286 dw_val_class_loclistsptr.
3287 (value_format): Return DW_FORM_loclistsx for dw_val_class_loc_list
3288 if -gsplit-dwarf -gdwarf-5. Handle dw_val_class_loclistsptr.
3289 (output_loc_list): Handle DWARF 5 .debug_loclists* format.
3290 (output_loc_list_offset): Handle -gsplit-dwarf -gdwarf-5
3291 DW_FORM_loclistx indexes.
3292 (output_attr_index_or_value): Fix up formatting. Don't handle
3293 dw_val_class_loc_list here.
3294 (output_die): Formatting fixes. Handle dw_val_class_loclistsptr.
3295 For dw_val_class_loc_list call output_loc_list_offset rather than
3296 output_attr_index_or_value.
3297 (init_sections_and_labels): For -gdwarf-5 use .debug_loclists
3298 or .debug_loclists.dwo section name for debug_loc_section.
3299 (resolve_addr_in_expr): Formatting fix.
3300 (index_location_lists): Likewise.
3301 (dwarf2out_finish): If there are any location lists, for
3302 -gsplit-dwarf -gdwarf-5 add DW_AT_loclists_base attribute. Call
3303 index_location_lists only if have_location_lists. Call
3304 assign_location_list_indexes for -gsplit-dwarf -gdwarf-5. Emit
3305 .debug_loclists{,.dwo} section header for -gdwarf-5, for -gdwarf-5
3306 -gsplit-dwarf also emit offset table.
3307
3308 * dwarf2out.c (DWARF_LARGEST_DATA_FORM_BITS): Define.
3309 (size_of_die, value_format, output_die): Use
3310 DW_FORM_data16 for 128-bit dw_val_class_const_double or
3311 dw_val_class_wide_int.
3312
3313 * dwarf2out.c (dwarf_op): Renamed to ...
3314 (dwarf_OP): ... this.
3315 (convert_descriptor_to_mode, scompare_loc_descriptor,
3316 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
3317 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr): Adjust
3318 callers.
3319 (dwarf_AT, dwarf_TAG): New functions.
3320 (check_die): Disallow DW_AT_call_all_calls next to
3321 DW_AT_GNU_all_call_sites.
3322 (gen_call_site_die): Use dwarf_TAG and dwarf_AT with DWARF 5 tag
3323 and attributes instead of the corresponding GNU tag and attributes.
3324 (gen_subprogram_die): Likewise. Emit call site information even
3325 for -gdwarf-5 -gstrict-dwarf. Replace DW_AT_GNU_defaulted with
3326 DW_AT_defaulted in comment.
3327 (resolve_addr): Handle DW_AT_call_origin attribute on
3328 DW_TAG_call_site DIE like DW_AT_abstract_origin on
3329 DW_TAG_GNU_call_site DIE.
3330
3331 * dwarf2out.c (dwarf_op): New function.
3332 (size_of_loc_descr): Handle DW_OP_{implicit_pointer,entry_value},
3333 DW_OP_{const,regval,deref}_type and DW_OP_{convert,reinterpret}.
3334 (output_loc_operands, output_loc_operands_raw): Likewise.
3335 (resolve_args_picking_1, prune_unused_types_walk_loc_descr,
3336 mark_base_types, hash_loc_operands, compare_loc_operands): Likewise.
3337 (resolve_addr_in_expr): Likewise. Only punt for !dwarf_strict
3338 if dwarf_version < 5.
3339 (convert_descriptor_to_mode): Use dwarf_op (DW_OP_xxx) instead of
3340 DW_OP_GNU_xxx.
3341 (scompare_loc_descriptor, ucompare_loc_descriptor,
3342 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
3343 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr,
3344 optimize_location_into_implicit_ptr): Likewise. Only punt for
3345 !dwarf_strict if dwarf_version < 5.
3346 (string_cst_pool_decl): Adjust comment.
3347 (non_dwarf_expression): Handle DW_OP_implicit_pointer.
3348
3349 * dwarf2out.h (enum dw_val_class): Add dw_val_class_const_implicit,
3350 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
3351 (struct dw_val_node): Add val_file_implicit field.
3352 * dwarf2out.c (dw_val_equal_p, print_dw_val, attr_checksum,
3353 attr_checksum_ordered, same_dw_val_p, size_of_die, value_format,
3354 output_die): Handle dw_val_class_const_implicit,
3355 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
3356 (abbrev_die_table): Change into va_gc vec.
3357 (abbrev_die_table_allocated, abbrev_die_table_in_use,
3358 ABBREV_DIE_TABLE_INCREMENT): Remove.
3359 (AT_int, AT_unsigned, AT_file): Allow dw_val_class_*_implicit.
3360 (abbrev_opt_start, abbrev_usage_count, sorted_abbrev_dies): New
3361 variables.
3362 (build_abbrev_table): Adjust for abbrev_die_table being a va_gc vec.
3363 If abbrev_opt_start, fill in abbrev_usage_count and abbrev_dies
3364 vectors.
3365 (die_abbrev_cmp, optimize_implicit_const, optimize_abbrev_table): New
3366 functions.
3367 (output_die_abbrevs): For DW_FORM_implicit_const emit sleb128 with
3368 the implicit value.
3369 (output_abbrev_section): Adjust for abbrev_die_table being a va_gc
3370 vec.
3371 (output_comp_unit): Initialize abbrev_opt_start if emitting the main
3372 unit. Call optimize_abbrev_table.
3373 (dwarf2out_init, dwarf2out_finish, dwarf2out_c_finalize): Adjust for
3374 abbrev_die_table being a va_gc vec.
3375
3376 PR tree-optimization/77860
3377 * tree-ssa-reassoc.c (eliminate_using_constants): Handle
3378 also integral complex and vector constants.
3379
3380 * dwarf2out.c (dwarf2out_define, dwarf2out_undef, output_macinfo_op,
3381 optimize_macinfo_range, save_macinfo_strings): Replace
3382 DW_MACRO_GNU_* constants with corresponding DW_MACRO_* constants.
3383 (output_macinfo): Likewise. Emit .debug_macro* rather than
3384 .debug_macinfo* even for -gstrict-dwarf -gdwarf-5.
3385 (init_sections_and_labels): Use .debug_macro* labels rather than
3386 .debug_macinfo* labels even for -gstrict-dwarf -gdwarf-5.
3387 (dwarf2out_finish): Use DW_AT_macros instead of DW_AT_macro_info
3388 or DW_AT_GNU_macros for -gdwarf-5.
3389
3390 2016-10-31 Waldemar Brodkorb <wbx@openadk.org>
3391
3392 * config/microblaze/linux.h (UCLIBC_DYNAMIC_LINKER): Define.
3393
3394 2016-09-11 Le-Chun Wu <lcwu@google.com>
3395 Mark Wielaard <mjw@redhat.com>
3396
3397 * common.opt (Wshadow=global): New option. Default for -Wshadow.
3398 (Wshadow=local): New option.
3399 (Wshadow-local): Hidden alias for -Wshadow=local.
3400 (Wshadow=compatible-local): New option.
3401 (Wshadow-compatible-local): Hidden alias for
3402 -Wshadow=compatible-local.
3403 * doc/invoke.texi: Document Wshadow=global, Wshadow=local and
3404 Wshadow=compatible-local.
3405
3406 2016-10-31 Bin Cheng <bin.cheng@arm.com>
3407
3408 * tree-vect-slp.c (vect_get_and_check_slp_defs): New parameter SWAP.
3409 Check slp defs for COND_EXPR by swapping/inverting operands if the
3410 new parameter SWAP indicates so.
3411 (vect_build_slp_tree_1): New parameter SWAP. Check COND_EXPR stmt
3412 is isomorphic to the first stmt via swapping/inverting. Store swap
3413 information in the new parameter SWAP.
3414 (vect_build_slp_tree): New local array SWAP and pass it to function
3415 vect_build_slp_tree_1. Cleanup result handling code for function
3416 call to vect_get_and_check_slp_defs. Skip operand swapping if the
3417 order of operands has been fixed as indicated by SWAP[i].
3418
3419 2016-10-31 Bin Cheng <bin.cheng@arm.com>
3420
3421 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): Skip
3422 unnecessary data dependence check after visited store stmt.
3423
3424 2016-10-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3425
3426 PR tree-optimization/71915
3427 PR tree-optimization/71490
3428 * gimple-ssa-strength-reduction.c (struct slsr_cand_d): Add
3429 stride_type field.
3430 (find_basis_for_base_expr): Require stride types to match when
3431 seeking a basis.
3432 (alloc_cand_and_find_basis): Record the stride type.
3433 (slsr_process_phi): Pass stride type to alloc_cand_and_find_basis.
3434 (backtrace_base_for_ref): Pass types to legal_cast_p_1 rather than
3435 the expressions having those types.
3436 (slsr_process_ref): Pass stride type to alloc_cand_and_find_basis.
3437 (create_mul_ssa_cand): Likewise.
3438 (create_mul_imm_cand): Likewise.
3439 (create_add_ssa_cand): Likewise.
3440 (create_add_imm_cand): Likewise.
3441 (legal_cast_p_1): Change interface to accept types rather than the
3442 expressions having those types.
3443 (legal_cast_p): Pass types to legal_cast_p_1.
3444 (slsr_process_cast): Pass stride type to
3445 alloc_cand_and_find_basis.
3446 (slsr_process_copy): Likewise.
3447 (dump_candidate): Display stride type when a cast exists.
3448 (create_add_on_incoming_edge): Introduce a cast when necessary for
3449 the stride type.
3450 (analyze_increments): Change the code checking for invalid casts
3451 to rely on the stride type, and update the documentation and
3452 example. Change the code checking for pointer multiplies to rely
3453 on the stride type.
3454 (insert_initializers): Introduce a cast when necessary for the
3455 stride type. Use the stride type for the type of the initializer.
3456
3457 2016-10-30 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3458
3459 * config/arm/arm.c (arm_const_not_ok_for_debug_p): Use VAR_P.
3460
3461 2016-10-29 Jakub Jelinek <jakub@redhat.com>
3462
3463 PR rtl-optimization/77919
3464 * expr.c (expand_expr_real_1) <normal_inner_ref>: Only avoid forcing
3465 into memory if both modes are complex and their inner modes have the
3466 same precision. If the two modes are different complex modes, convert
3467 each part separately and generate a new CONCAT.
3468
3469 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
3470
3471 * config/pa/pa64-hpux.h (FINI_SECTION_ASM_OP): Define to null string.
3472
3473 2016-10-29 Jakub Jelinek <jakub@redhat.com>
3474
3475 PR target/78148
3476 * gimple-ssa-store-merging.c
3477 (imm_store_chain_info::output_merged_store): Use build_aligned_type
3478 instead of SET_TYPE_ALIGN on shared integral type.
3479
3480 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
3481
3482 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
3483 (MALLOC_ABI_ALIGNMENT): Define to 128 on all targets except SOM.
3484 Adjust comment.
3485
3486 2016-10-28 Jeff Law <law@redhat.com>
3487
3488 * config/vax/vax.h (REGNO_REG_CLASS): Access the REGNO argument.
3489 * config/spu/spu.h (REGNO_REG_CLASS): Likewise.
3490
3491 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
3492
3493 * doc/sourcebuild.texi (Ada Tests): Remove mention of gcc chapter.
3494
3495 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
3496
3497 * target.def (min_arithmetic_precision): New hook.
3498 * doc/tm.texi.in (Misc): Add TARGET_MIN_ARITHMETIC_PRECISION.
3499 * doc/tm.texi: Regenerate.
3500 * internal-fn.c (expand_arith_overflow): Adjust handling of target
3501 dependent support by means of TARGET_MIN_ARITHMETIC_PRECISION.
3502 * targhooks.c (default_min_arithmetic_precision): New function.
3503 * targhooks.h (default_min_arithmetic_precision): Declare.
3504 * config/sparc/sparc.c (TARGET_MIN_ARITHMETIC_PRECISION): Define.
3505 (sparc_min_arithmetic_precision): New function.
3506
3507 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
3508
3509 PR target/71847
3510 * combine.c (change_zero_ext): Handle zero_ext of hard registers.
3511 Swap commutative operands in new RTL if needed. Handle zero_ext
3512 in the set_dest.
3513 (recog_for_combine): Pass *pnewpat to change_zero_ext instead of
3514 PATTERN (insn).
3515
3516 2016-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3517 Kugan Vivekanandarajah <kuganv@linaro.org>
3518 Jim Wilson <jim.wilson@linaro.org>
3519
3520 PR tree-optimization/43721
3521 * target.def: New hook expand_divmod_libfunc.
3522 * doc/tm.texi.in: Add hook for TARGET_EXPAND_DIVMOD_LIBFUNC.
3523 * doc/tm.texi: Regenerate.
3524 * internal-fn.def: Add new entry for DIVMOD ifn.
3525 * internal-fn.c (expand_DIVMOD): New.
3526 * tree-ssa-math-opts.c: Include optabs-libfuncs.h, tree-eh.h,
3527 targhooks.h.
3528 (widen_mul_stats): Add new field divmod_calls_inserted.
3529 (target_supports_divmod_p): New.
3530 (divmod_candidate_p): Likewise.
3531 (convert_to_divmod): Likewise.
3532 (pass_optimize_widening_mul::execute): Call calculate_dominance_info,
3533 renumber_gimple_stmt_uids at beginning of function. Call
3534 convert_to_divmod and record stats for divmod.
3535 * config/arm/arm.c (arm_expand_divmod_libfunc): Override hook
3536 TARGET_EXPAND_DIVMOD_LIBFUNC.
3537 * doc/sourcebuild.texi: Add items for arm_divmod_simode, divmod,
3538 divmod_simode.
3539
3540 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
3541 Segher Boessenkool <segher@kernel.crashing.org>
3542
3543 * dojump.c (do_jump_by_parts_greater_rtx): Invert probability when
3544 swapping the arms of the branch.
3545 * internal-fn.c (expand_addsub_overflow): Use a straight-line code
3546 sequence for the generic signed-signed-signed case.
3547
3548 2016-10-28 Jeff Law <law@redhat.com>
3549
3550 * config/bfin/bfin.c (bfin_legitimate_address_p): Add missing
3551 fallthru comment.
3552 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
3553
3554 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
3555
3556 PR rtl-optimization/78029
3557 * function.c (prologue_contains, epilogue_contains): New functions.
3558 (record_prologue_seq, record_epilogue_seq): New functions.
3559 * function.h (prologue_contains, epilogue_contains,
3560 record_prologue_seq, record_epilogue_seq): New declarations.
3561 * sched-deps.c (sched_analyze_insn): Make dependencies to prevent
3562 mixing prologue and epilogue insns.
3563 (init_deps): Initialize the new fields in struct deps_desc.
3564 * sched-int.h (struct deps_desc): New fields last_prologue,
3565 last_epilogue, and last_logue_was_epilogue.
3566 * shrink-wrap.c (emit_common_heads_for_components): Record all
3567 emitted prologue and epilogue insns.
3568 (emit_common_tails_for_components): Ditto.
3569 (insert_prologue_epilogue_for_components): Ditto.
3570
3571 2016-10-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3572
3573 PR middle-end/22141
3574 * Makefile.in (OBJS): Add gimple-ssa-store-merging.o.
3575 * common.opt (fstore-merging): New Optimization option.
3576 * opts.c (default_options_table): Add entry for
3577 OPT_ftree_store_merging.
3578 * fold-const.h (can_native_encode_type_p): Declare prototype.
3579 * fold-const.c (can_native_encode_type_p): Define.
3580 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Define.
3581 (PARAM_MAX_STORES_TO_MERGE): Likewise.
3582 * timevar.def (TV_GIMPLE_STORE_MERGING): New timevar.
3583 * passes.def: Insert pass_tree_store_merging.
3584 * tree-pass.h (make_pass_store_merging): Declare extern
3585 prototype.
3586 * gimple-ssa-store-merging.c: New file.
3587 * doc/invoke.texi (Optimization Options): Document
3588 -fstore-merging.
3589 (--param documentation): Document store-merging-allow-unaligned
3590 and max-stores-to-merge.
3591
3592 2016-10-28 Will Schmidt <will_schmidt@vnet.ibm.com>
3593
3594 PR middle-end/72747
3595 * gimplify.c (gimplify_init_constructor): Move emit of constructor
3596 assignment to earlier in the if/else logic.
3597
3598 2016-10-28 Richard Biener <rguenther@suse.de>
3599
3600 PR middle-end/78128
3601 PR middle-end/71002
3602 * fold-const.c (make_bit_field_ref): Only adjust alias set
3603 when the original alias set was zero.
3604
3605 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3606
3607 * config/s390/s390.c (s390_adjust_loop_scan_osc): New function.
3608 (s390_adjust_loops): New function.
3609 (s390_reorg): Invoke s390_adjust_loops.
3610 * config/s390/s390.md (UNSPEC_OSC_BREAK): New constant.
3611 ("osc_break"): New insn definition.
3612
3613 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3614
3615 * config/s390/s390.opt: Support alternate cpu level naming (archXX).
3616 * config.gcc: Support alternate archXX cpu levels with
3617 --with-arch= and --with-tune=.
3618 * config/s390/linux.h: Translate new archXX cpu levels to the
3619 original names when calling GAS.
3620 * config/s390/tpf.h: Likewise.
3621 * doc/invoke.texi: Document the alternate cpu level names.
3622
3623 2016-10-28 Jakub Jelinek <jakub@redhat.com>
3624
3625 PR rtl-optimization/77919
3626 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force CONCAT into
3627 MEM if mode1 is not a complex mode.
3628
3629 PR rtl-optimization/78132
3630 * ree.c (combine_reaching_defs): Give up if copy_needed and
3631 !HARD_REGNO_MODE_OK (REGNO (src_reg), dst_mode).
3632
3633 2016-10-27 Eric Botcazou <ebotcazou@adacore.com>
3634
3635 * config/sparc/sparc.md (<*vlop:code><VL:mode>3): Remove leading '*'.
3636
3637 2016-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
3638
3639 * config/rs6000/constraints.md (wH constraint): Add new
3640 constraints for allowing 32-bit integers (and eventually 8/16-bit
3641 integers) into the vector registers.
3642 (wI constraint): Likewise.
3643 (wJ constraint): Likewise.
3644 (wK constraint): Likewise.
3645 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
3646 -mvsx-small-integer as a default option for ISA 2.07
3647 (i.e. power8).
3648 (POWERPC_MASKS): Likewise.
3649 * config/rs6000/rs6000.opt (-mvsx-small-integer): Add new debug
3650 switch to turn off small integer support in vector registers.
3651 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Eliminate
3652 test for -mupper-regs-di, since it is already done with the
3653 reg_add[mode].scalar_in_vsx_p. Add support for the switch
3654 -mvsx-small-integer.
3655 (rs6000_debug_reg_global): Add support for wH, wI, wJ, and wK
3656 constraints.
3657 (rs6000_setup_reg_addr_masks): Likewise.
3658 (rs6000_init_hard_regno_mode_ok): Likewise.
3659 (rs6000_option_override_internal): Add consistency checks for
3660 -mvsx-small-integer.
3661 (rs6000_secondary_reload_simple_move): SImode is a simple move if
3662 -mvsx-small-integer.
3663 (rs6000_secondary_reload): Use std::swap.
3664 (rs6000_preferred_reload_class): Don't prefer FLOAT_REGS over
3665 VSX_REGS for small integers in vector registers, since there is no
3666 D-FORM address mode for such types.
3667 (rs6000_register_move_cost): Use FIRST_FPR_REGNO instead of 32.
3668 (rs6000_opt_masks): Add -mvsx-small-integer.
3669 * config/rs6000/vsx.md (VSINT_84): Add SImode for small integer
3670 support.
3671 (VSX_EXTRACT_I2): Clone VSX_EXTRACT_I, but drop V4SI since SImode
3672 extracts can be done on ISA 2.07.
3673 (vsx_extract_<mode>): Add support for small integers in vsx
3674 registers.
3675 (vsx_extract_<mode>_p9): Use 'v' instead of VSX_EX, since we no
3676 longer support V4SImode in this pattern.
3677 (vsx_extract_si): New insn to support extraction of SImode in ISA
3678 2.07 using either xxextractuw or vspltw.
3679 (vsx_extract_<mode>_p8): Use 'v' instead of VSX_EX, since we no
3680 longer support V4SImode in this pattern.
3681 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wH, wI,
3682 wJ, and wK constraints.
3683 * config/rs6000/rs6000.md (f32_sv): Use correct instruction for
3684 storing SDmode with VSX instructions.
3685 (zero_extendsi<mode>2): Reorder pattern, so RLDICL comes after the
3686 GPR load and before the FPR and VSX loads. Remove ??, ! from the
3687 constraints. Add MFVSRWZ and XXEXTRACTUW instructions to support
3688 small integers in vector registers.
3689 (extendsi<mode>2): Reorder pattern, so EXTSW comes after the GPR
3690 load and before the FPR and VSX loads. Remove ??, ! from the
3691 constraints. Add VEXTSW2D support for small integers in vector
3692 registers.
3693 (lfiwax): Remove ! constraint. Add VEXTSW2D support for small
3694 integers in vector registers.
3695 (floatsi<mode>2_lfiwax): If -mvsx-small-integer issue a normal
3696 move instead of using an UNSPEC.
3697 (lfiwzx): Remove ! constraint. Add XXEXTRACTUW support for small
3698 integers in vector registers.
3699 (floatunssi<mode>2_lfiwzx): If -mvsx-small-integer issue a normal
3700 move instead of using an UNSPEC.
3701 (movsi_internal1): Add support for -mvsx-small-integer. Align
3702 columns so that it is more readable.
3703 (SImode splitter for ISA 3.0 constants): Add splitter for
3704 -128..127 constants that can easily be constructed on ISA 3.0.
3705 * doc/md.texi (PowerPC Constraints): Document wH, wI, wJ, and wK
3706 constraints.
3707
3708 2016-10-27 Jakub Jelinek <jakub@redhat.com>
3709
3710 PR middle-end/78025
3711 * omp-simd-clone.c (simd_clone_adjust): Handle noreturn declare simd
3712 functions.
3713
3714 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
3715
3716 * builtins.c (expand_builtin_nonlocal_goto): Avoid evaluating
3717 PIC_OFFSET_TABLE_REGNUM twice.
3718
3719 2016-10-27 Bin Cheng <bin.cheng@arm.com>
3720
3721 * match.pd ((convert (op:s (convert@2 @0) (convert?@3 @1)))): Add
3722 support for constant operand for OP.
3723
3724 2016-10-27 Jakub Jelinek <jakub@redhat.com>
3725
3726 * dwarf2out.c (gen_member_die): Only reparent_child instead of
3727 splice_child_die if child doesn't have DW_AT_specification attribute.
3728
3729 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
3730
3731 * config/arm/arm.h (TARGET_HAVE_LDREX): Define for ARMv8-M Baseline.
3732 (TARGET_HAVE_LDREXBH): Likewise.
3733 (TARGET_HAVE_LDACQ): Likewise.
3734
3735 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
3736
3737 * config/arm/arm.c (arm_split_atomic_op): Add function comment. Add
3738 logic to to decide whether to copy over old value to register for new
3739 value.
3740 * config/arm/sync.md: Add comments explaning why mode and code
3741 attribute are not defined in iterators.md
3742 (thumb1_atomic_op_str): New code attribute.
3743 (thumb1_atomic_newop_str): Likewise.
3744 (thumb1_atomic_fetch_op_str): Likewise.
3745 (thumb1_atomic_fetch_newop_str): Likewise.
3746 (thumb1_atomic_fetch_oldop_str): Likewise.
3747 (atomic_exchange<mode>): Add new ARMv8-M Baseline only alternatives to
3748 mirror the more restrictive constraints of the Thumb-1 insns after
3749 split compared to Thumb-2 counterpart insns.
3750 (atomic_<sync_optab><mode>): Likewise. Add comment to keep constraints
3751 in sync with non atomic version.
3752 (atomic_nand<mode>): Likewise.
3753 (atomic_fetch_<sync_optab><mode>): Likewise.
3754 (atomic_fetch_nand<mode>): Likewise.
3755 (atomic_<sync_optab>_fetch<mode>): Likewise.
3756 (atomic_nand_fetch<mode>): Likewise.
3757 * config/arm/thumb1.md (thumb1_addsi3): Add comment to keep contraint
3758 in sync with atomic version.
3759 (thumb1_subsi3_insn): Likewise.
3760 (thumb1_andsi3_insn): Likewise.
3761 (thumb1_iorsi3_insn): Likewise.
3762 (thumb1_xorsi3_insn): Likewise.
3763
3764 2016-10-27 Nick Clifton <nickc@redhat.com>
3765
3766 * plugin.c (register_plugin_info): Produce an error message if the
3767 plugin is not found in the hash table.
3768
3769 2016-10-27 Bin Cheng <bin.cheng@arm.com>
3770
3771 * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
3772 New pattern.
3773
3774 2016-10-26 Kelvin Nilsen <kelvin@gcc.gnu.org>
3775
3776 PR target/78056
3777 * config/rs6000/rs6000.c (spe_init_builtins): Modify loops to not
3778 define builtin functions from the bdesc_spe_predicates or
3779 bdesc_spe_evsel arrays if the builtin mask is not compatible with
3780 the current compiler configuration.
3781 (paired_init_builtins): Modify loop to not define define builtin
3782 functions from the bdesc_paried_preds array if the builtin mask is
3783 not compatible with the current compiler configuration.
3784 (altivec_init_builtins): Modify loops to not define the
3785 __builtin_altivec_stxvl function nor the builtin functions from
3786 the bdesc_dst or bdesc_altivec_preds, or bdesc_abs arrays if the
3787 builtin mask is not compatible with the current compiler
3788 configuration.
3789
3790 2016-10-26 Jeff Law <law@redhat.com>
3791
3792 * config/sh/sh.c (output_branch): Add missing fallthru comments.
3793 (gen_shl_and): Likewise.
3794 * config/sh/sh.md (movsicc): Add missing fallthru comments.
3795
3796 * config/mips/mips.c (mips16_constant_cost): Add missing
3797 fallthru comments.
3798 (mips16_build_call_stub): Increase buffer size. Adjust
3799 fallthru comment.
3800
3801 2016-10-26 David Malcolm <dmalcolm@redhat.com>
3802
3803 * print-rtl.c (rtx_writer::print_rtx_operand_code_u): Print
3804 INSN_UIDs for all insns in compact mode.
3805 (rtx_writer::print_rtx): Likewise.
3806 * print-rtl.h (rtx_writer::flag_compact): Update comment.
3807 * rtl-tests.c (selftest::test_dumping_insns): Update expected
3808 output to include INSN_UID.
3809 (selftest::test_uncond_jump): Likewise.
3810
3811 2016-10-26 Pat Haugen <pthaugen@us.ibm.com>
3812
3813 * haifa-sched.c (call_used_regs_num): Rename to...
3814 (call_saved_regs_num): ...this.
3815 (fixed_regs_num): New variable.
3816 (sched_pressure_start_bb): Subtract out fixed_regs. Scale call_saved
3817 regs not call_used.
3818 (alloc_global_sched_pressure_data): Compute call_saved and fixed regs.
3819
3820 2016-10-26 David Malcolm <dmalcolm@redhat.com>
3821
3822 * print-rtl-function.c (print_rtx_function): Rewrite in terms of
3823 class rtx_writer.
3824 * print-rtl.c (outfile): Delete global.
3825 (sawclose): Likewise.
3826 (indent): Likewise.
3827 (in_call_function_usage): Likewise.
3828 (flag_compact): Likewise.
3829 (flag_simple): Likewise.
3830 (rtx_writer::rtx_writer): New ctor.
3831 (print_rtx_operand_code_0): Convert to...
3832 (rtx_writer::print_rtx_operand_code_0): ...this.
3833 (print_rtx_operand_code_e): Convert to...
3834 (rtx_writer::print_rtx_operand_code_e): ...this.
3835 (print_rtx_operand_codes_E_and_V): Convert to...
3836 (rtx_writer::print_rtx_operand_codes_E_and_V): ...this.
3837 (print_rtx_operand_code_i): Convert to...
3838 (rtx_writer::print_rtx_operand_code_i): ...this.
3839 (print_rtx_operand_code_r): Convert to...
3840 (rtx_writer::print_rtx_operand_code_r): ...this.
3841 (print_rtx_operand_code_u): Convert to...
3842 (rtx_writer::print_rtx_operand_code_u): ...this.
3843 (print_rtx_operand): Convert to...
3844 (rtx_writer::print_rtx_operand): ...this.
3845 (print_rtx): Convert to...
3846 (rtx_writer::print_rtx): ...this.
3847 (print_inline_rtx): Rewrite in terms of class rtx_writer.
3848 (debug_rtx): Likewise.
3849 (print_rtl): Convert to...
3850 (rtx_writer::print_rtl): ...this.
3851 (print_rtl): Reimplement in terms of class rtx_writer.
3852 (print_rtl_single): Rewrite in terms of class rtx_writer.
3853 (print_rtl_single_with_indent): Convert to..
3854 (rtx_writer::print_rtl_single_with_indent): ...this.
3855 (print_simple_rtl): Rewrite in terms of class rtx_writer.
3856 * print-rtl.h (flag_compact): Delete decl.
3857 (class rtx_writer): New class.
3858 * rtl-tests.c (selftest::assert_rtl_dump_eq): Rewrite in terms of
3859 class rtx_writer.
3860
3861 2016-10-26 Jeff Law <law@redhat.com>
3862
3863 * config/microblaze/microblaze.c (tls_mentioned_p): Avoid
3864 fallthru.
3865
3866 * config/arc/arc.c (acr_print_operand): Adjust fallthru comment.
3867 (check_if_valid_sleep_operand): Add missing fallthru comment.
3868 (arc_register_move_cost): Increase buffer size.
3869 * config/arc/arc.md (cbranch4si_scratch): Add missing fallthru
3870 comment.
3871 * config/arc/predicates.md (move_str_operand): Avoid fallthru.
3872
3873 * config/cr16/cr16.c (cr16_print_operand): Add missing fallthru
3874 comment. Add gcc_unreachable for path that should never happen.
3875
3876 * config/epiphany/epiphany.c (epiphany_print_operand): Adjust
3877 fallthru comment.
3878
3879 2016-10-26 Jakub Jelinek <jakub@redhat.com>
3880 Martin Liska <mliska@suse.cz>
3881
3882 PR fortran/77973
3883 * gimplify.c (gimplify_adjust_omp_clauses_1): For all added map
3884 clauses with OMP_CLAUSE_SIZE being a decl, call omp_notice_variable
3885 on outer context if any.
3886
3887 2016-10-26 Jakub Jelinek <jakub@redhat.com>
3888
3889 * gen-pass-instances.awk (adjust_linenos): Increment pass_lines[p]
3890 by increment rather than double it.
3891 (insert_remove_pass): Strip leading whitespace from args[3]. Don't
3892 emit a space before args[4].
3893 (END): Don't emit a space before with_arg.
3894
3895 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
3896
3897 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Add new ARMv8-M
3898 Baseline only alternatives to (i) hold store atomic success value in a
3899 return register rather than a scratch register, (ii) use a low register
3900 for it and to (iii) ensure the cbranchsi insn generated by the split
3901 respect the constraints of Thumb-1 cbranchsi4_insn and
3902 cbranchsi4_scratch.
3903 * config/arm/thumb1.md (cbranchsi4_insn): Add comment to indicate
3904 constraints must match those in atomic_compare_and_swap.
3905 (cbranchsi4_scratch): Likewise.
3906
3907 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
3908
3909 * config/arm/arm.c (arm_expand_compare_and_swap): Add new bdst local
3910 variable. Add the new parameter to the insn generator. Set that
3911 parameter to be CC flag for 32-bit targets, bval otherwise. Set the
3912 return value from the negation of that parameter for Thumb-1, keeping
3913 the logic unchanged otherwise except for using bdst as the destination
3914 register of the compare_and_swap insn.
3915 (arm_split_compare_and_swap): Add explanation about how is the value
3916 returned to the function comment. Rename scratch variable to
3917 neg_bval. Adapt initialization of variables holding operands to the
3918 new operand numbers. Use return register to hold result of store
3919 exclusive for Thumb-1, scratch register otherwise. Construct the
3920 appropriate cbranch for Thumb-1 targets, keeping the logic unchanged
3921 for 32-bit targets. Guard Z flag setting to restrict to 32bit targets.
3922 Use gen_cbranchsi4 rather than hand-written conditional branch to loop
3923 for strongly ordered compare_and_swap.
3924 * config/arm/predicates.md (cc_register_operand): New predicate.
3925 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Use a
3926 match_operand with the new predicate to accept either the CC flag or a
3927 destination register for the boolean return value, restricting it to
3928 CC flag only via constraint. Adapt operand numbers accordingly.
3929
3930 2016-10-26 Jeff Law <law@redhat.com>
3931
3932 * config/fr30/fr30.c (fr30_print_operand): Adjust fallthru comment.
3933
3934 * config/frv/frv.c (comparison_string): Do not fall through after
3935 an error.
3936
3937 * config/iq2000/iq2000.c (iq2000_function_arg): Adjust fallthru
3938 comment.
3939 (expand_one_builtin): Add missing break.
3940
3941 * config/m32c/m32c.c (encode_pattern_1): Add fallthru comment.
3942 (m32c_legitimate_address_p): Likewise.
3943
3944 * config/m32r/m32r.c (m32r_print_operand): Adjust fallthru comment.
3945
3946 * config/mcore/mcore.c (mcore_gen_compare): Adjust fallthru comments.
3947
3948 * config/microblaze/microblaze.c (microblaze_function_arg): Adjust
3949 fallthru comment.
3950
3951 * config/msp430/msp430.c (msp430_legitimate_address_p): Adjust
3952 fallthru comment.
3953
3954 * config/nios2/nios2.c (nios2_rtx_costs): Avoid fallthru.
3955
3956 * config/rl78/rl78.c (rl78_calculate_death_notes): Add fallthru
3957 comment.
3958 (rl78_asm_ctor_dtor): Increase buffer size.
3959
3960 * config/stormy16/stormy16.c (xstormy16_asm_output_destrutor): Increase
3961 buffer size.
3962 (xstormy16_asm_output_constructor): Likewise.
3963
3964 * config/pa/pa.c (pa_asm_output_mi_thunk): Increase buffer
3965 size.
3966
3967 * config/h8300/h8300.c (h8300_print_operand): Adjust FALLTHRU
3968 comment to silence warning.
3969
3970 * config/spu/spu.c (spu_sched_reorder): Add missing fallthru comment.
3971 (spu_legitimate_address_p): Fix logic error and add missing fallthru
3972 comment.
3973
3974 2016-10-26 Michael Matz <matz@suse.de>
3975
3976 PR tree-optimization/78060
3977 PR tree-optimization/78061
3978 PR tree-optimization/78088
3979 * tree-ssa-loop-split.c (easy_exit_values): New function.
3980 (tree_ssa_split_loops): Use it.
3981 (compute_new_first_bound): Change order of operations,
3982 fix invalid use of types.
3983
3984 2016-10-26 Georg-Johann Lay <avr@gjlay.de>
3985
3986 gen-pass-instances.awk is sensitive to the order in which
3987 passes are added; passes that appear later have to be added first.
3988
3989 PR target/71676
3990 PR target/71678
3991 * config/avr/avr-passes.def: Swap order of directives for
3992 gen-pass-instances.awk.
3993
3994 2016-10-25 Jeff Law <law@redhat.com>
3995
3996 * config/vax/vax.c (vad_address_cost_1): Add missing FALLTHRU comment.
3997 (vax_notice_update_cc): Likewise.
3998
3999 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
4000
4001 * config.gcc (sparc*-*-solaris2*): Adjust.
4002 (sparc64-*-linux*): Likewise.
4003 * config/sparc/default-64.h: Rename to...
4004 * config/sparc/default64.h: ...this.
4005 * config/sparc/sparc.c (sparc_option_override): Replace TARGET_64BIT
4006 with TARGET_ARCH64.
4007 (sparc_mangle_type): Replace !TARGET_64BIT with TARGET_ARCH32.
4008 * config/sparc/sparc.h: Minor tweaks.
4009 * config/sparc/sparc.md: Replace !TARGET_64BIT and !TARGET_ARCH64 with
4010 TARGET_ARCH32 throughout. Minor various tweaks throughout.
4011
4012 2016-10-25 David Malcolm <dmalcolm@redhat.com>
4013
4014 * input.c (fcache::file_patch): Add comment about lifetime.
4015 (selftest::cpp_reader_ptr): New class.
4016 (selftest::lexer_test): Convert m_parser from cpp_reader *
4017 to a cpp_reader_ptr, and move m_tempfile to after it.
4018 (selftest::lexer_test::lexer_test): Update for above reordering.
4019 (lexer_test::~lexer_test): Move cleanup of m_parser to
4020 cpp_reader_ptr's dtor.
4021
4022 2016-10-25 David Malcolm <dmalcolm@redhat.com>
4023
4024 * toplev.c (toplev::main): Remove call to
4025 location_adhoc_data_fini.
4026
4027 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
4028
4029 * tree.h (wi::fits_to_tree_p): Accept only 0 and 1 for boolean types.
4030 * tree.c (int_fits_type_p): Likewise. Adjust head comment.
4031
4032 2016-10-25 David Malcolm <dmalcolm@redhat.com>
4033
4034 * ggc-tests.c (forcibly_ggc_collect): Rename to...
4035 (selftest::forcibly_ggc_collect): ...this, and remove "static".
4036 (test_basic_struct): Update for above renaming.
4037 (test_length): Likewise.
4038 (test_union): Likewise.
4039 (test_finalization): Likewise.
4040 (test_deletable_global): Likewise.
4041 (test_inheritance): Likewise.
4042 (test_chain_next): Likewise.
4043 (test_user_struct): Likewise.
4044 (test_tree_marking): Likewise.
4045 * selftest-run-tests.c (selftest::run_tests): Call
4046 selftest::forcibly_ggc_collect at the end of the selftests.
4047 * selftest.h (selftest::forcibly_ggc_collect): New decl.
4048
4049 2016-10-25 Jakub Jelinek <jakub@redhat.com>
4050
4051 PR target/78102
4052 * optabs.def (vcondeq_optab, vec_cmpeq_optab): New optabs.
4053 * optabs.c (expand_vec_cond_expr): For comparison codes
4054 EQ_EXPR and NE_EXPR, attempt vcondeq_optab as fallback.
4055 (expand_vec_cmp_expr): For comparison codes
4056 EQ_EXPR and NE_EXPR, attempt vec_cmpeq_optab as fallback.
4057 * optabs-tree.h (expand_vec_cmp_expr_p, expand_vec_cond_expr_p):
4058 Add enum tree_code argument.
4059 * optabs-query.h (get_vec_cmp_eq_icode, get_vcond_eq_icode): New
4060 inline functions.
4061 * optabs-tree.c (expand_vec_cmp_expr_p): Add CODE argument. For
4062 CODE EQ_EXPR or NE_EXPR, attempt to use vec_cmpeq_optab as
4063 fallback.
4064 (expand_vec_cond_expr_p): Add CODE argument. For CODE EQ_EXPR or
4065 NE_EXPR, attempt to use vcondeq_optab as fallback.
4066 * tree-vect-generic.c (expand_vector_comparison,
4067 expand_vector_divmod, expand_vector_condition): Adjust
4068 expand_vec_cmp_expr_p and expand_vec_cond_expr_p callers.
4069 * tree-vect-stmts.c (vectorizable_condition,
4070 vectorizable_comparison): Likewise.
4071 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern,
4072 check_bool_pattern, search_type_for_mask_1): Likewise.
4073 * expr.c (do_store_flag): Likewise.
4074 * doc/md.texi (@code{vec_cmpeq@var{m}@var{n}},
4075 @code{vcondeq@var{m}@var{n}}): Document.
4076 * config/i386/sse.md (vec_cmpeqv2div2di, vcondeq<VI8F_128:mode>v2di):
4077 New expanders.
4078
4079 2016-10-25 Jeff Law <law@redhat.com>
4080
4081 * config/v850/v850.c (v850_handle_data_area_attribute): Fix fallthru
4082 comment.
4083 (v850_output_aligned_bss): Add missing break.
4084
4085 * config/m68k/m68k.c (m68k_get_reloc_decoration): Add gcc_unreachable.
4086
4087 2016-10-25 Martin Liska <mliska@suse.cz>
4088
4089 PR sanitizer/78106
4090 * sanopt.c (imm_dom_path_with_freeing_call): Handle gasm
4091 statements as they can also contain possibly a freeing call.
4092
4093 2016-10-25 H.J. Lu <hongjiu.lu@intel.com>
4094 Martin Liska <mliska@suse.cz>
4095
4096 PR ipa/78099
4097 * common.opt: Mark flag_ipa_icf_variables as Optimization flag.
4098 * ipa-icf.c (sem_function::get_hash): Add target optimization
4099 node to hash.
4100
4101 2016-10-25 Wilco Dijkstra <wdijkstr@arm.com>
4102
4103 PR target/78041
4104 * config/arm/neon.md (ashldi3_neon): Add "r 0 i" and "&r r i" variants.
4105 Remove partial overlap check for shift by 1.
4106 (ashldi3_neon): Likewise.
4107
4108 2016-10-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
4109
4110 * config/arm/constraints.md (Q constraint): Document its use for
4111 Thumb-1.
4112 (Pf constraint): New constraint for relaxed, consume or relaxed memory
4113 models.
4114 * config/arm/sync.md (atomic_load<mode>): Add new ARMv8-M Baseline only
4115 alternatives to allow any register when memory model matches Pf and
4116 thus lda is used, but only low registers otherwise. Use unpredicated
4117 output template for Thumb-1 targets.
4118 (atomic_store<mode>): Likewise for stl.
4119 (arm_load_exclusive<mode>): Add new ARMv8-M Baseline only alternative
4120 whose output template does not have predication.
4121 (arm_load_acquire_exclusive<mode>): Likewise.
4122 (arm_load_exclusivesi): Likewise.
4123 (arm_load_acquire_exclusivesi): Likewise.
4124 (arm_store_release_exclusive<mode>): Likewise.
4125 (arm_store_exclusive<mode>): Use unpredicated output template for
4126 Thumb-1 targets.
4127
4128 2016-10-25 Jakub Jelinek <jakub@redhat.com>
4129
4130 * internal-fn.def (LAUNDER): New internal function.
4131 * internal-fn.c (expand_LAUNDER): New function.
4132
4133 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
4134 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
4135
4136 New avr target pass to work around performance loss by PR fix.
4137
4138 PR target/71676
4139 PR target/71678
4140 * config/avr/avr.md (casesi_<mode>_sequence) [qi,hi]: New insn.
4141 (*cmp<mode>) [qi,qq,uqq,hi,hq,uhq,ha,uha]: Rename to cmp<mode>3.
4142 * config/avr/predicates.md (extend_operator): New.
4143 * config/avr/avr-passes.def (avr_pass_casesi): Register new pass.
4144 * config/avr/avr-protos.h (avr_casei_sequence_check_operands)
4145 (make_avr_pass_casesi): New prototypes.
4146 * config/avr/avr.c (print-rtl.h): Include it.
4147 (pass_data avr_pass_data_casesi): Data for new pass.
4148 (avr_pass_casesi): New class implementing rtl_opt_pass .avr-casesi.
4149 (make_avr_pass_casesi, avr_parallel_insn_from_insns)
4150 (avr_is_casesi_sequence, avr_casei_sequence_check_operands)
4151 (avr_optimize_casesi): New functions.
4152
4153 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
4154 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
4155
4156 PR target/71676
4157 PR target/71678
4158 * config/avr/avr.md (casesi): Rewrite avoiding subregs of SI.
4159
4160 2016-10-24 Jakub Jelinek <jakub@redhat.com>
4161
4162 * dwarf2out.c (gen_subprogram_die): Add DW_AT_reference or
4163 DW_AT_rvalue_reference attributes.
4164
4165 2016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
4166
4167 * doc/invoke.text (Wint-in-bool-context): Update documentation.
4168 * value-prof.c (stringop_block_profile): Fix a warning.
4169
4170 2016-10-24 Martin Sebor <msebor@redhat.com>
4171
4172 PR middle-end/77735
4173 * builtins.c (string_length): New function.
4174 (c_strlen): Use string_length. Correctly handle wide strings.
4175 * gimple-ssa-sprintf.c (target_max_value, target_size_max): New
4176 functions.
4177 (target_int_max): Call target_max_value.
4178 (format_result::knownrange): New data member.
4179 (fmtresult::fmtresult): Define default constructor.
4180 (format_integer): Use it and set format_result::knownrange.
4181 Handle global constants.
4182 (format_floating_max): Add third argument.
4183 (format_floating): Recompute maximum value for %a for each argument.
4184 (get_string_length): Use fmtresult default ctor.
4185 (format_string): Set format_result::knownrange.
4186 (format_directive): Check format_result::knownrange.
4187 (add_bytes): Same. Correct caret placement in diagnostics.
4188 (pass_sprintf_length::compute_format_length): Set
4189 format_result::knownrange.
4190 (pass_sprintf_length::handle_gimple_call): Use target_size_max.
4191
4192 2016-10-24 Jakub Jelinek <jakub@redhat.com>
4193
4194 * config/i386/i386.c (ix86_in_large_data_p, ix86_expand_builtin): Use
4195 VAR_P (x) instead of TREE_CODE (x) == VAR_DECL.
4196
4197 2016-10-24 Ximin Luo <infinity0@pwned.gg>
4198
4199 PR debug/77985
4200 * dwarf2out.c (file_table_relative_p): Remove.
4201 (gen_compile_unit_die, dwarf2out_early_finish): Emit DW_AT_comp_dir
4202 also for absolute paths.
4203 * doc/tm.texi: Update.
4204 * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Remove.
4205 * target.def (force_at_comp_dir): Remove hook.
4206 * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Remove define.
4207
4208 2016-10-24 Richard Biener <rguenther@suse.de>
4209
4210 * tree-vrp.c (evrp_dom_walker::before_dom_children): Ignore
4211 backedges when identifying the single predecessor to take
4212 conditional info from. Use SCEV to get at ranges for loop IVs.
4213 * lto-streamer-out.c (lto_write_mode_table): CSE inner mode to
4214 avoid false warning.
4215
4216 2016-10-24 Georg-Johann Lay <avr@gjlay.de>
4217
4218 PR target/78093
4219 * doc/extend.texi (AVR Variable Attributes) [absdata]: Document it.
4220 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_ABSDATA): New macro.
4221 (avr_address_tiny_absdata_p): New static function.
4222 (avr_legitimate_address_p, avr_legitimize_address) [AVR_TINY]: Use
4223 it to determine validity of constant addresses.
4224 (avr_attribute_table) [absdata]: New variable attribute...
4225 (avr_handle_absdata_attribute): ...and handler.
4226 (avr_decl_absdata_p): New static function.
4227 (avr_encode_section_info) [AVR_TINY]: Use it to add flag
4228 AVR_SYMBOL_FLAG_TINY_ABSDATA to respective symbols_refs.
4229 (avr_address_cost) [AVR_TINY]: absdata addresses cost 2.
4230
4231 2016-10-24 Richard Biener <rguenther@suse.de>
4232
4233 PR tree-optimization/78076
4234 * tree-ssa-loop-split.c (tree_ssa_split_loops): Reset aux
4235 also on the loop tree root.
4236
4237 2016-10-24 Jakub Jelinek <jakub@redhat.com>
4238
4239 * config/i386/i386.c (ix86_fold_builtin): Handle
4240 IX86_BUILTIN_BEXTR{,I}{32,64}, IX86_BUILTIN_BZHI{32,64},
4241 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
4242 (ix86_gimple_fold_builtin): Handle IX86_BUILTIN_BZHI{32,64},
4243 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
4244
4245 2016-10-24 Martin Liska <mliska@suse.cz>
4246
4247 PR sanitizer/77966
4248 * opts.c (finish_options): Skip conditionally.
4249
4250 2016-10-23 Martin Sebor <msebor@redhat.com>
4251
4252 PR target/77837
4253 * config/rs6000/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define.
4254 * config/rs6000/linux64.h (TARGET_PRINTF_POINTER_FORMAT): Likewise.
4255
4256 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
4257
4258 * config/sparc/sparc.md (cpu_feature): Minor tweak.
4259 (enabled): Likewise.
4260 (movsi_insn, movdi_insn_sp32, movdi_insn_sp64, movsf_insn,
4261 movdf_insn_sp32, movdf_insn_sp64, zero_extendsidi2_insn_sp64,
4262 sign_extendsidi2_insn, mov<VM32:mode>_insn, mov<VM64:mode>_insn_sp64,
4263 mov<VM64:mode>_insn_sp32, not_<code><mode>, nand<mode>_vis,
4264 <code>_not1<mode>_vi, <code>_not2<mode>_vis, one_cmpl<mode>2,
4265 fcmp<code><GCM:gcm_name>, pdistn<mode>_vis): Likewise.
4266
4267 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
4268
4269 * config/sparc/sparc-c.c (sparc_target_macros): Replace TARGET_64BIT
4270 with TARGET_ARCH64. Define __VIS to 0x400 if TARGET_VIS4.
4271
4272 2016-10-21 Andrew Pinski <apinski@cavium.com>
4273
4274 * config/aarch64/aarch64-cores.def: Rewrite so IMP and PART are
4275 integer constants.
4276 * config/aarch64/driver-aarch64.c (struct aarch64_core_data): Change
4277 implementer_id to unsigned char.
4278 Change part_no to unsigned int.
4279 (AARCH64_BIG_LITTLE): New define.
4280 (INVALID_IMP): New define.
4281 (INVALID_CORE): New define.
4282 (cpu_data): Change the last element's implementer_id and part_no to
4283 integers.
4284 (valid_bL_string_p): Rewrite to ..
4285 (valid_bL_core_p): this for integers instead of strings.
4286 (parse_field): New function.
4287 (contains_string_p): Rewrite to ...
4288 (contains_core_p): this for integers and only for the part_no.
4289 (host_detect_local_cpu): Rewrite handling of implementation and
4290 par num to be integers; simplifying the code.
4291
4292 2016-10-21 Kugan Vivekanandarajah <kuganv@linaro.org>
4293
4294 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Create nonzero
4295 value range for pointers in more cases.
4296
4297 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
4298
4299 * config/aarch64/aarch64.c (aarch64_add_constant_internal):
4300 Add extra argument to allow emitting the move immediate.
4301 Use add/sub with positive immediate.
4302 (aarch64_add_constant): Add inline function.
4303 (aarch64_add_sp): Likewise.
4304 (aarch64_sub_sp): Likewise.
4305 (aarch64_expand_prologue): Call aarch64_sub_sp.
4306 (aarch64_expand_epilogue): Call aarch64_add_sp.
4307 Decide when to leave out move.
4308 (aarch64_output_mi_thunk): Call aarch64_add_constant.
4309
4310 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
4311
4312 * config/aarch64/aarch64.c (aarch64_layout_frame):
4313 Align FP callee-saves.
4314
4315 2016-10-21 Jakub Jelinek <jakub@redhat.com>
4316
4317 * config/i386/adxintrin.h (_subborrow_u32, _addcarry_u32,
4318 _addcarryx_u32, _subborrow_u64, _addcarry_u64, _addcarryx_u64):
4319 Formatting fixes.
4320 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
4321 _rdseed64_step): Likewise.
4322 * config/i386/tbmintrin.h (__bextri_u32): Likewise.
4323
4324 PR target/78057
4325 * config/i386/i386.c: Include fold-const-call.h, tree-vrp.h
4326 and tree-ssanames.h.
4327 (ix86_fold_builtin): Fold IX86_BUILTIN_[LT]ZCNT{16,32,64}
4328 with INTEGER_CST argument.
4329 (ix86_gimple_fold_builtin): New function.
4330 (TARGET_GIMPLE_FOLD_BUILTIN): Define.
4331
4332 * dwarf2out.c (ranges_table): Change into vec<dw_ranges, va_gc> *.
4333 (ranges_by_label): Change into vec<dw_ranges_by_label, va_gc> *.
4334 (ranges_table_allocated, ranges_table_in_use,
4335 ranges_by_label_allocated, ranges_by_label_in_use,
4336 RANGES_TABLE_INCREMENT): Removed.
4337 (add_ranges_num): Use vec_safe_push into ranges_table.
4338 (add_ranges_by_labels): Use vec_safe_push into ranges_by_label.
4339 (output_ranges): Adjust for ranges_table and ranges_by_label
4340 conversion from arrays to vec.
4341 (add_high_low_attributes, dwarf2out_finish): Adjust for range_table
4342 conversion from arrays to vec.
4343 (dwarf2out_c_finalize): Don't clear ranges_table_allocated,
4344 ranges_table_in_use, ranges_by_label_allocated and
4345 ranges_by_label_in_use. Set ranges_by_label to NULL instead of 0.
4346
4347 * dwarf2out.c (gen_variable_die): Emit DW_AT_const_expr attribute
4348 if needed. Re-add origin_die variable and its initialization.
4349
4350 * gimplify.c (gimplify_bind_expr): Handle oacc_declare_returns
4351 even for -fstack-reuse=none, or for volatile vars etc.
4352
4353 2016-10-21 David Malcolm <dmalcolm@redhat.com>
4354
4355 * print-rtl-function.c (flag_compact): Move extern decl to...
4356 * print-rtl.h (flag_compact): ...here.
4357 * rtl-tests.c (selftests::assert_rtl_dump_eq): New function.
4358 (ASSERT_RTL_DUMP_EQ): New macro.
4359 (selftest::test_dumping_regs): New function.
4360 (selftest::test_dumping_insns): New function.
4361 (selftest::test_uncond_jump): Add uses of ASSERT_RTL_DUMP_EQ on
4362 the insns.
4363 (selftest::rtl_tests_c_tests): Call the new test functions.
4364
4365 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4366
4367 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
4368 (outgoing_edges_match): Likewise.
4369 (try_crossjump_to_edge): Likewise.
4370 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
4371 (rtl_tidy_fallthru_edge): Likewise.
4372 * rtl.h (tablejump_p): Adjust prototype.
4373 * rtlanal.c (tablejump_p): Return the label as a rtx_insn *.
4374
4375 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4376
4377 * rtl.h (label_ref_label): New function.
4378 (set_label_ref_label): New function.
4379 (LABEL_REF_LABEL): Delete.
4380 * alias.c (rtx_equal_for_memref_p): Adjust.
4381 * cfgbuild.c (make_edges): Likewise.
4382 (purge_dead_tablejump_edges): Likewise.
4383 * cfgexpand.c (convert_debug_memory_address): Likewise.
4384 * cfgrtl.c (patch_jump_insn): Likewise.
4385 * combine.c (distribute_notes): Likewise.
4386 * cse.c (hash_rtx_cb): Likewise.
4387 (exp_equiv_p): Likewise.
4388 (fold_rtx): Likewise.
4389 (check_for_label_ref): Likewise.
4390 * cselib.c (rtx_equal_for_cselib_1): Likewise.
4391 (cselib_hash_rtx): Likewise.
4392 * emit-rtl.c (mark_label_nuses): Likewise.
4393 * explow.c (convert_memory_address_addr_space_1): Likewise.
4394 * final.c (output_asm_label): Likewise.
4395 (output_addr_const): Likewise.
4396 * gcse.c (add_label_notes): Likewise.
4397 * genconfig.c (walk_insn_part): Likewise.
4398 * genrecog.c (validate_pattern): Likewise.
4399 * ifcvt.c (cond_exec_get_condition): Likewise.
4400 (noce_emit_store_flag): Likewise.
4401 (noce_get_alt_condition): Likewise.
4402 (noce_get_condition): Likewise.
4403 * jump.c (maybe_propagate_label_ref): Likewise.
4404 (mark_jump_label_1): Likewise.
4405 (redirect_exp_1): Likewise.
4406 (rtx_renumbered_equal_p): Likewise.
4407 * lra-constraints.c (operands_match_p): Likewise.
4408 * print-rtl.c (print_value): Likewise.
4409 * reload.c (find_reloads): Likewise.
4410 * reload1.c (set_label_offsets): Likewise.
4411 * reorg.c (get_branch_condition): Likewise.
4412 * rtl-tests.c (test_uncond_jump): Likewise.
4413 * rtl.c (rtx_equal_p_cb): Likewise.
4414 (rtx_equal_p): Likewise.
4415 * rtlanal.c (reg_mentioned_p): Likewise.
4416 (rtx_referenced_p): Likewise.
4417 (get_condition): Likewise.
4418 * varasm.c (const_hash_1): Likewise.
4419 (compare_constant): Likewise.
4420 (const_rtx_hash_1): Likewise.
4421 (output_constant_pool_1): Likewise.
4422
4423 2016-10-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4424
4425 PR target/71627
4426 * reload.c (find_valid_class_1): Allow regclass if atleast one
4427 regno in regclass is ok. Compute and use rclass size based on
4428 actually available regnos for mode in rclass.
4429
4430 2016-10-21 Eric Botcazou <ebotcazou@adacore.com>
4431
4432 * config/sparc/sparc-modes.def (CCV): New.
4433 (CCXV): Likewise.
4434 * config/sparc/predicates.md (v_comparison_operator): New.
4435 (icc_comparison_operator): Add support for CCV/CCXV.
4436 (xcc_comparison_operator): Likewise.
4437 * config/sparc/sparc.c (output_cbranch): Likewise.
4438 (sparc_print_operand): Likewise.
4439 * config/sparc/sparc.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
4440 (uaddvdi4): New expander.
4441 (addvdi4): Likewise.
4442 (uaddvdi4_sp32): New instruction.
4443 (addvdi4_sp32): Likewise.
4444 (uaddvsi4): New expander.
4445 (addvsi4): Likewise.
4446 (cmp_ccc_plus_sltu_set): New instruction.
4447 (cmp_ccv_plus): Likewise.
4448 (cmp_ccxv_plus): Likewise.
4449 (cmp_ccv_plus_set): Likewise.
4450 (cmp_ccxv_plus_set): Likewise.
4451 (cmp_ccv_plus_sltu_set): Likewise.
4452 (uaddvdi4): New expander.
4453 (subvdi4): Likewise.
4454 (usubdi4_sp32): New instruction.
4455 (subvdi4_sp32): Likewise.
4456 (usubvsi4): New expander.
4457 (subvsi4): Likewise.
4458 (cmpsi_minus_sltu_set): New instruction.
4459 (cmp_ccv_minus): Likewise.
4460 (cmp_ccxv_minus): Likewise.
4461 (cmp_ccv_minus_set): Likewise.
4462 (cmp_ccxv_minus_set): Likewise.
4463 (cmp_ccv_minus_sltu_set): Likewise.
4464 (unegvdi3): New expander.
4465 (negvdi3): Likewise.
4466 (unegdi3_sp32): New instruction.
4467 (negvdi3_sp32): Likewise.
4468 (unegvsi3): New expander.
4469 (negvsi3): Likewise.
4470 (cmp_ccc_neg_sltu_set): New instruction.
4471 (cmp_ccv_neg): Likewise.
4472 (cmp_ccxv_neg): Likewise.
4473 (cmp_ccv_neg_set): Likewise.
4474 (cmp_ccxv_neg_set): Likewise.
4475 (cmp_ccv_neg_sltu_set): Likewise.
4476
4477 * tree-ssa-loop-split.c: Remove trailing spaces.
4478 * match.pd: Likewise.
4479
4480 2016-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4481
4482 PR rtl-optimization/78038
4483 * ree.c (get_defs): Return NULL if a defining insn for REG cannot
4484 be deduced to set REG through the RTL structure.
4485 (make_defs_and_copies_lists): Return false on a failing get_defs call.
4486
4487 2016-10-21 Richard Biener <rguenther@suse.de>
4488
4489 PR tree-optimization/78051
4490 * tree-vrp.c (evrp_dom_walker::before_dom_children): Update stmt
4491 and mark replaced if folding did something.
4492
4493 2016-10-21 David Edelsohn <dje.gcc@gmail.com>
4494
4495 * config/rs6000/rs6000.c (rs6000_assemble_visibility): Swap "internal"
4496 and "protected" in visibility types.
4497 (rs6000_xcoff_declare_function_name): Fix formatting.
4498 (rs6000_xcoff_declare_object_name): Fix formatting.
4499
4500 2016-10-21 Uros Bizjak <ubizjak@gmail.com>
4501
4502 * config/i386/i386.c (ix86_fold_builtin): Handle IX86_BUILTIN_INFQ
4503 and IX86_BUILTIN_HUGE_VALQ here ...
4504 (ix86_expand_builtin): ... not here.
4505
4506 2016-10-20 Jakub Jelinek <jakub@redhat.com>
4507
4508 * doc/gty.texi (for_user): Use @item next to @findex.
4509
4510 2016-10-20 Uros Bizjak <ubizjak@gmail.com>
4511
4512 PR target/78037
4513 * config/i386/bmiintrin.h (__tzcnt_u16): Call __builtin_ia32_tzcnt_u16.
4514 (__tzcnt_u32, _tzcnt_u32): Call __builtin_ia32_tzcnt_u32.
4515 (__tzcnt_u64, _tzcnt_u64): Call __builtin_ia32_tzcnt_u64.
4516 * config/i386/lzcntintrin.h (__lzcnt_u16): Call
4517 __builtin_ia32_lzcnt_u16.
4518 (__lzcnt_u32, _lzcnt_u32): Call __builtin_ia32_lzcnt_u32.
4519 (__lzcnt_u64, _lzcnt_u64): Call __builtin_ia32_lzcnt_u64.
4520 * config/i386/i386.md (UNSPEC_LZCNT, UNSPEC_TZCNT): New unspecs.
4521 (ctz<mode>2, *ctz<mode>2): Use SWI48 mode iterator.
4522 (bmi_tzcnt_<mode>): New expander.
4523 (*bmi_tzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
4524 (*bmi_tzcnt_<mode>_falsedep, *bmi_tzcnt_<mode>): New insn patterns.
4525 (clz<mode>2_lzcnt, *clz<mode>2_lzcnt): Use SWI48 mode iterator.
4526 (lzcnt_<mode>): New expander.
4527 (*lzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
4528 (*lzcnt_<mode>_falsedep, *lzcnt_<mode>): New insn patterns.
4529 * config/i386/i386-builtin-types.def (UINT_FTYPE_UINT): New.
4530 (UINT64_FTYPE_UINT64): New.
4531 * config/i386/i386-builtin.def (__builtin_clzs): Remove description.
4532 (__builtin_ia32_lzcnt_u16): New description.
4533 (__builtin_ia32_lzcnt_u32): Ditto.
4534 (__builtin_ia32_lzcnt_u64): Ditto.
4535 (__builtin_ctzs): Remove description.
4536 (__builtin_ia32_tzcnt_u16): New description.
4537 (__builtin_ia32_tzcnt_u32): Ditto.
4538 (__builtin_ia32_tzcnt_u64): Ditto.
4539 * config/i386/i386.c (ix86_expand_args_builtin): Handle
4540 UINT_FTYPE_UINT and UINT64_FTYPE_UINT64.
4541
4542 2016-10-20 Martin Liska <mliska@suse.cz>
4543
4544 PR lto/78049
4545 * lto-streamer-in.c (fixup_call_stmt_edges_1): Replace value
4546 comparison with STMT_UID_NOT_IN_RANGE.
4547 (fixup_call_stmt_edges): Do not fixup edges of a thunk in
4548 LTRANS.
4549
4550 2016-10-20 Eric Botcazou <ebotcazou@adacore.com>
4551
4552 * compare-elim.c (conforming_compare): Accept UNSPECs.
4553 (find_comparison_dom_walker::before_dom_children): Deal with
4554 instructions both using and killing the flags register.
4555 (equivalent_reg_at_start): New function extracted from...
4556 (try_eliminate_compare): ...here. Use it and add support for
4557 registers and UNSPECs as second operand of the compare.
4558 * config/visium/visium-modes.def (CCV): New.
4559 * config/visium/predicates.md (visium_v_comparison_operator): New.
4560 (visium_branch_operator): Deal with CCV mode.
4561 * config/visium/visium.c (visium_select_cc_mode): Likewise.
4562 (output_cbranch): Likewise.
4563 * config/visium/visium.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
4564 (uaddv<mode>4): New expander.
4565 (addv<mode>4): Likewise.
4566 (add<mode>3_insn_set_carry): New instruction.
4567 (add<mode>3_insn_set_overflow): Likewise.
4568 (addsi3_insn_set_overflow): Likewise.
4569 (usubv<mode>4): New expander.
4570 (subv<mode>4): Likewise.
4571 (sub<mode>3_insn_set_carry): New instruction.
4572 (sub<mode>3_insn_set_overflow): Likewise.
4573 (subsi3_insn_set_overflow): Likewise.
4574 (unegv<mode>3): New expander.
4575 (negv<mode>3): Likewise.
4576 (neg<mode>2_insn_set_overflow): New instruction.
4577 (addv_tst<mode>): Likewise.
4578 (subv_tst<mode>): Likewise.
4579 (negv_tst<mode>): Likewise.
4580 (cbranch<mode>4_addv_insn): New splitter and instruction.
4581 (cbranch<mode>4_subv_insn): Likewise.
4582 (cbranch<mode>4_negv_insn): Likewise.
4583
4584 2016-10-20 Richard Biener <rguenther@suse.de>
4585
4586 * tree-ssa-alias.c (ptrs_compare_unequal): Remove code duplication.
4587 Handle decls possibly not bound.
4588 * tree-ssa-structalias.c (get_constraint_for_ssa_var): Add
4589 nothing_id for decls that might not be bound if we are interested
4590 for the address.
4591 (get_constraint_for_component_ref): Deal with that.
4592
4593 2016-10-20 Michael Matz <matz@suse.de>
4594
4595 Loop splitting.
4596 * common.opt (-fsplit-loops): New flag.
4597 * passes.def (pass_loop_split): Add.
4598 * opts.c (default_options_table): Add OPT_fsplit_loops entry at -O3.
4599 (enable_fdo_optimizations): Add loop splitting.
4600 * timevar.def (TV_LOOP_SPLIT): Add.
4601 * tree-pass.h (make_pass_loop_split): Declare.
4602 * tree-ssa-loop-manip.h (rewrite_into_loop_closed_ssa_1): Declare.
4603 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h,
4604 * tree-ssa-loop-split.c: New file.
4605 * Makefile.in (OBJS): Add tree-ssa-loop-split.o.
4606 * doc/invoke.texi (fsplit-loops): Document.
4607 * doc/passes.texi (Loop optimization): Add paragraph about loop
4608 splitting.
4609
4610 2016-10-20 Richard Biener <rguenther@suse.de>
4611
4612 * cgraphunit.c (analyze_functions): Set node->definition to
4613 false to signal symbol removal to debug_hooks->late_global_decl.
4614 * ipa.c (symbol_table::remove_unreachable_nodes): When not in
4615 WPA signal symbol removal to the debuginfo machinery.
4616 * dwarf2out.c (dwarf2out_late_global_decl): Instead of
4617 using early_finised to guard the we're called for symbol
4618 removal case look at the symtabs definition flag.
4619 (gen_variable_die): Remove redundant check.
4620
4621 2016-10-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4622
4623 * config/s390/s390.md ("prefetch"): Add fallthrough comment.
4624
4625 2016-10-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4626
4627 PR tree-optimization/53979
4628 * match.pd ((a ^ b) | a -> a | b): New pattern.
4629
4630 2016-10-19 John David Anglin <danglin@gcc.gnu.org>
4631
4632 * config/pa/pa64-hpux.h (PA_INIT_FRAME_DUMMY_ASM_OP): Move to
4633 config/pa/pa64-hpux-lib.h.
4634 (PA_CRTBEGIN_HACK): Likewise.
4635 (DTOR_LIST_BEGIN): Likewise.
4636
4637 2016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
4638
4639 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
4640 register only if "in" and "out" are different registers.
4641
4642 2016-10-19 Eric Botcazou <ebotcazou@adacore.com>
4643
4644 * omp-low.c (pass_oacc_device_lower::gate): New method.
4645 (execute): Always call execute_oacc_device_lower.
4646
4647 2016-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4648
4649 PR tree-optimization/77916
4650 PR tree-optimization/77937
4651 * gimple-ssa-strength-reduction.c (analyze_increments): Remove
4652 stopgap fix.
4653 (insert_initializers): Requirement of initializer for -1 should be
4654 based on pointer-typedness of the candidate basis.
4655
4656 2016-10-19 Bin Cheng <bin.cheng@arm.com>
4657
4658 PR tree-optimization/78005
4659 * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Compute
4660 upper (included) bound for niters of prolog loop.
4661 (vect_gen_scalar_loop_niters): Change parameter VF to VFM1.
4662 Compute niters of scalar loop above which vectorized loop is
4663 preferred, as well as the upper (included) bound for the niters.
4664 (vect_do_peeling): Record niter bound for loops accordingly.
4665
4666 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
4667
4668 PR lto/77458
4669 * tree-core.h (enum tree_index): Put the complex types after their
4670 component types.
4671 * tree-streamer.c (verify_common_node_recorded): New function.
4672 (preload_common_nodes) <TREE_CODE (node) == COMPLEX_TYPE>: Use it.
4673
4674 2016-10-19 Martin Liska <mliska@suse.cz>
4675
4676 * cgraph.h (cgraph_edge::binds_to_current_def_p):
4677 Replace NULL with false as a return value.
4678
4679 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
4680
4681 PR tree-optimization/78024
4682 * omp-low.c (oacc_loop_discovery): Call clear_bb_flags before, and
4683 don't clear BB_VISITED after processing.
4684
4685 2016-10-19 Richard Biener <rguenther@suse.de>
4686
4687 * domwalk.c (dom_walker::walk): Use RPO order.
4688
4689 2016-10-19 Richard Biener <rguenther@suse.de>
4690
4691 * tree-vrp.c (evrp_dom_walker::evrp_dom_walker): Initialize
4692 stmts_to_remove.
4693 (evrp_dom_walker::~evrp_dom_walker): Free it.
4694 (evrp_dom_walker::stmts_to_remove): Add.
4695 (evrp_dom_walker::before_dom_children): Mark PHIs and stmts
4696 whose output we fully propagate for removal. Propagate
4697 into BB destination PHI arguments.
4698 (execute_early_vrp): Remove queued stmts. Dump value ranges
4699 before stmt removal.
4700
4701 2016-10-18 Aldy Hernandez <aldyh@redhat.com>
4702
4703 * Makefile.in (OBJS): Add gimple-ssa-warn-alloca.o.
4704 * passes.def: Add two instances of pass_walloca.
4705 * tree-pass.h (make_pass_walloca): New.
4706 * gimple-ssa-warn-alloca.c: New file.
4707 * doc/invoke.texi: Document -Walloca, -Walloca-larger-than=, and
4708 -Wvla-larger-than= options.
4709
4710 2016-10-18 Thomas Schwinge <thomas@codesourcery.com>
4711
4712 * cfg.c (clear_bb_flags): Use FOR_ALL_BB_FN.
4713 * config/nvptx/nvptx.c (nvptx_find_sese): Likewise.
4714
4715 2016-10-18 Kelvin Nilsen <kelvin@gcc.gnu.org>
4716
4717 * config/rs6000/altivec.h (vec_xl_len): New macro.
4718 (vec_xst_len): New macro.
4719 (vec_cmpnez): New macro.
4720 (vec_cntlz_lsbb): New macro.
4721 (vec_cnttz_lsbb): New macro.
4722 (vec_xlx): New macro.
4723 (vec_xrx): New macro.
4724 (vec_all_nez): New C++ predicate template.
4725 (vec_any_eqz): New C++ predicate template.
4726 (vec_all_ne): Revised C++ predicate template under _ARCH_PWR9
4727 conditional compilation.
4728 (vec_any_eq): Revised C++ predicate template under _ARCH_PWR9
4729 conditional compilation.
4730 (vec_all_nez): New macro.
4731 (vec_any_eqz): New macro.
4732 (vec_all_ne): Revised macro under _ARCH_PWR9 conditional
4733 compilation.
4734 (vec_any_eq): Revised macro under _ARCH_PWR9 conditional
4735 compilation.
4736 * config/rs6000/vector.md (VI): Moved this mode iterator
4737 definition from altivec.md to vector.md.
4738 (UNSPEC_NEZ_P): New value.
4739 (vector_ne_<mode>_p): New expansion for implementation of
4740 vec_all_ne and vec_any_eq built-in functions.
4741 (vector_nez_<mode>_p): New expansion for implementation of
4742 vec_all_nez and vec_any_eqz built-in functions.
4743 (vector_ne_v2di_p): New expansion for implementation of vec_all_ne
4744 and vec_any_eq built-in function.
4745 (cr6_test_for_zero): New commentary to explain this expansion.
4746 (cr6_test_for_zero_reverse): New commentary to explain this expansion.
4747 (cr6_test_for_lt): New commentary to explain this expansion.
4748 (cr6_test_for_lt_reverse): New commentary to explain this
4749 expansion.
4750 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4751 overloaded function prototypes for vec_all_ne, vec_all_nez,
4752 vec_any_eq, vec_any_eqz, vec_cmpnez, vec_cntlz_lsbb,
4753 vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx, and vec_xrx
4754 built-in functions.
4755 (altivec_resolve_overloaded_builtin): Modify the handling of
4756 ALTIVEC_BUILTIN_VEC_CMPNE to use the Power9 instructions when
4757 the compiler is configured to support TARGET_P9_VECTOR.
4758 * config/rs6000/rs6000-builtin.def (BU_ALTIVEC_P): Add commentary
4759 to explain the special processing that is given to predicate
4760 built-ins introduced using this macro.
4761 (BU_ALTIVEC_OVERLOAD_P): Add commentary to alert maintainers to
4762 the special processing given to predicate built-ins introduced
4763 using this macro.
4764 (BU_VSX_P): Likewise.
4765 (BU_P8V_AV_P): Likewise.
4766 (BU_P9V_AV_P): Likewise.
4767 (BU_P9V_AV_X): New macro.
4768 (BU_P9V_64BIT_AV_X): New macro.
4769 (BU_P9V_VSX_3): New macro.
4770 (BU_P9V_OVERLOAD_P): New macro.
4771 (LXVL): New BU_P9V_64BIT_VSX_2.
4772 (VEXTUBLX): New BU_P9V_AV_2.
4773 (VEXTUBRX): Likewise.
4774 (VEXTUHLX): Likewise.
4775 (VEXTUHRX): Likewise.
4776 (VEXTUWLX): Likewise.
4777 (VEXTUWRX): Likewise.
4778 (STXVL): New BU_P9V_64BIT_AV_X.
4779 (VCLZLSBB): New BU_P9V_AV_1.
4780 (VCTZLSBB): Likewise.
4781 (CMPNEB): New BU_P9V_AV_2.
4782 (CMPNEH): Likewise.
4783 (CMPNEW): Likewise.
4784 (CMPNEF): Likewise.
4785 (CMPNED): Likewise.
4786 (VCMPNEB_P): New BU_P9V_AV_P.
4787 (VCMPNEH_P): Likewise.
4788 (VCMPNEW_P): Likewise.
4789 (VCMPNED_P): Likewise.
4790 (VCMPNEFP_P): Likewise.
4791 (VCMPNEDP_P): Likewise.
4792 (CMPNEZB): New BU_P9V_AV_2.
4793 (CMPNEZH): Likewise.
4794 (CMPNEZW): Likewise.
4795 (VCMPNEZB_P): New BU_P9V_AV_P.
4796 (VCMPNEZH_P): Likewise.
4797 (VCMPNEZW_P): Likewise.
4798 (LXVL): New BU_P9V_OVERLOAD_2.
4799 (STXVL): New BU_P9V_OVERLOAD_3.
4800 (VEXTULX): New BU_P9V_OVERLOAD_2.
4801 (VEXTURX): Likewise.
4802 (CMPNEZ): Likewise.
4803 (VCMPNEZ_P): New BU_P9V_OVERLOAD_P.
4804 (VCMPNE_P): Likewise.
4805 (VCLZLSBB): New BU_P9V_OVERLOAD_1.
4806 (VCTZLSBB): Likewise.
4807 * config/rs6000/rs6000.c (altivec_expand_predicate_builtin): Add
4808 comment to explain mode used for scratch register.
4809 (altivec_expand_stxvl_builtin): New function.
4810 (altivec_expand_builtin): Add case for new constant P9V_BUILTIN_STXVL.
4811 (altivec_init_builtins): Add initialized variable
4812 void_ftype_v16qi_pvoid_long and use this type to define the
4813 built-in function __builtin_altivec_stxvl.
4814 * config/rs6000/vsx.md (UNSPEC_LXVL): New value.
4815 (UNSPEC_STXVL): New value.
4816 (UNSPEC_VCLZLSBB): New value.
4817 (UNSPEC_VCTZLSBB): New value.
4818 (UNSPEC_VEXTUBLX): New value.
4819 (UNSPEC_VEXTUHLX): New value.
4820 (UNSPEC_VEXTUWLX): New value.
4821 (UNSPEC_VEXTUBRX): New value.
4822 (UNSPEC_VEXTUHRX): New value.
4823 (UNSPEC_VEXTUWRX): New value.
4824 (UNSPEC_VCMPNEB): New value.
4825 (UNSPEC_VCMPNEZB): New value.
4826 (UNSPEC_VCMPNEH): New value.
4827 (UNSPEC_VCMPNEZH): New value.
4828 (UNSPEC_VCMPNEW): New value.
4829 (UNSPEC_VCMPNEZW): New value.
4830 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
4831 vector of integer modes.
4832 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
4833 vector of float or double modes.
4834 (*vector_nez_<mode>_p): New insn for vector test all not equal or
4835 zero.
4836 (lxvl): New expand for load VSX vector with length.
4837 (*lxvl): New insn for load VSX vector with length.
4838 (stxvl): New expand for store VSX vector with length.
4839 (*stxvl): New insn for store VSX vector with length.
4840 (vcmpneb): New insn for vector of byte compare not equal.
4841 (vcmpnezb): New insn for vector of byte compare not equal or zero.
4842 (vcmpneh): New insn for vector of half word compare not equal.
4843 (vcmpnezh): New insn for vector of half word compare not equal or
4844 zero.
4845 (vcmpnew): New insn for vector of word compare not equal.
4846 (vcmpne<VSs>): New insn for vector of float or double compare not
4847 equal.
4848 (vcmpnezw): New insn for vector of word compare not equal or zero.
4849 (vclzlsbb): New insn for vector count leading zero
4850 least-significant bits byte.
4851 (vctzlsbb): New insn for vector count trailing zero least
4852 signficant bits byte.
4853 (vextublx): New insn for vector extract unsigned byte left
4854 indexed.
4855 (vextubrx): New insn for vector extract unsigned byte right
4856 indexed.
4857 (vextuhlx): New insn for vector extract unsigned half word left
4858 indexed.
4859 (vextuhrx): New insn for vector extract unsigned half word right
4860 indexed.
4861 (vextuwlx): New insn for vector extract unsigned word left
4862 indexed.
4863 (vextuwrx): New insn for vector extract unsigned word right
4864 indexed.
4865 * config/rs6000/rs6000.h (RS6000_BTC_CONST): Enhance comment to
4866 clarify intent of this constant.
4867 * config/rs6000/altivec.md (VI): Move this mode iterator to vsx.md.
4868 * doc/extend.texi (PowerPC Altivec Built-in Functions): Add
4869 documentation for vec_all_nez, vec_any_eqz, vec_cmpnez,
4870 vec_cntlz_lsbb, vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx,
4871 and vec_xrx functions.
4872
4873 2016-10-18 Andrew Pinski <apinski@cavium.com>
4874
4875 PR tree-opt/65950
4876 * predict.c (is_exit_with_zero_arg): New function.
4877 (tree_bb_level_predictions): Don't consider paths leading to exit(0)
4878 as nottaken.
4879
4880 2016-10-18 Uros Bizjak <ubizjak@gmail.com>
4881
4882 PR target/77991
4883 * config/i386/i386.c (legitimize_tls_address)
4884 <case TLS_MODEL_INITIAL_EXEC>: For TARGET_64BIT || TARGET_ANY_GNU_TLS
4885 convert dest to Pmode if different than Pmode.
4886
4887 2016-10-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4888
4889 PR tree-optimization/77916
4890 * gimple-ssa-strength-reduction.c (analyze_increments): Reinstate
4891 stopgap fix, as pointers with -1 increment are still broken.
4892
4893 2016-10-18 David Edelsohn <dje.gcc@gmail.com>
4894
4895 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Move storage
4896 mapping class decoration from here...
4897 (rs6000_xcoff_encode_section): ...to here.
4898
4899 (rs6000_savres_strategy) [AIX,ELFv2]: Inline FPR save and restore
4900 if shrink-wrapping and optimizing for speed.
4901
4902 2016-10-18 Richard Biener <rguenther@suse.de>
4903
4904 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
4905 not visited but non-executable predecessors. Return taken edge.
4906 Simplify conditions and refactor propagation vs. folding step.
4907
4908 2016-10-18 Segher Boessenkool <segher@kernel.crashing.org>
4909
4910 * config/rs6000/rs6000.c (rs6000_savres_strategy): Do not select
4911 {SAVE,REST}_MULTIPLE if shrink-wrapping separate components.
4912 (rs6000_get_separate_components): Assert we do not have those
4913 strategies selected.
4914
4915 2016-10-18 Richard Biener <rguenther@suse.de>
4916
4917 * tree-ssa-propagate.h (substitute_and_fold): Adjust prototype.
4918 * tree-ssa-propagate.c (ssa_prop_fini): Remove final BB_VISITED
4919 clearing.
4920 (substitute_and_fold_dom_walker): Adjust constructor.
4921 (substitute_and_fold_dom_walker::before_dom_children): Remove
4922 do_dce flag and handling (always true).
4923 (substitute_and_fold): Likewise.
4924 * tree-vrp.c (vrp_finalize): Adjust.
4925 (execute_early_vrp): Remove final BB_VISITED clearing.
4926 * tree-ssa-ccp.c (ccp_finalize): Adjust.
4927 * tree-ssa-copy.c (fini_copy_prop): Likewise.
4928 * ira.c (ira): Call clear_bb_flags.
4929
4930 2016-10-18 Richard Biener <rguenther@suse.de>
4931
4932 * genmatch.c (dt_operand::gen_gimple_expr): Use get_name to
4933 get at the operand to look at with TREE_OPERAND for generic
4934 sub-nodes.
4935
4936 2016-10-18 David Malcolm <dmalcolm@redhat.com>
4937
4938 * genattrtab.c (attr_string): Use rtx_reader_ptr for call to
4939 copy_md_ptr_loc.
4940 (gen_attr): Use rtx_reader_ptr for lookup_enum_type call.
4941 (write_test_expr): Use rtx_reader_ptr for calls to
4942 fprint_c_condition.
4943 (write_attr_value): Likewise.
4944 * genconditions.c (write_one_condition): Use rtx_reader_ptr for
4945 call to print_md_ptr_loc.
4946 (write_one_condition): Likewise for calls to print_c_condition.
4947 * genconstants.c: Include "statistics.h" and "vec.h".
4948 (main): Update for conversion to member functions.
4949 * genemit.c (emit_c_code): Use rtx_reader_ptr for
4950 call to print_md_ptr_loc.
4951 * genenums.c: Include "statistics.h" and "vec.h".
4952 (main): Update for conversion of traverse_enum_types to a method.
4953 * genmddeps.c: Include "statistics.h" and "vec.h".
4954 * genoutput.c (process_template): Use rtx_reader_ptr for call to
4955 print_md_ptr_loc.
4956 * genpreds.c (write_predicate_subfunction): Likewise.
4957 (write_predicate_expr): Likewise for calls to print_c_condition.
4958 * genrecog.c (print_test): Likewise.
4959 * gensupport.c (process_rtx): Likewise for calls to
4960 copy_md_ptr_loc and join_c_conditions.
4961 (alter_test_for_insn): Likewise for call to join_c_conditions.
4962 (process_substs_on_one_elem): Likewise.
4963 (gen_mnemonic_setattr): Update for move of string_obstack to a
4964 field of rtx_reader.
4965 (mnemonic_htab_callback): Likewise. Fix formatting.
4966 (gen_mnemonic_attr): Likewise.
4967 * gentarget-def.c (def_target_insn): Use rtx_reader_ptr for calls
4968 to print_c_condition.
4969 * read-md.c: Include "statistics.h" and "vec.h".
4970 (string_obstack): Convert this global to field "m_string_obstack"
4971 of class rtx_reader.
4972 (ptr_locs): Likewise, as "m_ptr_locs".
4973 (ptr_loc_obstack): Likewise, as "m_ptr_loc_obstack".
4974 (joined_conditions): Likewise, as "m_joined_conditions".
4975 (joined_conditions_obstack): Likewise, as "m_joined_conditions_obstack".
4976 (md_constants): Likewise, as "m_md_constants".
4977 (enum_types): Likewise, as "m_enum_types".
4978 (set_md_ptr_loc): Convert to...
4979 (rtx_reader::set_md_ptr_loc): ...member function.
4980 (get_md_ptr_loc): Convert to...
4981 (rtx_reader::get_md_ptr_loc): ...member function.
4982 (copy_md_ptr_loc): Convert to...
4983 (rtx_reader::copy_md_ptr_loc): ...member function.
4984 (fprint_md_ptr_loc): Convert to...
4985 (rtx_reader::fprint_md_ptr_loc): ...member function.
4986 (print_md_ptr_loc): Convert to...
4987 (rtx_reader::print_md_ptr_loc): ...member function.
4988 (join_c_conditions): Convert to...
4989 (rtx_reader::join_c_conditions): ...member function.
4990 (fprint_c_condition): Convert to...
4991 (rtx_reader::fprint_c_condition): ...member function.
4992 (print_c_condition): Convert to...
4993 (rtx_reader::print_c_condition): ...member function.
4994 (read_name): Convert to...
4995 (rtx_reader::read_name): ...member function.
4996 (read_escape): Convert to...
4997 (rtx_reader::read_escape): ...member function.
4998 (read_quoted_string): Convert to...
4999 (rtx_reader::read_quoted_string): ...member function.
5000 (read_braced_string): Convert to...
5001 (rtx_reader::read_braced_string): ...member function.
5002 (read_string): Convert to...
5003 (rtx_reader::read_string): ...member function.
5004 (read_skip_construct): Convert to...
5005 (rtx_reader::read_skip_construct): ...member function.
5006 (handle_constants): Convert to...
5007 (rtx_reader::handle_constants): ...member function.
5008 (traverse_md_constants): Convert to...
5009 (rtx_reader::traverse_md_constants): ...member function.
5010 (handle_enum): Convert to...
5011 (rtx_reader::handle_enum): ...member function.
5012 (lookup_enum_type): Convert to...
5013 (rtx_reader::lookup_enum_type): ...member function.
5014 (traverse_enum_types): Convert to...
5015 (rtx_reader::traverse_enum_types): ...member function.
5016 (rtx_reader::rtx_reader): Move initializations
5017 of various former global data from rtx_reader::read_md_files to
5018 here, as fields, along with the call to unlock_std_streams.
5019 (rtx_reader::~rtx_reader): Clean up m_base_dir, and clean up
5020 the new fields.
5021 (rtx_reader::read_md_files): Move initializations of various
5022 global data from here to the ctor.
5023 * read-md.h (read_name): Convert to...
5024 (rtx_reader::read_name): ...member function.
5025 (rtx_reader::read_escape): New method decl.
5026 (read_quoted_string): Convert to...
5027 (rtx_reader::read_quoted_string): ...member function.
5028 (rtx_reader::read_braced_string): New method decl.
5029 (read_string): Convert to...
5030 (rtx_reader::read_string): ...member function.
5031 (rtx_reader::read_skip_construct): New method decl.
5032 (rtx_reader::set_md_ptr_loc): New method decl.
5033 (rtx_reader::get_md_ptr_loc): New method decl.
5034 (copy_md_ptr_loc): Convert to...
5035 (rtx_reader::copy_md_ptr_loc): ...member function.
5036 (fprint_md_ptr_loc): Convert to...
5037 (rtx_reader::fprint_md_ptr_loc): ...member function.
5038 (print_md_ptr_loc): Convert to...
5039 (rtx_reader::print_md_ptr_loc): ...member function.
5040 (rtx_reader::lookup_enum_type): New method decl.
5041 (rtx_reader::traverse_enum_types): New method decl.
5042 (rtx_reader::handle_constants): New method decl.
5043 (traverse_md_constants): Convert to...
5044 (rtx_reader::traverse_md_constants): ...member function.
5045 (rtx_reader::handle_enum): New method decl.
5046 (rtx_reader::join_c_conditions): New method decl.
5047 (fprint_c_condition): Convert to...
5048 (rtx_reader::fprint_c_condition): ...member function.
5049 (print_c_condition): Convert to...
5050 (rtx_reader::print_c_condition): ...member function.
5051 (rtx_reader::apply_iterator_to_string): New method decl.
5052 (rtx_reader::copy_rtx_for_iterators): New method decl.
5053 (rtx_reader::read_conditions): New method decl.
5054 (rtx_reader::record_potential_iterator_use): New method decl.
5055 (rtx_reader::read_mapping): New method decl.
5056 (rtx_reader::read_rtx): New method decl.
5057 (rtx_reader::read_rtx_code): New method decl.
5058 (rtx_reader::read_rtx_operand): New method decl.
5059 (rtx_reader::read_nested_rtx): New method decl.
5060 (rtx_reader::read_rtx_variadic): New method decl.
5061 (rtx_reader::get_string_obstack): New method.
5062 (rtx_reader::get_md_constants): New method.
5063 (string_obstack): Convert global variable decl to...
5064 (rtx_reader::m_string_obstack): ...this new field.
5065 (rtx_reader::m_ptr_locs): New field.
5066 (rtx_reader::m_ptr_loc_obstack): New field.
5067 (rtx_reader::m_joined_conditions): New field.
5068 (rtx_reader::m_joined_conditions_obstack): New field.
5069 (rtx_reader::m_md_constants): New field.
5070 (rtx_reader::m_enum_types): New field.
5071 * read-rtl.c (apply_iterator_to_string): Convert to...
5072 (rtx_reader::apply_iterator_to_string): ...member function.
5073 (copy_rtx_for_iterators): Convert to...
5074 (rtx_reader::copy_rtx_for_iterators): ...member function.
5075 (add_condition_to_string): Use rtx_reader_ptr for
5076 calls join_c_conditions.
5077 (apply_iterators): Use rtx_reader_ptr for calls to
5078 join_c_conditions and copy_rtx_for_iterators.
5079 (read_conditions): Convert to...
5080 (rtx_reader::read_conditions): ...member function.
5081 (record_potential_iterator_use): Convert to...
5082 (rtx_reader::record_potential_iterator_use): ...member function.
5083 (read_mapping): Convert to...
5084 (rtx_reader::read_mapping): ...member function.
5085 (read_subst_mapping): Use rtx_reader_ptr for read_string call.
5086 (read_rtx): Convert to...
5087 (rtx_reader::read_rtx): ...member function.
5088 (read_rtx_code): Convert to...
5089 (rtx_reader::read_rtx_code): ...member function.
5090 (read_rtx_operand): Convert to...
5091 (rtx_reader::read_rtx_operand): ...member function. Update for move
5092 of string_obstack to a field.
5093 (read_nested_rtx): Convert to..
5094 (rtx_reader::read_nested_rtx): ...member function.
5095 (read_rtx_variadic): Convert to..
5096 (rtx_reader::read_rtx_variadic): ...member function.
5097
5098 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
5099
5100 * tree-vrp.c (get_value_range): Check get_ptr_nonnull.
5101
5102 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
5103
5104 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Set value range
5105 for pointer type too.
5106 (ipcp_update_vr): set_ptr_nonnull for pointer.
5107
5108 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
5109
5110 * tree-ssa-alias.h (pt_solution_singleton_or_null_p): Renamed from
5111 pt_solution_singleton_p.
5112 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use renamed
5113 pt_solution_singleton_or_null_p from pt_solution_singleton_p.
5114 * tree-ssa-structalias.c (find_what_p_points_to): Preserve
5115 pointer nonnull computed by VRP.
5116 Also Conservatively set pt.null to 1.
5117 (pt_solution_reset): Conservatively set pt.null to 1.
5118 (pt_solution_singleton_or_null_p): Renamed from
5119 pt_solution_singleton_p.
5120 * tree-ssanames.h (set_ptr_nonnull): Declare.
5121 (get_ptr_nonnull): Likewise.
5122 * tree-ssanames.c (set_ptr_nonnull): New.
5123 (get_ptr_nonnull): Likewise.
5124 * tree-vrp.c (vrp_finalize): Set ptr that are nonnull.
5125 (evrp_dom_walker::before_dom_children): Likewise.
5126
5127 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
5128
5129 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
5130 * config/i386/i386.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
5131 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
5132 * config/ia64/ia64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
5133 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to.
5134 * config/rs6000/rs6000.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
5135 (rs6000_option_override_internal): Clear it if ABI_AIX.
5136 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
5137 * config/sparc/sparc.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ... here.
5138
5139 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5140
5141 * gimple-ssa-strength-reduction.c (record_increment): Remove
5142 garbage comment.
5143
5144 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
5145
5146 * expmed.c (expand_shift_1): Add MAY_FAIL parameter and do not assert
5147 that the result is non-zero if it is true.
5148 (maybe_expand_shift): New wrapper around expand_shift_1.
5149 (emit_store_flag): Call maybe_expand_shift in lieu of expand_shift.
5150
5151 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5152
5153 PR tree-optimization/77916
5154 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
5155 Don't allow a MINUS_EXPR for pointer arithmetic for either known
5156 or unknown strides.
5157 (record_increment): Increments of -1 for unknown strides just use
5158 a multiply initializer like other negative values.
5159 (analyze_increments): Remove stopgap solution for -1 increment
5160 applied to pointer arithmetic.
5161
5162 2016-10-17 Yuri Rumyantsev <ysrumyan@gmail.com>
5163
5164 * dominance.c (dom_info::dom_info): Add new constructor for region
5165 which is vector of basic blocks.
5166 (dom_init): New method to initialize members common for both
5167 constructors.
5168 (dom_info::dom_info): Invoke dom_init for partial initialization.
5169 (dom_info::get_idom): Add check to corner cases on basic blocks which
5170 are not in region.
5171 (dom_info::calc_dfs_tree): Check M_FAKE_EXIT_EDGE instead of M_REVERSE
5172 to detect unreachable bbs.
5173 (dom_info::calc_idoms): Likewise.
5174 (compute_dom_fast_query_in_region): New function.
5175 (calculate_dominance_info_for_region): Likewise.
5176 (free_dominance_info_for_region): Likewise.
5177 * dominance.h: Add prototypes for introduced region-based functions
5178 * tree-if-conv.c (build_region): New function.
5179 (if_convertible_loop_p_1): Invoke local version of post-dominators
5180 calculation before basic block predication with subsequent freeing
5181 post-dominator info.
5182 (tree_if_conversion): Remove free of post-dominator info
5183 (pass_if_conversion::execute): Delete detection of infinite loops
5184 and fake edges to exit block since post-dominator calculation is
5185 performed per if-converted loop only.
5186
5187 2016-10-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
5188
5189 PR target/77308
5190 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
5191 register explicitly.
5192 * config/arm/arm.md (ashldi3, ashrdi3, lshrdi3): Don't FAIL if
5193 optimizing for size.
5194
5195 2016-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5196
5197 * config/aarch64/aarch64.c: Delete inclusion of
5198 cortex-a57-fma-steering.h.
5199 (aarch64_override_options): Delete call
5200 to aarch64_register_fma_steering.
5201 * config/aarch64/aarch64-protos.h (make_pass_fma_steering): Declare.
5202 * config/aarch64/cortex-a57-fma-steering.h: Delete.
5203 * config/aarch64/aarch64-passes.def: New file.
5204 * config/aarch64/cortex-a57-fma-steering.c
5205 (aarch64_register_fma_steering): Delete definition.
5206 (make_pass_fma_steering): Remove static qualifier.
5207 * config/aarch64/t-aarch64 (PASSES_EXTRA): New directive.
5208 (cortex-a57-fma-steering.o): Remove dependency on
5209 cortex-a57-fma-steering.h.
5210
5211 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
5212
5213 * explow.c (validize_mem): Do not modify the argument in-place.
5214
5215 2016-10-17 Thomas Schwinge <thomas@codesourcery.com>
5216
5217 * tree-streamer.c (record_common_node): Explicitly list expected
5218 tree codes.
5219
5220 2016-10-17 Richard Biener <rguenther@suse.de>
5221
5222 PR tree-optimization/77988
5223 * tree-vrp.c (remove_range_assertions): Use replace_uses_by.
5224
5225 2016-10-17 Marek Polacek <polacek@redhat.com>
5226
5227 * Makefile.in (C_COMMON_OBJS): Add c-family/c-attribs.o.
5228
5229 2016-10-17 Richard Biener <rguenther@suse.de>
5230
5231 * bb-reorder.c (reorder_basic_blocks_simple): Clear BB_VISITED
5232 before using it.
5233
5234 2016-10-17 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5235
5236 PR tree-optimization/71636
5237 * match.pd (x & ((1 << b) - 1) -> x & ~(~0 << b)): New pattern.
5238
5239 2016-10-17 Richard Biener <rguenther@suse.de>
5240
5241 * gimplify.c (gimplify_function_tree): Do not move the outer
5242 binds block.
5243
5244 2016-10-17 Jakub Jelinek <jakub@redhat.com>
5245
5246 * langhooks.h (struct lang_hooks_for_decls): Remove
5247 function_decl_explicit_p, function_decl_deleted_p and
5248 function_decl_defaulted hooks. Add decl_dwarf_attribute hook.
5249 * langhooks-def.h (lhd_decl_dwarf_attribute): Declare.
5250 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
5251 LANG_HOOKS_FUNCTION_DECL_DELETED_P,
5252 LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Remove.
5253 (LANG_HOOKS_DECL_DWARF_ATTRIBUTE): Define.
5254 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
5255 LANG_HOOKS_FUNCTION_DECL_DELETED_P and
5256 LANG_HOOKS_FUNCTION_DECL_DEFAULTED. Add
5257 LANG_HOOKS_DECL_DWARF_ATTRIBUTE.
5258 * langhooks.c (lhd_decl_dwarf_attribute): New function.
5259 * dwarf2out.c (gen_subprogram_die): Use
5260 lang_hooks.decls.decl_dwarf_attribute instead of
5261 lang_hooks.decls.function_decl_*.
5262
5263 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
5264
5265 PR ada/37139
5266 PR ada/67205
5267 * common.opt (-ftrampolines): New option.
5268 * doc/invoke.texi (Code Gen Options): Document it.
5269 * doc/tm.texi.in (Trampolines): Add TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
5270 * doc/tm.texi: Regenerate.
5271 * builtins.def: Add init_descriptor and adjust_descriptor.
5272 * builtins.c (expand_builtin_init_trampoline): Do not issue a warning
5273 on platforms with descriptors.
5274 (expand_builtin_init_descriptor): New function.
5275 (expand_builtin_adjust_descriptor): Likewise.
5276 (expand_builtin) <BUILT_IN_INIT_DESCRIPTOR>: New case.
5277 <BUILT_IN_ADJUST_DESCRIPTOR>: Likewise.
5278 * calls.c (prepare_call_address): Remove SIBCALLP parameter and add
5279 FLAGS parameter. Deal with indirect calls by descriptor and adjust.
5280 Set STATIC_CHAIN_REG_P on the static chain register, if any.
5281 (call_expr_flags): Set ECF_BY_DESCRIPTOR for calls by descriptor.
5282 (expand_call): Likewise. Move around call to prepare_call_address
5283 and pass all flags to it.
5284 * cfgexpand.c (expand_call_stmt): Reinstate CALL_EXPR_BY_DESCRIPTOR.
5285 * gimple.h (enum gf_mask): New GF_CALL_BY_DESCRIPTOR value.
5286 (gimple_call_set_by_descriptor): New setter.
5287 (gimple_call_by_descriptor_p): New getter.
5288 * gimple.c (gimple_build_call_from_tree): SetCALL_EXPR_BY_DESCRIPTOR.
5289 (gimple_call_flags): Deal with GF_CALL_BY_DESCRIPTOR.
5290 * langhooks.h (struct lang_hooks): Add custom_function_descriptors.
5291 * langhooks-def.h (LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS): Define.
5292 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS.
5293 * rtl.h (STATIC_CHAIN_REG_P): New macro.
5294 * rtlanal.c (find_first_parameter_load): Skip static chain registers.
5295 * target.def (custom_function_descriptors): New POD hook.
5296 * tree.h (FUNC_ADDR_BY_DESCRIPTOR): New flag on ADDR_EXPR.
5297 (CALL_EXPR_BY_DESCRIPTOR): New flag on CALL_EXPR.
5298 * tree-core.h (ECF_BY_DESCRIPTOR): New mask.
5299 Document FUNC_ADDR_BY_DESCRIPTOR and CALL_EXPR_BY_DESCRIPTOR.
5300 * tree.c (make_node_stat) <tcc_declaration>: Use FUNCTION_ALIGNMENT.
5301 (build_common_builtin_nodes): Initialize init_descriptor and
5302 adjust_descriptor.
5303 * tree-nested.c: Include target.h.
5304 (struct nesting_info): Add 'any_descr_created' field.
5305 (get_descriptor_type): New function.
5306 (lookup_element_for_decl): New function extracted from...
5307 (create_field_for_decl): Likewise.
5308 (lookup_tramp_for_decl): ...here. Adjust.
5309 (lookup_descr_for_decl): New function.
5310 (convert_tramp_reference_op): Deal with descriptors.
5311 (build_init_call_stmt): New function extracted from...
5312 (finalize_nesting_tree_1): ...here. Adjust and deal with descriptors.
5313 * defaults.h (FUNCTION_ALIGNMENT): Define.
5314 (TRAMPOLINE_ALIGNMENT): Set to above instead of FUNCTION_BOUNDARY.
5315 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
5316 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
5317 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS):Likewise.
5318 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
5319
5320 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
5321
5322 * config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
5323 constants in CONST_VECTORs.
5324
5325 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
5326
5327 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
5328 register as destination of bmask.
5329 (vector_init_bshuffle): Likewise.
5330 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
5331 (bmaskdi_vis): Enable only in 64-bit mode.
5332
5333 2016-10-15 Segher Boessenkool <segher@kernel.crashing.org>
5334
5335 * config/rs6000/rs6000.c (rs6000_get_separate_components): Do not
5336 make LR a separately shrink-wrapped component unless savres_strategy
5337 contains all of {SAVE,REST}_INLINE_{GPRS,FPRS,VRS}. Do not wrap
5338 GPRs unless both {SAVE,REST}_INLINE_GPRS. Do not disallow all
5339 wrapping when not both {SAVE,REST}_INLINE_GPRS.
5340
5341 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
5342
5343 * optabs.c (expand_parity): Fix mode mismatch, add final conversion
5344 and keep looping on failure.
5345
5346 2016-10-14 David Malcolm <dmalcolm@redhat.com>
5347
5348 * print-rtl-function.c (print_edge): Omit "(flags)" when none are
5349 set.
5350 (print_rtx_function): Update example in comment for...
5351 * print-rtl.c (print_rtx_operand_code_r): In compact mode, print
5352 non-virtual pseudos with a '%' sigil followed by the regno, offset
5353 by (LAST_VIRTUAL_REGISTER + 1), so that the first non-virtual
5354 pseudo is dumped as "%0".
5355
5356 2016-10-14 Jakub Jelinek <jakub@redhat.com>
5357
5358 PR middle-end/77959
5359 * expr.c (expand_expr_real_1) <case CONST_DECL>: For EXPAND_WRITE
5360 return a MEM.
5361
5362 2016-10-14 Eric Botcazou <ebotcazou@adacore.com>
5363
5364 * config/sparc/sparc-passes.def: New file.
5365 * config/sparc/t-sparc (PASSES_EXTRA): Add sparc-passes.def.
5366 * config/sparc/sparc-protos.h (make_pass_work_around_errata): New.
5367 * config/sparc/sparc.c (sparc_option_override): Don't register passes.
5368
5369 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
5370
5371 * loop-unroll.c (unroll_loop_runtime_iterations): Condition initial
5372 loop peel to loops with exit test at the beginning.
5373
5374 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
5375
5376 PR rtl-optimization/68212
5377 * cfgloopmanip.c (duplicate_loop_to_header_edge): Use preheader edge
5378 frequency when computing scale factor for peeled copies.
5379 * loop-unroll.c (unroll_loop_runtime_iterations): Fix freq/count
5380 values for switch/peel blocks/edges.
5381
5382 2016-10-14 Pedro Alves <palves@redhat.com>
5383
5384 * coretypes.h (OVERRIDE, FINAL): Delete, moved to include/ansidecl.h.
5385
5386 2016-10-14 Catherine Moore <clm@codesourcery.com>
5387
5388 * config/mips/mips.c (mips_prepare_pch_save): Initialize
5389 micromips_globals to zero.
5390
5391 2016-10-14 Richard Biener <rguenther@suse.de>
5392
5393 PR tree-optimization/77979
5394 * tree-vrp.c (compare_name_with_value): Handle released SSA names
5395 in the equivalency sets.
5396 (compare_names): Likewise.
5397
5398 2016-10-14 Martin Liska <mliska@suse.cz>
5399
5400 * builtins.h(target_char_cst_p): Declare the function.
5401 * builtins.c (fold_builtin_memchr): Remove.
5402 (target_char_cst_p): Move the function from gimple-fold.c.
5403 (fold_builtin_3): Do not call the function.
5404 * gimple-fold.c (gimple_fold_builtin_memchr): New function.
5405 (gimple_fold_builtin): Call the function.
5406 * fold-const-call.c (fold_const_call_1): Handle CFN_BUILT_IN_MEMCHR.
5407
5408 2016-10-14 Martin Liska <mliska@suse.cz>
5409
5410 * builtins.c (fold_builtin_strcmp): Remove function.
5411 (fold_builtin_strncmp): Likewise.
5412 (fold_builtin_2): Remove call of the function.
5413 (fold_builtin_3): Likewise.
5414 * fold-const-call.c (fold_const_call): Add constant folding
5415 for CFN_BUILT_IN_STRCASECMP and CFN_BUILT_IN_STRNCASECMP.
5416 * fold-const-call.h (build_cmp_result): Declare the function.
5417 * gimple-fold.c (gimple_load_first_char): New function.
5418 (gimple_fold_builtin_string_compare): Likewise.
5419 (gimple_fold_builtin): Call the function.
5420
5421 2016-10-14 Nathan Sidwell <nathan@acm.org>
5422
5423 * gcov-io.c (gcov_open): Deconstify 'mode'.
5424
5425 2016-10-14 Martin Liska <mliska@suse.cz>
5426
5427 * fold-const.c (c_getstr): Support of properly \0-terminated
5428 string constants. New argument is added.
5429 * fold-const.h: New argument is added.
5430
5431 2016-10-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5432
5433 * config/aarch64/aarch64.c (aarch64_print_hint_for_core_or_arch):
5434 New function.
5435 (aarch64_print_hint_for_core): Likewise.
5436 (aarch64_print_hint_for_arch): Likewise.
5437 (aarch64_validate_march): Use it. Fix indentation in type signature.
5438 (aarch64_validate_mcpu): Use aarch64_print_hint_for_core_or_arch.
5439 (aarch64_validate_mtune): Likewise.
5440 (aarch64_handle_attr_arch): Likewise.
5441 (aarch64_handle_attr_cpu): Likewise.
5442 (aarch64_handle_attr_tune): Likewise.
5443
5444 2016-10-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5445
5446 * optabs.def: Remove optab function gen_int_libfunc for sdivmod_optab
5447 and udivmod_optab.
5448
5449 2016-10-13 Andreas Schwab <schwab@linux-m68k.org>
5450
5451 * config/m68k/m68k.c (m68k_option_override): Check
5452 opt_fstack_limit_symbol_arg and opt_fstack_limit_register_no
5453 instead of stack_limit_rtx.
5454
5455 2016-10-13 Jakub Jelinek <jakub@redhat.com>
5456
5457 * dwarf2out.c (gen_member_die): Handle inline static data member
5458 definitions.
5459
5460 2016-10-13 Nathan Sidwell <nathan@acm.org>
5461
5462 * gcov-io.c (gcov_open): Fix documentation. Simplify setting
5463 gcov_var.mode. Remove unnecessary fstat.
5464
5465 2016-10-13 Segher Boessenkool <segher@kernel.crashing.org>
5466
5467 PR bootstrap/77962
5468 * function.c (thread_prologue_and_epilogue_insns): Call all
5469 make_*logue_seq in the same order as traditional. Call them
5470 all a second time if shrink_wrapped_separate.
5471
5472 2016-10-13 Marek Polacek <polacek@redhat.com>
5473
5474 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
5475 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Don't
5476 use -Wno-error.
5477
5478 2016-10-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5479
5480 PR tree-optimization/77937
5481 * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
5482 to infinite when we have a pointer with an increment of -1.
5483
5484 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
5485
5486 * coretypes.h: Move MEMMODEL_* macros and enum memmodel definition
5487 into ...
5488 * memmodel.h: This file.
5489 * alias.c, asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
5490 caller-save.c, calls.c, ccmp.c, cfgbuild.c, cfgcleanup.c,
5491 cfgexpand.c, cfgloopanal.c, cfgrtl.c, cilk-common.c, combine.c,
5492 combine-stack-adj.c, common/config/aarch64/aarch64-common.c,
5493 common/config/arm/arm-common.c, common/config/bfin/bfin-common.c,
5494 common/config/c6x/c6x-common.c, common/config/i386/i386-common.c,
5495 common/config/ia64/ia64-common.c, common/config/nvptx/nvptx-common.c,
5496 compare-elim.c, config/aarch64/aarch64-builtins.c,
5497 config/aarch64/aarch64-c.c, config/aarch64/cortex-a57-fma-steering.c,
5498 config/arc/arc.c, config/arc/arc-c.c, config/arm/arm-builtins.c,
5499 config/arm/arm-c.c, config/avr/avr.c, config/avr/avr-c.c,
5500 config/avr/avr-log.c, config/bfin/bfin.c, config/c6x/c6x.c,
5501 config/cr16/cr16.c, config/cris/cris.c, config/darwin-c.c,
5502 config/darwin.c, config/epiphany/epiphany.c,
5503 config/epiphany/mode-switch-use.c,
5504 config/epiphany/resolve-sw-modes.c, config/fr30/fr30.c,
5505 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
5506 config/i386/i386-c.c, config/i386/winnt.c, config/iq2000/iq2000.c,
5507 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
5508 config/m68k/m68k.c, config/mcore/mcore.c,
5509 config/microblaze/microblaze.c, config/mmix/mmix.c,
5510 config/mn10300/mn10300.c, config/moxie/moxie.c,
5511 config/msp430/msp430.c, config/nds32/nds32-cost.c,
5512 config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
5513 config/nds32/nds32-memory-manipulation.c,
5514 config/nds32/nds32-predicates.c, config/nds32/nds32.c,
5515 config/nios2/nios2.c, config/nvptx/nvptx.c, config/pa/pa.c,
5516 config/pdp11/pdp11.c, config/rl78/rl78.c, config/rs6000/rs6000-c.c,
5517 config/rx/rx.c, config/s390/s390-c.c, config/s390/s390.c,
5518 config/sh/sh.c, config/sh/sh-c.c, config/sh/sh-mem.cc,
5519 config/sh/sh_treg_combine.cc, config/sol2.c, config/spu/spu.c,
5520 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
5521 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
5522 config/visium/visium.c, config/vms/vms-c.c, config/xtensa/xtensa.c,
5523 coverage.c, cppbuiltin.c, cprop.c, cse.c, cselib.c, dbxout.c, dce.c,
5524 df-core.c, df-problems.c, df-scan.c, dojump.c, dse.c, dwarf2asm.c,
5525 dwarf2cfi.c, dwarf2out.c, emit-rtl.c, except.c, explow.c, expmed.c,
5526 expr.c, final.c, fold-const.c, function.c, fwprop.c, gcse.c,
5527 ggc-page.c, haifa-sched.c, hsa-brig.c, hsa-gen.c, hw-doloop.c,
5528 ifcvt.c, init-regs.c, internal-fn.c, ira-build.c, ira-color.c,
5529 ira-conflicts.c, ira-costs.c, ira-emit.c, ira-lives.c, ira.c, jump.c,
5530 loop-doloop.c, loop-invariant.c, loop-iv.c, loop-unroll.c,
5531 lower-subreg.c, lra.c, lra-assigns.c, lra-coalesce.c,
5532 lra-constraints.c, lra-eliminations.c, lra-lives.c, lra-remat.c,
5533 lra-spills.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
5534 postreload-gcse.c, postreload.c, predict.c, print-rtl-function.c,
5535 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
5536 reload.c, reload1.c, reorg.c, resource.c, rtl-chkp.c, rtl-tests.c,
5537 rtlanal.c, rtlhooks.c, sched-deps.c, sched-rgn.c, sdbout.c,
5538 sel-sched-ir.c, sel-sched.c, shrink-wrap.c, simplify-rtx.c,
5539 stack-ptr-mod.c, stmt.c, stor-layout.c, target-globals.c,
5540 targhooks.c, toplev.c, tree-nested.c, tree-outof-ssa.c,
5541 tree-profile.c, tree-ssa-coalesce.c, tree-ssa-ifcombine.c,
5542 tree-ssa-loop-ivopts.c, tree-ssa-loop.c, tree-ssa-reassoc.c,
5543 tree-ssa-sccvn.c, tree-vect-data-refs.c, ubsan.c, valtrack.c,
5544 var-tracking.c, varasm.c: Include memmodel.h.
5545 * genattrtab.c (write_header): Include memmodel.h in generated file.
5546 * genautomata.c (main): Likewise.
5547 * gengtype.c (open_base_files): Likewise.
5548 * genopinit.c (main): Likewise.
5549 * genconditions.c (write_header): Include memmodel.h earlier in
5550 generated file.
5551 * genemit.c (main): Likewise.
5552 * genoutput.c (output_prologue): Likewise.
5553 * genpeep.c (main): Likewise.
5554 * genpreds.c (write_insn_preds_c): Likewise.
5555 * genrecog.c (write_header): Likewise.
5556 * Makefile.in (PLUGIN_HEADERS): Include memmodel.h
5557
5558 2016-10-13 David Malcolm <dmalcolm@redhat.com>
5559
5560 * function-tests.c (selftest::test_expansion_to_rtl): Add "true"
5561 for new "compact" param of print_rtx_function. Check for "cinsn"
5562 rather than "insn".
5563 * print-rtl-function.c (flag_compact): New decl.
5564 (print_rtx_function): Add param "compact" and use it to set
5565 flag_compact, adding a description of the effect to the leading
5566 comment, and updating the example output.
5567 * print-rtl.c (flag_compact): New variable.
5568 (print_rtx_operand_code_0): Omit the JUMP_LABEL reference in compact
5569 mode.
5570 (print_rtx_operand_code_i): When printing source locations, wrap
5571 xloc.file in quotes. Don't print INSN_CODEs in compact mode.
5572 (print_rtx_operand_code_r): Don't print regnos for hard regs and
5573 virtuals in compact mode.
5574 (print_rtx_operand_code_u): Don't print insn UIDs in compact mode,
5575 apart from in LABEL_REFs.
5576 (print_rtx_operand): In case 'w', don't print in hex in compact mode.
5577 Don't print basic block ids in compact mode.
5578 (print_rtx): In compact mode, prefix the code of insns with "c",
5579 only print the INSN_UID of CODE_LABELs, and omit their LABEL_NUSES.
5580 * print-rtl.h (print_rtx_function): Add "compact" param.
5581
5582 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
5583
5584 * arm.h (TARGET_VFP): Delete.
5585 (TARGET_VFPD32): Remove references to TARGET_VFP.
5586 (TARGET_VFP3, TARGET_VFP5): Likewise.
5587 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Likewise.
5588 (TARGET_NEON_FP16): Likewise.
5589 (TARGET_FMA): Likewise.
5590 (TARGET_CRYPTO): Likewise.
5591 (TARGET_NEON): Likewise.
5592 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
5593 (FUNCTION_ARG_REGNO_P): Likewise.
5594 * arm.c (arm_option_check_internal): Likewise.
5595 (arm_option_override): Likewise.
5596 (use_return_insn): Likewise.
5597 (arm_function_value_regno_p): Likewise.
5598 (arm_apply_result_size): Likewise.
5599 (use_vfp_abi): Likewise.
5600 (arm_legitimate_address_outer_p): Likewise.
5601 (thumb2_legitimate_address_p): Likewise.
5602 (arm_legitimate_index_p): Likewise.
5603 (thumb2_legitimate_index_p): Likewise.
5604 (arm_legitimate_address): Likewise.
5605 (arm_get_vfp_saved_size): Likewise.
5606 (arm_emit_vfp_multi_reg_pop): Likewise.
5607 (arm_get_frame_offsets): Likewise.
5608 (arm_save_coproc_regs): Likewise.
5609 (arm_hard_regno_mode_ok): Likewise.
5610 (arm_expand_epilogue_apcs_frame): Likewise.
5611 (arm_expand_epilogue): Likewise.
5612 (arm_file_start): Likewise.
5613 (arm_conditional_register_usage): Likewise.
5614 (arm_validize_comparison): Use vfp_compare_operand directly.
5615 * arm-builtins.c (arm_init_builtins): Remove references to TARGET_VFP.
5616 (arm_expand_vfp_builtin): Use TARGET_HARD_FLOAT for detecting
5617 unsupported usage.
5618 (arm_atomic_assign_expand_fenv): Likewise.
5619 * arm.md (divsf3): Likewise.
5620 (arm_negsi2): Likewise.
5621 (absdf2): Likewise.
5622 (arm_movdi): Likewise.
5623 (arm_movt): Likewise.
5624 (cbranchsf4): Change predicate to vfp_compare_operand.
5625 (cbranchdf4): Change predicate to vfp_compare_operand.
5626 (cstorehf4): Change predicate to vfp_compare_operand.
5627 (cstoresf4): Change predicate to vfp_compare_operand.
5628 (cstoredf4): Change predicate to vfp_compare_operand.
5629 (vfp_pop_multiple_with_writeback): Remove references to TARGET_VFP.
5630 (movhi_insn_arch4, movhi_bytes): Likewise.
5631 * constraints.md (Dt): Likewise.
5632 (Dp): Likewise.
5633 * iterators.md (SDF): Likewise.
5634 * predicates.md (arm_float_compare_operand): Delete.
5635 (const_double_vcvt_power_of_two_reciprocal): Remove references to
5636 TARGET_VFP.
5637 (const_double_vcvt_power_of_two): Likewise.
5638 * thumb2.md thumb2_movsi_insn): Likewise.
5639 * vfp.md (arm_movhi_vfp, thumb2_movhi_vfp): Likewise.
5640 (movhf_vfp): Likewise.
5641 (arm_movsi_vfp, thumb2_movsi_vfp): Likewise.
5642 (movdi_vfp, movdi_vfp_cortexa8): Likewise.
5643 (movsf_vfp, thumb2_movsf_vfp): Likewise.
5644 (movdf_vfp, thumb2_movdf_vfp): Likewise.
5645 (movsfcc_vfp, abssf2_vfp, negsf2_vfp, addsf3_vfp): Likewise.
5646 (subsf3_vfp, divsf3_vfp): Likewise.
5647 (mulsf3_vfp, mulsf3negsf_vfp, negmulsf3_vfp): Likewise.
5648 (mulsf3addsf_vfp, (mulsf3subsf_vfp, mulsf3negsfaddsf_vfp): Likewise.
5649 (mulsf3negsfsubsf_vfp): Likewise.
5650 (truncsisf2_vfp, fixuns_truncsfsi2, floatsisf2_vfp): Likewise.
5651 (floatunssisf2, sqrtsf2_vfp): Likewise.
5652 (movcc_vfp): Likewise.
5653 (cmpsf_split_vfp, cmpsf_trap_split_vfp): Likewise.
5654 (cmpsf_vfp, cmpsf_trap_vfp): Likewise.
5655 (push_multi_vfp): Likewise.
5656 (set_fpscr, get_fpscr): Likewise.
5657 * arm-c.c (arm_cpu_builtins): Unconditionally define __VFP_FP__.
5658
5659 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
5660
5661 * arm.h (TARGET_VFP): Unconditionally define to 1.
5662 (arm_fpu_desc): Remove 'model' field.
5663 (TARGET_FPU_MODEL): Delete.
5664 * arm.c (all_fpus): Don't initialize the model field.
5665 (arm_can_inline_p): Don't check the FPU model.
5666 * arm-fpus.def: Remove redundant model field from all FPU
5667 descriptions.
5668
5669 2016-10-13 Richard Biener <rguenther@suse.de>
5670
5671 PR middle-end/77826
5672 * genmatch.c (struct capture): Add value_match member.
5673 (commutate): Preserve value_match.
5674 (lower_opt_convert): Likewise.
5675 (lower_cond): Likewise.
5676 (replace_id): Likewise.
5677 (struct dt_operand): Add value_match member.
5678 (decision_tree::cmp_node): Compare it.
5679 (decision_tree::insert_operand): Honor it when finding and
5680 when appending a DT_MATCH.
5681 (dt_operand::gen_match_op): Generate a type check after
5682 operand_equal_p if ! value_match for both GENERIC and GIMPLE.
5683 (parser::get_internal_capture_id): New helper.
5684 (parser::finish_match_operand): New function lowering @@<id>.
5685 (parser::parse_capture): Parse @@<id> as value-match.
5686 (parser::parse_expr): Use get_internal_capture_id.
5687 (parser::parse_simplify): Call finish_match_operand.
5688 (walk_captures): New helper.
5689 * match.pd (X - (X / Y) * Y -> X % Y): Use value-matching instead
5690 of operand_equal_p.
5691 ((X /[ex] A) * A -> X): Likewise.
5692 ((X | Y) ^ X -> Y & ~ X): Handle constants properly by using
5693 convert[12] and value-matching.
5694 ((A | B) & (A | C) -> A | (B & C)): Likewise.
5695 ((X | Y) | Y -> X | Y): Likewise.
5696 ((X ^ Y) ^ Y -> X): Likewise.
5697 (A - (A & B) -> ~B & A): Likewise.
5698 ((T)(P + A) - (T)P -> (T) A): Likewise.
5699 ((T)P - (T)(P + A) -> -(T) A): Likewise.
5700 ((T)(P + A) - (T)(P + B) -> (T)A - (T)B): Likewise.
5701 * doc/match-and-simplify.texi: Amend capture section.
5702
5703 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
5704
5705 * config/arc/arc.md (umul_600): Remove predicated variant.
5706 (umul64_600): Likewise.
5707
5708 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
5709
5710 * config/arc/arc.h (INSN_LENGTH_ALIGNMENT): Change.
5711
5712 2016-10-13 Bin Cheng <bin.cheng@arm.com>
5713
5714 * tree-vect-loop.c (loop_niters_no_overflow): New func.
5715 (vect_transform_loop): Call loop_niters_no_overflow. Pass the
5716 no-overflow information to vect_do_peeling_for_loop_bound and
5717 vect_gen_vector_loop_niters.
5718
5719 2016-10-13 Bin Cheng <bin.cheng@arm.com>
5720
5721 * tree-predcom.c (tree_predictive_commoning_loop): Skip loop that only
5722 iterates 1 time.
5723
5724 2016-10-13 Bin Cheng <bin.cheng@arm.com>
5725
5726 * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Don't release
5727 adjust_vec automatically.
5728 (slpeel_add_loop_guard): Remove param cond_expr_stmt_list. Rename
5729 param exit_bb to guard_to.
5730 (slpeel_checking_verify_cfg_after_peeling):
5731 (set_prologue_iterations):
5732 (create_lcssa_for_virtual_phi): New func which is factored out from
5733 slpeel_tree_peel_loop_to_edge.
5734 (slpeel_tree_peel_loop_to_edge):
5735 (iv_phi_p): New func.
5736 (vect_can_advance_ivs_p): Call iv_phi_p.
5737 (vect_update_ivs_after_vectorizer): Call iv_phi_p. Directly insert
5738 new gimple stmts in basic block.
5739 (vect_gen_niters_for_prolog_loop): Rename to...
5740 (vect_gen_prolog_loop_niters): ...Rename from. Change parameters and
5741 adjust implementation.
5742 (vect_update_inits_of_drs): Fix code style issue. Convert niters to
5743 sizetype if necessary.
5744 (vect_build_loop_niters): Move to here from tree-vect-loop.c. Change
5745 it to external function.
5746 (vect_gen_scalar_loop_niters, vect_gen_vector_loop_niters): New.
5747 (vect_gen_vector_loop_niters_mult_vf): New.
5748 (slpeel_update_phi_nodes_for_loops): New.
5749 (slpeel_update_phi_nodes_for_guard1): Reimplement.
5750 (find_guard_arg, slpeel_update_phi_nodes_for_guard2): Reimplement.
5751 (slpeel_update_phi_nodes_for_lcssa, vect_do_peeling): New.
5752 * tree-vect-loop.c (vect_build_loop_niters): Move to file
5753 tree-vect-loop-manip.c
5754 (vect_generate_tmps_on_preheader): Delete.
5755 (vect_transform_loop): Rename vectorization_factor to vf. Call
5756 vect_do_peeling instead of vect_do_peeling-* functions.
5757 * tree-vectorizer.h (vect_do_peeling): New decl.
5758 (vect_build_loop_niters, vect_gen_vector_loop_niters): New decls.
5759 (vect_do_peeling_for_loop_bound): Delete.
5760 (vect_do_peeling_for_alignment): Delete.
5761
5762 2016-10-13 Bin Cheng <bin.cheng@arm.com>
5763
5764 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Put
5765 duplicated loop after its preheader and after the original loop.
5766
5767 2016-10-13 Bin Cheng <bin.cheng@arm.com>
5768
5769 * tree-vect-loop.c (vect_analyze_loop_2): Check and skip loop if it
5770 has no enough iterations for LOOP_VINFO_PEELING_FOR_GAPS.
5771
5772 2016-10-13 Bin Cheng <bin.cheng@arm.com>
5773
5774 * tree-vect-loop.c (vectorizable_live_operation): Support handling
5775 for live variable outside loop but not in lcssa form.
5776
5777 2016-10-13 Bin Cheng <bin.cheng@arm.com>
5778
5779 * cfg.c (reset_original_copy_tables): New func.
5780 * cfg.h (reset_original_copy_tables): New decl.
5781
5782 2016-10-13 Jakub Jelinek <jakub@redhat.com>
5783
5784 PR c/77946
5785 * tree.h (FALLTHROUGH_LABEL_P): Use private_flag instead of
5786 public_flag.
5787 * varasm.c (default_binds_local_p_3): Formatting fix.
5788
5789 2016-10-13 Bin Cheng <bin.cheng@arm.com>
5790
5791 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Fix code
5792 style issue.
5793 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
5794 Remove useless code.
5795
5796 2016-10-13 Martin Liska <mliska@suse.cz>
5797
5798 PR tree-optimization/77943
5799 * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
5800 a different EH landing pads.
5801
5802 2016-10-13 Jakub Jelinek <jakub@redhat.com>
5803
5804 PR target/77957
5805 * hooks.h (hook_tree_void_null): Declare.
5806 * hooks.c (hook_tree_void_null): New function.
5807 * langhooks.c (lhd_return_null_tree_v): Remove.
5808 * langhooks-def.h (lhd_return_null_tree_v): Remove.
5809 * cfgexpand.c (stack_protect_prologue): If guard_decl is NULL,
5810 set y to const0_rtx.
5811 * function.c (stack_protect_epilogue): Likewise.
5812 * config/tilepro/tilepro.c (TARGET_STACK_PROTECT_GUARD): Redefine
5813 if TARGET_THREAD_SSP_OFFSET is defined.
5814 * config/s390/s390.c (TARGET_STACK_PROTECT_GUARD): Likewise.
5815 * config/sparc/sparc.c (TARGET_STACK_PROTECT_GUARD): Likewise.
5816 * config/tilegx/tilegx.c (TARGET_STACK_PROTECT_GUARD): Likewise.
5817 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Likewise.
5818 * config/i386/i386.c (TARGET_STACK_PROTECT_GUARD): Likewise.
5819 (ix86_stack_protect_guard): New function.
5820
5821 2016-10-13 Richard Biener <rguenther@suse.de>
5822
5823 * dwarf2out.c (tree_add_const_value_attribute): Do not try
5824 rtl_for_decl_init during early phase.
5825 (gen_variable_die): Do not create locations during early phase.
5826 (gen_label_die): Likewise.
5827 (decls_for_scope): Do not waste time handling BLOCK_NONLOCALIZED_VARs
5828 twice.
5829
5830 2016-10-12 Richard Biener <rguenther@suse.de>
5831
5832 * tree-vrp.c (evrp_dom_walker::try_find_new_range): Renamed from
5833 try_add_new_range and made to eturn new range.
5834 (evrp_dom_walker::before_dom_children): Push op1 value range before
5835 pushing op0 value range.
5836
5837 2016-10-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5838
5839 PR tree-optimization/77937
5840 * gimple-ssa-strength-reduction.c (analyze_increments): Use
5841 POINTER_TYPE_P on the candidate type to determine whether
5842 candidates in this chain require pointer arithmetic.
5843
5844 2016-10-12 Eric Botcazou <ebotcazou@adacore.com>
5845
5846 * config/visium/visium.c (visium_gimplify_va_arg): Emit a big-endian
5847 correction if the type is smaller than a word.
5848 (visium_select_cc_mode): Add ... fall through ... comment.
5849
5850 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
5851
5852 * config/rs6000/rs6000.c (machine_function): Add new fields
5853 gpr_is_wrapped_separately and lr_is_wrapped_separately.
5854 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
5855 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
5856 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
5857 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
5858 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
5859 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
5860 (rs6000_get_separate_components): New function.
5861 (rs6000_components_for_bb): New function.
5862 (rs6000_disqualify_components): New function.
5863 (rs6000_emit_prologue_components): New function.
5864 (rs6000_emit_epilogue_components): New function.
5865 (rs6000_set_handled_components): New function.
5866 (rs6000_emit_prologue): Don't emit LR save if lr_is_wrapped_separately.
5867 Don't emit GPR saves if gpr_is_wrapped_separately for that register.
5868 (restore_saved_lr): Don't restore LR if lr_is_wrapped_separately.
5869 (rs6000_emit_epilogue): Don't emit GPR restores if
5870 gpr_is_wrapped_separately for that register. Don't make a
5871 REG_CFA_RESTORE note for registers we did not restore, either.
5872
5873 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
5874
5875 * function.c (thread_prologue_and_epilogue_insns): Call
5876 try_shrink_wrapping_separate. Compute the prologue_seq afterwards,
5877 if it has possibly changed. Compute the split_prologue_seq and
5878 epilogue_seq later, too.
5879 * shrink-wrap.c: #include cfgbuild.h and insn-config.h.
5880 (dump_components): New function.
5881 (struct sw): New struct.
5882 (SW): New function.
5883 (init_separate_shrink_wrap): New function.
5884 (fini_separate_shrink_wrap): New function.
5885 (place_prologue_for_one_component): New function.
5886 (spread_components): New function.
5887 (disqualify_problematic_components): New function.
5888 (emit_common_heads_for_components): New function.
5889 (emit_common_tails_for_components): New function.
5890 (insert_prologue_epilogue_for_components): New function.
5891 (try_shrink_wrapping_separate): New function.
5892 * shrink-wrap.h: Declare try_shrink_wrapping_separate.
5893
5894 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
5895
5896 * regrename.c (build_def_use): Invalidate chains that have a
5897 REG_CFA_RESTORE on some instruction.
5898
5899 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
5900
5901 * dce.c (delete_unmarked_insns): Don't delete instructions with
5902 a REG_CFA_RESTORE note.
5903
5904 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
5905
5906 * common.opt (-fshrink-wrap-separate): New flag.
5907 * doc/invoke.texi: Document it.
5908 * doc/tm.texi.in (Shrink-wrapping separate components): New subsection.
5909 * doc/tm.texi: Regenerate.
5910 * emit-rtl.h (struct rtl_data): New field shrink_wrapped_separate.
5911 * target.def (shrink_wrap): New hook vector.
5912 (get_separate_components, components_for_bb, disqualify_components,
5913 emit_prologue_components, emit_epilogue_components,
5914 set_handled_components): New hooks.
5915
5916 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
5917
5918 * config/rs6000/rs6000.c (rs6000_return_in_memory): Warn for
5919 vector return by reference only if -Wpsabi.
5920 (rs6000_pass_by_reference): Similarly, for argument passing.
5921
5922 2016-10-12 David Malcolm <dmalcolm@redhat.com>
5923
5924 * function-tests.c: Include "print-rtl.h".
5925 (selftest::test_expansion_to_rtl): Call print_rtx_function on the
5926 function, and verify what is dumped.
5927 * print-rtl-function.c (print_edge): New function.
5928 (begin_any_block): New function.
5929 (end_any_block): New function.
5930 (can_have_basic_block_p): New function.
5931 (print_rtx_function): Track the basic blocks of insns in the
5932 chain, wrapping those that are within blocks within "(block)"
5933 directives. Remove the "(cfg)" directive.
5934
5935 2016-10-12 David Malcolm <dmalcolm@redhat.com>
5936
5937 * selftest.c (selftest::read_file): New function.
5938 (selftest::test_read_file): New function.
5939 (selftest::selftest_c_tests): Call test_read_file.
5940 * selftest.h (selftest::read_file): New decl.
5941
5942 2016-10-12 Richard Biener <rguenther@suse.de>
5943
5944 PR debug/77947
5945 * cgraphunit.c (analyze_functions): Preserve cgraph nodes
5946 function context.
5947
5948 2016-10-12 Thomas Schwinge <thomas@codesourcery.com>
5949
5950 * lto-streamer.c: Fix LTO_STREAMER_DEBUG build.
5951
5952 * dwarf2out.c (dwarf2_lineno_debug_hooks): Use
5953 dwarf2out_assembly_start.
5954
5955 * Makefile.in (SELFTEST_FLAGS): Add -nostdinc.
5956
5957 * Makefile.in (SELFTEST_FLAGS): New variable.
5958 (s-selftest, selftest-gdb, selftest-valgrind): Use it.
5959
5960 * vmsdbgout.c (vmsdbg_debug_hooks): Add filename parameter to
5961 early_finish hook.
5962
5963 2016-10-12 Georg-Johann Lay <avr@gjlay.de>
5964
5965 * rtl.h (struct rtx_def): Comment how RTX_FLAGS will be
5966 dumped in RTL dumps.
5967
5968 2016-10-12 Martin Liska <mliska@suse.cz>
5969
5970 * gimple-fold.c (create_tmp_reg_or_ssa_name): New function.
5971 (gimple_fold_builtin_memory_op): Use the function.
5972 (gimple_fold_builtin_strchr): Likewise.
5973 (gimple_fold_builtin_strcat): Likewise.
5974 (gimple_build): Likewise.
5975
5976 2016-10-12 Nathan Sidwell <nathan@acm.org>
5977
5978 * diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
5979
5980 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
5981
5982 * dwarf2out.c (int_loc_descriptor): Generate opcodes for another
5983 equivalent 32-bit constant (modulo 2**32) when that yields
5984 smaller instructions.
5985 (size_of_int_loc_descriptor): Update accordingly.
5986
5987 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
5988
5989 * dwarf2out.c (dwarf2out_early_global_decl): For nested
5990 functions, call dwarf2out_decl on the parent function first.
5991
5992 2016-10-12 Richard Biener <rguenther@suse.de>
5993
5994 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
5995 on the conversion.
5996
5997 2016-10-12 Richard Biener <rguenther@suse.de>
5998
5999 * tree-ssa-propagate.c
6000 (substitute_and_fold_dom_walker::before_dom_children): Do not
6001 ignore ASSERT_EXPRs but only preserve them.
6002 * tree-vrp.c (remove_range_assertions): Deal with ASSERT_EXPRs
6003 that have been propagated into.
6004 (vrp_finalize): Enable DCE for substitute_and_fold.
6005
6006 2016-10-12 Richard Biener <rguenther@suse.de>
6007
6008 PR tree-optimization/77920
6009 * tree-vrp.c (simplify_div_or_mod_using_ranges): Simplify.
6010 (simplify_min_or_max_using_ranges): Pass in gsi and use it.
6011 (simplify_abs_using_ranges): Likewise.
6012 (simplify_conversion_using_ranges): Likewise.
6013 (simplify_stmt_using_ranges): Adjust.
6014
6015 2016-10-12 Jakub Jelinek <jakub@redhat.com>
6016
6017 PR tree-optimization/77929
6018 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle
6019 (*ops)[ranges[i].idx]->op != ranges[i].exp case.
6020
6021 2016-10-12 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
6022
6023 PR target/77934
6024 * config/rs6000/vmx.md (vsx_concat_<mode>): The mtvsrdd instruction
6025 needs a base register for arg 1.
6026
6027 2016-10-12 Jakub Jelinek <jakub@redhat.com>
6028
6029 * common.opt (Wimplicit-fallthrough) Turn into alias to
6030 -Wimplicit-fallthrough=3. Remove EnabledBy.
6031 (Wimplicit-fallthrough=): New option.
6032 * gimplify.c (warn_implicit_fallthrough_r): Use
6033 OPT_Wimplicit_fallthrough_ instead of OPT_Wimplicit_fallthrough.
6034 * doc/invoke.texi (-Wimplicit-fallthrough): Document as alias
6035 to -Wimplicit-fallthrough=3.
6036 (-Wimplicit-fallthrough=): Document.
6037
6038 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
6039
6040 * config/sparc/sparc.c (emit_scc_insn): Remove direct support for EQ
6041 and GEU in DImode if TARGET_SUBXC.
6042 * config/sparc/sparc.md (seqdi<W:mode>_zero): Remove TARGET_SUBXC.
6043 (seqdi<W:mode>_zero_subxc): Delete.
6044 (neg_seqdi<W:mode>_zero): Remove TARGET_VIS3.
6045 (neg_seqdi<W:mode>_zero_vis3): Delete.
6046 (plus_seqdi<W:mode>_zero): Likewise.
6047 (minus_seqdi<W:mode>_zero): Likewise.
6048 (plus_plus_sltu<W:mode>): Accept only register.
6049 (addx<W:mode>): Likewise.
6050 (plus_sltu<W:mode>_vis3): Likewise.
6051 (plus_plus_sltu<W:mode>_vis3): Likewise.
6052 (neg_sgeu<W:mode>_vis3): Delete.
6053 (minus_sgeu<W:mode>_vis3): Likewise.
6054 (addxc<W:mode>): Accept only registers.
6055 (neg_sltu<W:mode>_subxc): Write %%g0 instead of 0.
6056 (minus_neg_sltu<W:mode>_subxc): Accept only register.
6057 (neg_plus_sltu<W:mode>_subxc): Likewise.
6058 (minus_sltu<W:mode>_subxc): Write %%g0 instead of 0.
6059 (minus_minus_sltu<W:mode>_subxc): Accept only register.
6060 (sgeu<W:mode>_insn_subxc): Delete.
6061 (plus_sgeu<W:mode>_subxc): Likewise.
6062 (subxc<W:mode>): Accept only register.
6063 (scc splitter): Split always GEU again.
6064
6065 2016-10-11 Jeff Law <law@redhat.com>
6066
6067 PR tree-optimization/77424
6068 * tree-ssa-threadupdate.c (thread_through_all_blocks): Remove
6069 dead conditionals. Assert that all e->aux fields are NULL.
6070
6071 2016-10-11 David Malcolm <dmalcolm@redhat.com>
6072
6073 * print-rtl.c (print_rtx): Rename "i" to "idx". Split out the
6074 operand-printing "switch" statement into...
6075 (print_rtx_operand_code_0): ...this new function, ...
6076 (print_rtx_operand_code_e): ...this new function, ...
6077 (print_rtx_operand_codes_E_and_V): ...this new function, ...
6078 (print_rtx_operand_code_i): ...this new function, ...
6079 (print_rtx_operand_code_r): ...this new function, ...
6080 (print_rtx_operand_code_u): ...this new function, ...
6081 (print_rtx_operand): ...and this new function.
6082
6083 2016-10-11 Uros Bizjak <ubizjak@gmail.com>
6084
6085 * config/alpha/alpha-passes.def: New file.
6086 * config/alpha/t-alpha: New file.
6087 * config/alpha/alpha-protos.h (gcc::context, rtl_opt_pass): Declare.
6088 (make_pass_handle_trap_shadows): New prototype.
6089 (make_pass_align_insns): Ditto.
6090 * config/alpha/alpha.c (alpha_option_override): Don't register
6091 passes here.
6092 * config.gcc (alpha*-*-*) Add alpha/t-alpha to tmake_file.
6093
6094 2016-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
6095
6096 PR target/77924
6097 * config/rs6000/rs6000.c (rs6000_init_builtins): Only create the
6098 distinct __ibm128 IBM extended double type if long doubles are
6099 128-bits and the default format for long double is IEEE 128-bit.
6100
6101 2016-10-11 Richard Biener <rguenther@suse.de>
6102
6103 * dwarf2out.c (DEBUG_STR_OFFSETS_SECTION): Remove conditional.
6104 (init_sections_and_labels): Use DEBUG_DWO_STR_OFFSETS_SECTION.
6105 (verify_die): New function.
6106 (dwarf2out_finish): Call it.
6107 (output_line_info): Handle case of -gsplit-dwarf without
6108 DWARF2_ASM_LINE_DEBUG_INFO.
6109
6110 2016-10-11 Richard Biener <rguenther@suse.de>
6111
6112 PR debug/77931
6113 * gimple-low.c (lower_gimple_bind): Handle arbitrary common
6114 sub-chains of BLOCK_VARS and gimple_bind_vars.
6115
6116 2016-10-11 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
6117
6118 * config/i386/znver1.md : Fix imov/imovx load type reservations.
6119
6120 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
6121
6122 * config/sparc/sparc.opt (msubxc): New option.
6123 * doc/invoke.texi (SPARC options): Document it and tidy up.
6124 * doc/tm.texi.in (Condition Codes): Adjust SPARC example.
6125 * doc/tm.texi: Regenerate.
6126 * config/sparc/sparc-modes.def (CC_NOOV): Rename into...
6127 (CCNZ): ...this.
6128 (CCX_NOOV): Rename into...
6129 (CCXNZ): ...this.
6130 (CCC): New.
6131 (CCXC): Likewise.
6132 * config/sparc/predicates.m (fcc_register_operand): Simplify.
6133 (fcc0_register_operand): Likewise.
6134 (icc_register_operand): New.
6135 (icc_or_fcc_register_operand): Simplify.
6136 (nz_comparison_operator): New.
6137 (c_comparison_operator): Likewise.
6138 (noov_compare_operator): Rename into...
6139 (icc_comparison_operator): ...this. Use above predicates.
6140 (noov_compare64_operator): Rename into...
6141 (v9_comparison_operator): ...this and tidy up.
6142 (fcc_comparison_operator): New.
6143 (icc_or_fcc_comparison_operator): Likewise.
6144 (v9_register_compare_operator): Rename info...
6145 (v9_register_comparison_operator): ...this.
6146 * config/sparc/sparc.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
6147 (sparc_option_override): Remove redundant VIS masks and add MASK_SUBXC
6148 for Niagara-7.
6149 (sparc_fixed_condition_code_regs): New function.
6150 (select_cc_mode): Remove ATTRIBUTE_UNUSED. Adjust for CCNZ/CCXNZ
6151 renaming and add support for CCC/CCXC.
6152 (output_cbranch): Likewise.
6153 (sparc_print_operand): Likewise.
6154 (gen_v9_scc): Remove obsolete assertion.
6155 (emit_scc_insn): Emit RTL directly for EQ and NE. Add direct support
6156 for EQ in DImode if TARGET_SUBXC. Remove test on TARGET_VIS3 for GEU.
6157 (output_cbcond): Remove bogus handling of CC modes.
6158 (sparc_register_move_cost): Return 100 for NO_REGS.
6159 * config/sparc/sparc.md (W): New mode iterator.
6160 (length): Adjust for noov_compare64_operator renaming.
6161 (cmpsi_sne): New instruction.
6162 (cmpdi_sne): Likewise.
6163 (seqdi_special): Delete.
6164 (seqdi_special): Likewise.
6165 (snesi<P:mode>_special): Likewise.
6166 (snedi_special): Likewise.
6167 (snedi_special_vis3): Likewise.
6168 (snesi patterns): Use W iterator.
6169 (snedi patterns): Likewise. Add TARGET_SUBXC patterns.
6170 (sltu patterns): Likewise.
6171 (sgeu patterns): Likewise.
6172 (scc splitter): Do not split GEU in DImode if TARGET_SUBXC.
6173 (normal_branch): Use icc_comparison_operator predicate.
6174 (inverted_branch): Likewise.
6175 (cbcond_sp32): Use comparison_operator predicate.
6176 (cbcond_sp64): Likewise.
6177 (normal_int_branch_sp64): Adjust for renaming
6178 (inverted_int_branch_sp64): Likewise.
6179 (mov<I:mode>_cc_reg_sp64): Likewise.
6180 (movsf_cc_reg_sp6): Likewise.
6181 (movdf_cc_reg_sp64): Likewise.
6182 (movtf_cc_reg_hq_sp64): Likewise.
6183 (movtf_cc_reg_sp64): Likewise.
6184 (mov<I:mode>_cc_v9): Use icc_or_fcc_comparison_operator predicate.
6185 (movsf_cc_v9): Likewise.
6186 (movdf_cc_v9): Likewise.
6187 (movtf_cc_hq_v9): Likewise.
6188 (movtf_cc_v9): Likewise.
6189 (adddi3): Call gen_adddi3_sp32.
6190 (adddi3_insn_sp32): Rename to...
6191 (adddi3_sp32): ...this. Accept only register_operand as operand #1
6192 and use CCCmode for the carry.
6193 (addx_extend_sp32): Use CCCmode for the carry.
6194 (addx_extend_sp64): Delete.
6195 (adddi3_extend_sp32): Use CCCmode for the carry.
6196 (cmp_plus patterns): Use CCNZ/CCXNZ mode and add C variants.
6197 (subdi3): Call gen_subdi3_sp32.
6198 (subdi3_insn_sp32): Rename to...
6199 (subdi3_sp32): ...this and use CCmode for the carry.
6200 (subx_extend_sp32): Use CCCmode for the carry.
6201 (subx_extend_sp64): Delete.
6202 (subdi3_extend_sp32): Use CCmode for the carry.
6203 (cmp_minus patterns): Use CCNZ/CCXNZ mode and add C variants.
6204 (negdi3): Call gen_negdi3_sp32.
6205 (negdi3_sp32): Use CCCmode for the carry.
6206 (cmp_neg patterns): Use CCNZ/CCXNZ mode and add C variants.
6207 (cmp_nz_ashift_1): Use CCNZ mode.
6208 (cmp_nz_set_ashift_1): Likewise.
6209 (ctrapsi4): Use comparison_operator predicate.
6210 (ctrapdi4): Likewise.
6211 (trapsi_insn): Use icc_comparison_operator predicate.
6212 (trapdi_insn): Likewise.
6213 (edge8 patterns): Use CCNZmode.
6214 (edge16 patterns): Likewise.
6215 (edge32 patterns): Likewise.
6216
6217 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
6218
6219 * config/visium/visium-modes.def (CC_NOOV): Rename into...
6220 (CCNZ): ...this.
6221 (CC_BTST): Rename into...
6222 (CCC): ...this.
6223 * config/visium/predicates.md (real_add_operand): New.
6224 (visium_btst_operator): Rename into...
6225 (visium_equality_comparison_operator): ...this.
6226 (visium_noov_operator): Rename into...
6227 (visium_nz_comparison_operator): ...this.
6228 (visium_c_comparison_operator): New.
6229 (visium_branch_operator): Adjust and deal with all CC modes.
6230 * config/visium/visium.c (visium_adjust_cost): Adjust.
6231 (visium_split_double_add): Use the *_set_carry patterns.
6232 (visium_select_cc_mode): Add support for CCC mode and adjust.
6233 (output_cbranch): Adjust and use the carry-based operators for
6234 floating-point comparisons.
6235 * config/visium/visium.md (flags_subst_arith): Adjust.
6236 (addsi3_insn_set_carry): New instruction.
6237 (subsi3_insn_set_carry): Likewise.
6238 (negsi2_insn_set_carry): Likewise.
6239 (btst): Adjust.
6240 (cmp<mode>_sne): Likewise.
6241 (cbranch<mode>4): Use ordered_comparison_operator.
6242 (cbranch<mode>4_insn): Likewise.
6243 (cbranchsi4_btst_insn): Adjust.
6244
6245 2016-10-11 Tom de Vries <tom@codesourcery.com>
6246
6247 PR middle-end/77558
6248 * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
6249 special-casing.
6250
6251 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
6252
6253 * tree.h (build_complex_type): Add second parameter with default.
6254 * tree.c (build_complex_type): Add NAMED second parameter and adjust
6255 recursive call. Create a TYPE_DECL only if NAMED is true.
6256 (build_common_tree_nodes): Pass true in calls to build_complex_type.
6257
6258 2016-10-11 Georg-Johann Lay <avr@gjlay.de>
6259
6260 New avr-passes.def to register AVR specific passes.
6261
6262 * config/avr/avr-passes.def: New file.
6263 * config/avr/t-avr (PASSES_EXTRA): Add avr-passes.def.
6264 * config/avr/avr-protos.h (gcc::context, rtl_opt_pass): Declare.
6265 (make_avr_pass_recompute_note): New proto.
6266 * config/avr/avr.c (make_avr_pass_recompute_notes): New function.
6267 (avr_pass_recompute_notes): Use anonymous namespace.
6268 (avr_register_passes): Remove function...
6269 (avr_option_override): ...and its call.
6270
6271 2016-10-11 Robert Suchanek <robert.suchanek@imgtec.com>
6272
6273 * config/mips/mips-cpus.def: Replace PTF_AVOID_BRANCHLIKELY with
6274 PTF_AVOID_BRANCHLIKELY_ALWAYS for generic architecture and with
6275 PTF_AVOID_BRANCHLIKELY_SPEED for others.
6276 (mips2, mips3, mips4): Add PTF_AVOID_BRANCHLIKELY_SIZE to tune
6277 flags.
6278 * config/mips/mips.c (mips_option_override): Enable the branch
6279 likely depending on the tune flags and optimization level.
6280 * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): Remove.
6281 (PTF_AVOID_BRANCHLIKELY_SPEED): Define.
6282 (PTF_AVOID_BRANCHLIKELY_SIZE): Likewise.
6283 (PTF_AVOID_BRANCHLIKELY_ALWAYS): Likewise.
6284
6285 2016-10-11 Richard Biener <rguenther@suse.de>
6286
6287 * lto-streamer-out.c (collect_block_tree_leafs): New helper.
6288 (output_function): Properly stream the whole block tree.
6289 * lto-streamer-in.c (input_function): Likewise.
6290
6291 2016-10-11 Marek Polacek <polacek@redhat.com>
6292
6293 * Makefile.in (C_COMMON_OBJS): Add c-family/c-warn.o.
6294
6295 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
6296
6297 * tree-vrp.c (evrp_dom_walker::try_add_new_range): New.
6298 (evrp_dom_walker::before_dom_children): Infer and push new value
6299 ranges for x in y < x.
6300
6301 2016-10-10 Joseph Myers <joseph@codesourcery.com>
6302
6303 PR target/77586
6304 * config/ia64/ia64.c (ia64_libgcc_floating_mode_supported_p)
6305 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
6306 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Likewise.
6307 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Likewise.
6308 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
6309 (IA64_NO_LIBGCC_TFMODE): Likewise.
6310
6311 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
6312
6313 * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
6314 copying.
6315
6316 2016-10-10 Andreas Tobler <andreast@gcc.gnu.org>
6317
6318 * config.gcc: Add aarch64-*-freebsd* support.
6319 * config.host: Likewise.
6320 * config/aarch64/aarch64-freebsd.h: New file.
6321 * config/aarch64/t-aarch64-freebsd: Ditto.
6322
6323 2016-10-10 Jeff Law <law@redhat.com>
6324
6325 PR tree-optimization/71947
6326 * tree-ssa-dom.c (cprop_into_stmt): Avoid replacing A with B, then
6327 B with A within a single statement.
6328
6329 2016-10-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6330
6331 PR tree-optimization/77824
6332 * gimple-ssa-strength-reduction.c (stmt_cost): Explicitly return
6333 zero cost for copies.
6334 (find_candidates_dom_walker::before_dom_children): Replace
6335 MODIFY_EXPR with SSA_NAME.
6336 (replace_mult_candidate): Likewise.
6337 (replace_profitable_candidates): Likewise.
6338
6339 2016-10-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6340
6341 * config/s390/s390.h: Wrap more macros args in brackets and fix
6342
6343 2016-10-10 Georg-Johann Lay <avr@gjlay.de>
6344
6345 * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
6346
6347 2016-10-10 Andreas Schwab <schwab@suse.de>
6348
6349 PR target/77738
6350 * config/ia64/ia64.md ("doloop_end"): Reject if mode of loop
6351 pseudo is not DImode.
6352
6353 2016-10-10 Claudiu Zissulescu <claziss@synopsys.com>
6354
6355 * common/config/arc/arc-common.c (arc_option_optimization_table):
6356 Remove compact casesi option.
6357 * config/arc/arc.c (arc_override_options): Use compact casesi
6358 option only for pre-ARCv2 cores.
6359 * doc/invoke.texi (mcompact-casesi): Update text.
6360
6361 2016-10-09 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
6362
6363 * config/rs6000/rs6000.h (TARGET_EFFICIENT_OVERLAPPING_UNALIGNED):
6364 Add macro to say we can efficiently handle overlapping unaligned
6365 loads.
6366 * config/rs6000/rs6000.c (expand_block_compare): Avoid generating
6367 poor code for processors older than p8.
6368
6369 2016-10-09 Eric Botcazou <ebotcazou@adacore.com>
6370
6371 * gen-pass-instances.awk: Remove GNUism.
6372
6373 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6374
6375 * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to
6376 NULL of (*ipcp_transformations)][node->uid].
6377
6378 2016-10-09 John David Anglin <danglin@gcc.gnu.org>
6379
6380 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
6381 (MALLOC_ABI_ALIGNMENT): Define.
6382
6383 2016-10-09 Jakub Jelinek <jakub@redhat.com>
6384
6385 * tree-ssa.c (target_for_debug_bind, verify_phi_args,
6386 ssa_undefined_value_p, maybe_optimize_var): Use VAR_P and/or
6387 VAR_OR_FUNCTION_DECL_P macros.
6388 * tree-chkp.c (chkp_register_var_initializer, chkp_make_static_bounds,
6389 chkp_get_bounds_for_decl_addr, chkp_parse_array_and_component_ref,
6390 chkp_find_bounds_1): Likewise.
6391 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Likewise.
6392 * hsa-gen.c (get_symbol_for_decl): Likewise.
6393 * cgraphunit.c (check_global_declaration, analyze_functions,
6394 handle_alias_pairs, thunk_adjust, cgraph_node::expand_thunk):
6395 Likewise.
6396 * gimple-fold.c (can_refer_decl_in_current_unit_p,
6397 canonicalize_constructor_val, gimple_get_virt_method_for_vtable):
6398 Likewise.
6399 * tree.c (set_decl_section_name, copy_node_stat,
6400 need_assembler_name_p, free_lang_data_in_decl, find_decls_types_r,
6401 merge_dllimport_decl_attributes, handle_dll_attribute,
6402 decl_init_priority_insert, auto_var_in_fn_p, array_at_struct_end_p,
6403 verify_type): Likewise.
6404 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior,
6405 find_explicit_erroneous_behavior): Likewise.
6406 * sdbout.c (sdbout_toplevel_data, sdbout_late_global_decl): Likewise.
6407 * ipa.c (process_references): Likewise.
6408 * tree-chkp-opt.c (chkp_get_check_result): Likewise.
6409 * varasm.c (get_block_for_decl, use_blocks_for_decl_p, make_decl_rtl,
6410 notice_global_symbol, assemble_variable, mark_decl_referenced,
6411 build_constant_desc, output_constant_def_contents, do_assemble_alias,
6412 make_decl_one_only, default_section_type_flags,
6413 categorize_decl_for_section, default_encode_section_info): Likewise.
6414 * trans-mem.c (requires_barrier): Likewise.
6415 * gimple-expr.c (mark_addressable): Likewise.
6416 * cfgexpand.c (add_scope_conflicts_1, expand_one_var,
6417 expand_used_vars_for_block, clear_tree_used, stack_protect_decl_p,
6418 expand_debug_expr): Likewise.
6419 * tree-dump.c (dequeue_and_dump): Likewise.
6420 * ubsan.c (instrument_bool_enum_load): Likewise.
6421 * tree-pretty-print.c (print_declaration): Likewise.
6422 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
6423 * tree-ssa-uninit.c (warn_uninitialized_vars): Likewise.
6424 * asan.c (asan_protect_global, instrument_derefs): Likewise.
6425 * tree-into-ssa.c (rewrite_stmt, maybe_register_def,
6426 pass_build_ssa::execute): Likewise.
6427 * var-tracking.c (var_debug_decl, track_expr_p): Likewise.
6428 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost, split_address_cost):
6429 Likewise.
6430 * ipa-split.c (test_nonssa_use, consider_split, mark_nonssa_use):
6431 Likewise.
6432 * tree-inline.c (insert_debug_decl_map, remap_ssa_name,
6433 can_be_nonlocal, remap_decls, copy_debug_stmt,
6434 initialize_inlined_parameters, add_local_variables,
6435 reset_debug_binding, replace_locals_op): Likewise.
6436 * dse.c (can_escape): Likewise.
6437 * ipa-devirt.c (compare_virtual_tables, referenced_from_vtable_p):
6438 Likewise.
6439 * tree-diagnostic.c (default_tree_printer): Likewise.
6440 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
6441 unpack_ts_decl_with_vis_value_fields,
6442 lto_input_ts_decl_common_tree_pointers): Likewise.
6443 * builtins.c (builtin_save_expr, fold_builtin_expect,
6444 readonly_data_expr): Likewise.
6445 * tree-ssa-structalias.c (new_var_info, get_constraint_for_ssa_var,
6446 create_variable_info_for, set_uids_in_ptset, visit_loadstore):
6447 Likewise.
6448 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
6449 * gimplify.c (force_constant_size, gimplify_bind_expr,
6450 gimplify_decl_expr, gimplify_var_or_parm_decl,
6451 gimplify_compound_lval, gimplify_init_constructor,
6452 gimplify_modify_expr, gimplify_asm_expr, gimplify_oacc_declare,
6453 gimplify_type_sizes): Likewise.
6454 * cgraphbuild.c (record_reference, record_type_list, mark_address,
6455 mark_load, mark_store, pass_build_cgraph_edges::execute): Likewise.
6456 * tree-ssa-live.c (mark_all_vars_used_1, remove_unused_scope_block_p,
6457 remove_unused_locals): Likewise.
6458 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p, ptrs_compare_unequal,
6459 ref_maybe_used_by_call_p_1, call_may_clobber_ref_p_1): Likewise.
6460 * function.c (instantiate_expr, instantiate_decls_1,
6461 setjmp_vars_warning, add_local_decl): Likewise.
6462 * alias.c (ao_ref_from_mem, get_alias_set, compare_base_symbol_refs):
6463 Likewise.
6464 * tree-stdarg.c (find_va_list_reference, va_list_counter_struct_op,
6465 va_list_ptr_read, va_list_ptr_write, check_all_va_list_escapes,
6466 optimize_va_list_gpr_fpr_size): Likewise.
6467 * tree-nrv.c (pass_nrv::execute): Likewise.
6468 * tsan.c (instrument_expr): Likewise.
6469 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
6470 * vtable-verify.c (verify_bb_vtables): Likewise.
6471 * tree-dfa.c (ssa_default_def, set_ssa_default_def,
6472 get_ref_base_and_extent): Likewise.
6473 * toplev.c (wrapup_global_declaration_1, wrapup_global_declaration_2):
6474 Likewise.
6475 * tree-sra.c (static bool constant_decl_p, find_var_candidates,
6476 analyze_all_variable_accesses): Likewise.
6477 * tree-nested.c (get_nonlocal_debug_decl,
6478 convert_nonlocal_omp_clauses, note_nonlocal_vla_type,
6479 note_nonlocal_block_vlas, convert_nonlocal_reference_stmt,
6480 get_local_debug_decl, convert_local_omp_clauses,
6481 convert_local_reference_stmt, nesting_copy_decl, remap_vla_decls):
6482 Likewise.
6483 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Likewise.
6484 * stmt.c (decl_overlaps_hard_reg_set_p): Likewise.
6485 * dbxout.c (dbxout_late_global_decl, dbxout_type_fields,
6486 dbxout_symbol, dbxout_common_check): Likewise.
6487 * expr.c (expand_assignment, expand_expr_real_2, expand_expr_real_1,
6488 string_constant): Likewise.
6489 * hsa.c (hsa_get_declaration_name): Likewise.
6490 * passes.c (rest_of_decl_compilation): Likewise.
6491 * tree-ssanames.c (make_ssa_name_fn): Likewise.
6492 * tree-streamer-out.c (pack_ts_decl_common_value_fields,
6493 pack_ts_decl_with_vis_value_fields,
6494 write_ts_decl_common_tree_pointers): Likewise.
6495 * stor-layout.c (place_field): Likewise.
6496 * symtab.c (symtab_node::maybe_create_reference,
6497 symtab_node::verify_base, symtab_node::make_decl_local,
6498 symtab_node::copy_visibility_from,
6499 symtab_node::can_increase_alignment_p): Likewise.
6500 * dwarf2out.c (add_var_loc_to_decl, tls_mem_loc_descriptor,
6501 decl_by_reference_p, reference_to_unused, rtl_for_decl_location,
6502 fortran_common, add_location_or_const_value_attribute,
6503 add_scalar_info, add_linkage_name, set_block_abstract_flags,
6504 local_function_static, gen_variable_die, dwarf2out_late_global_decl,
6505 optimize_one_addr_into_implicit_ptr,
6506 optimize_location_into_implicit_ptr): Likewise.
6507 * gimple-low.c (record_vars_into): Likewise.
6508 * ipa-visibility.c (update_vtable_references): Likewise.
6509 * tree-ssa-address.c (fixed_address_object_p, copy_ref_info):
6510 Likewise.
6511 * lto-streamer-out.c (tree_is_indexable, get_symbol_initial_value,
6512 DFS::DFS_write_tree_body, write_symbol): Likewise.
6513 * langhooks.c (lhd_warn_unused_global_decl,
6514 lhd_set_decl_assembler_name): Likewise.
6515 * attribs.c (decl_attributes): Likewise.
6516 * except.c (output_ttype): Likewise.
6517 * varpool.c (varpool_node::get_create, ctor_for_folding,
6518 varpool_node::assemble_decl, varpool_node::create_alias): Likewise.
6519 * fold-const.c (fold_unary_loc): Likewise.
6520 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
6521 ipa_find_agg_cst_from_init): Likewise.
6522 * omp-low.c (expand_omp_regimplify_p, expand_omp_taskreg,
6523 expand_omp_target, lower_omp_regimplify_p,
6524 grid_reg_assignment_to_local_var_p, grid_remap_prebody_decls,
6525 find_link_var_op): Likewise.
6526 * tree-chrec.c (chrec_contains_symbols): Likewise.
6527 * tree-cfg.c (verify_address, verify_expr, verify_expr_location_1,
6528 gimple_duplicate_bb, move_stmt_op, replace_block_vars_by_duplicates,
6529 execute_fixup_cfg): Likewise.
6530
6531 PR tree-optimization/77901
6532 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Only optimize
6533 if ranges[i].exp is SSA_NAME when looking for >= and only when
6534 ranges[i].exp is NULL or SSA_NAME when looking for the other
6535 comparison.
6536
6537 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6538
6539 * ipa-cp.c (ipcp_alignment_lattice): Remove.
6540 (ipcp_param_lattices): Remove field alignment.
6541 (print_all_lattices): Remove call to ipcp_alignment_lattice::print.
6542 (set_all_contains_variable): Remove call to
6543 ipcp_alignment_lattice::set_to_bottom.
6544 (initialize_node_lattices): Likewise.
6545 (propagate_alignment_accross_jump_function): Remove.
6546 (propagate_constants_accross_call): Remove call to
6547 propagate_alignment_accross_jump_function.
6548 (ipcp_store_alignment_results): Remove.
6549 (ipcp_driver): Remove call to ipcp_store_alignment_results.
6550 (propagate_bits_accross_jump_function): Handle ancestor jump function.
6551 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Remove
6552 pretty-printing of alignment jump function.
6553 (ipa_set_jf_unknown): Remove assignment to jfunc->alignment.known.
6554 (ipa_compute_jump_functions_for_edge): Adjust ipa_bits jump function for
6555 alignments and remove computing ipa_alignment jump function.
6556 (ipa_node_params_t::duplicate): Remove copying of src_trans->alignments.
6557 (ipa_write_jump_functions): Remove streaming for ipa_alignment.
6558 (ipa_read_jump_function): Remove reading of ipa_alignment.
6559 (write_ipcp_transformation_info): Remove streaming for alignment
6560 propagation summary.
6561 (read_ipcp_transformation_info): Remove reading of alignment
6562 propagation summary.
6563 (ipcp_update_alignments): Remove.
6564 (ipcp_update_bits): Adjust to set alignment for parameters of pointer
6565 type.
6566 (ipcp_transform_function): Remove call to ipcp_update_alignments()
6567 and remove assignment to (*ipcp_transformations)[node->uid].alignments.
6568 * ipa-prop.h (ipa_alignment): Remove.
6569 (ipa_jump_func): Remove field alignment.
6570 (ipcp_transformation_summary): Remove field alignments.
6571 * doc/invoke.texi: Mark fipa-cp-alignment as obsolete.
6572 * opts.c (default_options_table): Remove entry for fipa-cp-alignment.
6573 (enable_fdo_optimizations): Remove checking for fipa-cp-alignment.
6574
6575 2016-10-08 Eric Botcazou <ebotcazou@adacore.com>
6576
6577 * config/sparc/sparc.h (FIXED_REGISTERS): Add %icc.
6578
6579 * config/visium/visium.c (visium_expand_int_cstore): Revert latest
6580 change.
6581 (visium_expand_fp_cstore): Likewise.
6582
6583 2016-10-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6584
6585 * diagnostic-core.h (warning_at_rich_loc_n): Declare.
6586 * diagnostic.c (warning_at_rich_loc_n): New function.
6587 (diagnostic_n_impl_richloc): Likewise.
6588 (diagnostic_n_impl): Move most of the function to
6589 diagnostic_n_impl_richloc and call it.
6590
6591 2016-10-08 Jakub Jelinek <jakub@redhat.com>
6592
6593 * gen-pass-instances.awk: Rewritten.
6594 * Makefile.in (pass-instances.def): Depend on $(PASSES_EXTRA), pass
6595 $(PASSES_EXTRA) after passes.def to the script.
6596 * config/i386/t-i386 (PASSES_EXTRA): Add i386-passes.def.
6597 * config/i386/i386-passes.def: New file.
6598 * config/i386/i386-protos.h (make_pass_insert_vzeroupper,
6599 make_pass_stv): Declare.
6600 * config/i386/i386.c (pass_stv::pass_stv): Initialize timode_p to
6601 false.
6602 (pass_stv::gate): Depending on timode_p member require TARGET_64BIT
6603 or !TARGET_64BIT.
6604 (pass_stv::clone, pass_stv::set_pass_param): New methods.
6605 (pass_stv::timode_p): New non-static data member.
6606 (ix86_option_override): Don't register passes here.
6607
6608 * doc/invoke.texi: Document accepting Else, fallthrough.
6609
6610 * doc/invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment
6611 style changes.
6612
6613 * doc/invoke.texi (-Wimplicit-fallthrough): Document the accepted
6614 FALLTHRU comment styles.
6615
6616 2016-10-07 Andrew Pinski <apinski@cavium.com>
6617
6618 * config/aarch64/aarch64-arches.def (AARCH64_ARCH): #undef at the end.
6619 * config/aarch64/aarch64-cores.def (AARCH64_CORE): Likewise.
6620 * config/aarch64/aarch64-fusion-pairs.def (AARCH64_FUSION_PAIR):
6621 Likewise.
6622 * config/aarch64/aarch64-option-extensions.def (AARCH64_OPT_EXTENSION):
6623 Likewise.
6624 * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNING_OPTION):
6625 Likewise.
6626 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Don't #undef here.
6627 (AARCH64_ARCH): Likewise.
6628 * common/config/aarch64/aarch64-common.c (AARCH64_OPT_EXTENSION):
6629 Likewise.
6630 (AARCH64_CORE): Likewise.
6631 (AARCH64_ARCH): Likewise.
6632 * config/aarch64/aarch64-protos.h (AARCH64_FUSION_PAIR): Likewise.
6633 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
6634 * config/aarch64/aarch64.c (AARCH64_FUION_PAIR): Likewise.
6635 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
6636 (AARCH64_ARCH): Likewise.
6637 (AARCH64_CORE): Likewise.
6638 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
6639 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Likewise.
6640 (AARCH64_CORE): Likewise.
6641 (AARCH64_ARCH): Likewise.
6642
6643 2016-10-06 Michael Meissner <meissner@linux.vnet.ibm.com>
6644
6645 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Split
6646 -mfloat128 into -mfloat128-type that enables the IEEE 128-bit
6647 floating point type infrastructre, and -mfloat128 that enables the
6648 keyword. Define __FLOAT128__ if -mfloat128, and __FLOAT128_TYPE__
6649 if -mfloat128-type. Define __ibm128 to be long double by default.
6650 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print whether
6651 the IEEE 128-bit floating point type infrastructure should
6652 automatically be enabled.
6653 (rs6000_init_hard_regno_mode_ok): Switch to use -mfloat128-type
6654 instead of -mfloat128 to enable KFmode.
6655 (rs6000_option_override_internal): Split the option -mfloat128
6656 into -mfloat128-type and -mfloat128. On Linux PowerPC 64-bit
6657 systems, automatically set -mfloat128-type, but don't enable it on
6658 other operating systems. Move setting the long double size and
6659 IEEE quad support before the IEEE 128-bit floating point changes.
6660 (rs6000_init_builtins): Do not create a unique type for __ibm128
6661 if long double is IBM extended double, instead rely on __ibm128
6662 being defined as 'long double'. If -mfloat128-type and not
6663 -mfloat128, create the KFmode type with an undocumented __ieee128
6664 keyword.
6665 (rs6000_init_libfuncs): Use -mfloat128-type instead of
6666 -mfloat128 for tests about the types, but keep tests for
6667 -mfloat128 to enable the keyword support.
6668 (rs6000_complex_function_value): Likewise.
6669 (rs6000_scalar_mode_supported_p): Likewise.
6670 (rs6000_floatn_mode): Likewise.
6671 (rs6000_c_mode_for_suffix): Likewise.
6672 (rs6000_opt_masks): Add -mfloat128-type.
6673 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add support for
6674 -mfloat128-type being split from -mfloat128. Add
6675 -mfloat128-hardware, which was missing.
6676 * config/rs6000/rs6000.opt (-mfloat128): Split -mfloat128 into
6677 -mfloat128 and -mfloat128-type:
6678 (-mfloat128-type): Likewise.
6679 * config/rs6000/linux64.h (TARGET_FLOAT128_ENABLE_TYPE): Define so
6680 that 64-bit Linux systems with enable -mfloat128-type by default
6681 on VSX systems.
6682 * config/rs6000/rs6000.h (TARGET_FLOAT128_ENABLE_TYPE): Likewise.
6683 (FLOAT128_VECTOR_P): Switch IEEE 128-bit floating points to use
6684 -mfloat128-type instead of -mfloat128.
6685 (FLOAT128_2REG_P): Likewise.
6686 (MASK_FLOAT128_TYPE): Likewise.
6687 (ALTIVEC_ARG_MAX_RETURN): Likewise.
6688 (RS6000_BTM_FLOAT128): Likewise.
6689 (TARGET_FLOAT128): Poison old identifiers.
6690 (OPTION_MASK_FLOAT128): Likewise.
6691 (MASK_FLOAT128): Likewise.
6692 * config/rs6000/rs6000.md (FP): Likewise.
6693 (FLOAT128): Likewise.
6694 (fix_trunc<mode>di2): Likewise.
6695 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
6696 (floatdi<mode>2): Likewise.
6697 (floatuns<SDI:mode><IEEE128:mode>2): Likewise.
6698 (neg<mode>2, FLOAT128 iterator): Likewise.
6699 (abs<mode>2, FLOAT128 iterator): Likewise.
6700 (ieee_128bit_negative_zero): Likewise.
6701 (ieee_128bit_vsx_neg<mode>2): Likewise.
6702 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
6703 (ieee_128bit_vsx_abs<mode>2): Likewise.
6704 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
6705 (ieee_128bit_vsx_nabs<mode>2): Likewise.
6706 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
6707 (extendiftf2): Likewise.
6708 (extendifkf2): Likewise.
6709 (extendtfkf2): Likewise.
6710 (trunciftf2): Likewise.
6711 (truncifkf2): Likewise.
6712 (trunckftf2): Likewise.
6713 (trunctfif2): Likewise.
6714 (extendkftf2): Likewise.
6715 (trunctfkf2): Likewise.
6716
6717 2016-10-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6718
6719 * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
6720 before merging in bytes to pass down to real_from_target.
6721
6722 2016-10-07 Richard Biener <rguenther@suse.de>
6723
6724 * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
6725 required hack.
6726 (substitute_and_fold_dom_walker::before_dom_children):
6727 Substitute and fold before pass specific folding to avoid
6728 feeding that with SSA names that will be later released.
6729 * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
6730 introduced by folding and visited by evaluate_stmt called during
6731 ccp_fold_stmt.
6732 (likely_value): Likewise.
6733 (evaluate_stmt): Likewise.
6734 * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
6735 (simplify_div_or_mod_using_ranges): Likewise.
6736 (simplify_min_or_max_using_ranges): Likewise.
6737 (simplify_abs_using_ranges): Likewise.
6738 (simplify_conversion_using_ranges): Likewise.
6739 (simplify_float_conversion_using_ranges): Likewise.
6740 (simplify_stmt_using_ranges): Likewise.
6741
6742 2016-10-07 Marek Polacek <polacek@redhat.com>
6743
6744 * gimplify.c (should_warn_for_implicit_fallthrough): Check for
6745 FALLTHROUGH_LABEL_P here...
6746 (warn_implicit_fallthrough_r): ...not here.
6747
6748 2016-10-07 Bernd Schmidt <bschmidt@redhat.com>
6749
6750 PR tree-optimization/77880
6751 * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
6752 necessary.
6753
6754 2016-10-07 Marek Polacek <polacek@redhat.com>
6755
6756 PR c++/77803
6757 * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
6758
6759 2016-10-07 Richard Biener <rguenther@suse.de>
6760
6761 * bitmap.h: Document constraints on bitmap modification while
6762 iterating over it.
6763
6764 2016-10-07 Richard Biener <rguenther@suse.de>
6765
6766 * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
6767 * bitmap.h (bmp_iter_set): When advancing to the next element
6768 check that we didn't remove the current one.
6769 (bmp_iter_and): Likewise.
6770 (bmp_iter_and_compl): Likewise.
6771 * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
6772 we currently iterate on but keep a one-level queue.
6773 * sched-deps.c (remove_from_deps): Do not clear current bit
6774 but keep a one-level queue.
6775
6776 2016-10-07 Jakub Jelinek <jakub@redhat.com>
6777
6778 PR tree-optimization/77664
6779 * tree-ssa-reassoc.c (update_range_test): Also clear low and high
6780 for the other ranges.
6781 (optimize_range_tests_diff): Fix up formatting.
6782 (optimize_range_tests_var_bound): New function.
6783 (optimize_range_tests): Use it.
6784
6785 2016-10-07 Martin Liska <mliska@suse.cz>
6786
6787 * coverage.c (build_gcov_exit_decl): Fix priority what
6788 should be really 99.
6789
6790 2016-10-07 Richard Biener <rguenther@suse.de>
6791
6792 * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
6793 vars in gimple_bind_vars but not in BLOCK_VARS.
6794
6795 2016-10-07 Richard Biener <rguenther@suse.de>
6796
6797 PR tree-optimization/77879
6798 * tree-ssa-structalias.c (handle_const_call): Properly handle
6799 NRV return slots.
6800 (handle_pure_call): Likewise.
6801
6802 2016-10-06 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
6803
6804 * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
6805 (rs6000_elf_asm_out_destructor): increase size of buf to avoid
6806 possible overflow.
6807
6808 2016-10-06 Andrew Pinski <apinski@cavium.com>
6809
6810 * config/aarch64/aarch64-cores.def: Add a comment before each
6811 set of cores.
6812
6813 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
6814
6815 PR tree-optimization/77862
6816 * tree-vrp.c (add_equivalence): Use get_value_range so that
6817 num_vr_values is checked before accessing vr_values.
6818
6819 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
6820
6821 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
6822 POINTER_TYPE_P.
6823
6824 2016-10-05 Jeff Law <law@redhat.com>
6825
6826 PR tree-optimization/71661
6827 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
6828 removal of a forwarder exposes a new natural loop.
6829
6830 2016-10-06 Uros Bizjak <ubizjak@gmail.com>
6831
6832 * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
6833 Introduce ssesuffix variable.
6834 (<mask_codefor><code><mode>3<mask_name>): Ditto.
6835 (*<code><mode>3): Ditto.
6836
6837 2016-10-06 Jan Hubicka <hubicka@ucw.cz>
6838
6839 * postreload.c (reload_cse_simplify): Skip also USE when detecting
6840 noop move.
6841
6842 2016-10-06 Richard Biener <rguenther@suse.de>
6843
6844 PR tree-optimization/77855
6845 * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
6846 instead of removing the current item while iterating over the set
6847 which is not safe.
6848
6849 2016-10-06 James Clarke <jrtc27@jrtc27.com>
6850 Eric Botcazou <ebotcazou@adacore.com>
6851
6852 PR target/77759
6853 * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
6854 (classify_registers): Don't set it
6855 (function_arg_slotno): Don't initialize and test it. Tidy up.
6856
6857 2016-10-06 Richard Biener <rguenther@suse.de>
6858
6859 PR tree-optimization/77839
6860 * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
6861 lattice transition.
6862
6863 2016-10-06 Martin Liska <mliska@suse.cz>
6864
6865 * gcc.c: Set -fprofile-update=atomic when profiling is
6866 enabled and -pthread is set. Warn when one combines
6867 -pthread and -fprofile-update=single for an app using
6868 profiling code.
6869
6870 2016-10-06 Martin Liska <mliska@suse.cz>
6871
6872 PR bootstrap/77788
6873 * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
6874 * gimple-ssa-strength-reduction.c (slsr_process_cast):
6875 Initialize a pointer to NULL.
6876 (slsr_process_copy): Likewise.
6877 * input.c (location_get_source_line): Likewise.
6878 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
6879
6880 2016-10-05 Andrew Senkevich <andrew.senkevich@intel.com>
6881
6882 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
6883 OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
6884 (ix86_handle_option): Deleted handle of OPT_mpcommit.
6885 * config.gcc: Deleted pcommitintrin.h
6886 * config/i386/pcommitintrin.h: Deleted file.
6887 * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
6888 * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
6889 detection.
6890 * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
6891 __PCOMMIT__.
6892 * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
6893 (PTA_PCOMMIT): Deleted define.
6894 (ix86_option_override_internal): Deleted handle of option.
6895 (ix86_valid_target_attribute_inner_p): Deleted pcommit.
6896 * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
6897 __builtin_ia32_pcommit): Deleted.
6898 * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
6899 * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
6900 (pcommit): Deleted instruction.
6901 * config/i386/i386.opt: Mention -mpcommit deprecation.
6902 * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
6903
6904 2016-10-05 Uros Bizjak <ubizjak@gmail.com>
6905
6906 PR target/77874
6907 * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
6908 Remove wrong assert.
6909 (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
6910 Use <round_constraint> as operand 1 constraint.
6911
6912 2016-10-05 Jakub Jelinek <jakub@redhat.com>
6913
6914 PR sanitizer/66343
6915 * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
6916 (ubsan_instrument_float_cast): And not here.
6917
6918 PR sanitizer/66343
6919 * ubsan.c (ubsan_ids): New GTY(()) array.
6920 (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
6921 instead of static local counters.
6922
6923 2016-10-05 Martin Sebor <msebor@redhat.com>
6924
6925 PR bootstrap/77819
6926 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
6927 * config/linux.c (gnu_libc_printf_pointer_format): Remove.
6928 * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
6929 (default_printf_pointer_format): Define function.
6930 * targhooks.c (linux_printf_pointer_format): Define new function.
6931 * targhooks.h (linux_printf_pointer_format): Declare.
6932 (gnu_libc_printf_pointer_format): Remove declaration.
6933
6934 2016-10-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6935
6936 * fold-const.c (native_encode_real): Fix logic for selecting offset
6937 to write to when BYTES_BIG_ENDIAN.
6938
6939 2016-10-05 Wilco Dijkstra <wdijkstr@arm.com>
6940
6941 * builtins.c (fold_builtin_strchr): Remove function.
6942 (fold_builtin_strrchr): Likewise.
6943 (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
6944 * gimple-fold.c (target_char_cst_p): New function.
6945 (gimple_fold_builtin_strchr) Add more foldings.
6946 (gimple_fold_builtin): Add index, strrchr, rindex cases.
6947
6948 2016-10-05 Richard Biener <rguenther@suse.de>
6949
6950 PR middle-end/77863
6951 * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
6952 capture ids in c-exprs.
6953
6954 2016-10-05 Richard Biener <rguenther@suse.de>
6955
6956 PR middle-end/77826
6957 * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
6958 with types_match for GIMPLE code gen to handle type mismatched
6959 constants properly.
6960 (dt_operand::gen): Adjust.
6961 * match.pd ((X /[ex] A) * A -> X): Properly handle converted
6962 and constant A.
6963
6964 2016-10-05 Richard Biener <rguenther@suse.de>
6965
6966 * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
6967
6968 2016-10-05 Richard Biener <rguenther@suse.de>
6969
6970 PR middle-end/77842
6971 * genmatch.c (parser::parse_c_expr): Handle premature EOF.
6972
6973 2016-10-05 Pierre-Marie de Rodat <derodat@adacore.com>
6974
6975 * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
6976 version check to protect only DW_TAG_imported_module generation.
6977
6978 2016-10-05 Richard Biener <rguenther@suse.de>
6979
6980 PR middle-end/55152
6981 * match.pd (min(a,-a) -> -abs(a)): New pattern.
6982
6983 2016-10-04 Ian Lance Taylor <iant@golang.org>
6984
6985 * explow.c (allocate_dynamic_stack_space): Call
6986 do_pending_stack_adjust before handling flag_split_stack.
6987
6988 2016-10-04 David Malcolm <dmalcolm@redhat.com>
6989
6990 * genattrtab.c (make_internal_attr): Supply dummy column number to
6991 file_location ctor.
6992 (main): Likewise.
6993 * genoutput.c (init_insn_for_nothing): Likewise.
6994 * gensupport.c (add_define_attr): Likewise.
6995 * read-md.c (message_at_1): Print column number.
6996 (fatal_with_file_and_line): Likewise.
6997 (rtx_reader::read_char): Track column numbers.
6998 (rtx_reader::unread_char): Likewise.
6999 (rtx_reader::rtx_reader): Initialize m_read_md_colno.
7000 (rtx_reader::handle_include): Stash and restore m_read_md_colno.
7001 (rtx_reader::handle_file): Initialize m_read_md_colno.
7002 (rtx_reader::get_current_location): Supply column number to
7003 file_location ctor.
7004 * read-md.h (struct file_location): Add field "colno".
7005 (file_location::file_location): Likewise.
7006 (rtx_reader::get_colno): New accessor.
7007 (rtx_reader::m_read_md_colno): New field.
7008 (rtx_reader::m_last_line_colno): New field.
7009
7010 2016-10-04 Jakub Jelinek <jakub@redhat.com>
7011
7012 * doc/extend.texi (Java Exceptions): Remove.
7013 (java_interface): Remove.
7014
7015 2016-10-04 Doug Gilmore <doug.gilmore@imgtec.com>
7016
7017 PR tree-optimization/77808
7018 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
7019 and addr are different before copying points-to information.
7020
7021 2016-10-04 Uros Bizjak <ubizjak@gmail.com>
7022
7023 * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
7024 * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
7025 * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
7026 of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
7027
7028 2016-10-04 Richard Biener <rguenther@suse.de>
7029
7030 PR tree-optimization/77399
7031 * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
7032 verify the target can convert.
7033
7034 2016-10-04 Richard Biener <rguenther@suse.de>
7035
7036 PR middle-end/77833
7037 * explow.c (plus_constant): Verify the mode of the constant
7038 pool offset before calling plus_constant.
7039
7040 2016-10-04 Richard Biener <rguenther@suse.de>
7041
7042 PR middle-end/77407
7043 * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
7044 type support, mark with :C.
7045 (X / -X -> -1): Mark with :C.
7046
7047 2016-10-04 Jakub Jelinek <jakub@redhat.com>
7048
7049 * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
7050 * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
7051 * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
7052 * doc/tm.texi: Regenerated.
7053 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
7054 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
7055 * config/darwin.h (JCR_SECTION_NAME): Remove.
7056 * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
7057 * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
7058 * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
7059 * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
7060 * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
7061 * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
7062
7063 2016-10-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7064
7065 * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
7066 between "because" and "param" in dump message in call to fprintf.
7067
7068 2016-10-03 Jeff Law <law@redhat.com>
7069
7070 PR tree-optimization/71550
7071 PR tree-optimization/71403
7072 * tree-ssa-threadbackward.c: Include tree-vectorizer.h
7073 (profitable_jump_thread_path): Also return boolean indicating if
7074 the realized path will create an irreducible loop.
7075 Remove loop depth tests from 71403.
7076 (fsm_find_control_statement_thread_paths): Remove loop depth tests
7077 from 71403. If threading will create an irreducible loop, then
7078 throw away loop iteration and related information.
7079
7080 2016-10-03 Uros Bizjak <ubizjak@gmail.com>
7081
7082 * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
7083 -Woverloaded-virtual checks for warning options.
7084 * configure: Regenerate.
7085
7086 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
7087
7088 PR preprocessor/77699
7089 * input.c (maybe_grow): Don't allocate one byte extra headroom.
7090 (get_next_line): Return false on error.
7091 (read_next_line): Removed, use get_next_line instead.
7092 (read_line_num): Don't copy the line.
7093 (location_get_source_line): Don't use static data.
7094 (selftest::test_reading_source_line): Add more test cases.
7095
7096 2016-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7097
7098 Revert
7099 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7100
7101 * ifcvt.c (noce_try_avoid_const_materialization): New function.
7102 (noce_process_if_block): Use it.
7103
7104 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
7105
7106 * doc/invoke.texi: Update -Wint-in-bool-context.
7107
7108 2016-10-02 Jakub Jelinek <jakub@redhat.com>
7109
7110 * dwarf2out.c (output_fde, output_call_frame_info,
7111 dwarf2out_do_cfi_startproc, set_indirect_string,
7112 gen_internal_sym, output_die, output_line_info): Use
7113 MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
7114 ASM_GENERATE_INTERNAL_LABEL output.
7115
7116 2016-10-01 Richard Biener <rguenther@suse.de>
7117
7118 PR middle-end/77798
7119 * genmatch.c (get_operand_type): Add operand position arg
7120 and handle COND_EXPR comparison operand with fixed boolean_type_node.
7121 (expr::gen_transform): Adjust.
7122 (dt_simplify::gen_1): Likewise.
7123
7124 2016-10-01 Jakub Jelinek <jakub@redhat.com>
7125
7126 * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
7127 comments. Simplify asserts, remove unnecessary conditions.
7128 Formatting fixes.
7129 (*<code><mode>3): Likewise.
7130
7131 2016-09-30 Jakub Jelinek <jakub@redhat.com>
7132
7133 * doc/invoke.texi (-Wregister): Document.
7134
7135 2016-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
7136
7137 * configure.ac: Split CHECKING_P into CHECKING_P and
7138 ENABLE_EXTRA_CHECKING.
7139 * configure: Regenerated.
7140 * config.in: Adjust commment of CHECKING_P. Add ENABLE_EXTRA_CHECKING.
7141 * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
7142
7143 2016-09-30 Prasad Ghangal <prasad.ghangal@gmail.com>
7144
7145 PR other/31566
7146 * gcc.c (process_command): For @filename handling, output
7147 the correct name if the file does not exist.
7148
7149 2016-09-30 Marek Polacek <polacek@redhat.com>
7150
7151 * config/aarch64/aarch64-simd.md: Adjust fall through comments.
7152 * config/alpha/predicates.md: Likewise.
7153
7154 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7155
7156 * ifcvt.c (noce_try_avoid_const_materialization): New function.
7157 (noce_process_if_block): Use it.
7158
7159 2016-09-30 Martin Liska <mliska@suse.cz>
7160
7161 * doc/invoke.texi: Document asan-use-after-return that
7162 it's disabled by default in runtime.
7163
7164 2016-09-30 Richard Biener <rguenther@suse.de>
7165
7166 * tree-vrp.c (intersect_ranges): If we failed to handle
7167 the intersection choose a constant singleton range if available.
7168
7169 2016-09-30 Richard Biener <rguenther@suse.de>
7170
7171 PR tree-optimization/77399
7172 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
7173 float <-> int conversions.
7174
7175 2016-09-30 Alan Modra <amodra@gmail.com>
7176
7177 * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
7178
7179 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
7180
7181 * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
7182 ext_level before calling CPUID with 0x80000008.
7183 Simplify xgetbv checks.
7184
7185 2016-09-29 David Malcolm <dmalcolm@redhat.com>
7186
7187 * Makefile.in (OBJS): Add print-rtl-function.o.
7188 * print-rtl-function.c: New file.
7189 * print-rtl.h (print_rtx_function): New decl.
7190
7191 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
7192
7193 PR target/77756
7194 * config/i386/cpuid.h (__get_cpuid_count): New.
7195 (__get_cpuid): Rename __level to __leaf.
7196
7197 2016-09-29 Marek Polacek <polacek@redhat.com>
7198
7199 * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
7200
7201 2016-09-29 Bernd Schmidt <bschmidt@redhat.com>
7202
7203 PR target/77718
7204 * builtins.c (expand_builtin_memcmp): Don't swap args unless
7205 result is only being compared with zero.
7206
7207 2016-09-29 Marek Polacek <polacek@redhat.com>
7208
7209 * dwarf2out.c (loc_descriptor): Add fall through comment.
7210 (add_const_value_attribute): Likewise.
7211
7212 2016-09-29 Matthew Wahab <matthew.wahab@arm.com>
7213
7214 * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
7215 with "v6t2". Move "arch" attribute above "pool_range".
7216 * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
7217 with "v6t2".
7218 (*thumb2_movhi_vfp): Likewise.
7219 (*arm_movhi_fp16): Likewise.
7220 (*thumb2_movhi_fp16): Likewise.
7221 (*arm_movsi_vfp): Remove "arch" attribute.
7222 (*thumb2_movsi_vfp): Likewise.
7223
7224 2016-09-29 Martin Liska <mliska@suse.cz>
7225
7226 * doc/extend.texi: Remove limitation of Objective C for
7227 __attribute__((constructor)) and __attribute__((destructor)).
7228
7229 2016-09-29 Richard Biener <rguenther@suse.de>
7230
7231 PR tree-optimization/77768
7232 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7233 Handle stores to readonly memory when removing redundant stores.
7234
7235 2016-09-29 Richard Biener <rguenther@suse.de>
7236
7237 PR middle-end/77407
7238 * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
7239 X / -X -> -1 simplifications.
7240
7241 2016-09-29 Richard Biener <rguenther@suse.de>
7242
7243 PR middle-end/55152
7244 * match.pd: Add max(a,-a) -> abs(a) pattern.
7245 * tree-ssa-phiopt.c (minmax_replacement): Disable for
7246 HONOR_SIGNED_ZEROS types.
7247
7248 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
7249
7250 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
7251 * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
7252
7253 2016-09-29 Richard Biener <rguenther@suse.de>
7254
7255 * tree-vrp.c (set_defs_to_varying): New helper avoiding
7256 writing to vr_const_varying.
7257 (vrp_initialize): Call it.
7258 (vrp_visit_stmt): Likewise.
7259 (evrp_dom_walker::before_dom_children): Likewise.
7260
7261 2016-09-29 Richard Biener <rguenther@suse.de>
7262
7263 * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
7264 constructors with vector elements.
7265
7266 2016-09-29 Richard Biener <rguenther@suse.de>
7267
7268 PR tree-optimization/77768
7269 * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
7270 with stores to a place we know has a constant value.
7271
7272 2016-09-29 Alan Modra <amodra@gmail.com>
7273
7274 * config/rs6000/sysv4.opt (mgnu-attribute): New option.
7275 * doc/invoke.texi: Document it.
7276 * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
7277 (rs6000_passes_float): Comment.
7278 (rs6000_passes_long_double): New static var.
7279 (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
7280 (init_cumulative_args): Set up to emit fp .gnu_attribute for
7281 ELF 64-bit ABIs as well as 32-bit ELF. Correct rs6000_passes_float
7282 to include fp values returned in vectors.
7283 Set rs6000_passes_long_double.
7284 (rs6000_function_arg_advance_1): Likewise for function args.
7285 (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
7286 and SPE. Emit long double tag value too.
7287 (rs6000_opt_vars): Add gnu-attr.
7288 * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
7289 * configure: Regenerate.
7290 * config.in: Regenerate.
7291
7292 2016-09-28 Jakub Jelinek <jakub@redhat.com>
7293
7294 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
7295 of 0 < x.
7296 (format_floating, format_string, format_directive,
7297 get_destination_size, pass_sprintf_length::handle_gimple_call):
7298 Likewise.
7299
7300 2016-09-28 Jakub Jelinek <jakub@redhat.com>
7301
7302 * gimple-ssa-sprintf.c: Fix comment formatting.
7303 (format_integer): Use is_gimple_assign.
7304 (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
7305 and gimple_call_fndecl. Reorder case BUILT_IN_SPRINTF_CHK. Fix up
7306 BUILT_IN_SNPRINTF_CHK comment. Replace "to to" with "to" in comment.
7307 (pass_sprintf_length::execute): Use is_gimple_call.
7308
7309 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
7310
7311 * gimple-fold.c (gimple_fold_builtin): After failing to fold
7312 strchr, also try the generic folding.
7313
7314 2016-09-28 Martin Sebor <msebor@redhat.com>
7315
7316 PR c/77762
7317 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
7318 Fix typos.
7319
7320 2016-09-28 Martin Sebor <msebor@redhat.com>
7321
7322 PR middle-end/77683
7323 * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
7324 length modifier is not expected.
7325 (format_floating): Ignore l length modifier and fail gracefuly
7326 when it isn't one of the other expected ones.
7327
7328 2016-09-28 Martin Sebor <msebor@redhat.com>
7329
7330 PR bootstrap/77753
7331 * varasm.c (assemble_addr_to_section): Increase local buffer size.
7332
7333 2016-09-27 Richard Biener <rguenther@suse.de>
7334
7335 * dwarf2out.c (cu_die_list): New global.
7336 (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs. Add
7337 main_comp_unit_die to cu_die_list if we created it.
7338 Move break_out_includes ...
7339 (dwarf2out_early_finish): ... here. Push created CU DIEs onto
7340 the cu_die_list.
7341
7342 2016-09-28 Richard Biener <rguenther@suse.de>
7343
7344 * dwarf2out.c (struct die_struct): Add removed flag.
7345 (lookup_type_die): If the DIE is marked as removed, clear
7346 TYPE_SYMTAB_DIE and return NULL.
7347 (lookup_decl_die): If the DIE is marked as removed, remove it
7348 from the hash and return NULL.
7349 (mark_removed): New helper.
7350 (prune_unused_types_prune): Call it for removed DIEs.
7351 (gen_subprogram_die): Move the premark_used_types call to after
7352 DIEs for the functions scopes are generated.
7353 (process_scope_var): Do not re-create pruned types or type decls.
7354 Make sure to also re-parent type decls.
7355 (dwarf2out_finish): Move unused type pruning and debug_types
7356 handling ...
7357 (dwarf2out_early_finish): ... here.
7358
7359 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
7360
7361 * config/arc/arc-c.c: New file.
7362 * config/arc/arc-c.def: Likewise.
7363 * config/arc/t-arc: Likewise.
7364 * config.gcc: Include arc-c.o as c and cpp object.
7365 * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
7366 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
7367 arc_cpu_cpp_builtins.
7368
7369 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
7370
7371 * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
7372 (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
7373
7374 2016-09-28 Nathan Sidwell <nathan@acm.org>
7375
7376 * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
7377 printing.
7378
7379 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
7380
7381 PR tree-optimization/61056
7382 * gimple-fold.c (gimple_fold_builtin_strchr):
7383 New function to optimize strchr (s, 0) to strlen.
7384 (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
7385
7386 2016-09-27 Robin Dapp <rdapp@linux.vnet.ibm.com>
7387
7388 PR tree-optimization/77724
7389 * tree-vect-loop-manip.c (create_intersect_range_checks_index):
7390 Add tree_fits_shwi_p check.
7391
7392 2016-09-27 Jakub Jelinek <jakub@redhat.com>
7393
7394 * auto-inc-dec.c (try_merge): Remove break after return.
7395 * cselib.c (autoinc_split): Likewise.
7396 * explow.c (promote_mode): Likewise.
7397 * fixed-value.c (fixed_arithmetic): Likewise.
7398 * hsa.c (hsa_internal_fn::get_arity): Likewise.
7399 * rtlanal.c (modified_between_p, modified_in_p): Likewise.
7400 * trans-mem.c (get_attrs_for): Likewise.
7401 * tree-if-conv.c (if_convertible_stmt_p): Likewise.
7402 * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
7403 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
7404 * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
7405 * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
7406 * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
7407 * config/cris/cris.c (cris_op_str): Likewise.
7408 * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
7409 * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
7410
7411 2016-09-27 Nathan Sidwell <nathan@codesourcery.com>
7412
7413 * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
7414 IFN_GOACC_REDUCTION_CODES): New.
7415 (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
7416 ifn_goacc_reduction_kind): Use them.
7417 * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
7418 of internal functions, when applicable.
7419
7420 2016-09-27 Maciej W. Rozycki <macro@imgtec.com>
7421
7422 * config/mips/constraints.md (d): Fix documentation.
7423 * doc/md.texi (Machine Constraints): Update accordingly.
7424
7425 2016-09-27 Richard Biener <rguenther@suse.de>
7426
7427 * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
7428 cur_line_info_table initialization ...
7429 (dwarf2out_assembly_start): ... here.
7430
7431 2016-09-27 Matthew Wahab <matthew.wahab@arm.com>
7432
7433 * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
7434 * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
7435 (*thumb2_movhi_vfp): Likewise.
7436 (*arm_movhi_fp16): Remove predication operand from VMOV.F16
7437 template. Expand predicable attribute to mark VMOV.F16 as not
7438 predicable. Add "arch" attribute.
7439 (*thumb2_movhi_fp16): Likewise.
7440 (*arm_movsi_vfp): Break a long line. Add "arch" attribute.
7441 (*thumb2_movsi_vfp): Add "arch" attribute.
7442
7443 2016-09-27 David Edelsohn <dje.gcc@gmail.com>
7444
7445 * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
7446 VAR_DECL string.
7447
7448 2016-09-27 Marek Polacek <polacek@redhat.com>
7449
7450 * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
7451 comment.
7452
7453 * config/c6x/c6x.h: Adjust fall through comment.
7454 * config/sh/sh.c (final_prescan_insn): Likewise.
7455 * config/visium/visium.c (visium_expand_int_cstore): Likewise.
7456 (visium_expand_fp_cstore): Likewise.
7457
7458 2016-09-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7459
7460 * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
7461 expected by -Wimplicit-fallthrough.
7462 (thumb1_size_rtx_costs): Likewise.
7463 (thumb2_reorg): Likewise.
7464 (tls_mentioned_p): Add "Fall through" comment.
7465 (thumb2_reorg): Likewise.
7466 * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
7467 comment form expected by -Wimplicit-fallthrough.
7468
7469 2016-09-27 Martin Liska <mliska@suse.cz>
7470
7471 PR gcov-profile/46266
7472 * input.h (RESERVED_LOCATION_P): New macro.
7473 * profile.c (branch_prob): Use RESERVED_LOCATION_P and
7474 instread of comparison with UNKNOWN_LOCATION.
7475
7476 2016-09-27 Richard Biener <rguenther@suse.de>
7477
7478 PR tree-optimization/77745
7479 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7480 When removing redundant stores make sure to check compatibility
7481 of the TBAA state for downstream accesses.
7482 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
7483 value-numbering virtual operands for store matches.
7484
7485 2016-09-27 Oleg Endo <olegendo@gcc.gnu.org>
7486
7487 PR target/51244
7488 * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
7489 movrt patterns. Match them before anything else in the SET case.
7490
7491 2016-09-27 Martin Liska <mliska@suse.cz>
7492
7493 PR gcov-profile/7970
7494 PR gcov-profile/16855
7495 PR gcov-profile/44779
7496 * coverage.c (build_gcov_exit_decl): New function.
7497 (coverage_obj_init): Call the function and generate __gcov_exit
7498 destructor.
7499 * doc/gcov.texi: Document when __gcov_exit function is called.
7500
7501 2016-09-27 Marek Polacek <polacek@redhat.com>
7502
7503 PR bootstrap/77751
7504 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
7505 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
7506 -Wno-error instead of -Wno-implicit-fallthrough.
7507
7508 2016-09-27 Martin Liska <mliska@suse.cz>
7509
7510 PR bootstrap/77749
7511 * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
7512
7513 2016-09-27 Jakub Jelinek <jakub@redhat.com>
7514
7515 * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
7516 * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
7517 comments. Remove break after return.
7518 (ix86_fp_compare_code_to_integer, has_dispatch,
7519 ix86_simd_clone_usable): Remove break after return.
7520
7521 2016-09-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
7522
7523 PR rlt-optimization/77714
7524 * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
7525 REG_EQUAL note.
7526
7527 2016-09-27 Kugan Vivekanandarajah <kuganv@linaro.org>
7528
7529 PR ipa/77677
7530 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
7531 extract_range_from_unary_expr to convert value_range.
7532 * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
7533 (extract_range_from_unary_expr): This.
7534 * tree-vrp.h (extract_range_from_unary_expr): Declare.
7535
7536 2016-09-27 Segher Boessenkool <segher@kernel.crashing.org>
7537
7538 * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
7539
7540 2016-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7541
7542 * config/i386/i386.c (ix86_print_operand)
7543 [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
7544 * config/sparc/sparc.c (check_pic): Add fallthrough comment.
7545 (epilogue_renumber): Likewise.
7546
7547 2016-09-26 Kugan Vivekanandarajah <kuganv@linaro.org>
7548
7549 PR middle-end/77719
7550 * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
7551 to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
7552
7553 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
7554
7555 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
7556 is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
7557 is_mm_seq_cst, is_mm_sync): Move to ...
7558 * memmodel.h: This. New file.
7559 * builtins.c: Include memmodel.h.
7560 * optabs.c: Likewise.
7561 * tsan.c: Likewise.
7562 * config/aarch64/aarch64.c: Likewise.
7563 * config/alpha/alpha.c: Likewise.
7564 * config/arm/arm.c: Likewise.
7565 * config/i386/i386.c: Likewise.
7566 * config/ia64/ia64.c: Likewise.
7567 * config/mips/mips.c: Likewise.
7568 * config/rs6000/rs6000.c: Likewise.
7569 * config/sparc/sparc.c: Likewise.
7570 * genconditions.c: Include memmodel.h in generated file.
7571 * genemit.c: Likewise.
7572 * genoutput.c: Likewise.
7573 * genpeep.c: Likewise.
7574 * genpreds.c: Likewise.
7575 * genrecog.c: Likewise.
7576
7577 2016-09-26 David Malcolm <dmalcolm@redhat.com>
7578
7579 * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
7580 "c" instead when parsing characters. Move operand parsing into...
7581 (read_rtx_operand): ...this new function, renaming "i" to "idx",
7582 and tightening the scope of various locals.
7583
7584 2016-09-26 Liu Hao <lh_mouse@126.com>
7585
7586 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
7587
7588 2016-09-26 Marek Polacek <polacek@redhat.com>
7589
7590 * system.h: Use __has_attribute to check whether the fallthrough
7591 attribute is supported.
7592
7593 2016-09-26 Marek Polacek <polacek@redhat.com>
7594
7595 * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
7596 gimple_call_internal_p.
7597 * ipa-split.c (find_return_bb): Likewise.
7598 (execute_split_functions): Likewise.
7599 * omp-low.c (dump_oacc_loop_part): Likewise.
7600 (oacc_loop_xform_head_tail): Likewise.
7601 * predict.c (predict_loops): Likewise.
7602 * sanopt.c (pass_sanopt::execute): Likewise.
7603 * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
7604 * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
7605 * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
7606 (expand_ifn_va_arg_1): Use gimple_call_internal_p.
7607 (expand_ifn_va_arg): Likewise.
7608 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
7609 (optimize_mask_stores): Likewise.
7610 * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
7611 (vect_transform_stmt): Likewise.
7612 * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
7613 * tsan.c (instrument_memory_accesses): Likewise.
7614
7615 2016-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7616 Alexander Monakov <amonakov@ispras.ru>
7617
7618 * regrename.c (rename_chains): Check
7619 HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
7620 HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
7621 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
7622
7623 2016-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7624
7625 * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
7626 (s390_sched_score): Likewise.
7627
7628 2016-09-26 Martin Liska <mliska@suse.cz>
7629
7630 * doc/gcov.texi: Update program output of gcov tool.
7631
7632 2016-09-26 Martin Liska <mliska@suse.cz>
7633
7634 PR gcov-profile/23332
7635 * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
7636 * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
7637 * value-prof.c (dump_histogram_value): Do not handle
7638 HIST_TYPE_CONST_DELTA.
7639 (stream_in_histogram_value): Likewise.
7640 (gimple_find_values_to_profile): Likewise.
7641 * value-prof.h (enum hist_type): Likewise.
7642
7643 2016-09-26 Martin Liska <mliska@suse.cz>
7644
7645 * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
7646 from default sanitize recover values.
7647 * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
7648 -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
7649 * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
7650 consistent.
7651 * opts.c (finish_options): Do a generic loop over options
7652 that can be recovered.
7653 (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
7654 SANITIZE_RETURN.
7655 (common_handle_option): Likewise.
7656 * opts.h: Declare can_recover to sanitizer_opts_s.
7657
7658 2016-09-26 Andre Vieira <andre.simoesdiasvieira@arm.com>
7659
7660 * target.def(elf_flags_numeric): Change documentation to present tense.
7661 * doc/tm.texi: Regenerate.
7662
7663 2016-09-26 Marek Polacek <polacek@redhat.com>
7664
7665 PR c/7652
7666 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
7667 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
7668 -Wno-switch-fallthrough.
7669 * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
7670 (expand_builtin): Likewise.
7671 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
7672 * convert.c (convert_to_real_1): Likewise.
7673 (convert_to_integer_1): Likewise.
7674 * final.c (output_alternate_entry_point): Likewise.
7675 * genattrtab.c (make_canonical): Likewise.
7676 (write_test_expr): Likewise.
7677 * genpreds.c (validate_exp): Likewise.
7678 * gimple-ssa-strength-reduction.c
7679 (find_candidates_dom_walker::before_dom_children): Likewise.
7680 * godump.c (go_format_type): Likewise.
7681 * reload1.c (elimination_effects): Likewise.
7682 * resource.c (mark_referenced_resources): Likewise.
7683 (mark_set_resources): Likewise.
7684 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
7685 * varasm.c (output_addressed_constants): Likewise.
7686
7687 2016-09-26 Marek Polacek <polacek@redhat.com>
7688
7689 PR c/7652
7690 * common.opt (Wimplicit-fallthrough): New option.
7691 * doc/extend.texi: Document statement attributes and the fallthrough
7692 attribute.
7693 * doc/invoke.texi: Document -Wimplicit-fallthrough.
7694 * gimple.h (gimple_call_internal_p): New function.
7695 * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
7696 (struct label_entry): New struct.
7697 (find_label_entry): New function.
7698 (case_label_p): New function.
7699 (collect_fallthrough_labels): New function.
7700 (last_stmt_in_scope): New function.
7701 (should_warn_for_implicit_fallthrough): New function.
7702 (warn_implicit_fallthrough_r): New function.
7703 (maybe_warn_implicit_fallthrough): New function.
7704 (expand_FALLTHROUGH_r): New function.
7705 (expand_FALLTHROUGH): New function.
7706 (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
7707 expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
7708 (gimplify_label_expr): New function.
7709 (gimplify_case_label_expr): Set location.
7710 (gimplify_expr): Call gimplify_label_expr.
7711 * internal-fn.c (expand_FALLTHROUGH): New function.
7712 * internal-fn.def (FALLTHROUGH): New internal function.
7713 * langhooks.c (lang_GNU_OBJC): New function.
7714 * langhooks.h (lang_GNU_OBJC): Declare.
7715 * system.h (gcc_fallthrough): Define.
7716 * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
7717 * tree.h (FALLTHROUGH_LABEL_P): Define.
7718
7719 2016-09-26 Richard Biener <rguenther@suse.de>
7720
7721 * dwarf2out.c (stripattributes): Remove unused function.
7722 (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
7723 Push dwarf_split_debug_info handling into init_sections_and_labels.
7724 (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
7725 (DEBUG_MACRO_SECTION_FLAGS): Remove.
7726 (debug_macinfo_section_name): New global.
7727 (output_macinfo): Use debug_macinfo_section_name.
7728 (init_sections_and_labels): Split out section and label generation
7729 from dwarf2out_init. Set debug_macinfo_section_name.
7730 (dwarf2out_init): Move text section label generation and emission
7731 to ...
7732 (dwarf2out_assembly_start): ... here.
7733 (dwarf2out_finish): Call init_sections_and_labels before DWARF
7734 output starts.
7735
7736 2016-09-26 Richard Biener <rguenther@suse.de>
7737
7738 PR debug/77692
7739 * cgraphunit.c (analyze_functions): Before early removing
7740 global vars calls the late_global_decl debug handler mark
7741 the variable as readonly.
7742
7743 2016-09-25 Oleg Endo <olegendo@gcc.gnu.org>
7744
7745 PR target/51244
7746 * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
7747 (sh_rtx_costs): Handle SET of movt and movrt patterns.
7748 * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
7749 declare new overloads.
7750 * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
7751 operand.
7752
7753 2016-09-24 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
7754
7755 * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
7756 Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
7757
7758 2016-09-24 David Edelsohn <dje.gcc@gmail.com>
7759
7760 * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
7761 * configure: Regenerate.
7762
7763 2016-09-24 Marek Polacek <polacek@redhat.com>
7764
7765 PR c/77490
7766 * doc/invoke.texi: Document -Wbool-operation.
7767
7768 2016-09-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
7769
7770 * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
7771 * config/rs6000/rs6000.c (expand_block_compare): New function used by
7772 cmpmemsi pattern to do builtin expansion of memcmp ().
7773 (compute_current_alignment): Add helper function for
7774 expand_block_compare used to compute alignment as the compare proceeds.
7775 (select_block_compare_mode): Used by expand_block_compare to select
7776 the mode used for reading the next chunk of bytes in the compare.
7777 (do_load_for_compare): Used by expand_block_compare to emit the load
7778 insns for the compare.
7779 (rs6000_emit_dot_insn): Moved this function to avoid a forward
7780 reference from expand_block_compare ().
7781 * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
7782 prototype for this function.
7783 * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
7784 target option for controlling how much code inline expansion of
7785 memcmp() will be allowed to generate.
7786
7787 2016-09-23 Jakub Jelinek <jakub@redhat.com>
7788
7789 * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
7790 hook_bool_mode_false, hook_bool_mode_true,
7791 hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
7792 hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
7793 hook_bool_const_rtx_insn_const_rtx_insn_true,
7794 hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
7795 hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
7796 hook_bool_const_tree_hwi_hwi_const_tree_false,
7797 hook_bool_const_tree_hwi_hwi_const_tree_true,
7798 default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
7799 hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
7800 hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
7801 hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
7802 hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
7803 hook_bool_const_tree_true, hook_bool_tree_tree_false,
7804 hook_bool_tree_tree_true, hook_bool_tree_bool_false,
7805 hook_bool_rtx_insn_true, hook_bool_rtx_false,
7806 hook_bool_uintp_uintp_false,
7807 hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
7808 hook_rtx_tree_int_null, hook_uint_mode_0,
7809 hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
7810 hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
7811 hook_constcharptr_const_rtx_insn_null,
7812 hook_constcharptr_const_tree_const_tree_null,
7813 hook_constcharptr_int_const_tree_null,
7814 hook_constcharptr_int_const_tree_const_tree_null,
7815 hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
7816 hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
7817 ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
7818
7819 * vec.h (vNULL): Extend comment to say = vNULL initialization
7820 isn't needed for static vars.
7821
7822 * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
7823 loop_nests, s_i_d, last_added_blocks): Remove unnecessary
7824 = vNULL initialization of file scope vec.
7825 * passes.c (pass_tab, enabled_pass_uid_range_tab,
7826 disabled_pass_uid_range_tab): Likewise.
7827 * haifa-sched.c (sched_luids, h_i_d): Likewise.
7828 * tree-chkp-opt.c (check_infos): Likewise.
7829 * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
7830
7831 * vec.h (vnull::operator vec): Add constexpr keyword for
7832 C++11 and later.
7833
7834 2016-09-23 Doug Gilmore <doug.gilmore@imgtec.com>
7835
7836 PR tree-optimization/77654
7837 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
7838 to duplicate_ssa_name_ptr_info.
7839
7840 2016-09-23 David Malcolm <dmalcolm@redhat.com>
7841
7842 PR preprocessor/77672
7843 * input.c (selftest::test_lexer_string_locations_simple): Update
7844 test to expect location information of the terminator character
7845 at the location of the final closing quote.
7846 (selftest::test_lexer_string_locations_hex): Likewise.
7847 (selftest::test_lexer_string_locations_oct): Likewise.
7848 (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
7849 (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
7850 (selftest::test_lexer_string_locations_ucn4): Likewise.
7851 (selftest::test_lexer_string_locations_ucn8): Likewise.
7852 (selftest::test_lexer_string_locations_u8): Likewise.
7853 (selftest::test_lexer_string_locations_utf8_source): Likewise.
7854 (selftest::test_lexer_string_locations_concatenation_1): Likewise.
7855 (selftest::test_lexer_string_locations_concatenation_2): Likewise.
7856 (selftest::test_lexer_string_locations_concatenation_3): Likewise.
7857 (selftest::test_lexer_string_locations_macro): Likewise.
7858 (selftest::test_lexer_string_locations_long_line): Likewise.
7859
7860 2016-09-23 Richard Biener <rguenther@suse.de>
7861
7862 * tree-ssa-sccvn.c (visit_reference_op_call): Value number
7863 virtual definition to virtual use if the call devirtualizes
7864 to a const or pure function.
7865 (visit_use): Also visit calls we can devirtualize to a
7866 const or pure function.
7867
7868 2016-09-23 Richard Biener <rguenther@suse.de>
7869
7870 PR tree-optimization/77697
7871 * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
7872 signal error if we have sth ternary or unhandled.
7873
7874 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
7875
7876 * config/arm/arm_neon.h (vabd_f16): New.
7877 (vabdq_f16): New.
7878 (vabs_f16): New.
7879 (vabsq_f16): New.
7880 (vadd_f16): New.
7881 (vaddq_f16): New.
7882 (vcage_f16): New.
7883 (vcageq_f16): New.
7884 (vcagt_f16): New.
7885 (vcagtq_f16): New.
7886 (vcale_f16): New.
7887 (vcaleq_f16): New.
7888 (vcalt_f16): New.
7889 (vcaltq_f16): New.
7890 (vceq_f16): New.
7891 (vceqq_f16): New.
7892 (vceqz_f16): New.
7893 (vceqzq_f16): New.
7894 (vcge_f16): New.
7895 (vcgeq_f16): New.
7896 (vcgez_f16): New.
7897 (vcgezq_f16): New.
7898 (vcgt_f16): New.
7899 (vcgtq_f16): New.
7900 (vcgtz_f16): New.
7901 (vcgtzq_f16): New.
7902 (vcle_f16): New.
7903 (vcleq_f16): New.
7904 (vclez_f16): New.
7905 (vclezq_f16): New.
7906 (vclt_f16): New.
7907 (vcltq_f16): New.
7908 (vcltz_f16): New.
7909 (vcltzq_f16): New.
7910 (vcvt_f16_s16): New.
7911 (vcvt_f16_u16): New.
7912 (vcvt_s16_f16): New.
7913 (vcvt_u16_f16): New.
7914 (vcvtq_f16_s16): New.
7915 (vcvtq_f16_u16): New.
7916 (vcvtq_s16_f16): New.
7917 (vcvtq_u16_f16): New.
7918 (vcvta_s16_f16): New.
7919 (vcvta_u16_f16): New.
7920 (vcvtaq_s16_f16): New.
7921 (vcvtaq_u16_f16): New.
7922 (vcvtm_s16_f16): New.
7923 (vcvtm_u16_f16): New.
7924 (vcvtmq_s16_f16): New.
7925 (vcvtmq_u16_f16): New.
7926 (vcvtn_s16_f16): New.
7927 (vcvtn_u16_f16): New.
7928 (vcvtnq_s16_f16): New.
7929 (vcvtnq_u16_f16): New.
7930 (vcvtp_s16_f16): New.
7931 (vcvtp_u16_f16): New.
7932 (vcvtpq_s16_f16): New.
7933 (vcvtpq_u16_f16): New.
7934 (vcvt_n_f16_s16): New.
7935 (vcvt_n_f16_u16): New.
7936 (vcvtq_n_f16_s16): New.
7937 (vcvtq_n_f16_u16): New.
7938 (vcvt_n_s16_f16): New.
7939 (vcvt_n_u16_f16): New.
7940 (vcvtq_n_s16_f16): New.
7941 (vcvtq_n_u16_f16): New.
7942 (vfma_f16): New.
7943 (vfmaq_f16): New.
7944 (vfms_f16): New.
7945 (vfmsq_f16): New.
7946 (vmax_f16): New.
7947 (vmaxq_f16): New.
7948 (vmaxnm_f16): New.
7949 (vmaxnmq_f16): New.
7950 (vmin_f16): New.
7951 (vminq_f16): New.
7952 (vminnm_f16): New.
7953 (vminnmq_f16): New.
7954 (vmul_f16): New.
7955 (vmul_lane_f16): New.
7956 (vmul_n_f16): New.
7957 (vmulq_f16): New.
7958 (vmulq_lane_f16): New.
7959 (vmulq_n_f16): New.
7960 (vneg_f16): New.
7961 (vnegq_f16): New.
7962 (vpadd_f16): New.
7963 (vpmax_f16): New.
7964 (vpmin_f16): New.
7965 (vrecpe_f16): New.
7966 (vrecpeq_f16): New.
7967 (vrnd_f16): New.
7968 (vrndq_f16): New.
7969 (vrnda_f16): New.
7970 (vrndaq_f16): New.
7971 (vrndm_f16): New.
7972 (vrndmq_f16): New.
7973 (vrndn_f16): New.
7974 (vrndnq_f16): New.
7975 (vrndp_f16): New.
7976 (vrndpq_f16): New.
7977 (vrndx_f16): New.
7978 (vrndxq_f16): New.
7979 (vrsqrte_f16): New.
7980 (vrsqrteq_f16): New.
7981 (vrecps_f16): New.
7982 (vrecpsq_f16): New.
7983 (vrsqrts_f16): New.
7984 (vrsqrtsq_f16): New.
7985 (vsub_f16): New.
7986 (vsubq_f16): New.
7987
7988 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
7989
7990 * config.gcc (extra_headers): Add arm_fp16.h
7991 * config/arm/arm_fp16.h: New.
7992 * config/arm/arm_neon.h: Include "arm_fp16.h".
7993
7994 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
7995
7996 * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
7997 variants).
7998 (vmulf): New (v8hf, v4hf variants).
7999 (vfma): New (v8hf, v4hf variants).
8000 (vfms): New (v8hf, v4hf variants).
8001 (vsub): New (v8hf, v4hf variants).
8002 (vcage): New (v8hf, v4hf variants).
8003 (vcagt): New (v8hf, v4hf variants).
8004 (vcale): New (v8hf, v4hf variants).
8005 (vcalt): New (v8hf, v4hf variants).
8006 (vceq): New (v8hf, v4hf variants).
8007 (vcgt): New (v8hf, v4hf variants).
8008 (vcge): New (v8hf, v4hf variants).
8009 (vcle): New (v8hf, v4hf variants).
8010 (vclt): New (v8hf, v4hf variants).
8011 (vceqz): New (v8hf, v4hf variants).
8012 (vcgez): New (v8hf, v4hf variants).
8013 (vcgtz): New (v8hf, v4hf variants).
8014 (vcltz): New (v8hf, v4hf variants).
8015 (vclez): New (v8hf, v4hf variants).
8016 (vabd): New (v8hf, v4hf variants).
8017 (vmaxf): New (v8hf, v4hf variants).
8018 (vmaxnm): New (v8hf, v4hf variants).
8019 (vminf): New (v8hf, v4hf variants).
8020 (vminnm): New (v8hf, v4hf variants).
8021 (vpmaxf): New (v4hf variant).
8022 (vpminf): New (v4hf variant).
8023 (vpadd): New (v4hf variant).
8024 (vrecps): New (v8hf, v4hf variants).
8025 (vrsqrts): New (v8hf, v4hf variants).
8026 (vabs): New (v8hf, v4hf variants).
8027 (vneg): New (v8hf, v4hf variants).
8028 (vrecpe): New (v8hf, v4hf variants).
8029 (vrnd): New (v8hf, v4hf variants).
8030 (vrnda): New (v8hf, v4hf variants).
8031 (vrndm): New (v8hf, v4hf variants).
8032 (vrndn): New (v8hf, v4hf variants).
8033 (vrndp): New (v8hf, v4hf variants).
8034 (vrndx): New (v8hf, v4hf variants).
8035 (vrsqrte): New (v8hf, v4hf variants).
8036 (vmul_lane): Add v4hf and v8hf variants.
8037 (vmul_n): Add v4hf and v8hf variants.
8038 (vext): New (v8hf, v4hf variants).
8039 (vcvts): New (v8hi, v4hi variants).
8040 (vcvts): New (v8hf, v4hf variants).
8041 (vcvtu): New (v8hi, v4hi variants).
8042 (vcvtu): New (v8hf, v4hf variants).
8043 (vcvts_n): New (v8hf, v4hf variants).
8044 (vcvtu_n): New (v8hi, v4hi variants).
8045 (vcvts_n): New (v8hi, v4hi variants).
8046 (vcvtu_n): New (v8hf, v4hf variants).
8047 (vbsl): New (v8hf, v4hf variants).
8048 (vcvtas): New (v8hf, v4hf variants).
8049 (vcvtau): New (v8hf, v4hf variants).
8050 (vcvtms): New (v8hf, v4hf variants).
8051 (vcvtmu): New (v8hf, v4hf variants).
8052 (vcvtns): New (v8hf, v4hf variants).
8053 (vcvtnu): New (v8hf, v4hf variants).
8054 (vcvtps): New (v8hf, v4hf variants).
8055 (vcvtpu): New (v8hf, v4hf variants).
8056
8057 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8058
8059 * config/arm/arm-builtins.c (hf_UP): New.
8060 (si_UP): New.
8061 (vfp_builtin_data): New. Update comment.
8062 (enum arm_builtins): Include "arm_vfp_builtins.def".
8063 (ARM_BUILTIN_VFP_PATTERN_START): New.
8064 (arm_init_vfp_builtins): New.
8065 (arm_init_builtins): Add arm_init_vfp_builtins.
8066 (arm_expand_vfp_builtin): New.
8067 (arm_expand_builtins): Update for arm_expand_vfp_builtin. Fix
8068 long line.
8069 * config/arm/arm_vfp_builtins.def: New file.
8070 * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
8071 (arm-builtins.o): Likewise.
8072
8073 2016-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
8074
8075 PR ipa/77677
8076 * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
8077 from constant while creating value range.
8078
8079 2016-09-23 Renlin Li <renlin.li@arm.com>
8080
8081 * ira.c (ira): Move ira_use_lra_p initialization code to ...
8082 (ira_init_once): Here.
8083
8084 2016-09-23 Uros Bizjak <ubizjak@gmail.com>
8085 Jakub Jelinek <jakub@redhat.com>
8086
8087 * hooks.h (hook_uint_uintp_false): Rename to...
8088 (hook_bool_uint_uintp_false): ... this.
8089 * hooks.c (hook_uint_uintp_false): Rename to...
8090 (hook_bool_uint_uintp_false): ... this.
8091 * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
8092 instead of hook_uint_uintp_false.
8093
8094 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8095
8096 * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
8097 (arm_init_builtins): Move body of a loop to the standalone
8098 function arm_init_neon_builtin.
8099 (arm_expand_neon_builtin_1): New. Update comment. Function body
8100 moved from arm_neon_builtin with some white-space fixes.
8101 (arm_expand_neon_builtin): Move code into the standalone function
8102 arm_expand_neon_builtin_1.
8103
8104 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8105
8106 * config/arm/iterators.md (VCVTHI): New.
8107 (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE. Fix a long line.
8108 (NEON_VAGLTE): New.
8109 (VFM_LANE_AS): New.
8110 (VH_CVTTO): New.
8111 (V_reg): Add HF, V4HF and V8HF. Fix white-space.
8112 (V_HALF): Add V4HF. Fix white-space.
8113 (V_if_elem): Add HF, V4HF and V8HF. Fix white-space.
8114 (V_s_elem): Likewise.
8115 (V_sz_elem): Fix white-space.
8116 (V_elem_ch): Likewise.
8117 (VH_elem_ch): New.
8118 (scalar_mul_constraint): Add V8HF and V4HF.
8119 (Is_float_mode): Fix white-space.
8120 (Is_d_reg): Add V4HF and V8HF. Fix white-space.
8121 (q): Add HF. Fix white-space.
8122 (float_sup): New.
8123 (float_SUP): New.
8124 (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
8125 (neon_vfm_lane_as): New.
8126 * config/arm/neon.md (add<mode>3_fp16): New.
8127 (sub<mode>3_fp16): New.
8128 (mul<mode>3add<mode>_neon): New.
8129 (fma<VH:mode>4_intrinsic): New.
8130 (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
8131 (fmsub<VH:mode>4_intrinsic): New.
8132 (<absneg_str><mode>2): New.
8133 (neon_v<absneg_str><mode>): New.
8134 (neon_v<fp16_rnd_str><mode>): New.
8135 (neon_vrsqrte<mode>): New.
8136 (neon_vpaddv4hf): New.
8137 (neon_vadd<mode>): New.
8138 (neon_vsub<mode>): New.
8139 (neon_vmulf<mode>): New.
8140 (neon_vfma<VH:mode>): New.
8141 (neon_vfms<VH:mode>): New.
8142 (neon_vc<cmp_op><mode>): New.
8143 (neon_vc<cmp_op><mode>_fp16insn): New
8144 (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
8145 (neon_vca<cmp_op><mode>): New.
8146 (neon_vca<cmp_op><mode>_fp16insn): New.
8147 (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
8148 (neon_vc<cmp_op>z<mode>): New.
8149 (neon_vabd<mode>): New.
8150 (neon_v<maxmin>f<mode>): New.
8151 (neon_vp<maxmin>fv4hf: New.
8152 (neon_<fmaxmin_op><mode>): New.
8153 (neon_vrecps<mode>): New.
8154 (neon_vrsqrts<mode>): New.
8155 (neon_vrecpe<mode>): New (VH variant).
8156 (neon_vdup_lane<mode>_internal): New.
8157 (neon_vdup_lane<mode>): New.
8158 (neon_vcvt<sup><mode>): New (VCVTHI variant).
8159 (neon_vcvt<sup><mode>): New (VH variant).
8160 (neon_vcvt<sup>_n<mode>): New (VH variant).
8161 (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
8162 (neon_vcvt<vcvth_op><sup><mode>): New.
8163 (neon_vmul_lane<mode>): New.
8164 (neon_vmul_n<mode>): New.
8165 * config/arm/unspecs.md (UNSPEC_VCALE): New
8166 (UNSPEC_VCALT): New.
8167 (UNSPEC_VFMA_LANE): New.
8168 (UNSPECS_VFMS_LANE): New.
8169
8170 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
8171
8172 * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
8173 ("*extzv<mode><clobbercc_or_nocc>"):
8174 Correct a typo in a comment.
8175 Merged patterns.
8176 ("*insv<mode>_zEC12", "*insv<mode>_z10")
8177 ("*insv<mode><clobbercc_or_nocc>"): Ditto.
8178 ("*insv<mode>_zEC12_appendbitsleft")
8179 ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
8180 ("*insv<mode>_z10_appendbitsleft"): Ditto.
8181 ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
8182 ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
8183 Provide pattern with operands switched.
8184 ("*pre_z10_extv<mode>"):
8185 Use new subst patterns.
8186 ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
8187 ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
8188 ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
8189 ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
8190 ("*<risbg_n>_<mode>_ior_and_lshiftrt")
8191 ("*<risbg_n>_sidi_ior_and_lshiftrt")
8192 ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
8193 New patterns.
8194 ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
8195 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
8196 ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
8197 on zEC12.
8198 ("SINT"): New mode_iterator with SI, HI, QI.
8199 * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
8200 ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
8201 duplication.
8202
8203 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
8204
8205 * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
8206 new interface of s390_contiguous_bitmask_p.
8207 ("contiguous_bitmask_nowrap_operand"): New predicate.
8208 ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
8209 * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
8210 of s390_contiguous_bitmask_p.
8211 ("NxxDw"): Rename NxxDq constraint to NxxDw.
8212 ("NxxSw"): New constraint.
8213 * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
8214 * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
8215 interface.
8216 (s390_contiguous_bitmask_nowrap_p): Export.
8217 * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
8218 former s390_contiguous_bitmask_p.
8219 (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
8220 detect contiguous bit ranges with wraparound. Change signature to
8221 return START and END position instead of POS and LENGTH.
8222 (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
8223 ranges with wraparound.
8224 (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
8225 (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
8226 Adapt to new signature of s390_contiguous_bitmask_p.
8227
8228 2016-09-23 Bin Cheng <bin.cheng@arm.com>
8229
8230 * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
8231 (create_intersect_range_checks): New.
8232 (vect_create_cond_for_alias_checks): Call above function.
8233
8234 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8235
8236 * config/arm/iterators.md (Code iterators): Fix some white-space
8237 in the comments.
8238 (GLTE): New.
8239 (ABSNEG): New
8240 (FCVT): Moved from vfp.md.
8241 (VCVT_HF_US_N): New.
8242 (VCVT_SI_US_N): New.
8243 (VCVT_HF_US): New.
8244 (VCVTH_US): New.
8245 (FP16_RND): New.
8246 (absneg_str): New.
8247 (FCVTI32typename): Moved from vfp.md.
8248 (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
8249 UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
8250 UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
8251 UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N, UNSPEC_VCVTH_S_N,
8252 UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
8253 (vcvth_op): New.
8254 (fp16_rnd_str): New.
8255 (fp16_rnd_insn): New.
8256 * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
8257 (UNSPEC_VCVT_HF_U_N): New.
8258 (UNSPEC_VCVT_SI_S_N): New.
8259 (UNSPEC_VCVT_SI_U_N): New.
8260 (UNSPEC_VCVTH_S): New.
8261 (UNSPEC_VCVTH_U): New.
8262 (UNSPEC_VCVTA_S): New.
8263 (UNSPEC_VCVTA_U): New.
8264 (UNSPEC_VCVTM_S): New.
8265 (UNSPEC_VCVTM_U): New.
8266 (UNSPEC_VCVTN_S): New.
8267 (UNSPEC_VCVTN_U): New.
8268 (UNSPEC_VCVTP_S): New.
8269 (UNSPEC_VCVTP_U): New.
8270 (UNSPEC_VCVTP_S): New.
8271 (UNSPEC_VCVTP_U): New.
8272 (UNSPEC_VRND): New.
8273 (UNSPEC_VRNDA): New.
8274 (UNSPEC_VRNDI): New.
8275 (UNSPEC_VRNDM): New.
8276 (UNSPEC_VRNDN): New.
8277 (UNSPEC_VRNDP): New.
8278 (UNSPEC_VRNDX): New.
8279 * config/arm/vfp.md (<absneg_str>hf2): New.
8280 (neon_vabshf): New.
8281 (neon_v<fp16_rnd_str>hf): New.
8282 (neon_vrndihf): New.
8283 (addhf3): New.
8284 (subhf3): New.
8285 (divhf3): New.
8286 (mulhf3): New.
8287 (*mulsf3neghf_vfp): New.
8288 (*negmulhf3_vfp): New.
8289 (*mulsf3addhf_vfp): New.
8290 (*mulhf3subhf_vfp): New.
8291 (*mulhf3neghfaddhf_vfp): New.
8292 (*mulhf3neghfsubhf_vfp): New.
8293 (fmahf4): New.
8294 (neon_vfmahf): New.
8295 (fmsubhf4_fp16): New.
8296 (neon_vfmshf): New.
8297 (*fnmsubhf4): New.
8298 (*fnmaddhf4): New.
8299 (neon_vsqrthf): New.
8300 (neon_vrsqrtshf): New.
8301 (FCVT): Move to iterators.md.
8302 (FCVTI32typename): Likewise.
8303 (neon_vcvth<sup>hf): New.
8304 (neon_vcvth<sup>si): New.
8305 (neon_vcvth<sup>_nhf_unspec): New.
8306 (neon_vcvth<sup>_nhf): New.
8307 (neon_vcvth<sup>_nsi_unspec): New.
8308 (neon_vcvth<sup>_nsi): New.
8309 (neon_vcvt<vcvth_op>h<sup>si): New.
8310 (neon_<fmaxmin_op>hf): New.
8311
8312 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
8313
8314 * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
8315 ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
8316 ("*insv<mode>_zEC12_appendbitsleft")
8317 ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
8318 ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
8319
8320 2016-09-23 Jakub Jelinek <jakub@redhat.com>
8321
8322 * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
8323 * sreal.h (sreal::min, sreal::max): Avoid static local vars,
8324 construct values without normalization.
8325 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
8326 static local lhs_ops to vNULL.
8327
8328 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8329 Jiong Wang <jiong.wang@arm.com>
8330
8331 * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
8332 available when FP16 instructions are available.
8333 (output_move_vfp): Add support for 16-bit data moves.
8334 (arm_validize_comparison): Fix some white-space. Support HFmode
8335 by conversion to SFmode.
8336 * config/arm/arm.md (truncdfhf2): Fix a comment.
8337 (extendhfdf2): Likewise.
8338 (cstorehf4): New.
8339 (movsicc): Fix some white-space.
8340 (movhfcc): New.
8341 (movsfcc): Fix some white-space.
8342 (*cmovhf): New.
8343 * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
8344 instructions are available.
8345 (*thumb2_movhi_vfp): Likewise.
8346 (*arm_movhi_fp16): New.
8347 (*thumb2_movhi_fp16): New.
8348 (*movhf_vfp_fp16): New.
8349 (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
8350 (*movhf_vfp): Likewise.
8351 (extendhfsf2): Enable when VFP FP16 instructions are available.
8352 (truncsfhf2): Enable when VFP FP16 instructions are available.
8353
8354 2016-09-23 Martin Liska <mliska@suse.cz>
8355
8356 * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
8357
8358 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8359
8360 * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
8361 V4HF modes.
8362 (arm_evpc_neon_vtrn): Likewise.
8363 (arm_evpc_neon_vrev): Likewise.
8364 (arm_evpc_neon_vext): Likewise.
8365 * config/arm/arm_neon.h (vbsl_f16): New.
8366 (vbslq_f16): New.
8367 (vdup_n_f16): New.
8368 (vdupq_n_f16): New.
8369 (vdup_lane_f16): New.
8370 (vdupq_lane_f16): New.
8371 (vext_f16): New.
8372 (vextq_f16): New.
8373 (vmov_n_f16): New.
8374 (vmovq_n_f16): New.
8375 (vrev64_f16): New.
8376 (vrev64q_f16): New.
8377 (vtrn_f16): New.
8378 (vtrnq_f16): New.
8379 (vuzp_f16): New.
8380 (vuzpq_f16): New.
8381 (vzip_f16): New.
8382 (vzipq_f16): New.
8383 * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
8384 (vdup_lane): New (v8hf, v4hf variants).
8385 (vext): New (v8hf, v4hf variants).
8386 (vbsl): New (v8hf, v4hf variants).
8387 * config/arm/iterators.md (VDQWH): New.
8388 (VH): New.
8389 (V_double_vector_mode): Add V8HF and V4HF. Fix white-space.
8390 (Scalar_mul_8_16): Fix white-space.
8391 (Is_d_reg): Add V4HF and V8HF.
8392 * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
8393 (neon_vdup_lane<mode>): New.
8394 (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
8395 (*neon_vtrn<mode>_insn): Likewise.
8396 (neon_vzip<mode>_internal): Likewise. Also fix white-space.
8397 (*neon_vzip<mode>_insn): Likewise
8398 (neon_vuzp<mode>_internal): Likewise.
8399 (*neon_vuzp<mode>_insn): Likewise
8400 * config/arm/vec-common.md (vec_perm_const<mode>): New.
8401
8402 2016-09-23 Jiong Wang <jiong.wang@arm.com>
8403 Matthew Wahab <matthew.wahab@arm.com>
8404
8405 * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
8406 (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
8407 * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
8408 available. Also fix some white-space.
8409 * config/arm/vfp.md (*arm_movhi_vfp): New.
8410 (*thumb2_movhi_vfp): New.
8411
8412 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8413
8414 * config/arm/arm-c.c (arm_cpu_builtins): Define
8415 "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
8416 "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
8417
8418 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8419
8420 * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
8421 arm_v8_1a_neon_ok. Add entries for arm_v8_2a_fp16_scalar_ok,
8422 arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
8423 arm_v8_2a_fp16_neon_hw.
8424 (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
8425 arm_v8_2a_neon.
8426
8427 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8428
8429 * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
8430 arm_fp16_alternative_ok and arm_fp16_none_ok.
8431
8432 2016-09-23 Martin Liska <mliska@suse.cz>
8433
8434 * ipa-icf.c (sem_variable::merge): Replace adress with address.
8435
8436 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8437
8438 * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
8439 ("armv8.2-a"): New.
8440 ("armv8.2-a+fp16"): New.
8441 * config/arm/arm-protos.h (FL2_ARCH8_2): New.
8442 (FL2_FP16INST): New.
8443 (FL2_FOR_ARCH8_2A): New.
8444 * config/arm/arm-tables.opt: Regenerate.
8445 * config/arm/arm.c (arm_arch8_2): New.
8446 (arm_fp16_inst): New.
8447 (arm_option_override): Set arm_arch8_2 and arm_fp16_inst. Check
8448 for incompatible fp16-format settings.
8449 * config/arm/arm.h (TARGET_VFP_FP16INST): New.
8450 (TARGET_NEON_FP16INST): New.
8451 (arm_arch8_2): Declare.
8452 (arm_fp16_inst): Declare.
8453 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
8454 march=armv8.2-a and march=armv8.2-a+fp16.
8455 * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
8456 and armv8.2-a+fp16.
8457 * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
8458 "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
8459
8460 2016-09-23 Martin Liska <mliska@suse.cz>
8461
8462 * doc/extend.texi: Remove fused-madd from i386 target options.
8463
8464 2016-09-23 Martin Liska <mliska@suse.cz>
8465
8466 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
8467 Handle movbe.
8468
8469 2016-09-23 Martin Liska <mliska@suse.cz>
8470
8471 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
8472 Handle crc32.
8473
8474 2016-09-23 Martin Liska <mliska@suse.cz>
8475
8476 PR target/71652
8477 * config/i386/i386.c (ix86_option_override_internal): Change
8478 signature and return false when there's an error related to
8479 arch string.
8480 (release_options_strings): New function.
8481 (ix86_valid_target_attribute_tree): Call the function.
8482
8483 2016-09-23 Jakub Jelinek <jakub@redhat.com>
8484
8485 * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
8486 instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
8487 (gen_hsa_ctor_assignment): Likewise.
8488 * print-tree.c (print_node): Likewise.
8489 * tree-dump.c (dequeue_and_dump): Likewise.
8490 * tree-sra.c (sra_modify_constructor_assign): Likewise.
8491 * expr.c (store_constructor): Likewise.
8492 * fold-const.c (operand_equal_p): Likewise.
8493 * tree-pretty-print.c (dump_generic_node): Likewise.
8494 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
8495 * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
8496
8497 2016-09-23 Richard Biener <rguenther@suse.de>
8498
8499 * hooks.h (hook_uint_uintp_false): Declare.
8500
8501 2016-09-22 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8502
8503 * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
8504 (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
8505
8506 2016-09-22 Martin Sebor <msebor@redhat.com>
8507
8508 PR target/77676
8509 * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
8510 HOST_BITS_PER_WIDE_INT, make a static local variable auto.
8511 (target_int_min): Correct computation.
8512 (format_integer): Use long long as the argument for the ll length
8513 modifier.
8514 (format_floating): Use target_int_max().
8515 (get_string_length): Same.
8516 (format_string): Avoid setting the bounded flag for strings
8517 of unknown length.
8518 (try_substitute_return_value): Avoid setting range info when
8519 the result isn't bounded.
8520 * varasm.c (assemble_name): Increase buffer size.
8521
8522 2016-09-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
8523 Terry Guo <terry.guo@arm.com>
8524
8525 * target.def (elf_flags_numeric): New target hook.
8526 * targhooks.h (default_asm_elf_flags_numeric): New.
8527 * varasm.c (default_asm_elf_flags_numeric): New.
8528 (default_elf_asm_named_section): Use new target hook.
8529 * config/arm/arm.opt (mpure-code): New.
8530 * config/arm/arm.h (SECTION_ARM_PURECODE): New.
8531 * config/arm/arm.c (arm_asm_init_sections): Add section
8532 attribute to default text section if -mpure-code.
8533 (arm_option_check_internal): Diagnose use of option with
8534 non supported targets and/or options.
8535 (arm_asm_elf_flags_numeric): New.
8536 (arm_function_section): New.
8537 (arm_elf_section_type_flags): New.
8538 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
8539 for -mpure-code.
8540 * doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
8541 * doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
8542
8543 2016-09-22 Jan Hubicka <hubicka@ucw.cz>
8544
8545 * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
8546
8547 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8548
8549 * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
8550 * rtl.h: Adjust prototype.
8551
8552 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8553
8554 * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
8555 (prev_active_insn): Likewise.
8556 (active_insn_p): Likewise.
8557 * rtl.h: Adjust prototypes.
8558 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
8559 * config/arc/arc.md: Likewise.
8560 * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
8561 (branch_needs_nop_p): Likewise.
8562 (use_skip_p): Likewise.
8563 * config/sh/sh.c (gen_block_redirect): Likewise.
8564 (split_branches): Likewise.
8565 * reorg.c (optimize_skip): Likewise.
8566 (fill_simple_delay_slots): Likewise.
8567 (fill_slots_from_thread): Likewise.
8568 (relax_delay_slots): Likewise.
8569 * resource.c (mark_target_live_regs): Likewise.
8570
8571 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8572
8573 * config/cris/cris.c (cris_asm_output_case_end): Change argument
8574 type to rtx_insn *.
8575 * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
8576 (prev_nonnote_nondebug_insn): Likewise.
8577 * config/cris/cris-protos.h: Adjust prototype.
8578 * rtl.h: Likewise.
8579 * jump.c (rtx_renumbered_equal_p): Adjust.
8580
8581 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8582
8583 * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
8584 * rtl.h: Adjust prototype.
8585 * config/sh/sh.md: Adjust.
8586 * dwarf2out.c (add_var_loc_to_decl): Likewise.
8587
8588 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8589
8590 * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
8591 (prev_nondebug_insn): Likewise.
8592 * loop-doloop.c (doloop_condition_get): Likewise.
8593 * rtl.h: Adjust prototype.
8594 * cfgloop.h: Likewise.
8595
8596 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8597
8598 * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
8599 (prev_nonnote_insn): Likewise.
8600 * jump.c (reversed_comparison_code_parts): Likewise.
8601 (reversed_comparison): Likewise.
8602 * rtl.h: Adjust prototypes.
8603 * config/arc/arc.md: Adjust.
8604 * cse.c (find_comparison_args): Likewise.
8605 * reorg.c (redundant_insn): Change return type to rtx_insn *.
8606 (fix_reg_dead_note): Change argument type to rtx_insn *.
8607 (delete_prior_computation): Likewise.
8608 (delete_computation): Likewise.
8609 (fill_slots_from_thread): Adjust.
8610 (relax_delay_slots): Likewise.
8611 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
8612 (simplify_relational_operation_1): Likewise.
8613 (simplify_ternary_operation): Likewise.
8614
8615 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8616
8617 * config/arc/arc-protos.h (arc_label_align): Change type of
8618 variables from rtx to rtx_insn *.
8619 * config/arc/arc.c (arc_label_align): Likewise.
8620 * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
8621 * config/bfin/bfin.c (workaround_speculation): Likewise.
8622 * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
8623 (find_last_same_clock): Likewise.
8624 (reorg_split_calls): Likewise.
8625 * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
8626 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
8627 * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
8628 (same_cmp_following_p): Likewise.
8629 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
8630 (same_cmp_following_p): Likwise.
8631 * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
8632 * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
8633 * config/nds32/nds32.c (nds32_target_alignment): Likewise.
8634 * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
8635 (rl78_alloc_physical_registers_cmp): Likewise.
8636 (rl78_alloc_physical_registers_umul): Likewise.
8637 (rl78_calculate_death_notes): Likewise.
8638 * config/s390/s390-protos.h (s390_label_align): Likewise.
8639 * config/s390/s390.c (s390_label_align): Likewise.
8640 * config/sh/sh.c (barrier_align): Likewise.
8641 * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
8642 * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
8643 (emit_cbcond_nop): Likewise.
8644
8645 2016-09-22 Martin Liska <mliska@suse.cz>
8646
8647 PR ipa/77653
8648 * ipa-icf.c (sem_variable::merge): Yield merge operation if
8649 alias address matters, not necessarily address of original.
8650
8651 2016-09-22 Richard Biener <rguenther@suse.de>
8652
8653 PR middle-end/77697
8654 * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
8655 fold fails.
8656
8657 2016-09-22 Richard Biener <rguenther@suse.de>
8658
8659 PR middle-end/77677
8660 * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
8661 from constant folding results.
8662 (gimple_resimplify2): Likewise.
8663 (gimple_resimplify3): Likewise.
8664
8665 2016-09-22 Richard Biener <rguenther@suse.de>
8666
8667 PR middle-end/77678
8668 * expr.c (expand_expr_real_1): Guard array access against negative
8669 offset.
8670
8671 2016-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8672
8673 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
8674 of MPFR_RNDN.
8675 (format_floating): Likewise.
8676
8677 2016-09-22 Jakub Jelinek <jakub@redhat.com>
8678
8679 PR fortran/77665
8680 * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
8681 for all IFN_GOMP_SIMD_* internal fns, not just for
8682 IFN_GOMP_SIMD_ORDERED_*.
8683
8684 2016-09-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8685
8686 PR target/77670
8687 * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
8688 New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
8689 instructions when you want to invert the test.
8690 * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
8691 correct order for XXSEL.
8692 (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
8693 for using XSCMP{EQ,GT,GE}DP.
8694
8695 2016-09-21 David Malcolm <dmalcolm@redhat.com>
8696
8697 * genconstants.c (main): Introduce noop_reader and convert call
8698 to read_md_files to a method call.
8699 * genenums.c (main): Likewise.
8700 * genmddeps.c (main): Likewise.
8701 * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
8702 rtx_reader_ptr->get_top_level_filename ().
8703 (write_tm_preds_h): Likewise.
8704 (write_insn_preds_c): Likewise.
8705 * gensupport.c (class gen_reader): New subclass of rtx_reader.
8706 (rtx_handle_directive): Convert to...
8707 (gen_reader::handle_unknown_directive): ...this.
8708 (init_rtx_reader_args_cb): Convert return type from bool to
8709 rtx_reader *. Create a gen_reader instance, using it for the
8710 call to read_md_files. Return it if no errors occur.
8711 (init_rtx_reader_args): Convert return type from bool to
8712 rtx_reader *.
8713 * gensupport.h (init_rtx_reader_args_cb): Likewise.
8714 (init_rtx_reader_args_cb): Likewise.
8715 * read-md.c (struct file_name_list): Move to class rtx_reader.
8716 (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
8717 (read_md_filename): Delete in favor of
8718 rtx_reader::m_read_md_filename.
8719 (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
8720 (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
8721 (base_dir): Delete in favor of rtx_reader::m_base_dir.
8722 (first_dir_md_include): Delete in favor of
8723 rtx_reader::m_first_dir_md_include.
8724 (last_dir_md_include_ptr): Delete in favor of
8725 rtx_reader::m_last_dir_md_include_ptr.
8726 (max_include_len): Delete.
8727 (rtx_reader_ptr): New.
8728 (fatal_with_file_and_line): Use get_filename and get_lineno
8729 accessors of rtx_reader_ptr.
8730 (require_char_ws): Likewise.
8731 (rtx_reader::read_char): New method, based on ::read_char.
8732 (rtx_reader::unread_char): New method, based on ::unread_char.
8733 (read_escape): Use get_filename and get_lineno accessors of
8734 rtx_reader_ptr.
8735 (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
8736 (read_string): Use get_filename and get_lineno accessors of
8737 rtx_reader_ptr.
8738 (rtx_reader::rtx_reader): New ctor.
8739 (rtx_reader::~rtx_reader): New dtor.
8740 (handle_include): Convert from a function to...
8741 (rtx_reader::handle_include): ...this method, converting
8742 handle_directive from a callback to a virtual function.
8743 (handle_file): Likewise, converting to...
8744 (rtx_reader::handle_file): ...this method.
8745 (handle_toplevel_file): Likewise, converting to...
8746 (rtx_reader::handle_toplevel_file): ...this method.
8747 (rtx_reader::get_current_location): New method.
8748 (parse_include): Convert from a function to...
8749 (rtx_reader::add_include_path): ...this method, dropping redundant
8750 update to unused max_include_len.
8751 (read_md_files): Convert from a function to...
8752 (rtx_reader::read_md_files): ...this method, converting
8753 handle_directive from a callback to a virtual function.
8754 (noop_reader::handle_unknown_directive): New method.
8755 * read-md.h (directive_handler_t): Delete this typedef.
8756 (in_fname): Delete.
8757 (read_md_file): Delete.
8758 (read_md_lineno): Delete.
8759 (read_md_filename): Delete.
8760 (class rtx_reader): New class.
8761 (rtx_reader_ptr): New decl.
8762 (class noop_reader): New subclass of rtx_reader.
8763 (read_char): Reimplement in terms of rtx_reader::read_char.
8764 (unread_char): Reimplement in terms of rtx_reader::unread_char.
8765 (read_md_files): Delete.
8766 * read-rtl.c (read_rtx_code): Update for deletion of globals
8767 read_md_filename and read_md_lineno.
8768
8769 2016-09-21 Jason Merrill <jason@redhat.com>
8770
8771 * input.h (from_macro_definition_at): New.
8772
8773 2016-09-21 Segher Boessenkool <segher@kernel.crashing.org>
8774
8775 * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
8776
8777 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
8778
8779 PR tree-optimization/77550
8780 * tree-vect-stmts.c (create_array_ref): Change parameters.
8781 (get_group_alias_ptr_type): New function.
8782 (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
8783
8784 2016-09-21 Marek Polacek <polacek@redhat.com>
8785
8786 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
8787 Add falls through comment.
8788
8789 2016-09-21 Richard Biener <rguenther@suse.de>
8790
8791 * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
8792 (replace_child): Likewise.
8793 (remove_child_TAG): Adjust.
8794 (move_marked_base_types): Likewise.
8795 (prune_unused_types_prune): Clear die_sib of removed children.
8796
8797 2016-09-21 Georg-Johann Lay <avr@gjlay.de>
8798
8799 PR target/77326
8800 * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
8801 touches some regs mentioned in cc_status, do CC_STATUS_INIT.
8802
8803 2016-09-21 Richard Biener <rguenther@suse.de>
8804
8805 PR tree-optimization/77648
8806 * tree-ssa-structalias.c (process_constraint): Handle all DEREF
8807 with complex RHS.
8808 (make_transitive_closure_constraints): Adjust comment.
8809 (make_any_offset_constraints): New function.
8810 (handle_rhs_call): Make sure to first expand a pointer to all
8811 subfields before transitively closing it.
8812 (handle_const_call): Likewise. Properly expand returned
8813 pointers as well.
8814 (handle_pure_call): Likewise.
8815
8816 2016-09-21 Richard Biener <rguenther@suse.de>
8817 Jakub Jelinek <jakub@redhat.com>
8818
8819 PR tree-optimization/77621
8820 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
8821 group at non-vectorizable stmts.
8822
8823 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
8824
8825 PR tree-optimization/72835
8826 * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
8827 (make_new_ssa_for_all_defs): Likewise.
8828 (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
8829
8830 2016-09-20 Martin Sebor <msebor@redhat.com>
8831
8832 PR middle-end/49905
8833 * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
8834 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
8835 * config/linux.c (gnu_libc_printf_pointer_format): New function.
8836 * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
8837 * config/sol2.c (solaris_printf_pointer_format): New function.
8838 * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
8839 options.
8840 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
8841 * doc/tm.texi: Regenerate.
8842 * gimple-fold.h (get_range_strlen): New function.
8843 (get_maxval_strlen): Declare existing function.
8844 * gimple-fold.c (get_range_strlen): Add arguments and compute both
8845 maximum and minimum.
8846 (get_range_strlen): Define overload.
8847 (get_maxval_strlen): Adjust.
8848 * gimple-ssa-sprintf.c: New file and pass.
8849 * passes.def (pass_sprintf_length): Add new pass.
8850 * targhooks.h (default_printf_pointer_format): Declare new function.
8851 (gnu_libc_printf_pointer_format): Same.
8852 (solaris_libc_printf_pointer_format): Same.
8853 * targhooks.c (default_printf_pointer_format): Define new function.
8854 * tree-pass.h (make_pass_sprintf_length): Declare new function.
8855 * print-tree.c: Increase buffer size.
8856
8857 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
8858
8859 * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
8860
8861 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
8862
8863 * common.opt: New option -fipa-vrp.
8864 * ipa-cp.c (ipa_get_vr_lat): New.
8865 (ipcp_vr_lattice::print): Likewise.
8866 (print_all_lattices): Call ipcp_vr_lattice::print.
8867 (ipcp_vr_lattice::meet_with): New.
8868 (ipcp_vr_lattice::meet_with_1): Likewise.
8869 (ipcp_vr_lattice::top_p): Likewise.
8870 (ipcp_vr_lattice::bottom_p): Likewsie.
8871 (ipcp_vr_lattice::set_to_bottom): Likewise.
8872 (set_all_contains_variable): Call VR set_to_bottom.
8873 (initialize_node_lattices): Init VR lattices.
8874 (propagate_vr_accross_jump_function): New.
8875 (propagate_constants_accross_call): Call
8876 propagate_vr_accross_jump_function.
8877 (ipcp_store_vr_results): New.
8878 (ipcp_driver): Handle VR.
8879 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
8880 (ipa_set_jf_unknown): Likewise.
8881 (ipa_compute_jump_functions_for_edge): Likewise.
8882 (ipa_node_params_t::duplicate): Likewise.
8883 (ipa_write_jump_function): Likewise.
8884 (ipa_read_jump_function): Likewise.
8885 (write_ipcp_transformation_info): Likewise.
8886 (read_ipcp_transformation_info): Likewise.
8887 (ipcp_update_vr): New.
8888 (ipcp_transform_function): Handle VR.
8889 * ipa-prop.h (struct ipa_vr): New.
8890 * cgraph.c: Include tree-vrp.h.
8891 * cgraphunit.c: Likewise.
8892 * ipa-utils.c: Likewise.
8893 * ipa.c: Likewise.
8894 * opts.c: Likewise.
8895 * toplev.c: Likewise.
8896 * ipa-devirt.c: Likewise.
8897 * ipa-inline-transform.c: Likewise.
8898 * ipa-inline.c: Likewise.
8899 * ipa-profile.c: Likewise.
8900
8901 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
8902
8903 * doc/invoke.texi: Document -fdump-tree-evrp.
8904 * passes.def: Define new pass_early_vrp.
8905 * timevar.def: Define new TV_TREE_EARLY_VRP.
8906 * tree-pass.h (make_pass_early_vrp): New.
8907 * tree-ssa-propagate.c: Make replace_uses_in non static.
8908 * tree-ssa-propagate.h: Export replace_uses_in.
8909 * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
8910 (extract_range_from_assert): Factor out
8911 extract_range_for_var_from_comparison_expr.
8912 (vrp_initialize_lattice): New.
8913 (vrp_initialize): Factor out vrp_initialize_lattice.
8914 (vrp_valueize): Fix it to reject complex value ranges.
8915 (vrp_free_lattice): New.
8916 (evrp_dom_walker::before_dom_children): Likewise.
8917 (evrp_dom_walker::after_dom_children): Likewise.
8918 (evrp_dom_walker::push_value_range): Likewise.
8919 (evrp_dom_walker::pop_value_range): Likewise.
8920 (execute_early_vrp): Likewise.
8921 (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
8922 (make_pass_early_vrp): New.
8923
8924 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
8925
8926 * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
8927 instead of exact_log2.
8928
8929 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
8930
8931 PR target/77621
8932 * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
8933 Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
8934 (ix86_add_stmt_cost): Penalize DFmode vector operations
8935 for !TARGET_VECTORIZE_DOUBLE.
8936
8937 2016-09-20 Gerald Pfeifer <gerald@pfeifer.com>
8938
8939 * doc/invoke.texi (Warning Options): Simplify language.
8940 (Optimize Options): Complete sentence.
8941
8942 2016-09-20 David Edelsohn <dje.gcc@gmail.com>
8943
8944 * dbxout.c (xcoff_debug_hooks): Add filename parameter to
8945 early_finish hook.
8946
8947 2016-09-20 Michael Meissner <meissner@linux.vnet.ibm.com>
8948
8949 PR target/71395
8950 * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
8951 inits on power8 and above, use the VMRGEW instruction instead of a
8952 permute.
8953
8954 * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
8955 (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
8956 initialization.
8957
8958 2016-09-20 Tamar Christina <tamar.christina@arm.com>
8959
8960 * config/aarch64/arm_neon.h
8961 (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
8962 (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
8963 (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
8964
8965 2016-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
8966
8967 * config/var/vax.h (ELIMINABLE_REGS): Define.
8968 (INITIAL_ELIMINATION_OFFSET): Define.
8969
8970 2016-09-20 Jakub Jelinek <jakub@redhat.com>
8971
8972 PR middle-end/77624
8973 * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
8974 cast to void * if the cast is from some other pointer type.
8975
8976 2016-09-20 Richard Biener <rguenther@suse.de>
8977
8978 PR tree-optimization/77646
8979 * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
8980 a VDEF.
8981
8982 2016-09-20 Tamar Christina <tamar.christina@arm.com>
8983
8984 * config/aarch64/arm_neon.h: Add gnu_inline and artificial
8985 attributes to all inlined functions and make them extern.
8986
8987 2016-09-20 Richard Biener <rguenther@suse.de>
8988
8989 * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
8990 hook.
8991 * debug.c (do_nothing_debug_hooks): Adjust.
8992 * dbxout.c (dbx_debug_hooks): Likewise.
8993 * sdbout.c (sdb_debug_hooks): Likewise.
8994 * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
8995 (dwarf2out_finish): Move producer, filename and
8996 path annotation ...
8997 (dwarf2out_early_finish): ... here. Remove in_lto_p special-casing.
8998 * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
8999
9000 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
9001
9002 PR c++/77434
9003 * doc/invoke.texi: Document -Wint-in-bool-context.
9004
9005 PR middle-end/77421
9006 * dwarf2out.c (output_loc_operands): Fix an assertion.
9007
9008 2016-09-19 Joseph Myers <joseph@codesourcery.com>
9009
9010 * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
9011 (CR_DECIMAL_DIG): New macro.
9012
9013 2016-09-19 Joseph Myers <joseph@codesourcery.com>
9014
9015 * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
9016 element.
9017
9018 2016-09-19 Vladimir Makarov <vmakarov@redhat.com>
9019
9020 PR rtl-optimization/77416
9021 * lra-remat.c (operand_to_remat): Process hard coded insn
9022 registers.
9023
9024 2016-09-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9025
9026 * simplify-rtx.c (simplify_relational_operation_1): Add transformation
9027 (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
9028
9029 2016-09-19 Segher Boessenkool <segher@kernel.crashing.org>
9030
9031 * target.def (lra_p): Wordsmithing.
9032 * doc/tm.texi: Regenerate.
9033
9034 2016-09-19 Jakub Jelinek <jakub@redhat.com>
9035 Jan Hubicka <jh@suse.cz>
9036
9037 PR target/77587
9038 * cgraph.c (cgraph_node::rtl_info): Pass &avail to
9039 ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
9040 Call ultimate_alias_target just once, not up to 4 times.
9041
9042 2016-09-19 Richard Biener <rguenther@suse.de>
9043
9044 * dwarf2out.c (early_dwarf_finished): New global.
9045 (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
9046 is false.
9047 (dwarf2out_early_finish): Set early_dwarf_finished at the end,
9048 if called from LTO exit early.
9049 (dwarf2out_late_global_decl): When being during the early
9050 debug phase do not add locations but only const value attributes.
9051 Adjust the way we generate early DIEs for LTO.
9052
9053 2016-09-19 Richard Biener <rguenther@suse.de>
9054
9055 PR middle-end/77605
9056 * tree-data-ref.c (analyze_subscript_affine_affine): Use the
9057 proper niter to bound the loops.
9058
9059 2016-09-19 Richard Biener <rguenther@suse.de>
9060
9061 PR tree-optimization/77514
9062 * tree-ssa-pre.c (create_expression_by_pieces): Optimize
9063 search for folded stmt.
9064
9065 2016-09-17 Jan Hubicka <hubicka@ucw.cz>
9066
9067 * passes.def (pass_early_thread_jumps): Schedule after forwprop.
9068 * tree-pass.h (make_pass_early_thread_jumps): Declare.
9069 * tree-ssa-threadbackward.c (fsm_find_thread_path,
9070 fsm_find_thread_path, profitable_jump_thread_path,
9071 fsm_find_control_statement_thread_paths,
9072 find_jump_threads_backwards): Add speed_p parameter.
9073 (pass_data_early_thread_jumps): New pass.
9074 (make_pass_early_thread_jumps): New function.
9075
9076 2016-09-17 Andreas Schwab <schwab@suse.de>
9077
9078 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
9079 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
9080
9081 2016-09-16 Eric Botcazou <ebotcazou@adacore.com>
9082
9083 * recog.c (rest_of_handle_split_after_reload): Delete.
9084 (pass_split_after_reload::gate): New method.
9085 (pass_split_after_reload::execute): Call split_all_insns directly.
9086
9087 2016-09-16 Jonathan Wakely <jwakely@redhat.com>
9088
9089 * doc/extend.texi (Integer Overflow Builtins): Fix type of out
9090 parameters for functions taking long long arguments.
9091
9092 2016-09-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9093
9094 PR target/77613
9095 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
9096 splat with truncate.
9097
9098 2016-09-16 Jason Merrill <jason@redhat.com>
9099
9100 * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
9101 New.
9102 * hwint.c (exact_log2): Use pow2p_hwi.
9103 (ctz_hwi, ffs_hwi): Use least_bit_hwi.
9104 * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
9105 * builtins.c (get_object_alignment_2, get_object_alignment)
9106 (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
9107 least_bit_hwi.
9108 * calls.c (compute_argument_addresses, store_one_arg): Use
9109 least_bit_hwi.
9110 * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
9111 * combine.c (force_to_mode): Use least_bit_hwi.
9112 (contains_muldiv, find_split_point, combine_simplify_rtx)
9113 (simplify_if_then_else, simplify_set, force_to_mode)
9114 (if_then_else_cond, simplify_and_const_int_1)
9115 (simplify_compare_const): Use pow2p_hwi.
9116 * cse.c (fold_rtx): Use pow2p_hwi.
9117 * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
9118 Use least_bit_hwi.
9119 * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
9120 (init_expmed_one_conv): Use pow2p_hwi.
9121 * expr.c (is_aligning_offset): Use pow2p_hwi.
9122 * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
9123 (fold_binary_loc): Use pow2p_hwi.
9124 * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
9125 * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
9126 * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
9127 * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
9128 Use least_bit_hwi.
9129 * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
9130 * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
9131 * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
9132 * omp-low.c (oacc_loop_fixed_partitions)
9133 (oacc_loop_auto_partitions): Use least_bit_hwi.
9134 * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
9135 * stor-layout.c (place_field): Use least_bit_hwi.
9136 * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
9137 * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
9138 * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
9139 * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
9140 * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
9141 * tree-vect-data-refs.c (vect_analyze_group_access_1)
9142 (vect_grouped_store_supported, vect_grouped_load_supported)
9143 (vect_permute_load_chain, vect_shift_permute_load_chain)
9144 (vect_transform_grouped_load): Use pow2p_hwi.
9145 * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
9146 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
9147 * tree-vect-stmts.c (vectorizable_mask_load_store): Use
9148 least_bit_hwi.
9149 * tsan.c (instrument_expr): Use least_bit_hwi.
9150 * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
9151
9152 2016-09-16 Andreas Schwab <schwab@suse.de>
9153
9154 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
9155 OFFSET, not offset.
9156 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
9157
9158 2016-09-16 Jakub Jelinek <jakub@redhat.com>
9159
9160 PR target/77526
9161 * combine.c (rest_of_handle_combine): If any edges have been purged,
9162 free dominators if available.
9163
9164 2016-09-16 Jakub Jelinek <jakub@redhat.com>
9165 Eric Botcazou <ebotcazou@adacore.com>
9166
9167 PR middle-end/77594
9168 * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
9169 through into expand_addsub_overflow after expand_neg_overflow.
9170
9171 2016-09-15 David Malcolm <dmalcolm@redhat.com>
9172
9173 * diagnostic-show-locus.c
9174 (selftest::test_fixit_insert_containing_newline): New function.
9175 (selftest::test_fixit_replace_containing_newline): New function.
9176 (selftest::diagnostic_show_locus_c_tests): Call the above.
9177
9178 2016-09-15 Bin Cheng <bin.cheng@arm.com>
9179
9180 PR tree-optimization/77503
9181 * tree-vect-loop.c (vectorizable_reduction): Record reduction
9182 code for CONST_COND_REDUCTION at analysis stage and use it at
9183 transform stage.
9184 * tree-vectorizer.h (struct _stmt_vec_info): New field.
9185 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
9186 * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
9187 field.
9188
9189 2016-09-15 Richard Biener <rguenther@suse.de>
9190
9191 PR middle-end/77544
9192 * fold-const.c (split_tree): Do not split constant ~X.
9193
9194 2016-09-15 Jakub Jelinek <jakub@redhat.com>
9195
9196 PR rtl-optimization/77425
9197 * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
9198 is NULL.
9199
9200 PR middle-end/77475
9201 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
9202 use %qs instead of %s where desirable, use argument instead of arg in
9203 the diagnostic wording, add list of supported strategies and
9204 spellcheck hint.
9205 (ix86_option_override_internal): Emit target("m...") instead of
9206 option("m...") in the diagnostic. Use %qs instead of %s in invalid
9207 -march/-mtune option diagnostic. Add list of supported arches/tunings
9208 and spellcheck hint. Remove prefix, suffix and sw variables, use
9209 main_args_p ? "..." : "..." in diagnostics to make translation
9210 possible.
9211
9212 2016-09-15 Richard Biener <rguenther@suse.de>
9213
9214 * dwarf2asm.h (dw2_asm_output_offset): Add overload with
9215 extra offset argument.
9216 * dwarf2asm.c (dw2_asm_output_offset): Implement that.
9217 * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
9218 to reflect new offset parameter.
9219 * doc/tm.texi: Regenerate.
9220 * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
9221 * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
9222 offset argument.
9223 (darwin_asm_output_dwarf_offset): Likewise.
9224 * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
9225 argument.
9226 (darwin_asm_output_dwarf_offset): Pass offset argument through.
9227 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
9228 * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
9229
9230 2016-09-15 Chung-Lin Tang <cltang@codesourcery.com>
9231
9232 PR fortran/72743
9233 * ipa-icf.c (set_alias_uids): New function.
9234 (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
9235 all the merged variable's referring aliases.
9236
9237 2016-09-15 Richard Biener <rguenther@suse.de>
9238
9239 PR tree-optimization/77514
9240 * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
9241 only forced_stmts sequence.
9242
9243 2016-09-15 Kugan Vivekanandarajah <kuganv@linaro.org>
9244
9245 * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
9246 * cfgexpand.c (update_alias_info_with_stack_vars): Use
9247 FOR_EACH_SSA_NAME to iterate over SSA variables.
9248 (pass_expand::execute): Likewise.
9249 * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
9250 * tree-cfg.c (dump_function_to_file): Likewise.
9251 * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
9252 (update_ssa): Likewise.
9253 * tree-ssa-alias.c (dump_alias_info): Likewise.
9254 * tree-ssa-ccp.c (ccp_finalize): Likewise.
9255 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
9256 (create_outofssa_var_map): Likewise.
9257 (coalesce_ssa_name): Likewise.
9258 * tree-ssa-operands.c (dump_immediate_uses): Likewise.
9259 * tree-ssa-pre.c (compute_avail): Likewise.
9260 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
9261 (scc_vn_restore_ssa_info): Likewise.
9262 (free_scc_vn): Likwise.
9263 (run_scc_vn): Likewise.
9264 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
9265 * tree-ssa-ter.c (new_temp_expr_table): Likewise.
9266 * tree-ssa-copy.c (fini_copy_prop): Likewise.
9267 * tree-ssa.c (verify_ssa): Likewise.
9268
9269 2016-09-14 Matthew Fortune <matthew.fortune@imgtec.com>
9270
9271 * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
9272 and mips64r2 as default 32-bit and 64-bit architectures.
9273 (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
9274 as default 32-bit and 64-bit architectures.
9275
9276 2016-09-14 Pat Haugen <pthaugen@us.ibm.com>
9277
9278 * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
9279 of succ edge.
9280
9281 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
9282
9283 * target.def (lra_p): Change commentary (for the manual) for the
9284 new default.
9285 * doc/tm.texi: Regenerate.
9286
9287 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
9288
9289 * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
9290 * config/arm/arm.c (TARGET_LRA_P): Delete macro.
9291 * config/i386/i386.c (TARGET_LRA_P): Delete macro.
9292 * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
9293
9294 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
9295
9296 * targhooks.c (default_lra_p): Return true instead of false.
9297
9298 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
9299
9300 * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
9301 hook_bool_void_false.
9302 * config/avr/avr.c: Ditto.
9303 * config/bfin/bfin.c: Ditto.
9304 * config/c6x/c6x.c: Ditto.
9305 * config/cr16/cr16.c: Ditto.
9306 * config/cris/cris.c: Ditto.
9307 * config/epiphany/epiphany.c: Ditto.
9308 * config/fr30/fr30.c: Ditto.
9309 * config/frv/frv.c: Ditto.
9310 * config/h8300/h8300.c: Ditto.
9311 * config/ia64/ia64.c: Ditto.
9312 * config/iq2000/iq2000.c: Ditto.
9313 * config/lm32/lm32.c: Ditto.
9314 * config/m32c/m32c.c: Ditto.
9315 * config/m32r/m32r.c: Ditto.
9316 * config/m68k/m68k.c: Ditto.
9317 * config/mcore/mcore.c: Ditto.
9318 * config/microblaze/microblaze.c: Ditto.
9319 * config/mmix/mmix.c: Ditto.
9320 * config/mn10300/mn10300.c: Ditto.
9321 * config/moxie/moxie.c: Ditto.
9322 * config/msp430/msp430.c: Ditto.
9323 * config/nios2/nios2.c: Ditto.
9324 * config/nvptx/nvptx.c: Ditto.
9325 * config/pa/pa.c: Ditto.
9326 * config/pdp11/pdp11.c: Ditto.
9327 * config/rl78/rl78.c: Ditto.
9328 * config/sparc/sparc.c: Ditto.
9329 * config/spu/spu.c: Ditto.
9330 * config/stormy16/stormy16.c: Ditto.
9331 * config/tilegx/tilegx.c: Ditto.
9332 * config/tilepro/tilepro.c: Ditto.
9333 * config/v850/v850.c: Ditto.
9334 * config/vax/vax.c: Ditto.
9335 * config/visium/visium.c: Ditto.
9336 * config/xtensa/xtensa.c: Ditto.
9337
9338 2016-09-14 Jakub Jelinek <jakub@redhat.com>
9339
9340 PR sanitizer/68260
9341 * tsan.c: Include target.h.
9342 (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
9343 (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
9344 (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
9345 BUILT_IN_ATOMIC_TEST_AND_SET entries.
9346 (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
9347
9348 2016-09-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9349 Martin Liska <mliska@suse.cz>
9350
9351 PR middle-end/77574
9352 * predict.c (force_edge_cold): Add braces to a condition.
9353
9354 2016-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
9355
9356 PR rtl-optimization/77289
9357 * lra-constraints.c (get_final_hard_regno): Removed.
9358 (get_hard_regno): Add new parameter final_p.
9359 (get_reg_class): Directly call lra_get_elimination_hard_regno.
9360 (operands_match_p): Adjust call to get_hard_regno.
9361 (uses_hard_regs_p): Likewise.
9362 (process_alt_operands): Likewise.
9363
9364 2016-09-13 Joe Seymour <joe.s@somniumtech.com>
9365
9366 PR target/70713
9367 * config/msp430/msp430.c (msp430_start_function): Emit an error
9368 if a function is both weak and specifies an interrupt number.
9369
9370 2016-09-13 Jakub Jelinek <jakub@redhat.com>
9371
9372 PR tree-optimization/77454
9373 * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
9374 changing GIMPLE_COND. Move update_stmt_if_modified call after this.
9375 Formatting fix.
9376
9377 2016-09-13 Tamar Christina <tamar.christina@arm.com>
9378
9379 * config/aarch64/aarch64-builtins.c
9380 (aarch64_init_simd_builtins): Fix builtin type signature printing.
9381
9382 2016-09-13 Uros Bizjak <ubizjak@gmail.com>
9383
9384 * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
9385 SFmode and SCmode arguments by reference.
9386
9387 2016-09-13 David Malcolm <dmalcolm@redhat.com>
9388
9389 * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
9390 Rename to...
9391 (selftest::test_one_liner_fixit_insert_before): ...this, and update
9392 for renaming of add_fixit_insert to add_fixit_insert_before.
9393 (selftest::test_one_liner_fixit_insert_after): New function.
9394 (selftest::test_one_liner_fixit_validation_adhoc_locations):
9395 Update for renaming of add_fixit_insert to add_fixit_insert_before.
9396 (selftest::test_one_liner_many_fixits): Likewise.
9397 (selftest::test_diagnostic_show_locus_one_liner): Update for
9398 renaming, call new test function.
9399 (selftest::test_diagnostic_show_locus_fixit_lines): Update for
9400 renaming of add_fixit_insert to add_fixit_insert_before.
9401 (selftest::test_fixit_consolidation): Likewise.
9402 * diagnostic.c (selftest::test_print_parseable_fixits_insert):
9403 Likewise.
9404 * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
9405 (selftest::test_applying_fixits_insert_before): ...this.
9406 (selftest::test_applying_fixits_insert): Update for renaming of
9407 add_fixit_insert to add_fixit_insert_before.
9408 (selftest::test_applying_fixits_insert_after): New function.
9409 (selftest::test_applying_fixits_insert_after_at_line_end): New
9410 function.
9411 (selftest::test_applying_fixits_insert_after_failure): New function.
9412 (selftest::test_applying_fixits_multiple): Update for renaming of
9413 add_fixit_insert to add_fixit_insert_before.
9414 (selftest::change_line): Likewise.
9415 (selftest::test_applying_fixits_unreadable_file): Likewise.
9416 (selftest::test_applying_fixits_line_out_of_range): Likewise.
9417 (selftest::test_applying_fixits_column_validation): Likewise.
9418 (selftest::test_applying_fixits_column_validation): Likewise.
9419 (selftest::edit_context_c_tests): Update for renamed test function;
9420 call new test functions.
9421
9422 2016-09-13 Pat Haugen <pthaugen@us.ibm.com>
9423
9424 PR tree-optimization/77536
9425 PR rtl-optimization/68212
9426 * config/rs6000/rs6000.md (div->recip splitter): Remove
9427 optimize_insn_for_speed_p condition.
9428
9429 2016-09-13 Maciej W. Rozycki <macro@imgtec.com>
9430
9431 * optabs.c (prepare_cmp_insn): Update documentation comment.
9432
9433 2016-09-13 Jakub Jelinek <jakub@redhat.com>
9434 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9435
9436 PR middle-end/77475
9437 * opts.h (candidates_list_and_hint): Declare.
9438 * opts-common.c (candidates_list_and_hint): New function.
9439 (cmdline_handle_error): Use it.
9440
9441 2016-09-12 David Malcolm <dmalcolm@redhat.com>
9442
9443 * edit-context.c (edited_line::get_len): New accessor.
9444 (edited_file::print_diff): Split out hunk-printing into...
9445 (edited_file::print_diff_hunk): New method.
9446 (edited_file::print_diff_line): New method.
9447
9448 2016-09-12 Andrew Pinski <apinski@cavium.com>
9449
9450 * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
9451 New tuning option.
9452 * config/aarch64/aarch64.c (thunderx_tunings): Enable
9453 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
9454 (aarch64_operands_ok_for_ldpstp): Return false if
9455 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
9456 was SImode and the alignment is less than 8 byte.
9457 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
9458
9459 2016-09-12 Orlando Arias <oarias@knights.ucf.edu>
9460
9461 PR target/77570
9462 * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
9463
9464 2016-09-12 Marek Polacek <polacek@redhat.com>
9465
9466 * doc/extend.texi: Use lowercase "boolean".
9467 * doc/invoke.texi: Likewise.
9468 * doc/md.texi: Likewise.
9469 * target.def: Likewise.
9470 * doc/tm.texi: Regenerated.
9471
9472 2016-09-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9473
9474 PR middle-end/77426
9475 * expmed.c (synth_mult): Delete duplicate mode check.
9476
9477 2016-09-10 Tom de Vries <tom@codesourcery.com>
9478
9479 PR C/71602
9480 * builtins.c (std_canonical_va_list_type): Strictly return non-null for
9481 va_list type only.
9482 * config/i386/i386.c (ix86_canonical_va_list_type): Same.
9483 * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
9484
9485 2016-09-09 Peter Bergner <bergner@vnet.ibm.com>
9486
9487 PR rtl-optimization/77289
9488 * lra-constraints.c (get_final_hard_regno): Add support for non hard
9489 register numbers. Remove support for subregs.
9490 (get_hard_regno): Use SUBREG_P. Don't call get_final_hard_regno().
9491 (get_reg_class): Delete removed get_final_hard_regno() argument.
9492 (uses_hard_regs_p): Call get_final_hard_regno().
9493
9494 2016-09-09 Martin Sebor <msebor@redhat.com>
9495
9496 PR c/77520
9497 PR c/77521
9498 * pretty-print.c (pp_quoted_string): New function.
9499 (pp_format): Call it for %c and %s directives.
9500
9501 2016-09-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
9502
9503 * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
9504 (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
9505 INITIAL_ELIMINATION_OFFSET) : Update documentation.
9506 * target.def (frame_pointer_required, can_eliminate): Likewise.
9507 * doc/tm.texi: Regenerated.
9508 * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
9509 ELIMINABLE_REGS.
9510 * df-scan.c (df_hard_reg_init): Likewise.
9511 * ira.c (ira_setup_eliminable_regset): Likewise.
9512 * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
9513 init_elim_table): Likewise.
9514 * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
9515 set_initial_elim_offsets, update_eliminables,
9516 init_elim_table): Likewise.
9517 * rtlanal.c (get_initial_register_offset): Likewise.
9518 * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
9519 * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
9520 * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
9521 * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
9522 * config/fr30/fr30.h: Fix comment.
9523 * config/frv/frv.c: Likewise.
9524 * config/frv/frv.h: Likewise.
9525 * config/ft32/ft32.h: Likewise.
9526 * config/visium/visium.h: Likewise.
9527 * config/pa/pa64-linux.h: Likewise.
9528 * config/v850/v850.h: Likewise.
9529 * config/cris/cris.c: Likewise.
9530 * config/ia64/ia64.h: Likewise.
9531 * config/moxie/moxie.h: Likewise.
9532 * config/m32r/m32r.h: Likewise.
9533
9534 2016-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
9535
9536 PR target/77267
9537 * config.in: Regenerate.
9538 * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
9539 New macro.
9540 (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
9541 (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
9542 static-libmpxwrappers case.
9543 (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
9544 MPX_LD_AS_NEEDED_GUARD_POP.
9545 * configure: Regenerate.
9546 * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
9547 defined if linker support "--push-state"/"--pop-state".
9548
9549 2016-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
9550
9551 * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
9552
9553 2016-09-09 Joseph Myers <joseph@codesourcery.com>
9554
9555 * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
9556 (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
9557 (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
9558 (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
9559 (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
9560 (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
9561 (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
9562 Document.
9563 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
9564 width macros from TS 18661-1.
9565 * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
9566
9567 2016-09-08 Jakub Jelinek <jakub@redhat.com>
9568
9569 PR fortran/77516
9570 * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
9571 OMP_CLAUSE_SAFELEN_EXPR.
9572
9573 2016-09-07 David Malcolm <dmalcolm@redhat.com>
9574
9575 * Makefile.in (OBJS): Add substring-locations.o.
9576 * langhooks-def.h (class substring_loc): New forward decl.
9577 (lhd_get_substring_location): New decl.
9578 (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
9579 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
9580 * langhooks.c (lhd_get_substring_location): New function.
9581 * langhooks.h (class substring_loc): New forward decl.
9582 (struct lang_hooks): Add field get_substring_location.
9583 * substring-locations.c: New file, taking definition of
9584 format_warning_va and format_warning_at_substring from
9585 c-family/c-format.c, making them non-static.
9586 * substring-locations.h (class substring_loc): Move class here
9587 from c-family/c-common.h. Add and rewrite comments.
9588 (format_warning_va): New decl.
9589 (format_warning_at_substring): New decl.
9590 (get_source_location_for_substring): Add comment.
9591
9592 2016-09-07 Eric Gallager <egall@gwmail.gwu.edu>
9593
9594 * config/i386/i386.c: Add 'U' suffix to processor feature bits
9595 to avoid -Wnarrowing warning.
9596 * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
9597 * opts.c: Likewise for SANITIZER_OPT bitmasks.
9598
9599 2016-09-07 Wilco Dijkstra <wdijkstr@arm.com>
9600
9601 * config/aarch64/aarch64.c (aarch64_legitimize_address):
9602 Avoid use of base_offset if offset already in range.
9603
9604 2016-09-07 Kaz Kojima <kkojima@gcc.gnu.org>
9605
9606 * config/sh/sh-protos.h (struct sh_atomic_model,
9607 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
9608 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
9609 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
9610 * config/sh/sh.h (struct sh_atomic_model,
9611 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
9612 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
9613 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
9614 Guard with __cplusplus.
9615
9616 2016-09-06 Jakub Jelinek <jakub@redhat.com>
9617
9618 PR target/69255
9619 * config/i386/i386.c (ix86_expand_builtin): For builtin with
9620 unsupported or unknown ISA, use expand_call.
9621
9622 2016-09-06 Martin Liska <mliska@suse.cz>
9623
9624 PR gcov-profile/77378
9625 PR gcov-profile/77466
9626 * tree-profile.c (tree_profiling): Detect whether target can use
9627 -fprofile-update=atomic.
9628
9629 2016-09-06 Richard Biener <rguenther@suse.de>
9630
9631 PR tree-optimization/77479
9632 * tree-vrp.c (update_value_range): Extend overflow handling to
9633 VARYING.
9634
9635 2016-09-05 Jakub Jelinek <jakub@redhat.com>
9636
9637 PR target/77476
9638 * config/i386/i386.md (isa): Add x64_avx512bw.
9639 (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
9640 (kmov_isa): New mode attr.
9641 (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
9642 (*zero_extend<mode>si2): Likewise.
9643 (*zero_extendqihi2): Use avx512dq isa for the last alternative.
9644
9645 2016-09-05 Gerald Pfeifer <gerald@pfeifer.com>
9646
9647 * doc/invoke.texi (SPU Options): nops -> NOPs.
9648 (x86 Options): Ditto.
9649
9650 2016-09-05 Jakub Jelinek <jakub@redhat.com>
9651
9652 PR middle-end/77475
9653 * toplev.c (process_options): Temporarily set input_location
9654 to UNKNOWN_LOCATION around targetm.target_option.override () call.
9655
9656 2016-09-05 Uros Bizjak <ubizjak@gmail.com>
9657
9658 PR rtl-optimization/77452
9659 * explow.c (plus_constant) <case MEM>: Extract scalar constant from
9660 inner-mode reference to a CONST_VECTOR constant in the constant pool.
9661
9662 2016-09-05 Marek Polacek <polacek@redhat.com>
9663
9664 PR c/77423
9665 * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
9666
9667 2016-09-05 Jakub Jelinek <jakub@redhat.com>
9668
9669 PR other/77421
9670 * gensupport.c (alter_output_for_subst_insn): Remove redundant
9671 *insn_out == '*' test. Don't copy unnecessary to yet another
9672 memory buffer, and don't leak it.
9673
9674 PR rtl-optimization/77425
9675 * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
9676
9677 2016-09-03 Kirill Yukhin <kirill.yukhin@intel.com>
9678
9679 * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
9680
9681 2016-09-02 David Malcolm <dmalcolm@redhat.com>
9682
9683 * common.opt (fdiagnostics-generate-patch): New option.
9684 * diagnostic.c: Include "edit-context.h".
9685 (diagnostic_initialize): Initialize context->edit_context_ptr.
9686 (diagnostic_finish): Delete context->edit_context_ptr.
9687 (diagnostic_report_diagnostic): Add fix-it hints from the
9688 diagnostic to context->edit_context_ptr, if any.
9689 * diagnostic.h (class edit_context): Add forward decl.
9690 (struct diagnostic_context): Add field "edit_context_ptr".
9691 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
9692 -fdiagnostics-generate-patch.
9693 (-fdiagnostics-generate-patch): New item.
9694 * toplev.c: Include "edit-context.h".
9695 (process_options): Set global_dc->edit_context_ptr to a new
9696 edit_context if the options need one.
9697 (toplev::main): Handle -fdiagnostics-generate-patch by using
9698 global_dc->edit_context_ptr.
9699
9700 2016-09-02 Jakub Jelinek <jakub@redhat.com>
9701
9702 PR c/65467
9703 * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
9704 map and firstprivate clauses on target construct for _Atomic
9705 qualified decls.
9706 (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
9707 on target construct for _Atomic qualified decls.
9708 * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
9709 decls.
9710 * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
9711 _Atomic qualified arguments not mentioned in uniform clause.
9712
9713 2016-09-02 David Malcolm <dmalcolm@redhat.com>
9714
9715 * Makefile.in (OBJS-libcommon): Add edit-context.o.
9716 * diagnostic-color.c (color_dict): Add "diff-filename",
9717 "diff-hunk", "diff-delete", and "diff-insert".
9718 (parse_gcc_colors): Update default value of GCC_COLORS in comment
9719 to reflect above changes.
9720 * doc/invoke.texi (-fdiagnostics-color): Update description of
9721 default GCC_COLORS, and of the supported capabilities.
9722 * edit-context.c: New file.
9723 * edit-context.h: New file.
9724 * input.c (struct fcache): Add field "missing_trailing_newline".
9725 (diagnostics_file_cache_forcibly_evict_file): Initialize it to
9726 true.
9727 (add_file_to_cache_tab): Likewise.
9728 (fcache::fcache): Likewise.
9729 (get_next_line): Update c->missing_trailing_newline.
9730 (location_missing_trailing_newline): New function.
9731 * input.h (location_missing_trailing_newline): New decl.
9732 * selftest-run-tests.c (selftest::run_tests): Call
9733 edit_context_c_tests.
9734 * selftest.h (edit_context_c_tests): New decl.
9735
9736 2016-09-02 Jakub Jelinek <jakub@redhat.com>
9737 Richard Biener <rguenth@suse.de>
9738
9739 PR tree-optimization/77444
9740 * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
9741 as steptype, remove redundant initialization.
9742
9743 2016-09-02 Jakub Jelinek <jakub@redhat.com>
9744
9745 PR sanitizer/77396
9746 * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
9747 (sanopt_optimize_walker): Optimize away
9748 __asan_before_dynamic_init (...) followed by
9749 __asan_after_dynamic_init () without intervening memory loads/stores.
9750 * ipa-pure-const.c (special_builtin_state): Handle
9751 BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
9752 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
9753
9754 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9755
9756 * cfg.c (free_original_copy_tables): Replace second assignment of
9757 bb_copy = NULL by bb_original = NULL.
9758
9759 2016-09-02 Jakub Jelinek <jakub@redhat.com>
9760
9761 PR other/77421
9762 * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
9763 assignment added in r216794.
9764
9765 2016-09-02 David Malcolm <dmalcolm@redhat.com>
9766
9767 * Makefile.in (OBJS): Add typed-splay-tree.o.
9768 * selftest-run-tests.c (selftest::run_tests): Call
9769 typed_splay_tree_c_tests.
9770 * selftest.h (typed_splay_tree_c_tests): New decl.
9771 * typed-splay-tree.c: New file.
9772 * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
9773 (typed_splay_tree::max): New method.
9774 (typed_splay_tree::min): New method.
9775 (typed_splay_tree::foreach): New method.
9776 (typed_splay_tree::closure): New struct.
9777 (typed_splay_tree::inner_foreach_fn): New function.
9778
9779 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9780
9781 * ipa-cp.c (ipcp_store_bits_results): Change option name from
9782 -fipa-cp-bit to -fipa-bit-cp.
9783
9784 2016-09-01 Martin Sebor <msebor@redhat.com>
9785
9786 PR tree-optimization/71831
9787 * tree-object-size.h: Return bool instead of the size and add
9788 argument for the size.
9789 * tree-object-size.c (compute_object_offset): Update signature.
9790 (addr_object_size): Same.
9791 (compute_builtin_object_size): Return bool instead of the size
9792 and add argument for the size. Handle POINTER_PLUS_EXPR when
9793 optimization is disabled.
9794 (expr_object_size): Adjust.
9795 (plus_stmt_object_size): Adjust.
9796 (pass_object_sizes::execute): Adjust.
9797 * builtins.c (fold_builtin_object_size): Adjust.
9798 * doc/extend.texi (Object Size Checking): Update.
9799 * ubsan.c (instrument_object_size): Adjust.
9800
9801 2016-09-01 Martin Sebor <msebor@redhat.com>
9802
9803 * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
9804 it fits the output of the formatted function regardless of its
9805 arguments.
9806 * genmodes.c (parser::parse_expr): Same.
9807 * gimplify.c (gimplify_asm_expr): Same.
9808 * passes.c (pass_manager::register_one_dump_file): Same.
9809 * print-tree.c (print_node): Same.
9810
9811 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
9812
9813 * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
9814
9815 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
9816
9817 * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
9818
9819 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
9820
9821 * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
9822 * config/rs6000/vector.md: Ditto.
9823 * config/rs6000/vsx.md: Ditto.
9824
9825 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
9826
9827 * ipa-inline-analysis.c (param_change_prob): Get to the base object
9828 first in all cases.
9829
9830 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
9831
9832 * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
9833 *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
9834 *return_and_restore_gpregs_<mode>_r11,
9835 *return_and_restore_gpregs_<mode>_r12,
9836 *return_and_restore_gpregs_<mode>_r1,
9837 *return_and_restore_fpregs_<mode>_r11,
9838 *return_and_restore_fpregs_<mode>_r12,
9839 *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
9840 directly instead of via the "l" constraint. Renumber operands.
9841 Fix whitespace.
9842
9843 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
9844
9845 * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
9846 save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
9847 *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
9848 * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
9849 load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
9850 *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
9851 *call_value_nonlocal_darwin64, reload_macho_picbase,
9852 reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
9853 * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
9854 * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
9855 *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
9856 *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
9857 *save_fpregs_<mode>_r1): Ditto.
9858 * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
9859 *return_and_restore_gpregs_spe): Ditto.
9860
9861 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
9862
9863 * config/rs6000/rs6000.md
9864 (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
9865 the use of the link register.
9866 (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
9867
9868 2016-09-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9869 Michael Meissner <meissner@linux.vnet.ibm.com>
9870
9871 PR target/72827
9872 * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
9873 reg+reg addressing for TImode.
9874 (rs6000_legitimate_address_p): Only allow register indirect
9875 addressing for TImode, even without TARGET_QUAD_MEMORY.
9876
9877 2016-09-01 Richard Biener <rguenther@suse.de>
9878
9879 PR middle-end/77436
9880 * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
9881 check whether the result fits the desired result type.
9882
9883 2016-09-01 Nathan Sidwell <nathan@acm.org>
9884
9885 * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
9886
9887 2016-09-01 Wilco Dijkstra <wdijkstr@arm.com>
9888
9889 * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
9890 New function.
9891 (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
9892
9893 2016-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9894
9895 * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
9896 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
9897 for comparisons of integer ZERO_EXTEND against zero.
9898
9899 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
9900
9901 * config/i386/i386.c (ix86_option_override_internal): Also disable the
9902 STV pass if -mstackrealign is enabled.
9903
9904 2016-08-31 Ilya Verbin <iverbin@gmail.com>
9905
9906 * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
9907 AVX512IFMA.
9908
9909 2016-08-31 David Malcolm <dmalcolm@redhat.com>
9910
9911 * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
9912 (layout_range::intersects_line_p): New method.
9913 (test_range_contains_point_for_single_point): Rename to...
9914 (test_layout_range_for_single_point): ...this, and add testing
9915 for layout_range::intersects_line_p.
9916 (test_range_contains_point_for_single_line): Rename to...
9917 (test_layout_range_for_single_line): ...this, and add testing
9918 for layout_range::intersects_line_p.
9919 (test_range_contains_point_for_multiple_lines): Rename to...
9920 (test_layout_range_for_multiple_lines): ...this, and add testing
9921 for layout_range::intersects_line_p.
9922 (layout::layout): Populate m_fixit_hints.
9923 (layout::get_expanded_location): Handle the case of a line-span
9924 for a fix-it hint.
9925 (layout::validate_fixit_hint_p): New method.
9926 (get_line_span_for_fixit_hint): New function.
9927 (layout::calculate_line_spans): Add spans for fixit-hints.
9928 (layout::should_print_annotation_line_p): New method.
9929 (layout::print_any_fixits): Drop param "richloc", instead using
9930 validated fixits in m_fixit_hints. Add "const" to hint pointers.
9931 (diagnostic_show_locus): Avoid printing blank annotation lines.
9932 (selftest::test_diagnostic_context::test_diagnostic_context):
9933 Initialize show_column and start_span.
9934 (selftest::test_diagnostic_context::start_span_cb): New static
9935 function.
9936 (selftest::test_diagnostic_show_locus_fixit_lines): New function.
9937 (selftest::diagnostic_show_locus_c_tests): Update for function
9938 renamings. Call test_diagnostic_show_locus_fixit_lines.
9939
9940 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
9941
9942 PR tree-optimization/73714
9943 * match.pd (a * (1 << b)): Revert change from 2016-05-23.
9944
9945 2016-08-31 David Malcolm <dmalcolm@redhat.com>
9946
9947 * selftest.c: Move "namespace selftest {" to top of file,
9948 removing explicit "selftest::" qualifiers throughout.
9949
9950 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
9951
9952 * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
9953 New types.
9954 (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
9955 _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
9956 Replace builtin with vector extension.
9957 * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
9958 New types.
9959 (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
9960 _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
9961 Replace builtin with vector extension.
9962 * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
9963 (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
9964 Replace builtin with vector extension.
9965 * config/i386/xmmintrin.h (__m128_u): New type.
9966 (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
9967 (_mm_load_ps, _mm_store_ps): Simplify.
9968
9969 2016-08-31 Eric Botcazou <ebotcazou@adacore.com>
9970
9971 * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
9972
9973 2016-08-30 David Malcolm <dmalcolm@redhat.com>
9974
9975 * diagnostic-show-locus.c (colorizer::begin_state): Support more
9976 than 3 ranges per diagnostic by alternating between color 1 and
9977 color 2.
9978 (layout::layout): Replace use of rich_location::MAX_RANGES
9979 with richloc->get_num_locations ().
9980 (layout::calculate_line_spans): Replace use of
9981 rich_location::MAX_RANGES with m_layout_ranges.length ().
9982 (layout::print_annotation_line): Handle arbitrary numbers of
9983 ranges in caret-printing by defaulting to '^'.
9984 (selftest::test_one_liner_many_fixits): New function.
9985 (test_diagnostic_show_locus_one_liner): Call it.
9986 * diagnostic.c (diagnostic_initialize): Update for renaming
9987 of rich_location::MAX_RANGES to
9988 rich_location::STATICALLY_ALLOCATED_RANGES.
9989 * diagnostic.h (struct diagnostic_context): Likewise.
9990
9991 2016-08-30 David Malcolm <dmalcolm@redhat.com>
9992
9993 * selftest.c (selftest::named_temp_file::named_temp_file): New
9994 ctor.
9995 (selftest::temp_source_file::~temp_source_file): Move to...
9996 (selftest::named_temp_file::~named_temp_file): ...here.
9997 (selftest::test_named_temp_file): New function.
9998 (selftest::selftest_c_tests): Call test_named_temp_file.
9999 * selftest.h (class named_temp_file): New class.
10000 (class temp_source_file): Convert to a subclass of named_temp_file.
10001
10002 2016-08-30 Segher Boessenkool <segher@kernel.crashing.org>
10003
10004 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
10005 USEs of LR_REGNO in returns and sibcalls.
10006 (rs6000_output_mi_thunk): Similar.
10007 (rs6000_sibcall_aix): Similar.
10008 * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
10009 sibcall_local64, sibcall_value_local32, sibcall_value_local64,
10010 sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
10011 Remove the USE of LR_REGNO from the patterns as well. Delete an
10012 obsolete comment.
10013 (return_internal_<mode>): Delete.
10014
10015 2016-08-30 Tamar Christina <tamar.christina@arm.com>
10016
10017 * config/aarch64/aarch64-simd.md
10018 (aarch64_ld2<mode>_dreg_le): New.
10019 (aarch64_ld2<mode>_dreg_be): New.
10020 (aarch64_ld2<mode>_dreg): Removed.
10021 (aarch64_ld3<mode>_dreg_le): New.
10022 (aarch64_ld3<mode>_dreg_be): New.
10023 (aarch64_ld3<mode>_dreg): Removed.
10024 (aarch64_ld4<mode>_dreg_le): New.
10025 (aarch64_ld4<mode>_dreg_be): New.
10026 (aarch64_ld4<mode>_dreg): Removed.
10027 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
10028
10029 2016-08-30 David Malcolm <dmalcolm@redhat.com>
10030
10031 * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
10032 redundant location param.
10033 (test_one_liner_fixit_remove): Likewise.
10034 (test_one_liner_fixit_replace): Likewise.
10035 (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
10036 * gcc-rich-location.c
10037 (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
10038 get_range_from_loc. Drop overload taking a const char *.
10039 * gcc-rich-location.h
10040 (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
10041 a const char *.
10042
10043 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
10044
10045 * config/linux.c (linux_libc_has_function): Return true on musl.
10046
10047 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
10048
10049 * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
10050
10051 2016-08-30 Eric Botcazou <ebotcazou@adacore.com>
10052
10053 * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
10054 used for abnormal egdes.
10055
10056 2016-08-30 Jakub Jelinek <jakub@redhat.com>
10057
10058 PR tree-optimization/72866
10059 * tree-vect-patterns.c (search_type_for_mask): Turn into
10060 a small wrapper, move all code to ...
10061 (search_type_for_mask_1): ... this new function. Add caching
10062 and adjust recursive calls.
10063
10064 PR debug/77363
10065 * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
10066 instead of lookup_type_die (type_main_variant (type)) even for array
10067 types.
10068
10069 PR middle-end/77377
10070 * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
10071 constant pool reference return x instead of c.
10072
10073 2016-08-29 Segher Boessenkool <segher@kernel.crashing.org>
10074
10075 * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
10076 include MQ.
10077
10078 2016-08-29 David Malcolm <dmalcolm@redhat.com>
10079
10080 * input.c
10081 (selftest::test_make_location_nonpure_range_endpoints): Fix
10082 header comment.
10083
10084 2016-08-29 David Malcolm <dmalcolm@redhat.com>
10085
10086 * diagnostic-show-locus.c
10087 (selftest::test_one_liner_fixit_validation_adhoc_locations): New
10088 function.
10089 (selftest::test_diagnostic_show_locus_one_liner): Call it.
10090 * input.c (get_pure_location): Move to libcpp/line-map.c.
10091 * input.h (get_pure_location): Convert decl to an inline function
10092 calling implementation in libcpp.
10093
10094 2016-08-29 Uros Bizjak <ubizjak@gmail.com>
10095
10096 PR target/77403
10097 * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
10098 template for intel asm dialect.
10099 (vec_set_hi_<mode><mask_name>): Ditto.
10100
10101 2016-08-29 David Malcolm <dmalcolm@redhat.com>
10102
10103 * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
10104 (selftest::fail_formatted): Likewise.
10105
10106 2016-08-29 David Malcolm <dmalcolm@redhat.com>
10107
10108 * input.c (make_location): Call get_start and get_finish
10109 on the endpoints to avoid storing packed ranges or ad-hoc
10110 ranges in them.
10111 (selftest::test_make_location_nonpure_range_endpoints): New function.
10112 (selftest::input_c_tests): Call it.
10113 * input.h (get_start): New inline function.
10114
10115 2016-08-29 Tom de Vries <tom@codesourcery.com>
10116
10117 PR c/77398
10118 * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
10119 with assert.
10120
10121 2016-08-29 Eric Botcazou <ebotcazou@adacore.com>
10122
10123 * Makefile.in (gcov-iov.h): Add dummy recipe.
10124
10125 2016-08-29 Nathan Sidwell <nathan@acm.org>
10126
10127 * config/nvptx/nvptx.c: #include tree-vrp.h.
10128
10129 2016-08-28 Eric Botcazou <ebotcazou@adacore.com>
10130
10131 PR target/77324
10132 * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
10133 HIGH+LO construct during reload.
10134
10135 2016-08-28 Tom de Vries <tom@codesourcery.com>
10136
10137 PR lto/70955
10138 * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
10139 'sysv_abi va_list' attribute.
10140 (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
10141 (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
10142 attributes.
10143
10144 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10145
10146 * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
10147 * emit-rtl.c (unshare_all_rtl_1): Adjust.
10148 (unshare_all_rtl_again): Likewise.
10149 * function.c (assign_stack_local_1): Likewise.
10150 (assign_stack_temp_for_type): Likewise.
10151
10152 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10153
10154 * cfgbuild.c (make_edges): Adjust.
10155 * cfgrtl.c (can_delete_label_p): Likewise.
10156 * dwarf2cfi.c (create_trace_edges): Likewise.
10157 * except.c (sjlj_emit_dispatch_table): Likewise.
10158 * function.h (struct expr_status): make x_forced_labels a vector.
10159 * jump.c (rebuild_jump_labels_1): Adjust.
10160 * reload1.c (set_initial_label_offsets): Likewise.
10161 * stmt.c (force_label_rtx): Likewise.
10162 (expand_label): Likewise.
10163
10164 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10165
10166 * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
10167
10168 2016-08-27 Patrick Palka <ppalka@gcc.gnu.org>
10169
10170 PR tree-optimization/71077
10171 PR tree-optimization/68542
10172 * fold-const.c (fold_relational_const): Fix folding of
10173 VECTOR_CST comparisons that have a scalar boolean result type.
10174 (selftest::test_vector_folding): New static function.
10175 (selftest::fold_const_c_tests): Call it.
10176
10177 2016-08-27 Gerald Pfeifer <gerald@pfeifer.com>
10178
10179 * doc/extend.texi (SPU Built-in Functions): Remove stale
10180 references to material formerly at IBM and Sony.
10181
10182 2016-08-26 David Edelsohn <dje.gcc@gmail.com>
10183
10184 PR target/77349
10185 * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
10186
10187 2016-08-26 David Malcolm <dmalcolm@redhat.com>
10188
10189 * diagnostic-show-locus.c
10190 (selftest::test_fixit_consolidation): New function.
10191 (selftest::diagnostic_show_locus_c_tests): Call it.
10192 * gcc-rich-location.h (gcc_rich_location): Eliminate unused
10193 constructor based on source_range.
10194
10195 2016-08-26 David Malcolm <dmalcolm@redhat.com>
10196
10197 * diagnostic-color.c (color_dict): Add "fixit-insert" and
10198 "fixit-delete".
10199 (parse_gcc_colors): Update description of default GCC_COLORS.
10200 * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
10201 (colorizer::set_fixit_insert): New method.
10202 (colorizer::set_fixit_delete): New method.
10203 (colorizer::get_color_by_name): New method.
10204 (colorizer::STATE_FIXIT_INSERT): New constant.
10205 (colorizer::STATE_FIXIT_DELETE): New constant.
10206 (class colorizer): Drop "_cs" suffix from fields. Delete "_ce"
10207 fields in favor of new field "m_stop_color". Add fields
10208 "m_fixit_insert" and "m_fixit_delete".
10209 (colorizer::colorizer): Update for above changes. Replace
10210 colorize_start calls with calls to get_color_by_name.
10211 (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
10212 STATE_FIXIT_DELETE. Update for field renamings.
10213 (colorizer::finish_state): Simplify by using m_stop_color,
10214 rather than multiple identical "*_ce" fields.
10215 (colorizer::get_color_by_name): New method.
10216 (layout::print_any_fixits): Print insertions and replacements
10217 using the "fixit-insert" color, and deletions using the
10218 "fixit-delete" color.
10219 * doc/invoke.texi (-fdiagnostics-color): Update description of
10220 default GCC_COLORS, and of the supported capabilities.
10221
10222 2016-08-26 Max Filippov <jcmvbkbc@gmail.com>
10223
10224 * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
10225 current_function_static_stack_size variable with the static
10226 stack frame size of the current function when
10227 flag_stack_usage_info is enabled.
10228
10229 2016-08-26 Nathan Sidwell <nathan@acm.org>
10230
10231 * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
10232 assignment inside if condition.
10233
10234 2016-08-26 Richard Biener <rguenther@suse.de>
10235
10236 PR tree-optimization/69047
10237 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
10238 extracts similar to what FRE does.
10239 (non_rewritable_mem_ref_base): Likewise.
10240
10241 2016-08-26 Joseph Myers <joseph@codesourcery.com>
10242
10243 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
10244 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
10245 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
10246 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
10247 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
10248 Likewise.
10249 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
10250 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
10251 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
10252 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
10253 * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
10254
10255 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10256
10257 PR target/70473
10258 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
10259 reservation duration to 15 cycles.
10260 (cortex_a8_vfp_macs): Likewise.
10261 (cortex_a8_vfp_macd): Likewise.
10262 (cortex_a8_vfp_divs): Likewise.
10263 (cortex_a8_vfp_divd): Likewise.
10264
10265 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10266
10267 * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
10268 (aarch_macro_fusion_pair_p): Use above to avoid early return.
10269
10270 2016-08-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10271 Martin Jambhor <mjambor@suse.cz>
10272
10273 * common.opt: New option -fipa-bit-cp.
10274 * doc/invoke.texi: Document -fipa-bit-cp.
10275 * opts.c (default_options_table): Add entry for -fipa-bit-cp.
10276 (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
10277 * tree-ssa-ccp.h: New header file.
10278 * tree-ssa-ccp.c: Include tree-ssa-ccp.h
10279 (bit_value_binop_1): Change to bit_value_binop_1 and export it.
10280 Replace all occurences of tree parameter by two new params: signop, int.
10281 (bit_value_unop_1): Change to bit_value_unop and export it.
10282 Replace all occurences of tree parameter by two new params: signop,
10283 int.
10284 (bit_value_binop): Change call from bit_value_binop_1 to
10285 bit_value_binop.
10286 (bit_value_assume_aligned): Likewise.
10287 (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
10288 (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
10289 to ccp_finalize.
10290 (ccp_finalize): Skip processing if val->mask == 0.
10291 * ipa-cp.c: Include tree-ssa-ccp.h
10292 (ipcp_bits_lattice): New class.
10293 (ipcp_param_lattice (bits_lattice): New member.
10294 (print_all_lattices): Call ipcp_bits_lattice::print.
10295 (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
10296 (initialize_node_lattices): Likewise.
10297 (propagate_bits_accross_jump_function): New function.
10298 (propagate_constants_accross_call): Call
10299 propagate_bits_accross_jump_function.
10300 (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
10301 (ipcp_store_bits_results): New function.
10302 (ipcp_driver): Call ipcp_store_bits_results.
10303 * ipa-prop.h (ipa_bits): New struct.
10304 (ipa_jump_func): Add new member bits of type ipa_bits.
10305 (ipa_param_descriptor): Change decl to decl_or_type.
10306 (ipa_get_param): Change decl to decl_or_type and assert on
10307 PARM_DECL.
10308 (ipa_get_type): New function.
10309 (ipcp_transformation_summary): New member bits.
10310 * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
10311 (ipa_populate_param_decls): Likewise.
10312 (ipa_dump_param): Likewise.
10313 (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
10314 function.
10315 (ipa_set_jf_unknown): Set ipa_bits::known to false.
10316 (ipa_compute_jump_functions_for_edge): Compute jump function for bits
10317 propagation.
10318 (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
10319 (ipa_write_jump_function): Add streaming for ipa_bits.
10320 (ipa_read_jump_function): Add support for reading streamed ipa_bits.
10321 (write_ipcp_transformation_info): Add streaming for ipa_bits
10322 summary for ltrans.
10323 (read_ipcp_transfomration_info): Add support for reading streamed
10324 ipa_bits.
10325 (ipcp_update_bits): New function.
10326 (ipcp_transform_function): Call ipcp_update_bits.
10327
10328 2016-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
10329
10330 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
10331 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
10332
10333 2016-08-25 David Edelsohn <dje.gcc@gmail.com>
10334
10335 * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
10336
10337 2016-08-25 Richard Biener <rguenther@suse.de>
10338
10339 * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
10340 Only add locations in late dwarf.
10341 (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
10342 (dwarf2out_early_finish): But do it here.
10343
10344 2016-08-24 Michael Collison <michael.collison@linaro.org>
10345 Michael Collison <michael.collison@arm.com>
10346
10347 * config/arm/arm-modes.def: Add new condition code mode CC_V
10348 to represent the overflow bit.
10349 * config/arm/arm.c (maybe_get_arm_condition_code):
10350 Add support for CC_Vmode.
10351 (arm_gen_unlikely_cbranch): New function to generate common
10352 rtl conditional branches for overflow patterns.
10353 * config/arm/arm-protos.h: Add prototype for
10354 arm_gen_unlikely_cbranch.
10355 * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
10356 addsi3_compareV_upper): New patterns to support signed
10357 builtin overflow add operations.
10358 (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
10359 New patterns to support unsigned builtin add overflow operations.
10360 (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
10361 builtin overflow subtract operations,
10362 (usubv<mode>4): New patterns to support unsigned builtin subtract
10363 overflow operations.
10364 (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
10365 to support builtin overflow negate operations.
10366
10367 2016-08-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10368
10369 Revert
10370 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
10371
10372 * explow.c (get_dynamic_stack_size): Take known alignment of stack
10373 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
10374 needed.
10375
10376 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
10377
10378 * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
10379 MULTILIB_OPTIONS should be used. Small wording fixes.
10380 * genmultilib: Memorize set of all option combinations in
10381 combination_space. Detect if RHS of MULTILIB_REUSE uses an option not
10382 found in MULTILIB_OPTIONS by checking if option set is listed in
10383 combination_space. Output new and existing error message to stderr.
10384
10385 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
10386
10387 * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
10388 -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
10389 Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
10390 (MULTILIB_REUSE): Remove reuse rules for option set including
10391 -mfpu=fp-armv8 and -mfpu=vfpv4
10392
10393 2016-08-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
10394
10395 * config/arm/t-rtems: Add vfp multilib.
10396
10397 2016-08-23 Ian Lance Taylor <iant@golang.org>
10398
10399 * config/s390/s390.c (s390_asm_file_start): Call
10400 default_file_start.
10401
10402 2016-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
10403
10404 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
10405 initialization of all 0's to the 0 constant, instead of directly
10406 generating XOR. Add support for V4SImode vector initialization on
10407 64-bit systems with direct move, and rework the ISA 3.0 V4SImode
10408 initialization. Change variables used in V4SFmode vector
10409 intialization. For V4SFmode vector splat on ISA 3.0, make sure
10410 any memory addresses are in index form. Add support for using
10411 VSPLTH/VSPLTB to initialize vector short and vector char vectors
10412 with all of the same element.
10413 (regno_or_subregno): New helper function to return a register
10414 number for either REG or SUBREG.
10415 (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
10416 Use regno_or_subregno where possible.
10417 (rs6000_split_v4si_init_di_reg): New helper function to build up a
10418 DImode value from two SImode values in order to generate V4SImode
10419 vector initialization on 64-bit systems with direct move.
10420 (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
10421 initialization.
10422 (rtx_is_swappable_p): V4SImode vector initialization insn is not
10423 swappable.
10424 * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
10425 declaration.
10426 * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
10427 attributes to initialize V8HImode and V16QImode vectors with the
10428 same element.
10429 (VSX_SPLAT_COUNT): Likewise.
10430 (VSX_SPLAT_SUFFIX): Likewise.
10431 (UNSPEC_VSX_VEC_INIT): New unspec.
10432 (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
10433 Allow SFmode values to come from Altivec registers.
10434 (vsx_init_v4si): New insn/split for V4SImode vector initialization
10435 on 64-bit systems with direct move.
10436 (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
10437 vector initializations, to allow V4SImode vector initializations
10438 on 64-bit systems with direct move.
10439 (vsx_splat_v4si): Likewise.
10440 (vsx_splat_v4si_di): Likewise.
10441 (vsx_splat_v4sf): Likewise.
10442 (vsx_splat_v4sf_internal): Likewise.
10443 (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
10444 register classes.
10445 (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
10446 (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
10447 initializing V8HImode and V16QImode vectors with the same
10448 element.
10449 * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
10450 optimization if -maltivec=be.
10451
10452 2016-08-23 Christophe Lyon <christophe.lyon@linaro.org>
10453
10454 * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
10455 attribute for alternatives 3 and 4.
10456
10457 2016-08-23 David Malcolm <dmalcolm@redhat.com>
10458
10459 * selftest.c (selftest::assert_str_contains): New function.
10460 (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
10461 * selftest.h (selftest::assert_str_contains): New decl.
10462 (ASSERT_STR_CONTAINS): New macro.
10463
10464 2016-08-23 Richard Biener <rguenther@suse.de>
10465
10466 PR tree-optimization/77286
10467 * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
10468 the CFG here.
10469 (vect_transform_loop): Split exit edges of loop and scalar
10470 loop if required and at the appropriate time.
10471
10472 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
10473
10474 * explow.c (get_dynamic_stack_size): Take known alignment of stack
10475 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
10476 needed.
10477 Correct a typo in a comment.
10478
10479 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
10480
10481 * config/s390/s390.md ("*andc_split"): New splitter for and with
10482 complement.
10483
10484 2016-08-23 Richard Biener <rguenther@suse.de>
10485
10486 PR tree-optimization/27336
10487 * tree-vrp.c (infer_value_range): Handle stmts that can throw
10488 by looking for a non-EH edge.
10489 (process_assert_insertions_for): Likewise.
10490
10491 2016-08-23 Richard Biener <rguenther@suse.de>
10492
10493 PR middle-end/77305
10494 * statistics.c (statistics_counter_event): Robustify against
10495 NULL current_pass.
10496
10497 2016-08-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
10498
10499 * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
10500 for targets amdfam10 and barcelona.
10501
10502 2016-08-22 Uros Bizjak <ubizjak@gmail.com>
10503
10504 * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
10505 (zero_extend<mode>di2): Ditto.
10506 (*zero_extend<mode>si2): Ditto.
10507 (*zero_extendqihi2): Ditto.
10508
10509 2016-08-22 Joseph Myers <joseph@codesourcery.com>
10510
10511 PR middle-end/77269
10512 * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
10513 (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
10514
10515 2016-08-22 Patrick Palka <ppalka@gcc.gnu.org>
10516
10517 * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
10518 identical consecutive elements.
10519 [SSA_NAME]: Print the name's def stmt on its own line. When printing
10520 the node's def stmt, avoid printing an unwanted trailing newline by
10521 replacing the call to print_gimple_stmt() with its inlined body and
10522 adjusting it to not set pp_needs_newline and to call pp_flush()
10523 instead of pp_newline_and_flush().
10524
10525 2016-08-22 Joseph Myers <joseph@codesourcery.com>
10526
10527 * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
10528 (float32_type_node, float64_type_node, float32x_type_node)
10529 (float128x_type_node): New macros.
10530 * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
10531 (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
10532 (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
10533 (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
10534 (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
10535 (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
10536 (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
10537 (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
10538 (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
10539 (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
10540 (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
10541 (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
10542 (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
10543 (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
10544 (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
10545 (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
10546 * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
10547 (copysign, fabs, huge_val, inf, nan, nans): Use it.
10548 * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
10549 and copysign.
10550 (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
10551 (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
10552 * doc/extend.texi (Other Builtins): Document these built-in
10553 functions.
10554 * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
10555 for nan and nans.
10556
10557 2016-08-22 Gerald Pfeifer <gerald@pfeifer.com>
10558
10559 * doc/install.texi (Binaries): www.opencsw.org now uses https.
10560
10561 2016-08-22 Richard Biener <rguenther@suse.de>
10562
10563 * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
10564
10565 2016-08-21 Uros Bizjak <ubizjak@gmail.com>
10566
10567 PR target/77270
10568 * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
10569 TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
10570 non-SSE2 athlons only, otherwise prefer SSE prefetches.
10571
10572 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
10573
10574 * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
10575 (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
10576 (vrp_visit_switch_stmt): Likewise.
10577 (extract_range_from_stmt): Factored out from vrp_visit_stmt.
10578 (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
10579 (vrp_visit_stmt): Use extract_range_from_stmt.
10580 (vrp_visit_phi_node): Use extract_range_from_phi_node.
10581
10582 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
10583
10584 * Makefile.in: Add tree-vrp.h to GTFILES.
10585 * gengtype.c (open_base_files): Add tree-vrp.h.
10586 * asan.c: Add tree-vrp.h which now has the definition value_range_type.
10587 * builtins.c: Likewise.
10588 * fold-const.c: Likewise.
10589 * gimple-builder.c: Likewise.
10590 * gimple-laddress.c: Likewise.
10591 * hsa-gen.c: Likewise.
10592 * internal-fn.c: Likewise.
10593 * ssa.h: Likewise.
10594 * targhooks.c: Liewise,
10595 * tree-ssa-address.c: Likewise.
10596 * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
10597 * tree-vrp.c (struct value_range): Move to tree-vrp.h
10598 * tree-vrp.h: New file.
10599
10600 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
10601
10602 PR tree-optimization/61839
10603 * tree-vrp.c (two_valued_val_range_p): New.
10604 (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
10605 two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
10606 Also Convert VAR BINOP CST where VAR is two-valued to
10607 VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
10608
10609 2016-08-19 David Malcolm <dmalcolm@redhat.com>
10610
10611 * diagnostic-show-locus.c
10612 (layout::annotation_line_showed_range_p): New method.
10613 (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
10614 Reimplement case fixit_hint::REPLACE to cover removals, and
10615 replacements where the range of the replacement isn't one
10616 of the ranges in the rich_location.
10617 (test_one_liner_fixit_replace): Likewise.
10618 (selftest::test_one_liner_fixit_replace_non_equal_range): New
10619 function.
10620 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
10621 New function.
10622 (selftest::test_diagnostic_show_locus_one_liner): Call the new
10623 functions.
10624 * diagnostic.c (print_parseable_fixits): Remove case
10625 fixit_hint::REMOVE.
10626
10627 2016-08-19 Uros Bizjak <ubizjak@gmail.com>
10628
10629 PR target/77270
10630 * config/i386/i386.c (ix86_option_override_internal): Remove
10631 PTA_PRFCHW from entries that also have PTA_3DNOW flag.
10632 Enable SSE prefetch also for TARGET_PREFETCHWT1.
10633 Do not try to enable TARGET_PRFCHW ISA flag here.
10634 * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
10635 Rewrite expander function body.
10636 (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
10637
10638 2016-08-19 Joseph Myers <joseph@codesourcery.com>
10639
10640 PR c/32187
10641 * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
10642 (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
10643 (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
10644 (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
10645 (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
10646 (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
10647 (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
10648 (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
10649 (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
10650 tree_index values.
10651 (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
10652 macros.
10653 (struct floatn_type_info): New structure type.
10654 (floatn_nx_types): New variable declaration.
10655 * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
10656 (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
10657 (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
10658 * tree.c (floatn_nx_types): New variable.
10659 (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
10660 corresponding complex types.
10661 * target.def (floatn_mode): New hook.
10662 * targhooks.c: Include "real.h".
10663 (default_floatn_mode): New function.
10664 * targhooks.h (default_floatn_mode): New prototype.
10665 * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
10666 types.
10667 * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
10668 effective-target and dg-add-options keywords.
10669 (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
10670 Document new effective-target keywords.
10671 * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
10672 * doc/tm.texi: Regenerate.
10673 * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
10674 __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
10675 [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
10676 18661-3.
10677 * real.h (struct real_format): Add field ieee_bits.
10678 * real.c (ieee_single_format, mips_single_format)
10679 (motorola_single_format, spu_single_format, ieee_double_format)
10680 (mips_double_format, motorola_double_format)
10681 (ieee_extended_motorola_format, ieee_extended_intel_96_format)
10682 (ieee_extended_intel_128_format)
10683 (ieee_extended_intel_96_round_53_format, ibm_extended_format)
10684 (mips_extended_format, ieee_quad_format, mips_quad_format)
10685 (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
10686 (decimal_double_format, decimal_quad_format, ieee_half_format)
10687 (arm_half_format, real_internal_format: Initialize ieee_bits
10688 field.
10689 * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
10690 float128_type_node. Set float80_type_node to float64x_type_node
10691 if appropriate and long_double_type_node not appropriate.
10692 * config/ia64/ia64.c (ia64_init_builtins): Likewise.
10693 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
10694 Initialize ieee_bits field.
10695 * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
10696 (rs6000_init_builtins): Set ieee128_float_type_node to
10697 float128_type_node.
10698 (rs6000_floatn_mode): New function.
10699
10700 2016-08-19 Jakub Jelinek <jakub@redhat.com>
10701
10702 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
10703 _rdseed64_step): Uglify argument names and/or local variable names
10704 in inline functions.
10705 * config/i386/rtmintrin.h (_xabort): Likewise.
10706 * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
10707 _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
10708 _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
10709 _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
10710 _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
10711 _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
10712 _mm_maskz_ternarylogic_epi32): Likewise.
10713 * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
10714 __lwpins32, __lwpins64): Likewise.
10715 * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
10716 _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
10717 _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
10718 _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
10719 _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
10720 _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
10721 _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
10722 _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
10723 _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
10724 _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
10725 _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
10726 _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
10727 _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
10728 _mm256_mask_i64gather_epi32): Likewise.
10729 * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
10730 * config/i386/ia32intrin.h (__writeeflags): Likewise.
10731 * config/i386/pkuintrin.h (_wrpkru): Likewise.
10732 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
10733 _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
10734 _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
10735 _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
10736 _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
10737 _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
10738 _mm512_mask_prefetch_i64scatter_ps): Likewise.
10739 * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
10740 * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
10741 _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
10742 _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
10743 _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
10744 _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
10745 _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
10746 _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
10747
10748 * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
10749 returning void.
10750 (_fxrstor, _fxsave64, _fxrstor64): Likewise.
10751 * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
10752 Likewise.
10753 * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
10754 * config/i386/pkuintrin.h (_wrpkru): Likewise. Add space after
10755 function name.
10756 (_rdpkru_u32): Add space after function name.
10757
10758 * config/i386/t-i386 (i386-c.o): Don't depend on
10759 i386-builtin-types.inc.
10760 (i386.o): Depend on i386-builtin-types.inc.
10761
10762 2016-08-19 Matthew Wahab <matthew.wahab@arm.com>
10763
10764 PR target/77281
10765 * config/arm/arm.c (neon_valid_immediate): Delete declaration.
10766 Use const_vec_duplicate to check for duplicated elements.
10767
10768 2016-08-19 Richard Biener <rguenther@suse.de>
10769
10770 PR tree-optimization/77290
10771 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10772 Fix flag_tree_parallelize_loops check.
10773
10774 2016-08-19 Richard Biener <rguenther@suse.de>
10775
10776 * match.pd (x | 0 -> x): Add.
10777
10778 2016-08-19 Richard Biener <rguenther@suse.de>
10779
10780 PR tree-optimization/77286
10781 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
10782 Deal with virtual PHIs being out-of-order.
10783
10784 2016-08-18 David Malcolm <dmalcolm@redhat.com>
10785
10786 * doc/invoke.texi (fverbose-asm): Note that source code lines
10787 are emitted, and provide an example.
10788 * final.c (asm_show_source): New function.
10789 (final_scan_insn): Call asm_show_source.
10790
10791 2016-08-18 David Malcolm <dmalcolm@redhat.com>
10792
10793 * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
10794 param with diagnostic_kind.
10795 (class colorizer): Similarly replace field m_diagnostic with
10796 m_diagnostic_kind.
10797 (colorizer::colorizer): Replace diagnostic
10798 param with diagnostic_kind.
10799 (colorizer::begin_state): Update for above field change.
10800 (layout::layout): Replace diagnostic param with rich_location *
10801 and diagnostic_kind.
10802 (diagnostic_show_locus): Replace diagnostic param with richloc
10803 and diagnostic_kind.
10804 (class selftest::test_diagnostic_context): New class.
10805 (selftest::test_diagnostic_show_locus_unknown_location): New
10806 function.
10807 (selftest::test_one_liner_simple_caret): New function.
10808 (selftest::test_one_liner_caret_and_range): New function.
10809 (selftest::test_one_liner_multiple_carets_and_ranges): New
10810 function.
10811 (selftest::test_one_liner_fixit_remove): New function.
10812 (selftest::test_one_liner_fixit_replace): New function.
10813 (selftest::test_diagnostic_show_locus_one_liner): New function.
10814 (selftest::diagnostic_show_locus_c_tests): Call the new test
10815 functions.
10816 * diagnostic.c (diagnostic_initialize): Initialize
10817 colorize_source_p, show_ruler_p and parseable_fixits_p.
10818 (default_diagnostic_finalizer): Update for change to
10819 diagnostic_show_locus.
10820 (diagnostic_append_note): Likewise.
10821 * diagnostic.h (diagnostic_show_locus): Replace
10822 const diagnostic_info * param with location * and diagnostic_t.
10823
10824 2016-08-18 David Malcolm <dmalcolm@redhat.com>
10825
10826 * input.c (saved_line_table): New global.
10827 (class selftest::temp_line_table): Rename to line_table_test and
10828 move declaration to selftest.h, and drop field m_old_line_table.
10829 (selftest::temp_line_table::temp_line_table): Rename ctor to...
10830 (selftest::line_table_test::line_table_test): ...this. Add a
10831 default ctor. Store current value of line_table within
10832 saved_line_table.
10833 (selftest::temp_line_table::~temp_line_table): Rename dtor to...
10834 (selftest::line_table_test::~line_table_test): ...this, and
10835 restore line_table from the saved_line_table, rather than
10836 m_old_line_table.
10837 (selftest::test_accessing_ordinary_linemaps): Update for above
10838 renaming.
10839 (selftest::test_lexer): Likewise.
10840 (struct selftest::lexer_test): Likewise.
10841 (selftest::lexer_test::lexer_test): Likewise.
10842 (selftest::input_c_tests): Move the looping over test cases from
10843 here into...
10844 (selftest::for_each_line_table_case): New function.
10845 * input.h (saved_line_table): New decl.
10846 * selftest.h (struct selftest::line_table_case): New forward decl.
10847 (class selftest::line_table_test): New class, moved here from
10848 selftest::temp_line_table in input.c, and renamed.
10849 (selftest::for_each_line_table_case): New decl.
10850
10851 2015-08-18 H.J. Lu <hongjiu.lu@intel.com>
10852
10853 PR target/72839
10854 * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
10855
10856 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
10857
10858 PR middle-end/70895
10859 * gimplify.c (omp_add_variable): Adjust/add variable mapping on
10860 enclosing parallel construct for reduction variables on OpenACC loop
10861 directives.
10862
10863 2016-08-18 Pierre-Marie de Rodat <derodat@adacore.com>
10864
10865 * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
10866 (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
10867 -gdwarf-3.
10868 (function_to_dwarf_procedure): Update comment.
10869
10870 2016-08-18 David Malcolm <dmalcolm@redhat.com>
10871
10872 * input.c (diagnostics_file_cache_forcibly_evict_file): New
10873 function.
10874 * input.h (diagnostics_file_cache_forcibly_evict_file): New
10875 declaration.
10876 * selftest.c (selftest::temp_source_file::~temp_source_file):
10877 Evict m_filename from the diagnostic file cache.
10878
10879 2016-08-18 Richard Biener <rguenther@suse.de>
10880
10881 * tree-pass.h (make_pass_materialize_all_clones): Declare.
10882 * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
10883 make_pass_materialize_all_clones): New simple IPA pass encapsulating
10884 clone materialization.
10885 * passes.def (all_late_ipa_passes): Start with
10886 pass_materialize_all_clones.
10887 * cgraphunit.c (symbol_table::compile): Remove call to
10888 materialize_all_clones.
10889 * tree-into-ssa.c: Include statistics.h.
10890 (update_ssa): Count number of times we do incremental/rewrite
10891 SSA update.
10892
10893 2016-08-18 Richard Biener <rguenther@suse.de>
10894
10895 PR tree-optimization/77282
10896 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10897 When doing auto-parallelizing also prevent use of PHIs that
10898 carry dependences across loop backedges.
10899
10900 2016-08-18 Tamar Christina <tamar.christina@arm.com>
10901 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10902
10903 * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
10904
10905 2016-08-18 Richard Biener <rguenther@suse.de>
10906
10907 * ssa-iterators.h (ssa_vuse_operand): New inline.
10908 * tree-if-conv.c (ifc_temp_var): Update virtual operand.
10909 (predicate_all_scalar_phis): Use remove_phi_node to remove
10910 phi nodes predicated. Delay removing virtual PHIs.
10911 (predicate_mem_writes): Update virtual operands.
10912 (combine_blocks): Likewise. Propagate out remaining virtual PHIs.
10913 (tree_if_conversion): Do not rewrite virtual SSA form.
10914 * tree-phinodes.c (release_phi_node): Make static.
10915 * tree-phinodes.h (release_phi_node): Remove.
10916
10917 2016-08-18 Jakub Jelinek <jakub@redhat.com>
10918
10919 * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
10920 codes that appear in bdesc_* arrays, instead include i386-builtin.def
10921 twice to define those.
10922 (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
10923 bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
10924 bdesc_multi_arg): Define by including i386-builtin.def the third time.
10925 * config/i386/i386-builtin.def: New file.
10926
10927 2016-08-17 David Malcolm <dmalcolm@redhat.com>
10928
10929 * input.c (get_source_range_for_char): Rename to...
10930 (selftest::get_source_range_for_char): ...this, and move within
10931 the #if CHECKING_P guard.
10932 (get_num_source_ranges_for_substring): Rename to...
10933 (selftest::get_num_source_ranges_for_substring): ...this, move
10934 within the #if CHECKING_P guard, and make static.
10935 (selftest::assert_num_substring_ranges): Initialize
10936 actual_num_ranges.
10937
10938 2016-08-18 Alan Modra <amodra@gmail.com>
10939
10940 PR rtl-optimization/72771
10941 * reload.c (find_reloads): Don't assume that a subreg mem is OK
10942 when find_reloads_toplev returns address_reloaded==-1.
10943 (alternative_allows_const_pool_ref): Update comment.
10944
10945 2015-08-17 Alan Hayward <alan.hayward@arm.com>
10946
10947 PR tree-optimization/71752
10948 * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
10949 * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
10950
10951 2016-08-17 Jakub Jelinek <jakub@redhat.com>
10952
10953 * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
10954 instead of testing ECF_NORETURN bit in gimple_call_flags.
10955 * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
10956 * predict.c (tree_bb_level_predictions): Likewise.
10957 * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
10958
10959 PR middle-end/77259
10960 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
10961 turning a call into __builtin_unreachable-like noreturn call, adjust
10962 gimple_call_set_fntype.
10963 * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
10964 gimple_call_fntype has void return type.
10965
10966 2016-08-17 Chung-Lin Tang <cltang@codesourcery.com>
10967
10968 * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
10969 maybe_lookup_decl, to handle nested acc loop directives.
10970
10971 2016-08-17 Richard Biener <rguenther@suse.de>
10972
10973 PR tree-optimization/76490
10974 * tree-vrp.c (update_value_range): Preserve overflow infinities
10975 when intersecting with ranges from get_range_info.
10976 (operand_less_p): Handle overflow infinities correctly.
10977 (value_range_constant_singleton): Use vrp_operand_equal_p
10978 to handle overflow max/min correctly.
10979 (vrp_valueize): Likewise.
10980 (union_ranges): Likewise.
10981 (intersect_ranges): Likewise.
10982 (vrp_visit_phi_node): Improve iteration limitation to only
10983 apply when we'll possibly re-visit the PHI via a changed argument
10984 on the backedge.
10985
10986 2016-08-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
10987
10988 * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
10989 (MULTILIB_REQUIRED): This by specifying multilib needing to be built
10990 rather than those that should not be built.
10991
10992 2016-08-17 Stanislaw Halik <sthalik@misaki.pl>
10993
10994 PR target/66488
10995 * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
10996
10997 2016-08-17 Richard Biener <rguenther@suse.de>
10998
10999 * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
11000 (verify_vssa): New function verifying virtual SSA form.
11001 (verify_ssa): Call it.
11002 * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
11003 Do not apply loop-closed SSA handling to virtuals.
11004 * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
11005 * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
11006 when rewriting their symbol.
11007 (prepare_def_site_for): Likewise.
11008 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
11009 operands of moved stmts.
11010
11011 2016-08-17 Richard Biener <rguenther@suse.de>
11012
11013 PR tree-optimization/23855
11014 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
11015 (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
11016 find guards to hoist. Do not update SSA form but rewrite virtuals
11017 into loop closed SSA.
11018 (find_loop_guard): Adjust to skip already hoisted guards. Do
11019 not mark virtuals for renaming or update SSA form.
11020
11021 2016-08-17 Martin Liska <mliska@suse.cz>
11022
11023 * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
11024 a LONG_LONG_TYPE_SIZE comparison.
11025 * gcov-io.h: Remove macro definitions.
11026 * tree-profile.c (gimple_gen_edge_profiler): Replace usage
11027 of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
11028 comparison.
11029
11030 2016-08-16 Jakub Jelinek <jakub@redhat.com>
11031
11032 * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
11033 that builtins not mentioned in bdesc_* arrays come first, then
11034 the ones mentioned in bdesc_* arrays in the order they appear in
11035 the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
11036 IX86_BUILTIN__BDESC_*_LAST enumerator.
11037 (bdesc_mpx): Fix up a comment typo.
11038 (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
11039 __builtin_ia32_vpcomneu[bwdq] builtins.
11040 (BDESC_VERIFY, BDESC_VERIFYS): Define.
11041 (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
11042 enum ix86_builtins ordering.
11043 (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
11044 for direct bdesc_* array member access instead of searching all the
11045 arrays until an fcode match is found.
11046
11047 2016-08-16 Uros Bizjak <ubizjak@gmail.com>
11048
11049 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
11050 pattern as define_insn_and_split. Split insn before reload to
11051 ashl<mode>3_1.
11052 (*<shift_insn><mode>3_mask): Ditto. Split insn before reload to
11053 <shift_insn><mode>3_1.
11054 (*<rotate_insn><mode>3_mask): Ditto. Split insn before reload to
11055 <rotate_insn><mode>3_1.
11056
11057 2016-08-16 David Malcolm <dmalcolm@redhat.com>
11058
11059 PR c/72857
11060 * input.c (get_source_range_for_substring): Rename to...
11061 (get_source_location_for_substring): ...this, adding param
11062 "caret_idx", and converting output param from source_range * to
11063 location_t *.
11064 (get_source_range_for_char): New function.
11065 (get_num_source_ranges_for_substring): Update comment to reflect
11066 above renaming.
11067 (assert_char_at_range): Update to use get_source_range_for_char
11068 rather than get_source_range_for_substring.
11069 (test_lexer_string_locations_concatenation_2): Likewise.
11070 * substring-locations.h (get_source_range_for_substring): Rename
11071 to...
11072 (get_source_location_for_substring): ...this, and adding param
11073 "caret_idx", and converting output param from source_range * to
11074 location_t *.
11075
11076 2016-08-16 David Malcolm <dmalcolm@redhat.com>
11077
11078 * input.c (class selftest::temp_source_file): Move to
11079 selftest.h.
11080 (selftest::temp_source_file::temp_source_file): Move to
11081 selftest.c.
11082 (selftest::temp_source_file::~temp_source_file): Likewise.
11083 * selftest.c (selftest::temp_source_file::temp_source_file): Move
11084 here from input.c.
11085 (selftest::temp_source_file::~temp_source_file): Likewise.
11086 * selftest.h (class selftest::temp_source_file): Move here from
11087 input.c
11088
11089 2016-08-16 Jakub Jelinek <jakub@redhat.com>
11090
11091 PR target/71910
11092 * tree-cfg.c (execute_fixup_cfg): Add node variable, use it. Before
11093 inlining, add cgraph edge for the added __builtin_unreachable call.
11094
11095 PR middle-end/67485
11096 * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
11097 only cast it to SHWI for the final comparison.
11098
11099 2016-08-16 Martin Liska <mliska@suse.cz>
11100
11101 PR gcov-profile/36412
11102 * doc/gcov.texi: Document --hash-filenames(-x).
11103 * gcov.c (print_usage): Add the option.
11104 (process_args): Process the option, sort options alphabetically.
11105 (md5sum_to_hex): New function.
11106 (make_gcov_file_name): Do the md5sum and append it to a
11107 filename.
11108
11109 2016-08-16 Bin Cheng <bin.cheng@arm.com>
11110
11111 PR tree-optimization/69848
11112 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
11113 and swtich operands to avoid additional NOT instruction.
11114 (vcond<v_cmp_mixed><mode>): Ditto.
11115 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
11116
11117 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
11118
11119 * doc/install.texi (*-*-solaris2*): Adjust latest change.
11120
11121 2016-08-16 Richard Biener <rguenther@suse.de>
11122
11123 PR tree-optimization/76783
11124 * tree-ssa-propagate.c (ssa_prop_init): Use RPO order. Clear
11125 BB visited flags at start.
11126
11127 2016-08-16 Bin Cheng <bin.cheng@arm.com>
11128
11129 PR tree-optimization/72817
11130 PR tree-optimization/73450
11131 * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
11132 multiple_of_p for adjusted IV.base.
11133
11134 2016-08-15 Uros Bizjak <ubizjak@gmail.com>
11135
11136 PR target/72867
11137 * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
11138 Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
11139 for !flag_finite_math_only or flag_signed_zeros.
11140 (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
11141 *<code><mode>3_finite<mask_name><round_saeonly_name>. Do not
11142 depend on flag_finite_math_only.
11143 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
11144 New insn pattern.
11145 (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
11146 (*ieee_smin<mode>3): Ditto.
11147 (*ieee_smax<mode>3): Ditto.
11148 * config/i386/mmx.md (mmx_<code>v2sf3): Emit
11149 mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
11150 flag_signed_zeros.
11151 (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite. Do not
11152 depend on flag_finite_math_only.
11153 (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
11154 (*mmx_<code>v2sf3): Remove.
11155 * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
11156 * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
11157 flag_signed_zeros instead of !flag_unsafe_math_optimizations.
11158
11159 2016-08-15 Segher Boessenkool <segher@kernel.crashing.org>
11160
11161 PR rtl-optimization/73650
11162 * lra-constraints.c (simple_move_p): If the insn is multiple_sets
11163 it is not a simple move.
11164
11165 2016-08-15 Martin Liska <mliska@suse.cz>
11166
11167 PR driver/72765
11168 * gcc.c (do_spec_1): Call save_string with the right size.
11169 (save_string): Do an assert about string we copy.
11170
11171 2016-08-15 Richard Biener <rguenther@suse.de>
11172
11173 * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
11174 * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
11175 TV_MACH_DEP.
11176 (pass_data_stv): Likewise.
11177
11178 2016-08-15 Richard Biener <rguenther@suse.de>
11179
11180 PR tree-optimization/73434
11181 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
11182 TBAA info on the base when forwarding a non-invariant address.
11183
11184 2016-08-15 Jakub Jelinek <jakub@redhat.com>
11185
11186 * dwarf2out.c (struct checksum_attributes): Add
11187 at_string_length_bit_size and at_string_length_byte_size fields.
11188 (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
11189 and DW_AT_string_length_byte_size.
11190 (die_checksum_ordered): Handle at_string_length_bit_size and
11191 at_string_length_byte_size.
11192 (gen_array_type_die): For dwarf_version >= 5 emit
11193 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
11194 (adjust_string_types): For dwarf_version >= 5 remove
11195 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
11196 (resolve_addr): Likewise.
11197
11198 PR debug/71906
11199 * dwarf2out.c (string_types): New variable.
11200 (gen_array_type_die): Change early_dwarf handling of
11201 DW_AT_string_length, create DW_OP_call4 referencing the
11202 length var temporarily. Handle parameters that are pointers
11203 to string length.
11204 (adjust_string_types): New function.
11205 (gen_subprogram_die): Temporarily set string_types to local var,
11206 call adjust_string_types if needed.
11207 (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
11208 New functions.
11209 (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
11210
11211 2016-08-15 Eric Botcazou <ebotcazou@adacore.com>
11212
11213 * doc/install.texi (*-*-solaris2*): Fix version number and document
11214 requirement on GNU make for building libjava with the Solaris linker.
11215
11216 2016-08-15 Martin Liska <mliska@suse.cz>
11217 Jakub Jelinek <jakub@redhat.com>
11218
11219 PR tree-optimization/72824
11220 * tree-loop-distribution.c (const_with_all_bytes_same)
11221 <case VECTOR_CST>: Fix a typo.
11222
11223 2016-08-14 Uros Bizjak <ubizjak@gmail.com>
11224
11225 PR target/76342
11226 * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
11227 Renamed from _mm512_undefined_si512.
11228 (_mm_undefined_si512): New definition.
11229
11230 2016-08-13 Richard Biener <rguenther@suse.de>
11231
11232 * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
11233 into PHIs and update the lattice for its def.
11234
11235 2016-08-12 Jakub Jelinek <jakub@redhat.com>
11236
11237 PR c/71512
11238 * ubsan.c (instrument_si_overflow): Pass true instead of false
11239 to gsi_replace.
11240 (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
11241 of bbs. Return TODO_cleanup_cfg if any returned true.
11242
11243 2016-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
11244
11245 * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
11246 ISA 3.0 MTVSRDD instruction.
11247 (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
11248 vecperm.
11249
11250 2016-08-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
11251
11252 PR tree-optimization/71083
11253 * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
11254 bitfield access when possible.
11255
11256 2016-08-12 Patrick Palka <ppalka@gcc.gnu.org>
11257
11258 PR middle-end/71654
11259 * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
11260 sign-changing cast from a shorter unsigned type to a wider
11261 signed type.
11262
11263 2016-08-12 Jakub Jelinek <jakub@redhat.com>
11264
11265 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
11266 vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
11267 vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
11268
11269 2016-08-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11270
11271 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
11272 Correct costs for vec_construct.
11273
11274 2016-08-12 Bin Cheng <bin.cheng@arm.com>
11275
11276 PR tree-optimization/69848
11277 * tree-vectorizer.h (enum vect_def_type): New condition reduction
11278 type CONST_COND_REDUCTION.
11279 * tree-vect-loop.c (vectorizable_reduction): Support new condition
11280 reudction type CONST_COND_REDUCTION.
11281
11282 2016-08-12 Richard Biener <rguenther@suse.de>
11283
11284 PR tree-optimization/57326
11285 * tree-ssa-pre.c (fully_constant_expression): Handle simplification
11286 returning an SSA name.
11287 (phi_translate_1): When fully_constant_expression returns a NAME
11288 make sure we have a leader for it.
11289
11290 2016-08-12 Martin Liska <mliska@suse.cz>
11291 Adam Fineman <afineman@afineman.com>
11292
11293 * gcov.c (process_file): Create .gcov file when .gcda
11294 file is missing.
11295
11296 2016-08-12 Marek Polacek <polacek@redhat.com>
11297
11298 PR c/7652
11299 * alias.c (find_base_value): Adjust fall through comment.
11300 * cfgexpand.c (expand_debug_expr): Likewise.
11301 * combine.c (find_split_point): Likewise.
11302 (expand_compound_operation): Likewise. Add FALLTHRU.
11303 (make_compound_operation): Adjust fall through comment.
11304 (canon_reg_for_combine): Add FALLTHRU.
11305 (force_to_mode): Adjust fall through comment.
11306 (simplify_shift_const_1): Likewise.
11307 (simplify_comparison): Likewise.
11308 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
11309 FALLTHRU.
11310 * config/aarch64/predicates.md: Likewise.
11311 * config/i386/i386.c (function_arg_advance_32): Likewise.
11312 (ix86_gimplify_va_arg): Likewise.
11313 (print_reg): Likewise.
11314 (ix86_print_operand): Likewise.
11315 (ix86_build_const_vector): Likewise.
11316 (ix86_expand_branch): Likewise.
11317 (ix86_sched_init_global): Adjust fall through comment.
11318 (ix86_expand_args_builtin): Add FALLTHRU.
11319 (ix86_expand_builtin): Likewise.
11320 (ix86_expand_vector_init_one_var): Likewise.
11321 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
11322 (rs6000_adjust_cost): Likewise.
11323 (insn_must_be_first_in_group): Likewise.
11324 * config/rs6000/rs6000.md: Likewise. Adjust fall through comment.
11325 * dbxout.c (dbxout_symbol): Adjust fall through comment.
11326 * df-scan.c (df_uses_record): Likewise.
11327 * dojump.c (do_jump): Add FALLTHRU.
11328 * dwarf2out.c (mem_loc_descriptor): Likewise. Adjust fall through
11329 comment.
11330 (resolve_args_picking_1): Adjust fall through comment.
11331 (loc_list_from_tree_1): Likewise.
11332 * expmed.c (make_tree): Likewise.
11333 * expr.c (expand_expr_real_2): Add FALLTHRU.
11334 (expand_expr_real_1): Likewise. Adjust fall through comment.
11335 * fold-const.c (const_binop): Adjust fall through comment.
11336 (fold_truth_not_expr): Likewise.
11337 (fold_cond_expr_with_comparison): Add FALLTHRU.
11338 (fold_binary_loc): Likewise.
11339 (contains_label_1): Adjust fall through comment.
11340 (multiple_of_p): Likewise.
11341 * gcov-tool.c (process_args): Add FALLTHRU.
11342 * genattrtab.c (check_attr_test): Likewise.
11343 (write_test_expr): Likewise.
11344 * genconfig.c (walk_insn_part): Likewise.
11345 * genpreds.c (validate_exp): Adjust fall through comment.
11346 (needs_variable): Likewise.
11347 * gensupport.c (get_alternatives_number): Add FALLTHRU.
11348 (subst_dup): Likewise.
11349 * gimple-pretty-print.c (dump_gimple_assign): Likewise.
11350 * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
11351 (gimplify_scan_omp_clauses): Add FALLTHRU.
11352 (goa_stabilize_expr): Likewise.
11353 * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
11354 through comment.
11355 * hsa-gen.c (get_address_from_value): Likewise.
11356 * ipa-icf.c (sem_function::hash_stmt): Likewise.
11357 * ira.c (ira_setup_alts): Add FALLTHRU.
11358 * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
11359 comment.
11360 * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
11361 * opts.c (common_handle_option): Likewise.
11362 * read-rtl.c (read_rtx_code): Likewise.
11363 * real.c (round_for_format): Likewise.
11364 * recog.c (asm_operand_ok): Likewise.
11365 * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
11366 * reload1.c (set_label_offsets): Likewise.
11367 (eliminate_regs_1): Likewise.
11368 (reload_reg_reaches_end_p): Likewise.
11369 * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
11370 (rtx_cost): Likewise.
11371 * sched-rgn.c (is_exception_free): Likewise.
11372 * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
11373 * stor-layout.c (int_mode_for_mode): Likewise.
11374 * toplev.c (print_to_asm_out_file): Likewise.
11375 (print_to_stderr): Likewise.
11376 * tree-cfg.c (gimple_verify_flow_info): Likewise.
11377 * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
11378 (chrec_fold_multiply): Likewise.
11379 (evolution_function_is_invariant_rec_p): Likewise.
11380 (for_each_scev_op): Likewise.
11381 * tree-data-ref.c (siv_subscript_p): Likewise.
11382 (get_references_in_stmt): Likewise.
11383 * tree.c (find_placeholder_in_expr): Adjust fall through comment.
11384 (substitute_in_expr): Likewise.
11385 (type_cache_hasher::equal): Likewise.
11386 (walk_type_fields): Likewise.
11387 * var-tracking.c (adjust_mems): Add FALLTHRU.
11388 (set_dv_changed): Adjust fall through comment.
11389 * varasm.c (default_function_section): Add FALLTHRU.
11390
11391 2016-08-12 Marek Polacek <polacek@redhat.com>
11392
11393 PR c/7652
11394 * tree-complex.c (expand_complex_division): Add missing break.
11395
11396 2016-08-12 Richard Biener <rguenther@suse.de>
11397
11398 * passes.c (execute_todo): Do not push/pop TV_TODO.
11399 (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
11400 (execute_one_pass): Likewise.
11401 * common.opt (ftime-report-details): New switch.
11402 * doc/invoke.texi (ftime-report-details): Document.
11403 * timevar.h (timer::print_row): Adjust signature.
11404 (timer::all_zero): New static helper.
11405 (timer::child_map_t): New typedef.
11406 (timer::time_var_def): Add children field.
11407 * timevar.c (timer::named_items::print): Adjust.
11408 (timer::~timer): Free timevar recorded children.
11409 (timer::pop_internal): When -ftime-report-details record
11410 time spent in sub-timevars.
11411 (timer::print_row): Adjust.
11412 (timer::print): Print sub-timevar stats, use all_zero.
11413 * timevar.def (TV_TODO): Remove.
11414
11415 2016-08-12 Richard Biener <rguenther@suse.de>
11416
11417 PR tree-optimization/72851
11418 * tree-ssa-propagate.c: Include cfganal.h. Rewrite block and stmt
11419 worklists to use bitmaps indexed in execution order.
11420 (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
11421 bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
11422 (cfg_blocks): Make a bitmap.
11423 (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
11424 New globals.
11425 (cfg_blocks_empty_p): Adjust.
11426 (cfg_blocks_add): Likewise.
11427 (cfg_blocks_get): Likewise.
11428 (add_ssa_edge): Likewise.
11429 (add_control_edge): Likewise.
11430 (simulate_stmt): Likewise.
11431 (process_ssa_edge_worklist): Likewise.
11432 (simulate_block): Likewise.
11433 (ssa_prop_init): Compute PRE order and stmt UIDs.
11434 (ssa_prop_fini): Adjust.
11435 (ssa_propagate): Adjust.
11436
11437 2016-08-12 Richard Biener <rguenther@suse.de>
11438
11439 * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
11440 the currently executable edges have fixed ranges. Always
11441 go through update_value_range.
11442
11443 2016-08-12 Alexandre Oliva <aoliva@redhat.com>
11444
11445 PR debug/63240
11446 * langhooks-def.h
11447 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
11448 (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
11449 (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
11450 (LANG_HOOKS_DECLS): Add it.
11451 * langhooks.h (struct lang_hooks_for_decls): Add
11452 function_decl_defaulted. Const_tree-ify
11453 function_decl_explicit_p and function_decl_deleted_p.
11454 * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
11455 attribute. Add DW_AT_deleted instead of DW_AT_GNU_deleted,
11456 also at strict DWARF v5.
11457
11458 PR debug/55641
11459 * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
11460 TYPE_QUAL_CONST in reference-typed decls.
11461
11462 PR debug/49366
11463 * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
11464 in DW_OP_pieces, just enough to handle pointers to member
11465 functions.
11466 (gen_remaining_tmpl_value_param_die_attribute): Use a location
11467 expression on DWARFv5 if a constant value doesn't work.
11468
11469 2016-08-11 David Malcolm <dmalcolm@redhat.com>
11470
11471 * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
11472 * selftest.c (selftest::test_assertions): New function.
11473 (selftest::selftest_c_tests): New function.
11474 * selftest.h (selftest::selftest_c_tests): New declaration.
11475
11476 2016-08-11 Richard Biener <rguenther@suse.de>
11477 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11478
11479 PR rtl-optimization/72855
11480 * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
11481
11482 2016-08-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11483
11484 PR target/72863
11485 * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
11486 (vsx_store_<mode>): Likewise.
11487
11488 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
11489
11490 * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
11491 TImode CONST_WIDE_INT store.
11492 (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
11493
11494 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
11495
11496 * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
11497 mode if unaligned SSE load and store are optimal.
11498
11499 2016-08-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
11500
11501 PR tree-optimization/71083
11502 * tree-predcom.c (ref_at_iteration): Correctly align the
11503 reference type.
11504
11505 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11506
11507 * config/s390/s390-builtin-types.def: Add INT128 types.
11508 * config/s390/s390-builtins.def: Add INT128 variants for the add
11509 sub low-level builtins dealing with TImode.
11510 * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
11511 via subreg when expanding a builtin.
11512 * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
11513 UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
11514 Fix comment.
11515 * config/s390/vecintrin.h: Adjust builtin names accordingly.
11516 * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
11517 ("vec_addc<mode>", "vec_addc_u128"): Merge to
11518 "vacc<bhfgq>_<mode>".
11519 ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
11520 ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
11521 ("vec_subc<mode>", "vec_subc_u128"): Merge to
11522 "vscbi<bhfgq>_<mode>".
11523 ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
11524 ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
11525
11526 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11527
11528 * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
11529
11530 2016-08-11 Bin Cheng <bin.cheng@arm.com>
11531
11532 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
11533 unused declaration.
11534 (vcond<v_cmp_mixed><mode>): Ditto.
11535 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
11536
11537 2016-08-11 Bin Cheng <bin.cheng@arm.com>
11538
11539 * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
11540 variable explicitly, also assert on it before use.
11541
11542 2016-08-11 Richard Biener <rguenther@suse.de>
11543
11544 PR tree-optimization/72772
11545 * cfgloopmanip.c (create_preheader): Use split_edge if there
11546 is a single loop entry, avoiding degenerate PHIs.
11547
11548 2016-08-11 Richard Biener <rguenther@suse.de>
11549
11550 * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
11551 unconditional TODO_cleanup_cfg.
11552 (pass_thread_jumps::execute): Initialize loops, perform a CFG
11553 cleanup only if we threaded a jump.
11554
11555 2016-08-11 Alan Modra <amodra@gmail.com>
11556
11557 PR target/71680
11558 * lra-constraints.c (simplify_operand_subreg): Allow subreg
11559 mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
11560 slow. Emit two reloads for slow mem case, first loading in
11561 fast innermode, then converting to required mode.
11562
11563 2016-08-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
11564
11565 * config/rs6000/altivec.h (vec_extract_exp): New macro.
11566 (vec_extract_sig): New macro.
11567 (vec_insert_exp): New macro.
11568 (vec_test_data_class): New macro.
11569 (scalar_extract_exp): New macro.
11570 (scalar_extract_sig): New macro.
11571 (scalar_insert_exp): New macro.
11572 (scalar_test_data_class): New macro.
11573 (scalar_test_neg): New macro.
11574 (scalar_cmp_exp_gt): New macro.
11575 (scalar_cmp_exp_lt): New macro.
11576 (scalar_cmp_exp_eq): New macro.
11577 (scalar_cmp_exp_unordered): New macro.
11578 * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
11579 to enforce constraint that operand is a 7-bit unsigned literal.
11580 * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
11581 for power9 built-ins.
11582 (BU_P9V_VSX_2): Likewise.
11583 (BU_P9V_64BIT_VSX_2): Likewise.
11584 (VSEEDP): Add scalar extract exponent support.
11585 (VSEESP): Add scalar extract signature support.
11586 (VSTDCNDP): Add scalar test negative support.
11587 (VSTDCNSP): Likewise.
11588 (VSIEDP): Add scalar insert exponent support.
11589 (VSCEDPGT): Add scalar compare exponent greater than support.
11590 (VSCEDPLT): Add scalar compare exponent less than support.
11591 (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
11592 (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
11593 (VSTDCDP): Add scalar test data class support.
11594 (VSTDCSP): Likewise.
11595 (VSEEDP): Add overload support for scalar extract exponent
11596 operation.
11597 (VSESDP): Add overload support for scalar extract signature
11598 operation.
11599 (VSTDCN): Add overload support for scalar test negative
11600 operation.
11601 (VSTDCNDP): Add overload support for scalar test negative
11602 operation.
11603 (VSTDCNSP): Add overload support for scalar test negative
11604 operation.
11605 (VSIEDP): Add overload support for scalar insert exponent
11606 operation.
11607 (VSTDC): Add overload support for scalar test data class
11608 operation.
11609 (VSTDCDP): Add overload support for scalar test data class
11610 operation.
11611 (VSTDCSP): Add overload support for scalar test data class
11612 opreation.
11613 (VSCEDPGT): Add overload support for scalar compare exponent
11614 greater than operation.
11615 (VSCEDPLT): Add overload support for scalar compare exponent
11616 less than operation.
11617 (VSCEDPEQ): Add overload support for scalar compare exponent
11618 test-for-equality operation.
11619 (VSCEDPUO): Add overload support for scalar compare exponent
11620 test-for-unordered operation.
11621 (VEEDP): Add vector extract exponent support.
11622 (VEESP): Likewise.
11623 (VESDP): Add vector extract significand support.
11624 (VESSP): Likewise.
11625 (VIEDP): Add vector insert exponent support.
11626 (VIESP): Likewise.
11627 (VTDCDP): Add vector test data class support.
11628 (VTDCSP): Likewise.
11629 (VES): Add overload support for vector extract significand operation.
11630 (VESDP): Likewise.
11631 (VESSP): Likewise
11632 (VEE): Add overload support for vector extract exponent operation.
11633 (VEEDP): Likewise.
11634 (VEESP): Likewise.
11635 (VTDC): Add overload support for vector test data class operation.
11636 (VTDCDP): Likewise.
11637 (VTDCSP): Likewise.
11638 (VIE): Add overload support for vector insert exponent operation.
11639 (VIEDP): Likewise.
11640 (VIESP): Likewise.
11641 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11642 overloaded binary floating point functions.
11643 (altivec_resolve_overloaded_builtin): Improve error messages to
11644 distinguish between functions not supported in the current
11645 compiler configuration and functions that were invoked with an
11646 invalid parameter combination, and include the built-in function
11647 name in both error messages.
11648 * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
11649 New prototype.
11650 * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
11651 function.
11652 (rs6000_expand_binop_builtin): Add check to enforce that argument
11653 2 of the test data class operations is a 7-bit unsigned literal.
11654 (rs6000_invalid_builtin): Add code to issue an error message if a
11655 built-in function that requires the power9_vector and -m32
11656 command-line options is compiled without these options.
11657 * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
11658 (UNSPEC_VSX_SXSIGDP): New value.
11659 (UNSPEC_VSX_SXSIGPDP): New value.
11660 (UNSPEC_VSX_SIEXPDP): New value.
11661 (UNSPEC_VSX_SCMPEXPDP): New value.
11662 (UNSPEC_VSX_STSTDC): New value.
11663 (UNSPEC_VSX_VXEXP): New value.
11664 (UNSPEC_VSX_VXSIG): New value.
11665 (UNSPEC_VSX_VIEXP): New value.
11666 (UNSPEC_VSX_VTSTDC): New value.
11667 (xsxexpdp): New insn for scalar extract exponent.
11668 (xsxsigdp): New insn for scalar extract significand.
11669 (xsiexpdp): New insn for scalar insert exponent.
11670 (xscmpexpdp_<code>): New expansion for scalar compare exponents.
11671 (*xscmpexpdp): New insn for scalar compare exponents.
11672 (xststdc<Fvsx): New expansion for both single- and
11673 double-precision scalar test data class operations.
11674 (xststdcneg<Fvsx>): New expansion for both single- and
11675 double-precision scalar test for negative value operations.
11676 (*xststdc<Fvsx>): New insn for scalar test data class
11677 operation.
11678 (xvxexp<VSs>): New insn for single- and double-precision
11679 vector extract exponent operation.
11680 (xvxsig<VSs>): New insn for single- and double-precision
11681 vector extract significand operation.
11682 (xviexp<VSs>): New insn for single- and double-precision
11683 vector insert exponent operation.
11684 (xvtstdc<VSs>): New insn for single- and double-precision
11685 vector test data class operation.
11686 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
11687 built-in functions to represent the Power9 binary floating-point
11688 support instructions.
11689
11690 2016-08-10 bin cheng <bin.cheng@arm.com>
11691
11692 * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
11693
11694 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
11695 Renlin Li <renlin.li@arm.com>
11696 Bin Cheng <bin.cheng@arm.com>
11697
11698 * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
11699 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
11700 gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
11701 (aarch64_vcond_internal<mode><mode>): Delete pattern.
11702 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
11703 (vcond<v_cmp_result><mode>): Ditto.
11704 (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
11705 (vcondu<mode><mode>): Ditto.
11706 (vcond<v_cmp_mixed><mode>): New pattern.
11707 (vcondu<mode><v_cmp_mixed>): New pattern.
11708 (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
11709 of aarch64_vcond_internal.
11710
11711 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
11712 Renlin Li <renlin.li@arm.com>
11713 Bin Cheng <bin.cheng@arm.com>
11714
11715 * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
11716 (vec_cmp<mode><v_cmp_result>): New pattern.
11717 (vec_cmpu<mode><mode>): New pattern.
11718 (vcond_mask_<mode><v_cmp_result>): New pattern.
11719
11720 2016-08-10 Yuri Rumyantsev <ysrumyan@gmail.com>
11721
11722 PR tree-optimization/71734
11723 * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
11724 REF_LOOP, invoke ref_indep_loop_p_1.
11725 (outermost_indep_loop): Pass LOOP argumnet where REF was defined
11726 to ref_indep_loop_p.
11727 (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
11728 combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
11729 is inside LOOP, do not cache dpendence value for loops with
11730 non-zero SAFELEN.
11731 (ref_indep_loop_p_2): Delete function.
11732 (can_sm_ref_p): Pass LOOP as additional argument to
11733 ref_indep_loop_p.
11734
11735 2016-08-10 Michael Meissner <meissner@linux.vnet.ibm.com>
11736
11737 PR target/72853
11738 * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
11739 being an offsettable address.
11740
11741 2016-08-10 Martin Liska <mliska@suse.cz>
11742
11743 PR gcov-profile/58306
11744 * tree-profile.c (gimple_init_edge_profiler): Create conditionally
11745 atomic variants of profile update functions.
11746
11747 2016-08-10 Martin Liska <mliska@suse.cz>
11748
11749 Cherry picked (and modified) from google-4_7 branch
11750 2012-12-26 Rong Xu <xur@google.com>
11751 * common.opt (fprofile-update): Add new flag.
11752 * coretypes.h: Define enum profile_update.
11753 * doc/invoke.texi: Document -fprofile-update.
11754 * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
11755 GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
11756 * tree-profile.c (gimple_init_edge_profiler): Generate
11757 also atomic profiler update.
11758 (gimple_gen_edge_profiler): Likewise.
11759
11760 2016-08-10 David Malcolm <dmalcolm@redhat.com>
11761
11762 * toplev.c (finalize): Set aux_info_file, asm_out_file, and
11763 stack_usage_file to NULL after fclose calls.
11764
11765 2016-08-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11766
11767 PR target/71873
11768 * reload.c (push_reload): Compute subreg_in_class for
11769 subregs of constants and plus expressions. Remove special
11770 handling of SYMBOL_REFs.
11771
11772 2016-08-10 Alan Modra <amodra@gmail.com>
11773
11774 PR target/71680
11775 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
11776 SImode for TARGET_E500_DOUBLE when given SImode.
11777
11778 2016-08-09 David Wohlferd <dw@LimeGreenSocks.com>
11779
11780 * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
11781 unused variable __O.
11782
11783 2016-08-09 Martin Liska <mliska@suse.cz>
11784
11785 * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
11786 _gcov_reset to __gcov_reset.
11787 * doc/gcov-tool.texi: Fix typo.
11788
11789 2016-08-09 Martin Liska <mliska@suse.cz>
11790
11791 * value-prof.c (gimple_divmod_values_to_profile): Do not
11792 instrument MOD histogram if a value is not a SSA name.
11793
11794 2016-08-09 Martin Liska <mliska@suse.cz>
11795
11796 * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
11797 values.
11798
11799 2016-08-09 Renlin Li <renlin.li@arm.com>
11800
11801 PR middle-end/64971
11802 * calls.c (prepare_call_address): Convert funexp to Pmode when
11803 necessary.
11804 * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
11805 (sibcall_value): Likewise.
11806
11807 2016-08-09 Marek Polacek <polacek@redhat.com>
11808
11809 PR c/7652
11810 * cselib.c (cselib_expand_value_rtx_1): Add return.
11811 * gengtype.c (dbgprint_count_type_at): Likewise.
11812 * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
11813 * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
11814
11815 2016-08-09 Martin Jambor <mjambor@suse.cz>
11816
11817 PR ipa/71981
11818 * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
11819 if instance is a MEM_REF.
11820
11821 2016-08-09 Uros Bizjak <ubizjak@gmail.com>
11822
11823 PR target/72843
11824 * config/i386/i386.md (*movtf_internal): Use
11825 lra_in_progress || reload_completed instead of !can_create_pseudo_p
11826 in the insn constraint.
11827 (*movxf_internal): Ditto.
11828 (*movdf_internal): Ditto.
11829 (*movsf_internal): Ditto.
11830
11831 2016-08-09 Bin Cheng <bin.cheng@arm.com>
11832
11833 PR tree-optimization/72772
11834 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
11835 for expanded base.
11836
11837 2016-08-09 Bin Cheng <bin.cheng@arm.com>
11838
11839 PR tree-optimization/72772
11840 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
11841 parameter STOP.
11842 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
11843 parameter STOP and update calls. Move expand_simple_operations
11844 function call from here...
11845 (simplify_using_initial_conditions): ...to here. Delete parameter
11846 STOP.
11847 (tree_simplify_using_condition): Delete parameter STOP.
11848 * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
11849 simplify_using_initial_conditions.
11850
11851 2016-08-09 Matthew Fortune <matthew.fortune@imgtec.com>
11852
11853 PR c/65345
11854 * config/mips/mips.c (mips_atomic_assign_expand_fenv):
11855 Use create_tmp_var_raw instead of create_tmp_var.
11856
11857 2016-08-09 Richard Biener <rguenther@suse.de>
11858
11859 * tree-ssa-threadbackward.c (profitable_jump_thread_path):
11860 Treat same SSA names related.
11861
11862 2016-08-09 Jakub Jelinek <jakub@redhat.com>
11863
11864 PR tree-optimization/72824
11865 * tree-loop-distribution.c (const_with_all_bytes_same): Verify
11866 real_zerop is not negative.
11867
11868 2016-08-09 Richard Biener <rguenther@suse.de>
11869
11870 PR tree-optimization/71802
11871 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
11872 all merge opportunities with the predecessor.
11873
11874 2016-08-09 Richard Biener <rguenther@suse.de>
11875
11876 PR ipa/68273
11877 * ipa-prop.c (ipa_modify_formal_parameters): Build
11878 parameter types with natural alignment also for the
11879 over-aligned case.
11880
11881 2016-08-08 Andi Kleen <ak@linux.intel.com>
11882
11883 * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
11884
11885 2016-08-08 David Malcolm <dmalcolm@redhat.com>
11886
11887 PR c/64955
11888 * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
11889 do-nothing langhook.
11890 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
11891 * langhooks.h (struct lang_hooks): Add run_lang_selftests.
11892 * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
11893 (selftest::run_tests): Call lang_hooks.run_lang_selftests.
11894
11895 2016-08-08 David Malcolm <dmalcolm@redhat.com>
11896
11897 PR bootstrap/72844
11898 * input.c: Ensure that HAVE_ICONV is defined.
11899
11900 2016-08-08 Jakub Jelinek <jakub@redhat.com>
11901
11902 PR middle-end/72781
11903 * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
11904 private vars for lastprivate and for linear iterator.
11905
11906 PR middle-end/68762
11907 * omp-simd-clone.c: Include varasm.h.
11908 (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
11909 DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
11910 DECL_ONE_ONLY call make_decl_one_only. Fix up spelling in comment and
11911 update function name.
11912
11913 2016-07-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
11914
11915 * config/avr/driver-avr.c (specfiles_doc_url): Remove.
11916 (avr_diagnose_devicespecs_error): Remove.
11917 (avr_devicespecs_file): Remove composing absolute path for specfile
11918 and its verbose info. Remove conditions to check specs-file,
11919
11920 2016-08-08 Jakub Jelinek <jakub@redhat.com>
11921
11922 PR rtl-optimization/72821
11923 * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
11924 just return false for them.
11925
11926 2016-08-08 Alan Modra <amodra@gmail.com>
11927
11928 PR target/72771
11929 * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
11930 toc refs created during reload. Update function comment.
11931
11932 2016-08-08 Alan Modra <amodra@gmail.com>
11933
11934 PR target/72802
11935 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
11936 alternatives. Put loads first, then stores, and reg/reg moves
11937 within same class later. Delete attr length.
11938
11939 2016-08-08 Alan Modra <amodra@gmail.com>
11940
11941 PR target/72802
11942 * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
11943 (mem_operand_ds_form): New predicate.
11944 * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
11945 * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
11946 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
11947 * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
11948 (extendsfdf2_fpr): Replace o constraint with wY.
11949
11950 2016-08-07 Jan Hubicka <hubicka@ucw.cz>
11951
11952 * tree-ssa-threadbackward.c: Include tree-inline.h
11953 (profitable_jump_thread_path): Use estimate_num_insns to estimate
11954 size of copied block; for cold paths reduce duplication.
11955 (find_jump_threads_backwards): Remove redundant tests.
11956 (pass_thread_jumps::gate): Enable for -Os.
11957
11958 2016-08-07 Jakub Jelinek <jakub@redhat.com>
11959
11960 PR c/72816
11961 * stor-layout.c (layout_decl): Fix up formatting.
11962 (relayout_decl): Allow DECL to be FIELD_DECL.
11963
11964 2016-08-07 Alan Modra <amodra@gmail.com>
11965
11966 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
11967
11968 2016-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
11969
11970 * data-streamer-in.c (streamer_read_wide_int): New.
11971 (streamer_read_widest_int): Renamed function.
11972 * data-streamer-out.c (streamer_write_wide_int): New
11973 (streamer_write_widest_int): Renamed function.
11974 * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
11975 data-stream-in.c.
11976 (input_cfg): Call renamed function.
11977 * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
11978 data-stream-out.c.
11979 (output_cfg): Call renamed function.
11980 * data-streamer.h: Add declarations.
11981
11982 2016-08-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11983
11984 * tree-ssa-ccp.c (extend_mask): New param sgn.
11985 Remove ORing with wi::mask.
11986 (get_default_value): Adjust call to extend_mask to pass sign.
11987 (evaluate_stmt): Likewise.
11988
11989 2016-08-06 Jakub Jelinek <jakub@redhat.com>
11990
11991 * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
11992 INT64_MAX.
11993
11994 2016-08-06 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11995
11996 * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
11997 transform if operand's type is pointer to function or method.
11998
11999 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
12000
12001 PR tree-optimization/18046
12002 * tree-ssa-threadedge.c: Include cfganal.h.
12003 (simplify_control_statement_condition): If simplifying a
12004 GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
12005 with the dominating ASSERT_EXPR before handing it off to VRP.
12006 Mention that a CASE_LABEL_EXPR may be returned.
12007 (thread_around_empty_blocks): Adjust to handle
12008 simplify_control_statement_condition() returning a
12009 CASE_LABEL_EXPR.
12010 (thread_through_normal_block): Likewise.
12011 * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
12012 a switch statement by trying to determine which case label
12013 will be taken.
12014
12015 2016-08-05 Vladimir Makarov <vmakarov@redhat.com>
12016
12017 PR rtl-optimization/69847
12018 * lra-constraints.c (process_invariant_for_inheritance): Save
12019 pattern instead of src.
12020 (remove_inheritance_pseudos): Use the pattern. Add assert.
12021
12022 2016-08-05 David Malcolm <dmalcolm@redhat.com>
12023
12024 * input.c (string_concat::string_concat): New constructor.
12025 (string_concat_db::string_concat_db): New constructor.
12026 (string_concat_db::record_string_concatenation): New method.
12027 (string_concat_db::get_string_concatenation): New method.
12028 (string_concat_db::get_key_loc): New method.
12029 (class auto_cpp_string_vec): New class.
12030 (get_substring_ranges_for_loc): New function.
12031 (get_source_range_for_substring): New function.
12032 (get_num_source_ranges_for_substring): New function.
12033 (class selftest::lexer_test_options): New class.
12034 (struct selftest::lexer_test): New struct.
12035 (class selftest::ebcdic_execution_charset): New class.
12036 (selftest::ebcdic_execution_charset::s_singleton): New variable.
12037 (selftest::lexer_test::lexer_test): New constructor.
12038 (selftest::lexer_test::~lexer_test): New destructor.
12039 (selftest::lexer_test::get_token): New method.
12040 (selftest::assert_char_at_range): New function.
12041 (ASSERT_CHAR_AT_RANGE): New macro.
12042 (selftest::assert_num_substring_ranges): New function.
12043 (ASSERT_NUM_SUBSTRING_RANGES): New macro.
12044 (selftest::assert_has_no_substring_ranges): New function.
12045 (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
12046 (selftest::test_lexer_string_locations_simple): New function.
12047 (selftest::test_lexer_string_locations_ebcdic): New function.
12048 (selftest::test_lexer_string_locations_hex): New function.
12049 (selftest::test_lexer_string_locations_oct): New function.
12050 (selftest::test_lexer_string_locations_letter_escape_1): New function.
12051 (selftest::test_lexer_string_locations_letter_escape_2): New function.
12052 (selftest::test_lexer_string_locations_ucn4): New function.
12053 (selftest::test_lexer_string_locations_ucn8): New function.
12054 (selftest::uint32_from_big_endian): New function.
12055 (selftest::test_lexer_string_locations_wide_string): New function.
12056 (selftest::uint16_from_big_endian): New function.
12057 (selftest::test_lexer_string_locations_string16): New function.
12058 (selftest::test_lexer_string_locations_string32): New function.
12059 (selftest::test_lexer_string_locations_u8): New function.
12060 (selftest::test_lexer_string_locations_utf8_source): New function.
12061 (selftest::test_lexer_string_locations_concatenation_1): New
12062 function.
12063 (selftest::test_lexer_string_locations_concatenation_2): New
12064 function.
12065 (selftest::test_lexer_string_locations_concatenation_3): New
12066 function.
12067 (selftest::test_lexer_string_locations_macro): New function.
12068 (selftest::test_lexer_string_locations_stringified_macro_argument):
12069 New function.
12070 (selftest::test_lexer_string_locations_non_string): New function.
12071 (selftest::test_lexer_string_locations_long_line): New function.
12072 (selftest::test_lexer_char_constants): New function.
12073 (selftest::input_c_tests): Call the new test functions once per
12074 case within the line_table test matrix.
12075 * input.h (struct string_concat): New struct.
12076 (struct location_hash): New struct.
12077 (class string_concat_db): New class.
12078 * substring-locations.h: New header.
12079
12080 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
12081
12082 PR tree-optimization/72810
12083 * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
12084 the type of the case labels when truncating.
12085
12086 2016-08-05 James Greenhalgh <james.greenhalgh@arm.com>
12087
12088 PR Target/72819
12089 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
12090 (aarch64_fp16_ptr_type_node): Likewise.
12091 * config/aarch64/aarch64-simd-builtins.c
12092 (aarch64_fp16_ptr_type_node): Define.
12093 (aarch64_init_fp16_types): New, refactored out of...
12094 (aarch64_init_builtins): ...here, update to call
12095 aarch64_init_fp16_types.
12096 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
12097 HFmode.
12098 (aapcs_vfp_sub_candidate): Likewise.
12099
12100 2016-08-05 Martin Liska <mliska@suse.cz>
12101 Joshua Cranmer <Pidgeot18@gmail.com>
12102
12103 * gcov.c (line_t::has_block): New function.
12104 (enum loop_type): New enum.
12105 (handle_cycle): New function.
12106 (unblock): Likewise.
12107 (circuit): Likewise.
12108 (get_cycles_count): Likewise.
12109 (accumulate_line_counts): Use new loop detection algorithm.
12110
12111 2016-08-05 Martin Liska <mliska@suse.cz>
12112
12113 * gcov.c (output_intermediate_file): Rename
12114 function_info::line_next to next_file_fn.
12115 (process_file): Likewise.
12116 (read_graph_file): Likewise.
12117 (accumulate_line_counts): Likewise.
12118 (output_lines): Likewise.
12119
12120 2016-08-05 Richard Biener <rguenther@suse.de>
12121
12122 * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
12123 restriction on threading to a loop header.
12124
12125 2016-08-05 Richard Biener <rguenther@suse.de>
12126
12127 * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
12128 * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
12129 adjust loop info accordingly.
12130
12131 2016-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
12132
12133 * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
12134 before folding call to __builtin_constant_p with parameters to false.
12135
12136 2016-08-05 Alan Modra <amodra@gmail.com>
12137
12138 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
12139 code accidentally committed 2016-05-02 providing class when given
12140 NO_REGS.
12141
12142 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
12143
12144 * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
12145 the case label ranges that partially overlap with OP's value
12146 range.
12147
12148 2016-08-04 Uros Bizjak <ubizjak@gmail.com>
12149
12150 PR target/72805
12151 * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
12152 Cast builtin function result to __mmask16 instead of __mmask8.
12153 (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
12154 (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
12155 (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
12156
12157 2016-08-04 David Malcolm <dmalcolm@redhat.com>
12158
12159 * selftest.h (ASSERT_TRUE): Reimplement in terms of...
12160 (ASSERT_TRUE_AT): New macro.
12161 (ASSERT_FALSE): Reimplement in terms of...
12162 (ASSERT_FALSE_AT): New macro.
12163 (ASSERT_STREQ_AT): Fix typo in comment.
12164
12165 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
12166
12167 * gimple.c (preprocess_case_label_vec_for_gimple): When the case
12168 labels are exhaustive, designate the label with the widest
12169 range to be the default label.
12170
12171 2016-08-04 Andrew Pinski <apinski@cavium.com>
12172
12173 * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
12174 (thunderx_tunings): Use thunderx_vector_cost instead of
12175 generic_vector_cost.
12176
12177 2016-08-04 Martin Liska <mliska@suse.cz>
12178
12179 * gcov.c (main): Fix GNU coding style.
12180 (output_intermediate_file): Likewise.
12181 (process_file): Likewise.
12182 (generate_results): Likewise.
12183 (release_structures): Likewise.
12184 (create_file_names): Likewise.
12185 (find_source): Likewise.
12186 (read_graph_file): Likewise.
12187 (find_exception_blocks): Likewise.
12188 (canonicalize_name): Likewise.
12189 (make_gcov_file_name): Likewise.
12190 (mangle_name): Likewise.
12191 (accumulate_line_counts): Likewise.
12192 (output_branch_count): Likewise.
12193 (read_line): Likewise.
12194
12195 2016-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
12196
12197 PR rtl-optimization/71779
12198 * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
12199 if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
12200 or if it was truncated.
12201
12202 PR rtl-optimization/70903
12203 * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
12204
12205 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
12206
12207 * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
12208 accessing SSA_NAME_PTR_INFO.
12209
12210 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
12211
12212 PR 70677
12213 * common/config/avr/avr-common.c (avr_option_optimization_table)
12214 [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
12215
12216 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
12217
12218 PR 55181
12219 * config/avr/avr.md: New pattern to work around do_store_flag
12220 generating shift instructions for bit extractions.
12221
12222 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
12223
12224 * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
12225 BITMAP_ALLOC.
12226 (add_equivalence): Likewise.
12227 (get_value_range): Allocate value range with vrp_value_range_pool.
12228 (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
12229 (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
12230
12231 2016-08-03 Peter Bergner <bergner@vnet.ibm.com>
12232
12233 * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
12234 the default for the rs6000 port.
12235
12236 2016-08-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12237
12238 PR middle-end/71876
12239 * calls.c (special_function_p): Remove special handling of
12240 "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
12241 prefix "__x". Recognize "savectx", "vfork" and "getcontext" only
12242 without prefix. Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
12243
12244 2016-08-03 Vladimir Makarov <vmakarov@redhat.com>
12245
12246 PR middle-end/72778
12247 * lra-spills.c (regno_in_use_p): Check bb and regno modification.
12248 Don't stop on regular insns.
12249
12250 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
12251
12252 * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
12253 size to DImode boundary.
12254 (nvptx_propagate): Likewise.
12255
12256 2016-08-03 Alan Modra <amodra@gmail.com>
12257
12258 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
12259 float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
12260 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
12261 from -mefficient-unaligned-vector. Note that this affects fp too.
12262
12263 2016-08-03 Alan Modra <amodra@gmail.com>
12264
12265 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
12266 cost more.
12267
12268 2016-08-03 Alan Modra <amodra@gmail.com>
12269
12270 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
12271 to a reg. Localize vars.
12272
12273 2016-08-03 Alan Modra <amodra@gmail.com>
12274
12275 * config/rs6000/rs6000.opt: Remove negatives from help strings
12276 and comments.
12277
12278 2016-08-03 Alan Modra <amodra@gmail.com>
12279
12280 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
12281 Delete duplicated code.
12282
12283 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
12284
12285 PR middle-end/72778
12286 * lra-spills.c (regno_in_use_p): New.
12287 (lra_final_code_change): Use it.
12288
12289 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
12290
12291 PR rtl-optimization/69847
12292 * lra-int.h (struct lra-reg): Use restore_rtx instead of
12293 restore_regno.
12294 (lra_rtx_hash): New.
12295 * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
12296 of restore_regno.
12297 (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
12298 * lra-remat.c (rtx_hash): Rename and Move to lra.c.
12299 * lra-spills.c (lra_final_code_change): Don't delete insn when the
12300 next insn is USE with the same reg as the current insn source.
12301 * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
12302 of restore_regno.
12303 (lra_constraints_init): Call initiate_invariants.
12304 (lra_constraints_finish): Call finish_invariants.
12305 (struct invariant, invariant_t, invariant_ptr_t): New.
12306 (const_invariant_ptr_t, invariants, invariants_pool): New.
12307 (invariant_table, invariant_hash, invariant_eq_p): New.
12308 (insert_invariant, initiate_invariants, finish_invariants): New.
12309 (clear_invariants, invalid_invariant_regs): New.
12310 (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
12311 instead of restore_regno.
12312 (invariant_p, process_invariant_for_inheritance): New.
12313 (inherit_in_ebb): Implement invariant inheritance.
12314 (lra_inheritance): Initialize and finalize invalid_invariant_regs.
12315 (remove_inheritance_pseudos): Implement undoing invariant
12316 inheritance.
12317 (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
12318 instead of restore_regno.
12319 * lra-assigns.c (regno_live_length): New.
12320 (reload_pseudo_compare_func): Use regno_live_length.
12321 (assign_by_spills): Use restore_rtx instead of restore_regno.
12322 (lra_assign): Ditto. Initiate regno_live_length.
12323
12324 2016-02-08 James Greenhalgh <james.greenhalgh@arm.com>
12325
12326 * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
12327 __builtin_aarch64_fmindf.
12328
12329 2016-08-02 Bin Cheng <bin.cheng@arm.com>
12330
12331 PR tree-optimization/34114
12332 * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
12333 information for more control IVs.
12334
12335 2016-08-02 Bin Cheng <bin.cheng@arm.com>
12336
12337 PR tree-optimization/34114
12338 * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
12339 PLUS_EXPR case. Handle SSA_NAME case.
12340
12341 2016-08-02 Tamar Christina <tamar.christina@arm.com>
12342
12343 * config/aarch64/aarch64-simd-builtins.def
12344 (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
12345 (__builtin_aarch64_fmaxdf): Likewise.
12346 (__builtin_aarch64_smin_nandf): Likewise.
12347 (__builtin_aarch64_smax_nandf): Likewise.
12348 * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
12349 * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
12350 (<fmaxmin><mode>3): ...this.
12351 * config/aarch64/arm_neon.h (vmaxnm_f64): New.
12352 (vminnm_f64): Likewise.
12353 (vmin_f64): Likewise.
12354 (vmax_f64): Likewise.
12355 * config/aarch64/iterators.md (FMAXMIN): Merge with...
12356 (FMAXMIN_UNS): ...this.
12357 (fmaxmin): Merged with
12358 (fmaxmin_op): ...this...
12359 (maxmin_uns_op): ...in to this.
12360
12361 2016-08-01 Michael Meissner <meissner@linux.vnet.ibm.com>
12362
12363 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12364 Add support for vec_extract on vector float, vector int, vector
12365 short, and vector char vector types.
12366 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
12367 vector float, vector int, vector short, and vector char
12368 optimizations on 64-bit ISA 2.07 systems for both constant and
12369 variable element numbers.
12370 (rs6000_split_vec_extract_var): Likewise.
12371 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
12372 Altivec registers on ISA 2.07 and above.
12373 (vsx_extract_v4sf): Delete alternative that hard coded element 0,
12374 which never was matched due to the split occuring before register
12375 allocation (and the code would not have worked on little endian
12376 systems if it did match). Allow extracts to go to the Altivec
12377 registers if ISA 2.07 (power8). Change from using "" around the
12378 C++ code to using {}'s.
12379 (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
12380 vec_extracts when the vector is in memory.
12381 (vsx_extract_v4sf_var): New insn to optimize vector float
12382 vec_extracts when the element number is variable on 64-bit ISA
12383 2.07 systems.
12384 (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
12385 for 64-bit ISA 2.07 as well as ISA 3.0.
12386 (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
12387 (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
12388 (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
12389 optimize vector int, vector short, and vector char vec_extracts
12390 when the vector is in memory.
12391 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
12392 optimize vector int, vector short, and vector char vec_extracts
12393 when the element number is variable.
12394
12395 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
12396
12397 PR target/71948
12398 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
12399 does not overlap with other symbol flags.
12400
12401 2016-08-01 Wilco Dijkstra <wdijkstr@arm.com>
12402
12403 * config/aarch64/aarch64.h (aarch64_frame):
12404 Remove padding0 and hardfp_offset. Add locals_offset,
12405 initial_adjust, callee_adjust, callee_offset and final_adjust.
12406 * config/aarch64/aarch64.c (aarch64_layout_frame):
12407 Remove unused padding0 and hardfp_offset initializations.
12408 Choose frame layout and set frame variables accordingly.
12409 Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
12410 (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
12411 (aarch64_pop_regs): Likewise.
12412 (aarch64_expand_prologue): Remove all decision code, just emit
12413 prolog according to frame variables.
12414 (aarch64_expand_epilogue): Remove all decision code, just emit
12415 epilog according to frame variables.
12416 (aarch64_initial_elimination_offset): Use offset to local/arg area.
12417
12418 2015-08-01 H.J. Lu <hongjiu.lu@intel.com>
12419
12420 PR target/72748
12421 * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
12422 fix_debug_reg_uses after changing source register mode to
12423 V1TImode if source register is undefined.
12424
12425 2015-08-01 Alan Hayward <alan.hayward@arm.com>
12426
12427 PR tree-optimization/71818
12428 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
12429 with non invariant evolutions
12430
12431 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
12432
12433 PR target/72767
12434 * config/avr/avr.md (length) [branch]: Correct insn length
12435 attribute for forward branches.
12436
12437 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
12438
12439 * doc/extend.texi (AVR Built-in Functions): Document
12440 __builtin_avr_nops.
12441 * config/avr/builtins.def (NOPS): New.
12442 * config/avr/avr.c (avr_expand_nops): New static function.
12443 (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
12444
12445 2016-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12446
12447 * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
12448 performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
12449 addresses.
12450
12451 2016-08-01 Virendra Pathak <virendra.pathak@broadcom.com>
12452
12453 * config/aarch64/aarch64.c (vulcan_tunings): Update
12454 vulcan L1 cache_line_size.
12455
12456 2016-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
12457
12458 * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
12459 function that takes a vector memory address, a hard register, an
12460 element number and a temporary base register, and recreates an
12461 address that points to the appropriate element within the vector.
12462 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
12463 (rs6000_split_vec_extract_var): Add support for the target of a
12464 vec_extract with variable element number being a scalar memory
12465 location.
12466 (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
12467 swappable.
12468 * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
12469 vsx_extract_<mode>_load insn with a new insn that optimizes
12470 storing either element to a memory location, using scratch
12471 registers to pick apart the vector and reconstruct the address.
12472 (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
12473 (vsx_extract_<mode>_store): Rework alternatives to more correctly
12474 support Altivec registers. Add support for ISA 3.0 Altivec d-form
12475 store instruction.
12476 (vsx_extract_<mode>_var): Add support for extracting a variable
12477 element number from memory.
12478
12479 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
12480
12481 * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
12482 when testing for compares against constants of the form 0xabab.
12483
12484 2016-07-29 Bin Cheng <bin.cheng@arm.com>
12485
12486 PR tree-optimization/57558
12487 * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
12488 function.
12489 (vect_loop_versioning): Support versioning with niter assumptions.
12490 * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
12491 (vect_get_loop_niters): New parameter. Reimplement to support
12492 assumptions in loop niter info.
12493 (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
12494 (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
12495 (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
12496 Support loop versioning for niters.
12497 * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
12498 (vect_free_loop_info_assumptions): New function.
12499 (vectorize_loops): Free loop niter info for loops with flag
12500 LOOP_F_ASSUMPTIONS set if vectorization failed.
12501 * tree-vectorizer.h (struct _loop_vec_info): New field
12502 num_iters_assumptions.
12503 (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
12504 (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
12505 (LOOP_REQUIRES_VERSIONING): New macro.
12506 (vect_free_loop_info_assumptions): New decl.
12507
12508 2016-07-29 Bin Cheng <bin.cheng@arm.com>
12509
12510 * cfgloop.h (struct loop): New field constraints.
12511 (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
12512 (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
12513 functions.
12514 * cfgloop.c (alloc_loop): Initialize new field.
12515 * cfgloopmanip.c (copy_loop_info): Copy constraints.
12516 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
12517 Adjust niter analysis wrto loop constraints.
12518 * doc/loop.texi (@node Number of iterations): Add description for loop
12519 constraints.
12520
12521 2016-07-29 Marek Polacek <polacek@redhat.com>
12522
12523 PR c/7652
12524 * config/i386/i386.c (ix86_expand_args_builtin): Add break.
12525 (ix86_expand_round_builtin): Likewise.
12526
12527 2016-07-29 Segher Boessenkool <segher@kernel.crashing.org>
12528 Georg-Johann Lay <avr@gjlay.de>
12529
12530 PR rtl-optimization/71976
12531 * combine.c (get_last_value): Return 0 if the argument for which
12532 the function is called has a wider mode than the recorded value.
12533
12534 2016-07-29 Marek Polacek <polacek@redhat.com>
12535
12536 PR c/7652
12537 * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
12538 (altivec_expand_st_builtin): Likewise.
12539
12540 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
12541
12542 * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
12543 introduced in r238381.
12544
12545 2016-07-29 Kugan Vivekanandarajah <kuganv@linaro.org>
12546
12547 PR middle-end/68217
12548 * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
12549 & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
12550
12551 2016-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
12552
12553 * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
12554 New declaration.
12555 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12556 Add support for vec_extract of vector double or vector long having
12557 a variable element number on 64-bit ISA 2.07 systems or newer.
12558 * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
12559 Likewise.
12560 (rs6000_split_vec_extract_var): New function to split a
12561 vec_extract built-in function with variable element number.
12562 (rtx_is_swappable_p): Variable vec_extracts and shifts are not
12563 swappable.
12564 * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
12565 (UNSPEC_VSX_EXTRACT): Likewise.
12566 (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
12567 direct move instructions to be generated on 64-bit ISA 2.07
12568 systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
12569 instruction.
12570 (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
12571 arguments for vec_extract variable element.
12572 (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
12573 vec_extract with variable element on V2DFmode and V2DImode
12574 vectors.
12575 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
12576 -mupper-regs-df requirement, since it isn't needed.
12577 (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
12578 do direct moves on 64-bit systems, which allows optimization of
12579 vec_extract on 64-bit ISA 2.07 systems and newer.
12580
12581 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
12582 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
12583
12584 * config/aarch64/aarch64.md
12585 (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
12586 statement and type.
12587 (<optab>qihi2_aarch64): Likewise, and split into two.
12588 (extendqihi2_aarch64): New.
12589 (zero_extendqihi2_aarch64): New.
12590 * config/aarch64/iterators.md (ldrxt): Remove.
12591 * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
12592 uxtb/uxth.
12593
12594 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
12595
12596 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
12597
12598 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
12599
12600 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
12601 (aarch64_push_reg): New function to push 1 or 2 registers.
12602 (aarch64_pop_reg): New function to pop 1 or 2 registers.
12603 (aarch64_expand_prologue): Use aarch64_push_regs.
12604 (aarch64_expand_epilogue): Use aarch64_pop_regs.
12605
12606 2016-07-28 Yuri Rumyantsev <ysrumyan@gmail.com>
12607
12608 PR tree-optimization/71734
12609 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
12610 attribute instead of REF_LOOP and use it.
12611 (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
12612 set it for Loops having non-zero safelen attribute.
12613 (ref_indep_loop_p): Pass zero as initial value for safelen.
12614
12615 2016-07-28 Ilya Enkovich <ilya.enkovich@intel.com>
12616
12617 PR middle-end/72657
12618 PR target/72683
12619 * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
12620 call using chkp_gimple_call_builtin_p.
12621 (chkp_copy_bounds_for_assign): Likewise.
12622
12623 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12624
12625 * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
12626 * config/arm/arm-protos.h (struct tune_params): Likewise.
12627 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
12628 (cortex_a9_sched_adjust_cost): Likewise.
12629 (fa726te_sched_adjust_cost): Likewise.
12630 (arm_adjust_cost): Likewise.
12631 * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
12632 * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
12633 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
12634 * config/i386/i386.c (ix86_adjust_cost): Likewise.
12635 * config/ia64/ia64.c: Likewise.
12636 * config/m68k/m68k.c: Likewise.
12637 * config/mep/mep.c (mep_adjust_cost): Likewise.
12638 * config/microblaze/microblaze.c (microblaze_adjust_cost):
12639 * Likewise.
12640 * config/mips/mips.c (mips_adjust_cost): Likewise.
12641 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
12642 * Likewise.
12643 * config/pa/pa.c (pa_adjust_cost): Likewise.
12644 * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
12645 (rs6000_debug_adjust_cost): Likewise.
12646 * config/sh/sh.c (sh_adjust_cost): Likewise.
12647 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
12648 (hypersparc_adjust_cost): Likewise.
12649 (sparc_adjust_cost): Likewise.
12650 * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
12651 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
12652 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
12653 * Likewise.
12654 * config/visium/visium.c (visium_adjust_cost): Likewise.
12655 * doc/tm.texi: Regenerate.
12656 * haifa-sched.c (dep_cost_1): Adjust.
12657 * target.def: Merge adjust_cost and adjust_cost_2.
12658
12659 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12660
12661 * haifa-sched.c (add_to_speculative_block): Make twins a vector.
12662
12663 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12664
12665 * store-motion.c (struct st_expr): Make pattern_regs a vector.
12666 (extract_mentioned_regs): Append to a vector instead of
12667 returning a rtx_expr_list.
12668 (st_expr_entry): Adjust.
12669 (free_st_expr_entry): Likewise.
12670 (store_ops_ok): Likewise.
12671 (store_killed_in_insn): Likewise.
12672 (find_moveable_store): Likewise.
12673
12674 2016-07-28 Martin Liska <mliska@suse.cz>
12675
12676 PR gcov-profile/68025
12677 * tree-profile.c (tree_profiling): Respect
12678 no_profile_instrument_function attribute.
12679 * doc/extend.texi: Document no_profile_instrument_function
12680 attribute.
12681
12682 2016-07-28 Martin Liska <mliska@suse.cz>
12683
12684 PR rtl-optimization/70944
12685 * combine.c (make_compound_operation):
12686 Do not allow make_compound_operation for vector mode
12687
12688 2016-07-28 Kugan Vivekanandarajah <kuganv@linaro.org>
12689
12690 PR middle-end/71994
12691 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
12692 before calling get_ops.
12693
12694 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
12695
12696 * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
12697 * tree.h (LOG2_BITS_PER_UNIT): ...to here.
12698 (BITS_PER_UNIT_LOG): Remove.
12699 (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
12700 * expr.c (expand_assignment): Likewise.
12701 * stor-layout.c (initialize_sizetypes): Likewise.
12702
12703 2016-07-27 Michael Meissner <meissner@linux.vnet.ibm.com>
12704
12705 * config/rs6000/vector.md (vec_extract<mode>): Change the calling
12706 signature of rs6000_expand_vector_extract so that the element
12707 number is a RTX instead of a constant integer.
12708 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
12709 Likewise.
12710 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
12711 (altivec_expand_vec_ext_builtin): Likewise.
12712 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
12713 * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
12714 MFVSRLD instruction.
12715
12716 2016-07-27 David Malcolm <dmalcolm@redhat.com>
12717
12718 * input.c (get_pure_location): Move here from tree.c.
12719 (make_location): Likewise. Add header comment.
12720 (selftest::test_accessing_ordinary_linemaps): Verify
12721 pure_location_p, make_location, get_location_from_adhoc_loc and
12722 get_range_from_loc.
12723 * input.h (get_pure_location): Move declaration here from tree.h.
12724 (get_finish): Likewise for inline function.
12725 (make_location): Likewise for declaration.
12726 * tree.c (get_pure_location): Move to input.c.
12727 (make_location): Likewise.
12728 * tree.h (get_pure_location): Move declaration to tree.h.
12729 (get_finish): Likewise for inline function.
12730 (make_location): Likewise for declaration.
12731
12732 2016-07-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12733
12734 PR middle-end/71078
12735 * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
12736
12737 2016-07-27 David Malcolm <dmalcolm@redhat.com>
12738
12739 * system.h (STATIC_ASSERT): Use static_assert if building
12740 with C++11 onwards.
12741
12742 2016-07-27 Richard Biener <rguenther@suse.de>
12743
12744 PR tree-optimization/72517
12745 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
12746 Revert change to not compute read-read dependences.
12747
12748 2016-07-27 Richard Biener <rguenther@suse.de>
12749
12750 * predict.c (set_even_probabilities): Make nedges unsigned.
12751
12752 2016-07-27 Martin Liska <mliska@suse.cz>
12753
12754 * predict.c (set_even_probabilities): Handle unlikely edges.
12755 (combine_predictions_for_bb): Likewise.
12756
12757 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
12758
12759 PR target/71869
12760 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
12761 __float128 support when we don't have hardware support, so that
12762 the IEEE built-in functions like isgreater, first call __unordkf3
12763 to make sure neither operand is a NaN, and if both operands are
12764 ordered, do the normal comparison.
12765
12766 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
12767
12768 * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
12769 name.
12770 (extract_code_and_val_from_cond_with_ops): Verify that name is
12771 either cond_op0 or cond_op1.
12772
12773 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
12774
12775 PR tree-optimization/18046
12776 * genmodes.c (emit_mode_size_inline): Emit an assert that
12777 verifies that mode is a valid array index.
12778 (emit_mode_nuinits_inline): Likewise.
12779 (emit_mode_inner_inline): Likewise.
12780 (emit_mode_unit_size_inline): Likewise.
12781 (emit_mode_unit_precision_inline): Likewise.
12782 * tree-vrp.c: Include params.h.
12783 (find_switch_asserts): Register edge assertions for the default
12784 label which correspond to the anti-ranges of each case label.
12785 * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
12786 * doc/invoke.texi: Document it.
12787
12788 2016-07-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12789
12790 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
12791 and unnecessary call to gimple_bb.
12792
12793 2016-07-26 Richard Biener <rguenther@suse.de>
12794
12795 PR rtl-optimization/71984
12796 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
12797 for VOIDmode.
12798
12799 2016-07-26 Richard Biener <rguenther@suse.de>
12800
12801 PR middle-end/72517
12802 * expmed.c (extract_bit_field_1): Constrain the vector mode
12803 with element size matching the extraction mode size when
12804 choosing a better vector mode to do the extraction from.
12805
12806 2016-07-26 Richard Biener <rguenther@suse.de>
12807 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12808
12809 PR middle-end/70920
12810 * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
12811 pattern.
12812
12813 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12814
12815 * tree-ssa-structalias.c (struct scc_info): Change types of
12816 members to auto_sbitmap and auto_vec.
12817 (scc_info::scc_info): New constructor.
12818 (scc_info::~scc_info): New destructor.
12819 (init_scc_info): Remove.
12820 (free_scc_info): Remove.
12821 (find_indirect_cycles): Adjust.
12822 (perform_var_substitution): Likewise.
12823 (free_var_substitution_info): Likewise.
12824
12825 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12826
12827 * tree-outof-ssa.c (struct elim_graph): Change type of members
12828 to auto_vec and auto_sbitmap.
12829 (elim_graph::elim_graph): New constructor.
12830 (delete_elim_graph): Remove.
12831 (expand_phi_nodes): Adjust.
12832
12833 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12834
12835 * tree-outof-ssa.c (struct elim_graph): Remove typedef.
12836 (new_elim_graph): Adjust.
12837 (clear_elim_graph): Likewise.
12838 (delete_elim_graph): Likewise.
12839 (elim_graph_size): Likewise.
12840 (elim_graph_add_node): Likewise.
12841 (elim_graph_add_edge): Likewise.
12842 (elim_graph_remove_succ_edge): Likewise.
12843 (eliminate_name): Likewise.
12844 (eliminate_build): Likewise.
12845 (elim_forward): Likewise.
12846 (elim_unvisited_predecessor): Likewise.
12847 (elim_backward): Likewise.
12848 (elim_create): Likewise.
12849 (eliminate_phi): Likewise.
12850 (expand_phi_nodes): Likewise.
12851
12852 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12853
12854 * bt-load.c (compute_out): Use auto_sbitmap class.
12855 (link_btr_uses): Likewise.
12856 * cfganal.c (mark_dfs_back_edges): Likewise.
12857 (post_order_compute): Likewise.
12858 (inverted_post_order_compute): Likewise.
12859 (pre_and_rev_post_order_compute_fn): Likewise.
12860 (single_pred_before_succ_order): Likewise.
12861 * cfgexpand.c (pass_expand::execute): Likewise.
12862 * cfgloop.c (verify_loop_structure): Likewise.
12863 * cfgloopmanip.c (fix_bb_placements): Likewise.
12864 (remove_path): Likewise.
12865 (update_dominators_in_loop): Likewise.
12866 * cfgrtl.c (break_superblocks): Likewise.
12867 * ddg.c (check_sccs): Likewise.
12868 (create_ddg_all_sccs): Likewise.
12869 * df-core.c (df_worklist_dataflow): Likewise.
12870 * dse.c (dse_step3): Likewise.
12871 * except.c (eh_region_outermost): Likewise.
12872 * function.c (thread_prologue_and_epilogue_insns): Likewise.
12873 * gcse.c (prune_expressions): Likewise.
12874 (prune_insertions_deletions): Likewise.
12875 * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
12876 * graph.c (draw_cfg_nodes_no_loops): Likewise.
12877 * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
12878 * lcm.c (compute_earliest): Likewise.
12879 (compute_farthest): Likewise.
12880 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
12881 (unroll_loop_runtime_iterations): Likewise.
12882 (unroll_loop_stupid): Likewise.
12883 * lower-subreg.c (decompose_multiword_subregs): Likewise.
12884 * lra-lives.c: Likewise.
12885 * lra.c (lra): Likewise.
12886 * modulo-sched.c (schedule_reg_moves): Likewise.
12887 (optimize_sc): Likewise.
12888 (get_sched_window): Likewise.
12889 (sms_schedule_by_order): Likewise.
12890 (check_nodes_order): Likewise.
12891 (order_nodes_of_sccs): Likewise.
12892 (order_nodes_in_scc): Likewise.
12893 * recog.c (split_all_insns): Likewise.
12894 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
12895 * reload1.c (reload): Likewise.
12896 * sched-rgn.c (haifa_find_rgns): Likewise.
12897 (split_edges): Likewise.
12898 (compute_trg_info): Likewise.
12899 * sel-sched.c (init_seqno): Likewise.
12900 * store-motion.c (remove_reachable_equiv_notes): Likewise.
12901 * tree-into-ssa.c (update_ssa): Likewise.
12902 * tree-ssa-live.c (live_worklist): Likewise.
12903 * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
12904 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
12905 * Likewise.
12906 (try_peel_loop): Likewise.
12907 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
12908 * Likewise.
12909 * tree-ssa-pre.c (compute_antic): Likewise.
12910 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
12911 * tree-stdarg.c (reachable_at_most_once): Likewise.
12912 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
12913 * var-tracking.c (vt_find_locations): Likewise.
12914
12915 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12916
12917 * sbitmap.h (auto_sbitmap): New class.
12918
12919 2016-07-26 Alan Modra <amodra@gmail.com>
12920
12921 PR target/72103
12922 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
12923 sri->t_icode.
12924
12925 2016-07-25 David Malcolm <dmalcolm@redhat.com>
12926
12927 * input.c (selftest::temp_source_file::temp_source_file): Fix
12928 missing "%s" in fprintf.
12929
12930 2016-07-25 John David Anglin <danglin@gcc.gnu.org>
12931
12932 PR middle-end/71732
12933 * cselib.c (cselib_process_insn): Invalidate argument slots for
12934 const/pure calls.
12935
12936 2016-07-25 Jiong Wang <jiong.wang@arm.com>
12937
12938 * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
12939 vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
12940 vmulxh_lane_f16, vmulxh_laneq_f16): New.
12941
12942 2016-07-25 Jiong Wang <jiong.wang@arm.com>
12943
12944 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
12945 * config/aarch64/aarch64.md (fma, fnma): Support HF.
12946 * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
12947
12948 2016-07-25 Jiong Wang <jiong.wang@arm.com>
12949
12950 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
12951 * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
12952 New.
12953 (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
12954 (add<mode>3): Likewise.
12955 (sub<mode>3): Likewise.
12956 (mul<mode>3): Likewise.
12957 (div<mode>3): Likewise.
12958 (*div<mode>3): Likewise.
12959 (<fmaxmin><mode>3): Extend to HF.
12960 * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
12961 (fabd<mode>3): Likewise.
12962 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
12963 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
12964 (aarch64_fmulx<mode>): Likewise.
12965 (aarch64_fac<optab><mode>): Likewise.
12966 (aarch64_frecps<mode>): Likewise.
12967 (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
12968 (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
12969 * config/aarch64/iterators.md (VHSDF_SDF): Delete.
12970 (VSDQ_HSDI): Support HI.
12971 (fcvt_target, FCVT_TARGET): Likewise.
12972 * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
12973 vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
12974 vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
12975 vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
12976 vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
12977 vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
12978 vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
12979 vrsqrtsh_f16): New.
12980
12981 2016-07-25 Jiong Wang <jiong.wang@arm.com>
12982
12983 * config.gcc (aarch64*-*-*): Install arm_fp16.h.
12984 * config/aarch64/aarch64-builtins.c (hi_UP): New.
12985 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
12986 * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
12987 mode.
12988 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
12989 (aarch64_cm<optab><mode>): Likewise.
12990 * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
12991 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
12992 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
12993 (sqrt<mode>2): Likewise.
12994 (*sqrt<mode>2): Likewise.
12995 (abs<mode>2): Likewise.
12996 (<optab><mode>hf2): New pattern for HF mode.
12997 (<optab>hihf2): Likewise.
12998 * config/aarch64/arm_neon.h: Include arm_fp16.h.
12999 * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
13000 (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
13001 Support HF mode.
13002 * config/aarch64/arm_fp16.h: New file.
13003 (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
13004 vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
13005 vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
13006 vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
13007 vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
13008 vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
13009 vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
13010 vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
13011 vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
13012 vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
13013 vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
13014 vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
13015 vsqrth_f16): New.
13016
13017 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13018
13019 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
13020 reduc_smin_scal_): Use VDQIF_F16.
13021 (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
13022 * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
13023 Use VHSDF.
13024 (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
13025 * config/aarch64/iterators.md (VDQIF_F16): New.
13026 (vp): Support HF modes.
13027 * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
13028 vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
13029
13030 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13031
13032 * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
13033 "*aarch64_mulx_elt_from_dup<mode>".
13034 (*aarch64_mul3_elt<mode>): Update schedule type.
13035 (*aarch64_mul3_elt_from_dup<mode>): Likewise.
13036 (*aarch64_fma4_elt_from_dup<mode>): Likewise.
13037 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
13038 * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
13039 (f, fp): Support HF modes.
13040 * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
13041 vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
13042 vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
13043 vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
13044 vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
13045 vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
13046
13047 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13048
13049 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
13050 * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
13051 modes.
13052 * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
13053 vfmsq_f16): New.
13054
13055 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13056
13057 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
13058 * config/aarch64/aarch64-simd.md
13059 (aarch64_rsqrts<mode>): Extend to HF modes.
13060 (fabd<mode>3): Likewise.
13061 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
13062 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
13063 (aarch64_<maxmin_uns>p<mode>): Likewise.
13064 (<su><maxmin><mode>3): Likewise.
13065 (<maxmin_uns><mode>3): Likewise.
13066 (<fmaxmin><mode>3): Likewise.
13067 (aarch64_faddp<mode>): Likewise.
13068 (aarch64_fmulx<mode>): Likewise.
13069 (aarch64_frecps<mode>): Likewise.
13070 (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
13071 (add<mode>3): Extend to HF modes.
13072 (sub<mode>3): Likewise.
13073 (mul<mode>3): Likewise.
13074 (div<mode>3): Likewise.
13075 (*div<mode>3): Likewise.
13076 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
13077 HF, V4HF and V8HF.
13078 * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
13079 * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
13080 vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
13081 vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
13082 vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
13083 vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
13084 vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
13085 vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
13086 vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
13087 vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
13088 vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
13089 vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
13090 vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
13091 vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
13092
13093 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13094
13095 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
13096 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
13097 * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
13098 (neg<mode>2): Likewise.
13099 (abs<mode>2): Likewise.
13100 (<frint_pattern><mode>2): Likewise.
13101 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
13102 (<optab><VDQF:mode><fcvt_target>2): Likewise.
13103 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
13104 (ftrunc<VDQF:mode>2): Likewise.
13105 (<optab><fcvt_target><VDQF:mode>2): Likewise.
13106 (sqrt<mode>2): Likewise.
13107 (*sqrt<mode>2): Likewise.
13108 (aarch64_frecpe<mode>): Likewise.
13109 (aarch64_cm<optab><mode>): Likewise.
13110 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
13111 HF, V4HF and V8HF.
13112 * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
13113 (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
13114 (stype): New.
13115 * config/aarch64/arm_neon.h (vdup_n_f16): New.
13116 (vdupq_n_f16): Likewise.
13117 (vld1_dup_f16): Use vdup_n_f16.
13118 (vld1q_dup_f16): Use vdupq_n_f16.
13119 (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
13120 vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
13121 vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
13122 vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
13123 vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
13124 vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
13125 vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
13126 vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
13127 vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
13128 vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
13129 vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
13130 vsqrt_f16, vsqrtq_f16): New.
13131
13132 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13133
13134 * config/aarch64/aarch64-simd.md
13135 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
13136 (aarch64_ext<mode>): Likewise.
13137 (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
13138 * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
13139 aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
13140 and V8HFmode.
13141 * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
13142 float16x8_t.
13143 (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
13144 __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
13145 vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
13146 vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
13147 vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
13148 vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
13149 vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
13150 New.
13151 (vmov_n_f16): Reimplement using vdup_n_f16.
13152 (vmovq_n_f16): Reimplement using vdupq_n_f16..
13153
13154 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13155
13156 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
13157 "frame_related_p". Generate CFA annotation when it's necessary.
13158 (aarch64_expand_prologue): Use aarch64_add_constant.
13159 (aarch64_expand_epilogue): Likewise.
13160 (aarch64_output_mi_thunk): Pass "false" when calling
13161 aarch64_add_constant.
13162
13163 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13164
13165 * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
13166 sequences.
13167
13168 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13169
13170 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
13171 Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
13172 (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
13173 (aarch64_build_constant): Delete.
13174
13175 2016-07-25 Alexander Monakov <amonakov@ispras.ru>
13176
13177 Revert
13178 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
13179
13180 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
13181 flag_toplevel_reorder.
13182
13183 2016-07-25 Richard Biener <rguenther@suse.de>
13184
13185 * cgraph.c (cgraph_node::verify_node): Compare against builtin
13186 by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
13187 * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
13188 * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
13189 (streamer_get_builtin_tree): Likewise.
13190 (streamer_write_builtin): Likewise.
13191 * lto-streamer.h (LTO_builtin_decl): Remove.
13192 * lto-streamer-in.c (lto_read_tree_1): Remove assert.
13193 (lto_input_scc): Remove LTO_builtin_decl handling.
13194 (lto_input_tree_1): Liekwise.
13195 * lto-streamer-out.c (lto_output_tree_1): Remove special
13196 handling of builtins.
13197 (DFS::DFS): Likewise.
13198 * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
13199 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
13200 assert.
13201 (streamer_write_builtin): Remove.
13202
13203 2016-07-25 Martin Liska <mliska@suse.cz>
13204
13205 * lto-cgraph.c (input_symtab): Don't call get_working_sets
13206 if flag_auto_profile is set to true.
13207
13208 2016-07-25 Martin Liska <mliska@suse.cz>
13209
13210 PR gcov-profile/71868
13211 * cfgloopanal.c (expected_loop_iterations_unbounded): When we
13212 have a function with multiple latches, count them all.
13213
13214 2016-07-25 Martin Liska <mliska@suse.cz>
13215
13216 * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
13217
13218 2016-07-25 Martin Liska <mliska@suse.cz>
13219
13220 PR tree-optimization/71987
13221 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
13222 just for SSA_NAMEs. Fix GNU coding style.
13223
13224 2016-07-25 Martin Liska <mliska@suse.cz>
13225
13226 PR gcov-profile/64874
13227 * gcov-io.h: Update command about file format.
13228 * gcov-iov.c (main): Adapt the numbering scheme.
13229
13230 2016-07-24 Kugan Vivekanandarajah <kuganv@linaro.org>
13231
13232 PR middle-end/66726
13233 * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
13234 whose result is used in PHI.
13235 (final_range_test_p): Likewise.
13236 (maybe_optimize_range_tests): Likewise.
13237
13238 2016-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
13239
13240 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13241 Reformat two multi-line strings.
13242
13243 2016-07-22 Martin Sebor <msebor@redhat.com>
13244
13245 * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
13246
13247 2016-07-22 Martin Sebor <msebor@redhat.com>
13248
13249 PR c/71560
13250 * doc/extend.texi (Compound Literals): Correct and clarify.
13251 (Cast to Union): Same.
13252
13253 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
13254
13255 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
13256 comments to explain why certain error messages make mention of
13257 undocumented options.
13258 (rs6000_invalid_builtin): Change error messages to replace mention
13259 of undocumented options with mention of the -mcpu=power9 option
13260 that enables those undocumented options.
13261 * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
13262 (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
13263 definition of this macro to correct an existing error.
13264 * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
13265 mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
13266 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
13267 descriptions of built-in functions so that they depend on
13268 -mcpu=power9 instead of on the corresponding undocumented flags.
13269 * doc/invoke.texi (Option Summary): Remove all mention of newly
13270 undocumented flags.
13271 (IBM RS/6000 and PowerPC Options): Likewise.
13272 * doc/md.texi (Constraints for Particuliar Machines): Remove all
13273 mention of newly undocumented flags.
13274
13275 2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
13276
13277 * ipa-cp.c (determine_versionability): Do not create constprop clones,
13278 when target_clones attribute is set.
13279
13280 2016-07-22 Bin Cheng <bin.cheng@arm.com>
13281
13282 * common.opt (funsafe-loop-optimizations): Mark ignore.
13283 * doc/invoke.texi (funsafe-loop-optimizations): Remove.
13284 * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
13285 related code.
13286 * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
13287 * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
13288
13289 2016-07-22 Bin Cheng <bin.cheng@arm.com>
13290
13291 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
13292 Parameter.
13293 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
13294 Parameter.
13295 (number_of_iterations_exit): Warn missed loop optimization for
13296 possible infinite loops.
13297
13298 2016-07-22 Segher Boessenkool <segher@kernel.crashing.org>
13299
13300 PR target/71216
13301 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
13302 when to emit a ".machine" pseudo-op.
13303
13304 2016-07-22 Martin Liska <mliska@suse.cz>
13305
13306 PR gcov-profile/69028
13307 PR gcov-profile/62047
13308 * coverage.c (coverage_compute_lineno_checksum): Do not
13309 calculate checksum for fns w/o xloc.file.
13310 (coverage_compute_profile_id): Likewise.
13311
13312 2016-07-22 Georg-Johann Lay <avr@gjlay.de>
13313
13314 * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
13315 (avr_secondary_reload): ...and implementation.
13316 (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
13317 * config/avr/avr.md (reload_in<mode>): Remove insns.
13318 (adjust_len) [lpm]: Remove insn attribute value.
13319 * config/avr/predicates.md (flash_operand): Remove insn predicate.
13320
13321 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
13322
13323 PR middle-end/71876
13324 * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
13325 attribute.
13326 * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
13327 * calls.c (special_function_p): Remove the special handling of the
13328 "__builtin_" prefix.
13329
13330 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
13331
13332 PR middle-end/71876
13333 * calls.c (gimple_maybe_alloca_call_p): New function. Return true
13334 if STMT may be an alloca call.
13335 (gimple_alloca_call_p, alloca_call_p): Return only true for the
13336 builtin alloca call.
13337 * calls.h (gimple_maybe_alloca_call_p): New function.
13338 * tree-inline.c (inline_forbidden_p_stmt): Use
13339 gimple_maybe_alloca_call_p here.
13340
13341 2016-07-21 David Malcolm <dmalcolm@redhat.com>
13342
13343 * spellcheck-tree.c (best_macro_match::best_macro_match):
13344 Explictly specify the template arguments when invoking the base
13345 class constructor, to help older C++ compilers.
13346
13347 2016-07-21 Jakub Jelinek <jakub@redhat.com>
13348
13349 PR sanitizer/71953
13350 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
13351 before builtin_decl_implicit.
13352
13353 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
13354
13355 * optabs.c (emit_condiitonal_move): Short circuit for identical
13356 sources.
13357
13358 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
13359
13360 * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
13361 max_seq_cost. Removed fields: then_cost, else_cost, branch_cost.
13362 (noce_conversion_profitable_p): New.
13363 (noce_try_store_flag_constants): Use it.
13364 (noce_try_addcc): Likewise.
13365 (noce_try_store_flag_mask): Likewise.
13366 (noce_try_cmove): Likewise.
13367 (noce_try_cmove_arith): Likewise.
13368 (bb_valid_for_noce_process_p): Add to the cost parameter rather than
13369 overwriting it.
13370 (noce_convert_multiple_sets): Move cost model to here, from...
13371 (bb_ok_for_noce_convert_multiple_sets) ...here.
13372 (noce_process_if_block): Update calls for above changes.
13373 (noce_find_if_block): Record new noce_if_info parameters.
13374
13375 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
13376
13377 * target.def (max_noce_ifcvt_seq_cost): New.
13378 * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
13379 * doc/tm.texi: Regenerate.
13380 * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
13381 * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
13382 * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
13383 (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
13384 * doc/invoke.texi: Document new params.
13385
13386 2016-07-21 Richard Biener <rguenther@suse.de>
13387
13388 PR tree-optimization/71947
13389 * tree-vrp.c (extract_range_from_assert): Singleton symbolic
13390 ranges have useful limit_vr information.
13391
13392 2016-07-21 Richard Biener <rguenther@suse.de>
13393
13394 * function-tests.c (build_trivial_generic_function): Set
13395 BLOCK_SUPERCONTEXT of DECL_INITIAL.
13396 * omp-low.c (create_omp_child_function): Likewise.
13397 (grid_expand_target_grid_body): Likewise.
13398 * cgraphunit.c (init_lowered_empty_function): Likewise.
13399 (cgraph_node::expand_thunk): Likewise.
13400 * tree-parloops.c (create_loop_fn): Likewise.
13401 * ipa.c (cgraph_build_static_cdtor_1): Likewise.
13402
13403 2016-07-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13404
13405 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
13406 in comment.
13407
13408 2016-07-21 Georg-Johann Lay <avr@gjlay.de>
13409
13410 * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
13411 (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
13412 (*insv.xor-extract, *insv.xor1-bit.0): New insns.
13413 (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
13414 values for insn attribute.
13415 * config/avr/avr.c (avr_out_insert_notbit): New function.
13416 (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
13417 ADJUST_LEN_INSV_NOTBIT_0/_7.
13418 * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
13419
13420 2016-07-21 Bin Cheng <bin.cheng@arm.com>
13421
13422 * tree-chrec.c (convert_affine_scev): New parameter. Pass new arg.
13423 (chrec_convert_1, chrec_convert): Ditto.
13424 * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
13425 * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
13426 * tree-vrp.c (adjust_range_with_scev): Ditto.
13427 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
13428 (scev_var_range_cant_overflow): New function.
13429 (scev_probably_wraps_p): New parameter. Call above function.
13430 * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
13431
13432 2016-07-21 Bin Cheng <bin.cheng@arm.com>
13433
13434 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
13435 by removing computation of may_be_zero.
13436
13437 2016-07-21 Jakub Jelinek <jakub@redhat.com>
13438
13439 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
13440
13441 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
13442
13443 Improving concepts performance and diagnostics.
13444 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
13445 for constraint satisfaction and subsumption.
13446 * timevar.h (auto_timevar): New constructor that matches the push/pop
13447 pattern of usage in pt.c.
13448
13449 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
13450
13451 * hwint.h (HOST_WIDE_INT_0): New define.
13452 (HOST_WIDE_INT_0U): Ditto.
13453 * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
13454 * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
13455 * simplify-rtx.c: Ditto.
13456 * tree-object-size.c: Ditto.
13457
13458 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13459
13460 * config/s390/s390.c (s390_encode_section_info): Remove mode size
13461 check.
13462
13463 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
13464
13465 * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
13466 * combine.c: Use HOST_WIDE_INT_M1U instead of
13467 ~(unsigned HOST_WIDE_INT) 0.
13468 * double-int.h: Ditto.
13469 * dse.c: Ditto.
13470 * dwarf2asm.c:Ditto.
13471 * expmed.c: Ditto.
13472 * genmodes.c: Ditto.
13473 * match.pd: Ditto.
13474 * read-rtl.c: Ditto.
13475 * tree-ssa-loop-ivopts.c: Ditto.
13476 * tree-ssa-loop-prefetch.c: Ditto.
13477 * tree-vect-generic.c: Ditto.
13478 * tree-vect-patterns.c: Ditto.
13479 * tree.c: Ditto.
13480
13481 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
13482
13483 * config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
13484 constant addresses outside [0,0xc0] into a register.
13485 (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn. And handle
13486 cases where the base address register is unused after.
13487 (avr_out_movhi_r_mr_reg_disp_tiny): Same.
13488 (avr_out_movhi_mr_r_reg_disp_tiny): Same.
13489 (avr_out_store_psi_reg_disp_tiny): Same.
13490
13491 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
13492
13493 Implement attribute progmem on reduced Tiny cores by adding
13494 flash offset 0x4000 to respective symbols.
13495
13496 PR target/71948
13497 * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
13498 documentation how it works on reduced Tiny cores.
13499 (AVR Named Address Spaces): No support for reduced Tiny.
13500 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
13501 (avr_address_tiny_pm_p): New static function.
13502 (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
13503 if the address is in progmem.
13504 (avr_assemble_integer): Same.
13505 (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
13506 for symbol_ref in progmem.
13507 * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
13508 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
13509 magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
13510
13511 2016-07-20 Patrick Palka <ppalka@gcc.gnu.org>
13512
13513 * configure.ac (thin_archive_support): New variable. AC_SUBST it.
13514 * configure: Regenerate.
13515 * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
13516 (USE_THIN_ARCHIVES): New variable.
13517 (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
13518 this archive as a thin archive.
13519
13520 2016-07-20 David Malcolm <dmalcolm@redhat.com>
13521
13522 * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
13523 same location as last time, don't skip if we have fix-it hints.
13524 Clarify the skipping logic by converting it from one "if" clause
13525 to repeated "if" clauses.
13526 * spellcheck-tree.c: Include "cpplib.h".
13527 (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
13528 (best_macro_match::best_macro_match): New constructor.
13529 * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
13530 Move here from c/c-decl.c.
13531 (class best_macro_match): Move here from c/c-decl.c, converting
13532 from a typedef to a subclass, gaining a ctor.
13533
13534 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
13535
13536 * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
13537 * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
13538 define...
13539 (avr_addr_space_diagnose_usage): ...and implementation.
13540 (avr_addr_space_supported_p): New function.
13541 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
13542 report bad address space usage if that space is supported.
13543 (avr_insert_attributes): Same. No more complain about unsupported
13544 address spaces.
13545 * config/avr/avr-c.c (tm_p.h): Include it.
13546 (avr_cpu_cpp_builtins): Only define addr-space related built-in
13547 macro if avr_addr_space_supported_p.
13548
13549 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
13550
13551 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
13552 flag_toplevel_reorder.
13553
13554 2016-07-20 David Malcolm <dmalcolm@redhat.com>
13555
13556 * gcc-rich-location.c
13557 (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
13558 a const char *.
13559 * gcc-rich-location.h
13560 (gcc_rich_location::add_fixit_misspelled_id): Likewise.
13561
13562 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
13563
13564 * target.def (addr_space): Add new diagnose_usage to hook vector.
13565 * targhooks.c (default_addr_space_diagnose_usage): Add default
13566 implementation and...
13567 * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
13568 * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
13569 is some address space, call targetm.addr_space.diagnose_usage.
13570 * doc/tm.texi.in (Named Address Spaces): Add anchor for
13571 TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
13572 * doc/tm.texi: Regenerate.
13573
13574 2016-07-20 Martin Liska <mliska@suse.cz>
13575
13576 PR middle-end/71898
13577 * graphite-isl-ast-to-gimple.c (later_of_the_two):
13578 Properly handly PHI stmts.
13579
13580 2016-07-20 Bin Cheng <bin.cheng@arm.com>
13581
13582 PR tree-optimization/71503
13583 PR tree-optimization/71683
13584 * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
13585 and break.
13586
13587 2016-07-20 Martin Liska <mliska@suse.cz>
13588
13589 * doc/invoke.texi (-fipa-ra): Document when the option is
13590 disabled. Fix a typo.
13591
13592 2016-07-20 Martin Liska <mliska@suse.cz>
13593
13594 * Makefile.in: Include fibonacci_heap.c
13595 * fibonacci_heap.c: New file.
13596 * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
13597 (fibonacci_heap::union_with): Fix deletion of the second heap.
13598 * selftest-run-tests.c (selftest::run_tests): Incorporate
13599 fibonacci heap tests.
13600 * selftest.h: Declare fibonacci_heap_c_tests.
13601
13602 2016-07-20 Martin Liska <mliska@suse.cz>
13603
13604 * selftest-run-tests.c (selftest::run_tests): New function.
13605 * selftest.h (sreal_c_tests): Declare.
13606 * sreal.c (sreal_verify_basics): New function.
13607 (verify_aritmetics): Likewise.
13608 (sreal_verify_arithmetics): Likewise.
13609 (verify_shifting): Likewise.
13610 (sreal_verify_shifting): Likewise.
13611 (void sreal_c_tests): Likewise.
13612
13613 2016-07-19 Jakub Jelinek <jakub@redhat.com>
13614
13615 PR rtl-optimization/71916
13616 * cfgrtl.c (contains_no_active_insn_p): Return false also for
13617 bb which have a single succ fake edge.
13618
13619 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
13620
13621 PR debug/71855
13622 * dwarf2out.c (gen_subprogram_die): Only call
13623 gen_unspecified_parameters_die while dumping early dwarf.
13624
13625 2016-07-19 Jakub Jelinek <jakub@redhat.com>
13626
13627 PR middle-end/71874
13628 * gimple-fold.c (fold_builtin_memory_op): Use
13629 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
13630
13631 2016-07-19 Uros Bizjak <ubizjak@gmail.com>
13632
13633 * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
13634 HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
13635 HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
13636 HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
13637 * combine.c: Ditto.
13638 * cse.c: Ditto.
13639 * dojump.c: Ditto.
13640 * double-int.c: Ditto.
13641 * dse.c: Ditto.
13642 * dwarf2out.c: Ditto.
13643 * expmed.c: Ditto.
13644 * expr.c: Ditto.
13645 * fold-const.c: Ditto.
13646 * function.c: Ditto.
13647 * fwprop.c: Ditto.
13648 * genmodes.c: Ditto.
13649 * hwint.c: Ditto.
13650 * hwint.h: Ditto.
13651 * ifcvt.c: Ditto.
13652 * loop-doloop.c: Ditto.
13653 * loop-invariant.c: Ditto.
13654 * loop-iv.c: Ditto.
13655 * match.pd: Ditto.
13656 * optabs.c: Ditto.
13657 * real.c: Ditto.
13658 * reload.c: Ditto.
13659 * rtlanal.c: Ditto.
13660 * simplify-rtx.c: Ditto.
13661 * stor-layout.c: Ditto.
13662 * toplev.c: Ditto.
13663 * tree-ssa-loop-ivopts.c: Ditto.
13664 * tree-vect-generic.c: Ditto.
13665 * tree-vect-patterns.c: Ditto.
13666 * tree.c: Ditto.
13667 * tree.h: Ditto.
13668 * ubsan.c: Ditto.
13669 * varasm.c: Ditto.
13670 * wide-int-print.cc: Ditto.
13671 * wide-int.cc: Ditto.
13672 * wide-int.h: Ditto.
13673
13674 2016-07-19 David Malcolm <dmalcolm@redhat.com>
13675
13676 * selftest.c (selftest::assert_streq): Handle NULL values of
13677 val_actual and val_expected.
13678
13679 2016-07-19 Martin Jambor <mjambor@suse.cz>
13680
13681 PR fortran/71688
13682 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
13683 rather than cgraph_create_node to get a call graph node.
13684
13685 2016-07-19 Richard Biener <rguenther@suse.de>
13686
13687 * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
13688 handle all tcc_constant bases and valueize SSA names.
13689 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
13690 tcc_constant bases.
13691
13692 2016-07-19 David Malcolm <dmalcolm@redhat.com>
13693
13694 * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
13695 the flags of the exit block and bb2, not just the entry block.
13696
13697 2016-07-19 Richard Biener <rguenther@suse.de>
13698
13699 PR tree-optimization/71901
13700 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
13701 align member, group stuff with the bitfield.
13702 (vn_ref_op_align_unit): New inline.
13703 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
13704 record element alignment and operand 3 unchanged.
13705 (ao_ref_init_from_vn_reference): Adjust.
13706 (valueize_refs_1): Likewise.
13707 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
13708
13709 2016-07-19 Richard Biener <rguenther@suse.de>
13710
13711 PR tree-optimization/71908
13712 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
13713 symbolic constants in a more reliable way.
13714
13715 2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
13716
13717 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
13718 comment.
13719 (vect_update_inits_of_drs): Likewise.
13720 (vect_create_cond_for_alias_checks): Likewise.
13721 * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
13722
13723 2016-07-19 Richard Biener <rguenther@suse.de>
13724
13725 PR lto/71907
13726 * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
13727 with an abstract origin that is not an inlined function outer
13728 scope add a self-reference as abstract origin.
13729 * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
13730
13731 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
13732
13733 PR target/71493
13734 * config/rs6000/rs6000.c (rs6000_function_value): Fix
13735 unintentional System V.4 structure return breakage for structures
13736 with a single floating point element.
13737
13738 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com>
13739
13740 PR tree-optimization/71734
13741 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
13742 contains REF, use it to check safelen, assume that safelen value
13743 must be greater 1, fix style.
13744 (ref_indep_loop_p_2): Add REF_LOOP argument.
13745 (ref_indep_loop_p): Pass LOOP as additional argument to
13746 ref_indep_loop_p_2.
13747
13748 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
13749
13750 * cfgexpand.c (expand_stack_vars): Implement synamic stack space
13751 allocation in the prologue.
13752 * explow.c (get_dynamic_stack_base): New function to return an address
13753 expression for the dynamic stack base.
13754 (get_dynamic_stack_size): New function to do the required dynamic stack
13755 space size calculations.
13756 (allocate_dynamic_stack_space): Use new functions.
13757 (align_dynamic_address): Move some code from
13758 allocate_dynamic_stack_space to new function.
13759 * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
13760
13761 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13762
13763 * config/s390/s390.c (s390_encode_section_info): Always set
13764 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
13765 found.
13766
13767 2016-07-18 Richard Biener <rguenther@suse.de>
13768
13769 PR tree-optimization/71893
13770 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
13771 for sizetype cast added by array_ref_element_size.
13772 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
13773
13774 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
13775
13776 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
13777 register parameters. Remove code to initialize argument pointer
13778 on TARGET_64BIT. Optimize call to _mcount when it can be reached
13779 using a pc-relative branch. Cleanup conditional code.
13780 * config/pa/pa.md (call_mcount): New expander.
13781 (call_mcount_nonpic): New insn.
13782 (call_mcount_pic): New insn and split.
13783 (call_mcount_pic_post_reload): New insn.
13784 (call_mcount_64bit): New insn and split.
13785 (call_mcount_64bit_post_reload): New insn.
13786
13787 2016-07-15 Georg-Johann Lay <avr@gjlay.de>
13788
13789 * config/avr/predicates.md (const_m255_to_m1_operand): New.
13790 * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
13791 * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
13792 (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
13793 (*usum_widenqihi3, *udiff_widenqihi3)
13794 (*addhi3_zero_extend.const): New combiner insns.
13795 (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
13796 just 1 bit is affected.
13797 * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
13798 (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
13799
13800 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
13801
13802 * omp-low.c (lower_omp_target): Mark data clauses with
13803 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
13804 zero-length subarrays.
13805
13806 2016-07-15 Richard Biener <rguenther@suse.de>
13807
13808 PR tree-optimization/71881
13809 * tree-loop-distribution.c (destroy_loop): Remove blocks in
13810 reverse DOM order to make debug temp generation happy.
13811
13812 2016-07-15 Richard Biener <rguenther@suse.de>
13813
13814 PR tree-optimization/71887
13815 * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
13816 verify it is not zero for division / modulo handling.
13817 (value_replacement): Adjust.
13818
13819 2016-07-15 Virendra Pathak <virendra.pathak@broadcom.com>
13820 Julian Brown <julian@codesourcery.com>
13821
13822 * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
13823 * config/aarch64/aarch64-cost-tables.h
13824 (vulcan_extra_costs): New variable.
13825 * config/aarch64/aarch64.c
13826 (vulcan_addrcost_table): Likewise.
13827 (vulcan_regmove_cost): Likewise.
13828 (vulcan_vector_cost): Likewise.
13829 (vulcan_branch_cost): Likewise.
13830 (vulcan_tunings): Likewise.
13831
13832 2016-07-15 Alexander Monakov <amonakov@ispras.ru>
13833
13834 * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
13835 (output_in_order): Loop over undefined variables too. Output them
13836 via assemble_undefined_decl. Skip variables that correspond to hard
13837 registers or have value-exprs.
13838 * varpool.c (symbol_table::output_variables): Handle undefined
13839 variables together with defined ones.
13840
13841 2016-07-15 Richard Biener <rguenther@suse.de>
13842
13843 * tree-ssa-pre.c (get_representative_for): Make sure to return
13844 the value number of SSA names.
13845 (phi_translate_1): get_representative_for cannot return NULL.
13846 (do_pre_regular_insertion): Remove redundant call to
13847 fully_constant_expression.
13848 (do_pre_partial_partial_insertion): Likewise.
13849
13850 2016-07-15 Bin Cheng <bin.cheng@arm.com>
13851
13852 * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
13853 (derive_simple_iv_with_niters): New function.
13854 (simple_iv): Rewrite using simple_iv_with_niters.
13855 * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
13856 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
13857 function.
13858 (number_of_iterations_exit): Rewrite using above function.
13859 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
13860 Decl.
13861
13862 2016-07-15 Richard Biener <rguenther@suse.de>
13863
13864 * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
13865 vec_construct cost.
13866
13867 2016-07-14 Jakub Jelinek <jakub@redhat.com>
13868
13869 PR tree-optimization/71872
13870 * tree-data-ref.c (get_references_in_stmt): Ignore references
13871 with is_gimple_constant get_base_address.
13872
13873 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
13874
13875 * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
13876 (TARGET_HAVE_LDACQD): New macro.
13877 * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
13878 than TARGET_HAVE_LDACQ.
13879 (arm_load_acquire_exclusivedi): Likewise.
13880 (arm_store_release_exclusivedi): Likewise.
13881
13882 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
13883
13884 PR rtl-optimization/71878
13885 * lra-constraints.c (match_reload): Pass information about other
13886 output operands. Create new unique register value if matching input
13887 operand shares same register value as output operand being considered.
13888 (curr_insn_transform): Record output operands already processed.
13889
13890 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13891
13892 PR target/65951
13893 PR tree-optimization/70923
13894 * tree-vect-patterns.c: Include mult-synthesis.h.
13895 (target_supports_mult_synth_alg): New function.
13896 (synth_lshift_by_additions): Likewise.
13897 (apply_binop_and_append_stmt): Likewise.
13898 (vect_synth_mult_by_constant): Likewise.
13899 (target_has_vecop_for_code): Likewise.
13900 (vect_recog_mult_pattern): Use above functions to synthesize vector
13901 multiplication by integer constants.
13902
13903 2016-07-14 Alan Modra <amodra@gmail.com>
13904
13905 * config/rs6000/altivec.md (altivec_mov<mode>): Disparage
13906 gpr alternatives. Correct '*' placement on Y,r alternative.
13907 Add '*' on operand 1 of r,r alternative.
13908
13909 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13910
13911 * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
13912 * expmed.h: ... Here.
13913
13914 2016-07-14 Jan Hubicka <hubicka@ucw.cz>
13915
13916 * gimple.h (stmt_can_terminate_bb_p): New function.
13917 * tree-cfg.c (need_fake_edge_p): Rename to ...
13918 (stmt_can_terminate_bb_p): ... this; return true if stmt can
13919 throw external; handle const and pure calls.
13920 * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
13921
13922 2016-07-14 Richard Biener <rguenther@suse.de>
13923
13924 PR tree-optimization/71866
13925 * tree-ssa-pre.c (get_constant_for_value_id): Remove.
13926 (do_hoist_insertion): Avoid endless recursion when we
13927 didn't insert anything because we managed to simplify
13928 things down to a constant or SSA name.
13929 (fully_constant_expression): Re-write in terms of ...
13930 * tree-ssa-sccvn.h (vn_nary_simplify): ... this. Declare.
13931 * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
13932 vn_nary_build_or_lookup_1.
13933 (vn_nary_build_or_lookup_1): Added flag and renamed from ...
13934 (vn_nary_build_or_lookup): ... this which now wraps it.
13935
13936 2016-07-14 Alan Modra <amodra@gmail.com>
13937
13938 PR target/71733
13939 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
13940 with p9_vector override before power9-dform override.
13941
13942 2016-07-13 Andi Kleen <ak@linux.intel.com>
13943
13944 * value-prof.c (gimple_value_profile_transformations): Don't run
13945 when auto_profile is on.
13946
13947 2016-07-13 Andi Kleen <ak@linux.intel.com>
13948
13949 * auto-profile.c (update_inlined_ind_target,
13950 afdo_indirect_call): Print information to dump file.
13951
13952 2016-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
13953
13954 * genrecog.c (special_predicate_operand_p): New function.
13955 (predicate_name): Move function.
13956 (validate_pattern): Don't warn about missing mode for all
13957 define_special_predicate predicates.
13958
13959 2016-07-13 Bin Cheng <bin.cheng@arm.com>
13960
13961 * tree-vect-data-refs.c (vect_no_alias_p): New function.
13962 (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
13963 resolve alias checks which are known at compilation time.
13964 Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
13965 alias checks are resolved. Move dump info for too many runtime
13966 alias checks to here...
13967 * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
13968
13969 2016-07-13 Richard Biener <rguenther@suse.de>
13970
13971 PR tree-optimization/24574
13972 * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
13973 position and add shift, rotate, divison and modulo support
13974 for left zero.
13975 (value_replacement): Pass in argument position to absorbing_element_p.
13976
13977 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
13978
13979 PR ipa/71633
13980 * ipa-inline-transform.c (inline_call): Support
13981 instrumented thunks.
13982
13983 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
13984
13985 * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
13986 (TARGET_IDIV): Set for all Thumb targets provided they have hardware
13987 divide feature.
13988 * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
13989 Baseline. Make initial alternative TARGET_32BIT only.
13990 (udivsi3): Likewise.
13991 * config/arm/thumb1.md (thumb1_cbz): New define_insn.
13992 * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
13993 target.
13994
13995 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
13996
13997 * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
13998 * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
13999 availability with TARGET_HAVE_MOVT.
14000 (thumb_legitimate_constant_p): Strip the high part of a label_ref.
14001 (thumb1_rtx_costs): Also return 0 if setting a half word constant and
14002 MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
14003 UINTVAL.
14004 (thumb1_size_rtx_costs): Make set of half word constant also cost 1
14005 extra instruction if MOVW is available. Use a cost variable
14006 incremented by COSTS_N_INSNS (1) when the condition match rather than
14007 returning an arithmetic expression based on COSTS_N_INSNS. Make
14008 constant with bottom half word zero cost 2 instruction if MOVW is
14009 available.
14010 * config/arm/arm.md (define_attr "arch"): Add v8mb.
14011 (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
14012 target is ARMv8-M Baseline.
14013 (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
14014 (arm_movtas_ze): Likewise.
14015 * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
14016 alternative for constants satisfying j constraint.
14017 (thumb1_movsi_insn): Likewise.
14018 (movsi splitter for K alternative): Tighten condition to not trigger
14019 if movt is available and j constraint is satisfied.
14020 (Pe immediate splitter): Likewise.
14021 (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
14022 constant fitting in an halfword to use MOVW.
14023 * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
14024 effective target.
14025
14026 2016-07-13 Richard Biener <rguenther@suse.de>
14027
14028 PR middle-end/71104
14029 * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
14030 gimplifying the LHS. Make sure to gimplify a returning twice
14031 call LHS without using SSA names.
14032
14033 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14034
14035 * tree-data-ref.c (find_data_references_in_stmt): Remove
14036 unnecessary call to vec::release.
14037 (graphite_find_data_references_in_stmt): Likewise.
14038 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
14039 * tree-vect-stmts.c (vectorizable_condition): Likewise.
14040
14041 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14042
14043 * cfgexpand.c (expand_used_vars): Make the type of a local
14044 variable auto_vec.
14045 * genmatch.c (lower_for): Likewise.
14046 * haifa-sched.c (haifa_sched_init): Likewise.
14047 (add_to_speculative_block): Likewise.
14048 (create_check_block_twin): Likewise.
14049 * predict.c (handle_missing_profiles): Likewise.
14050 * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
14051 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
14052 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
14053 Likewise.
14054 (maybe_lower_iteration_bound): Likewise.
14055 * tree-ssa-sccvn.c (DFS): Likewise.
14056 * tree-stdarg.c (reachable_at_most_once): Likewise.
14057 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
14058 (vectorizable_store): Likewise.
14059
14060 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14061
14062 * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
14063 (sccvn_dom_walker): make cond_stack an auto_vec.
14064
14065 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14066
14067 * ree.c (struct ext_state): Make type of members auto_vec.
14068 (find_and_remove_re): Adjust.
14069
14070 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14071
14072 * cfgexpand.c (struct stack_vars_data): Make type of fields
14073 auto_vec.
14074 (expand_used_vars): Adjust.
14075
14076 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14077
14078 * ipa.c (record_cdtor_fn): Adjust.
14079 (build_cdtor_fns): Likewise.
14080 (ipa_cdtor_merge): Make static_ctors and static_dtors local
14081 variables.
14082
14083 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14084
14085 * genextract.c (struct accum_extract): Add constructor and make
14086 members auto_vec.
14087 (gen_insn): Adjust.
14088
14089 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14090
14091 * tree.c (struct free_lang_data_d): Add constructor and change
14092 types of members to ones that automatically manage resources.
14093 (fld_worklist_push): Adjust.
14094 (find_decls_types): Likewise.
14095 (find_decls_types_in_eh_region): Likewise.
14096 (free_lang_data_in_cgraph): Stop manually creating and
14097 destroying members of free_lang_data_d.
14098
14099 2016-07-13 Uros Bizjak <ubizjak@gmail.com>
14100
14101 PR rtl-optimization/68961
14102 * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
14103 peephole variant. Use sse_reg_operand predicates.
14104
14105 2016-07-12 Uros Bizjak <ubizjak@gmail.com>
14106
14107 * config/i386/predicates.md (x86_64_immediate_operand)
14108 <case CONST_INT>: Remove unneeded truncation to DImode.
14109 <case CONST>: Ditto.
14110 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
14111
14112 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
14113
14114 PR target/71805
14115 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
14116 The xxperm and xxpermr instructions require that the 2nd input
14117 operand overlap with the output operand, and not the 1st.
14118 (altivec_vperm_v8hiv16qi): Likewise.
14119 (altivec_vperm_<mode>_uns_internal): Likewise.
14120 (altivec_vpermr_<mode>_internal): Likewise.
14121 (vperm_v8hiv4si): Likewise.
14122 (vperm_v16qiv8hi): Likewise.
14123
14124 2016-07-12 Nathan Sidwell <nathan@acm.org>
14125
14126 * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
14127 when -mno-pic-data-is-text-relative is in effect, by default.
14128 * doc/invoke.texi (mpic-data-is-text-relative): Document new
14129 behavior and clarify.
14130
14131 2016-07-12 Martin Liska <mliska@suse.cz>
14132
14133 * params.def: Add avg-loop niter.
14134 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
14135 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
14136 * doc/invoke.texi: Document the new parameter.
14137
14138 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14139
14140 PR middle-end/71700
14141 * expr.c (store_constructor): Mask sign-extended bits when widening
14142 sub-word constructor element at the start of a word.
14143
14144 2016-07-12 Martin Liska <mliska@suse.cz>
14145
14146 * Makefile.in: Append rule for params-options.h.
14147 * params-options.h: New file.
14148
14149 2016-07-12 Martin Liska <mliska@suse.cz>
14150
14151 * ira-build.c (mark_loops_for_removal): Properly iterate
14152 loops.
14153
14154 2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
14155 Richard Biener <rguenther@suse.de>
14156
14157 PR tree-optimization/23286
14158 PR tree-optimization/70159
14159 * doc/invoke.texi: Document -fcode-hoisting.
14160 * common.opt (fcode-hoisting): New flag.
14161 * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
14162 * tree-ssa-pre.c (pre_stats): Add hoist_insert.
14163 (do_regular_insertion): Rename to ...
14164 (do_pre_regular_insertion): ... this and amend general comments
14165 on insertion strathegy.
14166 (do_partial_partial_insertion): Rename to ...
14167 (do_pre_partial_partial_insertion): ... this.
14168 (do_hoist_insertion): New function.
14169 (insert_aux): Take flags on whether to do PRE and/or hoist insertion
14170 and call do_hoist_insertion properly.
14171 (insert): Adjust.
14172 (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
14173 (pass_pre::execute): Register hoist_insert stats.
14174
14175 2016-07-12 Jakub Jelinek <jakub@redhat.com>
14176
14177 PR middle-end/71716
14178 * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
14179 for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
14180 is different from mode's bitsize. Small cleanup.
14181
14182 2016-07-12 Richard Biener <rguenther@suse.de>
14183
14184 PR rtl-optimization/68961
14185 * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
14186 to simplify to a non-constant.
14187
14188 2016-07-11 Jakub Jelinek <jakub@redhat.com>
14189
14190 PR middle-end/71758
14191 * omp-low.c (expand_omp_target): Gimplify device.
14192
14193 PR tree-optimization/71823
14194 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
14195 to get vec_oprnds2 from op2.
14196
14197 2016-07-11 Uros Bizjak <ubizjak@gmail.com>
14198
14199 * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
14200 Hoist common subexpressions.
14201 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
14202
14203 2016-07-11 Pat Haugen <pthaugen@us.ibm.com>
14204
14205 PR target/71800
14206 * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
14207 prevent generation of 'stxsiwx' on pre Power8 hardware.
14208
14209 2016-07-11 David Malcolm <dmalcolm@redhat.com>
14210
14211 * input.c: Include cpplib.h.
14212 (selftest::temp_source_file): New class.
14213 (selftest::temp_source_file::temp_source_file): New ctor.
14214 (selftest::temp_source_file::~temp_source_file): New dtor.
14215 (selftest::should_have_column_data_p): New function.
14216 (selftest::test_should_have_column_data_p): New function.
14217 (selftest::temp_line_table): New class.
14218 (selftest::temp_line_table::temp_line_table): New ctor.
14219 (selftest::temp_line_table::~temp_line_table): New dtor.
14220 (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
14221 it to create a temp_line_table.
14222 (selftest::assert_loceq): Only verify LOCATION_COLUMN for
14223 locations that are known to have column data.
14224 (selftest::line_table_case): New struct.
14225 (selftest::test_reading_source_line): Move tempfile handling
14226 to class temp_source_file.
14227 (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
14228 (selftest::assert_token_loc_eq): New function.
14229 (ASSERT_TOKEN_LOC_EQ): New macro.
14230 (selftest::test_lexer): New function.
14231 (selftest::boundary_locations): New array.
14232 (selftest::input_c_tests): Call test_should_have_column_data_p.
14233 Loop over a test matrix of interesting values of location and
14234 default_range_bits, calling test_lexer on each case in the matrix.
14235 Move call to test_accessing_ordinary_linemaps into the matrix.
14236 * selftest.h (ASSERT_EQ): Reimplement in terms of...
14237 (ASSERT_EQ_AT): New macro.
14238
14239 2016-07-11 H.J. Lu <hongjiu.lu@intel.com>
14240
14241 PR target/71801
14242 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
14243 Don't convert TImode in debug insn.
14244
14245 2016-07-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
14246
14247 Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
14248 * tree-core.h (tree_base::nothrow_flag): Adjust comment.
14249 (tree_type_common::lang_flag_7): New.
14250 (tree_type_common::spare): Reduce size.
14251 * tree.h (TYPE_ALIGN_OK): Remove.
14252 (TYPE_LANG_FLAG_7): New.
14253 (get_inner_reference): Adjust header.
14254 * print-tree.c (print_node): Adjust.
14255 * expr.c (get_inner_reference): Remove parameter keep_aligning.
14256 (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
14257 calls to get_inner_reference.
14258 (expand_expr_real_1): Adjust call to get_inner_reference. Remove
14259 handling of TYPE_ALIGN_OK.
14260 * builtins.c (get_object_alignment_2): Adjust call to
14261 get_inner_reference. Remove handling of VIEW_CONVERT_EXPR.
14262 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
14263 TYPE_ALIGN_OK.
14264 * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
14265 * cfgexpand.c (expand_debug_expr): Likewise.
14266 * dbxout.c (dbxout_expand_expr): Likewise.
14267 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
14268 loc_list_from_tree, fortran_common): Likewise.
14269 * fold-const.c (optimize_bit_field_compare,
14270 decode_field_reference, fold_unary_loc, fold_comparison,
14271 split_address_to_core_and_offset): Likewise.
14272 * gimple-laddress.c (execute): Likewise.
14273 * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
14274 * gimplify.c (gimplify_scan_omp_clauses): Likewise.
14275 * hsa-gen.c (gen_hsa_addr): Likewise.
14276 * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
14277 * tsan.c (instrument_expr): Likewise.
14278 * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
14279 * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
14280 * tree-affine.c (tree_to_aff_combination,
14281 get_inner_reference_aff): Adjust calls to get_inner_reference.
14282 * tree-data-ref.c (split_constant_offset_1,
14283 dr_analyze_innermost): Likewise.
14284 * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
14285 * tree-sra.c (ipa_sra_check_caller): Likewise.
14286 * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
14287 * tree-ssa-math-opts.c (find_bswap_or_nop_load,
14288 bswap_replace): Likewise.
14289 * tree-vect-data-refs.c (vect_check_gather,
14290 vect_analyze_data_refs): Likewise.
14291 * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
14292 * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
14293 TYPE_ALIGN_OK.
14294
14295 2016-07-11 David Malcolm <dmalcolm@redhat.com>
14296
14297 * Makefile.in (selftest-valgrind): New phony target.
14298 * function-tests.c (selftest::build_cfg): Delete pass instances
14299 created by the test.
14300 (selftest::convert_to_ssa): Likewise.
14301 (selftest::test_expansion_to_rtl): Likewise.
14302 * tree-cfg.c (selftest::test_linear_chain): Release dominator
14303 vectors.
14304 (selftest::test_diamond): Likewise.
14305
14306 2016-07-11 Richard Biener <rguenther@suse.de>
14307
14308 PR tree-optimization/71816
14309 * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
14310 than replacing all of its operands.
14311
14312 2016-07-11 Alan Modra <amodra@gmail.com>
14313
14314 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
14315 (ctr<mode>): Add unspec.
14316 (ctr<mode>_internal*): Likewise.
14317
14318 2016-07-08 James Bowman <james.bowman@ftdichip.com>
14319
14320 * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
14321 * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
14322
14323 2016-07-08 Vladimir Makarov <vmakarov@redhat.com>
14324
14325 PR rtl-optimization/71621
14326 * lra-constraints.c (process_alt_operands): Check combination of
14327 reg class and mode.
14328
14329 2016-07-08 Jason Merrill <jason@redhat.com>
14330 Richard Biener <rguenther@suse.de>
14331
14332 P0145: Refining Expression Order for C++.
14333 * gimplify.c (initial_rhs_predicate_for): New.
14334 (gimplfy_modify_expr): Gimplify RHS before LHS.
14335
14336 2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14337
14338 PR target/71297
14339 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
14340 Allow standard error handling to take over when a wrong number
14341 of arguments is presented to __builtin_vec_ld () or
14342 __builtin_vec_st ().
14343
14344 2016-07-08 Jiong Wang <jiong.wang@arm.com>
14345
14346 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
14347 variants.
14348 (smin): Likewise.
14349 (fmax): New entry.
14350 (fmin): Likewise.
14351 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
14352 __builtin_aarch64_fmaxv2sf.
14353 (vmaxnmq_f32): Likewise.
14354 (vmaxnmq_f64): Likewise.
14355 (vminnm_f32): Likewise.
14356 (vminnmq_f32): Likewise.
14357 (vminnmq_f64): Likewise.
14358
14359 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
14360
14361 PR target/71806
14362 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
14363 enable -mfloat128-hardware by default.
14364 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
14365 that IEEE 128-bit hardware support needs.
14366 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
14367 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
14368 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
14369 floating point requires.
14370 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
14371 -mfloat128 and -mfloat128-hardware changes.
14372
14373 2016-07-08 Alan Hayward <alan.hayward@arm.com>
14374
14375 PR tree-optimization/71667
14376 * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
14377
14378 2016-07-08 Martin Liska <mliska@suse.cz>
14379
14380 PR middle-end/71606
14381 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
14382 folding produces SAVE_EXPRs, thus return false for the type.
14383
14384 2016-07-07 Martin Liska <mliska@suse.cz>
14385
14386 * file-find.c (remove_prefix): New function.
14387 * file-find.h (remove_prefix): Declare the function.
14388 * gcc-ar.c (main): Skip a folder of the wrapper if
14389 a wrapped binary would point to the same file.
14390
14391 2016-07-07 Jan Hubicka <jh@suse.cz>
14392
14393 * tree-scalar-evolution.c (iv_can_overflow_p): export.
14394 * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
14395 * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
14396
14397 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
14398
14399 PR ipa/71624
14400 * ipa-inline-analysis.c (compute_inline_parameters): Set
14401 local.can_change_signature to false for intrumentation
14402 thunk callees.
14403
14404 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
14405
14406 * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
14407 with TARGET_HAVE_MOVT.
14408 (TARGET_HAVE_MOVT): Define.
14409 * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
14410 availability with TARGET_HAVE_MOVT.
14411 * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
14412 availability.
14413 (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
14414 TARGET_THUMB2.
14415 (symbol_refs movsi splitter): Remove TARGET_32BIT check.
14416 (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
14417 * config/arm/constraints.md (define_constraint "j"): Use
14418 TARGET_HAVE_MOVT to check MOVT availability.
14419
14420 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
14421
14422 * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
14423
14424 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
14425
14426 * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
14427 (armv8-m.main): Likewise.
14428 (armv8-m.main+dsp): Likewise.
14429 * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
14430 (FL_FOR_ARCH8M_MAIN): Likewise.
14431 * config/arm/arm-tables.opt: Regenerate.
14432 * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
14433 armv8-m.main+dsp to BE8_LINK_SPEC.
14434 * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
14435 (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
14436 * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
14437 Baseline and Mainline.
14438 (arm_option_override_internal): Also disable arm_restrict_it when
14439 !arm_arch_notm. Update comment for -munaligned-access to also cover
14440 ARMv8-M Baseline.
14441 (arm_file_start): Increase buffer size for printing architecture name.
14442 * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
14443 and armv8-m.main+dsp.
14444 (mno-unaligned-access): Clarify that this is disabled by default for
14445 ARMv8-M Baseline architectures as well.
14446
14447 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
14448
14449 * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
14450 decide whether to prevent some libgcc routines being included for some
14451 multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
14452 link between this condition and the one in
14453 libgcc/config/arm/lib1func.S.
14454
14455 2016-07-07 Richard Biener <rguenther@suse.de>
14456
14457 * tree-ssa-pre.c: Include alias.h.
14458 (compute_avail): If we have multiple VN_REFERENCEs with the
14459 same hashtable entry adjust that to make it a valid replacement
14460 for all of them with respect to alignment and aliasing
14461 when doing insertion.
14462 * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
14463 * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
14464
14465 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
14466
14467 PR target/70098
14468 PR target/71763
14469 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
14470 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
14471 constraint.
14472
14473 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14474
14475 * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
14476 (adjust_mems): Adjust.
14477 (adjust_insn): Likewise.
14478 (prepare_call_arguments): Likewise.
14479
14480 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14481
14482 * gcse.c (struct ls_expr): Make stores field a vector.
14483 (ldst_entry): Adjust.
14484 (free_ldst_entry): Likewise.
14485 (print_ldst_list): Likewise.
14486 (compute_ld_motion_mems): Likewise.
14487 (update_ld_motion_stores): Likewise.
14488
14489 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14490
14491 * gcse.c (struct ls_expr): Remove loads field.
14492 (ldst_entry): Adjust.
14493 (free_ldst_entry): Likewise.
14494 (print_ldst_list): Likewise.
14495 (compute_ld_motion_mems): Likewise.
14496
14497 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14498
14499 * store-motion.c (struct st_expr): Make antic_stores a vector.
14500 (st_expr_entry): Adjust.
14501 (free_st_expr_entry): Likewise.
14502 (print_store_motion_mems): Likewise.
14503 (find_moveable_store): Likewise.
14504 (compute_store_table): Likewise.
14505 (remove_reachable_equiv_notes): Likewise.
14506 (replace_store_insn): Likewise.
14507 (build_store_vectors): Likewise.
14508
14509 2016-07-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14510
14511 * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
14512 cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
14513
14514 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
14515
14516 PR tree-optimization/71518
14517 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
14518 misalign also for outer loops with negative step.
14519
14520 2016-07-06 Wilco Dijkstra <wdijkstr@arm.com>
14521
14522 * config/arm/cortex-a53.md: Use final_presence_set for in-order.
14523 (cortex_a53_shift): Add mov_shift.
14524 (cortex_a53_shift_reg): Add new reservation for register shifts.
14525 (cortex_a53_alu): Remove bfm.
14526 (cortex_a53_alu_shift): Add bfm, remove mov_shift.
14527 (cortex_a53_alu_extr): Add new reservation for EXTR.
14528 (bypasses): Improve bypass modelling.
14529
14530 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
14531
14532 PR target/50739
14533 * config/avr/avr.c (avr_asm_select_section): Strip off
14534 SECTION_DECLARED from flags when calling get_section.
14535
14536 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
14537
14538 * tree-vectorizer.h (vect_memory_access_type): Add
14539 VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
14540 * tree-vect-stmts.c (compare_step_with_zero): New function.
14541 (perm_mask_for_reverse): Move further up file.
14542 (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
14543 step is negative.
14544 (get_negative_load_store_type): New function.
14545 (get_load_store_type): Call it. Add an ncopies argument.
14546 (vectorizable_mask_load_store): Update call accordingly and
14547 remove tests for negative steps.
14548 (vectorizable_store, vectorizable_load): Likewise. Handle new
14549 memory_access_types.
14550
14551 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
14552
14553 * tree-vectorizer.h (vect_memory_access_type): New enum.
14554 (_stmt_vec_info): Add a memory_access_type field.
14555 (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
14556 (vect_model_store_cost): Take an access type instead of a boolean.
14557 (vect_model_load_cost): Likewise.
14558 * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
14559 vect_model_store_cost and vect_model_load_cost.
14560 * tree-vect-stmts.c (vec_load_store_type): New enum.
14561 (vect_model_store_cost): Take an access type instead of a
14562 store_lanes_p boolean. Simplify tests.
14563 (vect_model_load_cost): Likewise, but for load_lanes_p.
14564 (get_group_load_store_type, get_load_store_type): New functions.
14565 (vectorizable_store): Use get_load_store_type. Record the access
14566 type in STMT_VINFO_MEMORY_ACCESS_TYPE.
14567 (vectorizable_load): Likewise.
14568 (vectorizable_mask_load_store): Likewise. Replace is_store
14569 variable with vls_type.
14570
14571 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
14572
14573 * tree-vectorizer.h (vect_grouped_load_supported): Add a
14574 single_element_p parameter.
14575 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
14576 Check the PR65518 case here rather than in vectorizable_load.
14577 * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
14578 * tree-vect-stmts.c (vectorizable_load): Likewise.
14579
14580 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
14581
14582 * tree-vectorizer.h (gather_scatter_info): New structure.
14583 (vect_check_gather_scatter): Return a bool rather than a decl.
14584 Replace return-by-pointer arguments with a single
14585 gather_scatter_info *.
14586 * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
14587 (vect_analyze_data_refs): Update call accordingly.
14588 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
14589 (vectorizable_mask_load_store): Likewise. Also record the
14590 offset dt and vectype in the gather_scatter_info.
14591 (vectorizable_store): Likewise.
14592 (vectorizable_load): Likewise.
14593
14594 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
14595
14596 * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
14597 strided groups, use the cost of N scalar accesses instead
14598 of ncopies vector accesses.
14599 (vect_model_load_cost): Likewise.
14600
14601 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
14602
14603 * tree-vect-stmts.c (vect_cost_group_size): Delete.
14604 (vect_model_store_cost): Avoid calling it. Use first_stmt_p
14605 variable to indicate when once-per-group costs are being used.
14606 (vect_model_load_cost): Likewise. Fix comment and misindented code.
14607
14608 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
14609
14610 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
14611 peeling-for-gaps condition.
14612
14613 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14614
14615 * config/s390/s390.c (s390_expand_vec_init): Force initializer
14616 element to register if it doesn't match general_operand.
14617
14618 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
14619 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14620
14621 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
14622 prototype.
14623 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
14624 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
14625 (SIGNBIT): New mode iterator.
14626 (Fsignbit): New mode attribute.
14627 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
14628 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
14629 when direct moves are available.
14630 (signbit<mode>2_dm): New define_insn_and_split).
14631 (signbit<mode>2_dm2): New define_insn.
14632
14633 2016-07-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14634
14635 PR rtl-optimization/71594
14636 * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
14637 into subregs of appropriate mode before trying to emit a conditional
14638 move.
14639
14640 2016-07-05 Jan Hubicka <jh@suse.cz>
14641
14642 * tree-scalar-evolution.c (iv_can_overflow_p): New function.
14643 (simple_iv): Use it.
14644
14645 2016-07-05 Jan Hubicka <jh@suse.cz>
14646
14647 * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
14648
14649 2016-07-05 Jiong Wang <jiong.wang@arm.com>
14650
14651 * lra-constraints.c (process_alt_operands): Don't add spilling cost for
14652 "offmemok".
14653
14654 2016-07-05 Jan Hubicka <jh@suse.cz>
14655
14656 * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
14657 IV can overflow.
14658
14659 2016-07-05 Richard Biener <rguenther@suse.de>
14660
14661 * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
14662 Handle empty else block.
14663 (is_feasible_trace): Likewise.
14664 (split_paths): Likewise.
14665
14666 2016-07-05 Richard Biener <rguenther@suse.de>
14667
14668 * tree-loop-distribution.c (distribute_loop): Fix issue with
14669 the cost model loop.
14670
14671 2016-07-05 Christophe Lyon <christophe.lyon@linaro.org>
14672
14673 * config/arm/neon-testgen.ml: Delete.
14674 * config/arm/neon.ml: Delete.
14675
14676 2016-07-04 Jakub Jelinek <jakub@redhat.com>
14677
14678 PR c++/71739
14679 * tree.c (attribute_value_equal): Use get_attribute_name instead of
14680 directly using TREE_PURPOSE.
14681
14682 2016-07-04 Jiong Wang <jiong.wang@arm.com>
14683
14684 * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
14685 * config/aarch64/aarch64_neon.h: Likewise.
14686 * config/aarch64/arm_neon.h: Likewise.
14687 * config/aarch64/atomics.md: Likewise.
14688 * config/aarch64/aarch64-simd-builtins.def: Likewise.
14689 * doc/invoke.texi: Likewise.
14690
14691 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
14692
14693 * config/s390/s390.md: Add "z13" cpu_facility.
14694 ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
14695 * config/s390/predicates.md ("loc_operand"): New predicate for "load on
14696 condition" type instructions.
14697
14698 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
14699 Jeff Law <law@redhat.com>
14700
14701 * explow.c (allocate_dynamic_stack_space): Simplify knowing that
14702 MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
14703
14704 2016-07-04 Yuri Rumyantsev <ysrumyan@gmail.com>
14705
14706 * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
14707 permutation for TARGET_AVX512F.
14708 (ix86_expand_vec_one_operand_perm_avx512): New function.
14709 (expand_vec_perm_1): Invoke introduced function.
14710 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
14711 it may be not valid after vectorization.
14712
14713 2016-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14714
14715 PR target/63874
14716 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
14717 typo in comment. Only force to memory if it is a weak
14718 external reference.
14719
14720 2016-07-04 Matthew Wahab <matthew.wahab@arm.com>
14721 Jiong Wang <jiong.wang@arm.com>
14722
14723 * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
14724 * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
14725 (AARCH64_FL_F16): New.
14726 (AARCH64_FL_FOR_ARCH8_2): New.
14727 (AARCH64_ISA_8_2): New.
14728 (AARCH64_ISA_F16): New.
14729 (TARGET_FP_F16INST): New.
14730 (TARGET_SIMD_F16INST): New.
14731 * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
14732 ("fp"): Disabling "fp" also disables "fp16".
14733 * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
14734 Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
14735 and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
14736 * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
14737
14738 2016-07-04 Jan Beulich <jbeulich@suse.com>
14739
14740 * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
14741
14742 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
14743
14744 PR target/71720
14745 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
14746 the insns, use an insn form that does not adjust the offset on
14747 little endian systems.
14748
14749 2016-07-01 Jan Beulich <jbeulich@suse.com>
14750
14751 * varasm.c (get_variable_section): Validate initializer in
14752 named .bss-like sections.
14753
14754 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
14755
14756 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
14757 Exchange the order of the second and third operands in the vpermr
14758 instruction tmeplate.
14759
14760 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
14761
14762 PR target/71698
14763 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
14764 Disallow TDmode values.
14765
14766 2016-07-01 Alan Modra <amodra@gmail.com>
14767
14768 PR rtl-optimization/71709
14769 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
14770 being set, not referenced.
14771
14772 2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
14773
14774 PR tree-optimization/70729
14775 * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
14776 of loop since it can be not valid after transformation.
14777
14778 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14779
14780 * config/arm/arm.c (thumb_reload_in_hi): Delete.
14781 * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
14782
14783 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
14784
14785 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
14786 for NULL decl.
14787
14788 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
14789
14790 PR target/71677
14791 * config/rs6000/constraints.md (wY constraint): New constraint to
14792 match the requirements for the LXSD and STXSD instructions.
14793 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
14794 predicate to match the requirements for the LXSD and STXSD
14795 instructions.
14796 * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
14797 Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
14798 to make sure that the bottom 2 bits of offset are 0, the address
14799 form is offsettable, and no updating is done in the address mode.
14800 (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
14801 (movdi_internal32): Likewise
14802 (movdi_internal64): Likewise.
14803
14804 2016-06-30 Jakub Jelinek <jakub@redhat.com>
14805
14806 PR tree-optimization/71707
14807 * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
14808 strinfo even for ADDR_EXPR ptr.
14809
14810 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
14811
14812 * config/rs6000/altivec.md (darn_32): Change the condition to
14813 TARGET_P9_MISC instead of TARGET_MODULO.
14814 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
14815 condition expression.
14816 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
14817 condition expression.
14818 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
14819 (DFP_TEST): New code iterator.
14820 (dfptstsfi_<code>_mode>): New define_expand.
14821 (*dfp_sgnfcnc_<mode>): New define_insn.
14822 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
14823 definition next to BU_P9_MISC_1 definition and change the MASK
14824 value to RS6000_BTM_P9_MISC.
14825 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
14826 (BU_P9_64BIT_MISC_0): Likewise.
14827 (BU_P9_DFP_MISC_0): New macro definition.
14828 (BU_P9_DFP_MISC_1): New macro definition.
14829 (BU_P9_DFP_MISC_2): New macro definition.
14830 (BU_P9_DFP_OVERLOAD_1): New macro definition.
14831 (BU_P9_DFP_OVERLOAD_2): New macro definition.
14832 (BU_P9_DFP_OVERLOAD_3): New macro definition.
14833 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
14834 (TSTSFI_LT_TD): Likewise.
14835 (TSTSFI_EQ_DD): Likewise.
14836 (TSTSFI_EQ_TD): Likewise.
14837 (TSTSFI_GT_DD): Likewise.
14838 (TSTSFI_GT_TD): Likewise.
14839 (TSTSFI_OV_DD): Likewise.
14840 (TSTSFI_OV_TD): Likewise.
14841 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
14842 (TSTSFI_LT_DD): Likewise.
14843 (TSTSFI_LT_TD): Likewise.
14844 (TSTSFI_EQ): Likewise.
14845 (TSTSFI_EQ_DD): Likewise.
14846 (TSTSFI_EQ_TD): Likewise.
14847 (TSTSFI_GT): Likewise.
14848 (TSTSFI_GT_DD): Likewise.
14849 (TSTSFI_GT_TD): Likewise.
14850 (TSTSFI_OV): Likewise.
14851 (TSTSFI_OV_DD): Likewise.
14852 (TSTSFI_OV_TD): Likewise.
14853 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14854 overloaded test significance functions.
14855 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
14856 OPTION_MASK_P9_MISC into the representation of this mask.
14857 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
14858 of this mask.
14859 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
14860 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
14861 non-zero.
14862 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
14863 argument is a 6-bit unsigned literal value if the icode argument
14864 represents a DFP test significance built-in call.
14865 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
14866 flag used independently and in combination with the
14867 RS6000_BTM_64BIT flag.
14868 (rs6000_opt_masks): Add entry for power9-misc command-line option.
14869 (rs6000_builtin_mask_names): Add entry for power9-misc
14870 command-line option.
14871 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
14872 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
14873 RS6000_BTM_P9_MISC macros.
14874 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
14875 option and change the description of the -mpower9-vector option to
14876 enable only vector instructions, removing its erroneously claimed
14877 support for scalar instructions.
14878 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
14879 the ISA 3.0 digital floating point test significance built-in
14880 functions.
14881
14882 2016-06-30 Wilco Dijkstra <wdijkstr@arm.com>
14883
14884 * config/aarch64/aarch64.c (cortexa35_tunings):
14885 Enable AES fusion. Use cortexa57_branch_cost.
14886 (cortexa53_tunings): Use cortexa57_branch_cost.
14887 (cortexa72_tunings): Use cortexa57_branch_cost.
14888 Use AUTOPREFETCHER_WEAK.
14889 (cortexa73_tunings): Use cortexa57_branch_cost.
14890
14891 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14892 James Greenhalgh <james.greenhalgh@arm.com>
14893
14894 * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
14895 vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
14896 vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
14897 vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
14898 (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
14899 vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
14900 vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
14901 vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
14902 vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
14903 vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
14904 vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
14905 vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
14906 vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
14907 New intrinsics.
14908
14909 2016-06-30 James Greenhalgh <james.greenhalgh@arm.com>
14910 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14911
14912 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
14913 New define_insn.
14914 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
14915
14916 2016-06-30 David Malcolm <dmalcolm@redhat.com>
14917
14918 PR driver/71651
14919 * gcc.c (driver::build_option_suggestions): Pass "option" to
14920 add_misspelling_candidates.
14921 * opts-common.c (add_misspelling_candidates): Add "option" param;
14922 use it to avoid adding negated forms for options marked with
14923 RejectNegative.
14924 * opts.h (add_misspelling_candidates): Add "option" param.
14925
14926 2016-06-30 Jakub Jelinek <jakub@redhat.com>
14927
14928 PR middle-end/71693
14929 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
14930 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
14931 first when permuting bitwise operation with rotate. Cast
14932 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
14933
14934 2016-06-29 David Malcolm <dmalcolm@redhat.com>
14935
14936 * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
14937 for misspelled param names.
14938 * params.c: Include spellcheck.h.
14939 (find_param_fuzzy): New function.
14940 * params.h (find_param_fuzzy): New prototype.
14941 * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
14942 * spellcheck.h (struct edit_distance_traits<const char *>):
14943 ...here.
14944
14945 2016-06-29 Michael Meissner <meissner@linux.vnet.ibm.com>
14946
14947 * config/rs6000/predicates.md (const_0_to_7_operand): New
14948 predicate, recognize 0..7.
14949 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
14950 support for doing extracts from V16QImode, V8HImode, V4SImode
14951 under ISA 3.0.
14952 * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
14953 vector extract support.
14954 (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
14955 for ISA 3.0 vector extract.
14956 (VSX_EX): Constraints to use for ISA 3.0 vector extract.
14957 (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
14958 extracts of a constant element number from small integer vectors
14959 on 64-bit ISA 3.0 systems.
14960 (vsx_extract_<mode>_di): Likewise.
14961 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
14962 say when we can do ISA 3.0 vector extracts.
14963 * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
14964 registers, using the stxsiwx instruction.
14965
14966 2016-06-29 Jim Wilson <jim.wilson@linaro.org>
14967
14968 * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
14969 * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
14970 qdf24xx_regmove_cost, qdf24xx_tunings): New.
14971 * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
14972 * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
14973 * config/arm/arm.c (arm_qdf24xx_tune): New.
14974
14975 2016-06-29 Wilco Dijkstra <wdijkstr@arm.com>
14976
14977 * config/aarch64/aarch64.c (cortexa53_tunings):
14978 Increase loop alignment to 8. Set function alignment to 16.
14979 (cortexa35_tunings): Likewise.
14980 (cortexa57_tunings): Increase loop alignment to 8.
14981 (cortexa72_tunings): Likewise.
14982 (cortexa73_tunings): Likewise.
14983
14984 2016-06-29 Matthew Wahab <matthew.wahab@arm.com>
14985
14986 * doc/sourcebuild.texi (Effective-Target keywords): Add entries
14987 for arm_fp16_ok and arm_fp16_hw.
14988 (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
14989 arm_fp16_alternative.
14990
14991 2016-06-29 Ilya Enkovich <ilya.enkovich@intel.com>
14992
14993 PR tree-optimization/71655
14994 * tree-vect-stmts.c (vectorizable_comparison): Swap definition
14995 types when swapping operands.
14996
14997 2016-06-29 Martin Liska <mliska@suse.cz>
14998
14999 PR middle-end/71585
15000 * common.opt (flag_stack_protect): Mark the flag as optimization flag.
15001 * ipa-inline-transform.c (inline_call): Remove unnecessary call
15002 of build_optimization_node.
15003
15004 2016-06-29 Yuri Rumyantsev <ysrumyan@gmail.com>
15005
15006 PR tree-optimization/70729
15007 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
15008 independent in loops having positive safelen value.
15009 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
15010 it may be not valid after vectorization.
15011
15012 2016-06-29 Jakub Jelinek <jakub@redhat.com>
15013
15014 PR tree-optimization/71625
15015 * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument. Assume list
15016 is sorted by ascending list->offset. If PTR is non-NULL and there is
15017 previous strinfo, call get_stridx_plus_constant.
15018 (get_stridx): Pass exp as second argument to get_addr_stridx.
15019 (addr_stridxptr): Add missing list = list->next, so that there can be
15020 more than one entries in the list. Bump limit from 16 to 32. Ensure
15021 the list is sorted by ascending list->offset.
15022 (get_stridx_plus_constant): Adjust so that it can be also called with
15023 ADDR_EXPR instead of SSA_NAME as PTR.
15024 (handle_char_store): Pass NULL_TREE as second argument to
15025 get_addr_stridx.
15026
15027 2016-06-29 Richard Biener <rguenther@suse.de>
15028
15029 PR rtl-optimization/68961
15030 * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
15031
15032 2016-06-29 Richard Biener <rguenther@suse.de>
15033
15034 PR middle-end/71002
15035 * alias.c (component_uses_parent_alias_set_from): Handle
15036 type punning through union accesses by using the union alias set.
15037 * gimple.c (gimple_get_alias_set): Remove union type punning case.
15038
15039 2016-07-29 Richard Biener <rguenther@suse.de>
15040
15041 * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
15042 precision not matching mode precision.
15043
15044 2016-06-28 John David Anglin <danglin@gcc.gnu.org>
15045
15046 * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
15047 pa_output_arg_descriptor.
15048 (call_val_symref_64bit_post_reload): Likewise.
15049 (call_val_powf_64bit_post_reload): Likewise.
15050 (sibcall_internal_symref_64bit): Likewise.
15051 (sibcall_value_internal_symref_64bit): Likewise.
15052
15053 2016-06-28 Jakub Jelinek <jakub@redhat.com>
15054
15055 PR middle-end/71626
15056 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
15057 a constant, force its SUBREG_REG into memory or register instead
15058 of whole op1.
15059
15060 2016-06-28 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
15061
15062 PR target/58655
15063 * config/avr/avr.opt (-mfract-convert-truncate): Update description.
15064 * doc/invoke.texi (AVR Options): Document it.
15065
15066 2016-06-28 Walter Lee <walt@tilera.com>
15067
15068 * config/tilegx/linux.h: Do not include arch/icache.h
15069 (CLEAR_INSN_CACHE): Provide inlined definition directly.
15070 * config/tilepro/linux.h: Do not include arch/icache.h
15071 (CLEAR_INSN_CACHE): Provide inlined definition directly.
15072
15073 2016-06-28 Wilco Dijkstra <wdijkstr@arm.com>
15074
15075 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
15076 for big-endian BIT_FIELD_REF.
15077
15078 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
15079
15080 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
15081 ('size' attribute): Add '128'.
15082 Include power9.md.
15083 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
15084 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
15085 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
15086 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
15087 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
15088 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
15089 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
15090 *trunc<mode>df2_odd): Set size attribute to '128'.
15091 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
15092 * config/rs6000/power6.md (power6-fp): Include dfp type.
15093 * config/rs6000/power7.md (power7-fp): Likewise.
15094 * config/rs6000/power8.md (power8-fp): Likewise.
15095 * config/rs6000/power9.md: New file.
15096 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
15097 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
15098 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
15099 htmsimple.
15100 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
15101 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
15102 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
15103 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
15104 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
15105 dfp_dscri_<mode>): Change type attribute to dfp.
15106 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
15107 attribute to vecsimple.
15108 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
15109 and prefetch streams.
15110 (rs6000_option_override_internal): Remove temporary code setting
15111 tuning to power8. Don't set rs6000_sched_groups for power9.
15112 (last_scheduled_insn): Change to rtx_insn *.
15113 (divide_cnt, vec_load_pendulum): New variables.
15114 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
15115 (rs6000_issue_rate): Set issue rate for Power9.
15116 (is_power9_pairable_vec_type): New.
15117 (power9_sched_reorder2): New.
15118 (rs6000_sched_reorder2): Call new function for Power9 specific
15119 reordering.
15120 (insn_must_be_first_in_group): Remove Power9.
15121 (insn_must_be_last_in_group): Likewise.
15122 (force_new_group): Likewise.
15123 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
15124 Initialize divide_cnt/vec_load_pendulum.
15125 (_rs6000_sched_context, rs6000_init_sched_context,
15126 rs6000_set_sched_context): Handle context save/restore of new
15127 variables.
15128
15129 2016-06-28 Richard Biener <rguenther@suse.de>
15130
15131 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
15132 Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
15133 COMPONENT_REF operand.
15134 (nonoverlapping_component_refs_p): Likewise.
15135 * stor-layout.c (start_bitfield_representative): Mark
15136 DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
15137
15138 2016-06-28 Jakub Jelinek <jakub@redhat.com>
15139
15140 * Makefile.in: Don't cat ../stage_current if it does not exist.
15141
15142 * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
15143 last argument is a bit-field.
15144
15145 PR rtl-optimization/71673
15146 * internal-fn.c (expand_arith_overflow_result_store): Use
15147 OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
15148 expand_simple_binop.
15149
15150 PR middle-end/66867
15151 * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
15152 expand_ifn_atomic_compare_exchange): New functions.
15153 * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
15154 * tree.h (build_call_expr_internal_loc): Rename to ...
15155 (build_call_expr_internal_loc_array): ... this. Fix up type of
15156 last argument.
15157 * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
15158 * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
15159 ATOMIC_COMPARE_EXCHANGE result.
15160 * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
15161 * gimple-fold.h (optimize_atomic_compare_exchange_p,
15162 fold_builtin_atomic_compare_exchange): New prototypes.
15163 * gimple-fold.c (optimize_atomic_compare_exchange_p,
15164 fold_builtin_atomic_compare_exchange): New functions..
15165 * tree-ssa.c (execute_update_addresses_taken): If
15166 optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
15167 of call when finding addressable vars, and if such var becomes
15168 non-addressable, call fold_builtin_atomic_compare_exchange.
15169
15170 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
15171
15172 PR target/71670
15173 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
15174 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
15175
15176 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
15177
15178 * config/rs6000/rs6000.md ('type' attribute): Add
15179 veclogical,veccmpfx,vecexts,vecmove insn types.
15180 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
15181 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
15182 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
15183 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
15184 *nabs<mode>2_hw): Change type to vecmove.
15185 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
15186 *boolcc<mode>3_internal, *eqv<mode>3_internal,
15187 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
15188 *ieee_128bit_vsx_abs<mode>2_internal,
15189 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
15190 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
15191 *ieee128_mtvsrd_32bit): Change type to veclogical.
15192 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
15193 *movdi_internal32, *movdi_internal64): Update insn types.
15194 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
15195 vsx_extract_<mode>): Change type to veclogical.
15196 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
15197 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
15198 *vsx_sign_extend_si_v2di): Change type to vecexts.
15199 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
15200 type to veclogical.
15201 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
15202 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
15203 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
15204 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
15205 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
15206 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
15207 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
15208 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
15209 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
15210 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
15211 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
15212 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
15213 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
15214 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
15215 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
15216 (ppc7450-vecsimple): Add veclogical, vecmove.
15217 (ppc7450-veccmp): Add veccmpfx.
15218 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
15219 vecmove.
15220 (ppc8540_vector_compare): Add veccmpfx.
15221 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
15222 * config/rs6000/cell.md (cell-fp): Add fpsimple.
15223 (cell-vecsimple): Add veclogical, vecmove.
15224 (cell-veccmp): Add veccmpfx.
15225 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
15226 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
15227 veccmpfx.
15228 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
15229 * config/rs6000/power4.md (power4-fp): Add fpsimple.
15230 (power4-vecsimple): Add veclogical, vecmove.
15231 (power4-veccmp): Add veccmpfx.
15232 * config/rs6000/power5.md (power5-fp): Add fpsimple.
15233 * config/rs6000/power6.md (power6-fp): Add fpsimple.
15234 (power6-vecsimple): Add veclogical, vecmove.
15235 (power6-veccmp): Add veccmpfx.
15236 * config/rs6000/power7.md (power7-fp): Add fpsimple.
15237 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
15238 * config/rs6000/power8.md (power8-fp): Add fpsimple.
15239 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
15240 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
15241 * config/rs6000/titan.md (titan_fp): Add fpsimple.
15242 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
15243 fpsimple.
15244 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
15245
15246 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
15247
15248 PR target/71656
15249 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
15250 OPTION_MASK_P9_DFORM_VECTOR.
15251 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
15252 disable -mpower9-dform-vector when using reload.
15253 (quad_address_p): Remove 'gpr_p' argument and all associated code.
15254 New 'strict' argument. Update all callers. Add strict addressing
15255 support.
15256 (rs6000_legitimate_offset_address_p): Remove call to
15257 virtual_stack_registers_memory_p.
15258 (rs6000_legitimize_reload_address): Add quad address support.
15259 (rs6000_legitimate_address_p): Move call to quad_address_p above
15260 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
15261 to account for new strict usage.
15262 (rs6000_output_move_128bit): Adjust quad_address_p args to account
15263 for new strict usage.
15264 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
15265
15266 2016-06-26 Uros Bizjak <ubizjak@gmail.com>
15267
15268 PR target/70902
15269 PR target/71453
15270 PR target/71555
15271 PR target/71596
15272 PR target/71657
15273 * config/i386/i386.c (ix86_spill_class): Disable condition to
15274 always return NO_REGS.
15275
15276 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
15277
15278 * predict.c: Include gimple-pretty-print.h
15279 (predicted_by_loop_heuristics_p): Check also
15280 PRED_LOOP_EXIT_WITH_RECURSION
15281 (predict_loops): Find self recursive calls and use special purpose
15282 predictors for them; dump log about decisions.
15283 (pass_profile::execute): Dump info about #of iterations.
15284 * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
15285 (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
15286
15287 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
15288
15289 * config/pa/pa.c (pa_output_indirect_call): Rework to combine
15290 output_asm_insn calls and shorten long lines. Output .CALL
15291 argument descriptor using pa_output_arg_descriptor. Add various
15292 inline $$dyncall and other optimizations.
15293 (pa_attr_length_indirect_call): Adjust ordering and lengths.
15294
15295 2016-06-25 Jakub Jelinek <jakub@redhat.com>
15296
15297 PR tree-optimization/71643
15298 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
15299 EH preds.
15300
15301 * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
15302 leak a bitmap if dep_bb is NULL.
15303
15304 PR tree-optimization/71631
15305 * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
15306 to rewrite_expr_tree even if negate_result, move new_lhs var
15307 declaration and initialization earlier, for powi_result set afterwards
15308 new_lhs to lhs. For negate_result, use new_lhs instead of tmp
15309 if new_lhs != lhs, and don't shadow gsi var.
15310
15311 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
15312
15313 * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
15314 Add in_loop parameter.
15315 (predict_loops): Add loop guard heuristics.
15316 * predict.def (PRED_LOOP_GUARD): New heuristics.
15317
15318 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
15319
15320 * predict.c: Include ipa-utils.h
15321 (tree_bb_level_prediction): Predict recursive calls.
15322 (tree_estimate_probability_bb): Skip inexpensive calls for call
15323 predictor.
15324 * predict.def (PRED_RECURSIVE_CALL): New.
15325
15326 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15327
15328 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
15329 (BU_FLOAT128_1): Likewise.
15330 (FABSQ): Likewise.
15331 (COPYSIGNQ): Likewise.
15332 (RS6000_BUILTIN_NANQ): Likewise.
15333 (RS6000_BUILTIN_NANSQ): Likewise.
15334 (RS6000_BUILTIN_INFQ): Likewise.
15335 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
15336 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
15337 (TARGET_FOLD_BUILTIN): New #define.
15338 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
15339 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
15340 (rs6000_fold_builtin): New target hook implementation, handling
15341 folding of 128-bit NaNs and infinities.
15342 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
15343 entries are filled in to avoid problems during bootstrap
15344 self-test; define builtins for 128-bit NaNs and infinities.
15345 (rs6000_opt_mask): Add entry for float128.
15346 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
15347 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
15348 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
15349 (const_str_type_node): New #define.
15350 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
15351 to a define_expand that dispatches to either copysign<mode>3_soft
15352 or copysign<mode>3_hard.
15353 (copysign<mode>3_hard): Rename from copysign<mode>3.
15354 (copysign<mode>3_soft): New define_insn.
15355 * doc/extend.texi: Document new builtins.
15356
15357 2016-06-24 Jakub Jelinek <jakub@redhat.com>
15358
15359 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
15360 PRIu64 instead of lu.
15361
15362 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
15363
15364 PR debug/71642
15365 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
15366 copy the type name.
15367
15368 2016-06-24 Jakub Jelinek <jakub@redhat.com>
15369
15370 PR tree-optimization/71647
15371 * omp-low.c (lower_rec_input_clauses): Convert
15372 omp_clause_aligned_alignment (c) to size_type_node for the
15373 last argument of __builtin_assume_aligned.
15374
15375 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
15376
15377 * configure.ac (calling ___tls_get_addr via GOT): New
15378 assembler/linker check.
15379 (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New. Defined to 1 if 32-bit
15380 assembler and linker supports calling ___tls_get_addr via GOT.
15381 Otherise, defined to 0.
15382 * config.in: Regenerated.
15383 * configure: Likewise.
15384 * config/i386/constraints.md (Yb): New constraint.
15385 * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
15386 (REG_CLASS_NAMES): Likewise.
15387 (REG_CLASS_CONTENTS): Likewise.
15388 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
15389 the b constraint with the Yb constraint. Call ___tls_get_addr
15390 via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
15391 is 1.
15392 (*tls_local_dynamic_base_32_gnu): Likewise.
15393 (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
15394 GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
15395 (*tls_local_dynamic_base_64_<mode>): Likewise.
15396
15397 2016-06-24 Martin Liska <mliska@suse.cz>
15398
15399 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
15400 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
15401 few functions.
15402 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
15403 argument to true if the expected number of iterations is
15404 loop-based.
15405
15406 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
15407
15408 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
15409 assemble for 32bit target.
15410 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
15411 and $ld_ix86_gld_32_opt to link for 32bit target.
15412 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
15413 * configure: Regenerate.
15414
15415 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15416
15417 * config/arm/arm.c (int_log2): Delete definition and prototype.
15418 (shift_op): Use exact_log2 instead of int_log2.
15419 (vfp3_const_double_for_fract_bits): Likewise.
15420
15421 2016-06-24 Jakub Jelinek <jakub@redhat.com>
15422
15423 * internal-fn.c (expand_arith_set_overflow): New function.
15424 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
15425 Use it.
15426 (expand_arith_overflow_result_store): Likewise. Handle precision
15427 smaller than mode precision.
15428 * tree-vrp.c (extract_range_basic): For imag part, handle
15429 properly signed 1-bit precision result.
15430 * doc/extend.texi (__builtin_add_overflow): Document that last
15431 argument can't be pointer to enumerated or boolean type.
15432 (__builtin_add_overflow_p): Document that last argument can't
15433 have enumerated or boolean type.
15434
15435 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
15436 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15437
15438 * config/rs6000/predicates.md (splat_input_operand): Rework.
15439 Don't allow constants, since the insns that use this predicate
15440 don't support constants. Constants are handled by other insns
15441 that are created via combine. During and after register
15442 allocation, only allow indexed or indirect addresses, and not
15443 general addresses. Only allow modes supported by the hardware.
15444 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
15445 comment. Move check for using VSPLTIS<x> to a common location,
15446 instead of doing it in two different places.
15447
15448 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
15449
15450 * config/i386/driver-i386.c (host_detect_local_cpu): Set
15451 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
15452 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
15453 signature_CENTAUR_ebx.
15454
15455 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
15456
15457 PR target/66232
15458 PR target/67400
15459 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
15460 (as_ix86_gas_32_opt): This.
15461 (ld_ix86_tls_ldm_opt): Renamed to ...
15462 (ld_ix86_gld_32_opt): This.
15463 (R_386_TLS_LDM reloc): Updated.
15464 (R_386_GOT32X reloc): New assembler/linker check.
15465 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
15466 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
15467 defined to 0.
15468 * config.in: Regenerated.
15469 * configure: Likewise.
15470 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
15471 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
15472 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
15473 if ix86_force_load_from_GOT_p returns true.
15474 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
15475 ix86_force_load_from_GOT_p returns true.
15476 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
15477 the external function address via the GOT slot.
15478 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
15479 HAVE_AS_IX86_GOT32X before returning false.
15480 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
15481 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
15482
15483 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
15484
15485 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
15486
15487 2016-06-23 Andi Kleen <ak@linux.intel.com>
15488
15489 * Makefile.in: Regenerate.
15490 * doc/install.texi: Document autoprofiledbootstrap.
15491
15492 2016-06-23 Andi Kleen <ak@linux.intel.com>
15493
15494 * config/i386/gcc-auto-profile: New file.
15495
15496 2016-06-23 Martin Liska <mliska@suse.cz>
15497
15498 PR middle-end/71619
15499 * predict.c (predict_loops): Revert the hunk that was removed
15500 in r237103.
15501
15502 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
15503
15504 * config.gcc: Add support for arm*-*-phoenix* targets.
15505 * config/arm/t-phoenix: New.
15506 * config/phoenix.h: New.
15507
15508 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
15509 H.J. Lu <hongjiu.lu@intel.com>
15510
15511 PR target/67400
15512 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
15513 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
15514 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
15515 ix86_force_load_from_GOT_p returns true.
15516 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
15517 ix86_force_load_from_GOT_p returns true.
15518 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
15519 ix86_force_load_from_GOT_p returns true.
15520 (ix86_expand_move): Load the external function address via the
15521 GOT slot if ix86_force_load_from_GOT_p returns true.
15522 * config/i386/predicates.md (x86_64_immediate_operand): Return
15523 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
15524 (x86_64_zext_immediate_operand): Ditto.
15525
15526 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
15527
15528 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
15529
15530 2016-06-22 David Malcolm <dmalcolm@redhat.com>
15531
15532 PR c/70339
15533 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
15534 * diagnostic.c (pedwarn_at_rich_loc): New function.
15535 * spellcheck.h (best_match::best_match): Add a
15536 "best_distance_so_far" optional parameter.
15537 (best_match::set_best_so_far): New method.
15538 (best_match::get_best_distance): New accessor.
15539 (best_match::get_best_candidate_length): New accessor.
15540
15541 2016-06-22 Nick Clifton <nickc@redhat.com>
15542
15543 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
15544 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
15545 modes are accepted as well.
15546 (ucompare_loc_descriptor): Likewise.
15547 (minmax_loc_descriptor): Likewise.
15548 (clz_loc_descriptor): Likewise.
15549 (popcount_loc_descriptor): Likewise.
15550 (bswap_loc_descriptor): Likewise.
15551 (rotate_loc_descriptor): Likewise.
15552 (mem_loc_descriptor): Likewise.
15553 (loc_descriptor): Likewise.
15554
15555 2016-06-22 David Malcolm <dmalcolm@redhat.com>
15556
15557 * common.opt (fdiagnostics-parseable-fixits): New option.
15558 * diagnostic.c: Include "selftest.h".
15559 (print_escaped_string): New function.
15560 (print_parseable_fixits): New function.
15561 (diagnostic_report_diagnostic): Call print_parseable_fixits.
15562 (selftest::assert_print_escaped_string): New function.
15563 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
15564 (selftest::test_print_escaped_string): New function.
15565 (selftest::test_print_parseable_fixits_none): New function.
15566 (selftest::test_print_parseable_fixits_insert): New function.
15567 (selftest::test_print_parseable_fixits_remove): New function.
15568 (selftest::test_print_parseable_fixits_replace): New function.
15569 (selftest::diagnostic_c_tests): New function.
15570 * diagnostic.h (struct diagnostic_context): Add field
15571 "parseable_fixits_p".
15572 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
15573 -fdiagnostics-parseable-fixits.
15574 (-fdiagnostics-parseable-fixits): New option.
15575 * opts.c (common_handle_option): Handle
15576 -fdiagnostics-parseable-fixits.
15577 * selftest-run-tests.c (selftest::run_tests): Call
15578 selftest::diagnostic_c_tests.
15579 * selftest.h (selftest::diagnostic_c_tests): New prototype.
15580
15581 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
15582
15583 PR tree-optimization/71488
15584 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
15585 comparison of boolean vectors.
15586 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
15587 of boolean vectors using bitwise operations.
15588
15589 2016-06-22 Andreas Schwab <schwab@suse.de>
15590
15591 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
15592 Remove declaration.
15593
15594 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
15595
15596 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
15597
15598 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
15599
15600 * config/i386/i386.c (print_reg): Emit an error message on attempt to
15601 print FLAGS_REG.
15602
15603 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15604
15605 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
15606 * config/arm/arm-cores.def (cortex-a73): New entry.
15607 (cortex-a73.cortex-a35): Likewise.
15608 (cortex-a73.cortex-a53): Likewise.
15609 * config/arm/arm-tables.opt: Regenerate.
15610 * config/arm/arm-tune.md: Likewise.
15611 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
15612 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
15613 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
15614 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
15615 * doc/invoke.texi (ARM Options): Document cortex-a73,
15616 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
15617
15618 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15619
15620 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
15621 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
15622 (cortex-a73.cortex-a35): Likewise.
15623 (cortex-a73.cortex-a53): Likewise.
15624 * config/aarch64/aarch64-tune.md: Regenerate.
15625 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
15626 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
15627 -mcpu and -mtune.
15628
15629 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15630
15631 * configure.ac (gcc_cv_as_compress_debug): Remove
15632 --compress-debug-sections as extra as switch.
15633 Handle gas --compress-debug-sections=type.
15634 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
15635 Handle gld --compress-debug-sections=type.
15636 * configure: Regenerate.
15637
15638 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
15639
15640 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
15641
15642 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
15643
15644 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
15645 (do_rewrite): likewise.
15646
15647 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15648
15649 * common/config/mep/mep-common.c: Remove.
15650 * config.gcc: Remove mep-* support.
15651 * config/mep/constraints.md: Remove.
15652 * config/mep/default.h: Remove.
15653 * config/mep/intrinsics.h: Remove.
15654 * config/mep/intrinsics.md: Remove.
15655 * config/mep/ivc2-template.h: Remove.
15656 * config/mep/mep-c5.cpu: Remove.
15657 * config/mep/mep-core.cpu: Remove.
15658 * config/mep/mep-default.cpu: Remove.
15659 * config/mep/mep-ext-cop.cpu: Remove.
15660 * config/mep/mep-intrin.h: Remove.
15661 * config/mep/mep-ivc2.cpu: Remove.
15662 * config/mep/mep-pragma.c: Remove.
15663 * config/mep/mep-protos.h: Remove.
15664 * config/mep/mep.c: Remove.
15665 * config/mep/mep.cpu: Remove.
15666 * config/mep/mep.h: Remove.
15667 * config/mep/mep.md: Remove.
15668 * config/mep/mep.opt: Remove.
15669 * config/mep/predicates.md: Remove.
15670 * config/mep/t-mep: Remove.
15671 * doc/install.texi: Remove mep-* documentation.
15672 * doc/md.texi: Likewise.
15673
15674 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15675
15676 * config.gcc: Remove support for avr-rtems.
15677 * config/avr/gen-avr-mmcu-specs.c: Likewise.
15678 * config/avr/rtems.h: Remove.
15679 * config/avr/t-rtems: Remove.
15680
15681 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15682
15683 * config.gcc: Remove m32r-rtems support.
15684 * config/m32r/rtems.h: Remove.
15685
15686 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15687
15688 * config.gcc: Remove h8300-rtems support.
15689 * config/h8300/rtems.h: Remove.
15690 * config/h8300/t-rtems: Remove.
15691
15692 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15693
15694 * config.gcc: Remove support for knetbsd.
15695 * configure.ac: Likewise.
15696 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
15697 * config/knetbsd-gnu.h: Remove.
15698 * configure: Regenerate.
15699
15700 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15701
15702 * config.gcc: Remove support for openbsd 2 and 3.
15703 * config/openbsd-oldgas.h: Remove.
15704
15705 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15706
15707 * config.gcc: Remove interix support.
15708 * config/i386/i386-interix.h: Remove.
15709 * config/i386/interix.opt: Remove.
15710 * config/i386/t-interix: Remove.
15711 * configure: Regenerate.
15712 * configure.ac: Remove interix support.
15713 * doc/install.texi: Remove interix documentation.
15714
15715 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
15716
15717 * config/rs6000/rs6000.h: Add conditional preprocessing directives
15718 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
15719 not defined.
15720
15721 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
15722
15723 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
15724 they are both PLACEHOLDER_EXPRs.
15725
15726 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
15727
15728 * stor-layout.c (layout_type): Move setting complex MODE to
15729 layout_type, instead of setting it ahead of time by the caller.
15730 * tree.c (build_complex_type): Likewise.
15731
15732 2016-06-21 Martin Liska <mliska@suse.cz>
15733
15734 * predict.c (force_edge_cold): Replace imposisble with
15735 impossible.
15736
15737 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
15738
15739 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
15740 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
15741
15742 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
15743
15744 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
15745
15746 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
15747 Ilya Enkovich <ilya.enkovich@intel.com>
15748
15749 PR target/71549
15750 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
15751 New member function to convert V1TImode register to SUBREG
15752 TImode in debug insn.
15753 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
15754 after changing register mode to V1TImode.
15755
15756 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
15757
15758 * config/aarch64/aarch64-cores.def (vulcan): New core.
15759 * config/aarch64/aarch64-tune.md: Regenerate.
15760 * doc/invoke.texi: Document vulcan as an available option.
15761
15762 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
15763
15764 * cse.c (canon_asm_operands): New function extracted from...
15765 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
15766 either standalone or member of a PARALLEL.
15767
15768 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
15769
15770 PR target/30417
15771 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
15772 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
15773 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
15774
15775 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
15776
15777 PR target/71103
15778 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
15779 constant addresses if can_create_pseudo_p.
15780
15781 2016-06-21 Jakub Jelinek <jakub@redhat.com>
15782
15783 PR tree-optimization/71588
15784 * tree-ssa-strlen.c (valid_builtin_call): New function.
15785 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
15786 it.
15787
15788 2016-06-20 Jakub Jelinek <jakub@redhat.com>
15789
15790 PR middle-end/71581
15791 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
15792 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
15793 for conversion of scalar user var to complex type and use the
15794 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
15795 punt.
15796
15797 PR rtl-optimization/71591
15798 * toplev.c (toplev::run_self_tests): If no_backend, complain and
15799 don't run any tests.
15800
15801 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
15802
15803 PR target/71571
15804 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
15805 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
15806 space for PIC with non-v32 and the common non-PIC "jump".
15807
15808 2016-06-20 Jakub Jelinek <jakub@redhat.com>
15809
15810 PR target/71559
15811 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
15812 returned values and add UN*/LTGT/*ORDERED cases with values matching
15813 D operand modifier on vcmp for AVX.
15814
15815 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
15816
15817 * config/aarch64/aarch64.opt
15818 (mpc-relative-literal-loads): Rename internal option name.
15819 * config/aarch64/aarch64.c
15820 (aarch64_nopcrelative_literal_loads): Rename to
15821 aarch64_pcrelative_literal_loads.
15822 (aarch64_expand_mov_immediate): Likewise.
15823 (aarch64_secondary_reload): Likewise.
15824 (aarch64_can_use_per_function_literal_pools_p): Likewise.
15825 (aarch64_override_options_after_change_1): Rename and simplify logic.
15826 (aarch64_classify_symbol): Merge large model checks into switch,
15827 remove pc-relative load check.
15828
15829 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
15830
15831 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
15832 costs relative to the cost of a register move.
15833
15834 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
15835
15836 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
15837 (vcvt_n_f64_u64): Likewise.
15838 (vcvt_n_s64_f64): Likewise.
15839 (vcvt_n_u64_f64): Likewise.
15840 (vcvt_f64_s64): Likewise.
15841 (vrecpe_f64): Likewise.
15842 (vcvt_f64_u64): Likewise.
15843 (vrecps_f64): Likewise.
15844
15845 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
15846
15847 * config/aarch64/aarch64.md
15848 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
15849 iterators.
15850 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
15851 attributes.
15852 * config/aarch64/aarch64-builtins.c
15853 (aarch64_types_binop_uss_qualifiers): Delete.
15854 (TYPES_BINOP_USS): Likewise.
15855 (aarch64_types_binop_sus_qualifiers): Likewise.
15856 (TYPES_BINOP_SUS): Likewise.
15857 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
15858 (TYPES_FCVTIMM_SUS): Likewise.
15859 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
15860 rather than BINOP.
15861 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
15862 (fcvtzs): Use SHIFTIMM rather than BINOP.
15863 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
15864
15865 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
15866
15867 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
15868 costs relative to the cost of a register move.
15869
15870 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
15871
15872 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
15873 Allow scalar/single vector modes to be tieable.
15874
15875 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
15876
15877 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
15878
15879 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15880
15881 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
15882 "alignement".
15883 * tree.h (TYPE_ALIGN): Likewise.
15884
15885 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
15886
15887 PR target/71103
15888 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
15889
15890 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
15891
15892 * config/avr/avr.c (avr_print_operand): Fix "format not a string
15893 literal" build warnings.
15894 (avr_print_operand_address): Dito.
15895
15896 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
15897
15898 PR target/71375
15899 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
15900 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
15901
15902 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
15903
15904 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
15905
15906 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
15907
15908 PR bootstrap/71435
15909 * reload1.c (reload): Pass 0 to finish_spills when called because
15910 update_eliminables_and_spill returns true and remove did_spill.
15911 (finish_spills): Adjust comment and document GLOBAL parameter.
15912
15913 2016-06-17 DJ Delorie <dj@redhat.com>
15914
15915 PR target/71338
15916 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
15917 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
15918 (umulqihi3_virt): Likewise.
15919 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
15920 (umulqihi3_real): Likewise.
15921
15922 2016-06-17 Martin Liska <mliska@suse.cz>
15923
15924 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
15925
15926 2016-06-17 Martin Liska <mliska@suse.cz>
15927
15928 * predict.def: PRED_LOOP_EXIT from 92 to 85.
15929
15930 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
15931
15932 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
15933 __FAST_MATH__.
15934 (vaddq_f32): Likewise.
15935 (vmul_f32): Likewise.
15936 (vmulq_f32): Likewise.
15937 (vsub_f32): Likewise.
15938 (vsubq_f32): Likewise.
15939
15940 2016-06-17 Bin Cheng <bin.cheng@arm.com>
15941
15942 PR tree-optimization/71347
15943 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
15944 cost for all uses in group.
15945
15946 2016-06-17 Bin Cheng <bin.cheng@arm.com>
15947
15948 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
15949 insert gimple seq if it's not empty.
15950
15951 2016-06-17 Bin Cheng <bin.cheng@arm.com>
15952
15953 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
15954 member OFFSET.
15955 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
15956 rather than OFFSET.
15957 (comp_dr_with_seg_len_pair): Ditto.
15958 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
15959 struct dr_with_seg_len_pair against DR_OFFSET.
15960 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
15961 DR_OFFSET directly.
15962
15963 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
15964
15965 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
15966
15967 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
15968
15969 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
15970 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
15971 (pa_output_millicode_call): Likewise.
15972 (pa_output_call): Likewise.
15973 (pa_output_indirect_call): Likewise.
15974 (pa_asm_output_mi_thunk): Likewise.
15975
15976 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15977
15978 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
15979
15980 2016-06-16 Martin Liska <mliska@suse.cz>
15981
15982 * predict.c (combine_predictions_for_insn): When we find a first
15983 match predictor, we should consider just predictors with
15984 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
15985 DS theory predictor.
15986 (combine_predictions_for_bb): Likewise.
15987
15988 2016-06-16 Jakub Jelinek <jakub@redhat.com>
15989
15990 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
15991 with base of reference to struct.
15992
15993 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
15994
15995 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
15996
15997 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
15998
15999 PR target/71151
16000 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
16001 progmem_swtable_section.
16002 (progmem_swtable_section): Remove.
16003 (avr_asm_function_rodata_section): Remove.
16004 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
16005 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
16006
16007 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
16008
16009 * config/i386/driver-i386.c (host_detect_local_cpu): Set
16010 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
16011 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
16012 signature_CENTAUR_ebx.
16013 * config/i386/i386.c (ix86_option_override_internal): Add
16014 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
16015 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
16016 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
16017
16018 2016-06-16 Martin Liska <mliska@suse.cz>
16019
16020 * predict.def: Add fortran loop preheader predictor.
16021 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
16022 fold IFN_BUILTIN_EXPECT with a known constant argument.
16023
16024 2016-06-16 Martin Liska <mliska@suse.cz>
16025
16026 * predict.def: Add 'Fortran' to display text of all
16027 PRED_FORTRAN_* predictors.
16028
16029 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
16030
16031 PR target/71242
16032 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
16033 [IA64_BUILTIN_NANSQ]: Ditto.
16034 (ia64_fold_builtin): New function.
16035 (TARGET_FOLD_BUILTIN): New define.
16036 (ia64_init_builtins) Declare const_string_type node.
16037 Add __builtin_nanq and __builtin_nansq builtin functions.
16038 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
16039
16040 2016-06-16 Nick Clifton <nickc@redhat.com>
16041
16042 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
16043 MSP430_HWMULT_ prefix to enum values.
16044 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
16045 * config/msp430/msp430.c: Update use of enum values.
16046 * config/msp430/msp430.md: Likewise.
16047 * config/msp430/msp430.opt: Likewise.
16048
16049 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
16050
16051 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
16052 of comparsions in the last iteration.
16053
16054 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
16055 Joern Rennecke <joern.rennecke@embecosm.com>
16056
16057 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
16058 addresses.
16059 (arc_needs_pcl_p): Add GOTOFFPC.
16060 (arc_legitimate_pic_addr_p): Likewise.
16061 (arc_output_pic_addr_const): Likewise.
16062 (arc_legitimize_pic_address): Generate a pc-relative address using
16063 GOTOFFPC.
16064 (arc_output_libcall): Use @pcl syntax.
16065 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
16066 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
16067 (*movsi_insn): Use @pcl syntax.
16068 (doloop_begin_i): Likewise.
16069
16070 2016-06-16 Martin Liska <mliska@suse.cz>
16071
16072 * predict.def: Define a new predictor.
16073
16074 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
16075
16076 * config/arc/arc.opt (mtp-regno): Update text.
16077
16078 2016-06-16 Renlin Li <renlin.li@arm.com>
16079
16080 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
16081
16082 2016-06-16 Jakub Jelinek <jakub@redhat.com>
16083
16084 PR target/71554
16085 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
16086 (setcc + and peephole2): Likewise.
16087
16088 PR rtl-optimization/71532
16089 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
16090 memory slots.
16091
16092 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
16093
16094 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
16095 DImode constants with XXSPLTIB in vector registers.
16096 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
16097 vsx_extract_<mode>_internal{1,2} into a single insn that handles
16098 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
16099 extraction of the element at the top of the register as a scalar
16100 value.
16101 (vsx_extract_<mode>_internal1): Likewise.
16102 (vsx_extract_<mode>_internal2): Likewise.
16103 * config/rs6000/constraints.md (wi constraint): Remove a comment
16104 about DImode not being allowed in Altivec registers.
16105 (wB constraint): New constraint for constants that can be
16106 generated in Altivec registers with VSPLTISW/VUPKHSW.
16107 * config/rs6000/predicates.md (xxspltib_constant_split): Update
16108 comments.
16109 (xxspltib_constant_nosplit): Likewise.
16110 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
16111 support for -mupper-regs-di to enable DImode to go into Altivec
16112 registers.
16113 (POWERPC_MASKS): Likewise.
16114 (power7 cpu): Likewise.
16115 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
16116 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
16117 for DImode being allowed in Altivec registers. Update wi/wj
16118 constraints. Set scalar_in_vmx_p flag.
16119 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
16120 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
16121 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
16122 (rs6000_opt_masks): Add -mupper-regs-di.
16123 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
16124 direct move to use wi and not wj.
16125 (lfiwzx): Likewise.
16126 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
16127 alternative.
16128 (floatunssi<mode>2_lfiwzx_mem): Likewise.
16129 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
16130 any VSX register, instead of just Altivec registers, to allow
16131 either operand to be an Altivec register or both.
16132 (fixuns_trunc<mode>di2_fctiduz): Likewise.
16133 (movdi_internal32): Add support for -mupper-regs-di. Add support
16134 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
16135 the alternatives and attributes to be lined up to be easier to
16136 read.
16137 (movdi_internal64): Likewise.
16138 (64-bit DImode splitters): Change predicates to only split loading
16139 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
16140 load constants in ISA 3.0 or ISA 2.07 respectively.
16141 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
16142 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
16143 mention -mcpu=power9 sets these options.
16144 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
16145 wB constraint.
16146
16147 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
16148
16149 PR target/67353
16150 * config/avr/avr.c (avr_set_current_function): Warn misspelled
16151 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
16152 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
16153 by default to warn misspelled interrupt/ signal handler.
16154 * doc/invoke.texi (AVR Options): Document it. Update description
16155 for -nodevicelib option.
16156
16157 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16158
16159 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
16160 up parentheses. Use GET_MODE_UNIT_BITSIZE.
16161 (aarch64_<sur>shll2_n<mode>): Likewise.
16162
16163 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
16164
16165 PR middle-end/71529
16166 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
16167 DECL_CONTEXT for copied arguments.
16168
16169 2016-06-15 Alan Hayward <alan.hayward@arm.com>
16170
16171 PR tree-optimization/71483
16172 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
16173 for slp
16174
16175 2016-06-15 Martin Liska <mliska@suse.cz>
16176
16177 * predict.c (tree_predict_by_opcode): Call predict_edge_def
16178 instead of predict_edge w/o a probability.
16179
16180 2016-06-15 Alan Hayward <alan.hayward@arm.com>
16181
16182 PR tree-optimization/71439
16183 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
16184 live PHIs.
16185
16186 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16187
16188 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
16189 register subregs in SET_SRC.
16190
16191 2016-06-15 Richard Biener <rguenther@suse.de>
16192
16193 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
16194 store restrictions.
16195
16196 2016-06-15 Richard Biener <rguenther@suse.de>
16197
16198 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
16199 not consider dependences between accesses that belong to the
16200 same group.
16201 (vect_analyze_data_ref_dependences): Do not analyze read-read
16202 or self-dependences.
16203
16204 2016-06-14 David Malcolm <dmalcolm@redhat.com>
16205
16206 * spellcheck-tree.c: Include spellcheck-tree.h rather than
16207 spellcheck.h.
16208 (find_closest_identifier): Reimplement in terms of
16209 best_match<tree,tree>.
16210 * spellcheck-tree.h: New file.
16211 * spellcheck.c (struct edit_distance_traits<const char *>): New
16212 struct.
16213 (find_closest_string): Reimplement in terms of
16214 best_match<const char *, const char *>.
16215 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
16216 overload to spellcheck-tree.h.
16217 (find_closest_identifier): Likewise.
16218 (struct edit_distance_traits<T>): New template.
16219 (class best_match): New class.
16220
16221 2016-06-14 David Malcolm <dmalcolm@redhat.com>
16222
16223 * selftest-run-tests.c (selftest::run_tests): Call
16224 selftest::spellcheck_tree_c_tests.
16225 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
16226 * spellcheck-tree.c: Include selftest.h and stringpool.h.
16227 (selftest::test_find_closest_identifier): New function.
16228 (selftest::spellcheck_tree_c_tests): New function.
16229 * spellcheck.c (selftest::test_find_closest_string): Verify that
16230 the order of the vec does not affect the results for this case.
16231 (selftest::test_data): New array.
16232 (selftest::test_metric_conditions): New function.
16233 (selftest::spellcheck_c_tests): Add a test of case-comparison.
16234 Call selftest::test_metric_conditions.
16235
16236 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16237
16238 * config/rs6000/rs6000-builtin.def (commentary): Typo.
16239 (BU_P9_MISC_1): Likewise.
16240 (BU_P9_64BIT_MISC_0): Likewise.
16241 (BU_P9_MISC_0): Likewise.
16242
16243 2016-06-14 David Malcolm <dmalcolm@redhat.com>
16244
16245 * gcc-rich-location.c
16246 (gcc_rich_location::add_fixit_misspelled_id): New method.
16247 * gcc-rich-location.h
16248 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
16249
16250 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
16251
16252 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
16253 FreeBSD 11 and above.
16254
16255 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
16256
16257 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
16258
16259 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16260
16261 * expmed.h: Close parenthesis in "at your option" in copyright
16262 boilerplate.
16263 * lower-subreg.h: Likewise.
16264
16265 2016-06-14 Richard Biener <rguenther@suse.de>
16266
16267 PR middle-end/71526
16268 * genmatch.c (expr::gen_transform): Use in_type for comparisons
16269 if available.
16270
16271 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16272
16273 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
16274 New function.
16275 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
16276 mask+shift version.
16277 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
16278 New prototype.
16279 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
16280 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
16281
16282 2016-06-14 Richard Biener <rguenther@suse.de>
16283
16284 PR tree-optimization/71522
16285 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
16286 copying into float copying.
16287
16288 2016-06-14 Jakub Jelinek <jakub@redhat.com>
16289
16290 PR tree-optimization/71520
16291 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
16292 (replace_block_by): Move user labels from bb1 to bb2.
16293
16294 2016-06-14 Richard Biener <rguenther@suse.de>
16295
16296 PR middle-end/71310
16297 PR bootstrap/71510
16298 * expr.h (get_bit_range): Declare.
16299 * expr.c (get_bit_range): Export.
16300 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
16301 word_mode again to constrain the bitfield access.
16302
16303 2016-06-14 Richard Biener <rguenther@suse.de>
16304
16305 PR tree-optimization/71521
16306 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
16307 division int_const_binop against zero divisor.
16308
16309 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
16310
16311 * config/i386/i386.md (signbittf2): New expander.
16312 * config/i386/sse.md (ptesttf2): New insn pattern.
16313
16314 2016-06-13 David Malcolm <dmalcolm@redhat.com>
16315
16316 PR bootstrap/71481
16317 * input.c (selftest::test_reading_source_line): Avoid reading from
16318 __FILE__ by creating a tempfile with known content and reading
16319 from that instead.
16320
16321 2016-06-13 David Malcolm <dmalcolm@redhat.com>
16322
16323 * pretty-print.c (assert_pp_format_colored): Skip the test if
16324 GCC_COLORS is set.
16325 (test_pp_format): Remove comment about GCC_COLORS.
16326
16327 2016-06-13 David Malcolm <dmalcolm@redhat.com>
16328
16329 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
16330 * pretty-print.c (assert_pp_format_va): Add location param and use
16331 it with ASSERT_STREQ_AT.
16332 (assert_pp_format): Add location param and pass it to
16333 assert_pp_format_va.
16334 (assert_pp_format_colored): Likewise.
16335 (ASSERT_PP_FORMAT_1): New.
16336 (ASSERT_PP_FORMAT_2): New.
16337 (ASSERT_PP_FORMAT_3): New.
16338 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
16339 explicitly, or implicitly via the above macros.
16340 * selftest.c (selftest::pass): Use a selftest::location rather
16341 than file and line.
16342 (selftest::fail): Likewise. Print the function name.
16343 (selftest::fail_formatted): Likewise.
16344 (selftest::assert_streq): Use a selftest::location rather than
16345 file and line.
16346 * selftest.h (selftest::location): New struct.
16347 (SELFTEST_LOCATION): New macro.
16348 (selftest::pass): Accept a const location & rather than file
16349 and line.
16350 (selftest::fail): Likewise.
16351 (selftest::fail_formatted): Likewise.
16352 (selftest::assert_streq): Likewise.
16353 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
16354 (ASSERT_FALSE): Likewise.
16355 (ASSERT_EQ): Likewise.
16356 (ASSERT_NE): Likewise.
16357 (ASSERT_STREQ): Likewise.
16358 (ASSERT_PRED1): Likewise.
16359 (ASSERT_STREQ_AT): New macro.
16360
16361 2016-06-13 David Malcolm <dmalcolm@redhat.com>
16362
16363 * selftest.c (selftest::fail_formatted): New function.
16364 (selftest::assert_streq): New function.
16365 * selftest.h (selftests::fail_formatted): New decl.
16366 (selftest::assert_streq): New decl.
16367 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
16368
16369 2016-06-13 Jeff Law <law@redhat.com>
16370
16371 PR tree-optimization/71403
16372 * tree-ssa-threadbackward.c
16373 (convert_and_register_jump_thread_path): No longer accept reference
16374 to path. Do not pop items off the path anymore.
16375 (fsm_find_control_statement_thread_paths): Do not allow threading
16376 to a deeper loop nest. Pop the last item off the path here rather
16377 than in convert_and_register_jump_thread_path.
16378
16379 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
16380 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
16381
16382 [AArch64] Emit division using the Newton series
16383
16384 * config/aarch64/aarch64-protos.h
16385 (cpu_approx_modes): Add new member "division".
16386 (aarch64_emit_approx_div): Declare new function.
16387 * config/aarch64/aarch64.c
16388 (generic_approx_modes): New member "division".
16389 (exynosm1_approx_modes): Likewise.
16390 (xgene1_approx_modes): Likewise.
16391 (aarch64_emit_approx_div): Define new function.
16392 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
16393 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
16394 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
16395 * doc/invoke.texi (-mlow-precision-div): Describe new option.
16396
16397 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
16398 Wilco Dijkstra <wilco.dijkstra@arm.com>
16399
16400 [AArch64] Emit square root using the Newton series
16401
16402 * config/aarch64/aarch64-protos.h
16403 (aarch64_emit_approx_rsqrt): Replace with new function
16404 "aarch64_emit_approx_sqrt".
16405 (cpu_approx_modes): New member "sqrt".
16406 * config/aarch64/aarch64.c
16407 (generic_approx_modes): New member "sqrt".
16408 (exynosm1_approx_modes): Likewise.
16409 (xgene1_approx_modes): Likewise.
16410 (aarch64_emit_approx_rsqrt): Replace with new function
16411 "aarch64_emit_approx_sqrt".
16412 (aarch64_override_options_after_change_1): Handle new option.
16413 * config/aarch64/aarch64-simd.md
16414 (rsqrt<mode>2): Use new function instead.
16415 (sqrt<mode>2): New expansion and insn definitions.
16416 * config/aarch64/aarch64.md: Likewise.
16417 * config/aarch64/aarch64.opt
16418 (mlow-precision-sqrt): Add new option description.
16419 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
16420
16421 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
16422
16423 [AArch64] Add more choices for the reciprocal square root approximation
16424
16425 Allow a target to prefer such operation depending on the operation mode.
16426
16427 * config/aarch64/aarch64-protos.h
16428 (AARCH64_APPROX_MODE): New macro.
16429 (AARCH64_APPROX_{NONE,ALL}): Likewise.
16430 (cpu_approx_modes): New structure.
16431 (tune_params): New member "approx_modes".
16432 * config/aarch64/aarch64-tuning-flags.def
16433 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
16434 * config/aarch64/aarch64.c
16435 (generic_approx_modes): New core "cpu_approx_modes" structure.
16436 (exynosm1_approx_modes): Likewise.
16437 (xgene1_approx_modes): Likewise.
16438 (generic_tunings): New member "approx_modes".
16439 (cortexa35_tunings): Likewise.
16440 (cortexa53_tunings): Likewise.
16441 (cortexa57_tunings): Likewise.
16442 (cortexa72_tunings): Likewise.
16443 (exynosm1_tunings): Likewise.
16444 (thunderx_tunings): Likewise.
16445 (xgene1_tunings): Likewise.
16446 (use_rsqrt_p): New argument for the mode and use new member from
16447 "tune_params".
16448 (aarch64_builtin_reciprocal): Devise mode from builtin.
16449 (aarch64_optab_supported_p): New argument for the mode.
16450 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
16451
16452 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
16453
16454 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
16455 RS6000_BTM_MODULO flag into the set of flags that are considered
16456 to be part of the common configuration.
16457
16458 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
16459
16460 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
16461 difference unsigned.
16462 (vec_absdb): New macro for vector absolute difference unsigned
16463 byte.
16464 (vec_absdh): New macro for vector absolute difference unsigned
16465 half-word.
16466 (vec_absdw): New macro for vector absolute difference unsigned word.
16467 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
16468 (vadu<mode>3): New insn.
16469 (*p9_vadu<mode>3): New insn.
16470 * config/rs6000/rs6000-builtin.def (vadub): New built-in
16471 definition.
16472 (vaduh): New built-in definition.
16473 (vaduw): New built-in definition.
16474 (vadu): New overloaded built-in definition.
16475 (vadub): New overloaded built-in definition.
16476 (vaduh): New overloaded built-in definition.
16477 (vaduw): New overloaded built-in definition.
16478 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16479 overloaded vector absolute difference unsigned functions.
16480 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
16481 the ISA 3.0 vector absolute difference unsigned built-in functions.
16482
16483 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
16484
16485 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
16486 update shared_lookup_references only once after changing operands.
16487
16488 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
16489
16490 PR middle-end/71373
16491 * tree-nested.c (convert_nonlocal_omp_clauses)
16492 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
16493
16494 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
16495 * tree.def (CASE_LABEL_EXPR): Likewise.
16496
16497 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
16498
16499 PR bootstrap/71481
16500 * input.c (test_builtins): Fix an assertion.
16501
16502 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
16503
16504 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
16505 (paritysi2): Ditto.
16506 (isinfxf2): Ditto.
16507 (isinf<mode>2): Ditto.
16508
16509 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
16510
16511 * ggc-tests.c (test_finalization): Only test need_finalization_p
16512 for GCC_VERSION >= 4003.
16513
16514 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16515
16516 * config/s390/vecintrin.h: Fix file description in comment.
16517
16518 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16519
16520 * config/s390/s390-builtin-types.def: Change builtin type naming
16521 scheme to match builtin-types.def.
16522
16523 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
16524
16525 * fold-const.c (optimize_minmax_comparison): Remove.
16526 (fold_comparison): Remove call to the above.
16527 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
16528 New transformations.
16529
16530 2016-06-13 Alan Hayward <alan.hayward@arm.com>
16531
16532 PR tree-optimization/71416
16533 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
16534 multiple entries
16535
16536 2016-06-13 Martin Liska <mliska@suse.cz>
16537
16538 * predict.c (enum predictor_reason): Prefix enum with REASON_.
16539 (combine_predictions_for_insn): Likewise.
16540 (prune_predictions_for_bb): Likewise.
16541 (combine_predictions_for_bb): Likewise.
16542
16543 2016-06-13 Richard Biener <rguenther@suse.de>
16544
16545 PR tree-optimization/71505
16546 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
16547 assert match comment.
16548
16549 2016-06-13 Marek Polacek <polacek@redhat.com>
16550
16551 PR middle-end/71476
16552 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
16553 gimplify_switch_expr.
16554 (warn_switch_unreachable_r): New function.
16555
16556 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16557
16558 PR target/71379
16559 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
16560 one.
16561
16562 2016-06-13 Richard Biener <rguenther@suse.de>
16563
16564 PR middle-end/64516
16565 * fold-const.c (fold_unary_loc): Preserve alignment when
16566 folding a VIEW_CONVERT_EXPR into a MEM_REF.
16567
16568 2016-06-13 Martin Liska <mliska@suse.cz>
16569
16570 PR sanitizer/71458
16571 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
16572 w/ -fsanitize=bounds.
16573
16574 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
16575
16576 * config/i386/i386.c (ix86_init_builtins): Calculate
16577 FLOAT128_FTYPE_CONST_STRING function type only once.
16578 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
16579 built-in functions are available for x86-32 and x86-64 targets.
16580
16581 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
16582
16583 PR target/71241
16584 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
16585 New primitive type.
16586 (FLOAT128_FTYPE_CONST_STRING): New function type.
16587 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
16588 [IX86_BUILTIN_NANSQ]: Ditto.
16589 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
16590 (ix86_init_builtin_types): Declare const_string_type_node.
16591 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
16592 builtin functions.
16593 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
16594 * doc/extend.texi (x86 Built-in Functions): Document
16595 __builtin_nanq and __builtin_nansq.
16596
16597 2016-06-11 Jiong Wang <jiong.wang@arm.com>
16598
16599 PR target/71061
16600 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
16601 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
16602 length for pop patterns.
16603 (arm_attr_length_push_multi): Update comments.
16604 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
16605 attribute.
16606 (*pop_multiple_with_writeback_and_return): Likewise.
16607 (*pop_multiple_with_return): Likewise.
16608
16609 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
16610
16611 PR middle-end/71310
16612 * fold-const.c (optimize_bit_field_compare): Don't try to use
16613 word_mode unconditionally for reading the bit field, look at
16614 DECL_BIT_FIELD_REPRESENTATIVE instead.
16615
16616 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
16617
16618 PR middle-end/71478
16619 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
16620 vector integer type.
16621
16622 2016-06-10 Jakub Jelinek <jakub@redhat.com>
16623
16624 PR middle-end/71494
16625 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
16626 without LABEL_DECL, set *handled_ops_p to false instead of true.
16627
16628 2016-06-10 Martin Sebor <msebor@redhat.com>
16629
16630 PR c/71392
16631 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
16632 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
16633 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
16634 them.
16635 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
16636 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
16637 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
16638 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
16639 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
16640 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
16641 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
16642 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
16643
16644 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
16645
16646 * config/arm/arm.h (pool_vector_label,
16647 return_used_this_function): Remove.
16648
16649 2016-06-10 Jeff Law <law@redhat.com>
16650
16651 PR tree-optimization/71335
16652 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
16653 zero length paths here.
16654 (convert_and_register_jump_thread_path): Remove hacks related to
16655 duplicated blocks in the jump thread path.
16656 (fsm_find_control_statement_thread_paths): Avoid putting the same
16657 block on the thread path twice, but ensure the thread path is
16658 unchanged from the caller's point of view.
16659
16660 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
16661
16662 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
16663 * predict.def (PRED_LOOP_BRANCH): Remove.
16664
16665 2016-06-10 David Malcolm <dmalcolm@redhat.com>
16666
16667 * Makefile.in (OBJS): Add ggc-tests.o.
16668 (GTFILES): Add ggc-tests.c.
16669 * ggc-tests.c: New file.
16670 * selftest-run-tests.c (selftest::run_tests): Call
16671 selftest::ggc_tests_c_tests.
16672 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
16673
16674 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
16675
16676 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
16677
16678 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
16679
16680 PR sanitizer/71480
16681 * varasm.c (place_block_symbol): Adjust alignment for asan protected
16682 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
16683
16684 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
16685
16686 * profile.c: Include cfgloop.h.
16687 (branch_prob): Compute estimated number of iterations.
16688 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
16689 recompute estimate number of iterations from profile.
16690
16691 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
16692
16693 PR inline-asm/68843
16694 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
16695 must be grouped on top of stack. Don't force early clobber
16696 on ordinary reg outputs.
16697
16698 2016-06-10 Richard Biener <rguenther@suse.de>
16699
16700 * targhooks.c (default_builtin_vectorization_cost): Adjust
16701 vec_construct cost.
16702
16703 2016-06-10 Richard Biener <rguenther@suse.de>
16704
16705 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
16706 to fold the RHS to a constant if possible.
16707
16708 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
16709
16710 PR middle-end/71373
16711 * tree-nested.c (convert_nonlocal_omp_clauses)
16712 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
16713 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
16714 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
16715
16716 * gimplify.c (gimplify_adjust_omp_clauses): Discard
16717 OMP_CLAUSE_TILE.
16718 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
16719
16720 * omp-low.c (scan_sharing_clauses): Don't expect
16721 OMP_CLAUSE__CACHE_.
16722
16723 2016-06-10 Alan Hayward <alan.hayward@arm.com>
16724
16725 PR tree-optimization/71407
16726 PR tree-optimization/71416
16727 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
16728 BIT_FIELD_REF type.
16729
16730 2016-06-10 Richard Biener <rguenther@suse.de>
16731
16732 PR middle-end/71477
16733 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
16734
16735 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
16736
16737 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
16738
16739 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
16740 Jiong Wang <jiong.wang@arm.com>
16741
16742 PR rtl-optimization/70751
16743 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
16744 spilled into memory.
16745
16746 2016-06-09 Jonathan Yong <10walls@gmail.com>
16747
16748 Revert:
16749 2015-09-21 Jonathan Yong <10walls@gmail.com>
16750
16751 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
16752 sysroot/usr/lib/32api for additional win32 libraries,
16753 fixes failing Cygwin bootstrapping.
16754
16755 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
16756
16757 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
16758 Delete.
16759
16760 2016-06-09 David Malcolm <dmalcolm@redhat.com>
16761
16762 PR bootstrap/71471
16763 * pretty-print.c (pp_indent): Specify that %p is printed in a
16764 host-dependent manner.
16765 (test_pp_format): Remove the test for %p.
16766
16767 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
16768
16769 * config/mips/mips.c (mips_output_jump): Fix formatting.
16770
16771 2016-06-09 Richard Biener <rguenther@suse.de>
16772
16773 PR tree-optimization/71462
16774 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
16775 removed blocks.
16776
16777 2016-06-09 Martin Liska <mliska@suse.cz>
16778
16779 * predict.c (dump_prediction): Add new argument.
16780 (enum predictor_reason): New enum.
16781 (struct predictor_hash): New struct.
16782 (predictor_hash::hash): New function.
16783 (predictor_hash::equal): Likewise.
16784 (not_removed_prediction_p): New function.
16785 (prune_predictions_for_bb): Likewise.
16786 (combine_predictions_for_bb): Prune predictions.
16787
16788 2016-06-09 Martin Liska <mliska@suse.cz>
16789
16790 * predict.c (filter_predictions): New function.
16791 (remove_predictions_associated_with_edge): Use the filter
16792 function.
16793 (equal_edge_p): New function.
16794
16795 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
16796
16797 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
16798 Correct usage of @samp vs @option, add @samp where appropriate.
16799 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
16800 Add armv6s-m and document it, as it is no official ARM name.
16801
16802 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16803
16804 * ifcvt.c (struct noce_if_info): Add transform_name field.
16805 (noce_try_move): Set if_info->transform_name to the function name.
16806 (noce_try_ifelse_collapse): Likewise.
16807 (noce_try_store_flag): Likewise.
16808 (noce_try_inverse_constants): Likewise.
16809 (noce_try_store_flag_constants): Likewise.
16810 (noce_try_addcc): Likewise.
16811 (noce_try_store_flag_mask): Likewise.
16812 (noce_try_cmove): Likewise.
16813 (noce_try_cmove_arith): Likewise.
16814 (noce_try_minmax): Likewise.
16815 (noce_try_abs): Likewise.
16816 (noce_try_sign_mask): Likewise.
16817 (noce_try_bitop): Likewise.
16818 (noce_convert_multiple_sets): Likewise.
16819 (noce_process_if_block): Print if_info->transform_name to
16820 dump_file if transformation succeeded.
16821
16822 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16823
16824 * config/arm/cortex-a57.md (cortex_a57_alu):
16825 Handle csel type.
16826
16827 2016-06-08 Martin Sebor <msebor@redhat.com>
16828 Jakub Jelinek <jakub@redhat.com>
16829
16830 PR c++/70507
16831 PR c/68120
16832 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
16833 BUILT_IN_MUL_OVERFLOW_P): New builtins.
16834 * builtins.c: Include gimple-fold.h.
16835 (fold_builtin_arith_overflow): Handle
16836 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
16837 (fold_builtin_3): Likewise.
16838 * doc/extend.texi (Integer Overflow Builtins): Document
16839 __builtin_{add,sub,mul}_overflow_p.
16840
16841 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
16842
16843 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
16844 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
16845
16846 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
16847
16848 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
16849 Rewrite, looking one level down for records and arrays.
16850
16851 2016-06-08 David Malcolm <dmalcolm@redhat.com>
16852
16853 * pretty-print.c: Include "selftest.h".
16854 (pp_format): Fix comment.
16855 (identifier_to_locale): Likewise.
16856 (selftest::test_basic_printing): New function.
16857 (selftest::assert_pp_format): New function.
16858 (selftest::test_pp_format): New function.
16859 (selftest::pretty_print_c_tests): New function.
16860 * selftest-run-tests.c (selftest::run_tests): Call
16861 selftest::pretty_print_c_tests.
16862 * selftest.h (pretty_print_c_tests): New declaration.
16863
16864 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
16865
16866 * invoke.texi (max-loop-headers-insns): Document.
16867 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
16868 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
16869 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
16870
16871 2016-06-08 Richard Biener <rguenther@suse.de>
16872
16873 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
16874 on strided SLP loads and fall back to scalar loads in case
16875 we can't chunk them.
16876
16877 2016-06-08 Richard Biener <rguenther@suse.de>
16878
16879 PR tree-optimization/71452
16880 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
16881 type used for the SSA rewrite has enough precision to cover
16882 the dynamic type of the location.
16883
16884 2016-06-08 Jakub Jelinek <jakub@redhat.com>
16885 Richard Biener <rguenther@suse.de>
16886
16887 PR c++/71448
16888 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
16889 the same as DECL_P (base0) for indirect_base0. Use equality_code
16890 in one further place.
16891
16892 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
16893
16894 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
16895 to one word if the field is known to overlap other words.
16896 (extract_bit_field_1): Likewise.
16897 (store_split_bit_field): Remove compensating code.
16898 (extract_split_bit_field): Likewise.
16899
16900 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
16901
16902 PR debug/71432
16903 PR ada/71413
16904 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
16905
16906 2016-06-08 Jiong Wang <jiong.wang@arm.com>
16907
16908 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
16909 VDQF.
16910 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
16911 (arch64_addpv4sf): Delete.
16912 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
16913 "gen_aarch64_addpv4sf".
16914 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
16915 builtin.
16916 (vpadds_f32): Likewise.
16917 (vpaddq_f32): Likewise.
16918 (vpaddq_f64): Likewise.
16919
16920 2016-06-08 Jiong Wang <jiong.wang@arm.com>
16921
16922 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
16923 VALLF.
16924 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
16925 to VALLF. Rename to "fabd<mode>3".
16926 "*fabd_scalar<mode>3): Delete.
16927 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
16928 Use builtin.
16929 (vabdd_f64): Likewise.
16930 (vabd_f32): Likewise.
16931 (vabd_f64): Likewise.
16932 (vabdq_f32): Likewise.
16933 (vabdq_f64): Likewise.
16934
16935 2016-06-08 Jiong Wang <jiong.wang@arm.com>
16936
16937 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
16938 VALLF.
16939 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
16940 "aarch64_rsqrts<mode>".
16941 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
16942 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
16943 builtin.
16944 (vrsqrtsd_f64): Likewise.
16945 (vrsqrts_f32): Likewise.
16946 (vrsqrts_f64): Likewise.
16947 (vrsqrtsq_f32): Likewise.
16948 (vrsqrtsq_f64): Likewise.
16949
16950 2016-06-08 Jiong Wang <jiong.wang@arm.com>
16951
16952 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
16953 VALLF.
16954 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
16955 "aarch64_rsqrte<mode>".
16956 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
16957 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
16958 builtin.
16959 (vrsqrted_f64): Likewise.
16960 (vrsqrte_f32): Likewise.
16961 (vrsqrte_f64): Likewise.
16962 (vrsqrteq_f32): Likewise.
16963 (vrsqrteq_f64): Likewise.
16964
16965 2016-06-08 Jiong Wang <jiong.wang@arm.com>
16966
16967 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
16968 (ucvtf): Likewise.
16969 (fcvtzs): Likewise.
16970 (fcvtzu): Likewise.
16971 * config/aarch64/aarch64-simd.md
16972 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
16973 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
16974 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
16975 Use builtin.
16976 (vcvt_n_f32_u32): Likewise.
16977 (vcvt_n_s32_f32): Likewise.
16978 (vcvt_n_u32_f32): Likewise.
16979 (vcvtq_n_f32_s32): Likewise.
16980 (vcvtq_n_f32_u32): Likewise.
16981 (vcvtq_n_f64_s64): Likewise.
16982 (vcvtq_n_f64_u64): Likewise.
16983 (vcvtq_n_s32_f32): Likewise.
16984 (vcvtq_n_s64_f64): Likewise.
16985 (vcvtq_n_u32_f32): Likewise.
16986 (vcvtq_n_u64_f64): Likewise.
16987 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
16988 (VSDQ_SDI): Likewise.
16989 (fcvt_target): Support V4DI, V4SI and V2SI.
16990 (FCVT_TARGET): Likewise.
16991
16992 2016-06-08 Jiong Wang <jiong.wang@arm.com>
16993
16994 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
16995 (TYPES_BINOP_SUS): Likewise.
16996 (aarch64_simd_builtin_data): Update include file name.
16997 (aarch64_builtins): Likewise.
16998 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
16999 for conversion between scalar float-point and fixed-point.
17000 (ucvtf): Likewise.
17001 (fcvtzs): Likewise.
17002 (fcvtzu): Likewise.
17003 * config/aarch64/aarch64.md
17004 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
17005 pattern for conversion between scalar float to fixed-pointer.
17006 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
17007 (UNSPEC_FCVTZS): New UNSPEC enumeration.
17008 (UNSPEC_FCVTZU): Likewise.
17009 (UNSPEC_SCVTF): Likewise.
17010 (UNSPEC_UCVTF): Likewise.
17011 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
17012 Use builtin.
17013 (vcvtd_n_f64_u64): Likewise.
17014 (vcvtd_n_s64_f64): Likewise.
17015 (vcvtd_n_u64_f64): Likewise.
17016 (vcvtd_n_f32_s32): Likewise.
17017 (vcvts_n_f32_u32): Likewise.
17018 (vcvtd_n_s32_f32): Likewise.
17019 (vcvts_n_u32_f32): Likewise.
17020 * config/aarch64/iterators.md (fcvt_target): Support integer to float
17021 mapping.
17022 (FCVT_TARGET): Likewise.
17023 (FCVT_FIXED2F): New iterator.
17024 (FCVT_F2FIXED): Likewise.
17025 (fcvt_fixed_insn): New define_int_attr.
17026
17027 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
17028
17029 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
17030 some statements was removed.
17031
17032 2016-06-08 Alan Hayward <alan.hayward@arm.com>
17033
17034 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
17035 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
17036 (vect_can_advance_ivs_p): likewise.
17037 (vect_update_ivs_after_vectorizer): likewise.
17038 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
17039 (vect_analyze_scalar_cycles_1): likewise.
17040 (vect_analyze_loop_operations): likewise.
17041 (report_vect_op): likewise.
17042 (vect_is_slp_reduction): likewise.
17043 (vect_is_simple_reduction): likewise.
17044 (get_initial_def_for_induction): likewise.
17045 (vect_transform_loop): likewise.
17046 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
17047 (vect_recog_sad_pattern): likewise.
17048 (vect_recog_widen_sum_pattern): likewise.
17049 (vect_recog_widening_pattern): likewise.
17050 (vect_recog_divmod_pattern): likewise.
17051 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
17052 (vect_analyze_slp_instance): likewise.
17053 (vect_transform_slp_perm_load): likewise.
17054 (vect_schedule_slp_instance): likewise.
17055
17056 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
17057
17058 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
17059 (return_prediction): PRED_CONST_RETURN predict return as not taken.
17060 * predict.def (PRED_CONTINUE): Change hitrate 50->67
17061 (PRED_LOOP_BRANCH): Document predictor as broken.
17062 (PRED_LOOP_EXIT): Change hitrate 91->92.
17063 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
17064 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
17065 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
17066 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
17067 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
17068 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
17069 (PRED_CALL): Chane hitrate 71->67.
17070 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
17071 (PRED_GOTO): Document as unused right now.
17072 (PRED_CONST_RETURN): Change hitrate 67->69
17073 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
17074 (PRED_NULL_RETURN): Change hitrate 91->90.
17075 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
17076 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
17077 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
17078
17079 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
17080
17081 * config/rs6000/altivec.h: Add __builtin_vec_mul.
17082 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
17083 special case Altivec builtin.
17084 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
17085 VSX_BUILTIN_VEC_MUL (replaced with special case code).
17086 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
17087 code for ALTIVEC_BUILTIN_VEC_MUL.
17088 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
17089 for __builtin_vec_mul.
17090
17091 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
17092
17093 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
17094 -mno-htm.
17095
17096 2016-06-07 David Malcolm <dmalcolm@redhat.com>
17097
17098 * spellcheck.c (selftest::test_find_closest_string): New function.
17099 (spellcheck_c_tests): Call the above.
17100
17101 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17102
17103 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
17104
17105 2016-06-07 Jakub Jelinek <jakub@redhat.com>
17106
17107 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
17108 Yv=Yv,C alternatives.
17109
17110 2016-06-07 Richard Biener <rguenther@suse.de>
17111
17112 PR c/61564
17113 * common.opt (ffast-math): Make Optimization.
17114
17115 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
17116 Prachi Godbole <prachi.godbole@imgtec.com>
17117
17118 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
17119 `fabs' and `fneg' type attributes.
17120 (p5600_fpu_fabs): Add `fmove' to the comment.
17121
17122 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
17123
17124 * gimple.c: Include builtins.h
17125 (gimple_inexpensive_call_p): New function.
17126 * gimple.h (gimple_inexpensive_call_p): Declare.
17127 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
17128 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
17129 fix formatting.
17130
17131 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
17132
17133 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
17134 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
17135 warning_at_rich_loc, warning_n, pedwarn, permerror,
17136 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
17137 sorry, fatal_error, internal_error, internal_error_no_backtrace):
17138 Use the above.
17139
17140 2016-06-07 Richard Biener <rguenther@suse.de>
17141
17142 PR tree-optimization/71428
17143 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
17144 BIT_FIELD_REF op vs. load.
17145
17146 2016-06-07 Richard Biener <rguenther@suse.de>
17147
17148 PR middle-end/71423
17149 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
17150 for signed ops.
17151
17152 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
17153
17154 * config/pa/pa.md (call): Generate indirect long calls to non-local
17155 functions on TARGET_64BIT.
17156 (call_value): Likewise.
17157
17158 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
17159
17160 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
17161 pattern and subsequent splitters.
17162 (call_val_reg_64bit_post_reload): Likewise.
17163
17164 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
17165
17166 PR middle-end/71408
17167 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
17168 propagate_op_to_single_use.
17169
17170 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
17171
17172 PR middle-end/71281
17173 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
17174
17175 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
17176
17177 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
17178 (enum x86_dirflag_state): New enum.
17179 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
17180 (machine_function): Remove needs_cld.
17181 (ix86_current_function_needs_cld): Remove.
17182 * config/i386/i386.c (ix86_set_func_type): Set
17183 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
17184 (ix86_expand_prologue): Do not emit CLD here.
17185 (ix86_dirflag_mode_needed): New function.
17186 (ix86_dirflag_mode_entry): Ditto.
17187 (ix86_mode_needed): Handle X86_DIRFLAG entity.
17188 (ix86_mode_after): Ditto.
17189 (ix86_mode_entry): Ditto.
17190 (ix86_mode_exit): Ditto.
17191 (ix86_emit_mode_set): Ditto.
17192 * config/i386/i386.md (strmov_singleop): Set
17193 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
17194 Do not set ix86_current_function_needs_cld.
17195 (rep_mov): Ditto.
17196 (strset_singleop): Ditto.
17197 (rep_stos): Ditto.
17198 (cmpstrnqi_nz_1): Ditto.
17199 (cmpstrnqi_1): Ditto.
17200 (strlenqi_1): Ditto.
17201
17202 2016-06-06 Jakub Jelinek <jakub@redhat.com>
17203
17204 PR tree-optimization/71259
17205 * tree-vect-slp.c (vect_get_constant_vectors): For
17206 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
17207 one for constant op, and use COND_EXPR for non-constant.
17208
17209 2016-06-06 David Malcolm <dmalcolm@redhat.com>
17210
17211 * Makefile.in (OBJS): Add function-tests.o,
17212 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
17213 selftest-run-tests.o.
17214 (OBJS-libcommon): Add selftest.o.
17215 (OBJS-libcommon-target): Add selftest.o.
17216 (all.internal): Add "selftest".
17217 (all.cross): Likewise.
17218 (selftest): New phony target.
17219 (s-selftest): New target.
17220 (selftest-gdb): New phony target.
17221 (COLLECT2_OBJS): Add selftest.o.
17222 * bitmap.c: Include "selftest.h".
17223 (selftest::test_gc_alloc): New function.
17224 (selftest::test_set_range): New function.
17225 (selftest::test_clear_bit_in_middle): New function.
17226 (selftest::test_copying): New function.
17227 (selftest::test_bitmap_single_bit_set_p): New function.
17228 (selftest::bitmap_c_tests): New function.
17229 * common.opt (fself-test): New.
17230 * diagnostic-show-locus.c: Include "selftest.h".
17231 (make_range): New function.
17232 (test_range_contains_point_for_single_point): New function.
17233 (test_range_contains_point_for_single_line): New function.
17234 (test_range_contains_point_for_multiple_lines): New function.
17235 (assert_eq): New function.
17236 (test_get_line_width_without_trailing_whitespace): New function.
17237 (selftest::diagnostic_show_locus_c_tests): New function.
17238 * et-forest.c: Include "selftest.h".
17239 (selftest::test_single_node): New function.
17240 (selftest::test_simple_tree): New function.
17241 (selftest::test_disconnected_nodes): New function.
17242 (selftest::et_forest_c_tests): New function.
17243 * fold-const.c: Include "selftest.h".
17244 (selftest::assert_binop_folds_to_const): New function.
17245 (selftest::assert_binop_folds_to_nonlvalue): New function.
17246 (selftest::test_arithmetic_folding): New function.
17247 (selftest::fold_const_c_tests): New function.
17248 * function-tests.c: New file.
17249 * gimple.c: Include "selftest.h".
17250 Include "gimple-pretty-print.h".
17251 (selftest::verify_gimple_pp): New function.
17252 (selftest::test_assign_single): New function.
17253 (selftest::test_assign_binop): New function.
17254 (selftest::test_nop_stmt): New function.
17255 (selftest::test_return_stmt): New function.
17256 (selftest::test_return_without_value): New function.
17257 (selftest::gimple_c_tests): New function.
17258 * hash-map-tests.c: New file.
17259 * hash-set-tests.c: New file.
17260 * input.c: Include "selftest.h".
17261 (selftest::assert_loceq): New function.
17262 (selftest::test_accessing_ordinary_linemaps): New function.
17263 (selftest::test_unknown_location): New function.
17264 (selftest::test_builtins): New function.
17265 (selftest::test_reading_source_line): New function.
17266 (selftest::input_c_tests): New function.
17267 * rtl-tests.c: New file.
17268 * selftest-run-tests.c: New file.
17269 * selftest.c: New file.
17270 * selftest.h: New file.
17271 * spellcheck.c: Include "selftest.h".
17272 (selftest::levenshtein_distance_unit_test_oneway): New function,
17273 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
17274 (selftest::levenshtein_distance_unit_test): Likewise.
17275 (selftest::spellcheck_c_tests): Likewise.
17276 * toplev.c: Include selftest.h.
17277 (toplev::run_self_tests): New.
17278 (toplev::main): Handle -fself-test.
17279 * toplev.h (toplev::run_self_tests): New.
17280 * tree.c: Include "selftest.h".
17281 (selftest::test_integer_constants): New function.
17282 (selftest::test_identifiers): New function.
17283 (selftest::test_labels): New function.
17284 (selftest::tree_c_tests): New function.
17285 * tree-cfg.c: Include "selftest.h".
17286 (selftest::push_fndecl): New function.
17287 (selftest::test_linear_chain): New function.
17288 (selftest::test_diamond): New function.
17289 (selftest::test_fully_connected): New function.
17290 (selftest::tree_cfg_c_tests): New function.
17291 * vec.c: Include "selftest.h".
17292 (selftest::safe_push_range): New function.
17293 (selftest::test_quick_push): New function.
17294 (selftest::test_safe_push): New function.
17295 (selftest::test_truncate): New function.
17296 (selftest::test_safe_grow_cleared): New function.
17297 (selftest::test_pop): New function.
17298 (selftest::test_safe_insert): New function.
17299 (selftest::test_ordered_remove): New function.
17300 (selftest::test_unordered_remove): New function.
17301 (selftest::test_block_remove): New function.
17302 (selftest::reverse_cmp): New function.
17303 (selftest::test_qsort): New function.
17304 (selftest::vec_c_tests): New function.c.
17305 * wide-int.cc: Include selftest.h and wide-int-print.h.
17306 (selftest::from_int <wide_int>): New function.
17307 (selftest::from_int <offset_int>): New function.
17308 (selftest::from_int <widest_int>): New function.
17309 (selftest::assert_deceq): New function.
17310 (selftest::assert_hexeq): New function.
17311 (selftest::test_printing <VALUE_TYPE>): New function template.
17312 (selftest::test_ops <VALUE_TYPE>): New function template.
17313 (selftest::test_comparisons <VALUE_TYPE>): New function template.
17314 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
17315 template.
17316 (selftest::wide_int_cc_tests): New function.
17317
17318 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17319
17320 PR middle-end/37780
17321 * ifcvt.c (noce_try_ifelse_collapse): New function.
17322 Declare prototype.
17323 (noce_process_if_block): Call noce_try_ifelse_collapse.
17324 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
17325 (simplify_ternary_operation): Use the above to simplify
17326 conditional CLZ/CTZ expressions.
17327
17328 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17329
17330 PR middle-end/37780
17331 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
17332 define_insn_and_split.
17333
17334 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17335
17336 PR middle-end/37780
17337 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
17338
17339 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
17340
17341 PR c/24414
17342 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
17343 Implicitly clobber memory for basic asm with non-empty assembler
17344 string. Use targetm.md_asm_adjust also here.
17345 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
17346 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
17347 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
17348 non-empty assembler string.
17349 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
17350 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
17351 (decode_asm_operands): Handle basic asm in PARALLEL block.
17352 (extract_insn): Handle basic asm in PARALLEL block.
17353 * doc/extend.texi: Mention new behavior of basic asm.
17354 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
17355 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
17356 branch_needs_nop_p): Use asm_noperands.
17357
17358 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
17359
17360 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
17361 Include the M7 SPARC DFA scheduler.
17362 New attribute v3pipe.
17363 Annotate insns with v3pipe where appropriate.
17364 Define cpu_feature vis4.
17365 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
17366 Add (V8QI "8") to vbits.
17367 Add insns {add,sub}v8qi3
17368 Add insns ss{add,sub}v8qi3
17369 Add insns us{add,sub}{v8qi,v4hi}3
17370 Add insns {min,max}{v8qi,v4hi,v2si}3
17371 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
17372 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
17373 * config/sparc/niagara4.md: Add a comment explaining the
17374 discrepancy between the documented latenty numbers and the
17375 implemented ones.
17376 * config/sparc/niagara7.md: New file.
17377 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
17378 supports SPARC5 and VIS 4.0 instructions.
17379 * configure: Regenerate.
17380 * config.in: Likewise.
17381 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
17382 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
17383 TARGET_CPU_niagara7.
17384 (ASM_CPU64_DEFAULT_SPEC): Likewise.
17385 (CPP_CPU_SPEC): Handle niagara7.
17386 (ASM_CPU_SPEC): Likewise.
17387 * config/sparc/sparc-opts.h (processor_type): Add
17388 PROCESSOR_NIAGARA7.
17389 (mvis4): New option.
17390 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
17391 (AS_NIAGARA7_FLAG): Define.
17392 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
17393 (CPP_CPU64_DEFAULT_SPEC): Likewise.
17394 (CPP_CPU_SPEC): Handle niagara7.
17395 (ASM_CPU_SPEC): Likewise.
17396 * config/sparc/sparc.c (niagara7_costs): Define.
17397 (sparc_option_override): Handle niagara7 and adjust cache-related
17398 parameters with better values for niagara cpus. Also support VIS4.
17399 (sparc32_initialize_trampoline): Likewise.
17400 (sparc_use_sched_lookahead): Likewise.
17401 (sparc_issue_rate): Likewise.
17402 (sparc_register_move_cost): Likewise.
17403 (dump_target_flag_bits): Support VIS4.
17404 (sparc_vis_init_builtins): Likewise.
17405 (sparc_builtins): Likewise.
17406 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
17407 VIS4 4.0.
17408 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
17409 UltraSparc M7.
17410 * config/sparc/sparc.opt (sparc_processor_type): New value
17411 niagara7.
17412 * config/sparc/visintrin.h (__attribute__): Prototypes for the
17413 VIS4 builtins.
17414 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
17415 -mvis4.
17416 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
17417 VIS4 builtins.
17418
17419 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
17420
17421 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
17422
17423 2016-06-06 Richard Biener <rguenther@suse.de>
17424
17425 PR tree-optimization/71398
17426 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
17427 remove edges.
17428
17429 2016-06-05 James Bowman <james.bowman@ftdichip.com>
17430
17431 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
17432 ft32_expand_prolog, ft32_expand_epilogue):
17433 Handle pretend_args.
17434 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
17435 * config/ft32/ft32.md: Add pretend_returner.
17436
17437 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
17438
17439 PR target/71389
17440 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
17441 Copy op1 RTX to avoid invalid sharing.
17442 (ix86_expand_vector_move_misalign): Ditto.
17443
17444 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
17445
17446 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
17447 ATTRIBUTE_UNUSED.
17448
17449 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
17450
17451 * predict.c (predicted_by_loop_heuristics_p): New function.
17452 (predict_iv_comparison): Use it.
17453 (predict_loops): Walk from innermost loops; do not predict edges
17454 leaving multiple loops multiple times; implement
17455 PRED_LOOP_ITERATIONS_MAX heuristics.
17456 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
17457
17458 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
17459
17460 * cfg.c (check_bb_profile): Do not report mismatched profiles when
17461 only edges out of BB are EH edges.
17462
17463 2016-06-04 Martin Sebor <msebor@redhat.com>
17464 Marcin Baczyński <marbacz@gmail.com>
17465
17466 PR c/48116
17467 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
17468 a void expression in a void function.
17469
17470 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
17471
17472 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
17473 aux; dump reasons of decisions.
17474 (should_duplicate_loop_header_p): Likewise.
17475 (do_while_loop_p): Likewise.
17476 (ch_base::copy_headers): Dump asi num insns duplicated.
17477
17478 2016-06-04 Jakub Jelinek <jakub@redhat.com>
17479
17480 PR tree-optimization/71405
17481 * tree-ssa.c (execute_update_addresses_taken): For clobber with
17482 incompatible type, build a new clobber with the right type instead
17483 of building a VIEW_CONVERT_EXPR around it.
17484
17485 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
17486
17487 PR tree-optimization/52171
17488 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
17489 by_pieces_ninsns instead of move_by_pieces_ninsns.
17490
17491 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
17492
17493 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
17494 for reg+reg addressing mode.
17495
17496 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17497
17498 * rs6000-c.c (c/c-tree.h): Add #include.
17499 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
17500 in C++ when found in the base position of vec_ld or vec_st.
17501
17502 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
17503
17504 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
17505 use of profile unless profile status is PROFILE_READ.
17506 * profile.c (compute_branch_probabilities): Set profile status
17507 only after reporting predictor hitrates.
17508
17509 2016-06-03 Joseph Myers <joseph@codesourcery.com>
17510
17511 PR target/71276
17512 PR target/71277
17513 * common.opt (ffp-int-builtin-inexact): New option.
17514 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
17515 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
17516 (ceil@var{m}2): Document dependence on this option.
17517 * ipa-inline-transform.c (inline_call): Handle
17518 flag_fp_int_builtin_inexact.
17519 * ipa-inline.c (can_inline_edge_p): Likewise.
17520 * config/i386/i386.md (rintxf2): Do not test
17521 flag_unsafe_math_optimizations.
17522 (rint<mode>2_frndint): New define_insn.
17523 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
17524 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
17525 for 387 instead of extending and truncating.
17526 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
17527 !flag_trapping_math instead of flag_unsafe_math_optimizations.
17528 Change to frndint<mode>2_<rounding>.
17529 (frndintxf2_<rounding>_i387): Likewise. Change to
17530 frndint<mode>2_<rounding>_i387.
17531 (<rounding_insn>xf2): Likewise.
17532 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
17533 !flag_trapping_math instead of flag_unsafe_math_optimizations for
17534 x87. Test TARGET_ROUND || !flag_trapping_math ||
17535 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
17536 SSE. Use ROUND_NO_EXC in constant operand of
17537 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
17538 for 387 instead of extending and truncating.
17539
17540 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
17541 Julia Koval <julia.koval@intel.com>
17542
17543 PR target/66960
17544 PR target/67630
17545 PR target/67634
17546 PR target/67841
17547 PR target/68037
17548 PR target/68618
17549 PR target/68661
17550 PR target/69575
17551 PR target/69596
17552 PR target/69734
17553 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
17554 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
17555 all registers, except for function return registers if there are
17556 no caller-saved registers.
17557 (ix86_set_func_type): New function.
17558 (ix86_set_current_function): Call ix86_set_func_type to set
17559 no_caller_saved_registers and func_type. Call reinit_regs if
17560 caller-saved registers are changed. Don't allow MPX, SSE, MMX
17561 nor x87 instructions in interrupt handler nor function with
17562 no_caller_saved_registers attribute.
17563 (ix86_function_ok_for_sibcall): Return false if there are no
17564 caller-saved registers.
17565 (type_natural_mode): Don't warn ABI change for MMX in interrupt
17566 handler.
17567 (ix86_function_arg_advance): Skip for callee in interrupt handler.
17568 (ix86_function_arg): Return special arguments in interrupt handler.
17569 (ix86_promote_function_mode): Promote pointer to word_mode only
17570 for normal functions.
17571 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
17572 interrupt handler.
17573 (ix86_epilogue_uses): New function.
17574 (ix86_hard_regno_scratch_ok): Likewise.
17575 (ix86_save_reg): Preserve all registers in interrupt handler
17576 after reload. Preserve all registers, except for function return
17577 registers, if there are no caller-saved registers after reload.
17578 (find_drap_reg): Always use callee-saved register if there are
17579 no caller-saved registers.
17580 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
17581 for interrupt handler.
17582 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
17583 Emit cld instruction if stringops are used in interrupt handler
17584 or interrupt handler isn't a leaf function.
17585 (ix86_expand_epilogue): Generate interrupt return for interrupt
17586 handler and pop the 'ERROR_CODE' off the stack before interrupt
17587 return in exception handler.
17588 (ix86_expand_call): Disallow calling interrupt handler directly.
17589 If there are no caller-saved registers, mark all registers that
17590 are clobbered by the call which returns as clobbered.
17591 (ix86_handle_no_caller_saved_registers_attribute): New function.
17592 (ix86_handle_interrupt_attribute): Likewise.
17593 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
17594 attributes.
17595 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
17596 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
17597 accumulation in interrupt function if stack may be realigned to
17598 avoid DRAP.
17599 (EPILOGUE_USES): New.
17600 (function_type): New enum.
17601 (machine_function): Add func_type and no_caller_saved_registers.
17602 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
17603 (interrupt_return): New pattern.
17604 * doc/extend.texi: Document x86 interrupt and
17605 no_caller_saved_registers attributes.
17606
17607 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
17608
17609 PR tree-optimization/52171
17610 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
17611 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
17612 Look for constant strings. Move some code to emit_block_cmp_hints
17613 and use it.
17614 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
17615 * defaults.h (COMPARE_MAX_PIECES): New macro.
17616 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
17617 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
17618 (clear_by_pieces_1): Don't declare. Move definition before use.
17619 (can_do_by_pieces): New static function.
17620 (can_move_by_pieces): Use it. Return bool.
17621 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
17622 OP. All callers changed. Handle COMPARE_BY_PIECES.
17623 (class pieces_addr); New.
17624 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
17625 pieces_addr::adjust, pieces_addr::increment_address,
17626 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
17627 functions for it.
17628 (class op_by_pieces_d): New.
17629 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
17630 functions for it.
17631 (class move_by_pieces_d, class compare_by_pieces_d,
17632 class store_by_pieces_d): New subclasses of op_by_pieces_d.
17633 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
17634 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
17635 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
17636 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
17637 compare_by_pieces_d::finish_mode): New member functions.
17638 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
17639 functions.
17640 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
17641 (emit_block_cmp_hints): New function.
17642 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
17643 use the newly defined classes.
17644 * expr.h (by_pieces_constfn): New typedef.
17645 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
17646 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
17647 (move_by_pieces_ninsns): Don't declare.
17648 (can_move_by_pieces): Change return value to bool.
17649 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
17650 (compare_by_pieces_branch_ratio): New hook.
17651 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
17652 (by_pieces_ninsns): Declare.
17653 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
17654 COMPARE_BY_PIECES.
17655 (default_compare_by_pieces_branch_ratio): New function.
17656 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
17657 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
17658 * doc/tm.texi: Regenerate.
17659 * tree-ssa-strlen.c: Include "builtins.h".
17660 (handle_builtin_memcmp): New static function.
17661 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
17662 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
17663
17664 2016-06-03 Alan Hayward <alan.hayward@arm.com>
17665
17666 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
17667 relevant stmts which are simple and invariant.
17668 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
17669 instead of simple and invariant
17670
17671 2016-06-03 Alan Hayward <alan.hayward@arm.com>
17672
17673 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
17674 (vectorizable_reduction): Check for new relevant state.
17675 (vectorizable_live_operation): vectorize live stmts using
17676 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
17677 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
17678 (vect_stmt_relevant_p): Check for stmts which are only used live.
17679 (process_use): Use of a stmt does not inherit it's live value.
17680 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
17681 (vect_analyze_stmt): Check for new relevant state.
17682 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
17683 outside the loop, but not inside it.
17684
17685 2016-06-03 Alan Hayward <alan.hayward@arm.com>
17686
17687 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
17688 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
17689 (vect_get_vec_def_for_operand): Split out code.
17690
17691 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
17692
17693 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
17694
17695 2016-06-03 Alan Hayward <alan.hayward@arm.com>
17696
17697 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
17698
17699 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17700
17701 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
17702
17703 2016-06-03 Jakub Jelinek <jakub@redhat.com>
17704
17705 PR middle-end/71387
17706 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
17707 to noreturn e->callee->decl that has void return type and void
17708 arguments, adjust gimple_call_fntype and remove lhs even if it had
17709 previously addressable type.
17710
17711 2016-06-02 Jeff Law <law@redhat.com>
17712
17713 PR tree-optimization/71328
17714 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
17715 error when checking for a jump back onto the copied path.
17716
17717 2016-06-02 David Malcolm <dmalcolm@redhat.com>
17718
17719 * config/microblaze/microblaze.c (get_branch_target): Add return
17720 NULL_RTX for the non-CALL_P case.
17721 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
17722 (insert_wic): Remove unused local "j".
17723
17724 2016-06-02 Martin Liska <mliska@suse.cz>
17725
17726 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
17727
17728 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
17729 Julia Koval <julia.koval@intel.com>
17730
17731 * function.c (assign_parm_setup_stack): Force source into a
17732 register if needed.
17733 * target.def (function_incoming_arg): Update documentation to
17734 allow arbitrary address computation based on hard register.
17735 * doc/tm.texi: Regenerated.
17736
17737 2016-06-02 Martin Liska <mliska@suse.cz>
17738
17739 * predict.c (combine_predictions_for_bb): Fix first match in
17740 cases where a first predictor contains more than one occurence
17741 in list of predictors. Take the best value in such case.
17742
17743 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17744
17745 PR rtl-optimization/71295
17746 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
17747 offset would go over the size of the inner mode reject it.
17748
17749 2016-06-02 Jakub Jelinek <jakub@redhat.com>
17750
17751 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
17752 x=x,x and v=v,m instead of x=x,m.
17753
17754 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
17755 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
17756 alternative to v=rm,C.
17757
17758 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
17759 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
17760 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
17761 instead of vex for the last two above mentioned alternatives.
17762
17763 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17764
17765 PR target/70830
17766 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
17767
17768 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
17769
17770 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
17771
17772 2016-06-01 David Malcolm <dmalcolm@redhat.com>
17773
17774 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
17775 from int to unsigned.
17776
17777 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
17778
17779 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
17780 alternatives, eliminating preferred register class. Add support
17781 for the MTVSRDD instruction in ISA 3.0.
17782 (vsx_splat_v4si_internal): Use splat_input_operand instead of
17783 reg_or_indexed_operand.
17784 (vsx_splat_v4sf_internal): Likewise.
17785
17786 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
17787
17788 PR target/71186
17789 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
17790 for loading up all 0's or all 1's.
17791
17792 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
17793
17794 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
17795
17796 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
17797
17798 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
17799 extension.
17800 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
17801 * gcc.c (set_source_date_epoch_envvar): New function, sets
17802 the SOURCE_DATE_EPOCH environment variable to the current time.
17803
17804 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
17805
17806 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
17807 the factor for live Phi nodes.
17808
17809 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
17810
17811 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
17812 * tree-parloops.c (parallelize_loops): likewise.
17813 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
17814 tree_unswitch_outer_loop): likewise.
17815
17816 2016-06-01 Jakub Jelinek <jakub@redhat.com>
17817
17818 PR middle-end/71371
17819 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
17820 around creation of the temporary.
17821
17822 2016-06-01 Richard Biener <rguenther@suse.de>
17823
17824 PR tree-optimization/71366
17825 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
17826 (unloop_loops): Move removing edges here ...
17827 (try_unroll_loop_completely): ... from here.
17828 (try_peel_loop): ... and here.
17829 (tree_unroll_loops_completely_1): Track parent loops via
17830 bitmap of header BBs.
17831 (tree_unroll_loops_completely): Adjust for that.
17832
17833 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
17834
17835 * config/rs6000/altivec.h (vec_slv): New macro.
17836 (vec_srv): New macro.
17837 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
17838 (UNSPEC_VSRV): New value.
17839 (vslv): New insn.
17840 (vsrv): New insn.
17841 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
17842 (vsrv): New builtin definition.
17843 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
17844 define argument types for new builtin.
17845 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
17846 new builtin.
17847 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
17848 functions.
17849
17850 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
17851 Jocelyn Mayer <l_indien@magic.fr>
17852
17853 PR target/67310
17854 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
17855 detect processor family for signature_CENTAUR_ebx.
17856 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
17857 signature_CENTAUR_ebx.
17858 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
17859 <default>: Pass x86-64 for has_longmode.
17860
17861 2016-06-01 Nathan Sidwell <nathan@acm.org>
17862
17863 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
17864 undefined weak.
17865
17866 2016-06-01 Richard Biener <rguenther@suse.de>
17867
17868 PR tree-optimization/71261
17869 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
17870 of stmts successfully put in the bool pattern. Remove
17871 single-use restriction.
17872 (adjust_bool_pattern_cast): Add cast at the use site via the
17873 pattern def sequence.
17874 (adjust_bool_pattern): Remove recursion, maintain a hash-map
17875 of patterned defs. Use the pattern def seqence instead of
17876 multiple independent patterns.
17877 (sort_after_uid): New qsort compare function.
17878 (adjust_bool_stmts): New function to process stmts in the bool
17879 pattern in IL order.
17880 (vect_recog_bool_pattern): Adjust.
17881 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
17882 (ifcvt_walk_pattern_tree): Likewise.
17883 (stmt_is_root_of_bool_pattern): Likewise.
17884 (ifcvt_repair_bool_pattern): Likewise.
17885 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
17886
17887 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
17888
17889 * loop-unroll.c (decide_unroll_constant_iterations,
17890 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
17891 likely upper bounds.
17892 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
17893
17894 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
17895
17896 * tree-core.h (enum omp_clause_code): Remove
17897 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
17898
17899 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17900
17901 * config/arm/sync.md (arm_store_exclusive<mode>):
17902 Use 'H' output modifier on operands[2] rather than creating a new
17903 entry in out-of-bounds memory of the operands array.
17904 (arm_store_release_exclusivedi): Likewise.
17905
17906 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17907
17908 * config/arm/arm.c (arm_fusion_enabled_p): New function.
17909 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
17910 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
17911 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
17912
17913 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
17914
17915 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
17916 into account live statements for mask producers.
17917
17918 2016-06-01 Richard Biener <rguenther@suse.de>
17919
17920 PR tree-optimization/71311
17921 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
17922 restrict to non-INTEGER_CST @0.
17923
17924 2016-06-01 Richard Biener <rguenther@suse.de>
17925
17926 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
17927 (relational patterns): Use :c to avoid pattern duplications.
17928
17929 2016-06-01 Richard Biener <rguenther@suse.de>
17930
17931 * genmatch.c (comparison_code_p): New predicate.
17932 (swap_tree_comparison): New function.
17933 (commutate): Add for_vec parameter to append new for entries.
17934 Support commutating relational operators by swapping it alongside
17935 operands.
17936 (lower_commutative): Adjust.
17937 (dt_simplify::gen): Do not pass artificial operators to gen
17938 functions.
17939 (decision_tree::gen): Do not add artificial operators as parameters.
17940 (parser::parse_expr): Verify operator commutativity when :c is
17941 applied. Allow :C to override this.
17942 * match.pd: Adjust patterns to use :C instead of :c where required.
17943
17944 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
17945
17946 PR tree-optimization/71077
17947 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
17948 the combining step, use boolean_false_node and boolean_true_node
17949 as the designated false/true return values.
17950
17951 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
17952
17953 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
17954 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
17955 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
17956 PRED_LOOP_EXIT.
17957
17958 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
17959
17960 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
17961 of flags impliying the register renaming.
17962 * toplev.c (process_options): Do not imply flag_rename_registers with
17963 loop peeling.
17964
17965 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
17966
17967 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
17968 default implementation.
17969
17970 2016-05-31 Nathan Sidwell <nathan@acm.org>
17971
17972 * dwarf2out.c (cur_line_info_table): Add GTY marker.
17973
17974 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
17975
17976 * config/sh/constraints.md (b): Remove constraint.
17977 * config/sh/predicates.md (arith_reg_operand): Remove
17978 TARGET_REGISTER_P.
17979 * config/sh/sh-modes.def (PDI): Remove.
17980 * config/sh/sh.c (sh_target_reg_class,
17981 sh_optimize_target_register_callee_saved): Remove functions.
17982 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
17983 (sh_expand_epilogue): Update comment.
17984 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
17985 sh_secondary_reload): Remove TARGET_REGS related code.
17986 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
17987 TARGET_REGISTER_P): Remove macros.
17988 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
17989 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
17990 TR1_REG, TR2_REG): Remove constants.
17991 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
17992
17993 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
17994
17995 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
17996 define_expand patterns.
17997 (adddi3_compact): Rename to adddi3.
17998 (subdi3_compact): Rename to subdi3.
17999 (*negdi2): Rename to negdi2.
18000 (*abs<mode>2): Rename to abs<mode>2.
18001
18002 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
18003
18004 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
18005 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
18006 (atomic_sub_fetchsi): ... this new pattern.
18007 (mvtc): Add CC_REG clobber.
18008
18009 2016-05-31 Marek Polacek <polacek@redhat.com>
18010
18011 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
18012
18013 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18014
18015 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
18016 aarch64_fusion_enabled_p to check for fusion capabilities.
18017
18018 2016-05-31 Richard Biener <rguenther@suse.de>
18019
18020 PR tree-optimization/71352
18021 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
18022 minus one and a negate.
18023
18024 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18025
18026 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
18027 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
18028 Delete prototype.
18029 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
18030 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
18031 Remove use of aarch64_simd_attr_length_move, set length attribute
18032 directly.
18033 (*aarch64_be_movoi): Likewise.
18034 (*aarch64_be_movci): Likewise.
18035 (*aarch64_be_movxi): Likewise.
18036
18037 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
18038
18039 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
18040 It no longer does that.
18041 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
18042
18043 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
18044
18045 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
18046 attribute __unused__.
18047
18048 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
18049
18050 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
18051 * config/arm/arm.c (arm_arch_thumb1): Define.
18052 (arm_option_override): Initialize arm_arch_thumb1.
18053 * config/arm/arm.h (arm_arch_thumb1): Declare.
18054 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
18055 support Thumb-1 ISA.
18056
18057 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
18058
18059 PR target/71346
18060 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
18061 `Yv' for scalar operand.
18062
18063 2016-05-31 Tom de Vries <tom@codesourcery.com>
18064
18065 PR tree-optimization/69068
18066 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
18067 phis with more than two args.
18068
18069 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
18070
18071 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
18072 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
18073 target.
18074
18075 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
18076
18077 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
18078 tune_64.
18079 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
18080 support on SPARC.
18081 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
18082 cpu_32, cpu_64, tune_32 and tune_64.
18083 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
18084
18085 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
18086
18087 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
18088
18089 2016-05-30 Andi Kleen <ak@linux.intel.com>
18090
18091 * auto-profile.c (read_profile): Replace asserts with errors
18092 when file does not exist.
18093 * gcov-io.c (gcov_read_words): Dito.
18094
18095 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
18096
18097 * tree-cfg.c (print_loop): Print likely upper bounds.
18098
18099 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
18100
18101 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
18102 * opts.c (default_options): Enable peel loops at -O3.
18103 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
18104 (try_peel_loop): Do not re-peel already peeled loops;
18105 use likely upper bounds; fix profile updating.
18106 (pass_complete_unroll::execute): Initialize peeled_loops.
18107
18108 2016-05-30 Martin Liska <mliska@suse.cz>
18109
18110 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
18111 computed costs by frequency of BB they belong to.
18112 (get_scaled_computation_cost_at): New function.
18113
18114 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
18115 Marc Glisse <marc.glisse@inria.fr>
18116
18117 PR tree-optimization/71289
18118 * match.pd (-1 / B < A, A > -1 / B): New transformations.
18119
18120 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
18121
18122 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
18123
18124 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
18125
18126 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
18127 for peeled copies; avoid underflow when updating estimates; correctly
18128 scale loop profile.
18129
18130 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
18131
18132 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
18133 r236875. Corrected oe3 to oe2 as obvious.
18134
18135 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
18136
18137 PR middle-end/71269
18138 PR middle-end/71252
18139 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
18140 that inserted stmt will not dominate stmts that defines its operand.
18141 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
18142 (rewrite_expr_tree_parallel): Likewise.
18143
18144 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
18145
18146 PR middle-end/71252
18147 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
18148 all fields including stmt_to_insert are swapped.
18149
18150 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
18151
18152 * predict.h (force_edge_cold): Declare.
18153 * predict.c (force_edge_cold): New function.
18154 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
18155 updating.
18156 (canonicalize_loop_induction_variables): Fix formating.
18157
18158 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
18159
18160 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
18161 (visium_expand_copysign): Use gen_int_mode directly.
18162 (visium_compute_frame_size): Minor tweaks.
18163
18164 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
18165
18166 * tree-vect-loop.c (vect_analyze_loop_2): Use
18167 likely_max_stmt_executions_int.
18168
18169 2016-05-30 Tom de Vries <tom@codesourcery.com>
18170
18171 PR tree-optimization/69067
18172 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
18173
18174 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
18175
18176 PR target/71245
18177 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
18178 New peepholes to remove unneeded fild/fistp pairs.
18179 (define_peephole2 atomic_loaddi_fpu): Ditto.
18180
18181 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
18182
18183 * predict.c (maybe_hot_frequency_p): Avoid division.
18184
18185 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
18186
18187 * doc/install.texi: Use https for shop.fsf.org.
18188
18189 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
18190
18191 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
18192 likely_max_stmt_executions_int.
18193
18194 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
18195
18196 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
18197 likely_max_stmt_executions_int.
18198
18199 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
18200
18201 * profile.c (compute_branch_probabilities): Do not report hitrates
18202 here.
18203 (branch_prob): Report hitrates here.
18204 * predict.c (gimple_predict_edge): Do not assert profile status;
18205 fix formatting issues.
18206
18207 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
18208
18209 * predict.c (edge_predicted_by_p): New function.
18210 (predict_paths_for_bb): Do not put multiple predictions of the same type
18211 on one edge.
18212
18213 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
18214
18215 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
18216 commit.
18217
18218 2016-05-28 Alan Modra <amodra@gmail.com>
18219
18220 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
18221
18222 2016-05-28 Alan Modra <amodra@gmail.com>
18223
18224 PR rtl-optimization/71275
18225 * ira.c (ira): Free dominance info.
18226
18227 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
18228
18229 * doc/sourcebuild.texi: New address for upstream Go repository.
18230
18231 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
18232
18233 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
18234 (TARGET_ARM_V7M): Likewise.
18235
18236 2016-05-26 Jeff Law <law@redhat.com>
18237
18238 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
18239 (thread_across_edge): Remove calls to find_jump_threads_backwards.
18240 * passes.def: Add jump threading passes before DOM/VRP.
18241 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
18242 argument to a basic block from an edge. Remove tests which are
18243 handled elsewhere.
18244 (pass_data_thread_jumps, class pass_thread_jumps): New.
18245 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
18246 (make_pass_thread_jumps): Likewise.
18247 * tree-pass.h (make_pass_thread_jumps): Declare.
18248
18249 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
18250
18251 * config/visium/visium-protos.h (split_double_move): Rename into...
18252 (visium_split_double_move): ...this.
18253 (visium_split_double_add): Declare.
18254 * config/visium/visium.c (split_double_move): Rename into...
18255 (visium_split_double_move): ...this.
18256 (visium_split_double_add): New function.
18257 (visium_expand_copysign): Renumber operands for consistency.
18258 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
18259 (DFmode move splitter): Likewise.
18260 (*addi3_insn): Split by means of visium_split_double_add.
18261 (*adddi3_insn_flags): Delete.
18262 (*plus_plus_sltu<subst_arith>): New insn.
18263 (*subdi3_insn): Split by means of visium_split_double_add.
18264 (subdi3_insn_flags): Delete.
18265 (*minus_minus_sltu<subst_arith>): New insn.
18266 (*negdi2_insn): Split by means of visium_split_double_add.
18267 (*negdi2_insn_flags): Delete.
18268
18269 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
18270
18271 * configure.ac: Treat a --with-headers option without argument
18272 the same as the default (i.e. consult sys-include directory).
18273 * configure: Regenerate.
18274
18275 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18276
18277 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
18278 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
18279 prototype.
18280 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
18281 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
18282
18283 2016-05-27 Jiong Wang <jiong.wang@arm.com>
18284
18285 PR target/63596
18286 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
18287 tree-stdarg analysis results.
18288 (aarch64_setup_incoming_varargs): Likewise.
18289
18290 2016-05-27 Jiong Wang <jiong.wang@arm.com>
18291
18292 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
18293 va_list_gpr_counter_field and va_list_fpr_counter_field.
18294
18295 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
18296
18297 PR67609
18298 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
18299 * config/aarch64/aarch64.c
18300 (aarch64_cannot_change_mode_class): Remove function.
18301 * config/aarch64/aarch64-protos.h
18302 (aarch64_cannot_change_mode_class): Remove.
18303
18304 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
18305
18306 * cfgloop.c (record_niter_bound): Record likely upper bounds.
18307 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
18308 get_likely_max_loop_iterations_int): New.
18309 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
18310 any_likely_upper_bound.
18311 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
18312 Declare.
18313 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
18314 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
18315 upper bound.
18316 (unroll_loop_constant_iterations): Likewise.
18317 (unroll_loop_runtime_iterations): Likewise.
18318 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
18319 * lto-streamer-out.c (output_cfg): Likewise.
18320 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
18321 bounds.
18322 (canonicalize_loop_induction_variables): Dump likely upper bounds.
18323 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
18324 (likely_max_loop_iterations): New.
18325 (likely_max_loop_iterations_int): New.
18326 (likely_max_stmt_executions): New.
18327 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
18328 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
18329 likely_max_stmt_executions): Declare.
18330
18331 2016-05-27 Marek Polacek <polacek@redhat.com>
18332
18333 PR middle-end/71308
18334 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
18335
18336 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18337
18338 * config/s390/s390.md (2x risbg splitters): Use
18339 reg_overlap_mentioned_p instead of rtx_equal_p.
18340
18341 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
18342
18343 * combine.c (make_compound_operation): Take known zero bits into
18344 account when checking for possible zero_extend.
18345
18346 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18347
18348 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
18349 Use const_int_operand for operand 2 predicate. Simplify expand code
18350 as a result.
18351
18352 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
18353
18354 PR middle-end/71279
18355 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
18356 into comparison.
18357
18358 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18359
18360 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
18361 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
18362 that returns CC_SESWPmode and CC_ZESWPmode.
18363 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
18364 and CC_SESWPmode.
18365 (aarch64_rtx_costs): Likewise.
18366
18367 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
18368
18369 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
18370 for ISA 3.0 min/max support.
18371 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
18372 conditional move support.
18373 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
18374 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
18375 available.
18376 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
18377 conditional moves where the comparison type is different from move
18378 type.
18379 (fp_minmax): New code iterator for smin/smax.
18380 (minmax): New code attributes for min/max.
18381 (SMINMAX): Likewise.
18382 (smax<mode>3): Combine min, max insns into one insn using the
18383 fp_minmax code iterator. Add support for ISA 3.0 min/max
18384 instructions that don't need -ffast-math.
18385 (s<minmax><mode>3): Likewise.
18386 (smax<mode>3_vsx): Likewise.
18387 (smin<mode>3): Likewise.
18388 (s<minmax><mode>3_vsx): Likewise.
18389 (smin<mode>3_vsx): Likewise.
18390 (pre-VSX min/max splitters): Likewise.
18391 (s<minmax><mode>3_fpr): Likewise.
18392 (movsfcc): Rewrite floating point conditional moves to combine
18393 SFmode/DFmode into a single insn.
18394 (mov<mode>cc): Likewise.
18395 (movdfcc): Likewise.
18396 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
18397 SFDF2 iterators to handle all combinations.
18398 (fseldfsf4): Likewise.
18399 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
18400 (fseldfdf4): Likewise.
18401 (fselsfdf4): Likewise.
18402 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
18403 comparison instructions that set a 0/-1 mask, and use it for
18404 floating point conditional move via XXSEL.
18405 (fpmask<mode>): Likewise.
18406 (xxsel<mode>): Likewise.
18407 * config/rs6000/predicates.md (min_max_operator): Delete, no
18408 longer used.
18409 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
18410 instructions that generate a 0/-1 mask for use with XXSEL.
18411 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
18412 say whether floating point min/max is available, either through
18413 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
18414 (TARGET_MINMAX_DF): Likewise.
18415
18416 2016-05-27 Alan Modra <amodra@gmail.com>
18417
18418 PR rtl-optimization/71275
18419 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
18420 for update_equiv_regs and combine_and_move_insns.
18421
18422 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
18423
18424 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
18425 if_then_else or cond RTXes to calculate attribute value.
18426 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
18427 <attr "length_immediate>: Ditto.
18428 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
18429 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
18430 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
18431 <attr "type">: Ditto.
18432 <attr "prefix_data16">: Ditto.
18433 <attr "prefix_extra">: Ditto.
18434 <attr "length_immediate">: Ditto.
18435 <attr "prefix">: Ditto.
18436 (vec_set<mode>_0) <attr "isa">: Ditto.
18437 <attr "prefix_extra">: Ditto.
18438 <attr "length_immediate">: Ditto.
18439 <attr "prefix">: Ditto.
18440 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
18441 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
18442 (sse2_storelpd) <attr "prefix_data16">: Ditto.
18443 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
18444 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
18445 <attr "length_immediate">: Ditto.
18446 <attr "prefix">: Ditto.
18447 (sse2_movsd) <attr "length_immediate">: Ditto.
18448 <attr "prefix">: Ditto.
18449 (vec_concatv2df) <attr "isa">: Ditto.
18450 <attr "prefix">: Ditto.
18451 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
18452 (*vec_extractv2di_1) <attr "isa">: Ditto.
18453 <attr "type">: Ditto.
18454 <attr "length_immediate">: Ditto.
18455 <attr "prefix_rex">: Ditto.
18456 <attr "prefix_extra">: Ditto.
18457 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
18458 <attr "prefix_extra">: Ditto.
18459 <attr "length_immediate">: Ditto.
18460 (vec_concatv2di) <attr "isa">: Ditto.
18461 <attr "prefix_extra">: Ditto.
18462 <attr "length_immediate">: Ditto.
18463 <attr "prefix">: Ditto.
18464
18465 2016-05-26 Martin Liska <mliska@suse.cz>
18466
18467 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
18468 function.
18469 (operator+): Likewise.
18470 (operator-): Likewise.
18471 (comp_cost::operator+=): Likewise.
18472 (comp_cost::operator-=): Likewise.
18473 (comp_cost::operator/=): Likewise.
18474 (comp_cost::operator*=): Likewise.
18475 (operator<): Likewise.
18476 (operator==): Likewise.
18477 (operator<=): Likewise.
18478 (new_cost): Remove.
18479 (infinite_cost_p): Likewise.
18480 (add_costs): Likewise.
18481 (sub_costs): Likewise.
18482 (compare_costs): Likewise.
18483 (set_group_iv_cost): Use the newly introduced functions.
18484 (get_address_cost): Likewise.
18485 (get_shiftadd_cost): Likewise.
18486 (force_expr_to_var_cost): Likewise.
18487 (split_address_cost): Likewise.
18488 (ptr_difference_cost): Likewise.
18489 (difference_cost): Likewise.
18490 (get_computation_cost_at): Likewise.
18491 (determine_group_iv_cost_generic): Likewise.
18492 (determine_group_iv_cost_address): Likewise.
18493 (determine_group_iv_cost_cond): Likewise.
18494 (autoinc_possible_for_pair): Likewise.
18495 (determine_group_iv_costs): Likewise.
18496 (cheaper_cost_pair): Likewise.
18497 (iv_ca_recount_cost): Likewise.
18498 (iv_ca_set_no_cp): Likewise.
18499 (iv_ca_set_cp): Likewise.
18500 (iv_ca_cost): Likewise.
18501 (iv_ca_new): Likewise.
18502 (iv_ca_dump): Likewise.
18503 (iv_ca_narrow): Likewise.
18504 (iv_ca_prune): Likewise.
18505 (iv_ca_replace): Likewise.
18506 (try_add_cand_for): Likewise.
18507 (try_improve_iv_set): Likewise.
18508 (find_optimal_iv_set): Likewise.
18509
18510 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
18511
18512 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
18513 that internal functions will clobber all caller-saved registers.
18514
18515 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
18516
18517 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
18518 Return a better case_values_threshold when optimizing.
18519
18520 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
18521
18522 * config/aarch64/aarch64-simd.md (aarch64_combinez):
18523 Add ? to integer variant.
18524 (aarch64_combinez_be): Likewise.
18525
18526 2016-05-26 Jakub Jelinek <jakub@redhat.com>
18527
18528 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
18529 instead of x constraint.
18530 (vcvtps2ph256<mask_name>): Likewise.
18531
18532 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
18533 alternative. Formatting fix.
18534
18535 * config/i386/sse.md
18536 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
18537 to ...
18538 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
18539 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
18540 maybe_evex prefix instead of vex.
18541 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
18542 EXT_REX_SSE_REG_P (op0) case in the splitter.
18543
18544 2016-05-25 Jeff Law <law@redhat.com>
18545
18546 PR tree-optimization/71272
18547 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
18548 Update comments. Add test for empty path.
18549
18550 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
18551
18552 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
18553 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
18554 special case builtin.
18555 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
18556 code for ALTIVEC_BUILTIN_VEC_CMPNE.
18557 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
18558 for __builtin_vec_cmpne.
18559
18560 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
18561
18562 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
18563 redundant test and bail out if the type of the new operand is not
18564 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
18565
18566 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
18567
18568 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
18569 (x_ix86_target_flags_explicit): Remove.
18570 * config/i386/i386.c (ix86_function_specific_save): Do not copy
18571 x_ix86_target_flags_explicit.
18572 (ix86_function_specific_restore): Ditto.
18573
18574 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
18575 H.J. Lu <hongjiu.lu@intel.com>
18576
18577 PR target/70738
18578 * common/config/i386/i386-common.c
18579 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
18580 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
18581 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
18582 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
18583 (-mgeneral-regs-only): Add new option.
18584 * config/i386/i386.c (ix86_option_override_internal): Don't enable
18585 x87 instructions if only general registers are allowed.
18586 (ix86_target_string): Add ix86_flags argument. Handle additional
18587 flags options through ix86_flags argument. Update all callers.
18588 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
18589
18590 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18591
18592 PR rtl-optimization/66940
18593 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
18594 decrementing desired_val will not overflow before performing these
18595 operations.
18596
18597 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
18598
18599 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
18600 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
18601 * config/i386/i386.c (enum ix86_builtins): Add
18602 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
18603 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
18604 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
18605 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
18606 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
18607 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
18608 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
18609 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
18610 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
18611 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
18612 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
18613 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
18614 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
18615 __builtin_ia32_cvtps2dq512_mask.
18616 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
18617 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
18618 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
18619 * config/i386/sse.md
18620 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
18621 Rename to ...
18622 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
18623 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
18624 to ...
18625 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
18626 (avx512f_vec_pack_sfix_v8df): New define_expand.
18627 (avx512f_roundpd512): Rename to ...
18628 (avx512f_round<castmode>512): ... this. Change iterator.
18629 (avx512f_roundps512_sfix): New define_expand.
18630 (round<mode>2_sfix): Change iterator.
18631
18632 2016-05-25 Nick Clifton <nickc@redhat.com>
18633
18634 * config/msp430/msp430.c (msp430_attr): Produce an error if a
18635 static interrupt handler is detected.
18636 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
18637 default linker script.
18638 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
18639 the low part of a symbolic pointer.
18640
18641 2016-05-25 Richard Biener <rguenther@suse.de>
18642
18643 PR tree-optimization/71261
18644 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
18645 interesting stmt instead of immediate uses when looking
18646 for the use operand to replace.
18647
18648 2016-05-25 Martin Liska <mliska@suse.cz>
18649
18650 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
18651
18652 2016-05-25 Richard Biener <rguenther@suse.de>
18653
18654 PR tree-optimization/71264
18655 * tree-vect-stmts.c (vect_init_vector): Properly deal with
18656 vector type val.
18657
18658 2016-05-25 Martin Liska <mliska@suse.cz>
18659
18660 PR tree-optimization/71239
18661 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
18662 if DECL_SIZE is NULL.
18663
18664 2016-05-25 Richard Biener <rguenther@suse.de>
18665
18666 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
18667 * tree-if-conv.c (pass_data_if_conversion): Use it.
18668
18669 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
18670
18671 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
18672 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
18673 * varpool.c (varpool_node::get_availability): Likewise.
18674
18675 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18676
18677 * config/rs6000/altivec.md (VNEG iterator): New iterator for
18678 VNEGW/VNEGD instructions.
18679 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
18680 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
18681 support for ISA 3.0 VNEGW/VNEGD instructions.
18682
18683 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
18684
18685 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
18686 pointers inside OACC_DATA regions.
18687 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
18688 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
18689 (gimplify_adjust_omp_clauses): Fix typo in comment.
18690
18691 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18692
18693 * config/rs6000/altivec.md (VParity): New mode iterator for vector
18694 parity built-in functions.
18695 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
18696 zeros.
18697 (p9v_parity<mode>2): Likewise.
18698 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
18699 parity.
18700 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
18701 (parity<mode>2): ISA 3.0 expander for vector parity.
18702 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
18703 power9 built-ins.
18704 (BU_P9_64BIT_MISC_0): Likewise.
18705 (BU_P9_MISC_0): Likewise.
18706 (BU_P9V_AV_1): Likewise.
18707 (BU_P9V_AV_2): Likewise.
18708 (BU_P9V_AV_3): Likewise.
18709 (BU_P9V_AV_P): Likewise.
18710 (BU_P9V_VSX_1): Likewise.
18711 (BU_P9V_OVERLOAD_1): Likewise.
18712 (BU_P9V_OVERLOAD_2): Likewise.
18713 (BU_P9V_OVERLOAD_3): Likewise.
18714 (VCTZB): Add vector count trailing zeros support.
18715 (VCTZH): Likewise.
18716 (VCTZW): Likewise.
18717 (VCTZD): Likewise.
18718 (VPRTYBD): Add vector parity support.
18719 (VPRTYBQ): Likewise.
18720 (VPRTYBW): Likewise.
18721 (VCTZ): Add overloaded vector count trailing zeros support.
18722 (VPRTYB): Add overloaded vector parity support.
18723 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
18724 overloaded vector count trailing zeros and parity instructions.
18725 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
18726 vector parity support.
18727 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
18728 trailing zeros support.
18729 (vec_cntlz): Likewise.
18730 (vec_vctzb): Likewise.
18731 (vec_vctzd): Likewise.
18732 (vec_vctzh): Likewise.
18733 (vec_vctzw): Likewise.
18734 (vec_vprtyb): Add ISA 3.0 vector parity support.
18735 (vec_vprtybd): Likewise.
18736 (vec_vprtybw): Likewise.
18737 (vec_vprtybq): Likewise.
18738 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
18739 the ISA 3.0 vector count trailing zeros and vector parity built-in
18740 functions.
18741
18742 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
18743
18744 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
18745 when there is stmt_to_insert.
18746
18747 2016-05-24 Martin Sebor <msebor@redhat.com>
18748
18749 PR c++/71147
18750 * tree.h (complete_or_array_type_p): New inline function.
18751
18752 2016-05-24 Jakub Jelinek <jakub@redhat.com>
18753
18754 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
18755 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
18756 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
18757
18758 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
18759 Limit 1st alternative to noavx isa, split 2nd alternative into one
18760 noavx and one avx alternative, use *x and Bm in the former and
18761 x and m in the latter.
18762
18763 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
18764 of sse4 for the first alternative, drop %v from the template
18765 and d operand modifier. Split second alternative into one sse4_noavx
18766 and one avx alternative, use *x instead of *v in the former and v
18767 instead of *v in the latter.
18768 (*sse4_1_extractps): Use noavx isa instead of * for the first
18769 alternative, drop %v from the template. Split second alternative into
18770 one noavx and one avx alternative, use *x instead of *v in the
18771 former and v instead of *v in the latter.
18772 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
18773 with noavx and the last one with avx.
18774 (sse4_1_phminposuw): Guard first alternative with noavx isa,
18775 split the second one into one noavx and one avx alternative,
18776 use *x and Bm in the former and x and m in the latter one.
18777 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
18778 alternatives.
18779
18780 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
18781 first two alternatives to noavx, use *x instead of *v in the second
18782 one, add avx alternative without *.
18783 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
18784 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
18785 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
18786
18787 2016-05-24 Jeff Law <law@redhat.com>
18788
18789 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
18790 New function, extracted from...
18791 (fsm_find_control_statement_thread_paths): Here. Use the new function.
18792 Allow simple copies and constant initializations in the SSA chain.
18793
18794 2016-05-24 Marek Polacek <polacek@redhat.com>
18795
18796 PR c/71249
18797 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
18798 scope.
18799
18800 2016-05-24 Jakub Jelinek <jakub@redhat.com>
18801
18802 PR c++/71257
18803 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
18804 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
18805 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
18806 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
18807 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
18808
18809 2016-05-24 Richard Biener <rguenther@suse.de>
18810
18811 PR tree-optimization/71240
18812 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
18813 has integral type.
18814
18815 2016-05-24 Richard Biener <rguenther@suse.de>
18816
18817 PR tree-optimization/71230
18818 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
18819
18820 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
18821
18822 * tree-vectorizer.h (vectorizable_comparison): Delete.
18823 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
18824 PURE_SLP_STMT check.
18825 * tree-vect-stmts.c (vectorizable_call): Likewise.
18826 (vectorizable_simd_clone_call): Likewise.
18827 (vectorizable_conversion): Likewise.
18828 (vectorizable_assignment): Likewise.
18829 (vectorizable_shift): Likewise.
18830 (vectorizable_operation): Likewise.
18831 (vectorizable_load): Likewise.
18832 (vectorizable_condition): Likewise.
18833 (vectorizable_store): Likewise. Assert that we don't have
18834 hybrid SLP.
18835 (vectorizable_comparison): Make static. Remove redundant
18836 PURE_SLP_STMT check.
18837 (vect_transform_stmt): Assert that we always have an slp_node
18838 if PURE_SLP_STMT.
18839
18840 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18841
18842 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
18843 operands[2] against 1 with comparison against CONST1_RTX.
18844 (<shift>di3_neon): Likewise.
18845 * config/arm/predicates.md (const0_operand): Replace with comparison
18846 against CONST0_RTX.
18847
18848 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18849
18850 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
18851 operands[2] against 1 with comparison against CONST1_RTX.
18852 (ashrdi3): Likewise.
18853 (lshrdi3): Likewise.
18854 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
18855 UINTVAL.
18856 (ashrsi3): Likewise.
18857 (lshrsi3): Likewise.
18858 (rotrsi3): Likewise.
18859 (define_split above *compareqi_eq0): Likewise.
18860 (define_split above "prologue"): Likewise.
18861 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
18862 * config/arm/predicates.md (shift_operator): Likewise.
18863 (shift_nomul_operator): Likewise.
18864 (sat_shift_operator): Likewise.
18865 (thumb1_cmp_operand): Likewise.
18866 (const_neon_scalar_shift_amount_operand): Replace manual range
18867 check with IN_RANGE.
18868 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
18869 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
18870
18871 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18872
18873 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
18874 with HOST_WIDE_INT_1.
18875 (insv): Likewise.
18876 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
18877 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
18878 (arm_canonicalize_comparison): Likewise.
18879 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
18880 HOST_WIDE_INT_1.
18881 (thumb1_size_rtx_costs): Likewise.
18882 (vfp_const_double_index): Replace cast of 1 to unsigned
18883 HOST_WIDE_INT with HOST_WIDE_INT_1U.
18884 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
18885 HOST_WIDE_INT_1.
18886 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
18887 HOST_WIDE_INT with HOST_WIDE_INT_1U.
18888 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
18889 HOST_WIDE_INT with HOST_WIDE_INT_1.
18890
18891 2016-05-24 Marek Polacek <polacek@redhat.com>
18892
18893 * tree-cfg.h (should_remove_lhs_p): New predicate.
18894 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
18895 * gimplify.c (gimplify_modify_expr): Likewise.
18896 * tree-cfg.c (verify_gimple_call): Likewise.
18897 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
18898 * gimple-fold.c: Include "tree-cfg.h".
18899 (gimple_fold_call): Use should_remove_lhs_p.
18900
18901 2016-05-24 Richard Biener <rguenther@suse.de>
18902
18903 PR tree-optimization/71253
18904 * cfganal.h (control_dependences): Make robust against edge
18905 and BB removal.
18906 (control_dependences::control_dependences): Remove edge_list argument.
18907 (control_dependences::get_edge): Remove.
18908 (control_dependences::get_edge_src): Add.
18909 (control_dependences::get_edge_dest): Likewise.
18910 (control_dependences::m_el): Make a vector of edge src/dest index.
18911 * cfganal.c (control_dependences::find_control_dependence): Adjust.
18912 (control_dependences::control_dependences): Likewise.
18913 (control_dependences::~control_dependence): Likewise.
18914 (control_dependences::get_edge): Remove.
18915 (control_dependences::get_edge_src): Add.
18916 (control_dependences::get_edge_dest): Likewise.
18917 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
18918 get_edge_src.
18919 (perform_tree_ssa_dce): Adjust.
18920 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
18921 get_edge_src.
18922 (pass_loop_distribution::execute): Adjust. Do loop destroying
18923 conditional on changed.
18924
18925 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18926
18927 PR target/69857
18928 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
18929 return. Reindent transformation comment and mention the ARM state
18930 behavior.
18931
18932 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
18933
18934 PR middle-end/71252
18935 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
18936 after build_and_add_sum creates new use stmt.
18937
18938 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
18939
18940 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
18941 load_lanes/grouped_load classification comes first. Don't check
18942 whether the vectorization factor is a multiple of the group size
18943 for load_lanes.
18944
18945 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
18946
18947 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
18948 GROUP_GAP for single-element interleaving.
18949 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
18950 variable.
18951
18952 2016-05-24 Richard Biener <rguenther@suse.de>
18953
18954 PR middle-end/70434
18955 PR c/69504
18956 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
18957 bases which are accessed with non-invariant indices.
18958 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
18959 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
18960
18961 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
18962
18963 PR middle-end/71170
18964 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
18965 (add_to_ops_vec): Add stmt_to_insert.
18966 (add_repeat_to_ops_vec): Init stmt_to_insert.
18967 (insert_stmt_before_use): New.
18968 (transform_add_to_multiply): Remove mult_stmt insertion and add it
18969 to ops vector.
18970 (get_ops): Init stmt_to_insert.
18971 (maybe_optimize_range_tests): Likewise.
18972 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
18973 (rewrite_expr_tree_parallel): Likewise.
18974 (reassociate_bb): Likewise.
18975
18976 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
18977
18978 PR target/71201
18979 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
18980 ISA 3.0 xxperm fusion alternative.
18981 (altivec_vperm_v8hiv16qi): Likewise.
18982 (altivec_vperm_<mode>_uns_internal): Likewise.
18983 (vperm_v8hiv4si): Likewise.
18984 (vperm_v16qiv8hi): Likewise.
18985
18986 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
18987 Kelvin Nilsen <kelvin@gcc.gnu.org>
18988
18989 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
18990 vpermr/xxpermr on ISA 3.0.
18991 (altivec_expand_vec_perm_le): Likewise.
18992 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
18993 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
18994 ISA 3.0.
18995
18996 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
18997
18998 * config/i386/i386.h (IS_STACK_MODE): Enable for
18999 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
19000 SSE_FLOAT_MODE_P macros.
19001 * config/i386/i386.c (ix86_preferred_reload_class): Use
19002 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
19003 Cleanup regclass processing for CONST_DOUBLE_P.
19004 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
19005 (ix86_rtx_costs): Remove redundant TARGET_80387 check
19006 with IS_STACK_MODE macro.
19007 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
19008 with TARGET_SSE2.
19009 (*movdf_internal): Use IS_STACK_MODE macro.
19010 (*movsf_internal): Ditto.
19011
19012 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
19013
19014 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
19015 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
19016
19017 2016-05-23 Jeff Law <law@redhat.com>
19018
19019 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
19020 extracted from ...
19021 (fsm_find_control_statement_thread_paths): Call it.
19022
19023 2016-05-23 Martin Jambor <mjambor@suse.cz>
19024
19025 PR ipa/71234
19026 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
19027 from_global_constant if t is not NULL.
19028
19029 2016-05-23 Marek Polacek <polacek@redhat.com>
19030
19031 PR c/49859
19032 * common.opt (Wswitch-unreachable): New option.
19033 * doc/invoke.texi: Document -Wswitch-unreachable.
19034 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
19035 warning.
19036
19037 2016-05-23 Bin Cheng <bin.cheng@arm.com>
19038
19039 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
19040 TMR_INDEX is non-NULL.
19041
19042 2016-05-23 Richard Biener <rguenther@suse.de>
19043
19044 PR tree-optimization/71230
19045 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
19046 (try_special_add_to_ops): ... here. Always test for single-use.
19047
19048 2016-05-23 Martin Jambor <mjambor@suse.cz>
19049
19050 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
19051 default block if a PHI node in the original one would be resized.
19052
19053 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
19054
19055 PR tree-optimization/58135
19056 * tree-vect-slp.c: When group size is not multiple
19057 of vector size, allow splitting of store group at
19058 vector boundary.
19059
19060 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
19061
19062 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
19063
19064 2016-05-22 Jakub Jelinek <jakub@redhat.com>
19065
19066 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
19067 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
19068 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
19069 of 64x2.
19070
19071 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
19072 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
19073 v constraint instead of x and vinserti32x4 insn.
19074
19075 * config/i386/sse.md (i128vldq): New mode iterator.
19076 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
19077 avx512dq and avx512vl alternatives.
19078
19079 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
19080 constraint, use maybe_evex prefix instead of vex.
19081 (vec_dupv4sf): Use v constraint instead of x for output
19082 operand except for noavx alternative, use Yv constraint
19083 instead of x for input. Use maybe_evex prefix instead of vex.
19084 (*vec_dupv4si): Likewise.
19085 (*vec_dupv2di): Likewise.
19086
19087 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
19088
19089 PR middle-end/40921
19090 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
19091 (linearize_expr_tree): Call try_special_add_to_ops.
19092 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
19093
19094 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
19095
19096 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
19097 to computed stack_usage.
19098
19099 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
19100
19101 PR target/71103
19102 * config/avr/avr.md (define_expand "mov<mode>"): If the source
19103 operand is subreg (symbol_ref) then move the symbol ref to register.
19104
19105 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
19106
19107 * tree.c (array_at_struct_end_p): Look through MEM_REF.
19108
19109 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
19110
19111 PR middle-end/71179
19112 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
19113 VECTOR type.
19114
19115 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
19116
19117 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
19118 ranges by calling get_single_symbol and tidy up. Look more closely
19119 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
19120
19121 2016-05-20 Jeff Law <law@redhat.com>
19122
19123 * bitmap.c (bitmap_find_bit): Remove useless test.
19124
19125 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
19126
19127 * function.c (thread_prologue_and_epilogue_insns): Commit the
19128 insertion of the epilogue.
19129
19130 2016-05-20 Martin Jambor <mjambor@suse.cz>
19131
19132 PR tree-optimization/70884
19133 * tree-sra.c (initialize_constant_pool_replacements): Do not check
19134 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
19135 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
19136 of constant pool data as a reason for scalarization.
19137
19138 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
19139
19140 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
19141 for naked functions.
19142 (thumb1_expand_prologue): Likewise.
19143
19144 2016-05-20 Nathan Sidwell <nathan@acm.org>
19145
19146 * config/nvptx/nptx.c (nvptx_option_override): Only set
19147 flag_toplevel_reorder, if not explicitly specified. Set
19148 flag_no_common, unless explicitly specified.
19149
19150 2016-05-20 David Malcolm <dmalcolm@redhat.com>
19151
19152 * calls.c (can_implement_as_sibling_call_p): Mark param
19153 reg_parm_stack_space with ATTRIBUTE_UNUSED.
19154
19155 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
19156
19157 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
19158 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
19159 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
19160 constants.
19161 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
19162 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
19163 and CASE_CONST_ANY.
19164
19165 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
19166
19167 * config/nvptx/nvptx.md (sincossf3): New pattern.
19168
19169 2016-05-20 David Malcolm <dmalcolm@redhat.com>
19170
19171 * calls.c (maybe_complain_about_tail_call): New function.
19172 (initialize_argument_information): Call
19173 maybe_complain_about_tail_call when clearing *may_tailcall.
19174 (can_implement_as_sibling_call_p): Call
19175 maybe_complain_about_tail_call when returning false.
19176 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
19177 ensure try_tail_call is set. Call maybe_complain_about_tail_call
19178 if tail-call optimization fails.
19179 * cfgexpand.c (expand_call_stmt): Initialize
19180 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
19181 * gimple-pretty-print.c (dump_gimple_call): Dump
19182 gimple_call_must_tail_p.
19183 * gimple.c (gimple_build_call_from_tree): Call
19184 gimple_call_set_must_tail with the value of
19185 CALL_EXPR_MUST_TAIL_CALL.
19186 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
19187 (gimple_call_set_must_tail): New function.
19188 (gimple_call_must_tail_p): New function.
19189 * print-tree.c (print_node): Update printing of TREE_STATIC
19190 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
19191 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
19192 trailing comment listing applicable flags.
19193 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
19194
19195 2016-05-20 David Malcolm <dmalcolm@redhat.com>
19196
19197 * calls.c (expand_call): Move "Rest of purposes for tail call
19198 optimizations to fail" to...
19199 (can_implement_as_sibling_call_p): ...this new function, and
19200 split into multiple "if" statements.
19201
19202 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
19203
19204 * cfgloop.h (expected_loop_iterations_unbounded,
19205 expected_loop_iterations): Unconstify.
19206 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
19207 profile with known upper bound; return 3 when profile is absent.
19208 (expected_loop_iterations): Update.
19209
19210 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
19211
19212 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
19213 and get_max_loop_iterations_int.
19214
19215 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
19216
19217 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
19218 realistic upper bounds here.
19219
19220 2016-05-20 Jakub Jelinek <jakub@redhat.com>
19221
19222 PR c++/71210
19223 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
19224 calls if the LHS is variable length or has addressable type.
19225 If targets[0]->decl is a noreturn call with void return type and
19226 zero arguments, adjust fntype and remove lhs in that case.
19227
19228 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
19229
19230 PR tree-optimization/71079
19231 PR tree-optimization/71206
19232 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
19233
19234 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19235
19236 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
19237 (get_vec_alignment_for_array_decl): Likewise.
19238 (get_vec_alignment_for_record_decl): Likewise.
19239 (increase_alignment::execute): Move code to find alignment to
19240 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
19241 (type_align_map): New hash_map.
19242
19243 2016-05-20 Richard Guenther <rguenther@suse.de>
19244
19245 PR tree-optimization/29756
19246 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
19247 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
19248 * fold-const.c (operand_equal_p): Likewise.
19249 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
19250 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
19251 * tree-inline.c (estimate_operator_cost): Likewise.
19252 * tree-pretty-print.c (dump_generic_node): Likewise.
19253 * tree-ssa-operands.c (get_expr_operands): Likewise.
19254 * cfgexpand.c (expand_debug_expr): Likewise.
19255 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
19256 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
19257 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
19258 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
19259 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
19260 (execute_update_addresses_taken): Do it.
19261
19262 2016-05-20 Richard Biener <rguenther@suse.de>
19263
19264 PR tree-optimization/71185
19265 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
19266 register operations.
19267
19268 2016-05-20 Richard Biener <rguenther@suse.de>
19269
19270 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
19271 gimple_seq_add_seq_without_update.
19272 (release_bb_predicate): Assert we have no operands to free.
19273 (if_convertible_loop_p_1): Calculate post dominators later.
19274 Do not free BB predicates here.
19275 (combine_blocks): Do not recompute BB predicates.
19276 (version_loop_for_if_conversion): Save BB predicates around
19277 loop versioning.
19278
19279 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
19280
19281 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
19282 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
19283 code. Ignore sibcalls on EDGE_IGNORE edges.
19284 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
19285 on edges for sibcalls that run without prologue. The rest of the
19286 function is combined from...
19287 (fix_fake_fallthrough_edge): ... this, and ...
19288 (try_shrink_wrapping): ... a part of this. Remove the bb_with
19289 function argument, make it a local variable.
19290
19291 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
19292
19293 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
19294 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
19295 for 32-bit mode and SEH for 64-bit.
19296 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
19297 TARGET_64BIT_DEFAULT.
19298
19299 2016-05-19 Ryan Burn <contact@rnburn.com>
19300
19301 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
19302 * gengtype.c (open_base_files): Add cilk.h to ifiles.
19303
19304 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
19305
19306 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
19307 force pending loads from memory.
19308
19309 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
19310
19311 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
19312 (UNSPEC_DARN_32): New unspec constant.
19313 (UNSPEC_DARN_RAW): New unspec constant.
19314 (darn_32): New instruction.
19315 (darn_raw): New instruction.
19316 (darn): New instruction.
19317 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
19318 support and documentation for this macro.
19319 (BU_P9_MISC_1): New macro definition.
19320 (BU_P9_64BIT_MISC_0): New macro definition.
19321 (BU_P9_MISC_0): New macro definition.
19322 (darn_32): New builtin definition.
19323 (darn_raw): New builtin definition.
19324 (darn): New builtin definition.
19325 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
19326 RS6000_BUILTIN_0 directives to surround each occurrence of
19327 #include "rs6000-builtin.def".
19328 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
19329 RS6000_BTM_64BIT flags to the returned mask, depending on
19330 configuration.
19331 (def_builtin): Correct an error in the assignments made to the
19332 debugging variable attr_string.
19333 (rs6000_expand_builtin): Add support for no-operand built-in
19334 functions.
19335 (builtin_function_type): Remove fatal_error assertion that is no
19336 longer valid.
19337 (rs6000_common_init_builtins): Add support for no-operand built-in
19338 functions.
19339 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
19340 definition.
19341 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
19342 definition.
19343 (RS6000_BTM_64BIT): New macro definition.
19344 * doc/extend.texi: Document __builtin_darn (void),
19345 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
19346 functions.
19347
19348 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
19349
19350 * tree-vect-loop.c (vect_analyze_loop_2): Use also
19351 max_loop_iterations_int.
19352
19353 2016-05-19 Marek Polacek <polacek@redhat.com>
19354
19355 PR tree-optimization/71031
19356 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
19357 condition and adjust the code a bit.
19358
19359 2016-05-19 Martin Liska <mliska@suse.cz>
19360
19361 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
19362 auto_vec instead of vec.
19363
19364 2016-05-19 Martin Liska <mliska@suse.cz>
19365
19366 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
19367
19368 2016-05-19 Martin Liska <mliska@suse.cz>
19369
19370 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
19371
19372 2016-05-19 Martin Liska <mliska@suse.cz>
19373
19374 * ipa-pure-const.c (set_function_state): Remove an existing
19375 funct_state.
19376 (remove_node_data): Do not free it as it's released
19377 in set_function_state.
19378
19379 2016-05-19 Martin Liska <mliska@suse.cz>
19380
19381 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
19382 bitmap.
19383
19384 2016-05-19 Martin Liska <mliska@suse.cz>
19385
19386 * omp-simd-clone.c (simd_clone_adjust): Release vector.
19387
19388 2016-05-19 Martin Liska <mliska@suse.cz>
19389
19390 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
19391 an auto_vec instead of re-creating it.
19392
19393 2016-05-19 Martin Liska <mliska@suse.cz>
19394
19395 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
19396 auto_vec instead of vec.
19397
19398 2016-05-19 Martin Liska <mliska@suse.cz>
19399
19400 * lto-section-in.c (lto_get_section_data): Call
19401 lto_check_version with additional argument.
19402 * lto-streamer.c (lto_check_version): Add new argument.
19403 * lto-streamer.h (lto_check_version): Likewise.
19404
19405 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19406
19407 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
19408 Don't add cost of inner memory when handling sign-extended loads.
19409
19410 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
19411
19412 PR rtl-optimization/71148
19413 * cse.c (cse_main): Free dominance info.
19414 (rest_of_handle_cse): Don't free dominance info.
19415 (rest_of_handle_cse2): Likewise.
19416 (rest_of_handle_cse_after_global_opts): Likewise.
19417
19418 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19419
19420 PR target/71056
19421 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
19422 NULL_TREE early if NEON is not available. Remove now redundant check
19423 in ARM_CHECK_BUILTIN_MODE.
19424
19425 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
19426
19427 PR sanitizer/64354
19428 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
19429 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
19430 * doc/cpp.texi: Document new macros.
19431
19432 2016-05-19 Bin Cheng <bin.cheng@arm.com>
19433
19434 PR tree-optimization/69848
19435 * tree-vect-loop.c (vectorizable_reduction): Don't factor
19436 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
19437
19438 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
19439
19440 * function.c (thread_prologue_and_epilogue_insn): Move the
19441 "goto epilogue_done" one block later.
19442
19443 2016-05-19 Richard Biener <rguenther@suse.de>
19444
19445 PR tree-optimization/70729
19446 * passes.def: Move LIM pass before PRE. Remove no longer
19447 required copyprop and move first DCE out of the loop pipeline.
19448
19449 2016-05-18 David Malcolm <dmalcolm@redhat.com>
19450
19451 PR driver/69265
19452 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
19453 (OBJS-libcommon-target): ...here.
19454 * opts-common.c: Include spellcheck.h.
19455 (cmdline_handle_error): Build a vec of valid options and use it
19456 to suggest provide hints for misspelled arguments.
19457
19458 2016-05-18 Jakub Jelinek <jakub@redhat.com>
19459
19460 PR c++/71100
19461 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
19462 lhs if it has TREE_ADDRESSABLE type.
19463
19464 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
19465
19466 PR target/71145
19467 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
19468 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
19469
19470 2016-05-18 Martin Jambor <mjambor@suse.cz>
19471
19472 PR ipa/69708
19473 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
19474 input for NOP_EXPR pass-through functions.
19475 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
19476 aggregate global constant VAR_DECLs in constant jump functions.
19477
19478 2016-05-18 Martin Jambor <mjambor@suse.cz>
19479
19480 PR ipa/69708
19481 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
19482 from TREE_READONLY parameters.
19483
19484 2016-05-18 Martin Jambor <mjambor@suse.cz>
19485
19486 PR ipa/69708
19487 * cgraph.h (cgraph_indirect_call_info): New field
19488 guaranteed_unmodified.
19489 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
19490 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
19491 appropriate.
19492 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
19493 pass the parameter value to ipa_find_agg_cst_for_param.
19494 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
19495 guaranteed_unmodified, store AA results there instead of bailing out
19496 if present.
19497 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
19498 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
19499 (find_constructor_constant_at_offset): New function.
19500 (ipa_find_agg_cst_from_init): Likewise.
19501 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
19502 static initializers of contants, report back through a new paameter
19503 from_global_constant if that was the case.
19504 (try_make_edge_direct_simple_call): Also pass parameter value to
19505 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
19506 appropriate.
19507 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
19508 (ipa_read_indirect_edge_info): Likewise.
19509 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
19510 (ipa_load_from_parm_agg): Likewise.
19511
19512 2016-05-18 Jiong Wang <jiong.wang@arm.com>
19513
19514 PR rtl-optimization/71150
19515 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
19516 check.
19517
19518 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
19519
19520 PR target/70915
19521 * config/rs6000/constraints.md (wE constraint): New constraint
19522 for a vector constant that can be loaded with XXSPLTIB.
19523 (wM constraint): New constraint for a vector constant of a 1's.
19524 (wS constraint): New constraint for a vector constant that can be
19525 loaded with XXSPLTIB and a vector sign extend instruction.
19526 * config/rs6000/predicates.md (xxspltib_constant_split): New
19527 predicates for wE/wS constraints.
19528 (xxspltib_constant_nosplit): Likewise.
19529 (easy_vector_constant): Add support for constants that can be
19530 loaded via XXSPLTIB.
19531 (all_ones_constant): New predicate for vector constant with all
19532 1's set.
19533 (splat_input_operand): Add support for ISA 3.0 word splat operations.
19534 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
19535 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
19536 instruction and possibly with a sign extension.
19537 (output_vec_const_move): Add support for XXSPLTIB. If we are
19538 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
19539 instead of XXLXOR/XXLORC.
19540 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
19541 operations.
19542 (rs6000_legitimize_reload_address): Likewise.
19543 (rs6000_output_move_128bit): Use output_vec_const_move to emit
19544 constants.
19545 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
19546 combine VSX_M and VSX_M2 into one iterator.
19547 (VSX_M2): Likewise.
19548 (VSINT_84): New iterators for loading constants with XXSPLTIB.
19549 (VSINT_842): Likewise.
19550 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
19551 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
19552 XXSPLTIB instruction.
19553 (xxspltib_<mode>_nosplit): Likewise.
19554 (xxspltib_<mode>_split): New insn to load up constants with
19555 XXSPLTIB and a sign extend instruction.
19556 (vsx_mov<mode>): Replace single move that handled all vector types
19557 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
19558 moves (when -mvsx-timode is in effect) into the main vector
19559 moves. Eliminate separate moves for <VSr> <VSa>, where the
19560 preferred register class (<VSr>) is listed first, and the
19561 secondary register class (<VSa>) is listed second with a '?' to
19562 discourage use. Prefer loading 0/-1 in any VSX register for ISA
19563 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
19564 that if the register was involved in a slow operation, the
19565 clear/set operation does not wait for the slow operation to
19566 finish. Adjust the length attributes for 32-bit mode. Use
19567 rs6000_output_move_128bit and drop the use of the string
19568 instructions for 32-bit movti when -mvsx-timode is in effect. Use
19569 spacing so that the alternatives and attributes don't generate
19570 long lines, and put things in columns, so that it is easier to
19571 match up the operands and attributes with the insn alternatives.
19572 (vsx_mov<mode>_64bit): Likewise.
19573 (vsx_mov<mode>_32bit): Likewise.
19574 (vsx_movti_64bit): Fold movti into normal vector moves.
19575 (vsx_movti_32bit): Likewise.
19576 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
19577 splat instructions.
19578 (vsx_splat_v4si_internal): Likewise.
19579 (vsx_splat_v4sf_internal): Likewise.
19580 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
19581 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
19582 extend vector elements.
19583 (vsx_sign_extend_hi_<mode>): Likewise.
19584 (vsx_sign_extend_si_v2di): Likewise.
19585 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
19586 declaration.
19587 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
19588 constraints. Add trailing period to wL documentation.
19589
19590 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
19591
19592 PR middle-end/71020
19593 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
19594 * tree-dfa.c (replace_abnormal_ssa_names): New function.
19595 * tree-call-cdce.c: Include tree-dfa.h.
19596 (can_guard_call_p): New function, extracted from...
19597 (can_use_internal_fn): ...here.
19598 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
19599 and return void.
19600 (shrink_wrap_one_built_in_call): Likewise.
19601 (use_internal_fn): Likewise.
19602 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
19603 and return void. Call replace_abnormal_ssa_names.
19604 (pass_call_cdce::execute): Check can_guard_call_p during the
19605 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
19606 will always change something.
19607
19608 2016-05-18 Martin Jambor <mjambor@suse.cz>
19609
19610 PR ipa/70646
19611 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
19612 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
19613
19614 2016-05-18 Martin Jambor <mjambor@suse.cz>
19615
19616 PR ipa/70646
19617 * ipa-inline.h (condition): New field size.
19618 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
19619 for comaprison and store it into the new condition.
19620 (evaluate_conditions_for_known_args): Use condition size to check
19621 access sizes for all but CHANGED conditions.
19622 (unmodified_parm_1): New parameter size_p, store access size into it.
19623 (unmodified_parm): Likewise.
19624 (unmodified_parm_or_parm_agg_item): Likewise.
19625 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
19626 (set_cond_stmt_execution_predicate): Extract access sizes and store
19627 them to conditions.
19628 (set_switch_stmt_execution_predicate): Likewise.
19629 (will_be_nonconstant_expr_predicate): Likewise.
19630 (will_be_nonconstant_predicate): Likewise.
19631 (inline_read_section): Stream condition size.
19632 (inline_write_summary): Likewise.
19633
19634 2016-05-18 Richard Biener <rguenther@suse.de>
19635
19636 * tree-ssa-loop-im.c (determine_max_movement): Properly add
19637 condition cost to PHI cost instead of total_cost.
19638
19639 2016-05-18 Martin Liska <mliska@suse.cz>
19640
19641 PR fortran/70856
19642 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
19643 merged variables.
19644
19645 2016-05-18 Richard Biener <rguenther@suse.de>
19646
19647 * lto-streamer.h (LTO_major_version): Bump to 6.
19648
19649 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
19650
19651 * function.c (make_split_prologue_seq, make_prologue_seq,
19652 make_epilogue_seq): New functions, factored out from...
19653 (thread_prologue_and_epilogue_insns): Here.
19654
19655 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
19656
19657 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
19658 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
19659 of before. Add a comment.
19660
19661 2016-05-18 Bin Cheng <bin.cheng@arm.com>
19662
19663 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
19664 expression pointer, not pointer to the pointer.
19665
19666 2016-05-18 Jakub Jelinek <jakub@redhat.com>
19667
19668 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
19669 (avx2_pbroadcast<mode>): Add another alternative with v instead
19670 of x constraints in it, using <pbroadcast_evex_isa> isa.
19671 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
19672
19673 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
19674 constraint x instead of v in second alternative, add avx512bw
19675 alternative.
19676
19677 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
19678 constraint x instead of v in second alternative, add avx512bw
19679 alternative.
19680
19681 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
19682 constraint x instead of v in second alternative, add avx512bw
19683 alternative.
19684
19685 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
19686 avx512bw alternative.
19687
19688 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
19689
19690 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
19691 array to 128 chars.
19692 (define_insn "*andnottf3"): Ditto.
19693 (define_insn "*<code><mode>3"/any_logic): Ditto.
19694 (define_insn "*<code>tf3"/any_logic): Ditto.
19695 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
19696 operand to block AVX-512VL insn variant emit when it is not enabled.
19697
19698 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
19699
19700 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
19701 constraint fot SF mode.
19702
19703 2016-05-18 Petr Murzin <petr.murzin@intel.com>
19704 Kirill Yukhin <kirill.yukhin@intel.com>
19705
19706 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
19707 modifiers.
19708 (define_insn "rsqrt14<mode>"): Ditto.
19709 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
19710 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
19711 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
19712 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
19713 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
19714 Ditto.
19715 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
19716 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
19717 * config/i386/i386.c (ix86_print_operand): Expand check for size
19718 override codes for Intel syntax.
19719
19720 2016-05-18 Richard Biener <rguenther@suse.de>
19721
19722 PR tree-optimization/71168
19723 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
19724 initialization earlier.
19725
19726 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
19727
19728 * config/aarch64/aarch64-simd.md
19729 (aarch64_reduc_plus_internal<mode>): Rename to...
19730 (reduc_plus_scal): ...This, and remove previous implementation.
19731
19732 2016-05-18 Richard Biener <rguenther@suse.de>
19733
19734 * passes.def: Put late dse and cd_dce in canonical order.
19735
19736 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
19737
19738 * ipa-inline-transform.c (preserve_function_body_p): Look for
19739 first non-thunk clone.
19740 (save_function_body): Save into first non-thunk.
19741 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
19742 up call stmt id.
19743 (lto_output_node): Inline thunks don't need body in every
19744 partition.
19745 * lto-streamer-in.c: Do not fixup thunk clones.
19746 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
19747 thunks.
19748 * tree-inline.c (copy_bb): Be prepared for target node to be new after
19749 folding suceeds.
19750
19751 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
19752
19753 PR middle-end/63586
19754 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
19755 (reassociate_bb): Call transform_add_to_multiply.
19756
19757 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
19758
19759 * config/aarch64/aarch64.c (all_extensions): Removed unused
19760 static variable.
19761
19762 2016-05-17 Nathan Sidwell <nathan@acm.org>
19763
19764 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
19765 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
19766
19767 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
19768
19769 PR tree-optimization/54579
19770 PR middle-end/55299
19771 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
19772
19773 2016-05-17 Marek Polacek <polacek@redhat.com>
19774
19775 PR ipa/71146
19776 * tree-inline.c (expand_call_inline): Call
19777 maybe_remove_unused_call_args.
19778
19779 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
19780
19781 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
19782 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
19783 * doc/md.texi (fmin@var{m}3): Likewise.
19784
19785 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
19786
19787 * match.pd (X & C): New transformation.
19788
19789 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
19790
19791 * match.pd (~X & Y): New transformation.
19792
19793 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
19794
19795 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
19796 information for new SSA_NAME.
19797 (simplify_conversion_using_ranges): Get range through get_range_info
19798 instead of get_value_range.
19799
19800 2016-05-17 Jiong Wang <jiong.wang@arm.com>
19801
19802 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
19803 Remove inline assembly.
19804 (vmvn_s16): Likewise.
19805 (vmvn_s32): Likewise.
19806 (vmvn_u8): Likewise.
19807 (vmvn_u16): Likewise.
19808 (vmvn_u32): Likewise.
19809 (vmvnq_s8): Likewise.
19810 (vmvnq_s16): Likewise.
19811 (vmvnq_s32): Likewise.
19812 (vmvnq_u8): Likewise.
19813 (vmvnq_u16): Likewise.
19814 (vmvnq_u32): Likewise.
19815 (vmvn_p8): Likewise.
19816 (vmvnq_p16): Likewise.
19817
19818 2016-05-17 Jiong Wang <jiong.wang@arm.com>
19819
19820 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
19821 Use builtin.
19822 (vmul_n_s16): Likewise.
19823 (vmul_n_s32): Likewise.
19824 (vmul_n_u16): Likewise.
19825 (vmul_n_u32): Likewise.
19826 (vmulq_n_f32): Likewise.
19827 (vmulq_n_f64): Likewise.
19828 (vmulq_n_s16): Likewise.
19829 (vmulq_n_s32): Likewise.
19830 (vmulq_n_u16): Likewise.
19831 (vmulq_n_u32): Likewise.
19832
19833 2016-05-17 Jiong Wang <jiong.wang@arm.com>
19834
19835 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
19836 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
19837
19838 2016-05-17 Jiong Wang <jiong.wang@arm.com>
19839
19840 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
19841 to *aarch64_fma4_elt_from_dup<mode>.
19842 (*aarch64_fnma4_elt_to_128df): Rename to
19843 *aarch64_fnma4_elt_from_dup<mode>.
19844 * config/aarch64/arm_neon.h (vfma_n_f64): New.
19845 (vfms_n_f32): Likewise.
19846 (vfms_n_f64): Likewise.
19847 (vfmsq_n_f32): Likewise.
19848 (vfmsq_n_f64): Likewise.
19849
19850 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
19851
19852 * wide-int.h: Change fixed_wide_int_storage from class to struct.
19853
19854 2016-05-17 Richard Biener <rguenther@suse.de>
19855
19856 PR tree-optimization/71132
19857 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
19858 Only add control dependences for blocks in the loop.
19859 (build_rdg): Adjust.
19860 (generate_code_for_partition): Return whether loop should
19861 be destroyed and delay that.
19862 (distribute_loop): Likewise.
19863 (pass_loop_distribution::execute): Record loops to be destroyed
19864 and perform delayed destroying of loops.
19865
19866 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19867
19868 PR target/70809
19869 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
19870
19871 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
19872
19873 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
19874
19875 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
19876
19877 PR target/71114
19878 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
19879 insertion point for instructions generated by validize_mem.
19880
19881 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
19882
19883 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
19884 in brackets.
19885
19886 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
19887
19888 * config/aarch64/aarch64.c
19889 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
19890 rather than a macro.
19891
19892 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
19893
19894 * doc/invoke.texi (AArch64 Options): Various updates.
19895
19896 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
19897
19898 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
19899 into instrumentation thunks.
19900 * cif-code.def (CIF_CHKP): New.
19901
19902 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
19903
19904 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
19905
19906 2016-05-16 Martin Jambor <mjambor@suse.cz>
19907
19908 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
19909 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
19910
19911 2016-05-16 Marek Polacek <polacek@redhat.com>
19912
19913 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
19914 commentary.
19915
19916 2016-05-16 Martin Jambor <mjambor@suse.cz>
19917
19918 PR hsa/70857
19919 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
19920 the outlined kernel function.
19921
19922 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
19923
19924 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
19925 (ISA_HAS_DLSA): Ditto.
19926
19927 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
19928
19929 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
19930
19931 2016-05-16 Nathan Sidwell <nathan@acm.org>
19932
19933 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
19934 (nvptx_name_replacement): Restore. Add comment.
19935 (write_fn_proto, write_fn_proto_from_insn,
19936 nvptx_output_call_insn): Restore
19937 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
19938
19939 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
19940
19941 * config/aarch64/aarch64.md
19942 (add<mode>3_compareC_cconly_imm): Remove use of %w.
19943 (add<mode>3_compareC_imm): Likewise.
19944 (<optab>si3_uxtw): Split into register and immediate variants.
19945 (andsi3_compare0_uxtw): Likewise.
19946 (and<mode>3_compare0): Likewise.
19947 (and<mode>3nr_compare0): Likewise.
19948 (stack_protect_test_<mode>): Don't use %x for memory operands.
19949
19950 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
19951
19952 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
19953
19954 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
19955
19956 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
19957 Split integer shifts into shift_reg and bfm.
19958 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
19959 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
19960 (ror<mode>3_insn): Likewise.
19961 (<optab>si3_insn_uxtw): Likewise.
19962 (<optab><mode>3_insn): Change to rotate_imm.
19963 (extr<mode>5_insn_alt): Likewise.
19964 (extrsi5_insn_uxtw): Likewise.
19965 (extrsi5_insn_uxtw_alt): Likewise.
19966
19967 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
19968
19969 * doc/tm.texi: Regenerate.
19970 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
19971 (TARGET_INVALID_RETURN_TYPE): Remove.
19972 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
19973 TARGET_INVALID_RETURN_TYPE.
19974 * target.def (invalid_parameter_type): Remove.
19975 (invalid_return_type): Remove.
19976
19977 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
19978
19979 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
19980 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
19981 calls from thunk.
19982 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
19983 gimple body.
19984 (preserve_function_body_p): No need to preserve function body
19985 * cif-codes.def (CIF_THUNK): Remove.
19986 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
19987
19988 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
19989
19990 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
19991
19992 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
19993
19994 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
19995 for thunks.
19996
19997 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
19998
19999 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
20000 (inline_small_functions): Do not look for function symbol when
20001 resetting caches.
20002
20003 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
20004
20005 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
20006 of inline thunks
20007
20008 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
20009 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20010 Jiong Wang <jiong.wang@arm.com>
20011
20012 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
20013 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
20014 Define __ARM_FP16_ARGS when appropriate.
20015 * config/arm/arm.c (arm_invalid_parameter_type): Remove
20016 declaration.
20017 (arm_invalid_return_type): Likewise.
20018 (TARGET_INVALID_PARAMETER_TYPE): Remove.
20019 (TARGET_INVALID_RETURN_TYPE): Remove.
20020 (aapcs_vfp_sub_candidate): Allow HFmode.
20021 (aapcs_vfp_allocate): Add comment. Support HFmode.
20022 (aapcs_vfp_allocate_return_reg): Likewise.
20023 (struct aapcs_cp_arg_layout): Slightly reword comments for
20024 is_return_candidate and allocate_return_reg.
20025 (output_mov_vfp): Update assert.
20026 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
20027 condition.
20028 (arm_invalid_parameter_type): Remove.
20029 (amr_invalid_return_type): Remove.
20030 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
20031 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
20032 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
20033
20034 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
20035
20036 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
20037 * config/aarch64/arch64-protos.h
20038 (aarch64_legitimize_reload_address): Remove.
20039 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
20040 Remove.
20041
20042 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
20043
20044 * configure.ac: Add ACX_NONCANONICAL_HOST.
20045 * configure: Regenerate.
20046 * Makefile.in: Set host_noncanonical.
20047
20048 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
20049
20050 PR target/71097
20051 * config/i386/i386.md (*movtf_internal): Before register allocation,
20052 do not allow FP constants for CM_MEDIUM memory model, allow only
20053 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
20054 (*movxf_internal): Ditto.
20055 (*movdf_internal): Ditto.
20056 (*movsf_internal): Ditto.
20057
20058 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
20059
20060 PR rtl-optimization/67483
20061 * combine.c (make_compound_operation): Don't call extract_left_shift
20062 with negative shift amounts.
20063
20064 2016-05-13 Jakub Jelinek <jakub@redhat.com>
20065
20066 PR bootstrap/71071
20067 * fold-const.c (fold_checksum_tree): Allow modification
20068 of TYPE_ALIAS_SET during folding.
20069
20070 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
20071 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
20072 (ix86_split_to_parts): Likewise. Fix up formatting.
20073
20074 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
20075
20076 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
20077 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
20078 printf format.
20079
20080 2016-05-13 Nathan Sidwell <nathan@acm.org>
20081
20082 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
20083 (nvptx_name_replacement): Delete.
20084 (write_fn_proto, write_fn_proto_from_insn,
20085 nvptx_output_call_insn): Remove nvptx_name_replacement call.
20086 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
20087 * langhooks.c (add_builtin_funcction_common): Call
20088 targetm.mangle_decl_assembler_name.
20089
20090 * config/nvptx/nvptx.c (write_fn_proto): Handle
20091 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
20092
20093 2016-05-13 Martin Liska <mliska@suse.cz>
20094
20095 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
20096 and PRIu64 in printf format.
20097
20098 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20099
20100 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
20101 comment.
20102
20103 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20104
20105 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
20106 Change --param max-completely-peeled-times to
20107 --param max-completely-peel-times in dump file printing.
20108
20109 2016-05-13 Richard Biener <rguenther@suse.de>
20110
20111 PR tree-optimization/42587
20112 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
20113 (find_bswap_or_nop_1): Likewise.
20114 (bswap_replace): Likewise.
20115
20116 2016-05-13 Martin Liska <mliska@suse.cz>
20117
20118 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
20119 Initialize a variable with default value.
20120
20121 2016-05-13 Martin Liska <mliska@suse.cz>
20122
20123 * doc/invoke.texi: Enhance explanation of error recovery
20124 of sanitizers.
20125
20126 2016-05-13 Martin Liska <mliska@suse.cz>
20127
20128 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
20129 (struct cost_pair): Change inv_expr_id (int) to inv_expr
20130 (iv_inv_expr_ent *).
20131 (struct iv_inv_expr_ent): Comment struct fields.
20132 (sort_iv_inv_expr_ent): New function.
20133 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
20134 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
20135 a hash_map between iv_inv_expr_ent and number of usages.
20136 (niter_for_exit): Fix coding style.
20137 (tree_ssa_iv_optimize_init): Use renamed variable.
20138 (determine_base_object): Fix coding style.
20139 (alloc_iv): Likewise.
20140 (find_interesting_uses_outside): Likewise.
20141 (add_candidate_1): Likewise.
20142 (add_standard_iv_candidates): Likewise.
20143 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
20144 (prepare_decl_rtl): Fix coding style.
20145 (get_address_cost): Likewise.
20146 (get_shiftadd_cost): Likewise.
20147 (force_expr_to_var_cost): Likewise.
20148 (compare_aff_trees): Likewise.
20149 (get_expr_id): Restructure the function.
20150 (get_loop_invariant_expr_id): Renamed to
20151 get_loop_invariant_expr.
20152 (get_computation_cost_at): Replace usage of inv_expr_id with
20153 inv_expr.
20154 (get_computation_cost): Likewise.
20155 (determine_group_iv_cost_generic): Likewise.
20156 (determine_group_iv_cost_address): Likewise.
20157 (iv_period): Fix coding style.
20158 (iv_elimination_compare_lt): Likewise.
20159 (may_eliminate_iv): Likewise.
20160 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
20161 inv_expr.
20162 (determine_group_iv_costs): Dump invariant expressions.
20163 (iv_ca_recount_cost): Use the newly added hash_map.
20164 (iv_ca_set_remove_invariants): Fix coding style.
20165 (iv_ca_set_add_invariants): Fix coding style.
20166 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
20167 invariants.
20168 (iv_ca_set_cp): Likewise.
20169 (iv_ca_new): Initialize the newly added hash_map and remove
20170 initialization of fields.
20171 (iv_ca_free): Delete the hash_map.
20172 (iv_ca_dump): Dump invariant expressions.
20173 (iv_ca_extend): Fix coding style.
20174 (try_add_cand_for): Likewise.
20175 (create_new_ivs): Dump information about # of avg iterations and
20176 # of used invariant expressions.
20177 (rewrite_use_compare): Fix coding style.
20178 (free_loop_data): Set default value for max_inv_expr_id.
20179
20180 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
20181
20182 * cse.c (rest_of_handle_cse): Use cleanup_cfg
20183 returned value cse_cfg_altered computation.
20184 (rest_of_handle_cse2): Likewise.
20185 (rest_of_handle_cse_after_global_opts): Likewise.
20186
20187 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20188
20189 PR target/53440
20190 * config/arm/arm.c (arm32_output_mi_thunk): New.
20191 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
20192 to split Thumb1 vs TARGET_32BIT functionality.
20193 (arm_thumb1_mi_thunk): New.
20194
20195 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20196
20197 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
20198 to true.
20199
20200 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20201
20202 PR target/71080
20203 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
20204
20205 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
20206
20207 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
20208 (expand_builtin_trap): Emit a regular call.
20209 (set_builtin_user_assembler_name): Remove obsolete cases.
20210 * dse.c (scan_insn): Adjust.
20211 * except.c: Include calls.h.
20212 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
20213 emit a regular call to setjmp.
20214 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
20215 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
20216 (emit_block_move_via_libcall): Delete.
20217 (block_move_fn): Delete.
20218 (init_block_move_fn): Likewise.
20219 (emit_block_move_libcall_fn): Likewise.
20220 (emit_block_op_via_libcall): New function.
20221 (set_storage_via_libcall): Tidy up and use memset builtin.
20222 (block_clear_fn): Delete.
20223 (init_block_clear_fn): Likewise.
20224 (clear_storage_libcall_fn): Likewise.
20225 (expand_assignment): Call emit_block_move_via_libcall.
20226 Do not include gt-expr.h.
20227 * expr.h (emit_block_op_via_libcall): Declare.
20228 (emit_block_copy_via_libcall): New inline function.
20229 (emit_block_move_via_libcall): Likewise.
20230 (emit_block_comp_via_libcall): Likewise.
20231 (block_clear_fn): Delete.
20232 (init_block_move_fn): Likewise.
20233 (init_block_clear_fn): Likewise.
20234 (emit_block_move_via_libcall): Likewise.
20235 (set_storage_via_libcall): Add default parameter value.
20236 * libfuncs.h (enum libfunc_index): Remove obsolete values.
20237 (abort_libfunc): Delete.
20238 (memcpy_libfunc): Likewise.
20239 (memmove_libfunc): Likewise.
20240 (memcmp_libfunc): Likewise.
20241 (memset_libfunc): Likewise.
20242 (setbits_libfunc): Likewise.
20243 (setjmp_libfunc): Likewise.
20244 (longjmp_libfunc): Likewise.
20245 (profile_function_entry_libfunc): Likewise.
20246 (profile_function_exit_libfunc): Likewise.
20247 (gcov_flush_libfunc): Likewise.
20248 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
20249 and DECL_VISIBILITY on the declaration.
20250 (init_optabs): Do not initialize obsolete libfuncs.
20251 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
20252 * tree-core.h (ECF_RET1): Define.
20253 (ECF_TM_PURE): Adjust.
20254 (ECF_TM_BUILTIN): Likewise.
20255 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
20256 (build_common_builtin_nodes): Initialize abort builtin.
20257 Add ECF_RET1 on memcpy, memmove and memset builtins.
20258 Pass final flags for alloca and alloca_with_align builtins.
20259 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
20260 obsolete builtins.
20261 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
20262 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
20263 set_storage_via_libcall and call emit_block_copy_via_libcall.
20264
20265 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
20266
20267 * config/i386/i386.md (*call_got_x32): Change operand 0 to
20268 DImode before it is passed to ix86_output_call_operand.
20269 (*call_value_got_x32): Ditto for operand 1.
20270
20271 2016-05-12 Jiong Wang <jiong.wang@arm.com>
20272
20273 PR rtl-optimization/70904
20274 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
20275 reload for wide mode.
20276
20277 2016-05-12 Marek Polacek <polacek@redhat.com>
20278
20279 PR c/70756
20280 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
20281 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
20282 * langhooks.h (incomplete_type_error): Likewise.
20283 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
20284 parameter, pass it down to incomplete_type_error.
20285 * tree.h (size_in_bytes): New inline overload.
20286 (size_in_bytes_loc): Renamed from size_in_bytes.
20287
20288 2016-05-12 Richard Biener <rguenther@suse.de>
20289
20290 PR tree-optimization/71059
20291 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
20292 nary before looking up or entering the expression into the VN
20293 hashes.
20294 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
20295 Make sure to re-use NARYs without result as inserted by
20296 phi-translation.
20297
20298 2016-05-12 Richard Biener <rguenther@suse.de>
20299
20300 PR tree-optimization/71062
20301 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
20302 field.
20303 * tree-ssa-structalias.c (set_uids_in_ptset): Set
20304 vars_contains_restrict if the var is a restrict tag.
20305 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
20306 do not disambiguate pointers against it.
20307 (dump_points_to_solution): Re-structure and adjust for new
20308 vars_contains_restrict flag.
20309 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
20310
20311 2016-05-12 Martin Liska <mliska@suse.cz>
20312
20313 * doc/invoke.texi: Explain connection between
20314 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
20315
20316 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
20317
20318 PR tree-optimization/71006
20319 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
20320 consider COND_EXPR as a mask producer.
20321
20322 2016-05-12 Marek Polacek <polacek@redhat.com>
20323
20324 PR driver/71063
20325 * opts.c (common_handle_option): Detect missing argument for --help^.
20326
20327 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20328
20329 PR target/70830
20330 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
20331 when popping the PC and within an interrupt handler routine.
20332 Add missing tab to output of "ldmfd".
20333 (output_return_instruction): Output LDMFD with SP update rather
20334 than POP when returning from interrupt handler.
20335
20336 2016-05-12 Jakub Jelinek <jakub@redhat.com>
20337
20338 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
20339 TARGET_64BIT && TARGET_AVX512DQ.
20340 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
20341 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
20342 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
20343 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
20344 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
20345 (*vec_extractv4si_zext): Add avx512dq alternative.
20346 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
20347 use v instead of x constraint in other alternatives where possible.
20348
20349 * config/i386/sse.md (sse2_loadld): Use v instead of x
20350 constraint in alternatives 0,1,4.
20351
20352 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
20353 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
20354 v constraints instead of x and <pinsr_evex_isa> isa attribute.
20355
20356 PR target/71019
20357 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
20358 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
20359 is not emitted unless TARGET_AVX512BW.
20360 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
20361 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
20362 for the result operand.
20363
20364 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
20365 constraint instead of x in avx alternatives. Use maybe_evex instead
20366 of vex prefix.
20367
20368 * config/i386/constraints.md (Yv): New constraint.
20369 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
20370 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
20371 * config/i386/i386.md (avx512fvecmode): New mode attr.
20372 (*pushtf): Use v constraint instead of x.
20373 (*movtf_internal): Likewise. For TARGET_AVX512VL and
20374 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
20375 (*absneg<mode>2): Use Yv constraint instead of x constraint.
20376 (*absnegtf2_sse): Likewise.
20377 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
20378 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
20379 avx512f alternatives.
20380 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
20381
20382 2016-05-12 Richard Biener <rguenther@suse.de>
20383
20384 PR tree-optimization/71060
20385 * tree-data-ref.c (initialize_data_dependence_relation): Do not
20386 require exact match of DR_BASE_OBJECT but only matching address and
20387 type.
20388
20389 2016-05-12 Richard Biener <rguenther@suse.de>
20390
20391 PR tree-optimization/70986
20392 * cfganal.c: Include cfgloop.h.
20393 (dfs_find_deadend): Prefer to take edges exiting loops.
20394
20395 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20396
20397 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
20398 compile and run time.
20399
20400 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
20401
20402 PR c/43651
20403 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
20404
20405 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
20406
20407 * config/i386/i386.c (legitimize_pic_address): Use
20408 copy_to_suggested_reg instead of gen_movsi.
20409
20410 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
20411
20412 * config/rs6000/predicates.md (quad_memory_operand): Move most of
20413 the code into quad_address_p and call it to share code with
20414 vsx_quad_dform_memory_operand.
20415 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
20416 d-form support.
20417 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
20418 bit instead of being a separate word. Split -mpower9-dform into
20419 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
20420 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
20421 for the register class supporting 128-bit quad word memory offsets.
20422 (mode_supports_vsx_dform_quad): Helper function to return if the
20423 register class uses quad word memory offsets.
20424 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
20425 (rs6000_debug_reg_global): Always print if we are using LRA or not.
20426 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
20427 instructions are enabled, set up the appropriate addr_masks for
20428 128-bit types.
20429 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
20430 -mpower9-dform-scalar, instead of -mpower9-dform.
20431 (rs6000_option_override_internal): Split -mpower9-dform into two
20432 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
20433 -mpower9-dform switch sets or clears both. If we are not using
20434 the LRA register allocator, do not enable -mpower9-dform-vector by
20435 default. If we are using LRA, enable -mpower9-dform-vector and
20436 -mvsx-timode if it is appropriate. Issue a warning if either
20437 -mpower9-dform-vector or -mvsx-timode are explicitly used without
20438 enabling LRA.
20439 (quad_address_offset_p): New helper function to return if the
20440 offset is legal for quad word memory instructions.
20441 (quad_address_p): New function to determin if GPR or vector
20442 register quad word memory addresses are legal.
20443 (mem_operand_gpr): Validate quad word address offsets.
20444 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
20445 d-form (register + offset) instructions.
20446 (offsettable_ok_by_alignment): Likewise.
20447 (rs6000_legitimate_offset_address_p): Likewise.
20448 (legitimate_lo_sum_address_p): Likewise.
20449 (rs6000_legitimize_address): Likewise.
20450 (rs6000_legitimize_reload_address): Add more debug statements for
20451 -mdebug=addr.
20452 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
20453 d-form instructions.
20454 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
20455 d-form instructions. Distinguish different cases in debug
20456 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
20457 d-form instructions.
20458 (rs6000_preferred_reload_class): Likewise.
20459 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
20460 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
20461 of the ISA 2.06 indexed memory instructions.
20462 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
20463 use them to save/restore the saved vector registers instead of
20464 using Altivec instructions.
20465 (rs6000_emit_epilogue): Likewise.
20466 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
20467 (rs6000_opt_masks): Split -mpower9-dform into
20468 -mpower9-dform-scalar and -mpower9-dform-vector.
20469 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
20470 was not selected.
20471 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
20472 ISA 3.0 vector indexed memory instructions, and fold the code into
20473 the normal mov<mode> patterns.
20474 (p9_vecstore_<mode>): Likewise.
20475 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
20476 instructions.
20477 (vsx_movti_64bit): Likewise.
20478 (vsx_movti_32bit): Likewise.
20479 * config/rs6000/constraints.md (wO constraint): New constraint for
20480 ISA 3.0 vector d-form support.
20481 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
20482 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
20483 include -mpower9-dform-vector until we switch over to LRA.
20484 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
20485 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
20486 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
20487 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
20488 for -mpower9-dform and -mlra.
20489 * doc/md.texi (wO constraint): Document wO constraint.
20490
20491 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
20492
20493 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
20494 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
20495 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
20496 Move handling of non-insn arguments inline into the sole user:
20497 (output_trans_func): ...here.
20498 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
20499 in emitted function prototype.
20500 (output_internal_insn_latency_func): Ditto. Simplify.
20501 (output_internal_maximal_insn_latency_func): Ditto. Delete
20502 always-unused argument.
20503 (output_insn_latency_func): Ditto.
20504 (output_maximal_insn_latency_func): Ditto.
20505
20506 2016-05-11 Richard Biener <rguenther@suse.de>
20507
20508 PR tree-optimization/71055
20509 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
20510 sth with precision not equal to access size verify we don't chop
20511 off bits.
20512
20513 2016-05-11 Richard Biener <rguenther@suse.de>
20514
20515 PR debug/71057
20516 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
20517 (dwarf2out_finish): Move retry_incomplete_types call ...
20518 (dwarf2out_early_finish): ... here.
20519
20520 2016-05-11 Richard Biener <rguenther@suse.de>
20521
20522 PR middle-end/71002
20523 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
20524 if the langhook insists on it.
20525 * fold-const.c (make_bit_field_ref): Add arg for the original
20526 reference and preserve its alias-set.
20527 (decode_field_reference): Take exp by reference and adjust it
20528 to the original memory reference.
20529 (optimize_bit_field_compare): Adjust callers.
20530 (fold_truth_andor_1): Likewise.
20531 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
20532
20533 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
20534
20535 PR middle-end/70807
20536 * cfgrtl.h (delete_insn_and_edges): Now return bool.
20537 * cfgrtl.c (delete_insn_and_edges): Likewise.
20538 * config/i386/i386.c (convert_scalars_to_vector): Remove
20539 redundant code.
20540 * cse.c (cse_insn): Compute cse_cfg_altered.
20541 (delete_trivially_dead_insns): Likewise.
20542 (cse_cc_succs): Likewise.
20543 (rest_of_handle_cse): Free dominance info if required.
20544 (rest_of_handle_cse2): Likewise.
20545 (rest_of_handle_cse_after_global_opts): Likewise.
20546
20547 2016-05-11 Alan Modra <amodra@gmail.com>
20548
20549 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
20550 abi_v4_pass_in_fpr): New functions.
20551 (rs6000_function_arg_boundary): Exclude complex IBM long double
20552 from 64-bit alignment when ABI_V4.
20553 (rs6000_function_arg, rs6000_function_arg_advance_1,
20554 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
20555
20556 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
20557
20558 PR rtl-optimization/71028
20559 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
20560 jump with just a return in the fallthrough block if the branch
20561 block contains just a return as well.
20562
20563 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
20564
20565 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
20566 * match.pd ((X & Y) ^ Y): ... this.
20567 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
20568 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
20569
20570 2016-05-10 David Malcolm <dmalcolm@redhat.com>
20571
20572 * read-md.c (require_char_ws): New function.
20573 (read_string): Simplify using require_char_ws.
20574 (handle_constants): Likewise.
20575 (handle_enum): Likewise.
20576 (handle_file): Likewise.
20577 * read-md.h (require_char_ws): New declaration.
20578 * read-rtl.c (read_conditions): Simplify using require_char_ws.
20579 (read_mapping): Likewise.
20580 (read_rtx_code): Likewise.
20581 (read_nested_rtx): Likewise.
20582
20583 2016-05-10 James Norris <jnorris@codesourcery.com>
20584
20585 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
20586 if offloading is enabled and -fopenacc or -fopenmp is specified.
20587 (CRTOFFLOADEND): Likewise.
20588 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
20589 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
20590
20591 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
20592
20593 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
20594 gotoff_operand code paths. Use copy_to_suggested_regs and
20595 expand_simple_binop where appropriate. Cleanup.
20596
20597 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
20598
20599 PR target/70799
20600 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
20601 integer constants.
20602 (dimode_scalar_chain::vector_const_cost): New.
20603 (dimode_scalar_chain::compute_convert_gain): Handle constants.
20604 (dimode_scalar_chain::convert_op): Likewise.
20605 (dimode_scalar_chain::convert_insn): Likewise.
20606
20607 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
20608
20609 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
20610 unary operation, not a binary one.
20611
20612 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
20613
20614 PR middle-end/70877
20615 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
20616 calls with type casted fndecl.
20617
20618 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
20619
20620 PR tree-optimization/70786
20621 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
20622 * calls.c (initialize_argument_information): Bind bounds
20623 with corresponding args passed by reference.
20624
20625 2016-05-10 Jakub Jelinek <jakub@redhat.com>
20626
20627 PR target/70927
20628 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
20629 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
20630 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
20631 accordingly.
20632
20633 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20634
20635 PR target/70963
20636 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
20637 code for a zero scale factor.
20638 (vsx_xvcvdpuxds_scale): Likewise.
20639
20640 2016-05-10 David Malcolm <dmalcolm@redhat.com>
20641
20642 * diagnostic-show-locus.c (layout::layout): Call show_ruler
20643 if show_ruler_p was set on the context.
20644 (layout::show_ruler): New method.
20645 * diagnostic.h (struct diagnostic_context): Add field
20646 "show_ruler_p".
20647
20648 2016-05-10 Richard Biener <rguenther@suse.de>
20649
20650 PR tree-optimization/71039
20651 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
20652 (chk_uses): New function.
20653 (propagate_with_phi): Verify we can safely replicate the lhs of an
20654 aggregate assignment on all incoming edges.
20655
20656 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
20657
20658 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
20659 Forward declare.
20660 (rx_atomic_sequence): New class.
20661 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
20662 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
20663 non-inline.
20664 (rx_atomic_sequence::rx_atomic_sequence,
20665 rx_atomic_sequence::~rx_atomic_sequence): New functions.
20666 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
20667 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
20668 CTRLREG_INTB): New constants.
20669 (FETCHOP): New code iterator.
20670 (fethcop_name, fetchop_name2): New iterator code attributes.
20671 (QIHI): New mode iterator.
20672 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
20673 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
20674 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
20675
20676 2016-05-10 Martin Liska <mliska@suse.cz>
20677
20678 * tree-inline.c (remap_dependence_clique): Do not remap
20679 debugging statements.
20680
20681 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20682
20683 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
20684 ("*fixuns_truncdfdi2_z13")
20685 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
20686 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
20687 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
20688
20689 2016-05-10 Richard Biener <rguenther@suse.de>
20690
20691 PR tree-optimization/70497
20692 PR tree-optimization/28367
20693 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
20694 split out from ...
20695 (visit_reference_op_load): ... here.
20696 (vn_reference_lookup_3): Use it to handle subreg-like accesses
20697 with simplified BIT_FIELD_REFs.
20698 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
20699 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
20700 correctly.
20701
20702 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
20703
20704 * dwarf2out.c (add_abstract_origin_attribute): Adjust
20705 documentation comment. For BLOCK nodes, add a
20706 DW_AT_abstract_origin attribute that points to the DIE generated
20707 for the origin BLOCK.
20708 (gen_lexical_block_die): Call add_abstract_origin_attribute for
20709 blocks from inlined functions.
20710
20711 2016-05-10 Alan Modra <amodra@gmail.com>
20712
20713 PR target/70947
20714 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
20715 regrename modifying insns saving lr before __morestack call.
20716 * config/rs6000/rs6000.md (split_stack_return): Similarly for
20717 insns restoring lr after __morestack call.
20718
20719 2016-05-09 Jakub Jelinek <jakub@redhat.com>
20720
20721 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
20722 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
20723 expanders.
20724 * config/i386/sse.md (vec_interleave_high<mode>,
20725 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
20726 <avx512>_vpermt2var<mode>3_maskz): Likewise.
20727
20728 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
20729
20730 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
20731 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
20732 parallel reassociation for power8 and forward.
20733
20734 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
20735
20736 * config/i386/i386.md (absneg splitters with general regs): Use
20737 general_reg_operand predicate.
20738 (btsq peephole2): Use x86_64_immediate_operand to check if new
20739 value is suitable for immediate operand. Generate emitted insn
20740 using RTL expressions.
20741 (btcq peephole2): Ditto.
20742 (btrq peephole2): Ditto. Generate correct immediate operand
20743 for AND masking.
20744
20745 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
20746
20747 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
20748 bitpos.
20749
20750 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
20751
20752 * tree-affine.c (wide_int_constant_multiple_p): Add missing
20753 pointer dereference.
20754
20755 2016-05-09 Richard Biener <rguenther@suse.de>
20756
20757 PR tree-optimization/70985
20758 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
20759 op0 isn't a gimple register.
20760
20761 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
20762
20763 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
20764 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
20765 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
20766 (i6400_fpu_mult): New cpu units.
20767 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
20768 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
20769 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
20770 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
20771 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
20772 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
20773 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
20774 (i6400_msa_long_float4, i6400_msa_long_float5)
20775 (i6400_msa_long_float8, i6400_msa_fdiv_df)
20776 (i6400_msa_fdiv_sf): New reservations.
20777 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
20778 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
20779 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
20780 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
20781 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
20782 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
20783 (msa_short_cmp, msa_short_float2, msa_short_logic3)
20784 (msa_short_store4, msa_long_load, msa_short_store)
20785 (msa_long_logic, msa_long_float2, msa_long_float4)
20786 (msa_long_float5, msa_long_float8, msa_long_mult)
20787 (msa_long_fdiv, msa_long_div): New reservations.
20788
20789 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
20790 Sameera Deshpande <sameera.deshpande@imgtec.com>
20791 Matthew Fortune <matthew.fortune@imgtec.com>
20792 Graham Stott <graham.stott@imgtec.com>
20793 Chao-ying Fu <chao-ying.fu@imgtec.com>
20794
20795 * config.gcc: Add MSA header file for mips*-*-* target.
20796 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
20797 (Ubv8i, Urv8): New constraints.
20798 * config/mips/mips-ftypes.def: Add function types for MSA
20799 builtins.
20800 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
20801 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
20802 * config/mips/mips-msa.md: New file.
20803 * config/mips/mips-protos.h
20804 (mips_split_128bit_const_insns): New prototype.
20805 (mips_msa_idiv_insns): Likewise.
20806 (mips_split_128bit_move): Likewise.
20807 (mips_split_128bit_move_p): Likewise.
20808 (mips_split_msa_copy_d): Likewise.
20809 (mips_split_msa_insert_d): Likewise.
20810 (mips_split_msa_fill_d): Likewise.
20811 (mips_expand_msa_branch): Likewise.
20812 (mips_const_vector_same_val_p): Likewise.
20813 (mips_const_vector_same_bytes_p): Likewise.
20814 (mips_const_vector_same_int_p): Likewise.
20815 (mips_const_vector_shuffle_set_p): Likewise.
20816 (mips_const_vector_bitimm_set_p): Likewise.
20817 (mips_const_vector_bitimm_clr_p): Likewise.
20818 (mips_msa_vec_parallel_const_half): Likewise.
20819 (mips_msa_output_division): Likewise.
20820 (mips_ldst_scaled_shift): Likewise.
20821 (mips_expand_vec_cond_expr): Likewise.
20822 * config/mips/mips.c (enum mips_builtin_type): Add
20823 MIPS_BUILTIN_MSA_TEST_BRANCH.
20824 (mips_gen_const_int_vector_shuffle): New prototype.
20825 (mips_const_vector_bitimm_set_p): New function.
20826 (mips_const_vector_bitimm_clr_p): Likewise.
20827 (mips_const_vector_same_val_p): Likewise.
20828 (mips_const_vector_same_bytes_p): Likewise.
20829 (mips_const_vector_same_int_p): Likewise.
20830 (mips_const_vector_shuffle_set_p): Likewise.
20831 (mips_symbol_insns): Forbid loading symbols via immediate for
20832 MSA.
20833 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
20834 stores.
20835 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
20836 MSA.
20837 (mips_lx_address_p): Add support load indexed address for MSA.
20838 (mips_address_insns): Add calculation of instructions needed for
20839 stores and loads for MSA.
20840 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
20841 CONST_VECTOR for MSA and let it fall through.
20842 (mips_ldst_scaled_shift): New function.
20843 (mips_subword_at_byte): Likewise.
20844 (mips_msa_idiv_insns): Likewise.
20845 (mips_legitimize_move): Validate MSA moves.
20846 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
20847 calculation of costs for MSA division.
20848 (mips_split_move_p): Check if MSA moves need splitting.
20849 (mips_split_move): Split MSA moves if necessary.
20850 (mips_split_128bit_move_p): New function.
20851 (mips_split_128bit_move): Likewise.
20852 (mips_split_msa_copy_d): Likewise.
20853 (mips_split_msa_insert_d): Likewise.
20854 (mips_split_msa_fill_d): Likewise.
20855 (mips_output_move): Handle MSA moves.
20856 (mips_expand_msa_branch): New function.
20857 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
20858 Reinstate 'y' modifier.
20859 (mips_file_start): Add MSA .gnu_attribute.
20860 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
20861 FPRs.
20862 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
20863 (mips_class_max_nregs): Add register size for MSA supported mode.
20864 (mips_cannot_change_mode_class): Allow conversion between MSA
20865 vector modes and TImode.
20866 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
20867 instruction.
20868 (mips_secondary_reload_class): Force MSA loads/stores via memory.
20869 (mips_preferred_simd_mode): Add preffered modes for MSA.
20870 (mips_vector_mode_supported_p): Add MSA supported modes.
20871 (mips_autovectorize_vector_sizes): New function.
20872 (mips_msa_output_division): Likewise.
20873 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
20874 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
20875 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
20876 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
20877 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
20878 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
20879 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
20880 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
20881 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
20882 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
20883 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
20884 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
20885 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
20886 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
20887 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
20888 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
20889 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
20890 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
20891 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
20892 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
20893 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
20894 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
20895 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
20896 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
20897 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
20898 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
20899 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
20900 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
20901 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
20902 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
20903 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
20904 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
20905 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
20906 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
20907 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
20908 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
20909 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
20910 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
20911 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
20912 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
20913 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
20914 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
20915 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
20916 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
20917 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
20918 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
20919 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
20920 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
20921 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
20922 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
20923 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
20924 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
20925 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
20926 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
20927 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
20928 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
20929 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
20930 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
20931 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
20932 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
20933 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
20934 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
20935 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
20936 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
20937 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
20938 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
20939 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
20940 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
20941 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
20942 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
20943 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
20944 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
20945 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
20946 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
20947 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
20948 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
20949 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
20950 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
20951 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
20952 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
20953 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
20954 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
20955 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
20956 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
20957 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
20958 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
20959 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
20960 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
20961 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
20962 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
20963 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
20964 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
20965 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
20966 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
20967 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
20968 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
20969 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
20970 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
20971 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
20972 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
20973 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
20974 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
20975 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
20976 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
20977 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
20978 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
20979 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
20980 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
20981 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
20982 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
20983 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
20984 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
20985 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
20986 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
20987 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
20988 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
20989 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
20990 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
20991 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
20992 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
20993 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
20994 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
20995 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
20996 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
20997 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
20998 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
20999 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
21000 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
21001 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
21002 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
21003 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
21004 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
21005 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
21006 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
21007 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
21008 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
21009 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
21010 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
21011 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
21012 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
21013 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
21014 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
21015 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
21016 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
21017 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
21018 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
21019 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
21020 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
21021 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
21022 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
21023 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
21024 move_v builtins.
21025 (mips_get_builtin_decl_index): New array.
21026 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
21027 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
21028 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
21029 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
21030 (mips_init_builtins): Initialize mips_get_builtin_decl_index
21031 array.
21032 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
21033 hook.
21034 (mips_expand_builtin_insn): Prepare operands for
21035 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
21036 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
21037 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
21038 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
21039 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
21040 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
21041 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
21042 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
21043 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
21044 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
21045 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
21046 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
21047 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
21048 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
21049 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
21050 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
21051 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
21052 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
21053 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
21054 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
21055 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
21056 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
21057 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
21058 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
21059 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
21060 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
21061 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
21062 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
21063 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
21064 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
21065 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
21066 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
21067 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
21068 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
21069 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
21070 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
21071 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
21072 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
21073 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
21074 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
21075 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
21076 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
21077 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
21078 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
21079 These are set implicitly and an error is reported if overridden.
21080 (mips_expand_builtin_msa_test_branch): New function.
21081 (mips_expand_msa_shuffle): Likewise.
21082 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
21083 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
21084 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
21085 (mips_expand_vec_unpack): Add support for MSA.
21086 (mips_expand_vector_init): Likewise.
21087 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
21088 instead of const0_rtx.
21089 (mips_msa_vec_parallel_const_half): New function.
21090 (mips_gen_const_int_vector): Likewise.
21091 (mips_gen_const_int_vector_shuffle): Likewise.
21092 (mips_expand_msa_cmp): Likewise.
21093 (mips_expand_vec_cond_expr): Likewise.
21094 * config/mips/mips.h
21095 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
21096 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
21097 specified.
21098 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
21099 (ISA_HAS_MSA): New macro.
21100 (UNITS_PER_MSA_REG): Likewise.
21101 (BITS_PER_MSA_REG): Likewise.
21102 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
21103 (MSA_REG_FIRST): New macro.
21104 (MSA_REG_LAST): Likewise.
21105 (MSA_REG_NUM): Likewise.
21106 (MSA_REG_P): Likewise.
21107 (MSA_REG_RTX_P): Likewise.
21108 (MSA_SUPPORTED_MODE_P): Likewise.
21109 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
21110 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
21111 * config/mips/mips.md: Include mips-msa.md.
21112 (alu_type): Add simd_add.
21113 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
21114 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
21115 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
21116 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
21117 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
21118 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
21119 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
21120 simd_move, simd_load, simd_store. Choose "multi" for moves
21121 for "qword_mode".
21122 (qword_mode): New attribute.
21123 (insn_count): Add instruction count for quad moves.
21124 Increase the count for MIPS SIMD division.
21125 (UNITMODE): Add UNITMODEs for vector types.
21126 (addsub): New code iterator.
21127 * config/mips/mips.opt (mmsa): New option.
21128 * config/mips/msa.h: New file.
21129 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
21130 specified.
21131 * config/mips/mti-linux.h: Likewise.
21132 * config/mips/predicates.md
21133 (const_msa_branch_operand): New constraint.
21134 (const_uimm3_operand): Likewise.
21135 (const_uimm4_operand): Likewise.
21136 (const_uimm5_operand): Likewise.
21137 (const_uimm8_operand): Likewise.
21138 (const_imm5_operand): Likewise.
21139 (aq10b_operand): Likewise.
21140 (aq10h_operand): Likewise.
21141 (aq10w_operand): Likewise.
21142 (aq10d_operand): Likewise.
21143 (const_m1_operand): Likewise.
21144 (reg_or_m1_operand): Likewise.
21145 (const_exp_2_operand): Likewise.
21146 (const_exp_4_operand): Likewise.
21147 (const_exp_8_operand): Likewise.
21148 (const_exp_16_operand): Likewise.
21149 (const_vector_same_val_operand): Likewise.
21150 (const_vector_same_simm5_operand): Likewise.
21151 (const_vector_same_uimm5_operand): Likewise.
21152 (const_vector_same_uimm6_operand): Likewise.
21153 (const_vector_same_uimm8_operand): Likewise.
21154 (par_const_vector_shf_set_operand): Likewise.
21155 (reg_or_vector_same_val_operand): Likewise.
21156 (reg_or_vector_same_simm5_operand): Likewise.
21157 (reg_or_vector_same_uimm6_operand): Likewise.
21158 * doc/extend.texi (MIPS SIMD Architecture Functions): New
21159 section.
21160 * doc/invoke.texi (-mmsa): Document new option.
21161
21162 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21163
21164 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
21165 * configure: Regenerate.
21166 * config.in: Regenerate.
21167 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
21168 on -fvtable-verify.
21169 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
21170 (ENDFILE_VTV_SPEC): Define.
21171
21172 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
21173
21174 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
21175 registers in all interrupt handlers if necessary.
21176 (rl78_option_override): Add warning.
21177 (MUST_SAVE_MDUC_REGISTERS): New macro.
21178 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
21179 * config/rl78/rl78.c (check_mduc_usage): New function.
21180 (mduc_regs): New structure to hold MDUC register data.
21181 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
21182 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
21183 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
21184 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
21185 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
21186 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
21187
21188 2016-05-09 Bin Cheng <bin.cheng@arm.com>
21189
21190 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
21191 (tree-ssa-loop-niter.h): Ditto.
21192 (idx_within_array_bound, ref_within_array_bound): New functions.
21193 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
21194 Factor out check on writable base object to ...
21195 (base_object_writable): ... here.
21196
21197 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21198
21199 * config/arm/arm.md (probe_stack): Add modes to set source
21200 and destination.
21201
21202 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
21203
21204 * regrename.c (base_reg_class_for_rename): New static function.
21205 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
21206
21207 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
21208
21209 * cgraph.c (thunk_adjust): Export.
21210 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
21211 * cgraphunit.c (thunk_adjust): Export.
21212 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
21213 thunks.
21214 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
21215 inlinable.
21216 * tree-inline.c (expand_call_inline): Expand thunks inline.
21217
21218 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
21219
21220 PR target/70998
21221 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
21222 (*sse2_vd_cvtss2sd): Ditto.
21223 * config/i386/i386.md
21224 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
21225 Generate *sse2_vd_cvtsd2ss pattern.
21226 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
21227 Generate *sse2_vd_cvtss2sd pattern.
21228
21229 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
21230
21231 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
21232 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
21233 users.
21234
21235 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
21236
21237 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
21238 * config/sh/sh.c: Define and declare variables on first use throughout
21239 the file.
21240 (current_function_interrupt): Change to bool type.
21241 (frame_insn): Rename to emit_frame_insn and update users.
21242 (push_regs): Use bool for 'interrupt_handler' argument.
21243 (save_schedule_s): Remove.
21244 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
21245 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
21246 targetm.asm_out.unaligned_op.di.
21247 (gen_far_branch): Remove redundant forward declaration.
21248 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
21249 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
21250 (sh_set_return_address, sh_function_ok_for_sibcall,
21251 scavenge_reg): Update comments.
21252 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
21253 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
21254 (sh_attr_renesas_p): Remove unnecessary parentheses.
21255 (branch_dest): Simplify.
21256 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
21257 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
21258 (CUMULATIVE_ARGS): Change macro to typedef.
21259 (current_function_interrupt): Change to bool type.
21260 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
21261 Surround with __cplusplus ifdef.
21262 (sh_compare_op0, sh_compare_op1): Remove.
21263 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
21264
21265 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
21266
21267 * config/arm/arm.md (arch): Add neon.
21268 (arch_enabled): Return yes for arch neon when TARGET_NEON.
21269 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
21270 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
21271 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
21272 attributes for alt renumbering. Mark alt 3 as non-predicable.
21273 (thumb2_movdf_vfp): Likewise.
21274
21275 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
21276
21277 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
21278 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
21279 (*andqi_1): Add preferred_for_speed attribute to disparage
21280 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
21281 (*<code>qi_1): Ditto.
21282 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
21283 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
21284 (*ashlqi3_1): Ditto.
21285 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
21286 Add preferred_for_size attribute to disparage alternative 0 and
21287 preferred_for_speed attribute to disparage alternative 1 for
21288 TARGET_PARTIAL_REG_STALL targets.
21289
21290 2016-05-07 Tom de Vries <tom@codesourcery.com>
21291
21292 PR tree-optimization/70956
21293 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
21294 def.
21295
21296 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
21297
21298 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
21299 * config/sh/sh.c (sh_cbranch_distance): Implement it.
21300 * config/sh/sh.md (branch_zero): Remove define_attr.
21301 (define_delay): Disable delay slot if branch distance is one insn.
21302
21303 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
21304
21305 * config/i386/i386.md (LEAMODE): New mode attribute.
21306 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
21307 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
21308 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
21309 operand 2 predicate.
21310 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
21311 (*lea<mode>_general_3): Ditto.
21312 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
21313
21314 2016-05-06 Jakub Jelinek <jakub@redhat.com>
21315
21316 * genmddump.c (main): Convert argv from char ** to const char **.
21317
21318 2016-05-06 David Malcolm <dmalcolm@redhat.com>
21319
21320 * coretypes.h (OVERRIDE): New macro.
21321 (FINAL): New macro.
21322
21323 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
21324
21325 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
21326 allow coalescing if the types are compatible.
21327
21328 2016-05-06 David Malcolm <dmalcolm@redhat.com>
21329
21330 * pass_manager.h (pass_manager::register_pass_name): New method.
21331 (pass_manager::get_pass_by_name): New method.
21332 (pass_manager::create_pass_tab): New method.
21333 (pass_manager::m_name_to_pass_map): New field.
21334 * passes.c (name_to_pass_map): Delete global in favor of field
21335 "m_name_to_pass_map" of pass_manager.
21336 (register_pass_name): Rename from a function to...
21337 (pass_manager::register_pass_name): ...this method, updating
21338 for renaming of global "name_to_pass_map" to field
21339 "m_name_to_pass_map".
21340 (create_pass_tab): Rename from a function to...
21341 (pass_manager::create_pass_tab): ...this method, updating
21342 for renaming of global "name_to_pass_map" to field.
21343 (get_pass_by_name): Rename from a function to...
21344 (pass_manager::get_pass_by_name): ...this method.
21345 (enable_disable_pass): Convert use of get_pass_by_name to
21346 a method call, locating the pass_manager singleton.
21347
21348 2016-05-06 David Malcolm <dmalcolm@redhat.com>
21349
21350 * genattr-common.c (main): Convert argv from char ** to const char **.
21351 * genattr.c (main): Likewise.
21352 * genattrtab.c (main): Likewise.
21353 * genautomata.c (initiate_automaton_gen): Likewise.
21354 (main): Likewise.
21355 * gencodes.c (main): Likewise.
21356 * genconditions.c (main): Likewise.
21357 * genconfig.c (main): Likewise.
21358 * genconstants.c (main): Likewise.
21359 * genemit.c (main): Likewise.
21360 * genenums.c (main): Likewise.
21361 * genextract.c (main): Likewise.
21362 * genflags.c (main): Likewise.
21363 * genmddeps.c (main): Likewise.
21364 * genopinit.c (main): Likewise.
21365 * genoutput.c (main): Likewise.
21366 * genpeep.c (main): Likewise.
21367 * genpreds.c (main): Likewise.
21368 * genrecog.c (main): Likewise.
21369 * gensupport.c (init_rtx_reader_args_cb): Likewise.
21370 (init_rtx_reader_args): Likewise.
21371 * gensupport.h (init_rtx_reader_args_cb): Likewise.
21372 (init_rtx_reader_args): Likewise.
21373 * gentarget-def.c (main): Likewise.
21374 * read-md.c (read_md_files): Likewise.
21375 * read-md.h (read_md_files): Likewise.
21376
21377 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
21378
21379 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
21380 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
21381 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
21382 Remove unused predicate.
21383 (register_and_not_fp_reg_operand): Ditto.
21384
21385 2016-05-06 Martin Liska <mliska@suse.cz>
21386
21387 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
21388 instead of vec as the vector is local to the function.
21389
21390 2016-05-06 Jakub Jelinek <jakub@redhat.com>
21391
21392 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
21393 avx512bw alternative.
21394
21395 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
21396 before the ashr<mode>3 pattern.
21397
21398 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
21399 v instead of x in vex or maybe_vex alternatives, use
21400 maybe_evex instead of vex in prefix.
21401
21402 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
21403 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
21404 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
21405 in vex or maybe_vex alternatives, use maybe_evex instead of vex
21406 in prefix.
21407
21408 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
21409 v instead of x in vex or maybe_vex alternatives, use
21410 maybe_evex instead of vex in prefix.
21411
21412 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
21413 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
21414 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
21415 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
21416 alternatives, use maybe_evex instead of vex in prefix.
21417
21418 * config/i386/sse.md (vec_interleave_lowv4sf,
21419 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
21420 v instead of x in vex or maybe_vex alternatives, use
21421 maybe_evex instead of vex in prefix.
21422
21423 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
21424 v instead of x in vex or maybe_vex alternatives, use
21425 maybe_evex instead of vex in prefix.
21426
21427 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
21428 v constraint instead of x.
21429
21430 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
21431
21432 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
21433 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
21434 equality first.
21435
21436 2016-05-06 Richard Biener <rguenther@suse.de>
21437
21438 PR tree-optimization/70948
21439 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
21440 Properly clobber all fields of va_list for __builtin_va_start.
21441
21442 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
21443
21444 PR debug/70935
21445 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
21446 loop latch destination.
21447
21448 2016-05-06 Martin Liska <mliska@suse.cz>
21449
21450 * tree-ssa-uninit.c: Apply manual changes
21451 to the GNU coding style.
21452 (prune_uninit_phi_opnds): Rename from
21453 prune_uninit_phi_opnds_in_unrealizable_paths.
21454
21455 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
21456
21457 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
21458 mspace): Remove deprecated options.
21459 * doc/invoke.texi (SH options): Remove -mspace.
21460
21461 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
21462
21463 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
21464
21465 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
21466
21467 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
21468 corresponding combine split pattern.
21469
21470 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
21471
21472 PR target/58219
21473 * config/sh/predicates.md (long_displacement_mem_operand): New.
21474 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
21475 Add movi20, movi20s alternatives. Adjust length attribute for
21476 alternatives.
21477 (movsi_ie): Allow for any FPU. Adjust length attribute for
21478 alternatives.
21479 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
21480 attribute for alternatives.
21481 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
21482 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
21483 length attribute for alternatives.
21484
21485 2016-05-06 Richard Biener <rguenther@suse.de>
21486
21487 PR tree-optimization/70960
21488 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
21489
21490 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
21491
21492 PR target/52933
21493 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
21494 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
21495
21496 2016-05-06 Marek Polacek <polacek@redhat.com>
21497
21498 PR sanitizer/70875
21499 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
21500
21501 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
21502
21503 PR target/54089
21504 * config/sh/sh.md (*rotcr): Add another variant.
21505
21506 2016-05-06 Richard Biener <rguenther@suse.de>
21507
21508 PR middle-end/70931
21509 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
21510
21511 2016-05-06 Richard Biener <rguenther@suse.de>
21512
21513 PR middle-end/70941
21514 * fold-const.c (split_tree): Always convert to the original type
21515 before negating.
21516
21517 2016-05-06 Richard Biener <rguenther@suse.de>
21518
21519 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
21520 (fwprop_addr): Likewise.
21521
21522 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
21523
21524 PR target/70873
21525 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
21526 New prototype.
21527 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
21528 * config/i386/i386.md (push mem splitter): Use find_constant_src in
21529 the splitter condition.
21530 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
21531 the splitter condition.
21532 (FP float_extend load splitter): Ditto.
21533
21534 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
21535
21536 * config/i386/i386.md (peehole2 patterns): Change true_regnum
21537 to REGNO in all peephole2 patterns.
21538 (post-reload splitters): Change true_regnum to REGNO in
21539 post-reload splitters.
21540 (zero_extend splitters): Use general_reg_operand and
21541 nonimmediate_gr_operand predicates.
21542
21543 2016-05-05 Jakub Jelinek <jakub@redhat.com>
21544
21545 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
21546 v constraint instead of x.
21547
21548 2016-05-05 Alan Modra <amodra@gmail.com>
21549
21550 PR target/68662
21551 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
21552 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
21553 TARGET_NO_FP_IN_TOC for -mrelocatable.
21554 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
21555 TARGET_RELOCATABLE test.
21556 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
21557 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
21558 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
21559 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
21560 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
21561 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
21562 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
21563 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
21564 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
21565 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
21566 Likewise.
21567 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
21568 (rs6000_stack_info): Likewise.
21569 (rs6000_elf_asm_out_constructor): Likewise.
21570 (rs6000_elf_asm_out_destructor): Likewise.
21571 (rs6000_elf_declare_function_name): Likewise.
21572 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
21573 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
21574 Don't define.
21575
21576 2016-05-05 Alan Modra <amodra@gmail.com>
21577
21578 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
21579
21580 2016-05-05 Alan Modra <amodra@gmail.com>
21581
21582 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
21583 out-of-line gpr restore for one or two regs if that would add
21584 a save of lr.
21585
21586 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
21587
21588 PR target/70873
21589 * config/i386/i386.md
21590 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
21591 Change to post-epilogue_completed late splitter. Use sse_reg_operand
21592 as operand 0 predicate.
21593 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
21594 Ditto.
21595 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
21596 Ditto. Emit the pattern using RTX.
21597
21598 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
21599 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
21600 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
21601 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
21602 Ditto.
21603 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
21604 sse_reg_operand as operand 0 predicate.
21605
21606 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
21607 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
21608 instead of gen_rtx_REG.
21609 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
21610 Ditto.
21611
21612 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
21613
21614 * function.c (emit_use_return_register_into_block): Delete.
21615 (gen_return_pattern): Delete.
21616 (emit_return_into_block): Delete.
21617 (active_insn_between): Delete.
21618 (convert_jumps_to_returns): Delete.
21619 (emit_return_for_exit): Delete.
21620 (thread_prologue_and_epilogue_insns): Delete all code dealing with
21621 simple_return for shrink-wrapped blocks.
21622 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
21623 end of blocks that need one.
21624 (get_unconverted_simple_return): Delete.
21625 (convert_to_simple_return): Delete.
21626 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
21627 (convert_to_simple_return): Ditto.
21628
21629 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
21630
21631 * cfgcleanup.c (bb_is_just_return): New function.
21632 (try_optimize_cfg): Simplify jumps to return, branches to return,
21633 and branches around return.
21634
21635 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
21636
21637 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
21638 branch to a return.
21639
21640 2016-05-04 Jakub Jelinek <jakub@redhat.com>
21641
21642 PR c++/70906
21643 PR c++/70933
21644 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
21645 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
21646 assert flags & OEP_HASH_CHECK, instead of asserting it
21647 never happens. Handle TARGET_EXPR.
21648 * fold-const.c (operand_equal_p): For hash verification,
21649 or in OEP_HASH_CHECK into flags.
21650
21651 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
21652
21653 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
21654 comment.
21655 (compute_samebase_partition_bases): Fix typo.
21656
21657 2016-05-04 Jakub Jelinek <jakub@redhat.com>
21658
21659 * config/i386/sse.md (vec_interleave_highv8sf,
21660 vec_interleave_lowv8sf, vec_interleave_highv4df,
21661 vec_interleave_lowv4df): Remove constraints from expanders.
21662
21663 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
21664
21665 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
21666
21667 * tree-inline.c (expand_call_inline): Fix path dealing with
21668 making lhs of call statement undefined.
21669
21670 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
21671
21672 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
21673 Check availability on NODE, too.
21674 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
21675 (cgraph_node::call_for_symbol_and_aliases): Likewise.
21676 (varpool_node::call_for_symbol_and_aliase): Likewise.
21677 * ipa-pure-const.c (add_new_function): Analyze all bodies.
21678 (propagate_pure_const): Propagate across interposable functions, too.
21679 (skip_function_for_local_pure_const): Do not skip interposable bodies
21680 with aliases.
21681 (pass_local_pure_const::execute): Update.
21682
21683 2016-05-04 Marek Polacek <polacek@redhat.com>
21684
21685 * doc/invoke.texi: Document -Wdangling-else.
21686
21687 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
21688
21689 * config.gcc: Error out when conflicting multilib is detected. Do not
21690 loop over multilibs since no combination is legal.
21691
21692 2016-05-04 Alan Modra <amodra@gmail.com>
21693
21694 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
21695 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
21696 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
21697 Align .toc.
21698
21699 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
21700
21701 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
21702 Clean up p5600 comments.
21703
21704 2016-05-04 Richard Biener <rguenther@suse.de>
21705
21706 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
21707 constructor simplifications.
21708 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
21709
21710 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
21711
21712 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
21713 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
21714 result.set_rtx is null instead of aborting.
21715 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
21716 Always enable.
21717 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
21718 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
21719 *mov<mode>_store_postinc): New patterns.
21720
21721 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
21722
21723 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
21724 as commutative. Check both conversions are NOP.
21725 ((A & B) OP (C & B)): Remove.
21726
21727 2016-05-04 Alan Modra <amodra@gmail.com>
21728
21729 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
21730
21731 2016-05-04 Alan Modra <amodra@gmail.com>
21732
21733 PR target/70866
21734 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
21735 when cr2,3,4 are all fixed regs.
21736
21737 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
21738
21739 PR rtl-optimization/57193
21740 * opts.c (default_options_table): Revert OPT_frename_registers change.
21741 * doc/invoke.texi (-frename-registers, -O2): Likewise.
21742
21743 2016-05-03 Martin Sebor <msebor@redhat.com>
21744
21745 PR c++/66561
21746 * builtins.c (fold_builtin_FILE): New function.
21747 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
21748 (fold_builtin_0): Call them.
21749 * gimplify.c (gimplify_call_expr): Remove the handling of
21750 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
21751
21752 PR c++/66561
21753 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
21754 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
21755 constants.
21756
21757 PR c++/66639
21758 * doc/extend.texi (Function Names as Strings): Update __func__,
21759 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
21760 constants.
21761
21762 2016-05-03 Jakub Jelinek <jakub@redhat.com>
21763 Richard Biener <rguenther@suse.de>
21764
21765 PR tree-optimization/70916
21766 * tree-if-conv.c: Include cfganal.h.
21767 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
21768 and remove_fake_exit_edges around the optimization pass.
21769
21770 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
21771
21772 * cgraph.c (symbol_table::create_edge): Set inline_failed.
21773 (cgraph_edge::make_direct): Likewise.
21774 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
21775 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
21776 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
21777 (CIF_THUNK): New code.
21778 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
21779 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
21780 (compute_inline_parameters): Set inline_failed for thunks.
21781 (inline_analyze_function): Cleanup.
21782 * ipa-inline.c (can_inline_edge_p): Do not deal with
21783 call_stmt_cannot_inline_p.
21784 (can_early_inline_edge_p): Likewise.
21785 (early_inliner): Initialize inline_failed.
21786 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
21787
21788 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
21789
21790 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
21791 from nonimm_ssenomem_operand.
21792 (nonimm_ssenomem_operand): New predicate.
21793 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
21794 as operand 0 predicate.
21795 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
21796 Disable unsupported alternatives using "enabled" attribute.
21797 Use register_ssemem_operand as operand 0 predicate.
21798 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
21799
21800 2016-05-03 Marek Polacek <polacek@redhat.com>
21801
21802 PR c/70859
21803 * input.c (expansion_point_location): New function.
21804 * input.h (expansion_point_location): Declare.
21805
21806 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
21807
21808 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
21809 occurence with frame_offset_ ones.
21810
21811 2016-05-03 Alan Modra <amodra@gmail.com>
21812
21813 PR rtl-optimization/70890
21814 * ira.c (combine_and_move_insns): When moving def_insn, remove
21815 equivs on use_insn.
21816
21817 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
21818
21819 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
21820 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
21821 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
21822 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
21823
21824 2016-05-03 Alan Modra <amodra@gmail.com>
21825
21826 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
21827 for SAVE_MULTIPLE/STORE_MULTIPLE.
21828
21829 2016-05-03 Jakub Jelinek <jakub@redhat.com>
21830
21831 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
21832 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
21833
21834 2016-05-03 Richard Biener <rguenther@suse.de>
21835
21836 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
21837 default true.
21838 (gimplify_arg): Likewise.
21839 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
21840 re-writing the result to a decl if required.
21841 (internal_get_tmp_var): Add allow_ssa parameter
21842 and override into_ssa with it.
21843 (get_formal_tmp_var): Adjust.
21844 (get_initialized_tmp_var): Add allow_ssa parameter.
21845 (gimplify_arg): Add allow_ssa parameter and avoid generating
21846 SSA names for the result false.
21847 (gimplify_call_expr): If the call may return twice do not
21848 gimplify parameters into SSA.
21849 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
21850 (gimplify_modify_expr): Adjust assert. For noreturn calls
21851 with a SSA name LHS adjust its def.
21852 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
21853 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
21854 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
21855 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
21856 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
21857 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
21858 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
21859 (optimize_target_teams): Do not allow SSA names for clause operands.
21860 (gimplify_expr): Likewise for where we mark the result addressable.
21861 * passes.def (pass_init_datastructures): Remove.
21862 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
21863 (rewrite_stmt): Likewise.
21864 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
21865 (replace_locals_op): Replace SSA names.
21866 (copy_gimple_seq_and_replace_locals): Init src_cfun.
21867 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
21868 * cgraph.c (release_function_body): Free CFG annotations only
21869 when we have a CFG. Simplify.
21870 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
21871 force_gimple_operand instead of get_initialized_tmp_var.
21872 * tree-pass.h (make_pass_init_datastructures): Remove.
21873 * tree-ssa.c (execute_init_datastructures): Remove.
21874 (pass_data_init_datastructures): Likewise.
21875 (class pass_init_datastructures): Likewise.
21876 (make_pass_init_datastructures): Likewise.
21877 * omp-low.c (create_omp_child_function): Init SSA data structures.
21878 (grid_expand_target_grid_body): Likewise.
21879 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
21880 name before adding it to names_to_release.
21881 (remove_bb): Always release SSA defs.
21882 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
21883 before dereferencing it.
21884 * cgraphunit.c (init_lowered_empty_function): Always
21885 int SSA data structures.
21886 * tree-ssanames.c (release_defs): Remove assert that we are in
21887 SSA form.
21888 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
21889
21890 2016-05-03 Jakub Jelinek <jakub@redhat.com>
21891 Uros Bizjak <ubizjak@gmail.com>
21892
21893 PR rtl-optimization/70467
21894 * config/i386/predicates.md (x86_64_hilo_int_operand,
21895 x86_64_hilo_general_operand): New predicates.
21896 * config/i386/constraints.md (Wd): New constraint.
21897 * config/i386/i386.md (mode attr di): Use Wd instead of e.
21898 (general_hilo_operand): New mode attr.
21899 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
21900 instead of <general_operand>.
21901 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
21902 x86_64_hilo_general_operand instead of <general_operand>.
21903
21904 2016-05-03 Jakub Jelinek <jakub@redhat.com>
21905
21906 PR tree-optimization/70916
21907 * tree-if-conv.c (constant_or_ssa_name): Removed.
21908 (fold_build_cond_expr): Use is_gimple_val instead of
21909 constant_or_ssa_name.
21910
21911 PR tree-optimization/70916
21912 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
21913 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
21914
21915 PR target/49244
21916 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
21917 (optimize_atomic_bit_test_and): New function.
21918 (pass_fold_builtins::execute): Use it.
21919 * optabs.def (atomic_bit_test_and_set_optab,
21920 atomic_bit_test_and_complement_optab,
21921 atomic_bit_test_and_reset_optab): New optabs.
21922 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
21923 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
21924 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
21925 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
21926 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
21927 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
21928 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
21929 * doc/md.texi (atomic_bit_test_and_set@var{mode},
21930 atomic_bit_test_and_complement@var{mode},
21931 atomic_bit_test_and_reset@var{mode}): Document.
21932 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
21933 atomic_bit_test_and_complement<mode>,
21934 atomic_bit_test_and_reset<mode>): New expanders.
21935 (atomic_bit_test_and_set<mode>_1,
21936 atomic_bit_test_and_complement<mode>_1,
21937 atomic_bit_test_and_reset<mode>_1): New insns.
21938
21939 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
21940
21941 PR rtl-optimization/70687
21942 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
21943 instead of unsigned HOST_WIDE_INT.
21944
21945 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
21946
21947 PR rtl-optimization/44281
21948 * hard-reg-set.h (struct target_hard_regs): New field
21949 x_fixed_nonglobal_reg_set.
21950 (fixed_nonglobal_reg_set): New macro.
21951 * reginfo.c (init_reg_sets_1): Initialize it.
21952 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
21953 of fixed_reg_set.
21954 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
21955
21956 2016-05-03 Bin Cheng <bin.cheng@arm.com>
21957
21958 PR tree-optimization/56541
21959 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
21960 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
21961 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
21962 (any_complicated_phi): new static variable.
21963 (aggressive_if_conv): delete.
21964 (if_convertible_phi_p): support phis with more than two arguments.
21965 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
21966 critical pred edges.
21967 (ifcvt_split_critical_edges): support phis with more than two
21968 arguments by checking new parameter. only split critical edges
21969 if needed.
21970 (tree_if_conversion): handle simd pragma marked loop using new
21971 local variable aggressive_if_conv. check any_complicated_phi.
21972
21973 2016-05-03 Bin Cheng <bin.cheng@arm.com>
21974
21975 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
21976 before using it.
21977
21978 2016-05-03 Bin Cheng <bin.cheng@arm.com>
21979
21980 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
21981 cbase.
21982
21983 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
21984
21985 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
21986 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
21987 define_insn_and_split.
21988 (mulsi3_i): New define_insn_and_split.
21989 (mulsi3_call): Convert to define_insn.
21990 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
21991 Remove constraints.
21992
21993 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
21994
21995 * machmode.h (mode_complex): Add support to give the complex mode
21996 for a given mode.
21997 (GET_MODE_COMPLEX_MODE): Likewise.
21998 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
21999 stored by build_complex_type and gfc_build_complex_type instead of
22000 trying to figure out the appropriate mode based on the size. Raise
22001 an assertion error, if the type was not set.
22002 * genmodes.c (struct mode_data): Add field for the complex type of
22003 the given type.
22004 (blank_mode): Likewise.
22005 (make_complex_modes): Remember the complex mode created in the
22006 base type.
22007 (emit_mode_complex): Write out the mode_complex array to map a
22008 type mode to the complex version.
22009 (emit_insn_modes_c): Likewise.
22010 * tree.c (build_complex_type): Set the complex type to use before
22011 calling layout_type.
22012 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
22013 support for __float128 complex datatypes.
22014 (rs6000_hard_regno_mode_ok): Likewise.
22015 (rs6000_setup_reg_addr_masks): Likewise.
22016 (rs6000_complex_function_value): Likewise.
22017 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
22018 __float128 and __ibm128 complex.
22019 (FLOAT128_IBM_P): Likewise.
22020 (ALTIVEC_ARG_MAX_RETURN): Likewise.
22021 * doc/extend.texi (Additional Floating Types): Document that
22022 -mfloat128 must be used to enable __float128. Document complex
22023 __float128 and __ibm128 support.
22024
22025 2016-05-02 Jakub Jelinek <jakub@redhat.com>
22026
22027 PR target/49244
22028 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
22029 char/short arguments promoted to int because of promote_prototypes.
22030
22031 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
22032
22033 * config/i386/predicates.md (register_ssemem_operand): New predicate.
22034 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
22035 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
22036 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
22037 alternatives using "enabled" attribute. Use register_ssemem_operand
22038 as operand 1 predicate.
22039 (*cmpi<unord>xf_i387): Split XFmode pattern from
22040 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
22041 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
22042 *absneg<mode>2_i387. Disable unsupported alternatives using
22043 "enabled" attribute.
22044 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
22045
22046 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
22047
22048 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
22049 marker.
22050 (oacc_loop_process): Check mask for loop termination.
22051
22052 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
22053
22054 * cif-code.def (CIF_THUNK): Add.
22055 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
22056 accidental change.
22057
22058 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
22059
22060 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
22061 (dump_inline_summary): Dump it.
22062 (fp_expression_p): New predicate.
22063 (estimate_function_body_sizes): Use it.
22064 (inline_merge_summary): Merge fp_expressions.
22065 (inline_read_section): Read fp_expressions.
22066 (inline_write_summary): Write fp_expressions.
22067 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
22068 codegen boundary if either caller or callee is !fp_expressions.
22069 * ipa-inline.h (inline_summary): Add fp_expressions.
22070 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
22071 to fp_expressions be sure the fp generation flags are updated.
22072
22073 2016-05-02 Jakub Jelinek <jakub@redhat.com>
22074
22075 PR rtl-optimization/70467
22076 * cse.c (cse_insn): Handle no-op MEM moves after folding.
22077
22078 PR rtl-optimization/70467
22079 * ipa-pure-const.c (check_call): Handle internal calls even in
22080 ipa mode like in local mode.
22081
22082 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
22083
22084 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
22085
22086 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
22087
22088 * match.pd (X u< X, X u> X): New transformations.
22089
22090 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
22091
22092 * flag-types.h (enum warn_strict_overflow_code): Move ...
22093 * coretypes.h: ... here.
22094 * fold-const.h (fold_overflow_warning): Declare.
22095 * fold-const.c (fold_overflow_warning): Make non-static.
22096 (fold_comparison): Move the transformation of X +- C1 CMP C2
22097 into X CMP C2 -+ C1 ...
22098 * match.pd: ... here.
22099 * gimple-fold.c (fold_stmt_1): Protect with
22100 fold_defer_overflow_warnings.
22101
22102 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
22103
22104 * omp-low.c (struct oacc_loop): Add 'inner' field.
22105 (new_oacc_loop_raw): Initialize it to zero.
22106 (oacc_loop_fixed_partitions): Initialize it.
22107 (oacc_loop_auto_partitions): Partition outermost loop to outermost
22108 available partitioning.
22109
22110 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
22111
22112 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
22113 register_operand.
22114 (umulsidi3): Likewise.
22115 (indirect_jump): Fix jump instruction assembly patterns.
22116
22117 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
22118
22119 PR target/70860
22120 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
22121 (nvptx_function_value): Assert non-NULL cfun.
22122
22123 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
22124
22125 PR rtl-optimization/70886
22126 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
22127
22128 * cselib.h (rtx_equal_for_cselib_1): Declare.
22129 (rtx_equal_for_cselib_p: New inline function.
22130 * cselib.c (rtx_equal_for_cselib_p): Delete.
22131 (rtx_equal_for_cselib_1): Make public.
22132
22133 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
22134
22135 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
22136 (register_mixssei387nonimm_operand): Remove predicate.
22137 * config/i386/i386.md (*fop_<mode>_comm): Merge from
22138 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
22139 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
22140 for TARGET_MIX_SSE_I387 alternatives.
22141 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
22142 Disable unsupported alternatives using "enabled" attribute. Use
22143 nonimm_ssenomem_operand as operand 1 predicate. Also check
22144 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
22145
22146 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
22147
22148 * tree.c (cst_and_fits_in_hwi): Simplify.
22149
22150 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
22151
22152 * tree.h (wi::to_wide): New function.
22153 * expr.c (expand_expr_real_1): Use wi::to_wide.
22154 * fold-const.c (int_const_binop_1): Likewise.
22155 (extract_muldiv_1): Likewise.
22156
22157 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
22158
22159 * wide-int.h: Update offset_int and widest_int documentation.
22160 (WI_SIGNED_SHIFT_RESULT): New macro.
22161 (wi::binary_shift): Define signed_shift_result_type for
22162 shifts on offset_int- and widest_int-like types.
22163 (generic_wide_int): Support <<= and >>= if << and >> are supported.
22164 * tree.h (int_bit_position): Use shift operators instead of wi::
22165 shifts.
22166 * alias.c (adjust_offset_for_component_ref): Likewise.
22167 * expr.c (get_inner_reference): Likewise.
22168 * fold-const.c (fold_comparison): Likewise.
22169 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
22170 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
22171 * tree-dfa.c (get_ref_base_and_extent): Likewise.
22172 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
22173 (stmt_kills_ref_p): Likewise.
22174 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
22175 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
22176 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
22177 (ao_ref_init_from_vn_reference): Likewise.
22178
22179 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
22180
22181 * wide-int.h: Update offset_int and widest_int documentation.
22182 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
22183 (wi::binary_traits): Allow ordered comparisons between offset_int and
22184 offset_int, between widest_int and widest_int, and between either
22185 of these types and basic C types.
22186 (operator <, <=, >, >=): Define for the same combinations.
22187 * tree.h (tree_int_cst_lt): Use comparison operators instead
22188 of wi:: comparisons.
22189 (tree_int_cst_le): Likewise.
22190 * gimple-fold.c (fold_array_ctor_reference): Likewise.
22191 (fold_nonarray_ctor_reference): Likewise.
22192 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
22193 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
22194 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
22195 * tree-sra.c (completely_scalarize): Likewise.
22196 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
22197 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
22198 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
22199 (check_for_binary_op_overflow): Likewise.
22200 (search_for_addr_array): Likewise.
22201 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
22202
22203 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
22204
22205 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
22206 (arc_save_restore): Likewise.
22207 (arc_dwarf_register_span): Likewise.
22208 (arc_output_pic_addr_const): Initialize suffix variable.
22209
22210 2016-05-02 Martin Liska <mliska@suse.cz>
22211
22212 * symbol-summary.h (function_summary::function_summary):
22213 Remove checking assert for all cgraph nodes.
22214 (function_summary::get): Check summary_uid.
22215 (symtab_insertion): Check summary_uid.
22216
22217 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
22218
22219 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
22220 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
22221 bmaskn instruction.
22222 (arc_dwarf_register_span): Remove enum keyword.
22223 (compact_memory_operand_p): New function.
22224 * config/arc/arc.h (reg_class): Add code density register classes.
22225 (REG_CLASS_NAMES): Likewise.
22226 (REG_CLASS_CONTENTS): Likewise.
22227 * config/arc/arc.md (*movqi_insn): Add code density instructions.
22228 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
22229 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
22230 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
22231 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
22232 constraints.
22233 (h, Rcd, Rsd, Rzd): New register constraints.
22234 (T): Use compact_memory_operand_p function.
22235 * config/arc/predicates.md (compact_load_memory_operand): Remove.
22236
22237 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
22238
22239 * config/sh/sh.md (*negnegt, *movtt): Remove.
22240
22241 2016-05-02 Marek Polacek <polacek@redhat.com>
22242 Tom de Vries <tom@codesourcery.com>
22243
22244 PR tree-optimization/70700
22245 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
22246 bigger than FIRST_REF_NODE.
22247
22248 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
22249
22250 PR target/52898
22251 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
22252 TARGET_CMPEQDI_T.
22253 (prepare_cbranch_operands): Don't use scratch register. Assume that
22254 function is used when pseudos can be created.
22255 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
22256 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
22257 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
22258 define_expand. Allow it only when pseudos can be created.
22259 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
22260
22261 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
22262
22263 * config/i386/constraints.md (BC): Only allow -1 operands.
22264 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
22265 Add "enabled" attribute. Update XI mode attribute calculation.
22266 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
22267 (*movoi_internal_avx): Update XI mode attribute calculation.
22268 (*movti_internal): Ditto.
22269
22270 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
22271
22272 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
22273 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
22274
22275 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
22276
22277 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
22278 statement on instruction code. Remove trailing spaces.
22279 (altivec_expand_stv_builtin): Likewise.
22280
22281 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
22282
22283 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
22284 (TARGET_FPU_DOUBLE): Simplify.
22285 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
22286 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
22287 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
22288 with 'TARGET_FPU_DOUBLE'.
22289 * config/sh/sh.md: Likewise.
22290
22291 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
22292
22293 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
22294 SH_DIV_STR_FOR_SIZE): Remove.
22295 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
22296 SH_DIV_STR_FOR_SIZE): Remove.
22297
22298 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
22299
22300 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
22301 logical_reg_operand): Delete.
22302 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
22303 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
22304 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
22305 match_operand and match_test.
22306 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
22307 variables on their first use. Return bool values.
22308 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
22309 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
22310 arith_reg_operand for input operand. Remove empty constraints.
22311 (xorsi3): Delete.
22312 (*xorsi3_compact): Rename to xorsi3.
22313 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
22314 (*zero_extend<mode>si2_disp_mem): Update comment.
22315 (mov_nop): Delete.
22316
22317 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
22318
22319 * config/sh/t-sh: Remove SH5 support.
22320 * config.gcc: Likewise.
22321 * configure: Likewise.
22322
22323 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22324
22325 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
22326
22327 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
22328
22329 * config/sh/sh.c (register_sh_passes, sh_option_override,
22330 sh_print_operand, prepare_move_operands,
22331 sh_can_follow_jump): Remove TARGET_SH1 checks.
22332 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
22333 PROMOTE_MODE): Likewise.
22334 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
22335 movdi): Likewise.
22336
22337 2016-04-30 Alan Modra <amodra@gmail.com>
22338
22339 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
22340 restoring when fixed_reg_p, but allow out-of-line or stmw save.
22341 Check for user regs later to avoid unnecessary looping over regs.
22342 Merge user reg check with non-saved reg check. Don't force
22343 inline VR restore when static chain used.
22344 (rs6000_frame_related): Omit eh_frame info for user regs when
22345 saving.
22346 (fixed_regs_p): Delete.
22347
22348 2016-04-30 Alan Modra <amodra@gmail.com>
22349
22350 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
22351 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
22352 Update all uses.
22353
22354 2016-04-30 Alan Modra <amodra@gmail.com>
22355
22356 PR target/69645
22357 * config/rs6000/rs6000.c (fixed_reg_p): New function.
22358 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
22359 Update all uses.
22360
22361 2016-04-30 Alan Modra <amodra@gmail.com>
22362
22363 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
22364 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
22365 flag_pic test for Darwin.
22366
22367 2016-04-30 Alan Modra <amodra@gmail.com>
22368
22369 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
22370 throw_calls_crossed.
22371 (REG_FREQ_CALLS_CROSSED): Delete.
22372 (REG_N_THROWING_CALLS_CROSSED): Delete.
22373 * regstat.c (regstat_bb_compute_ri): Don't calculate
22374 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
22375 (dump_reg_info): Don't print call cross frequency.
22376 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
22377 and REG_N_THROWING_CALLS_CROSSED.
22378
22379 2016-04-30 Alan Modra <amodra@gmail.com>
22380
22381 * regs.h (struct reg_info_t): Delete live_length.
22382 (REG_LIVE_LENGTH): Delete macro.
22383 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
22384 local_live, local_processed and local_live_last_luid params.
22385 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
22386 Formatting fixes.
22387 (regstat_compute_ri): Adjust for above. Don't set
22388 REG_LIVE_LENGTH.
22389 (dump_reg_info): Don't print live length.
22390 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
22391 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
22392 Localize loop_depth var.
22393
22394 2016-04-30 Alan Modra <amodra@gmail.com>
22395
22396 * ira.c (enum valid_equiv): New.
22397 (validate_equiv_mem): Return enum.
22398 (update_equiv_mem): Create replacement in more cases.
22399 (add_store_equivs): Update validate_equiv_mem call.
22400
22401 2016-04-30 Alan Modra <amodra@gmail.com>
22402
22403 * ira.c (combine_and_move_insns): Rather than scanning insns,
22404 use DF infrastucture to find use and def insns.
22405
22406 2016-04-30 Alan Modra <amodra@gmail.com>
22407
22408 ira.c (combine_and_move_insns): Move invariant conditions..
22409 (ira.c): ..to here. Call combine_and_move_insns before
22410 add_store_equivs. Call grow_reg_equivs later. Allocate
22411 req_equiv later using max_reg_num() rather than global max_regno.
22412 (contains_replace_regs): Delete.
22413 (add_store_equivs): Remove contains_replace_regs test.
22414
22415 2016-04-30 Alan Modra <amodra@gmail.com>
22416
22417 * ira.c (struct equiv_mem_data): New.
22418 (equiv_mem, equiv_mem_modified): Delete static vars.
22419 (validate_equiv_mem_from_store): Use "data" param to communicate..
22420 (validate_equiv_mem): ..from here.
22421
22422 2016-04-30 Alan Modra <amodra@gmail.com>
22423
22424 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
22425 split out from..
22426 (update_reg_equivs): ..here. Move allocation and freeing of
22427 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
22428 end_alias_analysis to..
22429 (ira): ..here.
22430
22431 2016-04-30 Alan Modra <amodra@gmail.com>
22432
22433 * ira.c (pdx_subregs): Delete.
22434 (struct equivalence): Add pdx_subregs field.
22435 (set_paradoxical_subreg): Remove pdx_subregs param. Update
22436 pdx_subregs access.
22437 (update_equiv_regs): Don't create or free pdx_subregs. Update
22438 pdx_subregs access.
22439
22440 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22441
22442 * config/rs6000/altivec.h: Change definitions of vec_xl and
22443 vec_xst.
22444 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
22445 (LD_ELEMREV_V2DI): New.
22446 (LD_ELEMREV_V4SF): New.
22447 (LD_ELEMREV_V4SI): New.
22448 (LD_ELEMREV_V8HI): New.
22449 (LD_ELEMREV_V16QI): New.
22450 (ST_ELEMREV_V2DF): New.
22451 (ST_ELEMREV_V2DI): New.
22452 (ST_ELEMREV_V4SF): New.
22453 (ST_ELEMREV_V4SI): New.
22454 (ST_ELEMREV_V8HI): New.
22455 (ST_ELEMREV_V16QI): New.
22456 (XL): New.
22457 (XST): New.
22458 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
22459 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
22460 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
22461 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
22462 (altivec_expand_builtin): Add handling for
22463 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
22464 (rs6000_invalid_builtin): Add error-checking for
22465 RS6000_BTM_P9_VECTOR.
22466 (altivec_init_builtins): Define builtins used to implement vec_xl
22467 and vec_xst.
22468 (rs6000_builtin_mask_names): Define power9-vector.
22469 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
22470 (RS6000_BTM_P9_VECTOR): Define.
22471 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
22472 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
22473 (vsx_ld_elemrev_v2df): Likewise.
22474 (vsx_ld_elemrev_v4sf): Likewise.
22475 (vsx_ld_elemrev_v4si): Likewise.
22476 (vsx_ld_elemrev_v8hi): Likewise.
22477 (vsx_ld_elemrev_v16qi): Likewise.
22478 (vsx_st_elemrev_v2df): Likewise.
22479 (vsx_st_elemrev_v2di): Likewise.
22480 (vsx_st_elemrev_v4sf): Likewise.
22481 (vsx_st_elemrev_v4si): Likewise.
22482 (vsx_st_elemrev_v8hi): Likewise.
22483 (vsx_st_elemrev_v16qi): Likewise.
22484 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
22485 grammar.
22486
22487 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
22488
22489 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
22490 out into ...
22491 (simplify_control_stmt_condition_1): ... here. Recurse into
22492 BIT_AND_EXPRs and BIT_IOR_EXPRs.
22493
22494 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
22495
22496 PR target/69810
22497 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
22498 (zero_extendqi<mode>2_dot): Revert earlier conversion from
22499 define_insn_and_split to define_insn.
22500 (zero_extendqi<mode>2_dot2): Same.
22501 (extendqi<mode>2_dot): Same.
22502 (extendqi<mode>2_dot2): Same.
22503
22504 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
22505
22506 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
22507 (probe_stack): New expander.
22508 (probe_stack_<mode>): New insn pattern.
22509
22510 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
22511
22512 * config/i386/i386.md
22513 (operations with memory inputs setting flags peephole2):
22514 Remove uneeded REG_P checks. Cleanup pattern generation.
22515
22516 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
22517
22518 * tree-vect-loop.c (vect_transform_loop): Fix
22519 nb_iterations_upper_bound computation for vectorized loop.
22520
22521 2016-04-29 Marek Polacek <polacek@redhat.com>
22522 Jakub Jelinek <jakub@redhat.com>
22523
22524 PR sanitizer/70342
22525 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
22526 TARGET_EXPR_SLOT as a base.
22527
22528 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
22529
22530 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
22531 with 'rCm2' constraints to limit possible immediate size.
22532 (*load_zeroextendqisi_update): Likewise.
22533 (*load_signextendqisi_update): Likewise.
22534 (*loadhi_update): Likewise.
22535 (*load_zeroextendhisi_update): Likewise.
22536 (*load_signextendhisi_update): Likewise.
22537 (*loadsi_update): Likewise.
22538 (*loadsf_update): Likewise.
22539
22540 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
22541
22542 * config/i386/predicates.md (constm1_operand): Fix comparison.
22543
22544 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
22545
22546 * testsuite/gcc.target/arc/ieee_eq.c: New test.
22547
22548 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
22549
22550 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
22551 remaining SH5 related settings.
22552 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
22553 shmedia_prepare_call_address): Delete.
22554 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
22555 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
22556 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
22557 UNSUPPORTED_SH2A): Remove m5 checks.
22558 (sh_divide_strategy_e): Remove SH5 division strategies.
22559 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
22560 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
22561
22562 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
22563
22564 * config/s390/s390.c (s390_rtx_costs): Update documentation.
22565
22566 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22567
22568 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
22569 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
22570 Change lder to ldr.
22571 * config/s390/vector.md ("mov<mode>"): Likewise.
22572
22573 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
22574
22575 * config/s390/constraints.md ("U", "W"): Invoke
22576 s390_mem_constraint with "ZR" and "ZT".
22577 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
22578 addresses when using LRA. Accept also short displacements for S
22579 and T constraints. Do not check for long displacement target for
22580 S and T constraints.
22581 (s390_mem_constraint): Remove handling of U and W constraints.
22582 * config/s390/s390.md (various patterns): Remove the short
22583 displacement constraints (Q and R) if a long displacement
22584 constraint is present. Add longdisp as required CPU capability.
22585 * config/s390/vector.md: Likewise.
22586 * config/s390/vx-builtins.md: Likewise.
22587
22588 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22589
22590 PR target/60040
22591 * reload1.c (reload): Call finish_spills before
22592 restarting reload loop. Skip select_reload_regs
22593 if update_eliminables_and_spill returns true.
22594
22595 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
22596
22597 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
22598 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
22599 (umulhisi3_imm): Update predicates and constraint letters.
22600 (umulhisi3_reg): Declare instruction as commutative.
22601 * config/arc/constraints.md (J12, J16): New constraints.
22602 * config/arc/predicates.md (short_unsigned_const_operand): New
22603 predicate.
22604 (arc_short_operand): Likewise.
22605 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
22606
22607 2016-04-29 Richard Biener <rguenther@suse.de>
22608
22609 PR tree-optimization/13962
22610 PR tree-optimization/65686
22611 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
22612 * tree-ssa-alias.c (ptrs_compare_unequal): New function
22613 using PTA to compare pointers.
22614 * match.pd: Add pattern for pointer equality compare simplification
22615 using ptrs_compare_unequal.
22616
22617 2016-04-29 Richard Biener <rguenther@suse.de>
22618
22619 * stor-layout.c (layout_type): Do not build a pointer-to-element
22620 type for arrays.
22621
22622 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
22623
22624 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
22625 Use SWI mode iterator. Use general_reg_operand predicate.
22626 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
22627 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
22628 predicates.
22629
22630 2016-04-29 Jakub Jelinek <jakub@redhat.com>
22631
22632 PR middle-end/70843
22633 * fold-const.c (operand_equal_p): Don't verify hash value equality
22634 if arg0 == arg1.
22635 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
22636 and OMP_CLAUSE.
22637
22638 2016-04-28 Jakub Jelinek <jakub@redhat.com>
22639
22640 PR target/70858
22641 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
22642 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
22643 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
22644 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
22645 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
22646
22647 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
22648
22649 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
22650 to info. Don't initialize separate fields to 0. Clean up
22651 formatting a bit.
22652
22653 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
22654
22655 * config/i386/i386.md (peephole2s for operations with memory inputs):
22656 Use SWI mode iterator.
22657 (peephole2s for operations with memory outputs): Ditto.
22658 Do not check for stack checking probe.
22659
22660 (probe_stack): Remove expander.
22661
22662 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
22663 Andrew Burgess <andrew.burgess@embecosm.com>
22664
22665 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
22666 operands as 32-bits.
22667
22668 2016-04-28 Jason Merrill <jason@redhat.com>
22669
22670 * gdbinit.in: Skip line-map.h.
22671
22672 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
22673 Andrew Burgess <andrew.burgess@embecosm.com>
22674
22675 * config/arc/arc.c (arc_conditional_register_usage): Take
22676 TARGET_RRQ_CLASS into account.
22677 (arc_print_operand): Support printing 'p' and 's' operands.
22678 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
22679 as 0.
22680 (TARGET_RRQ_CLASS): Define.
22681 (IS_POWEROF2_OR_0_P): Define.
22682 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
22683 alternatives.
22684 (*tst_movb): New define_insn.
22685 (*tst): Avoid recognition if it could prevent '*tst_movb'
22686 combination; replace c/CnL with c/Chs alternative.
22687 (*tst_bitfield_tst): New define_insn.
22688 (*tst_bitfield_asr): New define_insn.
22689 (*tst_bitfield): New define_insn.
22690 (andsi3_i): Add Rrq variant.
22691 (extzv): New define_expand.
22692 (insv): New define_expand.
22693 (*insv_i): New define_insn.
22694 (*movb): New define_insn.
22695 (*movb_signed): New define_insn.
22696 (*movb_high): New define_insn.
22697 (*movb_high_signed): New define_insn.
22698 (*movb_high_signed + 1): New define_split pattern.
22699 (*mrgb): New define_insn.
22700 (*mrgb + 1): New define_peephole2 pattern.
22701 (*mrgb + 2): New define_peephole2 pattern.
22702 * config/arc/arc.opt (mbitops): New option for nps400, uses
22703 TARGET_NPS_BITOPS_DEFAULT.
22704 * config/arc/constraints.md (q): Make register class conditional.
22705 (Rrq): New register constraint.
22706 (Chs): New constraint.
22707 (Clo): New constraint.
22708 (Chi): New constraint.
22709 (Cbf): New constraint.
22710 (Cbn): New constraint.
22711 (C18): New constraint.
22712 (Cbi): New constraint.
22713
22714 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
22715
22716 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
22717 dst->popcount.
22718 (bitmap_intersection_of_preds): Ditto.
22719 (bitmap_union_of_succs): Ditto.
22720 (bitmap_union_of_preds): Ditto.
22721 * sbitmap.c (do_popcount): Delete.
22722 (BITMAP_DEBUGGING): Delete.
22723 (sbitmap_verify_popcount): Delete.
22724 (sbitmap_alloc): Don't initialize the popcount field.
22725 (sbitmap_alloc_with_popcount): Delete.
22726 (sbitmap_resize): Don't resize the popcount array.
22727 (sbitmap_vector_alloc): Don't initialize the popcount field.
22728 (bitmap_copy): Don't copy the popcount array.
22729 (bitmap_clear): Don't clear the popcount array.
22730 (bitmap_clear): Delete the popcount array handling.
22731 (bitmap_ior_and_compl): Delete the popcount assert.
22732 (bitmap_not): Ditto.
22733 (bitmap_and_compl): Ditto.
22734 (bitmap_and): Delete the popcount array handling.
22735 (bitmap_xor): Ditto.
22736 (bitmap_ior): Ditto.
22737 (bitmap_or_and): Delete the popcount assert.
22738 (bitmap_and_or): Ditto.
22739 (popcount_table): Delete.
22740 (sbitmap_elt_popcount): Delete.
22741 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
22742 (bitmap_set_bit): Delete the popcount assert.
22743 (bitmap_clear_bit): Ditto.
22744 (sbitmap_free): Don't free the popcount array.
22745 (sbitmap_alloc_with_popcount): Delete declaration.
22746 (sbitmap_popcount): Ditto.
22747
22748 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
22749 Andrew Burgess <andrew.burgess@embecosm.com>
22750
22751 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
22752 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
22753 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
22754 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
22755 * config/arc/arc.opt (mcmem): New option.
22756 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
22757 supply length for r/m alternative.
22758 (*extendqisi2_ac): Likewise.
22759 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
22760 r/Uex alternative.
22761 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
22762 (movhi_insn): Likewise.
22763 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
22764 (*zero_extendqihi2_i): Add r/Ucm alternative.
22765 (*zero_extendqisi2_ac): Likewise.
22766 (*zero_extendhisi2_i): Likewise.
22767 * config/arc/constraints.md (Uex): New memory constraint.
22768 (Ucm): New define_constraint.
22769 * config/arc/predicates.md (long_immediate_loadstore_operand):
22770 Return 0 for MEM with cmem_address address.
22771 (cmem_address_0): New predicates.
22772 (cmem_address_1): Likewise.
22773 (cmem_address_2): Likewise.
22774 (cmem_address): Likewise.
22775
22776 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
22777
22778 * config/rs6000/rs6000.c (machine_function): Rename
22779 insn_chain_scanned_p to spe_insn_chain_scanned_p.
22780 (rs6000_stack_info): Adjust.
22781
22782 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
22783 Andrew Burgess <andrew.burgess@embecosm.com>
22784
22785 * config/arc/constraints.md (Usd): Convert to define_constraint.
22786 (Us<): Likewise.
22787 (Us>): Likewise.
22788
22789 2016-04-28 Jakub Jelinek <jakub@redhat.com>
22790
22791 PR target/70821
22792 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
22793 Add new peephole2 where the first insn is *mov<mode>_or instead of
22794 *mov<mode>_internal.
22795
22796 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
22797
22798 * tracer.c (bb_seen): Make static.
22799
22800 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
22801
22802 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
22803 support, setup defaults.
22804 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
22805 * config/arc/arc.c (arc_init): Add NPS400 support.
22806 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
22807 (TARGET_ARC700): NPS400 is also an ARC700.
22808 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
22809
22810 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
22811
22812 PR target/70668
22813 * config/nds32/nds32.md (casesi): Don't access the operands array
22814 out of bounds.
22815
22816 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
22817
22818 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
22819 (or $-1,reg peephole2): Ditto.
22820 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
22821
22822 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
22823
22824 * doc/extend.texi (Common Function Attributes) [optimize]:
22825 Discourage use of the optimize attribute.
22826
22827 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
22828
22829 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
22830 special case builtin.
22831 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
22832 ALTIVEC_BUILTIN_VEC_ADDE.
22833 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
22834 support for ALTIVEC_BUILTIN_VEC_ADDE.
22835 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
22836 for __builtin_vec_adde.
22837
22838 2016-04-28 Jakub Jelinek <jakub@redhat.com>
22839
22840 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
22841 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
22842
22843 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22844
22845 PR testsuite/70595
22846 * doc/sourcebuild.texi (Effective-Target Keywords, Other
22847 attributes): Document cilkplus_runtime.
22848
22849 2016-04-28 Martin Jambor <mjambor@suse.cz>
22850
22851 * tree-cfg.c (verify_expr): Verify that local declarations belong to
22852 this function. Call verify_expr on MEM_REFs and bases of other
22853 handled_components.
22854
22855 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22856
22857 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
22858 for WORD_REGISTER_OPERATIONS to runtime check.
22859
22860 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
22861
22862 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
22863
22864 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
22865
22866 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
22867 big-endian compilation.
22868 * config/arc/arc.md (addf3): Likewise.
22869 (subdf3): Likewise.
22870 (muldf3): Likewise.
22871
22872 2016-04-28 Richard Biener <rguenther@suse.de>
22873
22874 PR tree-optimization/70840
22875 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
22876 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
22877 Mark x * pow(x,c) -> pow(x,c+1) commutative.
22878 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
22879
22880 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22881
22882 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
22883 and explain why in a comment.
22884
22885 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
22886
22887 * config/arc/arc.md (cpu_facility): Add fpx variant.
22888 (subdf3): Prohibit use reverse sub when assist operations option
22889 is enabled.
22890 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
22891 instructions only when FPX is enabled.
22892 * testsuite/gcc.target/arc/trsub.c: New test.
22893
22894 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
22895
22896 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
22897 mult_operator when calculating "type" attribute.
22898 (*fop_<mode>_1_i387): Ditto.
22899 (*fop_xf_1_i387): Ditto.
22900 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
22901 Use std::swap to swap operands. Use RTL expressions to generate
22902 converted pattern.
22903
22904 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
22905 Joern Rennecke <joern.rennecke@embecosm.com>
22906
22907 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
22908 declaration.
22909 (emit_pic_move): Remove.
22910 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
22911 * config/arc/arc.c (emit_pic_move): Removed.
22912 (TARGET_HAVE_TLS): Define.
22913 (arc_conditional_register_usage): Test for arc_tp_regno.
22914 (arc_print_operand, arc_print_operand_address): Handle TLS
22915 unspecs.
22916 (arc_needs_pcl_p): New function.
22917 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
22918 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
22919 (arc_raw_symbolic_reference_mentioned_p): Likewise.
22920 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
22921 (arc_legitimize_tls_address): Likewise.
22922 (DTPOFF_ZERO_SYM): Define.
22923 (arc_legitimize_pic_address): Make it static, handle TLS cases.
22924 (arc_output_pic_addr_const): Print TLS unspecs.
22925 (prepare_pic_move): New function, replaces emit_pic_move.
22926 (arc_legitimate_constant_p): Handle TLS unspecs.
22927 (arc_legitimate_address_p): Likewise.
22928 (arc_rewrite_small_data_p): Use assert for TLS constants.
22929 (prepare_move_operands): Use prepare_pic_move.
22930 (arc_legitimize_address): Legitimize tls addresses.
22931 (arc_epilogue_uses): Check for arc_tp_regno.
22932 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
22933 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
22934 Define.
22935 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
22936 Likewise.
22937 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
22938 %(arc_tls_extra_start_spec).
22939 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
22940 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
22941 (EH_USES): Define.
22942 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
22943 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
22944 (UNSPEC_TLS_OFF): Add.
22945 (R10_REG): Define.
22946 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
22947 (get_thread_pointersi): New patterns.
22948 * config/arc/arc.opt (mtp-regno): New option.
22949 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
22950 (move_dest_operand): Likewise.
22951 * configure: Regenerate.
22952 * configure.ac: Add arc*-*-* case to test for tls.
22953 * doc/invoke.texi (ARC options): Document mtp-regno.
22954
22955 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
22956
22957 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
22958 the new ARC HS SIMD instructions.
22959 (arc_preferred_simd_mode): New function.
22960 (arc_autovectorize_vector_sizes): Likewise.
22961 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
22962 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
22963 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
22964 (arc_init_builtins): Add new SIMD builtin types.
22965 (arc_split_move): Handle 64 bit vector moves.
22966 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
22967 (TARGET_PLUS_QMACW): Define.
22968 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
22969 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
22970 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
22971 (VSUBADD4H): New builtins.
22972 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
22973 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
22974
22975 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
22976 Matthias Klose <doko@debian.org>
22977
22978 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
22979
22980 2016-04-28 Richard Biener <rguenther@suse.de>
22981
22982 PR middle-end/70777
22983 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
22984 canonicalization.
22985
22986 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
22987
22988 * common/config/sh/sh-common.c: Remove SH5 support.
22989 * config/sh/constraints.md: Likewise.
22990 * config/sh/config/sh/elf.h: Likewise.
22991 * config/sh/linux.h: Likewise.
22992 * config/sh/netbsd-elf.h: Likewise.
22993 * config/sh/predicates.md: Likewise.
22994 * config/sh/sh-c.c: Likewise.
22995 * config/sh/sh-protos.h: Likewise.
22996 * config/sh/sh.c: Likewise.
22997 * config/sh/sh.h: Likewise.
22998 * config/sh/sh.md: Likewise.
22999 * config/sh/sh.opt: Likewise.
23000 * config/sh/sync.md: Likewise.
23001 * config/sh/sh64.h: Delete.
23002 * config/sh/shmedia.h: Likewise.
23003 * config/sh/shmedia.md: Likewise.
23004 * config/sh/sshmedia.h: Likewise.
23005 * config/sh/t-netbsd-sh5-64: Likewise.
23006 * config/sh/t-sh64: Likewise.
23007 * config/sh/ushmedia.h: Likewise.
23008
23009 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
23010
23011 * config/i386/i386.md (sign_extend to memory peephole2s): Use
23012 general_reg_operand instead of register_operand predicate.
23013
23014 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23015
23016 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
23017
23018 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
23019
23020 * match.pd (A - B > A, A + B < A): New transformations.
23021
23022 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
23023
23024 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
23025 which defaults to true. Emit an outer pair of parentheses only if
23026 EMIT_PARENS. When continuing a chain of && or || (or & or |),
23027 don't emit parentheses for the right-hand operand.
23028
23029 2016-04-27 Jeff Law <law@redhat.com>
23030
23031 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
23032
23033 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23034
23035 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
23036 (altivec_lvx_<mode>_internal): Document.
23037 (altivec_lvx_<mode>_2op): New define_insn.
23038 (altivec_lvx_<mode>_1op): Likewise.
23039 (altivec_lvx_<mode>_2op_si): Likewise.
23040 (altivec_lvx_<mode>_1op_si): Likewise.
23041 (altivec_stvx_<mode>): Remove.
23042 (altivec_stvx_<mode>_internal): Document.
23043 (altivec_stvx_<mode>_2op): New define_insn.
23044 (altivec_stvx_<mode>_1op): Likewise.
23045 (altivec_stvx_<mode>_2op_si): Likewise.
23046 (altivec_stvx_<mode>_1op_si): Likewise.
23047 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
23048 Expand vec_ld and vec_st during parsing.
23049 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
23050 changes.
23051 (altivec_expand_stvx_be): Likewise.
23052 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
23053 address-masking behavior in RTL.
23054 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
23055 address-masking behavior in RTL.
23056 (altivec_expand_builtin): Change builtin code arguments for calls
23057 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
23058 (insn_is_swappable_p): Avoid incorrect swap optimization in the
23059 presence of lvx/stvx patterns.
23060 (alignment_with_canonical_addr): New function.
23061 (alignment_mask): Likewise.
23062 (find_alignment_op): Likewise.
23063 (recombine_lvx_pattern): Likewise.
23064 (recombine_stvx_pattern): Likewise.
23065 (recombine_lvx_stvx_patterns): Likewise.
23066 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
23067 stvx patterns from expand.
23068 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
23069 expansions.
23070 (vector_altivec_store_<mode>): Likewise.
23071
23072 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
23073
23074 * config/aarch64/aarch64.md
23075 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
23076 remove the "fp" attributes.
23077 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
23078 add the "simd" attributes.
23079 (*movdf_aarch64): Likewise.
23080 (*movtf_aarch64): Remove the "fp" attributes.
23081 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
23082 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
23083
23084 2016-04-27 David Malcolm <dmalcolm@redhat.com>
23085
23086 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
23087 rtx to rtx_code_label *.
23088 * rtl.h (maybe_set_first_label_num): Likewise.
23089
23090 2016-04-27 David Malcolm <dmalcolm@redhat.com>
23091
23092 * df-core.c (df_add_problem): Make the problem param be const.
23093 (df_remove_problem): Make local "problem" be const.
23094 * df-problems.c (problem_RD): Make const.
23095 (problem_LR): Likewise.
23096 (problem_LIVE): Likewise.
23097 (problem_MIR): Likewise.
23098 (problem_CHAIN): Likewise.
23099 (problem_WORD_LR): Likewise.
23100 (problem_NOTE): Likewise.
23101 (problem_MD): Likewise.
23102 * df-scan.c (problem_SCAN): Likewise.
23103 * df.h (struct df_problem): Make field "dependent_problem" be
23104 const.
23105 (struct dataflow): Likewise for field "problem".
23106 (df_add_problem): Make param const.
23107
23108 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
23109
23110 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
23111 inter-unit moves to/from vector registers are enabled. Do not disable
23112 for TARGET_MMX.
23113
23114 2016-04-27 David Malcolm <dmalcolm@redhat.com>
23115
23116 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
23117 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
23118 #define to...
23119 (enum df_problem_id): ...this new enum.
23120 (struct df_problem): Convert field "id" from "int" to
23121 enum df_problem_id.
23122
23123 2016-04-27 David Malcolm <dmalcolm@redhat.com>
23124
23125 * rtl.def: Update comment for "things in the instruction chain" to
23126 reflect the removal of the leading "i" field for INSN_UID in
23127 r210360. Fix bogus apostrophe.
23128
23129 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
23130
23131 * config/i386/i386.md
23132 (lea arith with mem operand + setcc peephole2): Set operator mode.
23133
23134 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
23135
23136 PR target/70155
23137 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
23138 (dimode_scalar_to_vector_candidate_p): This.
23139 (timode_scalar_to_vector_candidate_p): New function.
23140 (scalar_to_vector_candidate_p): Likewise.
23141 (timode_check_non_convertible_regs): Likewise.
23142 (timode_remove_non_convertible_regs): Likewise.
23143 (remove_non_convertible_regs): Likewise.
23144 (remove_non_convertible_regs): Renamed to ...
23145 (dimode_remove_non_convertible_regs): This.
23146 (scalar_chain::~scalar_chain): Make it virtual.
23147 (scalar_chain::compute_convert_gain): Make it pure virtual.
23148 (scalar_chain::mark_dual_mode_def): Likewise.
23149 (scalar_chain::convert_insn): Likewise.
23150 (scalar_chain::convert_registers): Likewise.
23151 (scalar_chain::add_to_queue): Make it protected.
23152 (scalar_chain::emit_conversion_insns): Likewise.
23153 (scalar_chain::replace_with_subreg): Likewise.
23154 (scalar_chain::replace_with_subreg_in_insn): Likewise.
23155 (scalar_chain::convert_op): Likewise.
23156 (scalar_chain::convert_reg): Likewise.
23157 (scalar_chain::make_vector_copies): Likewise.
23158 (scalar_chain::convert_registers): New pure virtual function.
23159 (class dimode_scalar_chain): New class.
23160 (class timode_scalar_chain): Likewise.
23161 (scalar_chain::mark_dual_mode_def): Renamed to ...
23162 (dimode_scalar_chain::mark_dual_mode_def): This.
23163 (timode_scalar_chain::mark_dual_mode_def): New function.
23164 (timode_scalar_chain::convert_insn): Likewise.
23165 (dimode_scalar_chain::convert_registers): Likewise.
23166 (scalar_chain::compute_convert_gain): Renamed to ...
23167 (dimode_scalar_chain::compute_convert_gain): This.
23168 (scalar_chain::replace_with_subreg): Renamed to ...
23169 (dimode_scalar_chain::replace_with_subreg): This.
23170 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
23171 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
23172 (scalar_chain::make_vector_copies): Renamed to ...
23173 (dimode_scalar_chain::make_vector_copies): This.
23174 (scalar_chain::convert_reg): Renamed to ...
23175 (dimode_scalar_chain::convert_reg ): This.
23176 (scalar_chain::convert_op): Renamed to ...
23177 (dimode_scalar_chain::convert_op): This.
23178 (scalar_chain::convert_insn): Renamed to ...
23179 (dimode_scalar_chain::convert_insn): This.
23180 (scalar_chain::convert): Call convert_registers.
23181 (convert_scalars_to_vector): Change to scalar_chain pointer to
23182 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
23183 in 32-bit mode. Delete scalar_chain pointer. Call
23184 free_dominance_info in 64-bit mode.
23185 (pass_stv::gate): Remove TARGET_64BIT check.
23186 (ix86_option_override): Put the 64-bit STV pass before the CSE
23187 pass.
23188
23189 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
23190
23191 * dwarf2out.h (struct dw_loc_descr_node): Remove the
23192 dw_loc_frame_offset field.
23193 * dwarf2out.c (new_loc_descr): Likewise.
23194 (resolve_args_picking_1): Turn the VISITED hash set into a
23195 FRAME_OFFSET hash map. Use it to associate a frame offset to
23196 visited nodes. Remove uses of the CHECKING_P macro.
23197 (resolve_args_picking): Update call to resolve_args_picking_1.
23198
23199 2016-04-27 Martin Liska <mliska@suse.cz>
23200
23201 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
23202 (free_loop_data): Release vuses of groups.
23203
23204 2016-04-27 Bin Cheng <bin.cheng@arm.com>
23205
23206 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
23207 instead of redundant use_id and boolean have_use_for.
23208 (struct iv_use): Change sub_id into group_id. Remove field next.
23209 Move fields: related_cands, n_map_members, cost_map and selected
23210 to ...
23211 (struct iv_group): ... here. New structure.
23212 (struct iv_common_cand): Use structure declaration directly.
23213 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
23214 (MAX_CONSIDERED_USES): Rename macro to ...
23215 (MAX_CONSIDERED_GROUPS): ... here.
23216 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
23217 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
23218 (dump_uses): Rename to ...
23219 (dump_groups): ... here. Update all uses.
23220 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
23221 (find_induction_variables): Refactor format of dump information.
23222 (record_sub_use): Delete.
23223 (record_use): Update all uses.
23224 (record_group): New function.
23225 (record_group_use, find_interesting_uses_op): Call above functions.
23226 Update all uses.
23227 (find_interesting_uses_cond): Ditto.
23228 (group_compare_offset): New function.
23229 (split_all_small_groups): Rename to ...
23230 (split_small_address_groups_p): ... here. Update all uses.
23231 (split_address_groups): Update all uses.
23232 (find_interesting_uses): Refactor format of dump information.
23233 (add_candidate_1): Update all uses. Remove redundant check on iv,
23234 base and step.
23235 (add_candidate, record_common_cand): Remove redundant assert.
23236 (add_iv_candidate_for_biv): Update use.
23237 (add_iv_candidate_derived_from_uses): Update all uses.
23238 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
23239 (alloc_use_cost_map): Ditto.
23240 (set_use_iv_cost, get_use_iv_cost): Rename to ...
23241 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
23242 (determine_use_iv_cost_generic): Ditto.
23243 (determine_group_iv_cost_generic): Ditto.
23244 (determine_use_iv_cost_address): Ditto.
23245 (determine_group_iv_cost_address): Ditto.
23246 (determine_use_iv_cost_condition): Ditto.
23247 (determine_group_iv_cost_cond): Ditto.
23248 (determine_use_iv_cost): Ditto.
23249 (determine_group_iv_cost): Ditto.
23250 (set_autoinc_for_original_candidates): Update all uses.
23251 (find_iv_candidates): Update all uses. Refactor dump information.
23252 (determine_use_iv_costs): Ditto.
23253 (determine_iv_costs): Ditto.
23254 (iv_ca_cand_for_use): Rename to ...
23255 (iv_ca_cand_for_group): ... here. Update all uses.
23256 (iv_ca_add_use, iv_ca_add_group): Ditto.
23257 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
23258 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
23259 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
23260 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
23261 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
23262 (create_new_iv, adjust_iv_update_pos): Ditto.
23263 (rewrite_use_address): Delete.
23264 (rewrite_use_address_1): Rename to ...
23265 (rewrite_use_address): ... here.
23266 (rewrite_use_compare): Update all uses.
23267 (rewrite_use): Delete.
23268 (rewrite_uses): Rename to ...
23269 (rewrite_groups): ... here. Update all uses.
23270 (remove_unused_ivs, free_loop_data): Update all uses.
23271 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
23272
23273 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23274
23275 * rtlanal.c (nonzero_bits1): Convert preprocessor check
23276 for WORD_REGISTER_OPERATIONS to runtime check.
23277
23278 2016-04-27 Richard Biener <rguenther@suse.de>
23279
23280 PR ipa/70760
23281 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
23282 aggregate_value_p to determine if a function result is
23283 returned by reference.
23284 (ipa_pta_execute): Functions having their address taken are
23285 not automatically nonlocal.
23286
23287 2016-04-27 Jakub Jelinek <jakub@redhat.com>
23288
23289 PR sanitizer/70683
23290 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
23291 * fold-const.c (operand_equal_p): If flag_checking and
23292 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
23293 and if it returns non-zero, assert iterative_hash_expr on both
23294 args is the same.
23295
23296 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
23297
23298 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
23299
23300 2016-04-27 Nick Clifton <nickc@redhat.com>
23301
23302 PR middle-end/49889
23303 * varasm.c (merge_weak): Generate an error if an attempt is made
23304 to convert a non-weak static function into a weak, public function.
23305
23306 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23307
23308 * params.def (MAX_PARTITION_SIZE): New param.
23309 * doc/invoke.texi: Document lto-max-partition.
23310
23311 2016-04-27 Richard Biener <rguenther@suse.de>
23312
23313 PR ipa/70785
23314 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
23315 function cummulating used_from_other_partition, externally_visible
23316 and force_output from aliases.
23317 (refered_from_nonlocal_var): Likewise.
23318 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
23319 node flags properly.
23320
23321 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
23322
23323 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
23324 (-Wmemset-elt-size): New item.
23325
23326 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
23327
23328 PR ada/70759
23329 * stor-layout.h (internal_reference_types): Delete.
23330 * stor-layout.c (reference_types_internal): Likewise.
23331 (internal_reference_types): Likewise.
23332 (layout_type) <REFERENCE_TYPE>: Adjust.
23333
23334 2016-04-27 Jakub Jelinek <jakub@redhat.com>
23335
23336 PR sanitizer/70683
23337 * tree.h (inchash::add_expr): Add FLAGS argument.
23338 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
23339 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
23340 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
23341 Formatting fix. Adjust recursive calls. For tcc_comparison,
23342 if swap_tree_comparison (code) is smaller than code, hash that
23343 and arguments in the other order. Hash CONVERT_EXPR the same
23344 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
23345 of ADDR_EXPR of decl as the decl itself. Add or remove
23346 OEP_ADDRESS_OF from recursive flags as needed. For
23347 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
23348 operands commutatively and only the third one normally.
23349 For internal CALL_EXPR hash in CALL_EXPR_IFN.
23350
23351 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
23352
23353 * config/rtems.h (LIB_SPEC): Add -latomic.
23354
23355 2016-04-27 Joel Sherrill <joel@rtems.org>
23356
23357 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
23358 xilink.ld and flags not relevant to RTEMS.
23359
23360 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
23361
23362 * toplev.c (backend_init_target): Avoid calling init_reload when using
23363 LRA.
23364
23365 2016-04-26 Jakub Jelinek <jakub@redhat.com>
23366
23367 * reorg.c (try_merge_delay_insns): Declare i and j inside the
23368 for loops rather than one for the whole function.
23369
23370 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
23371
23372 * match.pd (X + CST CMP X): New transformation.
23373
23374 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
23375
23376 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
23377 * fold-const.c (fold_binary_loc): Remove 2 transformations
23378 superseded by match.pd.
23379 * match.pd (x+x -> x*2): Generalize to integers.
23380
23381 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
23382
23383 * config/i386/i386.md (operation on memory peephole): Duplicate an
23384 existing peephole and adapt it to match lea rather than an operation
23385 that clobbers CC.
23386
23387 PR rtl-optimization/57193
23388 * opts.c (default_options_table): Add OPT_frename_registers at -O2
23389 and above.
23390 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
23391
23392 2016-04-26 Bin Cheng <bin.cheng@arm.com>
23393
23394 * tree-if-conv.c (any_pred_load_store): New static variable.
23395 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
23396 any_pred_load_store instead of and_mask_load_store.
23397 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
23398 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
23399 (combine_blocks, tree_if_conversion): Ditto.
23400
23401 2016-04-26 Bin Cheng <bin.cheng@arm.com>
23402
23403 PR tree-optimization/70771
23404 PR tree-optimization/70775
23405 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
23406 virtual PHI nodes. Delete parameter.
23407 (if_convertible_loop_p_1): Delete argument to above function.
23408 (predicate_all_scalar_phis): Delete code handling single-argument
23409 PHIs.
23410 (tree_if_conversion): Mark and update virtual SSA.
23411
23412 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23413
23414 PR target/61821
23415 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
23416 (x86_elf_aligned_common): Rename to ...
23417 (x86_elf_aligned_decl_common): ... this.
23418 Add decl arg. Switch to .lbss for largecomm object. Use
23419 LARGECOMM_SECTION_ASM_OP.
23420 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
23421 renaming.
23422 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
23423 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
23424 Pass new decl arg.
23425 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
23426 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
23427
23428 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23429
23430 PR target/59407
23431 * config/i386/i386.c (SECTION_LARGE): Define.
23432 (x86_64_elf_select_section): Set it for large data/bss sections.
23433 Only clear SECTION_WRITE for .lrodata.
23434 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
23435 data/bss sections.
23436 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
23437 * varasm.c (default_elf_asm_named_section): Grow flagchars.
23438 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
23439 SECTION_MACH_DEP.
23440 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
23441 * doc/tm.texi: Regenerate.
23442
23443 2016-04-26 Jakub Jelinek <jakub@redhat.com>
23444
23445 PR bootstrap/70704
23446 * configure.ac (--enable-checking): Document extra flag, for
23447 non-release builds default to --enable-checking=yes,extra.
23448 If misc checking and extra checking, define CHECKING_P to 2 instead
23449 of 1.
23450 * common.opt (fchecking=): Add.
23451 * doc/invoke.texi (-fchecking=): Document.
23452 * doc/install.texi: Document --enable-checking changes.
23453 * configure: Regenerated.
23454 * config.in: Regenerated.
23455
23456 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
23457
23458 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
23459 attribute instead of which_alternative.
23460 * config/i386/sse.md (*mov<mode>_internal): Ditto.
23461 Use EXT_REX_SSE_REG_P where appropriate.
23462
23463 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
23464
23465 * config/i386/predicates.md (const0_operand): Do not match
23466 const_wide_int code.
23467 (const1_operand): Ditto.
23468
23469 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
23470
23471 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
23472 for SSE constm1 operands and TARGET_AVX512VL.
23473 (*movti_internal): Ditto.
23474 (*mov<mode>_or): Use constm1_operand predicate.
23475 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
23476 for SSE vector_all_ones operands and TARGET_AVX512VL.
23477 * config/i386/predicates.md (constm1_operand): New predicate.
23478 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
23479 emission of constant -1 load.
23480
23481 2016-04-25 Jason Merrill <jason@redhat.com>
23482
23483 * gdbinit.in: Skip is-a.h.
23484
23485 * attribs.c (register_scoped_attributes): Fix logic.
23486 * attribs.h: Declare register_scoped_attributes.
23487
23488 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23489
23490 * config/rs6000/rs6000-builtin.def: Correct pasto error for
23491 stxvd2x and stxvw4x built-in functions.
23492
23493 2016-04-25 DJ Delorie <dj@redhat.com>
23494
23495 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
23496 (ashrhi3): Likewise.
23497 (lshrhi3): Likewise.
23498
23499 2016-04-25 Richard Biener <rguenther@suse.de>
23500
23501 PR tree-optimization/70780
23502 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
23503 wasn't visited yet.
23504 (compute_antic): Mark blocks with abnormal preds as visited as
23505 they have a final empty antic-in solution already.
23506
23507 2016-04-25 Michael Collison <michael.collison@linaro.org>
23508
23509 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
23510
23511 2016-04-25 Michael Collison <michael.collison@linaro.org>
23512
23513 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
23514 mode is VQI to improve mixed mode vectorization.
23515 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
23516 define_insn to match low half of signed vaddw.
23517 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
23518 define_insn to match high half of signed vaddw.
23519 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
23520 define_insn to match low half of unsigned vaddw.
23521 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
23522 define_insn to match high half of unsigned vaddw.
23523 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
23524 (arm_simd_check_vect_par_cnst_half_p): Likewise.
23525 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
23526 for new function.
23527 (arm_simd_check_vect_par_cnst_half_p): Likewise.
23528 * config/arm/predicates.md (vect_par_constant_high): Support
23529 big endian and simplify by calling
23530 arm_simd_check_vect_par_cnst_half
23531 (vect_par_constant_low): Likewise.
23532
23533 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
23534
23535 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
23536 predicate for operand 2.
23537
23538 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
23539 H.J. Lu <hongjiu.lu@intel.com>
23540
23541 * config/i386/i386-protos.h (standard_sse_constant_p): Add
23542 machine_mode argument.
23543 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
23544 constm1_rtx operands. For VOIDmode constants, get mode from
23545 pred_mode. Check mode size if the mode is supported by ABI.
23546 (standard_sse_constant_opcode): Do not use standard_constant_p.
23547 Strictly check ABI support for all-ones operands.
23548 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
23549 immediates. Update calls to standard_sse_constant_p.
23550 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
23551 (ix86_rtx_costs): Ditto.
23552 * config/i386/i386.md (*movxi_internal_avx512f): Use
23553 nonimmediate_or_sse_const_operand instead of vector_move_operand.
23554 Use (v,BC) alternative instead of (v,C). Use register_operand
23555 checks instead of MEM_P.
23556 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
23557 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
23558 isa attribute. Use register_operand checks instead of MEM_P.
23559 (*movti_internal): Use nonimmediate_or_sse_const_operand for
23560 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
23561 alternative and corresponding sse2 isa attribute.
23562 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
23563 to standard_sse_constant_p.
23564 (FP constant splitters): Ditto.
23565 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
23566 (C): Ditto.
23567 * config/i386/predicates.md (constm1_operand): Remove.
23568 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
23569 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
23570 vector_all_ones_operand instead of constm1_operand.
23571
23572 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23573
23574 * print-rtl.c (print_rtx_insn_vec): New function.
23575 * print-rtl.h: New prototype.
23576 * store-motion.c (struct st_expr): Make avail_stores a vector.
23577 (st_expr_entry): Adjust.
23578 (free_st_expr_entry): Likewise.
23579 (print_store_motion_mems): Likewise.
23580 (find_moveable_store): Likewise.
23581 (compute_store_table): Likewise.
23582 (delete_store): Likewise.
23583 (build_store_vectors): Likewise.
23584
23585 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23586
23587 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
23588
23589 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23590
23591 * vec.h (vec_safe_contains): New function.
23592 (vec::contains): Likewise.
23593 (vec::begin): Likewise.
23594 (vec::end): Likewise.
23595
23596 2016-04-23 Jakub Jelinek <jakub@redhat.com>
23597
23598 PR sanitizer/70712
23599 * cfgexpand.c (expand_stack_vars): Fix typo.
23600
23601 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
23602
23603 * system.h (list, map, set, vector): Include conditionally.
23604 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
23605 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
23606 * ipa-icf.c (INCLUDE_LIST): Define.
23607 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
23608 * config/sh/sh.c (INCLUDE_VECTOR): Define.
23609 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
23610 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
23611 * cp/logic.cc (INCLUDE_LIST): Define.
23612 * fortran/trans-common.c (INCLUDE_MAP): Define.
23613
23614 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
23615
23616 * auto-profile.c: Remove <string.h> include.
23617 * ipa-icf-gimple.c: Remove <list> include.
23618 * diagnostic.c: Remove <new> include.
23619 * genmatch.c: Likewise.
23620 * pretty-print.c: Likewise.
23621 * toplev.c: Likewise
23622 * c/c-objc-common.c: Likewise.
23623 * cp/error.c: Likewise.
23624 * fortran/error.c: Likewise.
23625
23626 2016-04-22 Richard Biener <rguenther@suse.de>
23627
23628 * lto-streamer-in.c (input_ssa_names): Do not allocate
23629 GIMPLE_NOP for all SSA names.
23630 * lto-streamer-out.c (output_ssa_names): Do not output
23631 SSA names that should have been released.
23632
23633 2016-04-22 Richard Biener <rguenther@suse.de>
23634
23635 PR tree-optimization/70740
23636 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
23637 VDEF.
23638
23639 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
23640
23641 PR target/70750
23642 * config/i386/predicates.md (call_insn_operand): Replace
23643 sibcall_memory_operand with memory_operand.
23644
23645 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
23646
23647 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
23648 has_single_use() tests.
23649 (register_edge_assert_for_1): Likewise.
23650 (find_assert_locations_1): Check the liveness bitmap instead of
23651 checking has_single_use().
23652
23653 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
23654
23655 PR target/70728
23656 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
23657 Extract AVX-512BW constraint from AVX.
23658
23659 2016-04-21 Richard Biener <rguenther@suse.de>
23660
23661 PR tree-optimization/70725
23662 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
23663 for phi_convertible_by_degenerating_args.
23664 (predicate_all_scalar_phis): Handle single-argument PHIs.
23665
23666 2016-04-21 Richard Biener <rguenther@suse.de>
23667
23668 PR middle-end/70747
23669 * fold-const.c (fold_comparison): Return properly typed
23670 constant boolean.
23671
23672 2016-04-21 Bin Cheng <bin.cheng@arm.com>
23673
23674 PR tree-optimization/70715
23675 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
23676 after expanding BASE using expand_simple_operations.
23677
23678 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
23679
23680 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
23681 New transformations.
23682
23683 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
23684
23685 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
23686
23687 2016-04-20 Jan Hubicka <jh@suse.cz>
23688
23689 * ipa-inline.c (can_inline_edge_p): Pass caller info to
23690 ultiimate_alias_target.
23691 (update_callee_keys): Likewise.
23692 (lookup_recursive_calls): Likewise.
23693 (speculation_useful_p): Likewise.
23694
23695 2016-04-20 Jan Hubicka <jh@suse.cz>
23696
23697 PR ipa/70018
23698 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
23699 (set_nothrow_flag_1): ... this; handle interposition correctly;
23700 recurse on aliases and thunks.
23701 (cgraph_node::set_nothrow_flag): New.
23702 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
23703 functions compiled with non-call exceptions that binds to current
23704 def.
23705 (propagate_nothrow): Be safe WRT interposition.
23706 * cgraph.h (set_nothrow_flag): Update prototype.
23707
23708 2016-04-18 Jan Hubicka <jh@suse.cz>
23709
23710 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
23711 max_loop_iterations_int.
23712 (tree_unswitch_outer_loop): Likewise.
23713
23714 2016-04-20 Bin Cheng <bin.cheng@arm.com>
23715
23716 PR tree-optimization/69489
23717 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
23718 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
23719 Revise dump message.
23720 (if_convertible_bb_p): Remove check on edge count of basic block's
23721 predecessors.
23722
23723 2016-04-20 Bin Cheng <bin.cheng@arm.com>
23724
23725 PR tree-optimization/56625
23726 PR tree-optimization/69489
23727 * tree-data-ref.h (DR_INNERMOST): New macro.
23728 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
23729 hashing struct innermost_loop_behavior.
23730 (ref_DR_map): Remove.
23731 (innermost_DR_map): New map.
23732 (baseref_DR_map): Revise comment.
23733 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
23734 to innermost_DR_map accroding to its innermost loop behavior.
23735 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
23736 to its innermost loop behavior.
23737 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
23738 Add initialization for innermost_DR_map. Record memory reference
23739 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
23740 have innermost loop behavior.
23741 (if_convertible_loop_p): Remove release for ref_DR_map. Release
23742 innermost_DR_map.
23743
23744 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
23745
23746 * config/i386/i386.md (*lea<mode>_general_1): Rename from
23747 *lea_general_1. Use explicit SWI12 mode interator.
23748 (*lea<mode>_general_2): Rename from *lea_general_2.
23749 Use explicit SWI12 mode interator.
23750 (*lea<mode>_general_3): Rename from *lea_general_3.
23751 Use explicit SWI12 mode interator.
23752 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
23753 Use explicit SWI12 mode interator.
23754 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
23755 Use explicit SWI48 mode interator.
23756
23757 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
23758
23759 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
23760 Short-cut unaligned load and store cases. Handle all integer
23761 vector modes.
23762 (ix86_expand_vector_move_misalign): Short-cut unaligned load
23763 and store cases. Call ix86_avx256_split_vector_move_misalign
23764 directly without checking mode class.
23765
23766 2016-04-20 Andrew Pinski <apinski@cavium.com>
23767 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23768
23769 PR target/64971
23770 * config/aarch64/aarch64.md (sibcall): Force call
23771 address to be DImode for ILP32.
23772 (sibcall_value): Likewise.
23773
23774 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
23775
23776 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
23777
23778 2016-04-20 Richard Biener <rguenther@suse.de>
23779
23780 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
23781 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
23782 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
23783 (maybe_push_res_to_seq): Adjust.
23784 * gimple-fold.c (maybe_build_generic_op): Likewise.
23785
23786 2016-04-20 Marek Polacek <polacek@redhat.com>
23787
23788 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
23789 rather than true.
23790
23791 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
23792
23793 * config/i386/sse.md (vec_unpacks_lo_hi): Always
23794 use kmovw to support AVX512F target.
23795
23796 2016-04-20 Bin Cheng <bin.cheng@arm.com>
23797
23798 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
23799
23800 2016-04-20 Marek Polacek <polacek@redhat.com>
23801
23802 PR tree-optimization/70725
23803 * tree-if-conv.c (is_false_predicate): New function.
23804 (predicate_mem_writes): Use it.
23805
23806 2016-04-20 Richard Biener <rguenther@suse.de>
23807
23808 PR tree-optimization/70726
23809 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
23810 shift amounts from a pattern stmt operand.
23811
23812 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23813
23814 PR target/70674
23815 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
23816 stack_restore_from_fpr pattern when restoring r15.
23817 (s390_optimize_prologue): Strip away the memory barrier in the
23818 parallel when trying to get rid of restore insns.
23819 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
23820 definition for loading the stack pointer from an FPR. Compared to
23821 the normal move insn this pattern includes a full memory barrier.
23822
23823 2016-04-19 Jakub Jelinek <jakub@redhat.com>
23824
23825 PR middle-end/70680
23826 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
23827 implicitly linear or lastprivate iterator on the outer context.
23828
23829 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
23830
23831 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
23832 alignment check.
23833 * config/i386/i386.md (ssememalign): Removed.
23834 * config/i386/sse.md: Remove ssememalign attribute from patterns.
23835
23836 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
23837
23838 PR target/69201
23839 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
23840 const short * to __builtin_ia32_loaddquhi512_mask.
23841 (_mm512_maskz_loadu_epi16): Likewise.
23842 (_mm512_mask_storeu_epi16): Pass short * to
23843 __builtin_ia32_storedquhi512_mask.
23844 (_mm512_mask_loadu_epi8): Pass const char * to
23845 __builtin_ia32_loaddquqi512_mask.
23846 (_mm512_maskz_loadu_epi8): Likewise.
23847 (_mm512_mask_storeu_epi8): Pass char * to
23848 __builtin_ia32_storedquqi512_mask.
23849 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
23850 const double * to __builtin_ia32_loadupd512_mask.
23851 (_mm512_mask_loadu_pd): Likewise.
23852 (_mm512_maskz_loadu_pd): Likewise.
23853 (_mm512_storeu_pd): Pass double * to
23854 __builtin_ia32_storeupd512_mask.
23855 (_mm512_mask_storeu_pd): Likewise.
23856 (_mm512_loadu_ps): Pass const float * to
23857 __builtin_ia32_loadups512_mask.
23858 (_mm512_mask_loadu_ps): Likewise.
23859 (_mm512_maskz_loadu_ps): Likewise.
23860 (_mm512_storeu_ps): Pass float * to
23861 __builtin_ia32_storeups512_mask.
23862 (_mm512_mask_storeu_ps): Likewise.
23863 (_mm512_mask_loadu_epi64): Pass const long long * to
23864 __builtin_ia32_loaddqudi512_mask.
23865 (_mm512_maskz_loadu_epi64): Likewise.
23866 (_mm512_mask_storeu_epi64): Pass long long *
23867 to __builtin_ia32_storedqudi512_mask.
23868 (_mm512_loadu_si512): Pass const int * to
23869 __builtin_ia32_loaddqusi512_mask.
23870 (_mm512_mask_loadu_epi32): Likewise.
23871 (_mm512_maskz_loadu_epi32): Likewise.
23872 (_mm512_storeu_si512): Pass int * to
23873 __builtin_ia32_storedqusi512_mask.
23874 (_mm512_mask_storeu_epi32): Likewise.
23875 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
23876 char * to __builtin_ia32_storedquqi256_mask.
23877 (_mm_mask_storeu_epi8): Likewise.
23878 (_mm256_mask_loadu_epi16): Pass const short * to
23879 __builtin_ia32_loaddquhi256_mask.
23880 (_mm256_maskz_loadu_epi16): Likewise.
23881 (_mm_mask_loadu_epi16): Pass const short * to
23882 __builtin_ia32_loaddquhi128_mask.
23883 (_mm_maskz_loadu_epi16): Likewise.
23884 (_mm256_mask_loadu_epi8): Pass const char * to
23885 __builtin_ia32_loaddquqi256_mask.
23886 (_mm256_maskz_loadu_epi8): Likewise.
23887 (_mm_mask_loadu_epi8): Pass const char * to
23888 __builtin_ia32_loaddquqi128_mask.
23889 (_mm_maskz_loadu_epi8): Likewise.
23890 (_mm256_mask_storeu_epi16): Pass short * to.
23891 __builtin_ia32_storedquhi256_mask.
23892 (_mm_mask_storeu_epi16): Pass short * to.
23893 __builtin_ia32_storedquhi128_mask.
23894 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
23895 const double * to __builtin_ia32_loadupd256_mask.
23896 (_mm256_maskz_loadu_pd): Likewise.
23897 (_mm_mask_loadu_pd): Pass onst double * to
23898 __builtin_ia32_loadupd128_mask.
23899 (_mm_maskz_loadu_pd): Likewise.
23900 (_mm256_mask_storeu_pd): Pass double * to
23901 __builtin_ia32_storeupd256_mask.
23902 (_mm_mask_storeu_pd): Pass double * to
23903 __builtin_ia32_storeupd128_mask.
23904 (_mm256_mask_loadu_ps): Pass const float * to
23905 __builtin_ia32_loadups256_mask.
23906 (_mm256_maskz_loadu_ps): Likewise.
23907 (_mm_mask_loadu_ps): Pass const float * to
23908 __builtin_ia32_loadups128_mask.
23909 (_mm_maskz_loadu_ps): Likewise.
23910 (_mm256_mask_storeu_ps): Pass float * to
23911 __builtin_ia32_storeups256_mask.
23912 (_mm_mask_storeu_ps): ass float * to
23913 __builtin_ia32_storeups128_mask.
23914 (_mm256_mask_loadu_epi64): Pass const long long * to
23915 __builtin_ia32_loaddqudi256_mask.
23916 (_mm256_maskz_loadu_epi64): Likewise.
23917 (_mm_mask_loadu_epi64): Pass const long long * to
23918 __builtin_ia32_loaddqudi128_mask.
23919 (_mm_maskz_loadu_epi64): Likewise.
23920 (_mm256_mask_storeu_epi64): Pass long long * to
23921 __builtin_ia32_storedqudi256_mask.
23922 (_mm_mask_storeu_epi64): Pass long long * to
23923 __builtin_ia32_storedqudi128_mask.
23924 (_mm256_mask_loadu_epi32): Pass const int * to
23925 __builtin_ia32_loaddqusi256_mask.
23926 (_mm256_maskz_loadu_epi32): Likewise.
23927 (_mm_mask_loadu_epi32): Pass const int * to
23928 __builtin_ia32_loaddqusi128_mask.
23929 (_mm_maskz_loadu_epi32): Likewise.
23930 (_mm256_mask_storeu_epi32): Pass int * to
23931 __builtin_ia32_storedqusi256_mask.
23932 (_mm_mask_storeu_epi32): Pass int * to
23933 __builtin_ia32_storedqusi128_mask.
23934 * config/i386/i386-builtin-types.def (PCSHORT): New.
23935 (PINT64): Likewise.
23936 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
23937 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
23938 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
23939 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
23940 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
23941 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
23942 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
23943 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
23944 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
23945 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
23946 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
23947 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
23948 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
23949 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
23950 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
23951 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
23952 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
23953 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
23954 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
23955 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
23956 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
23957 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
23958 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
23959 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
23960 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
23961 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
23962 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
23963 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
23964 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
23965 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
23966 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
23967 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
23968 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
23969 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
23970 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
23971 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
23972 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
23973 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
23974 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
23975 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
23976 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
23977 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
23978 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
23979 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
23980 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
23981 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
23982 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
23983 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
23984 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
23985 use UNSPEC_STOREU.
23986 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
23987 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
23988 load nor store.
23989 (ix86_expand_vector_move_misalign): Likewise.
23990 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
23991 to scalar function prototype for unaligned load/store builtins.
23992 (ix86_expand_special_args_builtin): Updated.
23993 * config/i386/sse.md (UNSPEC_LOADU): Removed.
23994 (UNSPEC_STOREU): Likewise.
23995 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
23996 (VI_ULOADSTORE_F_AVX512VL): Likewise.
23997 (ssescalarsize): Handle V4TI, V2TI and V1TI.
23998 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
23999 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
24000 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
24001 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
24002 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
24003 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
24004 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
24005 (<avx512>_storedqu<mode>_mask): Likewise.
24006 (*sse4_2_pcmpestr_unaligned): Likewise.
24007 (*sse4_2_pcmpistr_unaligned): Likewise.
24008 (*mov<mode>_internal): Renamed to ...
24009 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
24010 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
24011 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
24012 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
24013
24014 2016-04-19 Richard Biener <rguenther@suse.de>
24015
24016 PR tree-optimization/70171
24017 * tree-ssa-phiprop.c: Include stor-layout.h.
24018 (phiprop_insert_phi): Handle the aggregate copy case.
24019 (propagate_with_phi): Likewise.
24020
24021 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
24022
24023 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
24024 instead of simplify_gen_subreg (... , 0).
24025 (ix86_delegitimize_address): Ditto.
24026 (ix86_split_divmod): Ditto.
24027 (ix86_split_copysign_const): Ditto.
24028 (ix86_split_copysign_var): Ditto.
24029 (ix86_expand_args_builtin): Ditto.
24030 (ix86_expand_round_builtin): Ditto.
24031 (ix86_expand_special_args_builtin): Ditto.
24032 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
24033 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
24034 (udivmodqi4): Ditto.
24035 (absneg splitters): Ditto.
24036 (*jcc_bt<mode>_1): Ditto.
24037
24038 2016-04-19 Richard Biener <rguenther@suse.de>
24039
24040 PR tree-optimization/70724
24041 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
24042 restoring out from ...
24043 (free_scc_vn): ... here.
24044 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
24045 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
24046 tail merging.
24047 (pass_fre::execute): Restore SSA info.
24048
24049 2016-04-19 Richard Biener <rguenther@suse.de>
24050
24051 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
24052 * gimple-walk.c (walk_gimple_op): Initialize it.
24053 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
24054 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
24055 remapping SSA names of defs.
24056 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
24057 adjustment.
24058
24059 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
24060
24061 PR middle-end/70689
24062 * lra-constraints.c (equiv_substition_p): New.
24063 (process_alt_operands): Use it.
24064 (swap_operands): Swap it.
24065 (curr_insn_transform): Update it.
24066
24067 2016-04-18 Michael Matz <matz@suse.de>
24068
24069 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
24070 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
24071 * tree-core.h (tree_type_common.align): Use bit-field.
24072 (tree_type_common.spare): New.
24073 (tree_decl_common.off_align): Make smaller.
24074 (tree_decl_common.align): Use bit-field.
24075
24076 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
24077 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
24078 (scan_sharing_clauses): Ditto.
24079 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
24080 (omp_finish_file): Ditto.
24081 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
24082 (layout_decl): Ditto.
24083 (relayout_decl): Ditto.
24084 (finalize_record_size): Use SET_TYPE_ALIGN.
24085 (finalize_type_size): Ditto.
24086 (finish_builtin_struct): Ditto.
24087 (layout_type): Ditto.
24088 (initialize_sizetypes): Ditto.
24089 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
24090 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
24091 (lookup_field_for_decl): Use SET_DECL_ALIGN.
24092 (get_chain_field): Ditto.
24093 (get_trampoline_type): Ditto.
24094 (get_nl_goto_field): Ditto.
24095 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
24096 SET_DECL_ALIGN.
24097 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
24098 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
24099 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
24100 (build_qualified_type): Use SET_TYPE_ALIGN.
24101 (build_aligned_type, build_range_type_1): Ditto.
24102 (build_atomic_base): Ditto.
24103 (build_common_tree_nodes): Ditto.
24104 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
24105 (expand_one_stack_var_at): Ditto.
24106 * coverage.c (build_var): Use SET_DECL_ALIGN.
24107 * except.c (init_eh): Ditto.
24108 * function.c (assign_parm_setup_block): Ditto.
24109 * symtab.c (increase_alignment_1): Ditto.
24110 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
24111 * tree-vect-stmts.c (ensure_base_align): Ditto.
24112 * varasm.c (align_variable): Ditto.
24113 (assemble_variable): Ditto.
24114 (build_constant_desc): Ditto.
24115 (output_constant_def_contents): Ditto.
24116
24117 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
24118 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
24119 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
24120 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
24121 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
24122
24123 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
24124
24125 PR target/70708
24126 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
24127 replace %vmovsd with "%vmovq".
24128 (vec_concatv2df): Likewise.
24129
24130 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
24131
24132 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
24133 (*vec_extractv2si_0): Ditto.
24134 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
24135 (zero_extended_scalar_load_operand splitters): Ditto.
24136 (vec_extract splitters): Ditto.
24137 (*vec_extractv4si_0_zext): Ditto.
24138 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
24139 and lowpart_subreg.
24140 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
24141 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
24142 (*sse4_1_extractps): Use lowpart_subreg.
24143 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
24144
24145 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24146
24147 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
24148 gld requirements.
24149 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
24150 Mention Solaris 11 packaging changes.
24151 Update gas and gld requirements.
24152 Remove reference to pre-Solaris 10 bug.
24153 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
24154 systems and bugs.
24155 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
24156 with cc.
24157
24158 2016-04-17 Jan Hubicka <jh@suse.cz>
24159
24160 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
24161 max_loop_iterations_int.
24162
24163 2016-04-18 Richard Biener <rguenther@suse.de>
24164
24165 PR tree-optimization/43434
24166 * tree-ssa-structalias.c (struct vls_data): New.
24167 (visit_loadstore): Handle all pointer-based accesses.
24168 (compute_dependence_clique): Compute a bitmap of restrict tags
24169 assigned bases and pass it to visit_loadstore.
24170
24171 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
24172
24173 PR target/70711
24174 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
24175 armv8.1-a and armv8.1-a+crc.
24176
24177 2016-04-18 Richard Biener <rguenther@suse.de>
24178
24179 PR tree-optimization/70701
24180 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
24181 references after translating through a memcpy.
24182
24183 2016-04-18 Richard Biener <rguenther@suse.de>
24184
24185 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
24186 (compute_antic): ... here. For partial antic use regular
24187 postorder and scrap iteration.
24188 (compute_partial_antic_aux): Remove unused return value.
24189 (init_pre): Do not allocate postorder.
24190 (fini_pre): Do not free postorder.
24191
24192 2016-04-18 Richard Biener <rguenther@suse.de>
24193
24194 PR middle-end/37870
24195 * expmed.c (extract_bit_field_1): Remove broken case
24196 using a wider MODE_INT mode.
24197
24198 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
24199
24200 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
24201 unless compiling with at least GCC-4.8.
24202
24203 2016-04-17 Jan Hubicka <jh@suse.cz>
24204
24205 PR bootstrap/70706
24206 * graphite.c (graphite_finalize): Update call to
24207 tree_estimate_probability.
24208 * predict.h (tree_estimate_probability): Update prototype.
24209
24210 2016-04-17 Jan Hubicka <jh@suse.cz>
24211
24212 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
24213 (tree_estimate_probability): Likewise.
24214 (pass_profile::execute): Update.
24215 (report_predictor_hitrates): New function.
24216 * profile.c (compute_branch_probabilities): Use it.
24217 * predict.h (report_predictor_hitrates): Declare.
24218
24219 2016-04-17 Jan Hubicka <jh@suse.cz>
24220
24221 PR ipa/70018
24222 * cgraph.h (cgraph_node::set_const_flag,
24223 cgraph_node::set_pure_flag): Update prototype to return bool;
24224 update comment.
24225 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
24226 of interposable symbol are interposable, too.
24227 (cgraph_set_const_flag_1): Rename to ...
24228 (set_const_flag_1): ... this one; change to self recursive function
24229 instead of call_for_symbol_thunks_and_aliases. Handle correctly
24230 clearnig the flag in all variants and also virtual thunks of const
24231 functions are pure; track if any change was done.
24232 (cgraph_node::set_const_flag): Update.
24233 (struct set_pure_flag_info): New struct.
24234 (cgraph_set_pure_flag_1): Rename to ...
24235 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
24236 rather than pointer encoded flags; track if any changes was done;
24237 handle correctly clearning flag and setting flag of aliases already
24238 declared const.
24239 (cgraph_node::set_pure_flag): Update.
24240 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
24241
24242 2016-04-17 Tom de Vries <tom@codesourcery.com>
24243
24244 PR other/70433
24245 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
24246 backslash in label.
24247
24248 2016-04-17 Tom de Vries <tom@codesourcery.com>
24249
24250 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
24251 '{}<> ' as escape-for-record.
24252
24253 2016-04-17 Tom de Vries <tom@codesourcery.com>
24254
24255 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
24256 structure.
24257
24258 2016-04-17 Tom de Vries <tom@codesourcery.com>
24259
24260 PR other/70185
24261 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
24262 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
24263 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
24264 * passes.c (finish_optimization_passes): Only call
24265 finish_graph_dump_file if dfi->graph_dump_initialized.
24266 (execute_function_dump, pass_init_dump_file): Use
24267 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
24268
24269 2016-04-17 Tom de Vries <tom@codesourcery.com>
24270
24271 PR tree-optimization/70256
24272 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
24273 (debug_varmap): New function.
24274
24275 2016-04-17 Tom de Vries <tom@codesourcery.com>
24276
24277 PR other/70183
24278 * passes.c (pass_manager::register_pass): Propagate pflags.
24279
24280 2016-04-17 Tom de Vries <tom@codesourcery.com>
24281
24282 PR other/68875
24283 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
24284 * passes.c (pass_manager::pass_manager): Declare and init p_start in
24285 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
24286 check if it's equal to p_start.
24287 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
24288
24289 2016-04-15 Jan Hubicka <jh@suse.cz>
24290
24291 PR ipa/70018
24292 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
24293 function does not bind to current def.
24294 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
24295 handle conservatively calls to functions that does not need to bind
24296 to current def.
24297 (check_call): Update call of worse_state.
24298 (ignore_edge_for_nothrow): Update.
24299 (ignore_edge_for_pure_const): Likewise.
24300 (propagate_pure_const): Update calls to worse_state.
24301 (skip_function_for_local_pure_const): Reformat comments.
24302
24303 2016-04-15 Jan Hubicka <jh@suse.cz>
24304
24305 PR ipa/70018
24306 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
24307 (cgraph_node::function_symbol): Likewise.
24308 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
24309 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
24310 (symtab_node::ultimate_alias_target): Add REF parameter.
24311 (symtab_node::binds_to_current_def_p): Declare.
24312 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
24313 (cgraph_node::function_symbol): Likewise.
24314 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
24315 (cgraph_node::get_availability): Likewise.
24316 (cgraph_edge::binds_to_current_def_p): New inline function.
24317 (varpool_node::get_availability): Add REF parameter.
24318 (varpool_node::ultimate_alias_target): Likewise.
24319 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
24320 (symtab_node::binds_to_current_def_p): Likewise.
24321 * varpool.c (varpool_node::get_availability): Likewise.
24322
24323 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
24324
24325 PR target/70662
24326 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
24327 Fix mode size check.
24328
24329 2016-04-15 Jakub Jelinek <jakub@redhat.com>
24330
24331 * BASE-VER: Set to 7.0.0.
24332
24333 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
24334
24335 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
24336
24337 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24338
24339 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
24340 architecture revisions.
24341
24342 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
24343
24344 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
24345 * config/i386/i386.c (ix86_using_red_zone): No longer static.
24346 * config/i386/i386.md (stack decrement to push peepholes): Guard
24347 with !x86_using_red_zone ().
24348
24349 2016-04-15 Jakub Jelinek <jakub@redhat.com>
24350
24351 PR c++/70675
24352 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
24353 to dump_generic_node.
24354 (NIY): Pass also flags to do_niy.
24355
24356 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
24357
24358 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
24359 (simd_clone_vector_of_formal_parm_types)
24360 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
24361 (simd_clone_mangle, simd_clone_create)
24362 (simd_clone_adjust_return_type, create_tmp_simd_array)
24363 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
24364 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
24365 (ipa_simd_modify_function_body, simd_clone_linear_addend)
24366 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
24367 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
24368 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
24369 * omp-simd-clone.c: ... this new file.
24370 (simd_clone_vector_of_formal_parm_types): Make it static.
24371 * Makefile.in (OBJS): Add omp-simd-clone.o.
24372
24373 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
24374
24375 PR target/70662
24376 * config/i386/sse.md: Use proper memory operand modifiers.
24377
24378
24379 2016-04-15 Richard Biener <rguenther@suse.de>
24380 Alan Modra <amodra@gmail.com>
24381
24382 PR tree-optimization/70130
24383 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
24384 when alignment stays not the same and no not use the realign
24385 scheme then.
24386
24387 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
24388
24389 PR target/70669
24390 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
24391 direct move handlers for KFmode. Change TFmode handlers test from
24392 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
24393
24394 2016-04-14 Jakub Jelinek <jakub@redhat.com>
24395
24396 PR c++/70594
24397 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
24398 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
24399 (inlined_polymorphic_ctor_dtor_block_p): Use it.
24400 * tree-ssa-live.c (remove_unused_scope_block_p): When
24401 in_ctor_dtor_block, avoid discarding not just BLOCKs with
24402 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
24403 block_ultimate_origin is FUNCTION_DECL.
24404 (remove_unused_locals): If current_function_decl is
24405 polymorphic_ctor_dtor_p, pass initial true to
24406 remove_unused_scope_block_p' is_ctor_dtor_block.
24407
24408 2016-04-14 Martin Sebor <msebor@redhat.com>
24409
24410 PR c++/69517
24411 PR c++/70019
24412 PR c++/70588
24413 * doc/extend.texi (Variable Length): Revert.
24414
24415 2016-04-14 Marek Polacek <polacek@redhat.com>
24416 Jan Hubicka <hubicka@ucw.cz>
24417
24418 PR c++/70029
24419 * tree.c (verify_type): Disable the canonical type of main variant
24420 check.
24421
24422 2016-04-14 Jason Merrill <jason@redhat.com>
24423
24424 * cfgexpand.c, expr.c: Revert previous change.
24425
24426 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
24427
24428 PR middle-end/70643
24429 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
24430 when building a mem ref for the incoming reduction variable.
24431
24432 2016-04-14 Richard Biener <rguenther@suse.de>
24433
24434 PR tree-optimization/70614
24435 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
24436 loop if the evolution dropped to chrec_dont_know.
24437 (interpret_condition_phi): Likewise.
24438
24439 2016-04-14 Richard Biener <rguenther@suse.de>
24440
24441 PR tree-optimization/70623
24442 * tree-ssa-pre.c (changed_blocks): Make global ...
24443 (compute_antic): ... local here. Move and fix worklist
24444 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
24445 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
24446 worklist handling, dump when ANTIC_IN changed.
24447 (compute_partial_antic_aux): Remove worklist handling.
24448 (init_pre): Do not compute post dominators. Add a comment about
24449 the CFG order chosen.
24450 (fini_pre): Do not free post dominators.
24451
24452 2016-04-13 Martin Sebor <msebor@redhat.com>
24453
24454 PR c++/69517
24455 PR c++/70019
24456 PR c++/70588
24457 * doc/extend.texi (Variable Length): Document C++ specifics.
24458
24459 2016-04-13 Jakub Jelinek <jakub@redhat.com>
24460
24461 PR c++/70641
24462 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
24463 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
24464 eh edges have been purged.
24465
24466 PR c++/70594
24467 * tree-sra.c (create_access_replacement,
24468 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
24469 gets fancy name.
24470 * tree-pretty-print.c (dump_fancy_name): New function.
24471 (dump_decl_name, dump_generic_node): Use it.
24472
24473 2016-04-13 Jason Merrill <jason@redhat.com>
24474
24475 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
24476 * expr.c (expand_expr_real_1): Likewise.
24477
24478 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
24479
24480 * config/i386/i386.md (kunpckhi): Swap operands.
24481 (kunpcksi): Likewise.
24482 (kunpckdi): Likewise.
24483 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
24484 (vec_pack_trunc_<mode>): Likewise.
24485
24486 2016-04-13 Jakub Jelinek <jakub@redhat.com>
24487
24488 PR debug/70628
24489 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
24490
24491 PR middle-end/70633
24492 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
24493 gimplification turns some element into non-constant.
24494
24495 PR debug/70628
24496 * rtl.h (convert_memory_address_addr_space_1): New prototype.
24497 * explow.c (convert_memory_address_addr_space_1): No longer static,
24498 add NO_EMIT argument and don't call convert_modes if true, pass
24499 it down recursively, remove break after return.
24500 (convert_memory_address_addr_space): Adjust caller.
24501 * simplify-rtx.c (simplify_unary_operation_1): Call
24502 convert_memory_address_addr_space_1 instead of convert_memory_address,
24503 if it returns NULL, don't simplify.
24504
24505 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
24506
24507 PR target/70630
24508 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
24509
24510 2016-04-12 Jakub Jelinek <jakub@redhat.com>
24511
24512 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
24513 Bump the upper SIMDLEN limits, so that if the return type or
24514 characteristic type if the return type is void can be passed in
24515 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
24516 allowed.
24517
24518 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
24519
24520 PR target/70640
24521 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
24522 Do not use "=" constraint on an input constraint.
24523 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
24524 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
24525 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
24526 generates (neg (abs ...)) instead of (abs ...).
24527
24528 2016-04-12 Jakub Jelinek <jakub@redhat.com>
24529
24530 PR rtl-optimization/70596
24531 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
24532 just invalidate LRA data and reset them. Adjust dump wording.
24533
24534 2016-04-12 Martin Liska <mliska@suse.cz>
24535
24536 Revert
24537 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
24538
24539 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
24540 estimates here.
24541 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
24542 max_loop_iterations_int.
24543 (tree_unswitch_outer_loop): Likewise.
24544 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
24545 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
24546
24547 2016-04-12 Tom de Vries <tom@codesourcery.com>
24548
24549 PR tree-optimization/68756
24550 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
24551 instead of new_name.
24552
24553 2016-04-12 Jakub Jelinek <jakub@redhat.com>
24554
24555 PR tree-optimization/70602
24556 * tree-sra.c (generate_subtree_copies): Don't write anything into
24557 constant pool decls.
24558
24559 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
24560 regardless whether there are depend clauses or not.
24561
24562 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
24563
24564 PR target/70381
24565 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
24566 target attribute and pragma from changing the -mfloat128
24567 and -mfloat128-hardware options.
24568
24569 * doc/extend.texi (Additional Floating Types): Document PowerPC
24570 __float128 restrictions.
24571
24572 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
24573
24574 PR target/70133
24575 * config/aarch64/driver-aarch64.c
24576 (aarch64_get_extension_string_for_isa_flags): New.
24577 (arch_extension): Rename to...
24578 (aarch64_arch_extension): ...This.
24579 (ext_to_feat_string): Rename to...
24580 (aarch64_extensions): ...This.
24581 (aarch64_core_data): Keep track of architecture extension flags.
24582 (cpu_data): Rename to...
24583 (aarch64_cpu_data): ...This.
24584 (aarch64_arch_driver_info): Keep track of architecture extension
24585 flags.
24586 (get_arch_name_from_id): Rename to...
24587 (get_arch_from_id): ...This, change return type.
24588 (host_detect_local_cpu): Update and reformat for renames, handle
24589 extensions through common infrastructure.
24590
24591 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
24592
24593 PR target/70133
24594 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
24595 track of a canonical flag name.
24596 (all_extensions): Likewise.
24597 (arch_to_arch_name): Also track extension flags enabled by the arch.
24598 (all_architectures): Likewise.
24599 (aarch64_parse_extension): Move to here.
24600 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
24601 rework.
24602 (aarch64_rewrite_selected_cpu): Update for above change.
24603 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
24604 are handled, such that the single explicit value enabled by an
24605 extension is kept seperate from the implicit values it also enables.
24606 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
24607 to here.
24608 (aarch64_parse_extension): New.
24609 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
24610 here to config/aarch64/aarch64-protos.h.
24611 (aarch64_parse_extension): Move from here to
24612 common/config/aarch64/aarch64-common.c.
24613 (aarch64_option_print): Update.
24614 (aarch64_declare_function_name): Likewise.
24615 (aarch64_start_file): Likewise.
24616 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
24617 the canonical flag for extensions.
24618 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
24619 flags.
24620
24621 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
24622
24623 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
24624 AARCH64_FL_CRC.
24625
24626 2016-04-09 Tom de Vries <tom@codesourcery.com>
24627
24628 PR tree-optimization/68953
24629 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
24630 first to last subscript.
24631
24632 2016-04-09 Jakub Jelinek <jakub@redhat.com>
24633
24634 PR tree-optimization/70586
24635 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
24636 for any calls.
24637
24638 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
24639
24640 PR lto/70289
24641 PR ipa/70348
24642 PR tree-optimization/70373
24643 PR middle-end/70533
24644 PR middle-end/70534
24645 PR middle-end/70535
24646 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
24647 clauses for acc parallel reductions as necessary. Error on those
24648 that are private.
24649 * omp-low.c (scan_sharing_clauses): Don't install variables which
24650 are used in acc parallel reductions.
24651 (lower_rec_input_clauses): Remove dead code.
24652 (lower_oacc_reductions): Add support for reference reductions.
24653 (lower_reduction_clauses): Remove dead code.
24654 (lower_omp_target): Don't remap variables appearing in acc parallel
24655 reductions.
24656 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
24657
24658 2016-04-08 Jakub Jelinek <jakub@redhat.com>
24659
24660 PR middle-end/70593
24661 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
24662 with multiple SSA_NAME defs, force the outputs other than first
24663 to be live before calling live_track_process_def on each output.
24664
24665 PR rtl-optimization/70574
24666 * fwprop.c (forward_propagate_and_simplify): Don't add
24667 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
24668 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
24669 paradoxical subregs within *loc.
24670
24671 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
24672
24673 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
24674 -ftree-parallelize-loops={0,1}.
24675 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
24676 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
24677 * config/ia64/hpux.h (LIB_SPEC): Likewise.
24678 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
24679 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
24680
24681 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
24682
24683 PR sanitizer/70541
24684 * asan.c (instrument_derefs): If we get unknown location, extract it
24685 with EXPR_LOCATION.
24686 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
24687
24688 2016-04-08 Tom de Vries <tom@codesourcery.com>
24689
24690 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
24691 implicit firstprivate clause.
24692
24693 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24694
24695 PR target/70566
24696 * config/arm/thumb2.md (tst + branch-> lsls + branch
24697 peephole below *orsi_not_shiftsi_si): Require that condition
24698 register is dead after the peephole.
24699 (second peephole after the above): Likewise.
24700
24701 2016-04-08 Alan Modra <amodra@gmail.com>
24702
24703 PR target/70117
24704 * builtins.c (fold_builtin_classify): For IBM extended precision,
24705 look at just the high-order double to test for NaN.
24706 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
24707 test just the high double for Inf but both doubles for subnormal
24708 limit.
24709
24710 2016-04-07 Jakub Jelinek <jakub@redhat.com>
24711
24712 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
24713 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
24714 node->simdclone->mask_mode != VOIDmode masks.
24715 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
24716 earlier, use it instead of node->simdclone.
24717 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
24718 Set clonei->mask_mode.
24719
24720 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
24721
24722 PR c/70436
24723 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
24724 Pass it through to cp_parser_already_scoped_statement.
24725 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
24726 it through to cp_parser_statement.
24727 (cp_parser_statement): Pass IF_P through to
24728 cp_parser_iteration_statement.
24729 (cp_parser_pragma): Adjust call to
24730 cp_parser_iteration_statement.
24731
24732 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
24733
24734 PR c/70436
24735 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
24736 resolve a future -Wparentheses warning.
24737 * omp-low.c (scan_sharing_clauses): Likewise.
24738 * tree-parloops.c (eliminate_local_variables): Likewise.
24739
24740 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
24741
24742 PR rtl-optimization/70398
24743 * lra-constraints.c (process_address_1): Check zero scale and code
24744 for reloading with zero scale.
24745
24746 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
24747
24748 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
24749 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
24750
24751 2016-04-06 Jakub Jelinek <jakub@redhat.com>
24752
24753 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
24754 Add support for AVX512F clones, include them by default for
24755 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
24756 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
24757 up to 128.
24758
24759 PR middle-end/70550
24760 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
24761 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
24762 firstprivate clauses.
24763 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
24764 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
24765 (lower_omp_target): Set TREE_NO_WARNING for
24766 non-addressable possibly uninitialized vars which are copied into
24767 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
24768
24769 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
24770
24771 * config/pa/predicates.md (integer_store_memory_operand): Accept
24772 REG+D operands with a large offset when reload_in_progress is true.
24773 (floating_point_store_memory_operand): Likewise.
24774
24775 2016-04-05 Jakub Jelinek <jakub@redhat.com>
24776
24777 PR c++/70336
24778 * match.pd (nested int casts): Limit to GIMPLE.
24779
24780 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
24781
24782 PR ipa/66223
24783 * ipa-devirt.c (maybe_record_node): Fix comment; use
24784 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
24785
24786 2016-04-05 Jakub Jelinek <jakub@redhat.com>
24787
24788 PR rtl-optimization/70542
24789 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
24790 if there are any uses other than insn or debug insns.
24791
24792 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
24793 Jakub Jelinek <jakub@redhat.com>
24794
24795 PR tree-optimization/70509
24796 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
24797 Shift HOST_WIDE_INT_1U instead of 1.
24798
24799 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
24800
24801 PR tree-optimization/70509
24802 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
24803 of the vector base type for index.
24804
24805 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
24806
24807 PR target/70510
24808 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
24809
24810 2016-04-05 Richard Biener <rguenther@suse.de>
24811
24812 PR tree-optimization/70526
24813 * tree-sra.c (build_ref_for_offset): Use prev_base to
24814 extract the alias pointer type.
24815
24816 2016-04-05 Richard Biener <rguenther@suse.de>
24817
24818 * dse.c (struct store_info): Remove alias_set member.
24819 (struct read_info_type): Likewise.
24820 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
24821 spill_deleted, clear_alias_set_lookup): Remove.
24822 (get_group_info): Remove dead base == NULL_RTX case.
24823 (dse_step0): Remove initialization of removed variables.
24824 (delete_dead_store_insn): Reomve alias set dumping.
24825 (free_read_records): Remove alias_set handling.
24826 (canon_address): Remove alias_set_out parameter.
24827 (record_store): Remove spill_alias_set, it's always zero.
24828 (check_mem_read_rtx): Likewise.
24829 (dse_step2): Rename from ...
24830 (dse_step2_nospill): ... this. Adjust.
24831 (scan_stores): Rename from ...
24832 (scan_stores_nospill): ... this.
24833 (scan_reads): Rename from ...
24834 (scan_reads_nospill): ... this.
24835 (scan_stores_spill, scan_reads_spill): Remove.
24836 (dse_step3_scan): Remove for_spills argument which is always false.
24837 (dse_step3): Likewise.
24838 (dse_step5): Rename from ...
24839 (dse_step5_nospill): ... this. Remove alias_set handling.
24840 (rest_of_handle_dse): Adjust.
24841
24842 2016-04-05 Jakub Jelinek <jakub@redhat.com>
24843
24844 PR target/70525
24845 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
24846 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
24847 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
24848 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
24849
24850 2016-04-05 Richard Biener <rguenther@suse.de>
24851
24852 PR middle-end/70499
24853 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
24854 non-register type temporaries into SSA.
24855
24856 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
24857
24858 PR ipa/66223
24859 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
24860 calls when sanitizing.
24861 (possible_polymorphic_call_target_p): Fix formatting.
24862
24863 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24864 Jakub Jelinek <jakub@redhat.com>
24865
24866 PR middle-end/70457
24867 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
24868 to ensure a call statement is compatible with a built-in's
24869 prototype.
24870 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
24871 Likewise.
24872
24873 2016-04-04 Richard Biener <rguenther@suse.de>
24874
24875 PR rtl-optimization/70484
24876 * rtl.h (canon_output_dependence): Declare.
24877 * alias.c (canon_output_dependence): New function.
24878 * dse.c (record_store): Use canon_output_dependence rather
24879 than canon_true_dependence.
24880
24881 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
24882
24883 PR ipa/68881
24884 * cgraph.h (symtab_node::copy_visibility_from): New function.
24885 * symtab.c (symtab_node::copy_visibility_from): New function.
24886 * ipa-visibility.c (optimize_weakref): New function.
24887 (function_and_variable_visibility): Use it.
24888
24889 2016-04-04 Martin Liska <mliska@suse.cz>
24890
24891 PR hsa/70402
24892 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
24893 value that is really in range handled by SBR instruction.
24894 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
24895 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
24896 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
24897
24898 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
24899
24900 PR target/70416
24901 PR target/67391
24902 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
24903 set, but not for SP_REG operands.
24904
24905 2016-04-02 Martin Sebor <msebor@redhat.com>
24906
24907 PR c++/67376
24908 * fold-const.c (maybe_nonzero_address): New function.
24909 (fold_comparison): Call it. Fold equality and relational
24910 expressions involving null pointers.
24911 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
24912
24913 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
24914
24915 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
24916 the "Y" constraint (scalar FP 0.0 immediate).
24917
24918 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
24919 Add the "const_double" to the list of operand constraints.
24920
24921 2016-04-01 Jakub Jelinek <jakub@redhat.com>
24922
24923 PR rtl-optimization/70467
24924 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
24925 If low word of the last operand is 0, just emit addition/subtraction
24926 for the high word.
24927
24928 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24929
24930 PR target/70404
24931 * config/s390/s390.c (s390_expand_insv): Check for everything
24932 constant instead of just VOIDmode stuff.
24933
24934 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24935
24936 PR target/70496
24937 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
24938
24939 2016-04-01 Nathan Sidwell <nathan@acm.org>
24940
24941 * tree.def (TRY_CATCH_EXPR): Correct documentation.
24942
24943 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
24944
24945 PR rtl-optimization/70461
24946 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
24947 is necessary.
24948
24949 2016-03-31 Martin Liska <mliska@suse.cz>
24950
24951 PR hsa/70399
24952 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
24953 a tree value or an immediate integer value to a buffer
24954 that is eventually copied to a BRIG section.
24955 (emit_immediate_operand): Call the function here.
24956 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
24957 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
24958 of class' fields that are removed.
24959 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
24960 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
24961 m_brig_repr_size fields.
24962
24963 2016-03-31 Martin Liska <mliska@suse.cz>
24964
24965 PR hsa/70391
24966 * hsa-gen.c (hsa_function_representation::update_dominance): New
24967 function.
24968 (convert_addr_to_flat_segment): Likewise.
24969 (gen_hsa_memory_set): New alignment argument.
24970 (gen_hsa_ctor_assignment): Likewise.
24971 (gen_hsa_insns_for_single_assignment): Provide alignment
24972 to gen_hsa_ctor_assignment.
24973 (gen_hsa_insns_for_direct_call): Add new argument.
24974 (expand_lhs_of_string_op): New function.
24975 (expand_string_operation_builtin): Likewise.
24976 (expand_memory_copy): New function.
24977 (expand_memory_set): New function.
24978 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
24979 (convert_switch_statements): Change signature.
24980 (generate_hsa): Use a return value of the function.
24981 (pass_gen_hsail::execute): Do not call
24982 convert_switch_statements here.
24983 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
24984 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
24985 (hsa_function_representation::update_dominance): New function.
24986
24987 2016-03-31 Martin Liska <mliska@suse.cz>
24988
24989 PR hsa/70391
24990 * hsa-brig.c (emit_directive_variable): Emit alignment
24991 according to hsa_symbol::m_align.
24992 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
24993 (dump_hsa_symbol): Dump alignment of HSA symbols.
24994 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
24995 (gen_hsa_addr_with_align): New function.
24996 (hsa_bitmemref_alignment): Use newly added function.
24997 (gen_hsa_insns_for_load): Likewise.
24998 (gen_hsa_insns_for_store): Likewise.
24999 (gen_hsa_memory_copy): New argument added.
25000 (gen_hsa_insns_for_single_assignment): Respect
25001 alignment for assignments processed via gen_hsa_memory_copy.
25002 (gen_hsa_insns_for_direct_call): Likewise.
25003 (gen_hsa_insns_for_return): Likewise.
25004 (gen_function_def_parameters): Set default alignment.
25005 * hsa.c (hsa_object_alignment): New function.
25006 (hsa_byte_alignment): Pasted function.
25007 * hsa.h (hsa_symbol::m_align): New field.
25008
25009 2016-03-31 Bin Cheng <bin.cheng@arm.com>
25010
25011 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
25012 scratch field for goto case.
25013
25014 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
25015
25016 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
25017
25018 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
25019
25020 PR target/70442
25021 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
25022 (scalar_chain::convert_insn): Call convert_op for reg
25023 moves to handle undefined registers.
25024
25025 2016-03-31 Nathan Sidwell <nathan@acm.org>
25026
25027 PR c++/70393
25028 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
25029 Assert we don't want to move backwards.
25030
25031 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
25032
25033 PR target/70453
25034 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
25035
25036 2016-03-31 Jakub Jelinek <jakub@redhat.com>
25037
25038 PR rtl-optimization/70460
25039 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
25040 with operand from REG_LABEL_OPERAND, instead substitute
25041 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
25042 Don't do anything for REG_NON_LOCAL_GOTO jumps.
25043
25044 2016-03-31 Martin Liska <mliska@suse.cz>
25045
25046 * passes.c (execute_one_pass): Do not call
25047 todo_after for a discarded function.
25048
25049 2016-03-31 Bin Cheng <bin.cheng@arm.com>
25050
25051 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
25052 (no_cost, infinite_cost): Initialize the new field.
25053 (get_computation_cost_at): Record setup cost.
25054 (determine_use_iv_cost_address): Skip cost computation for sub
25055 uses if we can estimate it without losing accuracy.
25056
25057 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
25058
25059 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
25060 estimates here.
25061 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
25062 max_loop_iterations_int.
25063 (tree_unswitch_outer_loop): Likewise.
25064 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
25065 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
25066
25067 2016-03-30 Richard Biener <rguenther@suse.de>
25068
25069 PR middle-end/70450
25070 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
25071
25072 2016-03-30 Jakub Jelinek <jakub@redhat.com>
25073
25074 PR target/70421
25075 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
25076 in gen_blendm expander.
25077
25078 2016-03-30 Nick Clifton <nickc@redhat.com>
25079
25080 PR target/62254
25081 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
25082 case where we are already provided with an SImode SUBREG.
25083
25084 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
25085
25086 PR target/70439
25087 * config/i386/i386.c (ix86_expand_epilogue): Properly check
25088 conflict between DRAP register and __builtin_eh_return.
25089
25090 2016-03-30 Michael Matz <matz@suse.de>
25091 Richard Biener <rguenther@suse.de>
25092
25093 PR ipa/12392
25094 * ipa-polymorphic-call.c (struct type_change_info): Change
25095 speculative to an unsigned allowing to limit the work we do.
25096 (csftc_abort_walking_p): New inline function..
25097 (check_stmt_for_type_change): Limit the number of may-defs
25098 skipped for speculative devirtualization to
25099 max-speculative-devirt-maydefs.
25100 * params.def (max-speculative-devirt-maydefs): New param.
25101 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
25102
25103 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
25104
25105 PR target/63890
25106 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
25107 and TARGET_MACHO.
25108
25109 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
25110
25111 PR tree-optimization/59124
25112 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
25113 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
25114
25115 2016-03-29 Jeff Law <law@redhat.com>
25116
25117 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
25118
25119 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
25120
25121 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
25122 to HOST_WIDE_INT.
25123
25124 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
25125
25126 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
25127 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
25128 gcrt0.o if linking dynamically.
25129
25130 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
25131
25132 PR ipa/70283
25133 * ipa-devirt.c (methods_equal_p): New function.
25134 (compare_virtual_tables): Use it.
25135 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
25136 * cgraphclones.c (clone_function_name_1): Use
25137 symbol_table::symbol_suffix_separator.
25138 * coverage.c (build_var): Likewise.
25139 * symtab.c (symbol_table::symbol_suffix_separator): New.
25140
25141 2016-03-29 Jakub Jelinek <jakub@redhat.com>
25142
25143 PR rtl-optimization/70429
25144 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
25145 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
25146 mode != result_mode.
25147
25148 PR c++/70353
25149 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
25150
25151 PR tree-optimization/70405
25152 * ssa-iterators.h (num_imm_uses): Add missing braces.
25153
25154 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
25155
25156 PR rtl-optimization/68695
25157 * ira-color.c (allocno_copy_cost_saving): New.
25158 (improve_allocation): Use it.
25159
25160 2016-03-29 Richard Henderson <rth@redhat.com>
25161
25162 PR middle-end/70355
25163 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
25164
25165 2016-03-29 Richard Biener <rguenther@suse.de>
25166
25167 PR middle-end/70424
25168 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
25169 use alignment returned by get_pointer_alignment_1 if it is
25170 bigger than BITS_PER_UNIT.
25171 * builtins.c (get_pointer_alignment_1): Do not return true
25172 for alignment extracted from SSA info.
25173
25174 2016-03-28 James Bowman <james.bowman@ftdichip.com>
25175
25176 * config/ft32/ft32.opt (mnodiv): New.
25177 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
25178 * doc/invoke.texi (FT32 Options -mnodiv): New.
25179
25180 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
25181
25182 PR target/70406
25183 * config/i386/i386.md (define_split, andn): Fix modes.
25184
25185 2016-03-26 Richard Biener <rguenther@suse.de>
25186 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25187
25188 PR ipa/70366
25189 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
25190 instead of
25191 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
25192 as 2nd argument to cl_optimization_restore().
25193
25194 2016-03-25 Richard Henderson <rth@redhat.com>
25195
25196 PR target/70120
25197 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
25198 * config/aarch64/aarch64-protos.h: Declare it.
25199 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
25200
25201 2016-03-25 Alan Modra <amodra@gmail.com>
25202
25203 PR target/70052
25204 * config/rs6000/constraints.md (j): Simplify.
25205 * config/rs6000/predicates.md (easy_fp_constant): Exclude
25206 decimal float 0.D.
25207 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
25208 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
25209 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
25210 in all constraint alternatives.
25211 (movtd_64bit_nodm): Delete "j" constraint alternative.
25212
25213 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
25214
25215 * tree-ssa-propagate.c: Enhance docs for
25216 SSA_PROP_NOT_INTERESTING.
25217
25218 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
25219
25220 * doc/extend.texi: Fix typo in documentation to pure attribute.
25221
25222 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
25223
25224 PR target/70319
25225 * config/pa/pa.md (bswapdi2): Use a scratch register.
25226
25227 2016-03-24 Richard Henderson <rth@redhat.com>
25228
25229 PR middle-end/69845
25230 * fold-const.c (extract_muldiv_1): Correct test for multiplication
25231 overflow.
25232
25233 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
25234
25235 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
25236 using ix86_expand_binary_operator instead of gen_andsi3.
25237
25238 2016-03-24 Richard Biener <rguenther@suse.de>
25239
25240 PR tree-optimization/70396
25241 * tree-vect-stmts.c (vectorizable_comparison): Use
25242 get_vectype_for_scalar_type.
25243
25244 2016-03-24 Richard Biener <rguenther@suse.de>
25245
25246 PR middle-end/70370
25247 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
25248 with register bases.
25249
25250 2016-03-24 Richard Biener <rguenther@suse.de>
25251
25252 PR tree-optimization/70372
25253 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
25254 build_all_ones_cst to also handle vector types correctly.
25255
25256 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
25257
25258 PR target/70381
25259 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
25260 -mfloat128 here.
25261
25262 2016-03-23 Marek Polacek <polacek@redhat.com>
25263
25264 PR c++/69884
25265 * doc/invoke.texi: Document -Wignored-attributes.
25266
25267 2016-03-23 Bin Cheng <bin.cheng@arm.com>
25268
25269 PR tree-optimization/69042
25270 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
25271 parameter from 30 to 40.
25272
25273 2016-03-23 Bin Cheng <bin.cheng@arm.com>
25274
25275 PR tree-optimization/69042
25276 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
25277 for use with constant offset stripped in base.
25278
25279 2016-03-23 Richard Biener <rguenther@suse.de>
25280
25281 PR middle-end/70251
25282 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
25283 mode compatibility check.
25284 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
25285
25286 2016-03-23 Jeff Law <law@redhat.com>
25287
25288 PR tree-optimization/64058
25289 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
25290 CONFLICT_COUNT.
25291 (struct ssa_conflicts): Move up earlier in the file.
25292 (conflicts_, var_map_): New static variables.
25293 (initialize_conflict_count): New function to initialize the
25294 CONFLICT_COUNT field for each conflict pair.
25295 (compare_pairs): Lazily initialize the conflict count and use it
25296 as the first tie-breaker.
25297 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
25298 and wipe conflicts_ and map_ around the call to qsort. Remove
25299 special case for 2 coalesce pairs.
25300 * bitmap.c (bitmap_count_unique_bits): New function.
25301 (bitmap_count_bits_in_word): New function, extracted from
25302 bitmap_count_bits.
25303 (bitmap_count_bits): Use bitmap_count_bits_in_word.
25304 * bitmap.h (bitmap_count_unique_bits): Declare it.
25305
25306 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
25307
25308 PR target/69917
25309 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
25310 transparent alias chain for decl assembler name.
25311 * config/sol2.c (solaris_assemble_visibility): Likewise.
25312
25313 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25314
25315 * config/arm/arm1020e.md (1020call_op): Reduce reservation
25316 duration.
25317 (v10_fdivs): Likewise.
25318 (v10_fdivd): Likewise.
25319
25320 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25321
25322 PR driver/70132
25323 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
25324 to not call fclose twice on file.
25325
25326 2016-03-23 Jakub Jelinek <jakub@redhat.com>
25327
25328 PR tree-optimization/70354
25329 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
25330 oprnd0 is wider than oprnd1 and there is a cast from the wider
25331 type to oprnd1, mask it with the mask of the narrower type.
25332
25333 PR target/70321
25334 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
25335 Optimize TARGET_STV splitters, if high or low word of last argument
25336 is 0 or -1.
25337
25338 2016-03-22 Jeff Law <law@redhat.com>
25339
25340 PR target/70232
25341 tree-ssa-threadbackward.c
25342 (fsm_find_control_statement_thread_paths): Correctly distinguish
25343 between old style jump threads vs FSM jump threads.
25344
25345 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
25346
25347 PR target/70302
25348 * config/i386/i386.c (scalar_chain::convert_op): Support
25349 uninitialized register usage case.
25350
25351 2016-03-22 Richard Biener <rguenther@suse.de>
25352
25353 PR middle-end/70251
25354 * genmatch.c (gen_transform): Adjust last parameter to a three-state
25355 int...
25356 (capture::gen_transform): ... to change behavior when substituting
25357 a condition into cond or not-cond expr context.
25358 (dt_simplify::gen_1): Adjust.
25359 * gimple-match-head.c: Include gimplify.h for unshare_expr.
25360 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
25361 last change and instead change to
25362 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
25363 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
25364
25365 2016-03-22 Anthony Green <green@moxielogic.com>
25366
25367 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
25368 issue for moxiebox targets.
25369 (CC1PLUS_SPEC): Ditto.
25370
25371 2016-03-22 Richard Biener <rguenther@suse.de>
25372
25373 PR middle-end/70333
25374 * fold-const.c (extract_muldiv_1): Properly perform multiplication
25375 in the wide type.
25376
25377 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
25378
25379 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
25380
25381 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
25382
25383 PR target/70325
25384 * config/i386/i386.c (def_builtin): Handle
25385 OPTION_MASK_ISA_AVX512VL to be and-ed with other
25386 bits.
25387 (const struct builtin_description bdesc_special_args[]):
25388 Remove duplicate ISA bits.
25389
25390 2016-03-22 Jakub Jelinek <jakub@redhat.com>
25391
25392 PR target/70329
25393 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
25394 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
25395 in a way that works also for AVX512BW.
25396
25397 PR target/70300
25398 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
25399 instead of source if operands[1] is xmm16 and above and
25400 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
25401 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
25402
25403 PR c++/70295
25404 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
25405 on assign if (*from_p) is a comparison, set it to
25406 TREE_NO_WARNING (*from_p).
25407
25408 2016-03-21 Jakub Jelinek <jakub@redhat.com>
25409
25410 PR middle-end/70326
25411 * lra.c (restore_scratches): Ignore deleted insns.
25412
25413 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
25414 Jakub Jelinek <jakub@redhat.com>
25415
25416 PR tree-optimization/70317
25417 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
25418 to HONOR_NANS.
25419
25420 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
25421
25422 PR target/70327
25423 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
25424 of ix86_expand_move.
25425 (movoi): Ditto.
25426 (movti): Use general_operand for operand 1 predicate.
25427
25428 2016-03-21 Martin Liska <mliska@suse.cz>
25429
25430 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
25431 insns.
25432 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
25433
25434 2016-03-21 Martin Liska <mliska@suse.cz>
25435
25436 PR ipa/70306
25437 * ipa-icf.c (sem_function::parse): Skip static
25438 constructors and destructors.
25439
25440 2016-03-21 Jakub Jelinek <jakub@redhat.com>
25441
25442 PR target/70296
25443 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
25444 function-like macro, peek following token(s) if it is followed
25445 by CPP_OPEN_PAREN token with optional padding in between, and
25446 if not, don't treat it like a macro.
25447
25448 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
25449 Alexander Monakov <amonakov@ispras.ru>
25450
25451 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
25452 for the stabs debug format.
25453
25454 2016-03-21 Richard Biener <rguenther@suse.de>
25455
25456 PR tree-optimization/70310
25457 * tree-vect-generic.c (expand_vector_condition): Fold the built
25458 condition.
25459
25460 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
25461
25462 PR target/70293
25463 * config/i386/sse.md (define_insn "*vec_dup<mode>"/AVX2):
25464 Block third alternative for AVX-512VL target,
25465
25466 2016-03-21 Martin Liska <mliska@suse.cz>
25467
25468 PR hsa/70234
25469 * hsa-brig.c (emit_function_directives): Mark unemitted
25470 global variables for emission.
25471 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
25472 (get_symbol_for_decl): Likewise.
25473 * hsa.h (struct hsa_symbol): New flag.
25474
25475 2016-03-21 Richard Biener <rguenther@suse.de>
25476
25477 PR tree-optimization/70288
25478 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
25479 we do not estimate unsimplified all-constant conditionals or
25480 switches as optimized away.
25481
25482 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
25483
25484 PR rtl-optimization/69102
25485 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
25486 when we have a readonly dependency context.
25487
25488 2016-03-18 Jeff Law <law@redhat.com>
25489
25490 PR rtl-optimization/70263
25491 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
25492 (update_equiv_regs): When trying to move a store to after the insn
25493 that sets the source of the store, make sure the store occurs after
25494 the insn that sets the source of the store. When successful note
25495 the REG_EQUIV note created in the dump file.
25496
25497 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
25498 Bernd Schmidt <bschmidt@redhat.com>
25499
25500 * doc/extend.texi: Document more potential problems with basic asms.
25501
25502 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
25503
25504 PR rtl-optimization/70278
25505 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
25506 VOIDmode.
25507
25508 2016-03-18 Jason Merrill <jason@redhat.com>
25509
25510 * calls.c (load_register_parameters): Fix zero size sibcall logic.
25511
25512 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
25513
25514 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
25515 values to 128b regs.
25516
25517 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
25518
25519 PR tree-optimization/70252
25520 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
25521 boolean vector has a proper number of elements.
25522 (supportable_narrowing_operation): Likewise.
25523
25524 2016-03-18 Tom de Vries <tom@codesourcery.com>
25525
25526 PR ipa/70269
25527 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
25528
25529 2016-03-18 Jakub Jelinek <jakub@redhat.com>
25530
25531 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
25532 instead of replace_rtx for DEBUG_INSNs.
25533
25534 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
25535
25536 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
25537 load type reservations.
25538
25539 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
25540
25541 PR target/70188
25542 * config/pa/constraints.md: Revert 2015-02-13 change. Use
25543 define_constraint for "Q" and "T" constraints.
25544
25545 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
25546
25547 Tweak the pipeline model for Exynos M1
25548
25549 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
25550 model.
25551
25552 2016-03-17 David Malcolm <dmalcolm@redhat.com>
25553
25554 PR c/70264
25555 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
25556 where one or both locations aren't within a line_map.
25557
25558 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
25559
25560 PR driver/70192
25561 * opts.c (finish_options): Don't set flag_pie to the default if
25562 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
25563 if it is -1.
25564
25565 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
25566
25567 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
25568 true as ALL_REGS argument to replace_rtx.
25569
25570 2016-03-17 Richard Biener <rguenther@suse.de>
25571
25572 PR debug/70271
25573 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
25574 last.
25575
25576 2016-03-17 Jakub Jelinek <jakub@redhat.com>
25577
25578 PR target/70245
25579 * rtl.h (replace_rtx): Add ALL_REGS argument.
25580 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
25581 equality and assert mode is the same, instead of just rtx pointer
25582 equality.
25583 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
25584 true as ALL_REGS argument to replace_rtx.
25585
25586 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
25587
25588 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
25589 for boolean vector with vector mode only.
25590 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
25591
25592 2016-03-17 Nick Clifton <nickc@redhat.com>
25593
25594 PR target/70162
25595 * config/rx/rx.c (rx_print_integer): Print negative constants in
25596 decimal.
25597
25598 2016-03-17 Jakub Jelinek <jakub@redhat.com>
25599
25600 PR target/70261
25601 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
25602
25603 2016-03-16 Richard Henderson <rth@redhat.com>
25604 Richard Biener <rguenth@suse.de>
25605
25606 PR middle-end/70240
25607 PR middle-end/68215
25608 PR tree-opt/68714
25609 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
25610 first operand as is_gimple_condexpr.
25611
25612 PR middle-end/70240
25613 PR middle-end/68215
25614 Revert r231575
25615 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
25616 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
25617 Do not gimplify the result.
25618 (do_unop): Adjust call to tree_vec_extract.
25619 (do_binop): Likewise.
25620 (do_compare): Likewise.
25621 (do_plus_minus): Likewise.
25622 (do_negate): Likewise.
25623 (expand_vector_condition): Likewise.
25624 (do_cond): Likewise.
25625
25626 2016-03-16 Richard Henderson <rth@redhat.com>
25627
25628 PR target/70048
25629 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
25630 (aarch64_classify_address): Use it.
25631 (aarch64_legitimize_address): Force all subexpressions of PLUS
25632 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
25633
25634 2016-03-16 Jakub Jelinek <jakub@redhat.com>
25635 Richard Biener <rguenth@suse.de>
25636
25637 PR target/70245
25638 * rtlanal.c (replace_rtx): For REG, if from is a REG,
25639 return to even if only REGNO is equal, and assert
25640 mode is the same.
25641
25642 2016-03-11 Jeff Law <law@redhat.com>
25643
25644 PR rtl-optimization/70224
25645 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
25646
25647 2016-03-16 Richard Henderson <rth@redhat.com>
25648
25649 PR middle-end/70199
25650 * function.h (struct function): Add has_forced_label_in_static.
25651 * gimplify.c (force_labels_r): Set it.
25652 * lto-streamer-in.c (input_struct_function_base): Read it.
25653 * lto-streamer-out.c (output_struct_function_base): Write it.
25654 * tree-inline.c (has_label_address_in_static_1): Remove.
25655 (copy_forbidden): Remove fndecl parameter; test
25656 has_forced_label_in_static.
25657 (inline_forbidden_p): Update call to copy_forbidden.
25658 (tree_versionable_function_p): Likewise.
25659 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
25660 (chkp_versioning): Likewise.
25661 * tree-inline.h (copy_forbidden): Update decl.
25662
25663 2016-03-16 Marek Polacek <polacek@redhat.com>
25664
25665 PR c/70093
25666 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
25667 function being thunked if the result type doesn't have fixed size.
25668 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
25669 doesn't have fixed size.
25670
25671 2016-03-16 Bin Cheng <bin.cheng@arm.com>
25672
25673 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
25674 reporting malformed loop nest.
25675
25676 2016-03-16 Tom de Vries <tom@codesourcery.com>
25677
25678 PR lto/70187
25679 * ipa-devirt.c (possible_polymorphic_call_targets): Move
25680 nodes.length () == 1 test to before first nodes[0] access.
25681
25682 2016-03-16 Tom de Vries <tom@codesourcery.com>
25683
25684 PR tree-optimization/68715
25685 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
25686 single_pred_p test.
25687
25688 2016-03-16 Tom de Vries <tom@codesourcery.com>
25689
25690 PR tree-optimization/68809
25691 * graphite-scop-detection.c (same_close_phi_node): Test if result types
25692 are the same.
25693
25694 2016-03-16 Carlos O'Donell <carlos@redhat.com>
25695 Sandra Loosemore <sandra@codesourcery.com>
25696
25697 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
25698 on leaf attribute. Mention ELF interposition problems.
25699
25700 2016-03-16 Alan Modra <amodra@gmail.com>
25701
25702 PR rtl-optimization/69195
25703 PR rtl-optimization/47992
25704 * ira.c (indirect_jump_optimize): Ignore artificial defs.
25705 Add comments.
25706
25707 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
25708
25709 PR bootstrap/69513
25710 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
25711
25712 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
25713
25714 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
25715
25716 2016-03-15 Jakub Jelinek <jakub@redhat.com>
25717
25718 PR rtl-optimization/70222
25719 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
25720 optimization if mode is different from result_mode, queue up masking
25721 of the result in outer_op. Formatting fix.
25722
25723 PR middle-end/70239
25724 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
25725 of safe_grow.
25726
25727 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
25728
25729 PR rtl-optimization/69032
25730 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
25731 looping backwards over basic block insns.
25732
25733 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
25734
25735 PR target/66660
25736 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
25737 to non-speculative when propagating trap bits.
25738
25739 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
25740
25741 PR rtl-optimization/63384
25742 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
25743 DEBUG_INSN_P insns.
25744
25745 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
25746
25747 PR target/64411
25748 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
25749 factored out from ...
25750 (sched_analyze_insn): ... here.
25751 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
25752 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
25753 get_implicit_reg_pending_clobbers in it.
25754 (setup_id_reg_sets): Use setup_id_implicit_regs.
25755 (deps_init_id): Ditto.
25756
25757 2016-03-15 Tom de Vries <tom@codesourcery.com>
25758
25759 PR ipa/70161
25760 * cgraph.c (cgraph_node::get_body): Save, reset and restore
25761 dump_file_name.
25762 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
25763 execute_function_dump.
25764 (execute_one_pass): Don't dump function if it will be dumped after ipa
25765 transform.
25766
25767 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
25768
25769 * genrecog.c (match_pattern_2): If pred is NULL don't call
25770 safe_predicate_mode on it.
25771
25772 2016-03-14 Jakub Jelinek <jakub@redhat.com>
25773
25774 PR middle-end/70219
25775 * lra-constraints.c (delete_move_and_clobber): Change assertion
25776 to also allow dregno == 0.
25777
25778 2016-03-14 Richard Henderson <rth@redhat.com>
25779
25780 PR tree-opt/68714
25781 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
25782 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
25783 (reassociate_bb): Use optimize_vec_cond_expr; avoid
25784 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
25785 on vectors.
25786
25787 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
25788
25789 PR target/70083
25790 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
25791 regs.
25792 (lra_create_live_ranges_1): initialize hard register biggest_mode to
25793 VOIDmode.
25794 * lra-constraints.c (split_reg): For hard regs, try to find the
25795 biggest single-register mode used in the function.
25796
25797 2016-03-14 Richard Biener <rguenther@suse.de>
25798
25799 PR tree-optimization/56365
25800 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
25801 constants to compare against.
25802
25803 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
25804
25805 PR target/70098
25806 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
25807 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
25808 (define_split for the GPR case): Use int_reg_operand instead of
25809 gpc_reg_operand for the output.
25810
25811 2016-03-14 Tom de Vries <tom@codesourcery.com>
25812
25813 PR tree-optimization/70045
25814 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
25815 create_empty_if_region_on_edge argument.
25816
25817 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
25818
25819 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
25820 (STACK_CHECK_PROTECT): Likewise.
25821 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
25822 (STACK_CHECK_PROTECT): Likewise.
25823 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
25824 (STACK_CHECK_PROTECT): Likewise.
25825 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
25826 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
25827 (STACK_CHECK_PROTECT): Likewise.
25828
25829 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
25830
25831 PR rtl-optimization/69307
25832 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
25833 registers in modes that span more than one register.
25834
25835 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
25836
25837 PR target/69614
25838 * lra-constraints.c (delete_move_and_clobber): New.
25839 (remove_inheritance_pseudos): Use it.
25840
25841 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
25842
25843 PR ada/70017
25844 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
25845 the libcall is LCT_THROW.
25846 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
25847 for the checking routine.
25848
25849 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
25850
25851 PR target/70131
25852 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
25853 optimization if we have direct move.
25854 (roundu32<mode>2_fprs): Likewise.
25855
25856 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
25857
25858 PR target/70123
25859 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
25860 be rematerialized.
25861 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
25862 Arguments swapped. All callers changed. Take reg_renumber into
25863 account, and Calculate and compare register ranges for hard regs.
25864
25865 2016-03-11 Jeff Law <law@redhat.com>
25866
25867 PR tree-optimization/70190
25868 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
25869 Handle cases where we can not extract the taken edge, even though we
25870 found a constant value.
25871
25872 PR tree-optimization/64058
25873 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
25874 (num_coalesce_pairs): Move up earlier in file.
25875 (find_coalesce_pair): Initialize the INDEX field for each pair
25876 discovered.
25877 (compare_pairs): No longer sort on the elements in each pair.
25878 Instead break ties with the index of the coalesce pair.
25879
25880 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25881
25882 PR target/70002
25883 * config/aarch64/aarch64-protos.h
25884 (aarch64_save_restore_target_globals): New prototype.
25885 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
25886 Call the above when popping pragma.
25887 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
25888 New function.
25889 (aarch64_set_current_function): Rewrite using the above.
25890
25891 2016-03-11 Jakub Jelinek <jakub@redhat.com>
25892
25893 PR tree-optimization/70177
25894 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
25895 (extract_ops_from_tree): ... this. In the 2 argument
25896 overload remove _1 suffix.
25897 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
25898 (extract_ops_from_tree): ... this.
25899 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
25900 Adjust callers.
25901 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
25902 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
25903 extract_ops_from_tree instead of 2 operand one.
25904
25905 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
25906
25907 PR tree-optimization/70013
25908 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
25909 for constant-pool entries.
25910
25911 2016-03-11 Jakub Jelinek <jakub@redhat.com>
25912
25913 PR rtl-optimization/70174
25914 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
25915 followed by gen_lowpart on force_reg instead of just gen_lowpart.
25916
25917 PR tree-optimization/70169
25918 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
25919 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
25920 for unknown codes.
25921
25922 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
25923 Jakub Jelinek <jakub@redhat.com>
25924
25925 PR target/70160
25926 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
25927 of uninitialized values.
25928
25929 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25930
25931 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
25932 define_expand.
25933 ("*trunctddd2"): New pattern definition.
25934 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
25935 TD->DD truncation.
25936
25937 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25938
25939 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
25940 definitions for BFP and DFP rounding modes.
25941 ("fixuns_truncdddi2", "fixuns_trunctddi2")
25942 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
25943 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
25944 ("fix_trunctf<mode>2"): Use the new constants instead of magic
25945 numbers.
25946
25947 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25948
25949 * config/s390/constraints.md: Adjust comment.
25950 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
25951 s390_decompose_addrstyle_without_index.
25952 * config/s390/predicates.md (shift_count_or_setmem_operand):
25953 Rename to setmem_operand.
25954 * config/s390/s390-protos.h
25955 (s390_decompose_shift_count): Rename to
25956 s390_decompose_addrstyle_without_index.
25957 * config/s390/s390.c (s390_decompose_shift_count)
25958 (s390_mem_constraint, print_shift_count_operand)
25959 (print_operand_address, print_operand): Rename
25960 s390_decompose_shift_count to
25961 s390_decompose_addrstyle_without_index and rename
25962 print_shift_count_operand to print_addrstyle_operand troughout the
25963 file.
25964 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
25965 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
25966 Rename shift_count_or_setmem_operand to setmem_operand.
25967 * config/s390/vx-builtins.md ("vec_insert<mode>")
25968 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
25969 nonmemory_operand.
25970
25971 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25972
25973 PR target/70168
25974 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
25975 Handle overlapping retval and newval.
25976
25977 2016-03-10 Nick Clifton <nickc@redhat.com>
25978
25979 PR target/7044
25980 * config/aarch64/aarch64.c
25981 (aarch64_override_options_after_change_1): When forcing
25982 flag_omit_frame_pointer to be true, use a special value that can
25983 be detected if this function is called again, thus preventing
25984 flag_omit_leaf_frame_pointer from being forced to be false.
25985
25986 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25987
25988 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
25989 Set x_flag_omit_leaf_frame_pointer when handling
25990 -momit-leaf-frame-pointer.
25991
25992 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
25993
25994 PR lto/69589
25995 * cgraph.c (cgraph_node::dump): Dump split_part and
25996 indirect_call_target.
25997 * cgraph.h (cgraph_node): Add indirect_call_target flag.
25998 * ipa.c (has_addr_references_p): Cleanup.
25999 (is_indirect_call_target_p): New.
26000 (walk_polymorphic_call_targets): Do not mark virtuals that may be
26001 called indirectly as local.
26002 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
26003
26004 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
26005
26006 PR ipa/69630
26007 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
26008 on cxa_pure_virtual.
26009
26010 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
26011
26012 PR lto/69589
26013 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
26014
26015 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
26016
26017 PR lto/69589
26018 * tree.c (need_assembler_name_p): Only record main variant type names.
26019
26020 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
26021
26022 PR target/70113.
26023 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
26024 Always define to 0 or 1.
26025 (TARGET_FIX_ERR_A53_843419): New macro.
26026 * config/aarch64/aarch64-elf-raw.h
26027 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
26028 * config/aarch64/aarch64-linux.h: Likewise.
26029 * config/aarch64/aarch64.c
26030 (aarch64_override_options_after_change_1): Do not default
26031 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
26032 843419 is on.
26033 (aarch64_attributes): Handle fix-cortex-a53-843419.
26034 (aarch64_can_inline_p): Likewise.
26035 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
26036
26037 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
26038 Jakub Jelinek <jakub@redhat.com>
26039
26040 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
26041 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
26042 DECL_COMMONS if flag_unconstrained_commons is set.
26043 * tree-dfa.c (get_ref_base_and_extent): Likewise.
26044 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
26045 (funconstrained-commons): Document.
26046
26047 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
26048
26049 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
26050 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
26051
26052 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
26053
26054 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
26055 has a proper number of elements.
26056
26057 2016-03-10 Alan Modra <amodra@gmail.com>
26058
26059 PR rtl-optimization/69195
26060 PR rtl-optimization/47992
26061 * ira.c (recorded_label_ref): Delete.
26062 (update_equiv_regs): Return void.
26063 (indirect_jump_optimize): New function.
26064 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
26065 before regstat_compute_ri. Don't rebuild_jump_labels here.
26066 Delete update_regstat.
26067
26068 2016-03-10 Richard Biener <rguenther@suse.de>
26069
26070 PR tree-optimization/70128
26071 * tree-ssa-structalias.c (set_uids_in_ptset): Set
26072 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
26073
26074 2016-03-09 Jakub Jelinek <jakub@redhat.com>
26075
26076 PR tree-optimization/70152
26077 * tree-sra.c (replace_removed_params_ssa_names): Copy over
26078 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
26079
26080 PR target/70086
26081 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
26082 instead of gen_sse2_loadlpd.
26083 * config/i386/sse.md (*vec_concatv2df): Rename to...
26084 (vec_concatv2df): ... this.
26085
26086 PR tree-optimization/70127
26087 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
26088
26089 2016-03-09 David Malcolm <dmalcolm@redhat.com>
26090
26091 PR c/68473
26092 PR c++/70105
26093 * diagnostic-show-locus.c (compatible_locations_p): New function.
26094 (layout::layout): Sanitize ranges using compatible_locations_p.
26095
26096 2016-03-09 David Malcolm <dmalcolm@redhat.com>
26097
26098 PR c/68473
26099 PR c++/70105
26100 * diagnostic-show-locus.c (layout_range::layout_range): Replace
26101 location_range param with three const expanded_locations * and a
26102 bool.
26103 (layout::layout): Replace call to
26104 rich_location::lazily_expand_location with get_expanded_location.
26105 Extract the range and perform location expansion here, passing
26106 the results to the layout_range ctor.
26107 * diagnostic.c (source_range::debug): Delete.
26108 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
26109 of rich_location::get_expanded_location.
26110 * gcc-rich-location.c (get_range_for_expr): Delete.
26111 (gcc_rich_location::add_expr): Reimplement to avoid the
26112 rich_location::add_range overload that took a location_range,
26113 passing a location_t instead.
26114
26115 2016-03-09 Richard Biener <rguenther@suse.de>
26116 Jakub Jelinek <jakub@redhat.com>
26117
26118 PR tree-optimization/70138
26119 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
26120 Also skip vect_double_reduction_def.
26121
26122 2016-03-09 Jakub Jelinek <jakub@redhat.com>
26123
26124 PR target/70049
26125 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
26126 if the operand is "m".
26127
26128 2016-03-09 Nathan Sidwell <nathan@acm.org>
26129
26130 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
26131
26132 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
26133
26134 * config/i386/i386.c (processor_target_table): Fix cost table
26135 intialization order for znver1.
26136
26137 2016-03-08 Jakub Jelinek <jakub@redhat.com>
26138
26139 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
26140 - becuase -> because.
26141 * ipa-reference.c (ignore_module_statics): Likewise.
26142 * cgraph.c (cgraph_node::get_body): Likewise.
26143 * ipa-inline.c (early_inliner): Likewise.
26144 * ipa-devirt.c (types_same_for_odr): Likewise.
26145 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
26146 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
26147
26148 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26149
26150 * tree-ssa-math-opts.c: Fix typo in comment.
26151
26152 2016-03-08 Jakub Jelinek <jakub@redhat.com>
26153
26154 PR target/70110
26155 * config/i386/i386.c (scalar_chain::make_vector_copies,
26156 scalar_chain::convert_reg): Call end_sequence in between
26157 get_insns and emit_conversion_insns rather than after both
26158 calls.
26159
26160 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
26161
26162 PR target/70064
26163 * config/i386/i386.h (machine_function): Add
26164 pc_thunk_call_expanded flag.
26165 (ix86_pc_thunk_call_expanded): New define.
26166 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
26167 (*set_got): Rename insn pattern from set_got.
26168 (*set_got_labelled): Rename inst pattern from set_got_labelled.
26169 * config/i386/i386.c (ix86_compute_frame_layout): Use
26170 ix86_pc_thunk_call_expanded to prevent red-zone.
26171
26172 2016-03-07 Martin Jambor <mjambor@suse.cz>
26173
26174 * hsa.h (hsa_get_ctor_statements): Declare.
26175 (hsa_get_dtor_statements): Likewise.
26176 (hsa_get_kernel_dispatch_type): Likewise.
26177 * hsa.c (hsa_get_ctor_statements): New function.
26178 (hsa_get_dtor_statements): Likewise.
26179 (hsa_get_kernel_dispatch_type): Likewise.
26180 * hsa-brig.c (hsa_cdtor_statements): Removed.
26181 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
26182 hsa_get_dtor_statements.
26183 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
26184 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
26185
26186 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
26187
26188 * config/arm/arm-cores.def (cortex-r8): New.
26189 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
26190 * config/arm/arm-tune.md: Likewise.
26191 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
26192
26193 2016-03-07 Martin Sebor <msebor@redhat.com>
26194
26195 PR rtl-optimization/19705
26196 * doc/invoke.texi (Options That Control Optimization): Clarify
26197 -fno-branch-count-reg.
26198
26199 2016-02-26 Richard Biener <rguenther@suse.de>
26200 Jeff Law <law@redhat.com>
26201
26202 PR tree-optimization/69740
26203 * cfghooks.c (remove_edge): Request loop fixups if we delete
26204 an edge that might turn an irreducible loop into a natural
26205 loop.
26206 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
26207 Move after definition of loops_state_clear.
26208
26209 2016-03-07 Bin Cheng <bin.cheng@arm.com>
26210
26211 PR rtl-optimization/69052
26212 * rtlanal.c (commutative_operand_precedence): Set higher precedence
26213 to CONST_WIDE_INT.
26214
26215 2016-03-07 Tom de Vries <tom@codesourcery.com>
26216
26217 PR tree-optimization/70116
26218 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
26219 is_tm_ending stmts and ubsan/asan internal functions.
26220 (find_duplicate): Use it. Don't test is_tm_ending here.
26221
26222 2016-03-07 Richard Biener <rguenther@suse.de>
26223
26224 PR tree-optimization/70115
26225 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
26226 (propagate_constants_for_unrolling): Use replace_uses_by.
26227
26228 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
26229
26230 PR middle-end/69916
26231 * omp-low.c (struct oacc_loop): Add ifns.
26232 (new_oacc_loop_raw): Initialize it.
26233 (finish_oacc_loop): Clear mask & flags if no ifns.
26234 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
26235 (oacc_loop_xform_loop): Add ifns arg & adjust.
26236 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
26237
26238 2016-03-07 Richard Henderson <rth@redhat.com>
26239
26240 PR rtl-opt/70061
26241 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
26242 (insert_value_copy_on_edge): Likewise.
26243
26244 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26245
26246 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
26247
26248 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26249
26250 PR target/62281
26251 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
26252
26253 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
26254
26255 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
26256
26257 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
26258
26259 Fix sseimul type attribute.
26260 * config/i386/znver1.md
26261 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
26262 znver1_sseimul_avx256_load) : Fix the type attribute.
26263 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
26264 pipe usage and latency.
26265
26266 2016-03-05 Jakub Jelinek <jakub@redhat.com>
26267
26268 PR c++/70084
26269 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
26270 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
26271 to the right type.
26272
26273 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
26274
26275 PR c/69973
26276 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
26277
26278 PR rtl-optimization/69941
26279 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
26280 the reg share its mode.
26281
26282 2016-03-04 Jeff Law <law@redhat.com>
26283
26284 PR tree-optimization/69196
26285 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
26286 If the both SSA_NAMEs are anonymous, then consider them unassociated
26287 and include the PHI in the statement count.
26288
26289 2016-03-05 Tom de Vries <tom@codesourcery.com>
26290
26291 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
26292 construct in oacc routine. Check for oacc region in oacc routine.
26293
26294 2016-03-04 Jakub Jelinek <jakub@redhat.com>
26295
26296 PR target/70062
26297 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
26298 2016-02-22 changes, instead don't recurse if RECUR is already true.
26299 Don't change *dynamic_check if RECUR. Adjust recursive caller
26300 to pass true to the new argument.
26301 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
26302
26303 PR target/70059
26304 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
26305 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
26306 fixes.
26307 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
26308
26309 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
26310
26311 PR rtl-optimization/57676
26312 * lra-assigns.c (lra_assign): Guard test for maximum iterations
26313 with flag_checking.
26314
26315 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
26316
26317 * tree-vect-patterns.c (search_type_for_mask): Handle
26318 comparison of booleans.
26319
26320 2016-03-04 Jakub Jelinek <jakub@redhat.com>
26321
26322 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
26323 Fix @xref usage.
26324
26325 PR debug/69947
26326 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
26327 all other ops that have dw_val_class_die_ref operands,
26328 and DW_OP_GNU_entry_value.
26329
26330 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26331
26332 PR rtl-optimization/69904
26333 * config/arm/arm.c (arm_cannot_copy_insn_p):
26334 Return true for load-exclusive instructions.
26335
26336 2016-03-03 Jakub Jelinek <jakub@redhat.com>
26337
26338 PR target/70021
26339 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
26340 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
26341 the pattern no matter if it is used just by non-pattern, pattern
26342 or mix thereof.
26343 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
26344 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
26345 oprnd1 def_stmt is in pattern, don't look through it.
26346
26347 2016-03-03 Marek Polacek <polacek@redhat.com>
26348
26349 PR middle-end/70050
26350 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
26351
26352 2016-03-03 Martin Liska <mliska@suse.cz>
26353
26354 PR tree-optimization/70043
26355 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
26356 previous statement if we see a debug statement.
26357
26358 2016-03-03 Richard Biener <rguenther@suse.de>
26359
26360 PR tree-optimization/55936
26361 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
26362 parameter and guard unsafe equivalence use.
26363 (vrp_evaluate_conditional_warnv_with_ops): Always use
26364 safe equivalences but not via the quadratic compare_names
26365 helper.
26366
26367 2016-03-03 Michael Collison <michael.collison@linaro.org>
26368
26369 PR target/70014
26370 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
26371 for operand 1 to s_register_operand. Change predicate for operand
26372 2 to arm_not_immediate_operand.
26373
26374 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
26375
26376 * doc/tm.texi: Regenerated.
26377
26378 2016-03-02 Richard Henderson <rth@redhat.com>
26379
26380 PR rtl-opt/67145
26381 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
26382 simplification when all args are positive non-fixed registers.
26383
26384 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
26385
26386 * target.def (lra_p): Specify that new ports should use LRA.
26387
26388 2016-03-02 Jakub Jelinek <jakub@redhat.com>
26389
26390 PR libgomp/69555
26391 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
26392 gimplify_type_sizes the type they refer to.
26393 (omp_notice_variable): Handle reference vars to VLAs.
26394 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
26395 reference to VLA decls in the second pass instead of first pass.
26396
26397 2016-03-02 Tom de Vries <tom@codesourcery.com>
26398
26399 PR tree-optimization/68659
26400 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
26401 new_expr == NULL_TREE.
26402 (get_new_name): Handle ADDR_EXPR.
26403
26404 2016-03-02 Bin Cheng <bin.cheng@arm.com>
26405
26406 PR rtl-optimization/69052
26407 * loop-invariant.c (canonicalize_address): New function.
26408 (inv_can_prop_to_addr_use): Check validity of address expression
26409 which is canonicalized by above function.
26410
26411 2016-03-02 Alan Modra <amodra@gmail.com>
26412
26413 PR ipa/69990
26414 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
26415 larger alignment.
26416
26417 2016-03-02 Jakub Jelinek <jakub@redhat.com>
26418
26419 PR target/70028
26420 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
26421 (*movhi_internal): Put mask moves from and to memory separately
26422 from moves from/to GPRs.
26423
26424 2016-03-02 Richard Biener <rguenther@suse.de>
26425
26426 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
26427 GENERIC expressions in GIMPLE.
26428
26429 2016-03-02 Richard Biener <rguenther@suse.de>
26430
26431 * config/i386/i386.c (type_natural_mode): Fix typo.
26432
26433 2016-03-02 Nick Clifton <nickc@redhat.com>
26434
26435 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
26436
26437 2016-03-02 Richard Biener <rguenther@suse.de>
26438 Uros Bizjak <ubizjak@gmail.com>
26439
26440 PR target/67278
26441 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
26442
26443 2016-03-02 Richard Biener <rguenther@suse.de>
26444
26445 PR middle-end/67278
26446 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
26447
26448 2016-03-02 Marek Polacek <polacek@redhat.com>
26449
26450 PR c/67854
26451 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
26452 "is promoted to" warning.
26453
26454 2016-03-01 DJ Delorie <dj@redhat.com>
26455
26456 * config.gcc: Deprecate mep-*.
26457
26458 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
26459
26460 PR middle-end/70025
26461 * lra-constraints.c (regno_val_use_in): New.
26462 (match_reload): Use it instead of regno_use_in.
26463
26464 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
26465
26466 PR rtl-optimization/70007
26467 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
26468 references present in REG_EQUAL notes attached to non-SET patterns.
26469
26470 2016-03-01 Jeff Law <law@redhat.com>
26471
26472 PR tree-optimization/69196
26473 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
26474 Appropriately clamp the number of statements to copy when the
26475 thread path does not traverse a loop backedge.
26476
26477 PR tree-optimization/69196
26478 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
26479 Do count some PHIs in the thread path against the insn count. Decrease
26480 final statement count by one as the control statement in the last
26481 block will get removed. Remove special cased code for handling PHIs
26482 in the last block.
26483
26484 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
26485
26486 PR target/70027
26487 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
26488 asm dialect alternatives to explicit GOTPCREL calls.
26489
26490 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
26491
26492 PR ada/70017
26493 * ira.c (do_reload): Issue warning for generic stack checking here...
26494 * reload1.c (reload): ...instead of here and streamline it.
26495
26496 2016-03-01 Nick Clifton <nickc@redhat.com>
26497
26498 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
26499
26500 2016-03-01 Richard Biener <rguenther@suse.de>
26501
26502 PR tree-optimization/69983
26503 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
26504 types and fall back to operand_equal_p.
26505
26506 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26507
26508 Revert
26509 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26510
26511 * config/s390/constraints.md ("jm8"): New constraint.
26512 * config/s390/predicates.md ("const_int_8bitset_operand"): New
26513 predicate.
26514 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
26515 into ...
26516 ("*setmem_long<setmem_and>"): New pattern.
26517 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
26518 into ...
26519 ("*setmem_long_31z<setmem_and>"): New pattern.
26520 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
26521 New substitution rules with the required attributes.
26522
26523
26524 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26525
26526 Revert
26527 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26528
26529 * gensupport.c (process_substs_on_one_elem): Split loop to
26530 complete mark_operands_used_in_match_dup on all expressions in the
26531 vector first.
26532 (adjust_operands_numbers): Inline into process_substs_on_one_elem
26533 and remove function.
26534
26535 2016-03-01 Richard Biener <rguenther@suse.de>
26536
26537 PR middle-end/70022
26538 * fold-const.c (fold_indirect_ref_1): Fix range checking for
26539 vector BIT_FIELD_REF extract.
26540
26541 2016-03-01 Richard Biener <rguenther@suse.de>
26542
26543 PR tree-optimization/69994
26544 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
26545
26546 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
26547
26548 PR tree-optimization/69956
26549 * tree-vect-stmts.c (supportable_widening_operation): Support
26550 multi-step conversion of boolean vectors.
26551 (supportable_narrowing_operation): Likewise.
26552
26553 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26554
26555 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
26556 anymore.
26557
26558 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26559
26560 * config/s390/subst.md (DSI_VI): New mode iterator.
26561 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
26562 * config/s390/vector.md ("vec_set<mode>"): Move expander before
26563 the insn definition.
26564 ("*vec_set<mode>"): Change predicate and add alternative to
26565 support only either register or const_int operands as element
26566 selector.
26567 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
26568 operands.
26569 ("vec_extract<mode>"): New expander.
26570 ("*vec_extract<mode>"): New insn definition supporting reg and
26571 const_int element selectors.
26572 ("*vec_extract<mode>_plus"): New insn definition supporting
26573 reg+const_int element selectors.
26574 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
26575 following expander+insn definition.
26576 ("<vec_shifts_name><mode>3"): New expander.
26577 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
26578
26579 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26580
26581 * config/s390/s390.md ("*tabort_1"): Change predicate to
26582 nonmemory_operand. Add a second alternative to cover
26583 register as well as const int operands.
26584 ("*tabort_1_plus"): New pattern definition.
26585
26586 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26587
26588 * config/s390/s390.md ("*ashrdi3_cc_31")
26589 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
26590 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
26591 Merge insn definitions into ...
26592 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
26593 New pattern definition.
26594 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
26595 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
26596 ("*ashr<mode>3_and"): Merge insn definitions into ...
26597 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
26598 New pattern definition.
26599 * config/s390/subst.md ("addr_style_op_cc_subst")
26600 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
26601 substitutions patterns plus attributes.
26602 Add ashiftrt to SUBST iterator.
26603
26604 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26605
26606 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
26607 op2 to nonmemory_operand.
26608 ("*<shift>di3_31", "*<shift>di3_31_and"):
26609 Merge into single pattern definition ...
26610 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
26611 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
26612 pattern definition ...
26613 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
26614 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
26615 iterator.
26616
26617 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26618
26619 * config/s390/predicates.md (const_int_6bitset_operand): New
26620 predicate.
26621 * config/s390/s390.md: Include subst.md.
26622 ("rotl<mode>3"): New expander.
26623 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
26624 ...
26625 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
26626 * config/s390/subst.md: New file.
26627
26628 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26629
26630 * config/s390/s390.md ("op_type", "atype", "length" attributes):
26631 Remove RRR type. It doesn't really exist.
26632 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
26633 attributes.
26634 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
26635 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
26636 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
26637 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
26638 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
26639 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
26640 `enabled' attribute.
26641
26642 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26643
26644 * gensupport.c (process_substs_on_one_elem): Split loop to
26645 complete mark_operands_used_in_match_dup on all expressions in the
26646 vector first.
26647 (adjust_operands_numbers): Inline into process_substs_on_one_elem
26648 and remove function.
26649
26650 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
26651
26652 PR target/69706
26653 * config/sparc/sparc.c (NWORDS_UP): Rename to...
26654 (CEIL_NWORDS): ...this. Use CEIL macro.
26655 (compute_fp_layout): Adjust to above renaming.
26656 (function_arg_union_value): Likewise.
26657 (sparc_arg_partial_bytes): Likewise.
26658 (sparc_function_arg_advance): Likewise.
26659
26660 2016-02-29 Jeff Law <law@redhat.com>
26661
26662 PR tree-optimization/70005
26663 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
26664 where an object with a boolean range is compared against a value
26665 outside [0..1].
26666
26667 PR tree-optimization/69999
26668 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
26669 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
26670 loop cleanups.
26671
26672 2016-02-29 Richard Biener <rguenther@suse.de>
26673
26674 PR tree-optimization/69994
26675 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
26676 (get_unary_op): Look through nop conversions.
26677 (ops_equal_values_p): New function, look for equality diregarding
26678 nop conversions.
26679 (eliminate_plus_minus_pair): Use ops_equal_values_p
26680 (repropagate_negates): Do not use get_unary_op here.
26681
26682 2016-02-29 Martin Liska <mliska@suse.cz>
26683
26684 * system.h: Poison ENABLE_CHECKING macro.
26685
26686 2016-02-29 Martin Liska <mliska@suse.cz>
26687
26688 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
26689 is presented in dump flags.
26690 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
26691 (hsa_regalloc): Likewise.
26692
26693 2016-02-19 Richard Biener <rguenther@suse.de>
26694
26695 PR tree-optimization/69980
26696 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
26697 permutation of those we need to keep.
26698
26699 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
26700
26701 PR target/69706
26702 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
26703 (NWORDS_UP): ...this
26704 (init_cumulative_args): Minor tweaks.
26705 (sparc_promote_function_mode): Likewise.
26706 (scan_record_type): Delete.
26707 (traverse_record_type): New function template.
26708 (classify_data_t): New structure type.
26709 (classify_registers): New inline function.
26710 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
26711 exhausted. Instantiate traverse_record_type on classify_registers and
26712 deal with the case of a structure passed in slot #15 with no FP field
26713 in the first word.
26714 (assign_data_t): New structure type.
26715 (compute_int_layout): New static function.
26716 (compute_fp_layout): Likewise.
26717 (count_registers): New inline function.
26718 (assign_int_registers): New static function.
26719 (assign_fp_registers): Likewise.
26720 (assign_registers): New inline function.
26721 (function_arg_record_value_1): Delete.
26722 (function_arg_record_value_2): Likewise.
26723 (function_arg_record_value_3): Likewise.
26724 (function_arg_record_value): Adjust to above changes. Instantiate
26725 traverse_record_type on count_registers to first count the number of
26726 registers to be used and then on assign_registers to assign them.
26727 (function_arg_union_value): Adjust to above renaming.
26728 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
26729 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
26730 case of a structure passed in slot #15
26731 (sparc_function_arg_advance): Likewise.
26732 (function_arg_padding): Minor tweak.
26733
26734 2016-02-29 Richard Biener <rguenther@suse.de>
26735
26736 PR tree-optimization/69720
26737 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
26738 the adjustment_def path for possibly vectorized defs.
26739 (vect_create_epilog_for_reduction): Handle vectorized initial
26740 defs properly.
26741
26742 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
26743
26744 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
26745
26746 2016-02-27 Jeff Law <law@redhat.com>
26747
26748 Revert
26749 2016-02-26 Richard Biener <rguenther@suse.de>
26750 Jeff Law <law@redhat.com>
26751
26752 PR tree-optimization/69740
26753 * cfghooks.c (remove_edge): Request loop fixups if we delete
26754 an edge that might turn an irreducible loop into a natural
26755 loop.
26756
26757 2016-02-27 Jakub Jelinek <jakub@redhat.com>
26758
26759 PR rtl-optimization/69896
26760 * tree-vect-generic.c (get_compute_type): Avoid single element
26761 vector types.
26762
26763 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
26764
26765 Rename the AArch64 tuning option and related functions to enable the
26766 Newton series for the reciprocal square root to reflect its
26767 approximative characteristic.
26768
26769 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
26770 function to "aarch64_emit_approx_rsqrt".
26771 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
26772 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
26773 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
26774 (xgene1_tunings): Likewise.
26775 (use_rsqrt_p): Likewise.
26776 (aarch64_emit_swrsqrt): Use new function name.
26777 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
26778 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
26779 text explaining this option.
26780 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
26781
26782 2016-02-26 Jakub Jelinek <jakub@redhat.com>
26783
26784 PR target/69969
26785 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
26786 complain about -mallow-movmisalign without -mvsx if
26787 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
26788
26789 2016-02-26 Joel Sherrill <joel@rtems.org>
26790
26791 * config.gcc: Add x86_64-*-rtems*.
26792 * config/i386/rtems-64.h: New file.
26793
26794 2016-02-26 Joel Sherrill <joel@rtems.org>
26795
26796 * config.gcc: Add aarch64-*-rtems*.
26797 * config/aarch64/rtems.h: New file.
26798
26799 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
26800
26801 PR target/69946
26802 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
26803 shift amount using %h. Add comment.
26804
26805 2016-02-26 Richard Biener <rguenther@suse.de>
26806 Jeff Law <law@redhat.com>
26807
26808 PR tree-optimization/69740
26809 * cfghooks.c (remove_edge): Request loop fixups if we delete
26810 an edge that might turn an irreducible loop into a natural
26811 loop.
26812
26813 2016-02-26 Martin Jambor <mjambor@suse.cz>
26814
26815 PR middle-end/69920
26816 * tree-sra.c (sra_modify_assign): Do not remove loads of
26817 uninitialized aggregates to SSA_NAMEs.
26818
26819 2016-02-26 Richard Henderson <rth@redhat.com>
26820
26821 PR target/69709
26822 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
26823 pseudo in case the target rtx matches the source of the left
26824 shift.
26825
26826 2016-02-26 Martin Jambor <mjambor@suse.cz>
26827
26828 PR hsa/69568
26829 * hsa.h (hsa_type_packed_p): Declare.
26830 * hsa.c (hsa_type_packed_p): New function.
26831 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
26832 loads.
26833 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
26834 * hsa-brig.c (emit_basic_insn): Likewise.
26835
26836 2016-02-26 Martin Jambor <mjambor@suse.cz>
26837
26838 pr hsa/69674
26839 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
26840 pointers.
26841 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
26842
26843 2016-02-26 Martin Jambor <mjambor@suse.cz>
26844
26845 * hsa.h (is_a_helper): New overload for hsa_op_immed for
26846 hsa_op_with_type operands.
26847 (hsa_unsigned_type_for_type): Declare.
26848 * hsa.c (hsa_unsigned_type_for_type): New function.
26849 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
26850 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
26851 the finalizer. Do not emit extra move.
26852
26853 2016-02-26 Martin Jambor <mjambor@suse.cz>
26854
26855 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
26856 atomic operations in private segment.
26857
26858 2016-02-26 Martin Jambor <mjambor@suse.cz>
26859
26860 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
26861 statements to wi->info. Also disallow omp simd constructs.
26862 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
26863 for not gridifying. Dump special string for omp_for.
26864
26865 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26866
26867 PR target/69245
26868 * config/aarch64/aarch64.c (aarch64_set_current_function):
26869 Save/restore target globals when switching to
26870 target_option_default_node.
26871
26872 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26873
26874 PR target/69613
26875 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
26876 Return 0 if !SHIFT_COUNT_TRUNCATED.
26877
26878 2016-02-26 Jakub Jelinek <jakub@redhat.com>
26879 Eric Botcazou <ebotcazou@adacore.com>
26880
26881 PR rtl-optimization/69891
26882 * dse.c (scan_insn): If we can't figure out memset arguments
26883 or they are non-constant, call clear_rhs_from_active_local_stores.
26884
26885 2016-02-26 Martin Liska <mliska@suse.cz>
26886
26887 * doc/extend.texi: Mention clog10, clog10f an clog10l
26888 in Builtins section.
26889
26890 2016-02-26 Martin Liska <mliska@suse.cz>
26891
26892 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
26893 CHECKING_P.
26894 (resolve_args_picking_1): Likewise.
26895 * dwarf2out.h (struct GTY): Likewise.
26896
26897 2016-02-26 Martin Liska <mliska@suse.cz>
26898
26899 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
26900 with flag_checking.
26901 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
26902
26903 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
26904 Martin Liska <mliska@suse.cz>
26905
26906 * doc/install.texi: Mention --enable-valgrind-annotations.
26907
26908 2016-02-26 Richard Biener <rguenther@suse.de>
26909
26910 PR tree-optimization/69551
26911 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
26912 looking through aliases adjust DECL_PT_UID to refer to the
26913 ultimate alias target.
26914
26915 2016-02-25 Martin Liska <mliska@suse.cz>
26916
26917 PR middle-end/69919
26918 * alloc-pool.c (after_memory_report): New variable.
26919 * alloc-pool.h (base_pool_allocator ::release): Do not use
26920 the infrastructure if after_memory_report.
26921 * toplev.c (toplev::main): Mark after memory report.
26922
26923 2016-02-25 Richard Biener <rguenther@suse.de>
26924
26925 PR tree-optimization/48795
26926 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
26927
26928 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
26929
26930 PR driver/68463
26931 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
26932 offloading is enabled and -fopenacc or -fopenmp is specified.
26933 (CRTOFFLOADEND): Likewise.
26934 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
26935 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
26936 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
26937 (offload_objects_file_name): New static var.
26938 (tool_cleanup): Remove offload_objects_file_name file.
26939 (find_offloadbeginend): Replace with ...
26940 (find_crtoffloadtable): ... this.
26941 (run_gcc): Remove offload_argc and offload_argv.
26942 Get offload_objects_file_name from -foffload-objects=... option.
26943 Read names of object files with offload from this file, pass them to
26944 compile_images_for_offload_targets. Don't call find_offloadbeginend and
26945 don't pass offloadbegin and offloadend to the linker. Don't pass
26946 offload non-LTO files to the linker, because now they're not claimed.
26947
26948 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
26949
26950 PR ipa/69630
26951 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
26952 on builtin_unreachable.
26953
26954 2016-02-25 Jakub Jelinek <jakub@redhat.com>
26955
26956 PR rtl-optimization/69896
26957 * regcprop.c: Include cfgrtl.h.
26958 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
26959 than remembered mode, either delete it (if noop_move_p), or
26960 treat like copy_p but not noop_p instruction.
26961
26962 2016-02-24 Jakub Jelinek <jakub@redhat.com>
26963
26964 PR debug/69705
26965 * dwarf2out.c (gen_variable_die): Work around buggy LTO
26966 - allow NULL decl for Fortran DW_TAG_common_block variables.
26967
26968 2016-02-24 Jason Merrill <jason@redhat.com>
26969
26970 * common.opt (flifetime-dse): Add -flifetime-dse=1.
26971
26972 2016-02-24 Richard Biener <rguenther@suse.de>
26973 Jakub Jelinek <jakub@redhat.com>
26974
26975 PR middle-end/69760
26976 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
26977 conditionally executed ops to well-defined overflow behavior.
26978
26979 2016-02-24 Jakub Jelinek <jakub@redhat.com>
26980
26981 PR middle-end/69915
26982 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
26983 elements.
26984
26985 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26986
26987 PR rtl-optimization/69886
26988 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
26989 argument. Use it when checking validity of set instructions.
26990 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
26991 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
26992 callsite.
26993 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
26994 * store-motion.c (find_moveable_store): Update
26995 can_assign_to_reg_without_clobbers_p callsite.
26996
26997 2016-02-24 Richard Biener <rguenther@suse.de>
26998
26999 PR middle-end/68963
27000 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
27001 bogus check.
27002 (record_nonwrapping_iv): Do not fall back to the low/high bound
27003 for non-constant IV bases if the stmt is not always executed.
27004
27005 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27006
27007 * config/arm/arm-cores.def (cortex-a32): New entry.
27008 * config/arm/arm-tables.opt: Regenerate.
27009 * config/arm/arm-tune.md: Regenerate.
27010 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
27011 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
27012 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
27013 for -mcpu and -mtune.
27014
27015 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27016
27017 PR target/69875
27018 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
27019 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
27020 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
27021 (atomic_loaddi_1): Delete.
27022 (atomic_loaddi): Rewrite expander using the above changes.
27023
27024 2016-02-24 Jakub Jelinek <jakub@redhat.com>
27025
27026 PR c/69918
27027 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
27028 2 to 3.
27029
27030 2016-02-24 Jakub Jelinek <jakub@redhat.com>
27031 Richard Biener <rguenth@suse.de>
27032
27033 PR middle-end/69909
27034 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
27035 set_mem_attributes if tem is SSA_NAME which got expanded
27036 as a MEM.
27037
27038 2016-02-24 Richard Biener <rguenther@suse.de>
27039
27040 PR tree-optimization/69907
27041 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
27042 end of permutations for BB vectorization.
27043
27044 2016-02-24 Christian Bruel <christian.bruel@st.com>
27045
27046 * config/arm/arm-c.c (arm_option_override): Initialize
27047 target_option_current_node.
27048 * config/arm/arm.c (arm_pragma_target_parse): Replace
27049 build_target_option_node call by target_option_current_node.
27050 Set target_option_current_node.
27051 Fix comments.
27052
27053 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
27054
27055 PR target/69810
27056 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
27057 define_insn_and_split to define_insn.
27058 (zero_extendqi<mode>2_dot2): Same.
27059 (extendqi<mode>2_dot): Same.
27060 (extendqi<mode>2_dot2): Same.
27061
27062 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
27063
27064 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
27065 and add bypass for AES{D,E} and AESMC pairs.
27066 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
27067 and AESMC pairs.
27068
27069 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
27070
27071 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
27072 series for reciprocal square root in Exynos M1.
27073
27074 2016-02-23 Martin Sebor <msebor@redhat.com>
27075
27076 PR c/69759
27077 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
27078 __builtin_alloca_with_align.
27079
27080 2016-02-23 Richard Henderson <rth@redhat.com>
27081
27082 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
27083 (ix86_register_pragmas): Remove __seg_tls.
27084 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
27085 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
27086 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
27087 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
27088 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
27089 * doc/extend.texi (__seg_tls): Remove item.
27090
27091 2016-02-23 Richard Biener <rguenther@suse.de>
27092
27093 * alloc-pool.h (struct allocation_object): Make id member
27094 conditional on CHECKING_P again.
27095 (get_instance): Adjust.
27096 (base_pool_allocator): Likewise.
27097
27098 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
27099
27100 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
27101 (parallelize_loops): In OpenACC kernels mode, set n_threads to
27102 zero.
27103 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
27104 flag_openacc.
27105 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
27106
27107 2016-02-23 Richard Biener <rguenther@suse.de>
27108
27109 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
27110 * bitmap.h (struct bitmap_usage): Likewise.
27111 (bitmap_move): Declare.
27112 * bitmap.c (register_overhead): Take size_t argument.
27113 (bitmap_move): New function.
27114 * df-problems.c (df_rd_transfer_function): Use bitmap_move
27115 to properly account overhead.
27116 * tree.c (free_node): Use tree_size.
27117
27118 2016-02-23 Jakub Jelinek <jakub@redhat.com>
27119
27120 PR c++/69902
27121 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
27122 when inverting comparison.
27123
27124 PR c/69900
27125 * common.opt (Wunreachable-code): Add Warning flag.
27126
27127 2016-02-23 Mark Wielaard <mjw@redhat.com>
27128 Jakub Jelinek <jakub@redhat.com>
27129
27130 PR c/69911
27131 * cgraphunit.c (check_global_declaration): Check main_input_filename
27132 and DECL_SOURCE_FILE are not NULL.
27133
27134 2016-02-23 Martin Jambor <mjambor@suse.cz>
27135
27136 PR tree-optimization/69666
27137 * tree-sra.c (sra_modify_assign): Do not attempt to create
27138 default_def replacements for unscalarizable regions.
27139
27140 2016-02-20 Mark Wielaard <mjw@redhat.com>
27141
27142 PR c/28901
27143 * cgraphunit.c (check_global_declaration): Check level of
27144 warn_unused_const_variable and main_input_filename.
27145 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
27146 (-Wunused-variable): For C implies -Wunused-const-variable=1.
27147 (-Wunused-const-variable): Explain levels 1 and 2.
27148
27149 2016-02-22 Jakub Jelinek <jakub@redhat.com>
27150
27151 PR target/69888
27152 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
27153 identical arguments. Formatting and spelling fixes.
27154
27155 PR target/69885
27156 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
27157 be specified.
27158
27159 PR target/69894
27160 PR target/69895
27161 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
27162 and m68k-devices.def.
27163 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
27164 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
27165
27166 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
27167
27168 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
27169 and HImode registers.
27170
27171 2016-02-22 Richard Biener <rguenther@suse.de>
27172
27173 PR tree-optimization/69882
27174 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
27175 preserve permutations present because of gaps.
27176 (vect_supported_load_permutation_p): Always continue checking
27177 permutations after vect_attempt_slp_rearrange_stmts.
27178
27179 2016-02-22 Bin Cheng <bin.cheng@arm.com>
27180
27181 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
27182 min_profitable_estimate, rather than min_profitable_iters.
27183
27184 2016-02-22 Jakub Jelinek <jakub@redhat.com>
27185
27186 PR target/69885
27187 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
27188 SImode for last match_operand.
27189
27190 2016-02-22 Martin Liska <mliska@suse.cz>
27191
27192 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
27193 return bitsize - 1 as the return value.
27194
27195 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
27196
27197 PR target/69806
27198 PR target/54089
27199 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
27200 Handle negative shift counts.
27201 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
27202 force_reg on the shift constant.
27203 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
27204 (lshrsi3_d): Handle negative shift counts.
27205
27206 2016-02-22 Richard Biener <rguenther@suse.de>
27207 Tom de Vries <tom@codesourcery.com>
27208
27209 * graph.c: Include dumpfile.h.
27210 (print_graph_cfg): Split into three overloads.
27211 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
27212
27213 2016-02-22 Tom de Vries <tom@codesourcery.com>
27214
27215 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
27216 dump-fn.
27217
27218 2016-02-22 Richard Biener <rguenther@suse.de>
27219
27220 PR ipa/37448
27221 * ipa-inline-transform.c (inline_call): When not updating
27222 overall summaries adjust self size by the growth estimate.
27223 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
27224 hash-set, do not update overall summaries here. Renamed from ...
27225 (inline_to_all_callers): ... this which is now wrapping the
27226 above and performing delayed overall summary update.
27227 (early_inline_small_functions): Delay updating of the overall
27228 summary.
27229
27230 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
27231
27232 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
27233 variable.
27234
27235 2016-02-19 Jakub Jelinek <jakub@redhat.com>
27236
27237 PR driver/69805
27238 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
27239 :%* in %:gt() argument.
27240 (greater_than_spec_func): Adjust for expecting only numbers,
27241 if there are more than two numbers, compare the last two.
27242
27243 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
27244
27245 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
27246 -Wnarrowing with -std.
27247
27248 2016-02-19 Jakub Jelinek <jakub@redhat.com>
27249
27250 PR c++/69851
27251 * expr.c (store_field): Don't use bit-field path if exp is
27252 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
27253 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
27254 and the assignment can be performed by bitwise copy. Formatting
27255 fix.
27256
27257 PR middle-end/69838
27258 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
27259 call copy_reg_eh_region_note_forward on before and/or after sequences
27260 and remove note from insn if it no longer can throw.
27261
27262 PR target/69820
27263 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
27264 if TARGET_AVX512BW.
27265
27266 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27267
27268 * config/s390/vector.md: Add missing commutative operand markers
27269 to the patterns which qualify for one.
27270 * config/s390/vx-builtins.md: Likewise.
27271
27272 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27273
27274 * config/s390/vector.md (VI, VI_QHS): Add single element vector
27275 types to mode iterators.
27276 (vec_double): ... and mode attribute.
27277 * config/s390/vx-builtins.md (non_vec_int): Likewise.
27278
27279 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27280
27281 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
27282 Change the predicate of op2 from nonimmediate to general and let
27283 reload fix it if necessary.
27284
27285 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27286
27287 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
27288
27289 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27290
27291 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
27292 mode.
27293
27294 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27295
27296 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
27297 * config/s390/s390.c (s390_expand_vec_movstr): New function.
27298 * config/s390/s390.md ("movstr<P:mode>"): Call
27299 s390_expand_vec_movstr.
27300
27301 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27302
27303 * config/s390/s390.md: Add missing output modifier for operand 1
27304 to print it as address properly.
27305
27306 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27307
27308 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
27309 * config/s390/2964.md: New file.
27310 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
27311 of insn grouping attributes depending on the CPU level.
27312 (s390_get_unit_mask): New function.
27313 (s390_sched_score): Remove the OOO from the scheduling macros.
27314 Add loop to calculate a score for the instruction mix.
27315 (s390_sched_reorder): Likewise plus improve debug output.
27316 (s390_sched_variable_issue): Rename macros as above. Calculate
27317 the unit distances after actually scheduling an insn. Improve
27318 debug output.
27319 (s390_sched_init): Clear last_scheduled_unit_distance array.
27320 * config/s390/s390.md: Include 2964.md.
27321
27322 2016-02-18 Jakub Jelinek <jakub@redhat.com>
27323
27324 PR target/69671
27325 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
27326 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
27327 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
27328 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
27329 *avx512f_<code>v8div16qi2_mask_1): New insns.
27330
27331 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
27332
27333 PR target/68404
27334 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
27335 2016-02-09 change.
27336
27337 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
27338 earlyclobber from target. Use wF constraint for fused memory
27339 address.
27340 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
27341
27342 2016-02-18 Jakub Jelinek <jakub@redhat.com>
27343 Martin Liska <mliska@suse.cz>
27344
27345 PR sanitizer/69863
27346 * cfgexpand.c (asan_sanitize_stack_p): New function.
27347 (partition_stack_vars): Use the function.
27348 (expand_stack_vars): Likewise.
27349 (defer_stack_allocation): Likewise.
27350 (expand_used_vars): Likewise.
27351
27352 2016-02-18 Richard Biener <rguenther@suse.de>
27353
27354 PR middle-end/69553
27355 * fold-const.c (operand_equal_p): Properly compare offsets for
27356 IMAGPART_EXPR and ARRAY_REF.
27357
27358 2016-02-18 Nick Clifton <nickc@redhat.com>
27359
27360 PR target/62254
27361 PR target/69610
27362 * config/arm/arm.c (arm_option_override_internal): Disable
27363 interworking if the target does not support thumb instructions.
27364 (arm_reload_in_hi): Handle the case where a register to register
27365 move needs reloading because there is no simple pattern to handle
27366 it.
27367 (arm_reload_out_hi): Likewise.
27368
27369 2016-02-18 Richard Biener <rguenther@suse.de>
27370
27371 PR middle-end/69854
27372 * match.pd: Don't use fold_binary or fold_unary for folding
27373 constants.
27374
27375 2016-02-17 Jakub Jelinek <jakub@redhat.com>
27376
27377 PR c++/69850
27378 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
27379 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
27380 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
27381 warn on gimple_no_warning_p statements.
27382
27383 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
27384
27385 * doc/extend.texi (C++ Attributes): Correct description of
27386 warn_unused type attribute.
27387
27388 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27389
27390 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
27391 correct instruction.
27392
27393 2016-02-17 Richard Biener <rguenther@suse.de>
27394
27395 PR rtl-optimization/69609
27396 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
27397 (find_traces_1_round): When ending a trace update cached priority
27398 of successors.
27399 (bb_to_key): Use cached priority when available.
27400 (copy_bb): Initialize cached priority.
27401 (reorder_basic_blocks_software_trace_cache): Likewise.
27402
27403 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27404
27405 PR target/69161
27406 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
27407 New predicate.
27408 (aarch64_comparison_operator): Break overly long line into two.
27409 (aarch64_comparison_operation): Likewise.
27410 * config/aarch64/aarch64.md (cstorecc4): Use
27411 aarch64_comparison_operator_mode instead of
27412 aarch64_comparison_operator.
27413 (cstore<mode>4): Likewise.
27414 (aarch64_cstore<mode>): Likewise.
27415 (*cstoresi_insn_uxtw): Likewise.
27416 (cstore<mode>_neg): Likewise.
27417 (*cstoresi_neg_uxtw): Likewise.
27418
27419 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27420
27421 PR target/69161
27422 * config/arm/predicates.md (arm_comparison_operator_mode):
27423 New predicate.
27424 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
27425 instead of arm_comparison_operator.
27426 (*mov_negscc): Likewise.
27427 (*mov_notscc): Likewise.
27428 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
27429 (*thumb2_mov_negscc): Likewise.
27430 (*thumb2_mov_negscc_strict_it): Likewise.
27431 (*thumb2_mov_notscc): Likewise.
27432 (*thumb2_mov_notscc_strict_it): Likewise.
27433
27434 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
27435
27436 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
27437 Add missing return.
27438
27439 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
27440
27441 * config/visium/visium.c (machine_libfunc_index): New enum.
27442 (machine_libfuncs): New structure.
27443 (visium_libfuncs): New static variable.
27444 (TARGET_INIT_LIBFUNCS): Define to...
27445 (visium_init_libfuncs): ...this. New function.
27446 (expand_block_move_4): Use the appropriate libfunc.
27447 (expand_block_move_2): Likewise.
27448 (expand_block_move_1): Likewise.
27449 (expand_block_set_4): Likewise.
27450 (expand_block_set_2): Likewise.
27451 (expand_block_set_1): Likewise.
27452 (visium_trampoline_init): Likewise.
27453
27454 2016-02-17 Nick Clifton <nickc@redhat.com>
27455
27456 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
27457 TI's devices.csv file as of March 2016.
27458
27459 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
27460
27461 PR Target/48344
27462 * opts-global.c (handle_common_deferred_options): Introduce and
27463 initialize two global variables to remember command-line options
27464 specifying a stack-limiting register.
27465 * opts.h: Add extern declarations of the two new global variables.
27466 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
27467 variable based on the values of the two new global variables.
27468
27469 2016-02-16 Jakub Jelinek <jakub@redhat.com>
27470
27471 PR c/69835
27472 * common.opt (Wnonnull-compare): New warning.
27473 * doc/invoke.texi (-Wnonnull): Remove text about comparison
27474 of arguments against NULL.
27475 (-Wnonnull-compare): Document.
27476 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
27477 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
27478 * passes.def (pass_warn_nonnull_compare): Add.
27479 * gimple-ssa-nonnull-compare.c: New file.
27480
27481 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
27482
27483 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
27484 AARCH64_EXTRA_TUNE_RECIP_SQRT.
27485
27486 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
27487
27488 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
27489 reciprocal sqrt for -mlow-precision-recip-sqrt.
27490
27491 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
27492 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27493
27494 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
27495 always use lane loads to construct non-constant vectors.
27496
27497 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
27498
27499 * config/aarch64/aarch64.md
27500 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
27501 constraints for operand 3.
27502 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
27503
27504 2016-02-16 Jakub Jelinek <jakub@redhat.com>
27505 Richard Biener <rguenther@suse.de>
27506
27507 PR tree-optimization/69820
27508 * tree-vect-patterns.c (type_conversion_p): Return false if
27509 *orig_type is unsigned single precision or boolean.
27510 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
27511 Formatting fix.
27512
27513 2016-02-16 Jakub Jelinek <jakub@redhat.com>
27514
27515 PR rtl-optimization/69764
27516 PR rtl-optimization/69771
27517 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
27518 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
27519
27520 2016-02-16 Richard Biener <rguenther@suse.de>
27521
27522 PR tree-optimization/69776
27523 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
27524 sets from caller.
27525 (indirect_refs_may_alias_p): Likewise.
27526 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
27527 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
27528 according to tbaa_p.
27529 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
27530 (optimize_stmt): For redundant store discovery do not allow tbaa.
27531
27532 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
27533
27534 PR tree-optimization/69714
27535 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
27536 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
27537
27538 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
27539
27540 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
27541 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
27542 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
27543 * config/arc/arc.c (arc_init): Check FPU options.
27544 (get_arc_condition_code): Handle new CC_FPU* modes.
27545 (arc_select_cc_mode): Likewise.
27546 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
27547 register pair only. Allow access for ARCv2 accumulator.
27548 (gen_compare_reg): Whenever we have FPU support use FPU compare
27549 instructions.
27550 (arc_reorg): Don't generate brcc insns when FPU compare
27551 instructions are involved.
27552 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
27553 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
27554 floating point emulation.
27555 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
27556 (REVERSE_CONDITION): Add new CC_FPU* modes.
27557 (TARGET_FP_SP_BASE): Define.
27558 (TARGET_FP_DP_BASE): Likewise.
27559 (TARGET_FP_SP_FUSED): Likewise.
27560 (TARGET_FP_DP_FUSED): Likewise.
27561 (TARGET_FP_SP_CONV): Likewise.
27562 (TARGET_FP_DP_CONV): Likewise.
27563 (TARGET_FP_SP_SQRT): Likewise.
27564 (TARGET_FP_DP_SQRT): Likewise.
27565 (TARGET_FP_DP_AX): Likewise.
27566 * config/arc/arc.md (ARCV2_ACC): New constant.
27567 (type): New fpu type attribute.
27568 (SDF): Conditional iterator.
27569 (cstore<mode>, cbranch<mode>): Change expand condition.
27570 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
27571 handles FPU/FPX cases as well.
27572 * config/arc/arc.opt (mfpu): New option.
27573 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
27574 Renamed.
27575 (adddf3, muldf3, subdf3): Removed.
27576 * config/arc/predicates.md (proper_comparison_operator): Recognize
27577 CC_FPU* modes.
27578 * config/arc/fpu.md: New file.
27579 * doc/invoke.texi (ARC Options): Document mfpu option.
27580
27581 2016-02-16 Richard Biener <rguenther@suse.de>
27582
27583 PR rtl-optimization/69291
27584 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
27585 noce_operand_ok check.
27586
27587 2016-02-16 Tom de Vries <tom@codesourcery.com>
27588
27589 PR lto/67709
27590 * omp-low.c (simd_clone_create): Remove call to
27591 symtab->call_cgraph_insertion_hooks.
27592
27593 2016-02-16 Jakub Jelinek <jakub@redhat.com>
27594
27595 PR tree-optimization/69802
27596 * tree-ssa-reassoc.c (update_range_test): If op is
27597 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
27598 op == 1 test of precision 1 integral op, otherwise handle
27599 that case as op itself. Fix up formatting.
27600 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
27601 up formatting.
27602
27603 2016-02-16 Richard Biener <rguenther@suse.de>
27604
27605 PR tree-optimization/69586
27606 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
27607 types for conversion sources.
27608
27609 2016-02-16 Richard Biener <rguenther@suse.de>
27610
27611 PR middle-end/69801
27612 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
27613 mask OEP_ADDRESS_OF.
27614
27615 2016-02-16 Alan Modra <amodra@gmail.com>
27616
27617 PR target/68973
27618 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
27619 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
27620 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
27621 (p8_mtvsrwz): New.
27622 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
27623 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
27624 (p8_fmrgow_<mode>): Likewise.
27625 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
27626 changes.
27627 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
27628 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
27629 to use movdi_internal64. Remove op0_di.
27630 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
27631
27632 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
27633
27634 Add support for the FCCMP insn types
27635
27636 * config/aarch64/aarch64.md (fccmp): Change insn type.
27637 (fccmpe): Likewise.
27638 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
27639 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
27640 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
27641 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
27642 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
27643 * config/arm/types.md (fccmps): Add new insn type.
27644 (fccmpd): Likewise.
27645
27646 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
27647
27648 * alias.c (get_alias_set): Fix a typo in comment.
27649
27650 2016-02-15 Richard Biener <rguenther@suse.de>
27651
27652 PR tree-optimization/69595
27653 * match.pd: Complete range test simplification to true.
27654
27655 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
27656
27657 PR rtl-optimization/69648
27658 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
27659 pic_offset_table_rtx.
27660
27661 PR rtl-optimization/69752
27662 * ira.c (update_equiv_regs): When looking for more than a single SET,
27663 also take other side effects into account.
27664
27665 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
27666
27667 * config/s390/s390.c (s390_function_profiler): Add a new sequence
27668 for z900+ CPUs in 31-bit mode.
27669
27670 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
27671
27672 * common/config/s390/s390-common.c (s390_supports_split_stack):
27673 New function.
27674 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
27675 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
27676 * config/s390/s390.c (struct machine_function): New field
27677 split_stack_varargs_pointer.
27678 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
27679 in s390_emit_prologue.
27680 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
27681 vararg pointer.
27682 (morestack_ref): New global.
27683 (SPLIT_STACK_AVAILABLE): New macro.
27684 (s390_expand_split_stack_prologue): New function.
27685 (s390_live_on_entry): New function.
27686 (s390_va_start): Use split-stack vararg pointer if appropriate.
27687 (s390_asm_file_end): Emit the split-stack note sections.
27688 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
27689 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
27690 (UNSPECV_SPLIT_STACK_CALL): New unspec.
27691 (UNSPECV_SPLIT_STACK_DATA): New unspec.
27692 (split_stack_prologue): New expand.
27693 (split_stack_space_check): New expand.
27694 (split_stack_data): New insn.
27695 (split_stack_call): New expand.
27696 (split_stack_call_*): New insn.
27697 (split_stack_cond_call): New expand.
27698 (split_stack_cond_call_*): New insn.
27699
27700 2016-02-15 Richard Biener <rguenther@suse.de>
27701
27702 PR tree-optimization/69783
27703 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
27704 Add trivially correct cases.
27705
27706 2016-02-15 Tom de Vries <tom@codesourcery.com>
27707
27708 PR lto/69655
27709 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
27710 do_force_output.
27711 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
27712
27713 2016-02-15 Richard Biener <rguenther@suse.de>
27714
27715 PR tree-optimization/69776
27716 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
27717 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
27718 indicate whether we can use TBAA to disambiguate against stores.
27719 Use alias-set zero if not.
27720 (visit_reference_op_store): Do not use TBAA when looking up
27721 redundant stores.
27722 * tree-ssa-pre.c (compute_avail): Use TBAA here.
27723 (eliminate_dom_walker::before_dom_children): But not when looking
27724 up redundant stores.
27725
27726 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
27727
27728 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
27729
27730 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
27731
27732 * config/i386/znver1.md
27733 (znver1_pop, znver1_pop_mem,
27734 znver1_load_imov_double_store,
27735 znver1_load_imov_direct_store,
27736 znver1_load_imov_direct_load,
27737 znver1_load_imov_double_load): Add new.
27738 (znver1_insn, znver1_insn_load): Add icmov type.
27739 (znver1_sseavx_fma,
27740 znver1_sseavx_fma_load,
27741 znver1_avx256_fma,
27742 znver1_avx256_fma_load): Fix pipe usage.
27743
27744 2016-02-14 Alan Modra <amodra@gmail.com>
27745
27746 PR target/68973
27747 * reload.c (find_reloads_address_1): For pre/post-inc/dec
27748 with an invalid hard reg, reload just the reg not the entire
27749 pre/post-inc/dec address expression.
27750
27751 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
27752
27753 PR target/67260
27754 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
27755 fixed R1_REG scratch reg.
27756 (sibcall_value_pcrel_fdpic): Likewise.
27757
27758 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
27759
27760 PR target/67636
27761 PR target/64345
27762 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
27763
27764 2016-02-12 Walter Lee <walt@tilera.com>
27765
27766 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
27767 * config/tilegx/t-tilegx: Likewise.
27768
27769 2016-02-12 David Malcolm <dmalcolm@redhat.com>
27770
27771 PR other/69554
27772 * diagnostic-show-locus.c (struct line_span): New struct.
27773 (layout::get_first_line): Delete.
27774 (layout::get_last_line): Delete.
27775 (layout::get_num_line_spans): New member function.
27776 (layout::get_line_span): Likewise.
27777 (layout::print_heading_for_line_span_index_p): Likewise.
27778 (layout::get_expanded_location): Likewise.
27779 (layout::calculate_line_spans): Likewise.
27780 (layout::m_first_line): Delete.
27781 (layout::m_last_line): Delete.
27782 (layout::m_line_spans): New field.
27783 (layout::layout): Update comment. Replace m_first_line and
27784 m_last_line with m_line_spans, replacing their initialization
27785 with a call to calculate_line_spans.
27786 (diagnostic_show_locus): When printing source lines and
27787 annotations, rather than looping over a single span
27788 of lines, instead loop over each line_span within
27789 the layout, with an inner loop over the lines within them.
27790 Call the context's start_span callback when changing line spans.
27791 * diagnostic.c (diagnostic_initialize): Initialize start_span.
27792 (diagnostic_build_prefix): Break out the building of the location
27793 part of the string into...
27794 (diagnostic_get_location_text): ...this new function, rewriting
27795 it from nested ternary expressions to a sequence of "if"
27796 statements.
27797 (default_diagnostic_start_span_fn): New function.
27798 * diagnostic.h (diagnostic_start_span_fn): New typedef.
27799 (diagnostic_context::start_span): New field.
27800 (default_diagnostic_start_span_fn): New prototype.
27801
27802 2016-02-12 David Malcolm <dmalcolm@redhat.com>
27803
27804 PR driver/69779
27805 * gcc.c (driver::finalize): Fix cleanup of "specs".
27806
27807 2016-02-12 David Malcolm <dmalcolm@redhat.com>
27808
27809 PR driver/69265
27810 PR driver/69453
27811 * gcc.c (driver::driver): Initialize m_option_suggestions.
27812 (driver::~driver): Clean up m_option_suggestions.
27813 (suggest_option): Convert to...
27814 (driver::suggest_option): ...this, and split out into
27815 driver::build_option_suggestions and find_closest_string.
27816 (driver::build_option_suggestions): New function, from
27817 first half of suggest_option. Special-case
27818 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
27819 the sanitizer_opts array. For options of enum types, add the
27820 various enum values to the candidate strings.
27821 (driver::handle_unrecognized_options): Remove "const".
27822 * gcc.h (driver::handle_unrecognized_options): Likewise.
27823 (driver::build_option_suggestions): New decl.
27824 (driver::suggest_option): New decl.
27825 (driver::m_option_suggestions): New field.
27826 * opts-common.c (add_misspelling_candidates): New function.
27827 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
27828 and make non-static.
27829 * opts.h (sanitizer_opts): New array decl.
27830 (add_misspelling_candidates): New function decl.
27831 * spellcheck.c (find_closest_string): New function.
27832 * spellcheck.h (find_closest_string): New function decl.
27833
27834 2016-02-12 Jakub Jelinek <jakub@redhat.com>
27835
27836 PR rtl-optimization/69764
27837 PR rtl-optimization/69771
27838 * optabs.c (expand_binop_directly): For shift_optab_p, force
27839 convert_modes with VOIDmode if xop1 has VOIDmode.
27840
27841 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
27842
27843 PR target/69729
27844 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
27845 to correctly determine instrumentation thunks.
27846
27847 2016-02-12 Jakub Jelinek <jakub@redhat.com>
27848
27849 PR ipa/69241
27850 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
27851 type by reference, force lhs on the call.
27852
27853 PR ipa/68672
27854 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
27855 Compute retval and retbnd early in all cases if split_part_return_p
27856 and return_bb is not EXIT. Remove all clobber stmts and reset
27857 all debug stmts that refer to SSA_NAMEs defined in split part,
27858 except if it is retval, in that case replace the old retval with the
27859 lhs of the call to the split part.
27860
27861 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
27862
27863 revert:
27864 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
27865
27866 PR middle-end/66726
27867 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
27868 whose result is used in PHI.
27869 (maybe_optimize_range_tests): Likewise.
27870 (final_range_test_p): Likweise.
27871
27872 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
27873
27874 PR middle-end/66726
27875 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
27876 whose result is used in PHI.
27877 (maybe_optimize_range_tests): Likewise.
27878 (final_range_test_p): Likweise.
27879
27880 2016-02-12 Jakub Jelinek <jakub@redhat.com>
27881
27882 * cgraph.c: Spelling fixes - behaviour -> behavior and
27883 neighbour -> neighbor.
27884 * target.def: Likewise.
27885 * sel-sched.c: Likewise.
27886 * config/mips/mips.c: Likewise.
27887 * config/arc/arc.md: Likewise.
27888 * config/arm/cortex-a57.md: Likewise.
27889 * config/arm/arm.c: Likewise.
27890 * config/arm/neon.md: Likewise.
27891 * config/arm/arm-c.c: Likewise.
27892 * config/vms/vms-c.c: Likewise.
27893 * config/s390/s390.c: Likewise.
27894 * config/i386/znver1.md: Likewise.
27895 * config/i386/i386.c: Likewise.
27896 * config/ia64/hpux-unix2003.h: Likewise.
27897 * config/msp430/msp430.md: Likewise.
27898 * config/rx/rx.c: Likewise.
27899 * config/rx/rx.md: Likewise.
27900 * config/aarch64/aarch64-simd.md: Likewise.
27901 * config/aarch64/aarch64.c: Likewise.
27902 * config/nvptx/nvptx.c: Likewise.
27903 * config/bfin/bfin.c: Likewise.
27904 * config/cris/cris.opt: Likewise.
27905 * config/rs6000/rs6000.c: Likewise.
27906 * target.h: Likewise.
27907 * spellcheck.c: Likewise.
27908 * ira-build.c: Likewise.
27909 * tree-inline.c: Likewise.
27910 * builtins.c: Likewise.
27911 * lra-constraints.c: Likewise.
27912 * explow.c: Likewise.
27913 * hwint.h: Likewise.
27914 * targhooks.c: Likewise.
27915 * tree-vect-data-refs.c: Likewise.
27916 * expr.c: Likewise.
27917 * doc/tm.texi: Likewise.
27918 * doc/extend.texi: Likewise.
27919 * doc/install.texi: Likewise.
27920 * doc/md.texi: Likewise.
27921 * tree-ssa-tail-merge.c: Likewise.
27922 * sched-int.h: Likewise.
27923 * match.pd: Likewise.
27924 * sched-ebb.c: Likewise.
27925 * target.def (omit_struct_return_reg): Likewise.
27926 * gimple-ssa-isolate-paths.c: Likewise.
27927 (find_implicit_erroneous_behaviour): Renamed to...
27928 (find_implicit_erroneous_behavior): ... this.
27929 (find_explicit_erroneous_behaviour): Renamed to...
27930 (find_explicit_erroneous_behavior): ... this.
27931 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
27932
27933 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
27934
27935 PR rtl-optimization/64682
27936 PR rtl-optimization/69567
27937 PR rtl-optimization/69737
27938 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
27939 in I2 as well, just lose it.
27940
27941 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27942
27943 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
27944 New variable.
27945 (aarch64_last_printed_tune_string): Likewise.
27946 (aarch64_declare_function_name): Only output .arch assembler
27947 directive if it will be different from the previously output
27948 directive. Same for .tune comment but only if -dA is set.
27949 (aarch64_start_file): New function.
27950 (TARGET_ASM_FILE_START): Define.
27951
27952 2016-02-11 David Malcolm <dmalcolm@redhat.com>
27953
27954 PR plugins/69758
27955 * Makefile.in (PLUGIN_HEADERS): Add params.list.
27956
27957 2016-02-11 Jakub Jelinek <jakub@redhat.com>
27958
27959 PR target/65313
27960 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
27961 -Wmaybe-uninitialized warning.
27962
27963 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
27964
27965 PR target/69713
27966 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
27967
27968 2016-02-11 Richard Biener <rguenther@suse.de>
27969
27970 PR rtl-optimization/69291
27971 * ifcvt.c (noce_try_store_flag_constants): Do not allow
27972 subexpressions affected by changing the result.
27973
27974 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
27975
27976 PR target/69148
27977 * lra-constraints.c (curr_insn_transform): Find in/out operands
27978 for secondary memory moves. Update dups.
27979
27980 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
27981
27982 PR tree-optimization/69652
27983 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
27984 to nested loop, did source re-formatting, skip debug statements,
27985 add check on statement with volatile operand, remove dead scalar
27986 statements.
27987
27988 2016-02-10 Jakub Jelinek <jakub@redhat.com>
27989 Patrick Palka <ppalka@gcc.gnu.org>
27990
27991 PR ipa/69241
27992 PR c++/69649
27993 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
27994 calls if the return type is TREE_ADDRESSABLE.
27995 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
27996 * ipa-split.c (split_function): Fix doubled "we" in comment.
27997 Use void return type for the split part even if
27998 !split_point->split_part_set_retval.
27999
28000 2016-02-10 Bin Cheng <bin.cheng@arm.com>
28001
28002 PR tree-optimization/68021
28003 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
28004 when computing the value of biv cand by itself.
28005
28006 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
28007
28008 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
28009 (cortexa57_tunings): Likewise.
28010 (cortexa72_tunings): Likewise.
28011 (arch_macro_fusion_pair_p): Add support for AES fusion.
28012 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
28013 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
28014 Allow virtual registers before reload so early scheduling works.
28015 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
28016 correct latency and pipeline.
28017 (cortex_a57_crypto_complex): Likewise.
28018 (cortex_a57_crypto_xor): Likewise.
28019 (define_bypass): Add AES bypass.
28020
28021 2016-02-10 Richard Biener <rguenther@suse.de>
28022
28023 PR tree-optimization/69726
28024 * passes.def: Add DCE pass before late uninit.
28025 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
28026 really fixup if-conversions job.
28027
28028 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
28029
28030 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
28031 (arm_cortex_a57_tune): Likewise.
28032 (aarch_macro_fusion_pair_p): Add support for AES fusion.
28033 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
28034
28035 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
28036
28037 * timevar.def (TV_PHASE_DBGINFO): Delete.
28038 (TV_PHASE_CHECK_DBGINFO): Likewise.
28039 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
28040
28041 2016-02-10 Richard Biener <rguenther@suse.de>
28042
28043 PR tree-optimization/69719
28044 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
28045 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
28046
28047 2016-02-09 Andrew Pinski <apinski@cavium.com>
28048
28049 PR tree-opt/69282
28050 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
28051 get_vcond_mask_icode returns false.
28052
28053 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
28054
28055 PR target/68404
28056 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
28057 an ADDIS that adds a pointer to a large constant that sets the
28058 upper16 bits with a load operation.
28059
28060 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
28061
28062 PR target/68532
28063 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
28064 order.
28065 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
28066 endian.
28067 (vzipq_s16): Likewise.
28068 (vzipq_s32): Likewise.
28069 (vzipq_f32): Likewise.
28070 (vzipq_u8): Likewise.
28071 (vzipq_u16): Likewise.
28072 (vzipq_u32): Likewise.
28073 (vzipq_p8): Likewise.
28074 (vzipq_p16): Likewise.
28075
28076 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
28077
28078 PR target/68532
28079 * config/arm/arm.c (neon_endian_lane_map): New function.
28080 (neon_vector_pair_endian_lane_map): New function.
28081 (arm_evpc_neon_vuzp): Allow for big endian lane order.
28082 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
28083 endian.
28084 (vuzpq_s16): Likewise.
28085 (vuzpq_s32): Likewise.
28086 (vuzpq_f32): Likewise.
28087 (vuzpq_u8): Likewise.
28088 (vuzpq_u16): Likewise.
28089 (vuzpq_u32): Likewise.
28090 (vuzpq_p8): Likewise.
28091 (vuzpq_p16): Likewise.
28092
28093 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
28094
28095 PR target/69634
28096 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
28097 debug insns.
28098
28099 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
28100
28101 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
28102 truncate const_int operand 1 to QImode.
28103
28104 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
28105
28106 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
28107 corresponding to an abnormal edge.
28108
28109 2016-02-09 Tom de Vries <tom@codesourcery.com>
28110
28111 PR tree-optimization/69599
28112 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
28113 function.
28114 (find_func_aliases_for_builtin_call, find_func_clobbers)
28115 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
28116 partition.
28117
28118 2016-02-09 Richard Biener <rguenther@suse.de>
28119
28120 PR tree-optimization/69715
28121 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
28122 LHS on calls as non-rewritable.
28123
28124 2016-02-09 Tom de Vries <tom@codesourcery.com>
28125
28126 PR lto/69707
28127 * lto-wrapper.c (append_diag_options): New function.
28128 (compile_offload_image): Call append_diag_options.
28129
28130 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
28131
28132 PR other/69722
28133 * doc/extend.texi (Flag Output Operands): Correct sectioning.
28134 Minor copy-edit to fix verb tenses.
28135
28136 2016-02-08 Jakub Jelinek <jakub@redhat.com>
28137
28138 PR tree-optimization/69209
28139 * ipa-split.c (split_function): If split part is not
28140 returning retval, retval has gimple type but is not
28141 gimple value, force it into a SSA_NAME first.
28142
28143 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
28144
28145 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
28146 outdated section.
28147
28148 2016-02-08 Jason Merrill <jason@redhat.com>
28149
28150 PR c++/69631
28151 * convert.c (convert_to_integer_1): Check dofold on truncation
28152 distribution.
28153 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
28154 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
28155 Rename from *_nofold.
28156 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
28157 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
28158
28159 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
28160
28161 PR target/60410
28162 * tree.c (build_common_tree_nodes): Remove short_double argument.
28163 All callers changed.
28164 * tree.h (build_common_tree_nodes): Adjust declaration.
28165 * doc/invoke.texi (-fshort-double): Remove documentation.
28166 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
28167 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
28168 * lto-wrapper.c (merge_and_complain, append_compiler_options)
28169 (append_linker_options): Don't handle OPT_fshort_double.
28170
28171 PR rtl-optimization/68730
28172 * lra-remat.c (insn_to_cand_activation): New static variable.
28173 (lra_remat): Allocate and free it.
28174 (create_cand): New arg activation. Initialize a field in
28175 insn_to_cand_activation if it is nonnull.
28176 (create_cands): Pass the activation insn to create_cand when making
28177 a candidate involving an output reload. Reorganize code a little.
28178 (do_remat): Keep track of active status of candidates in a separate
28179 bitmap.
28180
28181 2016-02-08 Richard Biener <rguenther@suse.de>
28182
28183 PR tree-optimization/69719
28184 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
28185 Properly use absolute of the difference of the two offsets to
28186 compare or adjust the segment length.
28187
28188 2016-02-08 Richard Biener <rguenther@suse.de>
28189 Jeff Law <law@redhat.com>
28190
28191 PR target/68273
28192 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
28193 types for anonymous SSA names.
28194
28195 2016-02-08 Richard Biener <rguenther@suse.de>
28196
28197 PR rtl-optimization/69274
28198 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
28199
28200 2016-02-08 Jeff Law <law@redhat.com>
28201
28202 PR tree-optimization/65917
28203 * tree-ssa-dom.c (record_temporary_equivalences): Record both
28204 equivalences from if (x == y) style conditionals.
28205 (loop_depth_of_name): Remove.
28206 (record_equality): Remove loop depth check.
28207 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
28208 (const_and_copies::record_const_or_copy_raw): New member function.
28209 * tree-ssa-scopedtables.c
28210 (const_and_copies::record_const_or_copy_raw): New, factored out of
28211 (const_and_copies::record_const_or_copy): Call new member function.
28212
28213 2016-02-05 Jeff Law <law@redhat.com>
28214
28215 PR tree-optimization/68541
28216 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
28217 (count_stmts_in_block): New function.
28218 (poor_ifcvt_candidate_code): Likewise.
28219 (is_feasible_trace): Add some heuristics to determine when path
28220 splitting is profitable.
28221 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
28222 is a diamond with a single exit.
28223
28224 2016-02-05 Martin Sebor <msebor@redhat.com>
28225
28226 PR c++/69662
28227 * doc/invoke.texi: Update -Wplacement-new to take an optional
28228 argument.
28229
28230 2016-02-06 Richard Henderson <rth@redhat.com>
28231
28232 PR c/69643
28233 * tree.c (tree_nop_conversion_p): Do not strip casts into or
28234 out of non-standard address spaces.
28235
28236 2016-02-05 Jakub Jelinek <jakub@redhat.com>
28237
28238 PR rtl-optimization/69691
28239 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
28240
28241 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
28242
28243 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
28244 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
28245 (*ieee128_mfvsrd_64bit): Likewise.
28246 (*ieee128_mfvsrd_32bit): Likewise.
28247
28248 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
28249
28250 PR target/69369
28251 Revert r232560:
28252 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
28253
28254 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
28255 instrumented_version.
28256
28257 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
28258
28259 * doc/invoke.texi (Optimize Options): In table of --param options
28260 rename second occurrence of tracer-min-branch-ratio to
28261 tracer-min-branch-probability, rename
28262 tracer-min-branch-ratio-feedback to
28263 tracer-min-branch-probability-feedback and clarify description,
28264 rename sched-spec-state-edge-prob-cutoff to
28265 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
28266 to selsched-insns-to-rename, rename lto-minpartition to
28267 lto-min-partition, delete reorder-blocks-duplicate and
28268 reorder-blocks-duplicate-feedback.
28269
28270 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28271
28272 * config/s390/s390.c (s390_register_info_set_ranges): Remove
28273 superfluous loops.
28274
28275 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
28276
28277 * doc/extend.texi: S/390: Correct some typos.
28278
28279 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28280
28281 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
28282
28283 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28284
28285 PR target/69625
28286 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
28287 (s390_register_info_gprtofpr): Use new macros above.
28288 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
28289 its name.
28290 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
28291 its name. Adjust restore and save gpr ranges.
28292 (s390_register_info_set_ranges): New function.
28293 (s390_register_info): Use new macros above. Call
28294 s390_register_info_set_ranges.
28295 (s390_optimize_register_info): Likewise.
28296 (s390_hard_regno_rename_ok): Use new macros.
28297 (s390_hard_regno_scratch_ok): Likewise.
28298 (s390_emit_epilogue): Likewise.
28299 (s390_can_use_return_insn): Likewise.
28300 (s390_optimize_prologue): Likewise.
28301 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
28302
28303 2016-02-05 Jakub Jelinek <jakub@redhat.com>
28304
28305 PR bootstrap/69677
28306 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
28307 alignment fixes.
28308 (ix86_option_override_internal): Disable TARGET_STV even for
28309 -m{incoming,preferred}-stack-boundary=3.
28310
28311 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28312
28313 * config.gcc: Mark deprecated rtems targets as obsolete.
28314
28315 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
28316
28317 PR rtl-optimization/64682
28318 PR rtl-optimization/69567
28319 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
28320 before I2 only if the register is both used and set in I2.
28321
28322 2016-02-04 DJ Delorie <dj@redhat.com>
28323
28324 * config/msp430/msp430.c (msp430_start_function): Add function type.
28325
28326 2016-02-04 Jakub Jelinek <jakub@redhat.com>
28327
28328 PR fortran/69368
28329 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
28330
28331 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
28332
28333 PR rtl-optimization/69577
28334 Revert:
28335 2015-10-29 Richard Henderson <rth@redhat.com>
28336
28337 PR target/68124
28338 PR rtl-opt/67609
28339 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
28340 sse check to the exact conditions of PR 67609.
28341
28342 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
28343
28344 PR target/69667
28345 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
28346 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
28347 not allowed into the traditional Altivec registers.
28348 (movtd_64bit_nodm): Likewise.
28349 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
28350
28351 2016-02-04 David Malcolm <dmalcolm@redhat.com>
28352
28353 * config/aarch64/cortex-a57-fma-steering.c
28354 (aarch64_register_fma_steering): Remove "static" from arguments
28355 to register_pass.
28356
28357 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
28358
28359 PR target/69619
28360 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
28361 twice when complex.
28362
28363 2016-02-04 Mike Frysinger <vapier@gentoo.org>
28364
28365 * doc/invoke.texi: Delete -mno-fma4.
28366
28367 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
28368
28369 PR rtl-optimization/69577
28370 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
28371 (find_subregs_of_mode): Update accordingly. Iterate over partial
28372 definitions.
28373
28374 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
28375
28376 * config/arm/arm-protos.h (neon_reinterpret): Remove.
28377 * config/arm/arm.c (neon_reinterpret): Remove.
28378 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
28379 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
28380 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
28381 vreinterpretti): Remove.
28382 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
28383 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
28384 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
28385 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
28386 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
28387 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
28388 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
28389 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
28390 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
28391 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
28392 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
28393 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
28394 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
28395 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
28396 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
28397 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
28398 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
28399 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
28400 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
28401 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
28402 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
28403 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
28404 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
28405 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
28406 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
28407 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
28408 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
28409 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
28410 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
28411 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
28412 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
28413 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
28414 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
28415 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
28416 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
28417 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
28418 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
28419 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
28420 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
28421 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
28422 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
28423 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
28424 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
28425 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
28426 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
28427 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
28428 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
28429 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
28430 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
28431 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
28432 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
28433 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
28434 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
28435 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
28436 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
28437 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
28438 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
28439 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
28440 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
28441 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
28442 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
28443 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
28444 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
28445 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
28446 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
28447 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
28448 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
28449 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
28450 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
28451 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
28452 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
28453 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
28454 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
28455 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
28456 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
28457 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
28458 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
28459 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
28460 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
28461 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
28462 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
28463 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
28464 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
28465 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
28466 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
28467 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
28468 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
28469 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
28470 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
28471 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
28472 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
28473 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
28474 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
28475 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
28476 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
28477 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
28478 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
28479 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
28480 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
28481 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
28482 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
28483 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
28484 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
28485
28486 2016-02-04 Martin Liska <mliska@suse.cz>
28487
28488 PR sanitizer/69276
28489 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
28490 that are gimple_store_p.
28491 (maybe_instrument_call): Likewise.
28492
28493 2016-02-04 Bin Cheng <bin.cheng@arm.com>
28494
28495 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
28496 register scaling out of memory reference and comment why.
28497
28498 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28499
28500 PR target/65932
28501 PR target/67714
28502 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
28503 folding the source of a SET.
28504
28505 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28506
28507 PR target/65932
28508 PR target/67714
28509 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
28510 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
28511
28512 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
28513
28514 PR target/65932
28515 PR target/67714
28516 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
28517 HImode.
28518
28519 2016-02-04 Christian Bruel <christian.bruel@st.com>
28520
28521 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
28522 * config/arm/arm.c (arm_set_current_function): Likewise.
28523
28524 2016-02-04 Jakub Jelinek <jakub@redhat.com>
28525 Ilya Enkovich <enkovich.gnu@gmail.com>
28526 H.J. Lu <hongjiu.lu@intel.com>
28527
28528 PR target/69454
28529 * config/i386/i386.c (convert_scalars_to_vector): Remove
28530 stack alignment fixes.
28531 (ix86_option_override_internal): Disable TARGET_STV if stack
28532 might not be aligned enough.
28533 (ix86_minimum_alignment): Assert that TARGET_STV is false.
28534
28535 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
28536
28537 * config/i386/x86-tune.def: Disable default prefetching
28538 for -march=znver1.
28539
28540 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
28541 Vladimir Makarov <vmakarov@redhat.com>
28542
28543 PR target/69461
28544 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
28545 in validating fused toc addresses.
28546
28547 2016-02-03 Jakub Jelinek <jakub@redhat.com>
28548
28549 PR c/69627
28550 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
28551 range->m_caret fields if range->m_show_caret_p is false.
28552
28553 PR target/69644
28554 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
28555 Force oldval into register if it does not satisfy reg_or_short_operand
28556 predicate. Fix up formatting.
28557
28558 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
28559 Alexandre Oliva <aoliva@redhat.com>
28560
28561 PR target/69461
28562 * lra-constraints.c (simplify_operand_subreg): Check additionally
28563 address validity after potential reloading.
28564 (process_address_1): Check insns validity. In case of failure do
28565 nothing.
28566
28567 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
28568
28569 PR target/69118
28570 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
28571 Fix target.
28572
28573 2016-02-02 Jakub Jelinek <jakub@redhat.com>
28574
28575 * wide-int.cc (canonize_uhwi): New function.
28576 (wi::divmod_internal): Use it.
28577
28578 2016-02-02 James Norris <jnorris@codesourcery.com>
28579
28580 * gimplify.c (omp_notice_variable): Add usage check.
28581
28582 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
28583
28584 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
28585 like LE, GE, LT, GT when emitting relational operator.
28586
28587 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
28588
28589 * ira-costs.c (find_costs_and_classes): Add extra argument.
28590 * target.def (ira_change_pseudo_allocno_class): Add parameter.
28591 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
28592 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
28593 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
28594 Add best_class parameter, and return it if not ALL_REGS.
28595 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
28596 Add parameter.
28597 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
28598 Update target hook.
28599
28600 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
28601
28602 * config/aarch64/aarch64.c
28603 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
28604 (aarch64_ira_change_pseudo_allocno_class): New function.
28605
28606 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
28607
28608 PR target/67032
28609 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
28610
28611 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
28612
28613 * config/avr/avr.c (avr_option_override): Set
28614 PARAM_ALLOW_STORE_DATA_RACES to 1.
28615
28616 2016-02-02 Richard Biener <rguenther@suse.de>
28617
28618 PR tree-optimization/69595
28619 * match.pd: Add range test simplifications to true/false.
28620
28621 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
28622
28623 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
28624 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
28625 instead.
28626
28627 2016-02-02 Richard Biener <rguenther@suse.de>
28628
28629 PR tree-optimization/69606
28630 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
28631 info on the result before moving a stmt.
28632
28633 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
28634
28635 PR middle-end/68542
28636 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
28637 branch with vector comparison.
28638 * config/i386/sse.md (VI48_AVX): New mode iterator.
28639 (define_expand "cbranch<mode>4): Add support for conditional branch
28640 with vector comparison.
28641 * tree-vect-loop.c (optimize_mask_stores): New function.
28642 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
28643 has_mask_store field of vect_info.
28644 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
28645 vectorized loops having masked stores after vec_info destroy.
28646 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
28647 correspondent macros.
28648 (optimize_mask_stores): Add prototype.
28649
28650 2016-02-02 Alan Modra <amodra@gmail.com>
28651
28652 PR target/69548
28653 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
28654 allow subregs.
28655
28656 2016-02-02 Alan Modra <amodra@gmail.com>
28657
28658 PR target/68662
28659 * config/rs6000/rs6000.c (need_toc_init): New var, set it
28660 whenever toc_label_name used.
28661 (rs6000_file_start): Don't set up toc section here,
28662 (rs6000_output_function_epilogue): do so here instead,
28663 (rs6000_xcoff_file_start): and here.
28664 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
28665 (load_toc_aix_di): Likewise.
28666
28667 2016-02-01 Jakub Jelinek <jakub@redhat.com>
28668
28669 PR rtl-optimization/69592
28670 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
28671 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
28672 (num_sign_bit_copies_binary_arith_p): New inline function.
28673 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
28674
28675 2016-02-01 Jeff Law <law@redhat.com>
28676
28677 PR tree-optimization/69580
28678 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
28679 * tree-ssa-threadbackward.c
28680 (fsm_find_control_statement_thread_paths): Do not try to walk
28681 through large PHI nodes.
28682
28683 2016-02-01 Jakub Jelinek <jakub@redhat.com>
28684
28685 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
28686 when count is incremented above limit, don't analyze further
28687 insns afterwards.
28688
28689 * omp-low.c (oacc_parse_default_dims): Avoid
28690 -Wsign-compare warning, make sure value fits into int
28691 rather than just unsigned int.
28692
28693 2016-02-01 Bin Cheng <bin.cheng@arm.com>
28694
28695 PR tree-optimization/67921
28696 * fold-const.c (split_tree): New parameters. Convert pointer
28697 type variable part to proper type before negating.
28698 (fold_binary_loc): Pass new arguments to split_tree.
28699
28700 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
28701
28702 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
28703 (nvptx_goacc_validate_dims): Extend to handle global defaults.
28704 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
28705 * doc/tm.texti: Rebuilt.
28706 * doc/invoke.texi (fopenacc-dim): Document.
28707 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
28708 (append_compiler_options): Likewise.
28709 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
28710 (oacc_parse_default_dims): New.
28711 (oacc_validate_dims): Add USED arg. Select non-unity default when
28712 possible.
28713 (oacc_loop_fixed_partitions): Return mask of used partitions.
28714 (oacc_loop_auto_partitions): Emit dump info.
28715 (oacc_loop_partition): Return mask of used partitions.
28716 (execute_oacc_device_lower): Parse default dimension arg. Adjust
28717 loop partitioning and validation calls.
28718
28719 2016-02-01 Richard Biener <rguenther@suse.de>
28720
28721 PR middle-end/69556
28722 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
28723
28724 2016-02-01 Richard Biener <rguenther@suse.de>
28725
28726 PR tree-optimization/69574
28727 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
28728 of asserting return chrec_dont_know.
28729
28730 2016-02-01 Martin Liska <mliska@suse.cz>
28731
28732 * mem-stats-traits.h: Add copyright header.
28733 * mem-stats.h: Likewise.
28734
28735 2016-02-01 Richard Biener <rguenther@suse.de>
28736
28737 PR tree-optimization/69579
28738 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
28739 Do not propagate through abnormal PHI results.
28740
28741 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
28742
28743 * postreload.c (reload_cse_simplify): Remove dead code.
28744
28745 2016-02-01 Jakub Jelinek <jakub@redhat.com>
28746
28747 PR rtl-optimization/69570
28748 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
28749 if there is more than one set, not if there is a single set.
28750
28751 2016-02-01 Richard Henderson <rth@redhat.com>
28752
28753 PR rtl-opt/69535
28754 * combine.c (make_compound_operation): When looking through a
28755 subreg, make sure to re-extend to the width of the outer mode.
28756
28757 2016-01-30 Jakub Jelinek <jakub@redhat.com>
28758
28759 PR tree-optimization/69546
28760 * wide-int.cc (wi::divmod_internal): For unsigned division
28761 where both operands fit into uhwi, if o1 is 1 and o0 has
28762 msb set, if divident_prec is larger than bits per hwi,
28763 clear another quotient word and return 2 instead of 1.
28764 Similarly for remainder with msb in HWI set, if dividend_prec
28765 is larger than bits per hwi.
28766
28767 2016-01-29 Martin Jambor <mjambor@suse.cz>
28768
28769 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
28770 Use short lowercase names.
28771 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
28772 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
28773 acq_rel one. Protect warning agains segfaults if
28774 get_memory_order_name returns NULL.
28775 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
28776 with release semantics. Do not warn if get_memory_order already did.
28777 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
28778 semantics. Fix check for relaxed or acquire semantics. Do not warn
28779 if get_memory_order already did.
28780
28781 2016-01-29 Sebastian Pop <s.pop@samsung.com>
28782
28783 * doc/install.texi: Document that isl-0.16 is supported.
28784
28785 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
28786
28787 PR target/69299
28788 * config/i386/constraints.md (Bm): Describe as special memory
28789 constraint.
28790 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
28791 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
28792 * genpreds.c (struct constraint_data): Add is_special_memory.
28793 (have_special_memory_constraints, special_memory_start): New
28794 static vars.
28795 (special_memory_end): Ditto.
28796 (add_constraint): Add new arg is_special_memory. Add code to
28797 process its true value. Update have_special_memory_constraints.
28798 (process_define_constraint): Pass the new arg.
28799 (process_define_register_constraint): Ditto.
28800 (choose_enum_order): Process special memory.
28801 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
28802 function insn_extra_special_memory_constraint.
28803 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
28804 * gensupport.c (process_rtx): Process
28805 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
28806 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
28807 * ira-lives.c (single_reg_class): Use
28808 insn_extra_special_memory_constraint.
28809 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
28810 * lra-constraints.c (process_alt_operands): Ditto.
28811 (curr_insn_transform): Use insn_extra_special_memory_constraint.
28812 * recog.c (asm_operand_ok, preprocess_constraints): Process
28813 CT_SPECIAL_MEMORY.
28814 * reload.c (find_reloads): Ditto.
28815 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
28816 * stmt.c (parse_input_constraint): Use
28817 insn_extra_special_memory_constraint.
28818
28819 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
28820
28821 PR target/69530
28822 * lra-splill.c (lra_final_code_change): Revert r229087 by
28823 removing all sub-registers.
28824
28825 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
28826
28827 PR target/65604
28828 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
28829
28830 2016-01-29 Jakub Jelinek <jakub@redhat.com>
28831
28832 PR target/69551
28833 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
28834 SSE1, copy target into the temporary reg first before recursing
28835 on it.
28836
28837 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
28838
28839 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
28840 with vm.
28841
28842 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
28843
28844 * ginclude/stdarg.h: Test __cplusplus instead of
28845 __GXX_EXPERIMENTAL_CXX0X__.
28846
28847 2016-01-29 Richard Biener <rguenther@suse.de>
28848
28849 PR tree-optimization/69547
28850 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
28851 Do not mark clobbers necessary.
28852 (mark_all_reaching_defs_necessary_1): Likewise.
28853
28854 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
28855
28856 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
28857 declaration name with %qs and print it in both error messages.
28858 Also fix indentation.
28859
28860 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
28861
28862 PR other/69006
28863 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
28864 trailing blank line from error message.
28865
28866 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
28867
28868 PR c++/69462
28869 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
28870 for C++-11.
28871
28872 2016-01-29 Richard Biener <rguenther@suse.de>
28873
28874 PR middle-end/69537
28875 * match.pd: Allow all integral types when simplifying a
28876 widening or sign-changing conversion.
28877
28878 2016-01-28 Sebastian Pop <s.pop@samsung.com>
28879
28880 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
28881 back to setting codegen_error to fail codegen.
28882
28883 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
28884
28885 PR target/69459
28886 * config/i386/constraints.md (C): Only accept constant zero operand.
28887 (BC): New constraint.
28888 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
28889 instead of C constraint.
28890 * doc/md.texi (Machine Constraints): Update description
28891 of C constraint.
28892
28893 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
28894
28895 PR target/68400
28896 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
28897
28898 2016-01-28 Jakub Jelinek <jakub@redhat.com>
28899
28900 PR middle-end/69542
28901 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
28902 non-debug insns.
28903
28904 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
28905
28906 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
28907 branches if using guessed profile.
28908
28909 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
28910
28911 * graphite-optimize-isl.c (optimize_isl): Fix dump.
28912
28913 2016-01-28 Richard Henderson <rth@redhat.com>
28914
28915 PR target/69305
28916 * config/aarch64/aarch64-modes.def (CC_Cmode): New
28917 * config/aarch64/aarch64-protos.h: Update.
28918 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
28919 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
28920 (aarch64_get_condition_code_1): Handle CC_Cmode.
28921 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
28922 (*add<mode>3_compareC_cconly_imm): New.
28923 (*add<mode>3_compareC_cconly): New.
28924 (*add<mode>3_compareC_imm): New.
28925 (add<mode>3_compareC): New.
28926 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
28927 to be first. Use aarch64_carry_operation.
28928 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
28929 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
28930 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
28931 (subti3): Use subdi3_compare1.
28932 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
28933 (sub<mode>3_compare1): New.
28934 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
28935 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
28936 (*subsi3_carryin_uxtw): Likewise.
28937 (*ngc<mode>, *ngcsi_uxtw): Likewise.
28938 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
28939 * config/aarch64/iterators.md (DWI): New.
28940 * config/aarch64/predicates.md (aarch64_carry_operation): New.
28941 (aarch64_borrow_operation): New.
28942
28943 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
28944
28945 * graphite-optimize-isl.c (optimize_isl): Print a different debug
28946 message when isl does not return a valid schedule.
28947
28948 2016-01-28 Sebastian Pop <s.pop@samsung.com>
28949
28950 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
28951 Remove comments from class declarations: they are already in the code
28952 close by the defs.
28953
28954 2016-01-28 Sebastian Pop <s.pop@samsung.com>
28955
28956 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
28957 codegen_error_p.
28958 (ternary_op_to_tree): Same.
28959 (unary_op_to_tree): Same.
28960 (nary_op_to_tree): Same.
28961 (gcc_expression_from_isl_expr_op): Same.
28962 (gcc_expression_from_isl_expression): Same.
28963 (graphite_create_new_loop): Same.
28964 (graphite_create_new_loop_guard): Same.
28965 (build_iv_mapping): Same.
28966 (graphite_create_new_guard): Same.
28967 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
28968 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
28969
28970 2016-01-28 Sebastian Pop <s.pop@samsung.com>
28971
28972 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
28973 instead of setting codegen_error to fail codegen.
28974
28975 2016-01-28 Jason Merrill <jason@redhat.com>
28976
28977 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
28978
28979 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
28980
28981 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
28982 Remove CONST_INT_P check in CCMP cost calculation.
28983
28984 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
28985
28986 * config/aarch64/aarch64.c (generic_vector_cost):
28987 Set vec_permute_cost.
28988 (cortexa57_vector_cost): Likewise.
28989 (exynosm1_vector_cost): Likewise.
28990 (xgene1_vector_cost): Likewise.
28991 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
28992 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
28993 Add vec_permute_cost entry.
28994
28995 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
28996
28997 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
28998 immediate as %1.
28999 (add<mode>3_compare0): Likewise.
29000 (addsi3_compare0_uxtw): Likewise.
29001 (add<mode>3nr_compare0): Likewise.
29002 (compare_neg<mode>): Likewise.
29003 (<optab><mode>3): Likewise.
29004
29005 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
29006
29007 * tree-vect-stmts.c (vectorizable_comparison): Add
29008 NULL check for vectype.
29009
29010 2016-01-28 Richard Biener <rguenther@suse.de>
29011
29012 PR tree-optimization/69466
29013 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
29014 Account for PHIs we couldn't duplicate.
29015
29016 2016-01-28 Martin Liska <mliska@suse.cz>
29017
29018 PR pch/68758
29019 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
29020 instead of ENABLE_VALGRIND_CHECKING.
29021
29022 2016-01-27 Richard Henderson <rth@redhat.com>
29023
29024 PR rtl-opt/69447
29025 * lra-remat.c (subreg_regs): New.
29026 (dump_candidates_and_remat_bb_data): Dump it.
29027 (operand_to_remat): Reject if operand in subreg_regs.
29028 (set_bb_regs): Collect subreg_regs.
29029 (lra_remat): Init and free subreg_regs. Compute
29030 calculate_local_reg_remat_bb_data before create_cands.
29031
29032 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
29033
29034 PR target/68986
29035 * config/i386/i386.c (ix86_update_stack_boundary): Don't
29036 change stack_alignment_needed for __tls_get_addr call.
29037
29038 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
29039
29040 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
29041
29042 2016-01-27 Jeff Law <law@redhat.com>
29043
29044 PR tree-optimization/68398
29045 PR tree-optimization/69196
29046 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
29047 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
29048 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
29049 Only count PHIs in the last block in the path. The others will
29050 const/copy propagate away. Add heuristic to allow more irreducible
29051 subloops to be created when it is likely profitable to do so.
29052
29053 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
29054 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
29055 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
29056
29057 2016-01-27 Jakub Jelinek <jakub@redhat.com>
29058
29059 PR lto/69254
29060 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
29061 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
29062 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
29063 * tree-streamer-in.c: Include asan.h.
29064 (streamer_get_builtin_tree): For builtins in sanitizer
29065 range call initialize_sanitizer_builtins and retry.
29066
29067 2016-01-27 Ian Lance Taylor <iant@google.com>
29068
29069 * common.opt (fkeep-gc-roots-live): New undocumented option.
29070 * tree-ssa-loop-ivopts.c (add_candidate_1): If
29071 -fkeep-gc-roots-live, skip pointers.
29072 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
29073 NULL.
29074
29075 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
29076
29077 PR target/69512
29078 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
29079 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
29080
29081 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
29082
29083 PR target/68380
29084 * configure.ac: NetBSD provides SSP in its C library.
29085 * configure: Updated.
29086
29087 2016-01-27 Richard Biener <rguenther@suse.de>
29088
29089 PR tree-optimization/69166
29090 * tree-vect-loop.c (vect_is_simple_reduction): Always check
29091 reduction code for commutativity / associativity.
29092
29093 2016-01-27 Martin Jambor <mjambor@suse.cz>
29094
29095 PR tree-optimization/69355
29096 * tree-sra.c (analyze_access_subtree): Correct hole detection when
29097 total_scalarization fails.
29098
29099 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
29100
29101 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
29102 power9.
29103
29104 2016-01-27 Christian Bruel <christian.bruel@st.com>
29105
29106 PR target/69245
29107 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
29108 Move arm_reset_previous_fndecl and set_target_option_current_node in
29109 the conditional part. Call save_restore_target_globals.
29110 * config/arm/arm.c (arm_set_current_function):
29111 Refactor to better support #pragma target and attribute mix.
29112 Call save_restore_target_globals.
29113 * config/arm/arm-protos.h (save_restore_target_globals): New function.
29114
29115 2016-01-27 Martin Liska <mliska@suse.cz>
29116
29117 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
29118 reference for an HSA kernel and its host function.
29119
29120 2016-01-27 Jakub Jelinek <jakub@redhat.com>
29121
29122 PR tree-optimization/69399
29123 * wide-int.h (wi::lrshift): For larger precisions, only
29124 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
29125
29126 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
29127
29128 * config/arc/predicates.md (proper_comparison_operator): Reject
29129 constant-constant comparison.
29130
29131 2016-01-26 Tom de Vries <tom@codesourcery.com>
29132
29133 PR tree-optimization/69110
29134 * tree-data-ref.c (initialize_data_dependence_relation): Handle
29135 DR_NUM_DIMENSIONS == 0.
29136
29137 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
29138 Sebastian Pop <s.pop@samsung.com>
29139
29140 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
29141 isl_ast_op_cond and isl_ast_op_select.
29142 (gcc_expression_from_isl_expr_op): Same.
29143
29144 2016-01-26 Jason Merrill <jason@redhat.com>
29145
29146 PR c++/68782
29147 * tree.c (recompute_constructor_flags): Split out from
29148 build_constructor.
29149 (verify_constructor_flags): New.
29150 * tree.h: Declare them.
29151
29152 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
29153
29154 PR rtl-optimization/69217
29155 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
29156 are no TYPE_FIELDS set for the record type.
29157
29158 2016-01-26 Jakub Jelinek <jakub@redhat.com>
29159
29160 PR target/68662
29161 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
29162 toc_label_name unconditionally.
29163 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
29164 SYMBOL_REF string. Use toc_label_name instead of constructing
29165 LCTOC1.
29166 (rs6000_elf_declare_function_name): Use toc_label_name instead of
29167 constructing LCTOC1.
29168
29169 2016-01-26 Martin Sebor <msebor@redhat.com>
29170
29171 PR other/69477
29172 * doc/extend.texi (Common Type Attributes): Move text that talks about
29173 attribute packed from attribute aligned to the section discussing
29174 the former attribute for clarity.
29175
29176 2016-01-26 Richard Henderson <rth@redhat.com>
29177
29178 PR middle-end/60908
29179 * trans-mem.c (tm_region_init): Mark entry block as visited.
29180
29181 2016-01-26 David Malcolm <dmalcolm@redhat.com>
29182
29183 PR other/69006
29184 * diagnostic-show-locus.c (layout::print_source_line): Replace
29185 call to pp_newline with call to layout::print_newline.
29186 (layout::print_annotation_line): Likewise.
29187 (layout::move_to_column): Likewise.
29188 (layout::print_any_fixits): After printing any fixits, print a
29189 trailing newline, if necessary.
29190 (layout::print_newline): New method, resetting any colorization
29191 before a newline.
29192 (diagnostic_show_locus): Move the pp_newline to before the
29193 early bailout. Remove dummy block enclosing the layout instance.
29194 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
29195 of pp_newline_and_flush with pp_flush.
29196 (diagnostic_append_note): Delete use of pp_newline.
29197 (diagnostic_append_note_at_rich_loc): Delete.
29198 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
29199 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
29200 when newline characters are added to the buffer.
29201
29202 2016-01-26 Michael Matz <matz@suse.de>
29203
29204 * configure.ac (ac_cv_std_swap_in_utility): New test.
29205 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
29206 * configure: Regenerate.
29207 * config.in: Regenerate.
29208
29209 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
29210
29211 * config/arc/arc.md (cstoresi4): Force operand into register.
29212 (arcset<code>): Fix predicate.
29213 (arcsetltu): Likewise.
29214 (arcsetgeu): Likewise.
29215 (arcsethi): Likewise.
29216 (arcsetls): Likewise.
29217
29218 2016-01-26 Jakub Jelinek <jakub@redhat.com>
29219
29220 PR tree-optimization/69483
29221 * gimple-fold.c (canonicalize_constructor_val): Return NULL
29222 if base has error_mark_node type.
29223
29224 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
29225
29226 PR target/68620
29227 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
29228 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
29229 New helper macros.
29230 (vget_lane_f16): Handle big-endian.
29231 (vgetq_lane_f16): Likewise.
29232 (vset_lane_f16): Likewise.
29233 (vsetq_lane_f16): Likewise.
29234 * config/arm/iterators.md (VQXMOV): Add V8HF.
29235 (VDQ): Add V4HF and V8HF.
29236 (V_reg): Handle V4HF and V8HF.
29237 (Is_float_mode): Likewise.
29238 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
29239 neon_vdup_nv8hf): New patterns.
29240 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
29241 Use VD_LANE iterator.
29242 (neon_vld1_dup<mode>): Use VQ2 iterator.
29243
29244 2016-01-26 Nathan Sidwell <nathan@acm.org>
29245
29246 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
29247 (set_oacc_fn_attrib): Add IS_KERNEL arg.
29248 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
29249 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
29250 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
29251 (oacc_validate_dims): Add LEVEL arg, don't return level.
29252 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
29253 oacc_validate_dims.
29254 (execute_oacc_device_lower): Adjust, add more dump output.
29255 * tree-ssa-loop.c (gate_oacc_kernels): Use
29256 oacc_fn_attrib_kernels_p.
29257 * tree-parloops.c (create_parallel_loop): Adjust
29258 set_oacc_fn_attrib call.
29259
29260 2016-01-26 Jakub Jelinek <jakub@redhat.com>
29261
29262 PR lto/69254
29263 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
29264 (append_compiler_options): Handle -fcilkplus.
29265 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
29266
29267 2016-01-26 Nick Clifton <nickc@redhat.com>
29268
29269 PR target/66655
29270 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
29271 been marked as DECL_ONE_ONLY but we do not the means to make it
29272 so, then do not allow it to bind locally.
29273
29274 2016-01-26 Jakub Jelinek <jakub@redhat.com>
29275
29276 PR lto/69254
29277 * opts.h (parse_sanitizer_options): New prototype.
29278 * opts.c (sanitizer_opts): New array.
29279 (parse_sanitizer_options): New function.
29280 (common_handle_option): Use parse_sanitizer_options.
29281
29282 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
29283
29284 PR target/68986
29285 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
29286 alignment adjustment to ...
29287 (ix86_update_stack_boundary): Here. Don't over-align stack for
29288 __tls_get_addr.
29289 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
29290 if __tls_get_addr is called.
29291
29292 2016-01-26 Christian Bruel <christian.bruel@st.com>
29293
29294 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
29295
29296 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
29297
29298 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
29299
29300 2016-01-26 Richard Biener <rguenther@suse.de>
29301
29302 PR middle-end/69467
29303 * match.pd: Guard X * CST CMP 0 pattern with single_use.
29304
29305 2016-01-26 Richard Biener <rguenther@suse.de>
29306
29307 PR tree-optimization/69452
29308 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
29309 (move_computations_dom_walker::before_dom_children): Rename
29310 to ...
29311 (move_computations_worker): This.
29312 (move_computations): Perform an RPO rather than a DOM walk.
29313
29314 2016-01-26 Jakub Jelinek <jakub@redhat.com>
29315
29316 PR target/69442
29317 * combine.c (combine_instructions): For REG_EQUAL note with
29318 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
29319 to the underlying register.
29320 * doc/rtl.texi (REG_EQUAL): Document the behavior of
29321 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
29322
29323 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
29324
29325 PR target/67896
29326 * config/aarch64/aarch64-builtins.c
29327 (aarch64_init_simd_builtin_types): Do not set structural
29328 equality to __Poly{8,16,64,128}_t types.
29329
29330 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
29331
29332 PR tree-optimization/69400
29333 * wide-int.cc (wi_pack): Take the precision as argument and
29334 perform canonicalization here rather than in the callers.
29335 Use the main loop to handle all full-width HWIs. Add a
29336 zero HWI if in_len isn't a full result.
29337 (wi::divmod_internal): Update accordingly.
29338 (wi::mul_internal): Likewise. Simplify.
29339
29340 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
29341 Sebastian Pop <s.pop@samsung.com>
29342
29343 * graphite-poly.c (apply_poly_transforms): Simplify.
29344 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
29345 (print_isl_map): Same.
29346 (print_isl_union_map): Same.
29347 (print_isl_schedule): New.
29348 (debug_isl_schedule): New.
29349 * graphite-dependences.c (scop_get_reads): Do not call
29350 isl_union_map_add_map that is undocumented isl functionality.
29351 (scop_get_must_writes): Same.
29352 (scop_get_may_writes): Same.
29353 (scop_get_original_schedule): Remove.
29354 (scop_get_dependences): Do not call isl_union_map_compute_flow that
29355 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
29356 (compute_deps): Remove.
29357 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
29358 (debug_schedule_ast): New.
29359 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
29360 set_separate_option.
29361 (graphite_regenerate_ast_isl): Add dump.
29362 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
29363 from scop->transformed_schedule.
29364 (graphite_regenerate_ast_isl): Add more dump.
29365 * graphite-optimize-isl.c (optimize_isl): Set
29366 scop->transformed_schedule. Check whether schedules are equal.
29367 (apply_poly_transforms): Move here.
29368 * graphite-poly.c (apply_poly_transforms): ... from here.
29369 (free_poly_bb): Static.
29370 (free_scop): Static.
29371 (pbb_number_of_iterations_at_time): Remove.
29372 (print_isl_ast): New.
29373 (debug_isl_ast): New.
29374 (debug_scop_pbb): New.
29375 * graphite-scop-detection.c (print_edge): Move.
29376 (print_sese): Move.
29377 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
29378 (build_scop_scattering): Remove.
29379 (create_pw_aff_from_tree): Assert instead of bailing out.
29380 (add_condition_to_pbb): Remove unused code, do not fail.
29381 (add_conditions_to_domain): Same.
29382 (add_conditions_to_constraints): Remove.
29383 (build_scop_context): New.
29384 (add_iter_domain_dimension): New.
29385 (build_iteration_domains): Initialize pbb->iterators.
29386 Call add_conditions_to_domain.
29387 (nested_in): New.
29388 (loop_at): New.
29389 (index_outermost_in_loop): New.
29390 (index_pbb_in_loop): New.
29391 (outermost_pbb_in): New.
29392 (add_in_sequence): New.
29393 (add_outer_projection): New.
29394 (outer_projection_mupa): New.
29395 (add_loop_schedule): New.
29396 (build_schedule_pbb): New.
29397 (build_schedule_loop): New.
29398 (embed_in_surrounding_loops): New.
29399 (build_schedule_loop_nest): New.
29400 (build_original_schedule): New.
29401 (build_poly_scop): Call build_original_schedule.
29402 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
29403 (free_poly_dr): Remove.
29404 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
29405 (free_poly_bb): Remove.
29406 (debug_loop_vec): Remove.
29407 (print_isl_ast): Declare.
29408 (debug_isl_ast): Declare.
29409 (scop_do_interchange): Remove.
29410 (scop_do_strip_mine): Remove.
29411 (scop_do_block): Remove.
29412 (flatten_all_loops): Remove.
29413 (optimize_isl): Remove.
29414 (pbb_number_of_iterations_at_time): Remove.
29415 (debug_scop_pbb): Declare.
29416 (print_schedule_ast): Declare.
29417 (debug_schedule_ast): Declare.
29418 (struct scop): Remove schedule. Add original_schedule,
29419 transformed_schedule.
29420 (free_gimple_poly_bb): Remove.
29421 (print_generated_program): Remove.
29422 (debug_generated_program): Remove.
29423 (unify_scattering_dimensions): Remove.
29424 * sese.c (print_edge): ... here.
29425 (print_sese): ... here.
29426 (debug_edge): ... here.
29427 (debug_sese): ... here.
29428 * sese.h (print_edge): Declare.
29429 (print_sese): Declare.
29430 (dump_edge): Declare.
29431 (dump_sese): Declare.
29432
29433 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
29434 Sebastian Pop <s.pop@samsung.com>
29435
29436 * Makefile.in: Set ISLVER in site.exp.
29437
29438 2016-01-25 Jakub Jelinek <jakub@redhat.com>
29439
29440 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
29441 DECL_VALUE_EXPR of new_var even for the non-array case. Look
29442 through DECL_VALUE_EXPR for expansion.
29443
29444 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
29445
29446 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
29447 the frame info after reload completed.
29448
29449 2016-01-25 Jeff Law <law@redhat.com>
29450
29451 PR tree-optimization/69196
29452 PR tree-optimization/68398
29453 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
29454 tree-ssa-threadupdate.c.
29455 (determine_bb_domination_status): Prototype
29456 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
29457 (determine_bb_domination_status): No longer static.
29458 (valid_jump_thread_path): Remove code to detect characteristics
29459 of the jump thread path not associated with correctness.
29460 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
29461 Correct test for thread path length. Count PHIs for real operands as
29462 statements that need to be copied. Do not count ASSERT_EXPRs.
29463 Look at all the blocks in the thread path. Compute and selectively
29464 filter thread paths based on threading through the latch, threading
29465 a multiway branch or crossing a multiway branch.
29466
29467 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29468
29469 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
29470 decl with __attribute__ ((unused)) annotation.
29471
29472 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
29473
29474 PR target/69421
29475 * tree-vect-stmts.c (vectorizable_condition): Check vectype
29476 of operands is compatible with a statement vectype.
29477
29478 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
29479
29480 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
29481 improve wording for mixed storage order support.
29482
29483 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
29484
29485 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
29486 (vcvt_u64_f64): Likewise.
29487 (vcvta_s64_f64): Likewise.
29488 (vcvta_u64_f64): Likewise.
29489 (vcvtm_s64_f64): Likewise.
29490 (vcvtm_u64_f64): Likewise.
29491 (vcvtn_s64_f64): Likewise.
29492 (vcvtn_u64_f64): Likewise.
29493 (vcvtp_s64_f64): Likewise.
29494 (vcvtp_u64_f64): Likewise.
29495
29496 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
29497
29498 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
29499 (arc_init): Check validity mll64 option.
29500 (arc_save_restore): Use double load/store instruction.
29501 (arc_expand_movmem): Likewise.
29502 (arc_split_move): Don't split if we have double load/store
29503 instructions. Returns a boolean.
29504 (arc_process_double_reg_moves): Change function to return boolean
29505 instead of a sequence of instructions.
29506 (arc_dwarf_register_span): New function.
29507 * config/arc/arc-protos.h (arc_split_move): Change prototype.
29508 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
29509 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
29510 (*movdf_insn): Likewise.
29511 * config/arc/arc.opt (mll64): New option.
29512 * config/arc/predicates.md (even_register_operand): New predicate.
29513 * doc/invoke.texi (ARC Options): Add mll64 documentation.
29514
29515 2016-01-25 Richard Biener <rguenther@suse.de>
29516
29517 PR lto/69393
29518 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
29519 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
29520 DECL_NAMELESS.
29521 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
29522
29523 2016-01-25 Richard Biener <rguenther@suse.de>
29524
29525 PR tree-optimization/69376
29526 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
29527 flag.
29528 (VN_INFO_ANTI_RANGE_P): New inline.
29529 (VN_INFO_RANGE_TYPE): Likewise.
29530 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
29531 SSA_NAME_ANTI_RANGE_P.
29532 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
29533 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
29534 Properly query VN_INFO_RANGE_TYPE.
29535
29536 2016-01-25 Nick Clifton <nickc@redhat.com>
29537
29538 PR target/66655
29539 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
29540
29541 2016-01-23 Tom de Vries <tom@codesourcery.com>
29542
29543 PR tree-optimization/69426
29544 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
29545 removed clobber.
29546
29547 2016-01-23 Jakub Jelinek <jakub@redhat.com>
29548
29549 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
29550 "the the" with "the" in the comments.
29551 * ipa-devirt.c (build_type_inheritance_graph,
29552 update_type_inheritance_graph): Likewise.
29553 * tree.c (build_function_type_list_1): Likewise.
29554 * cfgloopmanip.c (scale_loop_profile): Likewise.
29555 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
29556 * gimple-ssa-split-paths.c
29557 (find_block_to_duplicate_for_splitting_paths): Likewise.
29558 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
29559 * expr.c (convert_move): Likewise.
29560 * var-tracking.c (vt_stack_adjustments): Likewise.
29561 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
29562 * tree-vrp.c (test_for_singularity): Likewise.
29563
29564 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
29565 directly instead of building a temporary tree.
29566
29567 PR bootstrap/69434
29568 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
29569 remove <algorithm> include.
29570
29571 2016-01-22 Jakub Jelinek <jakub@redhat.com>
29572
29573 PR target/69432
29574 * config/i386/i386.c: Include dojump.h.
29575 (expand_small_movmem_or_setmem,
29576 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
29577 fixes.
29578 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
29579 if dynamic_check != -1.
29580
29581 2016-01-21 Jeff Law <law@redhat.com>
29582
29583 PR middle-end/69347
29584 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
29585 record_temporary_equivalences. Rewritten to avoid unnecessary calls
29586 into dominated_by_p.
29587 (cprop_into_successor_phis): Avoid unnecessary tests.
29588
29589 2016-01-22 Richard Henderson <rth@redhat.com>
29590
29591 PR target/69416
29592 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
29593 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
29594
29595 2016-01-22 Michael Matz <matz@suse.de>
29596
29597 * system.h (string, algorithm): Include only conditionally.
29598 (new): Include always under C++.
29599 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
29600 * final.c (toplevel): Ditto.
29601 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
29602 * genconditions.c (write_header): Make gencondmd.c define
29603 INCLUDE_STRING.
29604 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
29605
29606 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
29607 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
29608
29609 2016-01-22 Christian Bruel <christian.bruel@st.com>
29610
29611 PR target/68674
29612 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
29613
29614 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29615
29616 PR target/69403
29617 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
29618 define_insn_and_split. Ensure operands[1] and operands[0] do not
29619 get assigned the same register.
29620
29621 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
29622
29623 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
29624
29625 2016-01-22 Christian Bruel <christian.bruel@st.com>
29626
29627 * config/arm/arm-c.c (arm_pragma_target_parse):
29628 Remove warn_builtin_macro_redefined overwrite.
29629
29630 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
29631
29632 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
29633 flag_non_call_exceptions compatibility.
29634
29635 2016-01-22 Jakub Jelinek <jakub@redhat.com>
29636
29637 PR debug/66668
29638 * dwarf2out.c (add_child_die_after): New function.
29639 (dwarf_qual_info_t): New type.
29640 (dwarf_qual_info): New variable.
29641 (qualified_die_p): New function.
29642 (modified_type_die): For -fdebug-types-section, ensure
29643 canonical order of qualifiers. Put qualified DIEs adjacent
29644 to the corresponding non-qualified type DIE and search there
29645 for existing qualified DIEs.
29646
29647 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
29648
29649 * doc/extend.texi (scalar_storage_order type attribute): Document
29650 restriction on type punning and aliasing, and remove future tense.
29651
29652 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
29653
29654 PR target/69252
29655 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
29656 first stage.
29657
29658 2016-01-21 Jeff Law <law@redhat.com>
29659
29660 PR middle-end/69347
29661 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
29662 useless call to record_temporary_equivalences.
29663 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
29664 allocate 10 slots in the bb_path vector and let it grow as needed.
29665 (fsm_find_control_statement_thread_paths): Similarly for the next_path
29666 vector.
29667
29668 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
29669
29670 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
29671 Detangle.
29672 * configure: Regenerate.
29673
29674 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
29675
29676 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
29677 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
29678
29679 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
29680
29681 PR middle-end/66178
29682 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
29683 drop EXPAND_INITIALIZER.
29684 * rtl.h (contains_symbolic_reference_p): Declare.
29685 * rtlanal.c (contains_symbolic_reference_p): New function.
29686 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
29687 a subtraction into a NOT if symbolic constants are involved.
29688
29689 2016-01-21 Anton Blanchard <anton@samba.org>
29690 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29691
29692 PR target/63354
29693 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
29694 #define.
29695 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
29696 function.
29697
29698 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
29699
29700 * config/microblaze/microblaze.c
29701 (get_branch_target): New.
29702 (insert_wic_for_ilb_runout): New.
29703 (insert_wic): New.
29704 (microblaze_machine_dependent_reorg): New.
29705 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
29706 * config/microblaze/microblaze.md
29707 (UNSPEC_IPREFETCH): Define.
29708 (iprefetch): New pattern
29709 * config/microblaze/microblaze.opt
29710 (mxl-prefetch): New flag.
29711
29712 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
29713
29714 * config/microblaze/microblaze.h
29715 (FIXED_REGISTERS): Update in macro.
29716 (CALL_USED_REGISTERS): Update in macro.
29717
29718 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
29719
29720 PR rtl-optimization/68920
29721 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
29722 moves.
29723
29724 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
29725
29726 PR rtl-optimization/68990
29727 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
29728 pseudo instead of inheritance ones.
29729
29730 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
29731 Nick Clifton <nickc@redhat.com>
29732
29733 PR target/69129
29734 PR target/69012
29735 * config/mips/mips.c (mips_compute_frame_info): Initialise
29736 args_size and hard_frame_pointer_offset fields of the frame
29737 structure before calling mips_global_pointer.
29738
29739 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
29740
29741 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
29742 label reference.
29743 * configure: Regenerate.
29744
29745 2016-01-21 Richard Biener <rguenther@suse.de>
29746
29747 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
29748
29749 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
29750
29751 * config/s390/s390.c (s390_asm_declare_function_size): Add code
29752 to actually emit the .size directive.
29753
29754 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
29755 Jakub Jelinek <jakub@redhat.com>
29756
29757 PR target/69187
29758 PR target/65624
29759 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
29760 args array size by one to avoid buffer overflow.
29761
29762 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
29763
29764 * config/s390/s390.md (pool_section_start): Use switch_to_section
29765 to select proper read-only data section instead of hardcoding
29766 .rodata.
29767 (pool_section_end): Use switch_to_section to match the above.
29768
29769 2016-01-21 Richard Biener <rguenther@suse.de>
29770
29771 PR tree-optimization/69378
29772 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
29773 (set_ssa_val_to): Use it for dominance checks taking into
29774 account not executable edges.
29775
29776 2016-01-21 Jakub Jelinek <jakub@redhat.com>
29777
29778 PR c++/69355
29779 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
29780 for bitsize instead of GET_MODE_PRECISION (mode).
29781
29782 2016-01-20 Martin Sebor <msebor@redhat.com>
29783
29784 PR c/52291
29785 * extend.texi (__sync Builtins): Clarify the semantics of
29786 __sync_fetch_and_OP built-ins on pointers.
29787 (__atomic Builtins): Same.
29788
29789 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
29790 Sebastian Pop <s.pop@samsung.com>
29791
29792 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
29793 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
29794 (is_valid_rename): Same.
29795 (translate_isl_ast_to_gimple::get_rename): Same.
29796 (translate_isl_ast_to_gimple::rename_all_uses): Same.
29797 (translate_isl_ast_to_gimple::rename_uses): Same.
29798 (get_new_name): Check for close_phi nodes.
29799 (copy_loop_phi_args): Use phi_node_kind.
29800 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
29801 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
29802
29803 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
29804 Sebastian Pop <s.pop@samsung.com>
29805
29806 Revert commit r229783.
29807 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
29808 Remove use of parameter_rename_map.
29809 (copy_def): Remove.
29810 (copy_internal_parameters): Remove.
29811 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
29812 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
29813 (free_sese_info): Do not free parameter_rename_map.
29814 (set_rename): Do not use parameter_rename_map.
29815 (rename_uses): Update call to set_rename.
29816 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
29817 * sese.h (parameter_rename_map_t): Remove.
29818 (struct sese_info_t): Remove field parameter_rename_map.
29819
29820 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
29821 Sebastian Pop <s.pop@samsung.com>
29822
29823 * graphite-isl-ast-to-gimple.c: Fix comment.
29824 * graphite-scop-detection.c (defined_in_loop_p): New.
29825 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
29826 names defined in loop.
29827
29828 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
29829 Sebastian Pop <s.pop@samsung.com>
29830
29831 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
29832 Discard unstructured if-then-else regions.
29833
29834 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
29835 Sebastian Pop <s.pop@samsung.com>
29836
29837 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
29838 (cleanup_loop_iter_dom): Remove.
29839 (build_loop_iteration_domains): Remove.
29840 (build_scop_context): Remove.
29841 (build_scop_iteration_domain): Remove.
29842 (add_loop_constraints): New.
29843 (build_iteration_domains): New.
29844 (build_poly_scop): Call build_iteration_domains.
29845
29846 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
29847 Sebastian Pop <s.pop@samsung.com>
29848
29849 * graphite-scop-detection.c
29850 (scop_detection::harmful_loop_in_region): Free dom and loops.
29851 (scop_detection::loop_body_is_valid_scop): Free bbs.
29852
29853 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
29854 Sebastian Pop <s.pop@samsung.com>
29855
29856 * graphite-scop-detection.c (record_loop_in_sese): New.
29857 (gather_bbs::before_dom_children): Call record_loop_in_sese.
29858 (build_scops): Remove call to build_sese_loop_nests.
29859 * sese.c (sese_record_loop): Remove.
29860 (build_sese_loop_nests): Remove.
29861 (new_sese_info): Remove region->loops.
29862 (free_sese_info): Same.
29863 * sese.h (sese_contains_loop): Same.
29864 (build_sese_loop_nests): Remove.
29865 (sese_contains_loop): Remove.
29866
29867 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
29868 Sebastian Pop <s.pop@samsung.com>
29869
29870 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
29871 loop_is_valid_in_scop.
29872 (scop_detection::harmful_stmt_in_region): Renamed
29873 harmful_loop_in_region.
29874 Call loop_is_valid_in_scop.
29875
29876 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
29877 Sebastian Pop <s.pop@samsung.com>
29878
29879 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
29880 isl_ast_node_mark.
29881
29882 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
29883 Sebastian Pop <s.pop@samsung.com>
29884
29885 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
29886 * graphite.h (struct poly_bb): Remove field is_reduction.
29887 (PBB_IS_REDUCTION): Remove.
29888
29889 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
29890 Sebastian Pop <s.pop@samsung.com>
29891
29892 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
29893 (add_pdr_constraints): Same.
29894 (scop_get_reads): Same.
29895 (scop_get_must_writes): Same.
29896 (scop_get_may_writes): Same.
29897 (scop_get_original_schedule): Same.
29898 (extend_schedule): Same.
29899 (apply_schedule_on_deps): Same.
29900 (carries_deps): Same.
29901 (compute_deps): Same.
29902 (scop_get_dependences): Same.
29903 * graphite-isl-ast-to-gimple.c
29904 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
29905 * graphite-optimize-isl.c (get_schedule_for_band): Same.
29906 (get_schedule_for_band_list): Same.
29907 (get_schedule_map): Same.
29908 (apply_schedule_map_to_scop): Same.
29909 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
29910 (build_loop_iteration_domains): Same.
29911 (add_condition_to_pbb): Same.
29912 (add_param_constraints): Same.
29913 (pdr_add_memory_accesses): Same.
29914 (pdr_add_data_dimensions): Same.
29915
29916 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
29917
29918 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
29919 requirements.
29920
29921 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
29922
29923 * common.opt (feliminate-dwarf2-dups): Replace references to
29924 "DWARF 2" with just "DWARF".
29925 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
29926 * doc/extend.texi: Likewise.
29927 * doc/cpp.texi: Likewise.
29928 * doc/invoke.texi: Likewise.
29929 (Option Summary): Add -gdwarf to list of Debugging Options.
29930 (Debugging Options): Document -gdwarf.
29931 * doc/contrib.texi: Spell "DWARF" like that.
29932
29933 2016-01-21 Jakub Jelinek <jakub@redhat.com>
29934
29935 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
29936 warning. Fix up formatting.
29937
29938 PR middle-end/67653
29939 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
29940 attempt to mark memory input operand addressable and
29941 call prepare_gimple_addressable in that case. Don't adjust
29942 input_location for diagnostics, use error_at instead.
29943
29944 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
29945
29946 * config/rs6000/ppc-auxv.h: New file.
29947 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
29948 (cpu_is): Likewise.
29949 (cpu_supports): Likewise.
29950 * config/rs6000/rs6000.c: include "ppc-auxv.h".
29951 (cpu_is_info): New variable.
29952 (cpu_supports_info): Likewise.
29953 (tcb_verification_symbol): Likewise.
29954 (cpu_builtin_p): Likewise.
29955 (cpu_expand_builtin): New function.
29956 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
29957 (rs6000_init_builtins): Likewise.
29958 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
29959 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
29960 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
29961 * configure: Regenerate.
29962 * config.in: Likewise.
29963 * doc/extend.texi (PowerPC Built-in Functions): Document
29964 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
29965
29966 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
29967
29968 PR target/68609
29969 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
29970 domain check.
29971 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
29972 for V4SFmode.
29973
29974 2016-01-20 Richard Henderson <rth@redhat.com>
29975
29976 PR bootstrap/69343
29977 PR bootstrap/69339
29978 PR tree-opt/68964
29979 Revert:
29980 * tree.c (tm_define_builtin): New.
29981 (find_tm_vector_type): New.
29982 (build_tm_vector_builtins): New.
29983 (build_common_builtin_nodes): Call it.
29984
29985 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
29986
29987 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
29988 (arm_fp_ok): Likewise.
29989 (arm_fp): Likewise.
29990 (arm_crypto): Likewise.
29991
29992 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
29993 Richard Biener <rguenther@suse.de>
29994
29995 PR tree-optimization/69328
29996 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
29997 vectors have same number of elements.
29998 (vectorizable_condition): Fix masked version recognition.
29999
30000 2016-01-20 Richard Biener <rguenther@suse.de>
30001
30002 PR tree-optimization/69345
30003 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
30004 (VN_INFO_PTR_INFO): Likewise.
30005 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
30006 info when it is equal between non-dominating SSA names.
30007 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
30008 Make sure to look at original SSA infos.
30009
30010 2016-01-20 Jeff Law <law@redhat.com>
30011
30012 PR target/25114
30013 * config/m68k/predicates.md (pow2_m1_operand): New predicate
30014 extracted from ...
30015 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
30016 (pc_or_label_operand): New predicate.
30017 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
30018 tests for small integers that are 2^n - 1.
30019
30020 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
30021
30022 * doc/invoke.texi (Options Summary): Add '.' after @xref.
30023
30024 2016-01-19 Jeff Law <law@redhat.com>
30025
30026 PR middle-end/69347
30027 * tree-ssa-threadbackwards.c
30028 (fsm_find_control_statement_thread_paths): Do not try to lookup
30029 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
30030
30031 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
30032
30033 * doc/lto.texi: Remove text that says only Gold has linker plugin
30034 support.
30035
30036 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
30037
30038 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
30039 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
30040 the DIE accordingly.
30041 (modified_type_die): Add REVERSE parameter and pass it recursively,
30042 as well as to base_type_die. Adjust presence check accordingly.
30043 (base_type_for_mode): Adjust call to modified_type_die.
30044 (add_type_attribute): Add REVERSE parameter and pass it to
30045 modified_type_die.
30046 (generic_parameter_die): Adjust call to add_type_attribute.
30047 (add_scalar_info): Likewise.
30048 (add_subscript_info): Likewise.
30049 (gen_array_type_die): Likewise.
30050 (gen_descr_array_type_die): Likewise.
30051 (gen_entry_point_die): Likewise.
30052 (gen_enumeration_type_die): Likewise.
30053 (gen_formal_parameter_die): Likewise.
30054 (gen_subprogram_die): Likewise.
30055 (gen_variable_die ): Likewise.
30056 (gen_const_die): Likewise.
30057 (gen_field_die): Likewise.
30058 (gen_pointer_type_die): Likewise.
30059 (gen_reference_type_die): Likewise.
30060 (gen_ptr_to_mbr_type_die): Likewise.
30061 (gen_inheritance_die): Likewise.
30062 (gen_subroutine_type_die): Likewise.
30063 (gen_typedef_die): Likewise.
30064 (force_type_die): Adjust call to modified_type_die.
30065
30066 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
30067
30068 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
30069 flow throughout the file. Fix broken link to Objective-C 2.0
30070 documentation.
30071 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
30072 errors.
30073
30074 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
30075
30076 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
30077
30078 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
30079
30080 PR ipa/66223
30081 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
30082 (maybe_record_node): Record cxa_pure_virtual as the only possible
30083 target if there are not ohter candidates.
30084 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
30085
30086 2016-01-19 Richard Biener <rguenther@suse.de>
30087
30088 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
30089 (get_memory_order): Likewise.
30090
30091 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
30092
30093 * tree-vect-stmts.c (vectorizable_store): Check
30094 rhs vectype.
30095
30096 2016-01-19 David Malcolm <dmalcolm@redhat.com>
30097
30098 PR jit/68446
30099 * gcc.c (driver::decode_argv): Add call to
30100 init_opts_obstack before init_options_struct.
30101 * opts.c (init_opts_obstack): Remove idempotency.
30102 (init_options_struct): Replace call to init_opts_obstack
30103 with a gcc_assert to verify that it has already been called.
30104 * toplev.c (toplev::main): Add call to init_opts_obstack before
30105 calls to init_options_struct.
30106 (toplev::finalize): Move cleanup of opts_obstack next to
30107 cleanup of save_decoded_options, clearing the latter, and
30108 save_decoded_options_count.
30109
30110 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30111
30112 PR target/69135
30113 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
30114 attribute to unconditional. Remove %? from output template.
30115
30116 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
30117 Jiong Wang <jiong.wang@arm.com>
30118
30119 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
30120 generated from different expand order.
30121
30122 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
30123
30124 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
30125 Add support for CCMP costing.
30126
30127 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
30128
30129 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
30130 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
30131 (fccmpe<mode>): Likewise.
30132 (fcmp): Rename to fcmp and globalize pattern.
30133 (fcmpe): Likewise.
30134 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
30135 (aarch64_gen_ccmp_next): Add FP support.
30136
30137 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
30138
30139 * target.def (gen_ccmp_first): Update documentation.
30140 (gen_ccmp_next): Likewise.
30141 * doc/tm.texi (gen_ccmp_first): Update documentation.
30142 (gen_ccmp_next): Likewise.
30143 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
30144 expand_ccmp_expr_1. Improve comments.
30145 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
30146 (ccmp_ior<mode>): Remove pattern.
30147 (cmp<mode>): Remove expand.
30148 (cmp): Globalize pattern.
30149 (cstorecc4): Use cc_register.
30150 (mov<mode>cc): Remove ccmp_cc_register check.
30151 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
30152 Simplify after removal of CC_DNE/* modes.
30153 (aarch64_ccmp_mode_to_code): Remove.
30154 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
30155 In 'k' case use integer as condition.
30156 (aarch64_nzcv_codes): Remove inverted cases.
30157 (aarch64_code_to_ccmode): Remove.
30158 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
30159 comparison with CC register to be used in folowing CCMP/branch/CSEL.
30160 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
30161 pattern. Return the comparison with CC register. Invert conditions
30162 when bitcode is OR.
30163 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
30164 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
30165
30166 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
30167
30168 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
30169 instrumented_version.
30170
30171 2016-01-19 Richard Biener <rguenther@suse.de>
30172
30173 PR tree-optimization/69336
30174 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
30175 handled components with get_ref_base_and_extent.
30176 (equal_mem_array_ref_p): Adjust.
30177
30178 2016-01-19 Jakub Jelinek <jakub@redhat.com>
30179
30180 PR debug/65779
30181 * shrink-wrap.c: Include valtrack.h.
30182 (move_insn_for_shrink_wrap): Add DEBUG argument. If
30183 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
30184 in between insn and where it will be moved to. Call
30185 dead_debug_insert_temp.
30186 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
30187 first and dead_debug_local_finish at the end.
30188 For uses and defs bitmap, handle all regs in between REGNO and
30189 END_REGNO, not just the first one.
30190
30191 2016-01-19 Richard Biener <rguenther@suse.de>
30192
30193 PR tree-optimization/69352
30194 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
30195 (equal_mem_array_ref_p): Constrain size and max size properly.
30196 Compare the reverse flag.
30197
30198 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
30199
30200 * ira.c (ira): Update regstat data if we deleted insns.
30201
30202 2016-01-19 Jakub Jelinek <jakub@redhat.com>
30203
30204 PR rtl-optimization/68955
30205 PR rtl-optimization/64557
30206 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
30207 here. Fix up formatting.
30208 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
30209
30210 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
30211
30212 PR lto/69133
30213 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
30214 assume that the node has body.
30215 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
30216 check.
30217
30218 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
30219
30220 * lto-streamer-out.c (lto_output): Do not stream instrumentation
30221 thunks.
30222
30223 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
30224
30225 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
30226 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
30227
30228 2016-01-19 Martin Jambor <mjambor@suse.cz>
30229 Martin Liska <mliska@suse.cz>
30230 Michael Matz <matz@suse.de>
30231
30232 * Makefile.in (OBJS): Add new source files.
30233 (GTFILES): Add hsa.c.
30234 * common.opt (disable_hsa): New variable.
30235 (-Whsa): New warning.
30236 * config.in (ENABLE_HSA): New.
30237 * configure.ac: Treat hsa differently from other accelerators.
30238 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
30239 $enable_offloading.
30240 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
30241 * doc/install.texi (Configuration): Document --with-hsa-runtime,
30242 --with-hsa-runtime-include, --with-hsa-runtime-lib and
30243 --with-hsa-kmt-lib.
30244 * doc/invoke.texi (-Whsa): Document.
30245 (hsa-gen-debug-stores): Likewise.
30246 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
30247 to invoke offload compiler for hsa acclerator.
30248 * opts.c (common_handle_option): Determine whether HSA offloading
30249 should be performed.
30250 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
30251 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
30252 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
30253 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
30254 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
30255 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
30256 GF_OMP_FOR_KIND_GRID_LOOP.
30257 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
30258 (pp_gimple_stmt_1): Likewise.
30259 * gimple-walk.c (walk_gimple_stmt): Likewise.
30260 * gimple.c (gimple_build_omp_grid_body): New function.
30261 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
30262 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
30263 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
30264 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
30265 GF_OMP_TEAMS_GRID_PHONY.
30266 (gimple_statement_omp_single_layout): Updated comments.
30267 (gimple_build_omp_grid_body): New function.
30268 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
30269 (gimple_omp_for_grid_phony): New function.
30270 (gimple_omp_for_set_grid_phony): Likewise.
30271 (gimple_omp_parallel_grid_phony): Likewise.
30272 (gimple_omp_parallel_set_grid_phony): Likewise.
30273 (gimple_omp_teams_grid_phony): Likewise.
30274 (gimple_omp_teams_set_grid_phony): Likewise.
30275 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
30276 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
30277 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
30278 (BUILT_IN_GOMP_TARGET): Updated type.
30279 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
30280 (adjust_for_condition): New function.
30281 (get_omp_for_step_from_incr): Likewise.
30282 (extract_omp_for_data): Moved parts to adjust_for_condition and
30283 get_omp_for_step_from_incr.
30284 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
30285 (fixup_child_record_type): Bail out if receiver_decl is NULL.
30286 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
30287 (scan_omp_parallel): Do not create child functions for phony
30288 constructs.
30289 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
30290 (scan_omp_1_op): Checking assert we are not remapping to
30291 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
30292 (parallel_needs_hsa_kernel_p): New function.
30293 (expand_parallel_call): Register apprpriate parallel child
30294 functions as HSA kernels.
30295 (grid_launch_attributes_trees): New type.
30296 (grid_attr_trees): New variable.
30297 (grid_create_kernel_launch_attr_types): New function.
30298 (grid_insert_store_range_dim): Likewise.
30299 (grid_get_kernel_launch_attributes): Likewise.
30300 (get_target_argument_identifier_1): Likewise.
30301 (get_target_argument_identifier): Likewise.
30302 (get_target_argument_value): Likewise.
30303 (push_target_argument_according_to_value): Likewise.
30304 (get_target_arguments): Likewise.
30305 (expand_omp_target): Call get_target_arguments instead of looking
30306 up for teams and thread limit.
30307 (grid_expand_omp_for_loop): New function.
30308 (grid_arg_decl_map): New type.
30309 (grid_remap_kernel_arg_accesses): New function.
30310 (grid_expand_target_kernel_body): New function.
30311 (expand_omp): Call it.
30312 (lower_omp_for): Do not emit phony constructs.
30313 (lower_omp_taskreg): Do not emit phony constructs but create for them
30314 a temporary variable receiver_decl.
30315 (lower_omp_taskreg): Do not emit phony constructs.
30316 (lower_omp_teams): Likewise.
30317 (lower_omp_grid_body): New function.
30318 (lower_omp_1): Call it.
30319 (grid_reg_assignment_to_local_var_p): New function.
30320 (grid_seq_only_contains_local_assignments): Likewise.
30321 (grid_find_single_omp_among_assignments_1): Likewise.
30322 (grid_find_single_omp_among_assignments): Likewise.
30323 (grid_find_ungridifiable_statement): Likewise.
30324 (grid_target_follows_gridifiable_pattern): Likewise.
30325 (grid_remap_prebody_decls): Likewise.
30326 (grid_copy_leading_local_assignments): Likewise.
30327 (grid_process_kernel_body_copy): Likewise.
30328 (grid_attempt_target_gridification): Likewise.
30329 (grid_gridify_all_targets_stmt): Likewise.
30330 (grid_gridify_all_targets): Likewise.
30331 (execute_lower_omp): Call grid_gridify_all_targets.
30332 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
30333 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
30334 (tree_omp_clause): Added union field dimension.
30335 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
30336 * tree.c (omp_clause_num_ops): Added number of arguments of
30337 OMP_CLAUSE__GRIDDIM_.
30338 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
30339 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
30340 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
30341 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
30342 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
30343 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
30344 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
30345 * tree-pass.h (make_pass_gen_hsail): Declare.
30346 (make_pass_ipa_hsa): Likewise.
30347 * ipa-hsa.c: New file.
30348 * lto-section-in.c (lto_section_name): Add hsa section name.
30349 * lto-streamer.h (lto_section_type): Add hsa section.
30350 * timevar.def (TV_IPA_HSA): New.
30351 * hsa-brig-format.h: New file.
30352 * hsa-brig.c: New file.
30353 * hsa-dump.c: Likewise.
30354 * hsa-gen.c: Likewise.
30355 * hsa.c: Likewise.
30356 * hsa.h: Likewise.
30357 * toplev.c (compile_file): Call hsa_output_brig.
30358 * hsa-regalloc.c: New file.
30359
30360 2016-01-18 Jeff Law <law@redhat.com>
30361
30362 PR tree-optimization/69320
30363 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
30364 ranged object, do nothing if the RHS constant is not [0..1].
30365 (optimize_stmt): Comparing a boolean ranged object against a
30366 constant outside [0..1] results in a compile-time constant.
30367
30368 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
30369 test.
30370
30371 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
30372
30373 * doc/invoke.texi (Invoking GCC): Add new section to menu.
30374 (Option Summary): Update to reflect new section and moved options.
30375 (C++ Dialect Options): Move -fstats to new section.
30376 (Debugging Options): Move all dump, statistics, and other GCC
30377 developer options to new section. Rewrite section introduction
30378 and re-order remaining options to put the more basic ones first.
30379 (Optimization Options): Move -fira-verbose and -flto-report* to
30380 new section.
30381 (Developer Options): New section incorporating moved options.
30382 * doc/cppopts.texi (-dM): Update cross-reference.
30383
30384 2016-01-18 Richard Henderson <rth@redhat.com>
30385
30386 PR target/69176
30387 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
30388 operands to pseudo only if CSE is expected. Split long immediate
30389 operands only after reload, and for the stack pointer.
30390 (*add<GPI>3_pluslong): Remove.
30391 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
30392 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
30393 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
30394 (*add<GPI>3 peepholes): New.
30395 (*add<GPI>3 splitters): New.
30396 * config/aarch64/constraints.md (Upl): New.
30397 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
30398
30399 2016-01-18 Richard Biener <rguenther@suse.de>
30400
30401 PR tree-optimization/69297
30402 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
30403 stmt at most once.
30404 (vect_bb_vectorization_profitable_p): Clear visited flag again.
30405
30406 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
30407
30408 PR middle-end/68542
30409 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
30410 of mixind vector and scalar types.
30411 (fold_relational_const): Add handling of vector
30412 comparison with boolean result.
30413 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
30414 comparison of vector operands with boolean result for EQ/NE only.
30415 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
30416 (verify_gimple_cond): Likewise.
30417 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
30418 valid type of VAL.
30419
30420 2016-01-18 Joseph Myers <joseph@codesourcery.com>
30421
30422 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
30423 !TARGET_OCTEON.
30424
30425 2016-01-18 Richard Biener <rguenther@suse.de>
30426
30427 PR middle-end/69308
30428 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
30429
30430 2016-01-18 Tom de Vries <tom@codesourcery.com>
30431
30432 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
30433
30434 2016-01-18 Tom de Vries <tom@codesourcery.com>
30435
30436 * omp-low.c (set_oacc_fn_attrib): Make extern.
30437 * omp-low.h (set_oacc_fn_attrib): Declare.
30438 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
30439 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
30440 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
30441 Add and handle function parameter oacc_kernels_p.
30442 (find_reduc_addr, get_omp_data_i_param): New function.
30443 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
30444 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
30445 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
30446 Calculate dominance info. Skip loops that are not in a kernels region
30447 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
30448 (pass_parallelize_loops::execute): Call parallelize_loops with
30449 oacc_kernels_p argument.
30450 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
30451 New member function.
30452 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
30453 * passes.def: Add argument to pass_parallelize_loops instantation.
30454
30455 2016-01-18 Tom de Vries <tom@codesourcery.com>
30456
30457 * tree-parloops.c (pass_parallelize_loops::execute): Allow
30458 pass_parallelize_loops to be run outside the loop pipeline.
30459
30460 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
30461
30462 * tree-scalar-evolution.c (follow_copies_to_constant): New.
30463 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
30464
30465 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
30466
30467 PR target/63679
30468 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
30469 using get_ref_base_and_extent.
30470 (equal_mem_array_ref_p): New.
30471 (hashable_expr_equal_p): Add call to previous.
30472
30473 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
30474
30475 PR target/63679
30476 * tree-sra.c (disqualified_constants, constant_decl_p): New.
30477 (sra_initialize): Allocate disqualified_constants.
30478 (sra_deinitialize): Free disqualified_constants.
30479 (disqualify_candidate): Update disqualified_constants when appropriate.
30480 (create_access): Scan for constant-pool entries as we go along.
30481 (scalarizable_type_p): Add check against type_contains_placeholder_p.
30482 (maybe_add_sra_candidate): Allow constant-pool entries.
30483 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
30484 (initialize_constant_pool_replacements): New.
30485 (sra_modify_assign): Avoid mangling assignments created by previous,
30486 and don't generate writes into constant pool.
30487 (sra_modify_function_body): Call initialize_constant_pool_replacements.
30488
30489 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
30490
30491 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
30492 andnot instruction.
30493 (scalar_chain::convert_op): Likewise.
30494 * config/i386/i386.md (*andndi3_doubleword): New.
30495
30496 2016-01-18 Richard Biener <rguenther@suse.de>
30497
30498 PR tree-optimization/69170
30499 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
30500 building a vector from scalar results of a pattern stmt.
30501
30502 2016-01-18 Jakub Jelinek <jakub@redhat.com>
30503
30504 * haifa-sched.c (autopref_multipass_init): Work around
30505 -Wmaybe-uninitialized warning.
30506
30507 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
30508
30509 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
30510 against the constant 0.
30511
30512 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30513
30514 PR tree-optimization/68799
30515 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
30516 look up phi candidates in the statement-candidate map.
30517 (phi_add_costs): Likewise.
30518 (record_phi_increments): Likewise.
30519 (phi_incr_cost): Likewise.
30520 (ncd_with_phi): Likewise.
30521 (all_phi_incrs_profitable): Likewise.
30522
30523 2016-01-17 Jakub Jelinek <jakub@redhat.com>
30524
30525 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
30526 -Wmaybe-uninitialized warning.
30527
30528 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
30529
30530 * doc/invoke.texi (Invoking GCC): Add new section to menu.
30531 (Option Summary): Update to reflect new section and moved options.
30532 (C++ Dialect Options): Move -fvtable-verify and related options.
30533 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
30534 and profiling-related options.
30535 (Optimization Options): Move profile generation options and
30536 -fstack-protector and related options.
30537 (Instrumentation Options): New section incorporating moved options.
30538 (Code Generation Options): Move -finstrument-functions and
30539 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
30540
30541 2016-01-16 Tom de Vries <tom@codesourcery.com>
30542
30543 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
30544
30545 2016-01-16 Tom de Vries <tom@codesourcery.com>
30546
30547 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
30548
30549 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
30550
30551 * hash-table.h (hash_table::empty): Turn into an inline wrapper
30552 that checks whether the table is already empty. Rename the
30553 original implementation to...
30554 (hash_table::empty_slot): ...this new private function.
30555
30556 2016-01-15 David Malcolm <dmalcolm@redhat.com>
30557
30558 PR diagnostic/68899
30559 * diagnostic-show-locus.c (layout::print_source_line): Move x
30560 offset of line until after call to
30561 get_line_width_without_trailing_whitespace.
30562
30563 2016-01-15 Jeff Law <law@redhat.com>
30564
30565 PR tree-optimization/69270
30566 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
30567 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
30568 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
30569 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
30570 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
30571 ssa_name_has_boolean_range and constant_boolean_node.
30572
30573 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
30574
30575 PR rtl-optimization/69030
30576 * lra-spills.c (remove_pseudos): Check nrefs and make the function
30577 returning bool.
30578 (spill_pseudos): Delete debug insn for dead pseudo.
30579 (lra_spill): Initiate spill_hard_reg and slots memory separately.
30580
30581 2016-01-15 Jiong Wang <jiong.wang@arm.com>
30582
30583 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
30584 New.
30585 (TYPES_UNOPUS): Likewise.
30586 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
30587 builtin type, from UNOP to UNOPUS.
30588 (lbtruncuv4sf): Likewise.
30589 (lbtruncuv2df): Likewise.
30590 (lrounduv2sf): Likewise.
30591 (lrounduv4sf): Likewise.
30592 (lrounduv2df): Likewise.
30593 (lroundusf): Likewise.
30594 (lroundusf): Likewise.
30595 (lceiluv2sf): Likewise.
30596 (lceiluv4sf): Likewise.
30597 (lceiluv2df): Likewise.
30598 (lceilusf): Likewise.
30599 (lceiludf): Likewise.
30600 (lflooruv2sf): Likewise.
30601 (lflooruv4sf): Likewise.
30602 (lflooruv2df): Likewise.
30603 (lfloorusf): Likewise.
30604 (lfloorudf): Likewise.
30605 (lfrintnuv2sf): Likewise.
30606 (lfrintnuv4sf): Likewise.
30607 (lfrintnuv2df): Likewise.
30608 (lfrintnusf): Likewise.
30609 (lfrintnudf): Likewise.
30610 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
30611 conversion.
30612 (vcvtq_u32_f32): Likewise.
30613 (vcvtq_u64_f64): Likewise.
30614 (vcvta_u32_f32): Likewise.
30615 (vcvtaq_u32_f32): Likewise.
30616 (vcvtaq_u64_f64): Likewise.
30617 (vcvtm_u32_f32): Likewise.
30618 (vcvtmq_u32_f32): Likewise.
30619 (vcvtmq_u64_f64): Likewise.
30620 (vcvtn_u32_f32): Likwise.
30621 (vcvtnq_u32_f32): Likewise.
30622 (vcvtnq_u64_f64): Likewise.
30623 (vcvtp_u32_f32): Likewise.
30624 (vcvtpq_u32_f32): Likewise.
30625 (vcvtpq_u64_f64): Likewise.
30626 (vcvtmd_u64_f64): Likewise.
30627 (vcvtms_u32_f32): Likewise.
30628 (vcvtad_u64_f64): Likewise.
30629 (vcvtas_u32_f32): Likewise.
30630 (vcvtnd_u64_f64): Likewise.
30631 (vcvtns_u32_f32): Likewise.
30632 (vcvtpd_u64_f64): Likewise.
30633 (vcvtps_u32_f32): Likewise.
30634
30635 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30636
30637 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
30638 CSEL of zero_extended registers.
30639
30640 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30641
30642 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
30643 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
30644
30645 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30646
30647 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
30648 false when argument string is not found in the attributes table
30649 at all.
30650
30651 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
30652
30653 PR target/68609
30654 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
30655 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
30656 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
30657 precision estimate.
30658
30659 2016-01-15 Richard Biener <rguenther@suse.de>
30660
30661 PR tree-optimization/66856
30662 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
30663 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
30664 (vect_create_new_slp_node): Increment stmt reference count.
30665 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
30666 an SLP tree before swapping operands.
30667 (vect_build_slp_tree): Likewise.
30668 (destroy_bb_vec_info): Free stmt info after SLP instances.
30669 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
30670 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
30671 (STMT_VINFO_NUM_SLP_USES): New macro.
30672
30673 2016-01-15 Richard Biener <rguenther@suse.de>
30674
30675 PR debug/69137
30676 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
30677 (add_linkage_name): ... here.
30678 (gen_typedef_die): Use add_linkage_name_raw instead of
30679 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
30680 if necessary.
30681
30682 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
30683
30684 * gimplify.c (oacc_default_clause): Decode reference and pointer
30685 types for both kernels and parallel regions.
30686
30687 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
30688
30689 PR middle-end/69246
30690 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
30691
30692 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
30693
30694 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
30695 (convert_scalars_to_vector): Likewise.
30696
30697 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
30698
30699 * doc/extend.texi (Type Traits): Fix grammar.
30700
30701 2016-01-15 Martin Jambor <mjambor@suse.cz>
30702
30703 * tree-inline.c (remap_decl): Use existing dclarations if
30704 remapping a type and prevent_decl_creation_for_types.
30705 (replace_locals_stmt): Do an initial remapping of non-VLA typed
30706 decls first. Do real remapping with
30707 prevent_decl_creation_for_types set.
30708 * tree-inline.h (copy_body_data): New field
30709 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
30710 padding.
30711
30712 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
30713
30714 * config/s390/s390.opt (mmvcle): More verbose help text.
30715
30716 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
30717
30718 * config/s390/s390.opt: Add period to -mzvector option text.
30719
30720 2016-01-15 Richard Biener <rguenther@suse.de>
30721
30722 PR tree-optimization/68961
30723 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
30724 of invariants in stores again.
30725
30726 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
30727
30728 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
30729
30730 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
30731
30732 * config/i386/i386.c (ix86_expand_branch): Don't split
30733 DI mode xor instruction to SI mode.
30734
30735 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
30736
30737 PR ipa/68148
30738 * ipa-icf.c (sem_function::merge): Virtual functions may become
30739 reachable even if they address is not taken and there are no
30740 idrect calls.
30741
30742 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
30743
30744 * lto-streamer-out.c (subtract_estimated_size): New function.
30745 (get_symbol_initial_value): Use it.
30746
30747 2016-01-15 Christian Bruel <christian.bruel@st.com>
30748
30749 PR target/65837
30750 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
30751 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
30752 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
30753 use add_builtin_function_ext_scope instead of add_builtin_function.
30754 (neon_set_p, neon_crypto_set_p): Remove.
30755 (arm_init_builtins): Always call arm_init_neon_builtins and
30756 arm_init_crypto_builtins.
30757 (arm_expand_builtin): Check that builtins are allowed for the arch.
30758 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
30759 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
30760 arm_init_neon_builtins call.
30761
30762 2016-01-15 Richard Biener <rguenther@suse.de>
30763
30764 PR tree-optimization/69117
30765 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
30766 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
30767 of the leader conservatively.
30768 (free_scc_vn): Restore original SSA name infos.
30769
30770 2016-01-14 Jeff Law <law@redhat.com>
30771
30772 PR tree-optimization/69270
30773 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
30774 single bit of precision, verify it's also unsigned.
30775 (record_edge_info): Use constant_boolean_node rather than fold_convert
30776 to convert boolean_true/boolean_false to the right type.
30777
30778 2016-01-14 Richard Henderson <rth@redhat.com>
30779
30780 PR rtl-opt/69014
30781 * loop-doloop.c (record_reg_sets): New.
30782 (doloop_optimize): Reject the transform if the sequence
30783 clobbers registers live at the end of the loop block.
30784 (doloop_optimize_loops): Enable df_live if needed.
30785
30786 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
30787
30788 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
30789 * config/rs6000/rs6000.c: Likewise.
30790 * config/rs6000/rs6000.h: Likewise.
30791 * config/rs6000/rs6000.md: Likewise.
30792 * doc/extend.texi: Likewsie.
30793
30794 2016-01-14 Jeff Law <law@redhat.com>
30795
30796 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
30797 typo.
30798
30799 2016-01-14 Richard Henderson <rth@redhat.com>
30800
30801 PR c/69272
30802 PR tree-opt/68964
30803 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
30804 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
30805 instead of builtin_decl_declared_p to test for declaration.
30806
30807 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
30808
30809 * doc/loop.texi (Loop Analysis and Representation): Document
30810 loop_depth function.
30811
30812 2016-01-14 Tom de Vries <tom@codesourcery.com>
30813
30814 PR tree-optimization/68773
30815 * omp-low.c (expand_omp_target): Don't set force_output.
30816 * varpool.c (varpool_node::get_create): Same.
30817 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
30818 offload_funcs with force_output.
30819
30820 2016-01-14 Jakub Jelinek <jakub@redhat.com>
30821
30822 PR debug/69244
30823 * lra-eliminations.c (move_plus_up): Don't change anything if either
30824 the outer or inner subreg mode is not MODE_INT.
30825 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
30826 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
30827
30828 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
30829
30830 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
30831 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
30832 reduc_uplus_@var{m}): Remove.
30833 * expr.c (expand_expr_real_2): Remove expansion path for
30834 reduc_[us](min|max|plus) optabs.
30835 * optabs-tree.c (scalar_reduc_to_vector): Remove.
30836 * optabs-tree.h (scalar_reduc_to_vector): Remove.
30837 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
30838 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
30839 * tree-vect-loop.c (vectorizable_reduction): Remove test for
30840 reduc_[us](min|max|plus) optabs.
30841
30842 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
30843
30844 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
30845 (reduc_plus_scal_v2sf): New.
30846 (reduc_smax_v2sf): Rename to...
30847 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
30848 (reduc_smin_v2sf): Rename to...
30849 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
30850
30851 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
30852
30853 * alias.c (compare_base_symbol_refs): New function.
30854 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
30855 it.
30856
30857 2016-01-14 Jakub Jelinek <jakub@redhat.com>
30858
30859 PR middle-end/68146
30860 PR tree-optimization/69155
30861 * tree-complex.c: Include cfganal.h.
30862 (phis_to_revisit): New variable.
30863 (extract_component): Add phiarg_p argument. Assert that returned
30864 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
30865 (update_phi_components): Partly rewrite to use loop over real/imag
30866 components instead of code duplication. If extract_component returns
30867 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
30868 create_tmp_reg into the PHI node instead, and mention the phi triplet
30869 in phis_to_revisit.
30870 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
30871 in phis_to_revisit at the end.
30872
30873 2016-01-14 Richard Biener <rguenther@suse.de>
30874
30875 PR tree-optimization/68060
30876 * tree-vect-loop.c (vect_is_simple_reduction): Check the
30877 outer loop reduction is only used in the inner loop before
30878 detecting a double reduction.
30879
30880 2016-01-14 Jakub Jelinek <jakub@redhat.com>
30881
30882 PR target/68269
30883 * combine.c (expand_field_assignment): Punt if compute_mode is
30884 unsupported scalar mode.
30885
30886 2016-01-14 Richard Biener <rguenther@suse.de>
30887
30888 PR tree-optimization/66856
30889 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
30890 SLP node only if it built successfully.
30891 (vect_analyze_slp_instance): Adjust.
30892
30893 2016-01-14 Jeff Law <law@redhat.com>
30894
30895 PR tree-optimization/69270
30896 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
30897 (record_edge_info): Use it. Convert boolean_{true,false}_node
30898 to the type of op0.
30899
30900 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
30901
30902 PR ipa/66487
30903 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
30904 use block_ultimate_origin
30905 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
30906
30907 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
30908
30909 * doc/invoke.texi (Submodel Options): Rename section to
30910 "Machine-Dependent Options" to better reflect its content.
30911 Rewrite introductory text to remove archaic CPU names.
30912 Update references.
30913
30914 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
30915
30916 * doc/invoke.texi (Code Gen Options): Move section up in file,
30917 before target-specific options. Update menu and option summary
30918 to reflect the new section ordering.
30919
30920 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
30921
30922 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
30923 (C++ Dialect Options): Add cross-reference to -std option.
30924 * doc/standards.texi (C++ Language): Document C++14 support.
30925
30926 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
30927
30928 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
30929 for pack/unpack functions for __ibm128.
30930 (PACK_IF): Likewise.
30931 (UNPACK_IF): Likewise.
30932
30933 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
30934 support for __ibm128 pack/unpack functions.
30935 (rs6000_invalid_builtin): Likewise.
30936 (rs6000_init_builtins): Likewise.
30937 (rs6000_opt_masks): Likewise.
30938
30939 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
30940 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
30941 functions
30942 (RS6000_BTM_COMMON): Likewise.
30943
30944 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
30945 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
30946 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
30947 128-bit floating point. Add support for the double values to be
30948 in Altivec registers for TF/IF packing and unpacking, but restrict
30949 TD packing sub-fields to be FPR registers. Don't allow overlapped
30950 register support for packing. Allow pack inputs to be memory
30951 locations. Don't build generator functions for unpack<mode>_dm
30952 and unpack<mode>_nodm.
30953 (unpack<mode>_dm): Likewise.
30954 (unpack<mode>_nodm): Likewise.
30955 (pack<mode>): Likewise.
30956
30957 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
30958 built-in functions to pack/unpack explicit __ibm128 values.
30959 (__builtin_unpack_ibm128): Likewise.
30960
30961 * doc/extend.texi (PowerPC Built-in Functions): Document
30962 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
30963
30964 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
30965
30966 PR c/66208
30967 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
30968 Add new arg loc and pass it down as context.
30969 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
30970 to the location to use for the warning.
30971 (check_function_arguments): New arg loc. All callers changed. Pass
30972 it to check_function_nonnull.
30973 * c-common.h (check_function_arguments): Adjust declaration.
30974
30975 2016-01-13 Jakub Jelinek <jakub@redhat.com>
30976
30977 PR tree-optimization/69156
30978 * gimple.c (validate_type): Removed.
30979 (gimple_builtin_call_types_compatible_p): Use
30980 useless_type_conversion_p instead of validate_type.
30981 * value-prof.c (gimple_stringop_fixed_value): Fold
30982 icall_size to correct type.
30983
30984 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
30985
30986 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
30987 effects.
30988
30989 2016-01-13 Richard Henderson <rth@redhat.com>
30990
30991 PR tree-opt/68964
30992 * target.def (builtin_tm_load, builtin_tm_store): Remove.
30993 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
30994 (ix86_builtin_tm_store): Remove.
30995 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
30996 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
30997 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
30998 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
30999 * doc/tm.texi: Rebuild.
31000
31001 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
31002 (BUILT_IN_TM_MEMCPY_RTWN): New.
31003 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
31004 fallback from vector to integer helpers.
31005 (build_tm_load): Handle vector types directly, instead of
31006 via target hook.
31007 (build_tm_store): Likewise.
31008 (expand_assign_tm): Prepare for register types not handled by
31009 the above. Copy them to memory and use memcpy.
31010 * tree.c (tm_define_builtin): New.
31011 (find_tm_vector_type): New.
31012 (build_tm_vector_builtins): New.
31013 (build_common_builtin_nodes): Call it.
31014
31015 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
31016
31017 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
31018 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
31019
31020 2016-01-13 Tom de Vries <tom@codesourcery.com>
31021
31022 PR tree-optimization/69169
31023 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
31024 handled_struct_type param.
31025 (create_variable_info_for, intra_create_variable_infos): Call
31026 create_variable_info_for_1 with extra arg.
31027
31028 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
31029
31030 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
31031 and "armv8.1-a+crc" entries.
31032
31033 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
31034
31035 PR target/69228
31036 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
31037 Change first operand predicate from register_or_constm1_operand
31038 to register_operand.
31039 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
31040 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
31041 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
31042 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
31043 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
31044 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
31045 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
31046 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
31047 comparison with constm1_rtx from vec_prefetch_gen part.
31048
31049 2016-01-13 Richard Biener <rguenther@suse.de>
31050
31051 PR tree-optimization/69013
31052 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
31053 Exchange assert for a test.
31054
31055 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31056
31057 PR target/69247
31058 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
31059
31060 2016-01-13 Richard Biener <rguenther@suse.de>
31061
31062 PR tree-optimization/69242
31063 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
31064 assert with a check.
31065
31066 2016-01-13 Richard Biener <rguenther@suse.de>
31067
31068 PR tree-optimization/69186
31069 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
31070 Properly guard vect_update_misalignment_for_peel call.
31071
31072 2016-01-12 Jeff Law <law@redhat.com>
31073
31074 PR tree-optimization/pr67755
31075 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
31076 "need_profile_correction".
31077 (thread_block_1): Initialize new field to false by default. If we
31078 have multiple thread paths through a common joiner to different
31079 final targets, then set new field to true.
31080 (compute_path_counts): Only do count adjustment when it's really
31081 needed.
31082
31083 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
31084
31085 * doc/invoke.texi (Spec Files): Move section down in file, past
31086 all command-line option descriptions.
31087
31088 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31089
31090 PR middle-end/54809
31091 * doc/gty.texi: Remove documentation of mark_hook.
31092 * gengtype.c (struct write_types_data): Remove code to support
31093 mark_hook attribute.
31094 (walk_type): Likewise.
31095 (write_func_for_structure): Likewise.
31096
31097 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
31098
31099 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
31100 Directory Options, and -specs= to Overall Options.
31101 (Overall Options): Adjust similarly. Reorder to group related
31102 options together. Make -specs= cross-reference the spec file details.
31103 (Directory Options): Adjust similarly.
31104
31105 2016-01-12 Jeff Law <law@redhat.com>
31106
31107 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
31108
31109 2016-01-12 Olivier Hainque <hainque@adacore.com>
31110
31111 * gcc.c (spec_undefvar_allowed): New global.
31112 (process_command): Set to true when running for --version or --help,
31113 alone or together.
31114 (getenv_spec_function): When the variable is not defined, use the
31115 variable name as the variable value if we're allowed not to issue
31116 a fatal error.
31117
31118 2016-01-12 Bin Cheng <bin.cheng@arm.com>
31119
31120 PR tree-optimization/68911
31121 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
31122 information computed for expression "init + nit * step".
31123
31124 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
31125
31126 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
31127 about name of GCC executable. Remove deleted node from menu.
31128 (Directory Options) <-B>: Remove cross-reference to deleted node.
31129 (Target Options): Delete section.
31130
31131 2016-01-12 Christian Bruel <christian.bruel@st.com>
31132
31133 PR target/69180
31134 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
31135 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
31136
31137 2016-01-12 Jakub Jelinek <jakub@redhat.com>
31138
31139 PR target/69198
31140 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
31141 aligned_mem is properly set for AVX512-VL floating point masked
31142 stores.
31143
31144 PR target/69175
31145 * ifcvt.c (cond_exec_process_if_block): When removing the last
31146 insn from then_bb, remove also any possible barriers that follow it.
31147
31148 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
31149
31150 PR target/68456
31151 PR target/69226
31152 * config/i386/iamcu.h (SIZE_TYPE): New macro.
31153 (PTRDIFF_TYPE): Likewise.
31154 (WCHAR_TYPE): Likewise.
31155 (WCHAR_TYPE_SIZE): Likewise.
31156 (STDINT_LONG32): Likewise.
31157
31158 2016-01-12 Richard Biener <rguenther@suse.de>
31159
31160 PR tree-optimization/69053
31161 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
31162 convert initial value for cond reductions.
31163
31164 2016-01-12 Richard Biener <rguenther@suse.de>
31165
31166 PR tree-optimization/69007
31167 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
31168 widen_sum after dot_prod and sad.
31169
31170 2016-01-12 Richard Biener <rguenther@suse.de>
31171
31172 PR tree-optimization/69168
31173 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
31174 pattern stmt SLP type.
31175 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
31176 end up unused so cope with that case.
31177
31178 2016-01-12 Richard Biener <rguenther@suse.de>
31179
31180 PR tree-optimization/69157
31181 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
31182 stmts def type only during analyze phase.
31183 (vectorizable_call): Likewise.
31184 (vectorizable_simd_clone_call): Likewise.
31185 (vectorizable_conversion): Likewise.
31186 (vectorizable_assignment): Likewise.
31187 (vectorizable_shift): Likewise.
31188 (vectorizable_operation): Likewise.
31189 (vectorizable_store): Likewise.
31190 (vectorizable_load): Likewise.
31191
31192 2016-01-12 Richard Biener <rguenther@suse.de>
31193
31194 PR tree-optimization/69174
31195 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
31196 space.
31197 (vectorizable_load): Properly compute the number of loads needed
31198 for permuted strided SLP loads and do not spuriously assign
31199 to SLP_TREE_VEC_STMTS.
31200
31201 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
31202
31203 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
31204 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
31205 (MD_EXEC_PREFIX): Remove.
31206 (MD_STARTFILE_PREFIX) Removee.
31207 (FILE_NAME_ABSOLUTE_P): Remove.
31208 (CPP_SPEC): Do not read macros from sys/version.h.
31209 (LINK_COMMAND_SPEC): Remove.
31210 (LOCAL_INCLUDE_DIR): Remove.
31211 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
31212 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
31213 (POST_LINK_SPEC): Define to invoke stubify after linker
31214 (LIBSTDCXX): Remove define
31215 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
31216 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
31217 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
31218 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
31219 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
31220 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
31221 (i386_djgpp_asm_named_section): Add propotype of new procedure
31222
31223 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
31224 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
31225 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
31226 in config/i386/djgpp.h).
31227 (STANDARD_STARTFILE_PREFIX_2): Define identical to
31228 STANDARD_STARTFILE_PREFIX_1.
31229 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
31230 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
31231 installation errors.
31232 (MAX_OFILE_ALIGNMENT): Define to 128.
31233 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
31234
31235 * config/i386/djgpp.c: New file. Add implementation of
31236 i386_djgpp_asm_named_section.
31237
31238 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
31239
31240 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
31241 Add rule for building djgpp.o.
31242
31243 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31244
31245 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
31246 (rtx_is_swappable_p): Reductions are swappable.
31247 (insn_is_swappable_p): V2DF reductions are swappable.
31248
31249 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
31250
31251 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
31252 reloads for other unsupported memory operands.
31253
31254 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
31255 Jim Wilson <jim.wilson@linaro.org>
31256
31257 PR target/69194
31258 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
31259 copy_to_mode_reg instead of force_reg.
31260
31261 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
31262
31263 PR target/69225
31264 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
31265 TARGET_80387 is true.
31266
31267 2016-01-11 Jakub Jelinek <jakub@redhat.com>
31268
31269 PR target/69071
31270 * lra-eliminations.c (move_plus_up): Only move plus up
31271 if subreg of the constant can be simplified into constant
31272 and use the simplified subreg of the constant instead of
31273 the original constant.
31274
31275 * fold-const.c (fold_convertible_p): Don't return true
31276 for conversion of VECTOR_TYPE to same sized integral type.
31277 (fold_convert_loc): Fix up formatting. Fold conversion of
31278 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
31279 instead of NOP_EXPR.
31280
31281 PR tree-optimization/69214
31282 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
31283 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
31284 Formatting fix.
31285
31286 PR tree-optimization/69207
31287 * tree-vect-slp.c (vect_get_constant_vectors): For
31288 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
31289 fold_convertible_p to vector_type's element type, and always
31290 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
31291
31292 2016-01-11 Richard Biener <rguenther@suse.de>
31293
31294 PR tree-optimization/69173
31295 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
31296 fixup the cycle if all stmts are in a pattern.
31297
31298 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
31299
31300 PR middle-end/68999
31301 * alias.c (base_alias_check): Move check for addresses with
31302 alignment ANDs before the call for compare_base_decls.
31303 (memrefs_conflict_p): Return -1 for different decls
31304 that went through alignment adjustments.
31305
31306 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31307
31308 PR rtl-optimization/68796
31309 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
31310 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
31311 and QImode comparisons against zero with CC_NZmode.
31312 * config/aarch64/iterators.md (short_mask): New mode_attr.
31313
31314 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
31315
31316 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
31317 (<avx512>_store<mode>_mask): Likewise.
31318
31319 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
31320 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31321
31322 PR rtl-optimization/68841
31323 * ifcvt.c (struct noce_if_info): Add orig_x field.
31324 (bbs_ok_for_cmove_arith): Add to_rename parameter.
31325 Don't record conflicts on to_rename if it's present.
31326 Allow memory destinations in sets.
31327 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
31328 blocks, passing orig_x to the checks.
31329 (noce_process_if_block): Set if_info->orig_x appropriately.
31330
31331 2016-01-11 Tom de Vries <tom@codesourcery.com>
31332
31333 PR tree-optimization/69069
31334 * tree-parloops.c (create_parallel_loop): Add missing phi args.
31335
31336 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
31337
31338 PR rtl-optimization/68920
31339 * config/i386/i386.c (ix86_option_override_internal): Restrict number
31340 of conditional moves for RTL if-conversion to 1 for
31341 TARGET_ONE_IF_CONV_INSN.
31342 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
31343 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
31344 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
31345 parameter to restirct number of conditional moves for
31346 RTL if-conversion.
31347 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
31348 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
31349 conditionl moves.
31350
31351 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
31352
31353 PR bootstrap/69123
31354 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
31355 onepart vars. Fix typo in comment. Fix reversed condition in
31356 unshare test.
31357 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
31358
31359 PR bootstrap/69123
31360 * var-tracking.c (dump_onepart_variable_differences): New.
31361 (dataflow_set_different): If a detailed dump is requested,
31362 delay early returns and dump differences between onepart
31363 variables present before and after, and added variables.
31364
31365 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
31366
31367 PR target/69010
31368 * expr.c (expand_expr_real_1): For boolean vector constants
31369 with a scalar mode use const_scalar_mask_from_tree.
31370 (const_scalar_mask_from_tree): New.
31371 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
31372 assigned to a mask type to handle constants.
31373
31374 2016-01-11 Martin Jambor <mjambor@suse.cz>
31375
31376 PR ipa/69044
31377 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
31378 useless parameters if we cannot change function signature.
31379
31380 2016-01-11 Martin Jambor <mjambor@suse.cz>
31381
31382 PR ipa/66616
31383 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
31384 flag.
31385
31386 2016-01-11 Tom de Vries <tom@codesourcery.com>
31387
31388 PR tree-optimization/69109
31389 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
31390 latch with phi.
31391
31392 2016-01-11 Tom de Vries <tom@codesourcery.com>
31393
31394 PR tree-optimization/69108
31395 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
31396 res is not used in a phi.
31397
31398 2016-01-11 Yury Gribov <y.gribov@samsung.com>
31399
31400 PR 67425
31401 * common.opt (frandom-seed): Fix parameter name.
31402 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
31403
31404 2016-01-11 Tom de Vries <tom@codesourcery.com>
31405
31406 PR tree-optimization/69058
31407 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
31408 not supported.
31409
31410 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
31411
31412 * config/arc/arc.opt (mdiv-rem): Add period to the end.
31413 (mcode-density): Likewise.
31414
31415 2016-01-10 Tom de Vries <tom@codesourcery.com>
31416
31417 PR tree-optimization/69062
31418 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
31419 (parallelize_loops): Don't paralelize loop that has phi with address
31420 arg.
31421
31422 2016-01-10 Tom de Vries <tom@codesourcery.com>
31423
31424 PR tree-optimization/69039
31425 * tree-parloops.c (try_create_reduction_list): Only allow single exit
31426 phi for reduction.
31427
31428 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
31429
31430 PR middle-end/68743
31431 * match.pd: Require target has function_c99_misc before doing
31432 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
31433
31434 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
31435
31436 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
31437 use GMPINC.
31438 * configure: Regenerate.
31439
31440 2016-01-09 Jakub Jelinek <jakub@redhat.com>
31441
31442 PR middle-end/50865
31443 PR tree-optimization/69097
31444 * fold-const.h (expr_not_equal_to): New prototype.
31445 * fold-const.c: Include stringpool.h and tree-ssanames.h.
31446 (expr_not_equal_to): New function.
31447 * match.pd (X % -Y is the same as X % Y): Don't optimize
31448 unless X is known not to be equal to minimum or Y is known
31449 not to be equal to -1.
31450 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
31451 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
31452 (simplify_stmt_using_ranges): Adjust caller.
31453 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
31454 substitute_and_fold.
31455
31456 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
31457
31458 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
31459 w/o DECL_NAME.
31460
31461 2016-01-08 Jakub Jelinek <jakub@redhat.com>
31462
31463 PR tree-optimization/69167
31464 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
31465 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
31466 ops[0] comparison.
31467 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
31468
31469 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
31470 Richard Biener <rguenther@suse.de>
31471
31472 PR tree-optimization/68707
31473 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
31474 instances that can be handled via vect_load_lanes.
31475
31476 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
31477
31478 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
31479 if we can't determine address equivalence.
31480 * alias.c (compare_base_decl): Update for changed return value of
31481 symtab_node::equal_address_to.
31482
31483 2016-01-08 Jason Merrill <jason@redhat.com>
31484
31485 PR c++/68983
31486 PR c++/67557
31487 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
31488 * expr.c (store_field): Not here.
31489 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
31490 call with TREE_ADDRESSABLE type.
31491 * tree-cfg.c (verify_gimple_call): Adjust.
31492
31493 2016-01-08 Olivier Hainque <hainque@adacore.com>
31494
31495 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
31496 libc_internal.
31497
31498 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
31499
31500 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
31501 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
31502 (reduc_smin_v2sf): Rename to...
31503 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
31504 (reduc_splus_v2sf): Rename to...
31505 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
31506
31507 2016-01-08 Jakub Jelinek <jakub@redhat.com>
31508
31509 PR tree-optimization/69162
31510 * gimplify.c (gimplify_va_arg_expr): Encode original type of
31511 valist argument in another argument.
31512 (gimplify_modify_expr): Adjust for the above change. Cleanup.
31513 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
31514 to determine the va_list type, build a MEM_REF instead of
31515 build_fold_indirect_ref.
31516
31517 PR tree-optimization/69172
31518 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
31519 gimple_build.
31520
31521 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
31522
31523 PR tree-optimization/67781
31524 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
31525 and cmpnop in two steps: first the ones not accessed in original
31526 gimple expression in a endian independent way and then the ones not
31527 accessed in the final result in an endian-specific way.
31528
31529 2016-01-08 Jakub Jelinek <jakub@redhat.com>
31530
31531 PR tree-optimization/69083
31532 * tree-vect-slp.c (vect_get_constant_vectors): For
31533 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
31534 element type. If op is fold_convertible_p to vector_type's element
31535 type, use NOP_EXPR instead of VCE.
31536
31537 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
31538
31539 PR rtl-optimization/67778
31540 PR rtl-optimization/68634
31541 PR rtl-optimization/68909
31542 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
31543 block from the stack until done with it. Remove a superfluous
31544 bitmap set. Remove a superfluous bitmap test.
31545
31546 2016-01-07 Martin Sebor <msebor@redhat.com>
31547
31548 PR c/68966
31549 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
31550 constraint on the type of arguments.
31551
31552 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
31553
31554 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
31555 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
31556 unaligned_access on the gcc_options set.
31557 * config/arm/arm.c (arm_option_override_internal): Use
31558 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
31559
31560 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
31561
31562 PR target/69140
31563 * config/i386/i386.c (ix86_frame_pointer_required): Enable
31564 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
31565
31566 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
31567
31568 Revert
31569 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
31570
31571 PR target/69140
31572 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
31573 depending on frame_pointer_needed before remaining integer and SSE
31574 registers are saved.
31575
31576 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
31577
31578 PR 1078
31579 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
31580
31581 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
31582
31583 PR target/69171
31584 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
31585 Use the "xBm" constraint.
31586 (float<sseintvecmodelower><mode>2<mask_name><round_name):
31587 Likewise.
31588 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
31589 (sse_cvtsi2ssq<round_name>): Likewise.
31590 (sse_cvtss2si<round_name>): Likewise.
31591 (sse_cvtss2siq<round_name>): Likewise.
31592 (sse2_cvtsi2sdq<round_name>): Likewise.
31593 (sse2_cvtsd2si<round_name>): Likewise.
31594 (sse2_cvtsd2siq<round_name>): Likewise.
31595 * config/i386/subst.md (round_nimm_scalar_predicate): New
31596 predicate.
31597
31598 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
31599
31600 PR middle-end/67639
31601 * varasm.c (make_decl_rtl): Mark invalid register vars as
31602 DECL_EXTERNAL.
31603
31604 PR rtl-optimization/66206
31605 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
31606 All callers changed.
31607
31608 2016-01-07 Jakub Jelinek <jakub@redhat.com>
31609
31610 PR tree-optimization/69141
31611 * tree-ssa-pre.c: Include langhooks.h.
31612 (eliminate_dom_walker::before_dom_children): Use
31613 lang_hooks.decl_printable_name instead of
31614 cgraph_node::get ()->name ().
31615
31616 PR middle-end/68960
31617 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
31618 it and DECL_ALIGN too.
31619
31620 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
31621
31622 * config/mips/mips-ftypes.def: Sort to lexicographical order.
31623
31624 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
31625
31626 PR target/69140
31627 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
31628 depending on frame_pointer_needed before remaining integer and SSE
31629 registers are saved.
31630
31631 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31632
31633 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
31634 mode iterator with VSX_M2.
31635 (*p9_vecstore_<mode>): Likewise.
31636 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
31637 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
31638 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
31639 (define_split for VSX_LE128 stores): Likewise.
31640 (define_peephole2 for TImode LE swaps): Likewise.
31641 (define_split for VSX_LE128 post-reload stores): Likewise.
31642
31643 2016-01-06 Marek Polacek <polacek@redhat.com>
31644
31645 PR sanitizer/69099
31646 * convert.c (convert_to_integer_1): Adjust call to
31647 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
31648 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
31649 EXPR instead of ARG.
31650 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
31651
31652 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
31653
31654 PR 1078
31655 * doc/extend.texi (RL78 Variable Attributes): New section.
31656
31657 2016-01-05 Marek Polacek <polacek@redhat.com>
31658
31659 PR c/69104
31660 * builtins.c (get_memmodel): Use expansion point location rather than
31661 the input location. Call warning_at rather than warning.
31662 (expand_builtin_atomic_compare_exchange): Likewise.
31663 (expand_builtin_atomic_load): Likewise.
31664 (expand_builtin_atomic_store): Likewise.
31665 (expand_builtin_atomic_clear): Likewise.
31666
31667 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
31668
31669 PR target/68991
31670 * config/i386/i386.c (ix86_expand_vector_logical_operator):
31671 Replace nonimmediate_operand with vector_operand.
31672 * config/i386/predicates.md (vector_operand): New predicate.
31673 (general_vector_operand): Replace nonimmediate_operand with
31674 vector_operand.
31675 * config/i386/sse.md: Replace nonimmediate_operand with
31676 vector_operand and m constraint with Bm constraint on SSE
31677 patterns with 16-byte memory operand.
31678 * config/i386/subst.md (round_nimm_predicate): Replace
31679 nonimmediate_operand with vector_operand.
31680 (round_saeonly_nimm_predicate): Likewise.
31681 (round_saeonly_nimm_scalar_predicate): New.
31682
31683 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
31684
31685 PR target/68991
31686 * config/i386/constraints.md (Bm): New constraint.
31687 * config/i386/predicates.md (vector_memory_operand): New
31688 predicate.
31689 * config/i386/sse.md: Replace xm with xBm in plusminus and
31690 any_logic patterns.
31691
31692 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
31693
31694 PR 1078
31695 * doc/extend.texi (V850 Function Attributes): New section.
31696 (V850 Variable Attributes): New section.
31697
31698 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
31699
31700 PR 1078
31701 * doc/extend.texi (MicroBlaze Function Attributes): Document
31702 interrupt_handler and fast_interrupt attributes.
31703
31704 2016-01-05 Sergei Trofimovich <siarheit@google.com>
31705
31706 PR other/60465
31707 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
31708 for local symbolic operands.
31709 * config/ia64/predicates.md (local_symbolic_operand64): New
31710 predicate.
31711
31712 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31713
31714 PR rtl-optimization/68651
31715 * combine.c (combine_simplify_rtx): Canonicalize x + x into
31716 x << 1.
31717
31718 2016-01-05 Nathan Sidwell <nathan@acm.org>
31719
31720 * alias.c (compare_base_decls): Use symtab_node::get.
31721
31722 2016-01-05 Nick Clifton <nickc@redhat.com>
31723
31724 PR target/68770
31725 * ira-costs.c (copy_cost): Initialise the t_icode field of the
31726 secondary_reload_info structure.
31727
31728 PR target/66655
31729 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
31730 decls if weak support is available.
31731
31732 2016-01-04 Martin Sebor <msebor@redhat.com>
31733
31734 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
31735
31736 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
31737
31738 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
31739 OPTION_MASK_P9_DFORM.
31740
31741 * config/rs6000/constraints.md (wo constraint): New constraint for
31742 ISA 3.0 (power9).
31743
31744 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
31745 for wo constraint.
31746 (rs6000_init_hard_regno_mode_ok): Likewise.
31747
31748 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
31749 wo constraint.
31750
31751 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
31752 expanders not to have constraints. Add support for ISA 3.0 xxperm
31753 instruction. Add support for fusing xxlor with xxperm.
31754 (altivec_vperm_<mode>_internal): Likewise.
31755 (altivec_vperm_v8hiv16qi): Likewise.
31756 (altivec_vperm_<mode>v16q): Likewise.
31757 (altivec_vperm_<mode>_uns): Likewise.
31758 (vperm_v8hiv4si): Likewise.
31759 (vperm_v16qiv8hi): Likewise.
31760
31761 * doc/md.texi (RS/6000 constraints): Document wo constraint.
31762
31763 2016-01-04 Jakub Jelinek <jakub@redhat.com>
31764
31765 Update copyright years.
31766
31767 * gcc.c (process_command): Update copyright notice dates.
31768 * gcov-dump.c (print_version): Ditto.
31769 * gcov.c (print_version): Ditto.
31770 * gcov-tool.c (print_version): Ditto.
31771 * gengtype.c (create_file): Ditto.
31772 * doc/cpp.texi: Bump @copying's copyright year.
31773 * doc/cppinternals.texi: Ditto.
31774 * doc/gcc.texi: Ditto.
31775 * doc/gccint.texi: Ditto.
31776 * doc/gcov.texi: Ditto.
31777 * doc/install.texi: Ditto.
31778 * doc/invoke.texi: Ditto.
31779
31780 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
31781
31782 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
31783 modes larger than TImode as TImode if NEON is not enabled.
31784
31785 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
31786
31787 PR target/69100
31788 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
31789 mode for %f0-%f31 only if TARGET_FPU.
31790
31791 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
31792
31793 PR target/69072
31794 * config/sparc/sparc.c (scan_record_type): Take into account subfields
31795 to compute the PACKED_P predicate.
31796 (function_arg_record_value): Minor tweaks.
31797
31798 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
31799
31800 * doc/install.texi (--with-multilib-list): Describe the meaning of the
31801 option for arm*-*-* targets.
31802
31803 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
31804
31805 * doc/extend.texi (Common Function Attributes): Move docs for
31806 MSP430-specific attributes to....
31807 (MSP430 Function Attributes): ...here. Delete the redundant
31808 entries and copy-edit the remaining text.
31809 (MSP430 Variable Attributes): Use uniform format for index
31810 entries and add a cross-reference to the corresponding function
31811 attribute docs.
31812
31813 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
31814
31815 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
31816 -finite-math typo.
31817 (x86 Options): Likewise.
31818
31819 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
31820
31821 PR 1078
31822
31823 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
31824 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
31825 to corresponding attribute.
31826
31827 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
31828
31829 * doc/extend.texi (Common Function Attributes) <noplt>: Move
31830 to correct alphabetization of table. Copy-edit and correct
31831 markup.
31832 <stack_protect>: Likewise.
31833 <target_clones>: Likewise.
31834 <simd>: Likewise.
31835 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
31836 Correct punctuation.
31837 (Code Gen Options) <-fno-plt>: Copy-edit.
31838
31839 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
31840
31841 PR target/68917
31842 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
31843 SI values. Explicitly convert SI to DI and vice-versa.
31844
31845 2016-01-01 Jakub Jelinek <jakub@redhat.com>
31846
31847 PR tree-optimization/69070
31848 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
31849 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
31850
31851 PR sanitizer/69055
31852 * ubsan.c (ubsan_instrument_float_cast): Call
31853 initialize_sanitizer_builtins.
31854
31855 PR target/69015
31856 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
31857 \f
31858 Copyright (C) 2016 Free Software Foundation, Inc.
31859
31860 Copying and distribution of this file, with or without modification,
31861 are permitted in any medium without royalty provided the copyright
31862 notice and this notice are preserved.