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